/* ============================================================
   MAESTRO — Marketing homepage styles
   Built on the Momentous token system (paper + deep violet).
   Voice: witness, not hype. Color is information, not decoration.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }

/* Accent palettes are defined once in tokens.css (shared site + app). */

/* Pure-white surface variant */
:root[data-surface="white"] { --paper: #FFFFFF; --surface: #FFFFFF; --surface-sunk: #F4F2EE; }

/* ---- Layout primitives ---- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) { .wrap { padding: 0 20px; } }

.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
@media (max-width: 720px) { .section { padding: 64px 0; } }

.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--text-2xs);
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--fg-tertiary);
  margin: 0 0 16px;
}
.eyebrow--accent { color: var(--accent); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-sans); font-size: var(--text-base);
  font-weight: var(--weight-medium); line-height: 1;
  padding: 13px 20px; border-radius: 6px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
  white-space: nowrap;
}
.btn--primary { background: var(--accent); color: var(--accent-fg); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--primary:active { background: var(--accent-press); }
.btn--ghost { background: transparent; color: var(--fg); border-color: var(--border-strong); }
.btn--ghost:hover { background: var(--surface-hover); border-color: var(--fg-tertiary); }
.btn--lg { padding: 16px 26px; font-size: var(--text-md); }
.btn--sm { padding: 9px 14px; font-size: var(--text-sm); }
.btn .ic { width: 18px; height: 18px; stroke-width: 1.5; }

/* ---- Nav ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav__inner { display: flex; align-items: center; gap: 32px; height: 64px; }
.nav__links { display: flex; gap: 28px; margin-left: 8px; }
.nav__links a {
  font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--fg-secondary);
  text-decoration: none; transition: color 120ms ease;
}
.nav__links a:hover { color: var(--fg); }
.nav__right { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.nav__signin { font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--fg); text-decoration: none; }
.nav__signin:hover { color: var(--accent); }
@media (max-width: 860px) { .nav__links { display: none; } }

/* ---- Logo ---- */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo__mark { height: 24px; width: auto; display: block; }
.logo__word { font-family: var(--font-display); font-size: 20px; font-weight: var(--weight-bold); letter-spacing: -0.02em; color: var(--fg); }

/* ---- Hero ---- */
.hero { padding: 84px 0 72px; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }
:root[data-hero="center"] .hero__grid { grid-template-columns: 1fr; max-width: 820px; margin: 0 auto; text-align: center; }
:root[data-hero="center"] .hero__visual { display: none; }
:root[data-hero="center"] .hero__cta { justify-content: center; }
:root[data-hero="center"] .hero__meta { justify-content: center; }
@media (max-width: 920px) { .hero__grid { grid-template-columns: 1fr; gap: 40px; } .hero__visual { display: none; } }

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 62px);
  font-weight: var(--weight-bold);
  line-height: 1.0; letter-spacing: -0.025em;
  margin: 0 0 22px; color: var(--fg);
  text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero__lead { font-size: var(--text-md); line-height: var(--lh-normal); color: var(--fg-secondary); max-width: 30em; margin: 0 0 32px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.hero__meta { display: flex; gap: 18px; align-items: center; color: var(--fg-tertiary); font-size: var(--text-sm); flex-wrap: wrap; }
.hero__meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero__meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--border-strong); }

/* Headline style variant: clean (Geist instead of Bricolage display) */
:root[data-headline="clean"] .hero h1,
:root[data-headline="clean"] .shead h2,
:root[data-headline="clean"] .quote blockquote,
:root[data-headline="clean"] .ctaband h2,
:root[data-headline="clean"] .h-display {
  font-family: var(--font-sans);
  font-weight: var(--weight-semibold);
  letter-spacing: -0.03em;
}

