/* Are We Up? marketing site — custom design system */
:root {
  --brand: #6366f1;
  --brand-2: #8b5cf6;
  --grad: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  --ink: #0f172a;
  --muted: #5b6472;
  --soft: #f7f8fc;
  --border: #e7e9f0;
  --white: #fff;
  --green: #16a34a;
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(16,24,40,.18);
  --container: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); background: var(--white);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6; -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* guard against stray horizontal scroll on mobile */
}
a { color: var(--brand); text-decoration: none; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { letter-spacing: -.025em; line-height: 1.15; margin: 0 0 .4em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 800; }
.lead { font-size: 1.18rem; color: var(--muted); }
.muted { color: var(--muted); }
.center { text-align: center; }
.gradient-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 1rem;
  padding: 12px 22px; border-radius: 10px; border: 1px solid transparent; cursor: pointer; transition: .15s; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 24px -10px rgba(99,102,241,.7); }
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.05); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-lg { padding: 15px 28px; font-size: 1.05rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(180%) blur(12px);
  background: rgba(255,255,255,.8); border-bottom: 1px solid var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { font-weight: 800; font-size: 1.3rem; display: flex; align-items: center; gap: 8px; color: var(--ink); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a.link { color: var(--ink); font-weight: 500; opacity: .85; }
.nav-links a.link:hover { opacity: 1; color: var(--brand); }
.nav-cta { display: flex; gap: 12px; align-items: center; }
.menu-toggle { display: none; background: none; border: 1px solid var(--border); color: var(--ink);
  font-size: 1.35rem; line-height: 1; cursor: pointer; width: 42px; height: 42px; border-radius: 10px;
  align-items: center; justify-content: center; transition: .15s; }
.menu-toggle:hover { border-color: var(--brand); color: var(--brand); }

/* Hero */
.hero { padding: 90px 0 70px; background:
  radial-gradient(1200px 500px at 70% -10%, rgba(139,92,246,.12), transparent 60%),
  radial-gradient(900px 400px at 10% 0%, rgba(99,102,241,.10), transparent 55%); }
.hero .eyebrow { display: inline-block; font-weight: 600; color: var(--brand);
  background: rgba(99,102,241,.1); padding: 6px 14px; border-radius: 999px; font-size: .85rem; margin-bottom: 20px; }
.hero p.lead { max-width: 620px; margin: 0 auto 28px; }
.hero .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero .note { margin-top: 16px; font-size: .9rem; color: var(--muted); }

/* Mock dashboard */
.hero-mock { margin: 56px auto 0; max-width: 920px; border-radius: 18px; border: 1px solid var(--border);
  box-shadow: var(--shadow); overflow: hidden; background: #fff; }
.hero-mock .bar { height: 38px; background: #f1f2f7; display: flex; align-items: center; gap: 6px; padding: 0 14px; }
.hero-mock .bar i { width: 11px; height: 11px; border-radius: 50%; background: #d3d6df; display: inline-block; }
.hero-mock .body { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; padding: 22px; }
.hero-mock .tile { border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.hero-mock .tile .n { font-size: 1.6rem; font-weight: 800; }
.hero-mock .row { grid-column: 1/-1; border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px;
  display: flex; justify-content: space-between; align-items: center; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-right: 8px; }
.dot.g { background: var(--green); } .dot.r { background: #dc2626; } .dot.y { background: #d97706; }
.pill { font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.pill.g { background: #dcfce7; color: #15803d; } .pill.r { background: #fee2e2; color: #b91c1c; }

/* Sections */
section { padding: 80px 0; }
.section-soft { background: var(--soft); }
.section-head { max-width: 680px; margin: 0 auto 50px; text-align: center; }

/* Feature grid */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.feature { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.feature .ic { width: 46px; height: 46px; border-radius: 12px; background: rgba(99,102,241,.12); color: var(--brand);
  display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 16px; }
.feature h3 { font-size: 1.15rem; margin-bottom: 8px; }
.feature p { color: var(--muted); margin: 0; font-size: .96rem; }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; align-items: stretch; }
.plan { border: 1px solid var(--border); border-radius: 18px; padding: 30px; background: #fff; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--brand); box-shadow: var(--shadow); position: relative; }
.plan.featured::before { content: 'Most popular'; position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--grad); color: #fff; font-size: .75rem; font-weight: 700; padding: 5px 14px; border-radius: 999px; }
.plan h3 { font-size: 1.3rem; }
.plan .price { font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; }
.plan .price span { font-size: 1rem; font-weight: 500; color: var(--muted); }
/* .amt wraps the Pro/Business amount for the monthly/annual toggle — it must
   stay the full price size, not inherit the small /mo suffix rule above. */
.plan .price .amt { font-size: inherit; font-weight: inherit; letter-spacing: inherit; color: inherit; }
.plan ul { list-style: none; padding: 0; margin: 20px 0; flex: 1; }
.plan li { padding: 7px 0 7px 28px; position: relative; color: #334155; font-size: .95rem; }
.plan li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.plan li.no { color: #94a3b8; } .plan li.no::before { content: '—'; color: #cbd5e1; }

/* Comparison table */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table.cmp { width: 100%; border-collapse: collapse; min-width: 720px; background: #fff; }
table.cmp th, table.cmp td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); }
table.cmp thead th { background: var(--soft); font-weight: 700; }
table.cmp td.c, table.cmp th.c { text-align: center; }
table.cmp tr:last-child td { border-bottom: 0; }
/* On phones the comparison tables compress to fit the viewport (wrapping text)
   instead of forcing a horizontal scroll region mid-page. */
@media (max-width: 740px) {
  table.cmp { min-width: 100%; font-size: .8rem; }
  table.cmp th, table.cmp td { padding: 10px 7px; }
  table.cmp td:first-child, table.cmp th:first-child { padding-left: 12px; }
  table.cmp td:last-child, table.cmp th:last-child { padding-right: 12px; }
}
.yes { color: var(--green); font-weight: 800; } .nope { color: #cbd5e1; font-weight: 800; }
.col-brand { background: rgba(99,102,241,.05); }

/* FAQ */
.faq details { border: 1px solid var(--border); border-radius: 12px; padding: 4px 20px; margin-bottom: 12px; background: #fff; }
.faq summary { cursor: pointer; font-weight: 600; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--brand); font-size: 1.4rem; }
.faq details[open] summary::after { content: '−'; }
.faq details p { color: var(--muted); margin: 0 0 16px; }

/* CTA band */
.cta-band { background: var(--grad); color: #fff; border-radius: 24px; padding: 56px; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band .btn-ghost { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.3); }

/* Prose pages */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin-top: 1.6em; font-size: 1.5rem; }
.prose p, .prose li { color: #334155; }

/* Footer */
.site-footer { background: #0f172a; color: #cbd5e1; padding: 60px 0 30px; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.site-footer a { color: #94a3b8; display: block; padding: 5px 0; }
.site-footer a:hover { color: #fff; }
.site-footer .brand { color: #fff; margin-bottom: 10px; }
.site-footer .bottom { border-top: 1px solid #1e293b; margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .9rem; }

@media (max-width: 860px) {
  section { padding: 56px 0; }
  .grid-3, .grid-4, .pricing { grid-template-columns: 1fr; }
  .hero-mock .body { grid-template-columns: repeat(2,1fr); }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .cta-band { padding: 40px 24px; }
  .plan { padding: 24px 20px; }
  .bill-toggle button { padding: 8px 14px; font-size: .88rem; }

  /* ---- Mobile hamburger nav ----
     Gated on `.has-menu` (added by site.js only when a #menuToggle exists), so
     pages without a full nav (verify-email, reset-password) keep their single
     CTA visible, and if JS fails the nav still shows (wrapped) rather than
     vanishing. Open state stacks the links + CTA into a panel below the bar. */
  /* Ungated: every header bar may grow/wrap on mobile so a wide CTA (e.g. the
     "Go to dashboard" button on the verify-email / reset-password pages, which
     have no hamburger) never spills past the edge. */
  .nav { flex-wrap: wrap; height: auto; min-height: 60px; row-gap: 0; }
  .site-header.has-menu .menu-toggle { display: inline-flex; }
  /* Keep the toggle on the first row beside the brand when the panel is open —
     as the last DOM child it would otherwise wrap below the CTA block. */
  .site-header.has-menu .menu-toggle { order: 1; margin-left: auto; }
  .site-header.has-menu .nav-links { order: 2; }
  .site-header.has-menu .nav-cta { order: 3; }
  .site-header.has-menu .nav-links,
  .site-header.has-menu .nav-cta { display: none; width: 100%; }
  .site-header.has-menu.open .nav-links,
  .site-header.has-menu.open .nav-cta { display: flex; flex-direction: column; }
  .site-header.has-menu .nav-links { gap: 2px; padding: 8px 0 10px; align-items: stretch; }
  .site-header.has-menu .nav-links a.link { padding: 12px 10px; border-radius: 10px; opacity: 1; }
  .site-header.has-menu .nav-links a.link:hover { background: rgba(99,102,241,.08); }
  .site-header.has-menu .nav-cta { gap: 10px; padding: 12px 0 16px; align-items: stretch;
    border-top: 1px solid var(--border); }
  .site-header.has-menu .nav-cta .link,
  .site-header.has-menu .nav-cta .btn { width: 100%; justify-content: center; text-align: center; }
  /* "Log in" is a bare text link on desktop — in the drawer it becomes a
     full-size ghost button so it matches "Start free" instead of looking tiny. */
  .site-header.has-menu .nav-cta a.link { display: flex; align-items: center; justify-content: center;
    padding: 11px 10px; border: 1px solid var(--border); border-radius: 10px; font-weight: 600; }
  .site-header.has-menu .nav-cta a.link:hover { border-color: var(--brand); color: var(--brand); }
  .site-header.has-menu .nav-cta .theme-toggle { align-self: center; width: 100%; }
}

/* ---------- Theme toggle ---------- */
/* Explicit color is load-bearing: buttons don't inherit color, and the
   sun/moon SVG strokes currentColor — without it the icon goes near-black
   and disappears in dark mode. --ink flips with the theme. */
.theme-toggle { background: transparent; border: 1px solid var(--border); border-radius: 10px;
  color: var(--ink);
  width: 40px; height: 40px; font-size: 1.05rem; cursor: pointer; transition: .18s; line-height: 1; }
.theme-toggle:hover { border-color: var(--brand); transform: rotate(-12deg); }

/* ---------- Dark mode ---------- */
[data-theme="dark"] {
  --ink: #e7ebf3; --muted: #9aa6b6; --white: #0b1120; --soft: #0f172a; --border: #1f2a3d;
  --shadow: 0 10px 30px -12px rgba(0,0,0,.5);
}
[data-theme="dark"] body { background: #0b1120; }
[data-theme="dark"] .site-header { background: rgba(11,17,32,.82); border-bottom-color: var(--border); }
[data-theme="dark"] .brand, [data-theme="dark"] .nav-links a.link { color: #e7ebf3; }
[data-theme="dark"] .feature, [data-theme="dark"] .plan,
[data-theme="dark"] table.cmp, [data-theme="dark"] .faq details,
[data-theme="dark"] .hero-mock { background: #111a2e; border-color: var(--border); }
[data-theme="dark"] .plan li { color: #cbd5e1; }
[data-theme="dark"] table.cmp thead th { background: #0f172a; }
[data-theme="dark"] table.cmp th, [data-theme="dark"] table.cmp td { border-bottom-color: var(--border); color: #cbd5e1; }
[data-theme="dark"] .col-brand { background: rgba(99,102,241,.14); }
[data-theme="dark"] .table-wrap { border-color: var(--border); }
[data-theme="dark"] .btn-ghost { background: #111a2e; color: #e7ebf3; border-color: var(--border); }
[data-theme="dark"] .hero-mock .bar { background: #0f172a; }
[data-theme="dark"] .hero-mock .tile, [data-theme="dark"] .hero-mock .row { border-color: var(--border); }
[data-theme="dark"] .prose p, [data-theme="dark"] .prose li { color: #cbd5e1; }

/* ---------- Animations ---------- */
@keyframes ppUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.hero .eyebrow { animation: ppUp .6s ease both; }
.hero h1 { animation: ppUp .6s .06s ease both; }
.hero p.lead { animation: ppUp .6s .14s ease both; }
.hero .cta-row { animation: ppUp .6s .22s ease both; }
.hero .note { animation: ppUp .6s .3s ease both; }
.hero-mock { animation: ppUp .8s .34s ease both; }

/* JS adds .reveal to off-screen blocks, then .in when scrolled into view */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .hero .eyebrow, .hero h1, .hero p.lead, .hero .cta-row, .hero .note, .hero-mock { animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---------- Hero "wow" layer ---------- */
.hero { position: relative; overflow: hidden; }
.hero::after {
  content: ''; position: absolute; inset: -30% -15% auto -15%; height: 760px; z-index: 0; pointer-events: none;
  background:
    radial-gradient(38% 38% at 22% 18%, rgba(99,102,241,.40), transparent 60%),
    radial-gradient(40% 40% at 80% 8%, rgba(139,92,246,.38), transparent 60%),
    radial-gradient(36% 36% at 62% 48%, rgba(56,189,248,.28), transparent 60%);
  filter: blur(46px); animation: aurora 16s ease-in-out infinite alternate;
}
.hero .container { position: relative; z-index: 1; }
@keyframes aurora {
  0%   { transform: translate3d(0,0,0) scale(1); }
  50%  { transform: translate3d(-4%,2%,0) scale(1.12); }
  100% { transform: translate3d(4%,-2%,0) scale(1.06); }
}

/* Shimmering headline */
.gradient-text {
  background: linear-gradient(90deg, #6366f1, #8b5cf6, #38bdf8, #8b5cf6, #6366f1);
  background-size: 300% 100%; -webkit-background-clip: text; background-clip: text;
  /* color:transparent alone lets Firefox repaint the text box white mid-animation.
     Pinning the fill with -webkit-text-fill-color stops the flicker. */
  color: transparent; -webkit-text-fill-color: transparent;
  will-change: background-position;
  animation: shimmer 7s linear infinite;
}
@keyframes shimmer { to { background-position: 300% 0; } }

/* Live pip in the eyebrow */
.live-pip { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; margin-right: 2px;
  box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: pip 1.8s ease-out infinite; }
@keyframes pip { 70% { box-shadow: 0 0 0 8px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }

/* Glowing primary CTA + animated arrow */
.btn-primary.glow { position: relative; }
.btn-primary.glow::after { content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  animation: glow 2.6s ease-out infinite; }
@keyframes glow {
  0%   { box-shadow: 0 0 0 0 rgba(99,102,241,.55); }
  70%  { box-shadow: 0 0 0 18px rgba(99,102,241,0); }
  100% { box-shadow: 0 0 0 0 rgba(99,102,241,0); }
}
.btn .arrow { display: inline-block; transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(5px); }

/* Hero mock: title + floating + live row */
.hero-mock { animation: ppUp .8s .34s ease both, float 7s ease-in-out 1.2s infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.hero-mock .bar { position: relative; }
.hero-mock .bar-title { position: absolute; left: 0; right: 0; text-align: center; font-size: .8rem; color: #94a3b8; font-weight: 600; }
.hero-mock .row { transition: background .45s ease; }
.dot.pulse.r { animation: pingRed 1.6s ease-out infinite; }
.dot.pulse.g { animation: pingGreen 1.6s ease-out infinite; }
@keyframes pingRed { 0% { box-shadow: 0 0 0 0 rgba(220,38,38,.55);} 70% { box-shadow: 0 0 0 9px rgba(220,38,38,0);} 100% { box-shadow: 0 0 0 0 rgba(220,38,38,0);} }
@keyframes pingGreen { 0% { box-shadow: 0 0 0 0 rgba(22,163,74,.5);} 70% { box-shadow: 0 0 0 9px rgba(22,163,74,0);} 100% { box-shadow: 0 0 0 0 rgba(22,163,74,0);} }

/* Count-up numbers + uptime bars */
.count { font-variant-numeric: tabular-nums; }
.bars-row { grid-column: 1 / -1; display: flex; gap: 3px; align-items: flex-end; height: 44px; margin: 4px 0; }
.bars-row i { flex: 1; background: #22c55e; border-radius: 2px; height: var(--h, 70%); transform: scaleY(0);
  transform-origin: bottom; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.bars-row.in i { transform: scaleY(1); }
.bars-row i.down { background: #ef4444; }

/* Card shine + lift */
.feature { position: relative; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.feature::after { content: ''; position: absolute; top: 0; left: -70%; width: 45%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-20deg); transition: left .6s ease; }
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(99,102,241,.4); }
.feature:hover::after { left: 130%; }
.plan { transition: transform .2s ease, box-shadow .2s ease; }
/* Hover lift uses a deeper shadow than the featured card's resting --shadow,
   so the Pro card visibly gains depth on hover instead of looking inert. */
.plan:hover { transform: translateY(-4px); box-shadow: 0 22px 48px -16px rgba(16,24,40,.28); }

/* ---------- Channel marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--border); background: var(--soft); padding: 18px 0; }
.marquee .track { display: flex; gap: 52px; width: max-content; animation: scrollx 26s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.marquee span { font-weight: 700; color: var(--muted); white-space: nowrap; font-size: 1.05rem; opacity: .85; display: inline-flex; gap: 8px; align-items: center; }
@keyframes scrollx { to { transform: translateX(-50%); } }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 26px; text-align: center; transition: transform .2s, box-shadow .2s; }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step .num { width: 46px; height: 46px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; font-size: 1.1rem; display: grid; place-items: center; margin: 0 auto 16px; box-shadow: 0 10px 22px -10px rgba(99,102,241,.7); }
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { color: var(--muted); margin: 0; }

/* ---------- Stats band ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat .stat-num { font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.03em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.stat .stat-label { color: var(--muted); font-weight: 500; }

/* ---------- Testimonials ---------- */
.tcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tcard { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; transition: transform .2s, box-shadow .2s; }
.tcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tcard .stars { color: #f59f00; margin-bottom: 10px; letter-spacing: 2px; }
.tcard p { font-size: 1.02rem; color: #334155; }
.tcard .who { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.tcard .av { width: 42px; height: 42px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 700; }
.tcard .who b { display: block; } .tcard .who small { color: var(--muted); }

[data-theme="dark"] .step, [data-theme="dark"] .tcard { background: #111a2e; border-color: var(--border); }
[data-theme="dark"] .tcard p { color: #cbd5e1; }

@media (max-width: 860px) {
  .steps, .tcards { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .hero::after, .gradient-text, .live-pip, .btn-primary.glow::after, .hero-mock, .dot.pulse.r, .dot.pulse.g, .marquee .track { animation: none !important; }
  .bars-row i { transform: scaleY(1) !important; }
}

/* ================= Attract pass: brand mark, hero story, spotlight ================= */

/* Brand mark icon (replaces the emoji) */
.brand .mark { flex: none; border-radius: 8px; display: block; background: #0f172a; }
.brand:hover .mark { animation: markPing 1s ease-out; }
@keyframes markPing { 0% { transform: scale(1); } 30% { transform: scale(1.14) rotate(-6deg); } 100% { transform: scale(1); } }

/* Dot-grid depth layer behind the hero (under the aurora) */
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(circle, rgba(99,102,241,.16) 1px, transparent 1.6px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(75% 60% at 50% 38%, #000 30%, transparent 75%);
  mask-image: radial-gradient(75% 60% at 50% 38%, #000 30%, transparent 75%);
}
[data-theme="dark"] .hero::before { background-image: radial-gradient(circle, rgba(139,92,246,.2) 1px, transparent 1.6px); }

/* Trust chips under the hero CTAs */
.trust-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.trust-row span { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 600;
  color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 6px 13px; background: var(--white); }
.trust-row b { color: var(--green); }

/* ---- Hero stage: dashboard mock + floating phone notification ---- */
.hero-stage { position: relative; max-width: 980px; margin: 56px auto 0; }
.hero-stage .hero-mock { margin: 0 auto; }
.hero-phone {
  position: absolute; right: -26px; bottom: -34px; width: 264px; z-index: 2;
  border-radius: 30px; padding: 16px 14px 20px; transform: rotate(3deg);
  background: linear-gradient(165deg, #131c31, #0b1120);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 30px 60px -18px rgba(2,6,23,.55), inset 0 1px 0 rgba(255,255,255,.08);
  animation: phoneFloat 8s ease-in-out 2s infinite;
}
@keyframes phoneFloat { 0%,100% { transform: rotate(3deg) translateY(0); } 50% { transform: rotate(2.2deg) translateY(-8px); } }
.hero-phone .p-notch { width: 86px; height: 9px; border-radius: 999px; background: rgba(255,255,255,.14); margin: 0 auto 14px; }
.hero-phone .p-time { text-align: center; color: #e7ebf3; font-weight: 800; font-size: 1.7rem; letter-spacing: -.02em; }
.hero-phone .p-date { text-align: center; color: #7c8aa0; font-size: .74rem; margin-bottom: 14px; }
.hero-phone .p-alert {
  background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.12); border-radius: 14px;
  padding: 10px 12px; backdrop-filter: blur(6px);
  opacity: 0; transform: translateY(14px) scale(.96); transition: opacity .4s ease, transform .4s cubic-bezier(.2,1.2,.3,1);
}
.hero-phone .p-alert.show { opacity: 1; transform: none; }
.hero-phone .pa-head { display: flex; align-items: center; gap: 6px; font-size: .72rem; color: #9fb0c8; margin-bottom: 5px; }
.hero-phone .pa-head b { color: #e7ebf3; }
.hero-phone .pa-ic { width: 18px; height: 18px; border-radius: 5px; background: var(--grad); display: grid; place-items: center; font-size: .6rem; }
.hero-phone .pa-body { color: #e7ebf3; font-size: .82rem; line-height: 1.45; font-weight: 500; }
@media (max-width: 1080px) { .hero-phone { display: none; } }

/* ---- Cursor spotlight on cards (JS sets --mx / --my) ---- */
.spot { position: relative; }
.spot::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; opacity: 0; z-index: 0;
  transition: opacity .3s ease; pointer-events: none;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(99,102,241,.14), transparent 65%);
}
.spot:hover::before { opacity: 1; }
.spot > * { position: relative; z-index: 1; }

/* ---- Billing interval toggle (pricing page) ---- */
.bill-toggle { display: inline-flex; gap: 4px; padding: 5px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--white); margin: 22px auto 0; }
.bill-toggle button { border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 700;
  font-size: .92rem; padding: 8px 20px; border-radius: 999px; cursor: pointer; transition: .18s; display: inline-flex; gap: 8px; align-items: center; }
.bill-toggle button.on { background: var(--grad); color: #fff; box-shadow: 0 8px 18px -8px rgba(99,102,241,.6); }
.bill-toggle .save { font-size: .68rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: rgba(34,197,94,.16); color: #15803d; }
.bill-toggle button.on .save { background: rgba(255,255,255,.22); color: #fff; }
.price-note { min-height: 1.4em; }

@media (prefers-reduced-motion: reduce) {
  .hero-phone { animation: none !important; }
  .brand:hover .mark { animation: none !important; }
  .hero-phone .p-alert { transition: none !important; }
}