/* ---- Hero visual: the orchestration score ---- */
.score {
  border: 1px solid var(--border); border-radius: 14px; background: var(--surface);
  padding: 28px; box-shadow: var(--shadow-md);
}
.score__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.score__title { font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--fg); }
.score__badge {
  font-family: var(--font-mono); font-size: var(--text-2xs); font-variant-numeric: tabular-nums;
  color: var(--accent); background: var(--accent-soft); padding: 4px 9px; border-radius: 999px;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.staff { display: flex; flex-direction: column; gap: 14px; }
.lane { display: grid; grid-template-columns: 78px 1fr; align-items: center; gap: 14px; }
.lane__label { font-family: var(--font-mono); font-size: var(--text-2xs); color: var(--fg-tertiary); text-transform: uppercase; letter-spacing: 0.06em; text-align: right; }
.lane__track { position: relative; height: 34px; border-radius: 8px; background: var(--surface-sunk); overflow: hidden; }
.lane__fill { position: absolute; top: 0; bottom: 0; left: 0; border-radius: 8px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent); display: flex; align-items: center; padding: 0 12px; }
.lane__fill .nub { font-family: var(--font-mono); font-size: var(--text-2xs); color: var(--accent); font-variant-numeric: tabular-nums; }
.score__foot { display: flex; align-items: center; gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
.score__foot .readout-small { color: var(--fg); }
.score__foot .lbl { font-size: var(--text-xs); color: var(--fg-tertiary); }

/* ---- Trust bar ---- */
.trust { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 30px 0; }
.trust__label { text-align: center; font-size: var(--text-xs); color: var(--fg-tertiary); margin: 0 0 20px; letter-spacing: 0.02em; }
.trust__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 40px; }
.trust__row .mark { font-size: var(--text-md); font-weight: var(--weight-semibold); color: var(--fg-quaternary); letter-spacing: -0.01em; transition: color 160ms ease; }
.trust__row .mark:hover { color: var(--fg-secondary); }

/* ---- Section header ---- */
.shead { max-width: 640px; margin-bottom: 48px; }
.shead--center { margin-left: auto; margin-right: auto; text-align: center; }
.shead h2 { font-family: var(--font-display); font-size: clamp(28px, 3.6vw, 40px); font-weight: var(--weight-bold); line-height: 1.06; letter-spacing: -0.02em; margin: 0 0 16px; color: var(--fg); text-wrap: balance; }
.shead p { font-size: var(--text-md); color: var(--fg-secondary); line-height: var(--lh-normal); margin: 0; }

/* ---- Three paths ---- */
.paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
@media (max-width: 860px) { .paths { grid-template-columns: 1fr; } }
.path { background: var(--surface); padding: 36px 30px; display: flex; flex-direction: column; transition: background 160ms ease; }
.path:hover { background: var(--surface-hover); }
.path__no { font-family: var(--font-mono); font-size: var(--text-2xs); color: var(--fg-quaternary); letter-spacing: 0.1em; margin-bottom: 28px; }
.path__ic { width: 28px; height: 28px; stroke: var(--accent); stroke-width: 1.5; margin-bottom: 18px; }
.path h3 { font-family: var(--font-sans); font-size: var(--text-xl); font-weight: var(--weight-semibold); letter-spacing: -0.02em; margin: 0 0 10px; color: var(--fg); }
.path p { font-size: var(--text-base); color: var(--fg-secondary); line-height: var(--lh-normal); margin: 0 0 22px; }
.path__list { list-style: none; padding: 0; margin: auto 0 0; display: flex; flex-direction: column; gap: 10px; }
.path__list li { display: flex; gap: 10px; font-size: var(--text-sm); color: var(--fg-secondary); align-items: flex-start; }
.path__list .ic { width: 16px; height: 16px; stroke: var(--fg-tertiary); stroke-width: 1.5; flex: none; margin-top: 2px; }

/* ---- Stats band ---- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border-block: 1px solid var(--border); }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { background: var(--paper); padding: 40px 28px; text-align: center; }
.stat__num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-feature-settings: "tnum","ss01"; font-size: clamp(34px, 4vw, 48px); font-weight: var(--weight-medium); letter-spacing: -0.02em; color: var(--fg); line-height: 1; }
.stat__num .u { font-size: 0.5em; color: var(--fg-tertiary); font-weight: var(--weight-regular); margin-left: 2px; }
.stat__lbl { font-size: var(--text-sm); color: var(--fg-secondary); margin-top: 12px; }

/* ---- How it works ---- */
.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 860px) { .flow { grid-template-columns: 1fr; } }
.flow__step { padding-top: 22px; border-top: 2px solid var(--accent); }
.flow__step .k { font-family: var(--font-mono); font-size: var(--text-2xs); color: var(--accent); letter-spacing: 0.1em; }
.flow__step h4 { font-size: var(--text-lg); font-weight: var(--weight-semibold); letter-spacing: -0.02em; margin: 14px 0 8px; }
.flow__step p { font-size: var(--text-sm); color: var(--fg-secondary); margin: 0; line-height: var(--lh-normal); }

/* ---- Pricing ---- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .pricing { grid-template-columns: 1fr; } }
.plan { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); padding: 30px; display: flex; flex-direction: column; }
.plan--feature { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); position: relative; }
.plan__tag { position: absolute; top: -11px; left: 30px; background: var(--accent); color: var(--accent-fg); font-size: var(--text-2xs); font-weight: var(--weight-medium); text-transform: uppercase; letter-spacing: 0.08em; padding: 4px 10px; border-radius: 999px; }
.plan__name { font-size: var(--text-md); font-weight: var(--weight-semibold); color: var(--fg); margin-bottom: 6px; }
.plan__desc { font-size: var(--text-sm); color: var(--fg-tertiary); margin-bottom: 22px; min-height: 2.4em; }
.plan__price { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 40px; font-weight: var(--weight-medium); letter-spacing: -0.02em; color: var(--fg); line-height: 1; }
.plan__price .per { font-family: var(--font-sans); font-size: var(--text-sm); font-weight: var(--weight-regular); color: var(--fg-tertiary); margin-left: 6px; }
.plan__rule { height: 1px; background: var(--border); margin: 24px 0; }
.plan__list { list-style: none; padding: 0; margin: 0 0 26px; display: flex; flex-direction: column; gap: 12px; }
.plan__list li { display: flex; gap: 10px; font-size: var(--text-sm); color: var(--fg-secondary); align-items: flex-start; }
.plan__list .ic { width: 16px; height: 16px; stroke: var(--accent); stroke-width: 1.5; flex: none; margin-top: 2px; }
.plan .btn { margin-top: auto; justify-content: center; }

/* ---- Calculator ---- */
.calc { border: 1px solid var(--border); border-radius: 12px; background: var(--surface-sunk); padding: 28px 30px; margin-top: 16px; display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; }
@media (max-width: 720px) { .calc { grid-template-columns: 1fr; } }
.calc__label { font-size: var(--text-sm); color: var(--fg-secondary); margin-bottom: 14px; display: flex; justify-content: space-between; }
.calc__label b { font-family: var(--font-mono); color: var(--fg); font-variant-numeric: tabular-nums; }
.calc input[type="range"] { width: 100%; accent-color: var(--accent); height: 4px; }
.calc__out { text-align: right; border-left: 1px solid var(--border); padding-left: 28px; }
@media (max-width: 720px) { .calc__out { border-left: 0; padding-left: 0; text-align: left; border-top: 1px solid var(--border); padding-top: 20px; } }
.calc__out .v { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 34px; font-weight: var(--weight-medium); color: var(--accent); letter-spacing: -0.02em; }
.calc__out .v .per { font-family: var(--font-sans); font-size: var(--text-sm); color: var(--fg-tertiary); }
.calc__out .k { font-size: var(--text-2xs); text-transform: uppercase; letter-spacing: 0.08em; color: var(--fg-tertiary); margin-top: 4px; }

/* ---- Connectors ---- */
.conns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
@media (max-width: 860px) { .conns { grid-template-columns: repeat(2, 1fr); } }
.conn { background: var(--surface); padding: 22px 20px; display: flex; align-items: center; gap: 12px; transition: background 160ms ease; }
.conn:hover { background: var(--surface-hover); }
.conn__dot { width: 30px; height: 30px; border-radius: 7px; background: var(--surface-sunk); border: 1px solid var(--border); display: grid; place-items: center; flex: none; }
.conn__dot .ic { width: 16px; height: 16px; stroke: var(--fg-secondary); stroke-width: 1.5; }
.conn__name { font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--fg); }

/* ---- Quote ---- */
.quote { max-width: 880px; margin: 0 auto; text-align: center; }
.quote blockquote { font-family: var(--font-display); font-size: clamp(24px, 3.2vw, 34px); font-weight: var(--weight-medium); line-height: 1.24; letter-spacing: -0.02em; color: var(--fg); margin: 0 0 28px; text-wrap: balance; }
.quote__cite { display: inline-flex; align-items: center; gap: 12px; }
.quote__av { width: 38px; height: 38px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: var(--text-sm); font-weight: var(--weight-semibold); }
.quote__who { text-align: left; }
.quote__who b { display: block; font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--fg); }
.quote__who span { font-size: var(--text-xs); color: var(--fg-tertiary); }

/* ---- Migrate comparison ---- */
.compare { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--surface); }
@media (max-width: 720px) { .compare { grid-template-columns: 1fr; } }
.compare__col { padding: 34px 32px; }
.compare__col--from { background: var(--surface-sunk); }
.compare__arrow { display: grid; place-items: center; padding: 0 8px; background: var(--surface-sunk); border-inline: 1px solid var(--border); }
@media (max-width: 720px) { .compare__arrow { padding: 14px; border-inline: 0; border-block: 1px solid var(--border); transform: rotate(90deg); } }
.compare__arrow .ic { width: 24px; height: 24px; stroke: var(--fg-tertiary); stroke-width: 1.5; }
.compare__col .eyebrow { margin-bottom: 18px; }
.compare__price { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 34px; font-weight: var(--weight-medium); letter-spacing: -0.02em; line-height: 1; margin-bottom: 6px; }
.compare__col--from .compare__price { color: var(--fg-secondary); }
.compare__col--to .compare__price { color: var(--accent); }
.compare__sub { font-size: var(--text-sm); color: var(--fg-tertiary); margin-bottom: 22px; }
.compare__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; }
.compare__list li { font-size: var(--text-sm); color: var(--fg-secondary); display: flex; gap: 9px; align-items: flex-start; }
.compare__list .ic { width: 15px; height: 15px; stroke-width: 1.5; flex: none; margin-top: 3px; }
.compare__col--from .ic { stroke: var(--coral); }
.compare__col--to .ic { stroke: var(--accent); }

/* ---- CTA band ---- */
.ctaband { background: var(--accent); border-radius: 16px; padding: 64px; text-align: center; position: relative; overflow: hidden; }
@media (max-width: 720px) { .ctaband { padding: 44px 28px; } }
.ctaband h2 { font-family: var(--font-display); font-size: clamp(28px, 4vw, 42px); font-weight: var(--weight-bold); letter-spacing: -0.02em; color: var(--accent-fg); margin: 0 0 16px; line-height: 1.06; text-wrap: balance; }
.ctaband p { font-size: var(--text-md); color: color-mix(in srgb, var(--accent-fg) 78%, transparent); margin: 0 auto 32px; max-width: 38em; }
.ctaband .btn--primary { background: var(--accent-fg); color: var(--accent); }
.ctaband .btn--primary:hover { background: color-mix(in srgb, var(--accent-fg) 88%, var(--fg)); }
.ctaband .btn--ghost { color: var(--accent-fg); border-color: color-mix(in srgb, var(--accent-fg) 40%, transparent); }
.ctaband .btn--ghost:hover { background: color-mix(in srgb, var(--accent-fg) 12%, transparent); border-color: var(--accent-fg); }
.ctaband__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.ctaband__staff { position: absolute; inset: 0; opacity: 0.10; pointer-events: none; }

/* ---- Footer ---- */
.footer { border-top: 1px solid var(--border); padding: 56px 0 40px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 44px; }
@media (max-width: 720px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
.footer__blurb { font-size: var(--text-sm); color: var(--fg-tertiary); max-width: 24em; margin: 16px 0 0; line-height: var(--lh-normal); }
.footer__col h5 { font-size: var(--text-2xs); text-transform: uppercase; letter-spacing: 0.08em; color: var(--fg-tertiary); margin: 0 0 16px; font-weight: var(--weight-semibold); }
.footer__col a { display: block; font-size: var(--text-sm); color: var(--fg-secondary); text-decoration: none; margin-bottom: 11px; }
.footer__col a:hover { color: var(--accent); }
.footer__bar { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; border-top: 1px solid var(--border); font-size: var(--text-xs); color: var(--fg-tertiary); flex-wrap: wrap; gap: 12px; }

/* ---- Reveal on scroll ---- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 600ms cubic-bezier(0.2,0,0,1), transform 600ms cubic-bezier(0.2,0,0,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ============================================================
   IMPACT PASS — cinematic dark hero, scroll-aware nav,
   oversized numerals, count-up stats.
   ============================================================ */
:root { --hero-ink:#0A0C10; --hero-ink2:#111620; --hero-accent:#5CC9B8; }

/* Fixed, scroll-aware nav (transparent over the dark hero) */
.nav { position: fixed; left: 0; right: 0; background: transparent; backdrop-filter: none; border-bottom-color: transparent; transition: background 260ms ease, border-color 260ms ease, backdrop-filter 260ms ease; }
.nav--solid { background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(140%) blur(10px); border-bottom-color: var(--border); }
.nav:not(.nav--solid) .logo__word { color: #F6F8FA; }
.nav:not(.nav--solid) .nav__links a { color: rgba(246,248,250,0.70); }
.nav:not(.nav--solid) .nav__links a:hover { color: #fff; }
.nav:not(.nav--solid) .nav__signin { color: rgba(246,248,250,0.86); }
.nav:not(.nav--solid) .nav__signin:hover { color: #fff; }
#platform, #solutions, #connectors, #pricing { scroll-margin-top: 84px; }

/* Hero: full-bleed dark, oversized display */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: 176px 0 116px; color: #F4F6F8;
  background: radial-gradient(125% 100% at 82% -20%, #17322E 0%, var(--hero-ink2) 44%, var(--hero-ink) 100%); }
.hero .wrap { position: relative; z-index: 3; }
.hero .eyebrow--accent { color: var(--hero-accent); }
.hero h1 { font-family: var(--font-display) !important; color: #F8FAFB; font-weight: 800 !important;
  font-size: clamp(44px, 6vw, 76px) !important; letter-spacing: -0.035em !important; line-height: 0.98 !important; margin-bottom: 26px; }
.hero h1 em { color: var(--hero-accent); font-style: normal; }
.hero__lead { color: rgba(244,246,248,0.72); font-size: var(--text-lg); max-width: 30em; }
.hero__meta { color: rgba(244,246,248,0.52); }
.hero__meta .dot { background: rgba(244,246,248,0.30); }
.hero .btn--ghost { color: #fff; border-color: rgba(255,255,255,0.22); }
.hero .btn--ghost:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.5); }

/* Glow + equalizer */
.hero__glow { position: absolute; z-index: 0; width: 640px; height: 640px; border-radius: 50%; top: -220px; right: -120px;
  background: radial-gradient(circle, rgba(92,201,184,0.22), transparent 68%); filter: blur(24px); pointer-events: none; }
.hero__eq { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: 44%; display: flex; align-items: flex-end; gap: 5px; padding: 0 18px;
  opacity: 0.42; pointer-events: none; -webkit-mask: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); mask: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }
.hero__eq span { flex: 1; height: 100%; border-radius: 3px 3px 0 0; transform-origin: bottom; transform: scaleY(0.14);
  background: linear-gradient(to top, rgba(92,201,184,0.02), var(--hero-accent)); animation: eqPulse 1.6s ease-in-out infinite; }
.hero__eq span.c { background: linear-gradient(to top, rgba(242,118,108,0.02), #F2766C); }
@keyframes eqPulse { 0%,100% { transform: scaleY(0.12); } 50% { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .hero__eq span { animation: none; transform: scaleY(0.4); } }

/* Score card, dark-glass */
.hero .score { background: rgba(255,255,255,0.045); border: 1px solid rgba(255,255,255,0.10); backdrop-filter: blur(10px);
  box-shadow: 0 34px 90px -34px rgba(0,0,0,0.7); }
.hero .score__title { color: #F4F6F8; }
.hero .score__badge { background: rgba(92,201,184,0.16); color: var(--hero-accent); }
.hero .lane__label { color: rgba(244,246,248,0.48); }
.hero .lane__track { background: rgba(255,255,255,0.06); }
.hero .lane__fill { background: rgba(92,201,184,0.14); border-color: rgba(92,201,184,0.42); }
.hero .lane__fill .nub { color: var(--hero-accent); }
.hero .lane--live .lane__fill { animation: laneLive 3.2s ease-in-out infinite; }
@keyframes laneLive { 0%,100% { width: 64%; } 50% { width: 84%; } }
@media (prefers-reduced-motion: reduce) { .hero .lane--live .lane__fill { animation: none; } }
.hero .score__foot { border-top-color: rgba(255,255,255,0.10); }
.hero .score__foot .readout-small { color: #fff; }
.hero .score__foot .lbl { color: rgba(244,246,248,0.5); }

/* Bolder section headers */
.shead h2 { font-size: clamp(32px, 4.4vw, 52px); letter-spacing: -0.03em; line-height: 1.02; }

/* Oversized ghost numerals on the three movements */
.path { position: relative; overflow: hidden; }
.path > * { position: relative; z-index: 1; }
.path::after { content: attr(data-n); position: absolute; z-index: 0; top: -34px; right: -8px; font-family: var(--font-display);
  font-weight: 800; font-size: 168px; line-height: 1; color: var(--fg); opacity: 0.045; pointer-events: none; }

/* Bigger stats */
.stat__num { font-size: clamp(40px, 5vw, 60px); }

/* ============================================================
   PRODUCTION POLISH — reference-bar craft pass.
   Micro-interactions, entrance motion, focus/selection states.
   ============================================================ */

/* Global craft */
/* Buttons control their own colour via .btn--* — keep the generic link colour
   off them, or a:hover (accent) would override a primary button's label to match
   its hover background and the text would vanish on hover. */
a:not(.btn) { color: var(--accent); text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent); }
a:not(.btn):hover { color: var(--accent-hover); }
::selection { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--fg); }
* { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 8px; border: 3px solid var(--paper); }
a:focus-visible, button:focus-visible, .btn:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 5px;
}
.nav:not(.nav--solid) a:focus-visible, .hero a:focus-visible { outline-color: var(--hero-accent); }
.hero__lead, .shead p, .path p { text-wrap: pretty; }

/* Button interaction refinement */
.btn { transition: background 120ms ease, border-color 120ms ease, color 120ms ease, transform 140ms cubic-bezier(0.2,0,0,1), box-shadow 140ms ease; }
.btn .ic { transition: transform 160ms cubic-bezier(0.2,0,0,1); }
.btn:hover .ic { transform: translateX(3px); }
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -10px color-mix(in srgb, var(--accent) 72%, transparent); }
.btn--primary:active { transform: translateY(0); box-shadow: none; }
.ctaband .btn--primary:hover { box-shadow: 0 10px 24px -12px rgba(0,0,0,0.4); }

/* Pricing / card lift */
.plan { transition: transform 180ms cubic-bezier(0.2,0,0,1), box-shadow 180ms ease, border-color 160ms ease; }
.plan:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.plan--feature:hover { transform: translateY(-4px); }

/* Nav scroll-spy underline */
.nav__links a { position: relative; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -5px; height: 2px; border-radius: 2px; background: var(--accent); transition: right 260ms cubic-bezier(0.2,0,0,1); }
.nav:not(.nav--solid) .nav__links a::after { background: var(--hero-accent); }
.nav__links a:hover::after, .nav__links a.is-active::after { right: 0; }

/* Second hero glow + film grain */
.hero::before { content: ""; position: absolute; z-index: 0; width: 440px; height: 440px; border-radius: 50%; left: -150px; bottom: -180px; background: radial-gradient(circle, rgba(92,201,184,0.13), transparent 70%); filter: blur(30px); pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* Live-lane shimmer + pulsing badge dot */
.hero .lane--live .lane__fill { position: relative; overflow: hidden; }
.hero .lane--live .lane__fill::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,0.28), transparent); animation: laneShimmer 3.2s ease-in-out infinite; }
@keyframes laneShimmer { 0%,100% { transform: translateX(-100%); } 50% { transform: translateX(100%); } }
.hero .score__badge { display: inline-flex; align-items: center; gap: 6px; }
.hero .score__badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--hero-accent); animation: liveBlink 1.6s ease-in-out infinite; }
@keyframes liveBlink { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

/* Hero staggered entrance (JS adds body.ready) */
@media (prefers-reduced-motion: no-preference) {
  body.ready .hero__copy > * { animation: heroUp 700ms cubic-bezier(0.2,0,0,1) backwards; }
  body.ready .hero__copy > *:nth-child(1) { animation-delay: 60ms; }
  body.ready .hero__copy > *:nth-child(2) { animation-delay: 130ms; }
  body.ready .hero__copy > *:nth-child(3) { animation-delay: 210ms; }
  body.ready .hero__copy > *:nth-child(4) { animation-delay: 300ms; }
  body.ready .hero__copy > *:nth-child(5) { animation-delay: 380ms; }
  body.ready .hero__visual { animation: heroFloat 900ms cubic-bezier(0.2,0,0,1) 260ms backwards; }
}
@keyframes heroUp { from { opacity: 0; transform: translateY(14px); } }
@keyframes heroFloat { from { opacity: 0; transform: translateY(22px) scale(0.985); } }

/* Trust row edge fade */
.trust__row { -webkit-mask: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.trust__row .mark { transition: color 200ms ease, transform 200ms ease; }
.trust__row .mark:hover { transform: translateY(-1px); }

/* ============================================================
   MOBILE NAV + BACK-TO-TOP (shared, injected by scripts/site.js)
   ============================================================ */
.nav__toggle { display: none; flex-direction: column; gap: 5px; width: 42px; height: 42px; align-items: center; justify-content: center; background: none; border: none; cursor: pointer; margin-left: 8px; padding: 0; }
.nav__toggle span { display: block; width: 22px; height: 2px; background: var(--fg); border-radius: 2px; transition: transform 0.25s ease, opacity 0.2s ease; }
.nav:not(.nav--solid) .nav__toggle span { background: #F6F8FA; }
.nav__toggle.open span { background: var(--fg); }
.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav__scrim { position: fixed; inset: 0; background: rgba(10,12,16,0.5); backdrop-filter: blur(2px); opacity: 0; visibility: hidden; transition: opacity 0.25s ease; z-index: 60; }
.nav__scrim.open { opacity: 1; visibility: visible; }
.nav__drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(84vw, 340px); background: var(--paper); border-left: 1px solid var(--border); z-index: 61; transform: translateX(100%); transition: transform 0.3s cubic-bezier(0.2,0,0,1); display: flex; flex-direction: column; gap: 2px; padding: 88px 24px 32px; overflow-y: auto; }
.nav__drawer.open { transform: none; }
.nav__drawer a { font-family: var(--font-sans); font-size: var(--text-md); font-weight: var(--weight-medium); color: var(--fg); text-decoration: none; padding: 14px 4px; border-bottom: 1px solid var(--border); }
.nav__drawer a:hover { color: var(--accent); }
.nav__drawer-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }
.nav__drawer-actions .btn { justify-content: center; }
.nav__drawer-actions a { border-bottom: none; padding: 8px 4px; }
@media (max-width: 860px) { .nav__toggle { display: flex; } .nav__right .nav__signin { display: none; } }
.to-top { position: fixed; right: 24px; bottom: 24px; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--accent-fg); border: none; display: grid; place-items: center; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity 0.25s ease, transform 0.25s ease, background 0.12s ease; z-index: 55; box-shadow: var(--shadow-md); }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--accent-hover); }

/* ============================================================
   RESTORED: skip link (both homepage + subpage layouts use it)
   + homepage mobile menu (.nav__mobile). Subpages use site.js's
   injected .nav__drawer instead.
   ============================================================ */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--surface); color: var(--fg); border: 1px solid var(--border); padding: 10px 16px; border-radius: 6px; font-size: var(--text-sm); font-weight: var(--weight-medium); text-decoration: none; }
.skip-link:focus { left: 16px; top: 12px; }

.nav__mobile { display: none; }
@media (max-width: 860px) {
  .nav__mobile { position: fixed; top: 64px; left: 0; right: 0; z-index: 49; flex-direction: column; gap: 2px; padding: 12px 20px 22px; background: var(--paper); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg); }
  .nav__mobile.open { display: flex; }
  .nav__mobile .mlink { font-size: var(--text-md); font-weight: var(--weight-medium); color: var(--fg); text-decoration: none; padding: 13px 4px; border-bottom: 1px solid var(--border); }
  .nav__mobile .mlink:hover { color: var(--accent); }
  .nav__mobile .mrow { display: flex; gap: 12px; margin-top: 16px; }
  .nav__mobile .mrow .btn { flex: 1; justify-content: center; }
}
