/* =====================================================================
   TRAE VAULT — styles.css (redesign v3: VSL-anchored conversion system)
   Warm-paper base, navy reserved for the three emphasis moments
   (arrival / conversion / exit), serif display type, one blue CTA.
   JS-contract classes preserved: nav/is-scrolled, scroll-progress,
   sticky-cta/is-visible, has-sticky, reveal/in, faq-item/faq-question/
   faq-answer/open, lead-form, js-lead-notice, tier-card__price .amt,
   btn hooks, modal-open, optin-dialog, lead-form-home.
   ===================================================================== */

:root {
  --paper: #faf6ef;
  --paper-2: #f2ebe0;
  --white: #ffffff;
  --ink: #171a21;
  --ink-soft: #4b505c;
  --ink-faint: #6d7280;
  --navy: #0b1120;
  --navy-2: #101a33;
  --navy-3: #16234a;
  --on-navy: #eef1f8;
  --on-navy-soft: #aab3c7;
  --blue: #1b4dff;
  --blue-deep: #0e36c9;
  --blue-soft: #93acff;
  --blue-tint: #e8edff;
  --amber: #f4bd55;
  --gold: #f4bd55;
  --gold-deep: #d99a2b;
  --green: #17805a;
  --line: rgba(23, 26, 33, 0.14);
  --line-strong: rgba(23, 26, 33, 0.24);
  --line-navy: rgba(238, 241, 248, 0.16);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-card: 0 1px 2px rgba(23, 26, 33, 0.05), 0 10px 30px -12px rgba(23, 26, 33, 0.14);
  --shadow-deep: 0 2px 6px rgba(4, 8, 20, 0.4), 0 30px 70px -20px rgba(4, 8, 20, 0.55);
  --shadow-cta: 0 8px 24px -8px rgba(27, 77, 255, 0.55);
  --font-ui: "Inter", -apple-system, "Segoe UI", Arial, sans-serif;
  --font-display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --container: 1120px;
  --container-narrow: 780px;
  /* Motion system — one language for the whole page */
  --motion-fast: 160ms;
  --motion-medium: 420ms;
  --motion-slow: 700ms;
  --motion-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --motion-distance: 14px;
  --motion-stagger: 70ms;
}
/* Breakpoint scale (consolidated): 640 phone · 900 tablet · 1000 tiers */

/* ---------- base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  font-family: var(--font-ui);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  font-size: 1.02rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.modal-open, html.modal-open { overflow: hidden; }
img, svg { max-width: 100%; display: block; }
a { color: var(--blue-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}
.hero :focus-visible, .band--dark :focus-visible { outline-color: var(--amber); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: var(--container-narrow); }

/* ---------- typography ---------- */
.h-display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.7rem, 6.6vw, 4.9rem);
  line-height: 1.04;
  letter-spacing: -0.012em;
}
.h-display em { font-style: italic; color: var(--blue-deep); }
.h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.h3 { font-weight: 700; font-size: 1.22rem; line-height: 1.3; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-soft); max-width: 42em; }
.kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-deep);
  margin-bottom: 14px;
}
.hero .kicker, .band--dark .kicker { color: var(--amber); }
.hero .lead, .band--dark .lead { color: var(--on-navy-soft); }
.muted { color: var(--ink-faint); }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* ---------- bands ---------- */
.band { padding: clamp(64px, 9vw, 116px) 0; }
.band--tint { background: var(--paper-2); }
.band--white { background: var(--white); }
.band--dark { background: var(--navy); color: var(--on-navy); }
.band--dark .h2, .band--dark .h3 { color: var(--on-navy); }
.band-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
.band-head--center { margin-inline: auto; text-align: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  border: 0;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(0) scale(0.985); }
.btn .btn__arrow { transition: transform var(--motion-fast) var(--motion-ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }
.btn--primary {
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 10px 28px -10px rgba(244, 189, 85, 0.62);
}
.btn--primary:hover { background: #ffd078; transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line-strong);
}
.hero .btn--ghost, .band--dark .btn--ghost, .tier-card--featured .btn--ghost {
  color: var(--on-navy); border-color: var(--line-navy);
}
.btn--ghost:hover { border-color: var(--ink); }
.hero .btn--ghost:hover, .band--dark .btn--ghost:hover { border-color: var(--on-navy); }
.btn--lg { padding: 18px 36px; font-size: 1.08rem; }
.btn--md { padding: 14px 26px; font-size: 1rem; }
.btn--sm { padding: 10px 18px; font-size: 0.92rem; }
.btn__arrow { flex: none; }
.cta-note { font-size: 0.9rem; color: var(--ink-faint); margin-top: 12px; }
.hero .cta-note, .band--dark .cta-note { color: var(--on-navy-soft); }

/* ---------- scroll progress + nav ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: var(--blue); z-index: 60;
}
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 246, 239, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: background var(--motion-fast) ease, border-color 0.2s ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
/* Over-hero state: JS-added only (script.js initNav) so the no-JS default stays
   the readable paper bar everywhere. Same height in both states — no layout shift. */
.nav--overhero { background: var(--navy); backdrop-filter: none; }
.nav--overhero .brand { color: var(--on-navy); }
.nav--overhero .brand__mark { background: var(--white); color: var(--navy); }
.nav--overhero .nav__links a { color: var(--on-navy-soft); }
.nav--overhero .nav__links a:hover { color: var(--on-navy); }
.nav__inner {
  max-width: var(--container); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); font-size: 1.05rem; }
.brand:hover { text-decoration: none; }
.brand__mark {
  width: 34px; height: 34px; border-radius: 9px; background: var(--navy); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.82rem; font-weight: 800; letter-spacing: 0.02em;
}
.nav__links { display: flex; gap: 26px; }
.nav__links a { color: var(--ink-soft); font-weight: 600; font-size: 0.95rem; }
.nav__links a:hover { color: var(--ink); text-decoration: none; }
@media (max-width: 900px) { .nav__links { display: none; } }

/* ---------- hero (dark, VSL-anchored) ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(52% 38% at 50% 30%, rgba(244, 189, 85, 0.13), transparent 70%),
    linear-gradient(#0b1120, #0b1120);
  color: var(--on-navy);
  padding: clamp(56px, 8vw, 104px) 0 0;
  overflow: hidden;
}
.hero::before {
  /* faint drafting grid — quiet texture, never content */
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(238, 241, 248, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(238, 241, 248, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  pointer-events: none;
}
.hero__inner { position: relative; text-align: center; max-width: 880px; margin: 0 auto; }
/* Hero entrance: pure CSS, runs with or without JS, readable from frame 0
   (never below opacity 0.6), disabled entirely under reduced motion. */
@keyframes rise-in {
  from { opacity: 0.6; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
.hero .kicker { animation: rise-in var(--motion-slow) var(--motion-ease) both; }
.hero .h-display { animation: rise-in var(--motion-slow) var(--motion-ease) 60ms both; }
.hero .lead { animation: rise-in var(--motion-slow) var(--motion-ease) 130ms both; }
.hero .vsl { animation: rise-in var(--motion-slow) var(--motion-ease) 210ms both; }
.hero .hero__actions { animation: rise-in var(--motion-slow) var(--motion-ease) 300ms both; }
.hero .trust-strip { animation: rise-in var(--motion-slow) var(--motion-ease) 370ms both; }
.hero .hero__proof { animation: rise-in var(--motion-slow) var(--motion-ease) 410ms both; }
.hero .h-display { color: var(--on-navy); }
.hero .h-display em { color: var(--gold); }
.hero .lead { margin: 22px auto 0; }
/* Brand/mechanism signature line beneath the outcome-led H1 (subordinate to it). */
.hero__sig {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.6vw, 1.45rem);
  line-height: 1.2;
  color: var(--blue-soft);
  margin-top: 10px;
  animation: rise-in var(--motion-slow) var(--motion-ease) 95ms both;
}
.hero__actions {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 18px; margin-top: 34px;
}
.hero__fallback {
  margin-top: 14px; color: var(--on-navy-soft); font-size: 0.86rem;
}
.hero__fallback a,
.final-cta .cta-note a { color: var(--on-navy); text-decoration: underline; text-underline-offset: 3px; }
.hero__fallback a:hover,
.final-cta .cta-note a:hover { color: var(--blue-soft); }
.trust-strip {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px;
  margin-top: 26px; font-size: 0.88rem; color: var(--on-navy-soft); font-weight: 600;
}
.trust-strip li { display: inline-flex; align-items: center; gap: 8px; }
.trust-strip svg { color: var(--amber); flex: none; }
.hero__proof {
  max-width: 720px; margin: 18px auto 0;
  color: var(--on-navy-soft); font-size: 0.88rem; line-height: 1.6;
}

/* The loop strip — the hero's closing line, Trae Vault's mechanism in one row */
.loop-strip {
  position: relative;
  margin-top: clamp(44px, 6vw, 64px);
  border-top: 1px solid var(--line-navy);
  padding: 20px 24px calc(20px + clamp(8px, 1.5vw, 16px));
  display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline;
  gap: 6px 14px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--on-navy-soft);
}
.loop-strip i { font-style: normal; color: var(--blue-soft); }
.loop-strip b { color: var(--amber); font-weight: 700; }

/* ---------- VSL component ---------- */
.vsl { position: relative; max-width: 920px; margin: clamp(36px, 5vw, 52px) auto 0; }
/* Prelaunch: the honest placeholder is deliberately subordinate to the hero
   actions above it. When the real video ships (data-vsl-status="live") the frame
   returns to full width. This never hides or spoofs the placeholder. */
.vsl[data-vsl-status="placeholder"] { max-width: 560px; margin-top: clamp(24px, 3.5vw, 36px); }
.vsl__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(160deg, var(--navy-2), var(--navy-3) 60%, var(--navy-2));
  border: 1px solid var(--line-navy);
  box-shadow: var(--shadow-deep), 0 0 0 1px rgba(255, 180, 58, 0.08);
}
.vsl__poster {
  /* Poster layer. Placeholder state: quiet slate texture. Live state: replace
     with the real poster image per docs/vsl-integration.md. */
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(238, 241, 248, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(238, 241, 248, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}
.vsl__poster::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(60% 55% at 50% 45%, rgba(27, 77, 255, 0.22), transparent 75%);
}
/* Ambient keyline breathing — the page's one continuous treatment (hero/VSL only).
   Compositor-friendly (opacity on a pseudo-layer), removed under reduced motion. */
.vsl__frame::before {
  content: "";
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 180, 58, 0.16), inset 0 0 70px rgba(27, 77, 255, 0.12);
  opacity: 0.45;
  animation: vsl-ambient 7s var(--motion-ease) infinite alternate;
}
@keyframes vsl-ambient { to { opacity: 1; } }
.vsl__pending { z-index: 2; }
.vsl__pending {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; text-align: center; padding: 24px;
}
.vsl__badge {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--navy); background: var(--amber);
  padding: 5px 12px; border-radius: 999px;
}
.vsl__title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  color: var(--on-navy); line-height: 1.25;
}
.vsl__note { font-size: 0.88rem; color: var(--on-navy-soft); max-width: 34em; }
.vsl__caption {
  margin-top: 16px; text-align: center;
  font-size: 0.92rem; color: var(--on-navy-soft);
}
.vsl__caption b { color: var(--on-navy); }
/* Live-state chrome, ready for the real player (see docs/vsl-integration.md).
   Not rendered while data-vsl-status="placeholder" — no fake play affordance. */
.vsl__play {
  position: absolute; inset: 0; margin: auto;
  width: 84px; height: 84px; border-radius: 50%;
  background: rgba(250, 246, 239, 0.96); color: var(--navy);
  border: 0; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-deep);
  transition: transform 0.15s ease;
}
.vsl__play:hover { transform: scale(1.05); }
.vsl__media { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vsl__hook {
  position: absolute; z-index: 3; top: 16px; left: 16px; right: 16px;
  padding: 10px 12px; border: 1px solid rgba(255,255,255,0.24); border-radius: 10px;
  background: rgba(11, 17, 32, 0.88); color: var(--on-navy);
  font: 800 clamp(0.92rem, 3.8vw, 1.08rem)/1.2 var(--font-ui);
  letter-spacing: -0.01em; text-align: left; pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
}
.vsl.is-playing .vsl__hook { opacity: 0; transform: translateY(-6px); }
/* Live state: the installed recording is 9:16 portrait, so the player takes the
   video's own geometry rather than pillarboxing it inside a landscape frame.
   Everything here is scoped to [data-vsl-status="live"], so the prelaunch
   placeholder keeps its original 16:9 slate untouched.

   The frame is 9/16 and the media is `contain`, so the two geometries agree
   (608×1080 = 0.5630 vs 9/16 = 0.5625) and no footage is cropped or stretched.
   `min(400px, 100%)` caps the desktop width and lets narrow viewports fall back
   to the section's own gutters instead of forcing horizontal scroll. Centering
   comes from the `margin: … auto` already on `.vsl`. */
.vsl[data-vsl-status="live"] { max-width: min(400px, 100%); }
.vsl[data-vsl-status="live"] .vsl__frame { aspect-ratio: 9 / 16; }
.vsl[data-vsl-status="live"] .vsl__media {
  object-fit: contain;
  background: var(--navy-3);
  /* Keeps the native control bar inside the rounded corners at every width. */
  border-radius: inherit;
}
.vsl__frame:focus-within {
  /* Chrome moves focus into the native player's shadow controls, where the
     <video> host no longer matches :focus. The frame still owns focus-within. */
  outline: 3px solid var(--amber);
  outline-offset: -3px;
}

/* ---------- mechanism (light editorial statement) ---------- */
.mech-editorial {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 48px);
}
.mech-col { border-top: 2px solid var(--ink); padding-top: 20px; }
.mech-col__tag {
  display: block; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--blue-deep); margin-bottom: 10px;
}
.mech-col .h3 { margin-bottom: 8px; }
.mech-col p { font-size: 0.96rem; color: var(--ink-soft); }
@media (max-width: 900px) { .mech-editorial { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- value stack ---------- */
.stack {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-card); overflow: hidden; max-width: 860px; margin: 0 auto;
}
.stack__row {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 22px; border-top: 1px solid var(--line);
}
.stack__row:first-child { border-top: 0; }
.stack__icon {
  flex: none; width: 40px; height: 40px; border-radius: var(--radius-sm);
  background: var(--blue-tint); color: var(--blue-deep);
  display: inline-flex; align-items: center; justify-content: center;
}
.stack__body { flex: 1; min-width: 0; }
.stack__body b { display: block; font-size: 1rem; }
.stack__body span { font-size: 0.88rem; color: var(--ink-soft); }
.stack__lead {
  /* dotted leader between item and tier chip — ties each row to its tier */
  flex: 1 0 24px; min-width: 24px; height: 1px; margin-top: 4px;
  border-bottom: 2px dotted var(--line-strong); align-self: center;
}
.stack__tier {
  flex: none; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em;
  padding: 5px 11px; border-radius: 999px; white-space: nowrap;
}
.stack__tier--starter { background: var(--paper-2); color: var(--ink-soft); }
.stack__tier--core { background: var(--blue-tint); color: var(--blue-deep); }
.stack__tier--bundle { background: var(--navy); color: var(--amber); }
.stack__total {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px;
  padding: 20px 22px; background: var(--navy); color: var(--on-navy); font-weight: 700;
}
.stack__total small { display: block; font-weight: 500; color: var(--on-navy-soft); font-size: 0.85rem; }
.stack__total .price { color: var(--amber); font-size: 1.1rem; }
@media (max-width: 640px) {
  .stack__row { flex-wrap: wrap; }
  .stack__lead { display: none; }
  .stack__tier { order: 3; }
}

/* ---------- paths ---------- */
.paths-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .paths-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; } }
.path-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; gap: 12px;
}
.path-card--featured { border: 2px solid var(--blue); position: relative; box-shadow: var(--shadow-card); }
.path-card__flag {
  position: absolute; top: -13px; left: 24px;
  background: var(--blue); color: #fff; font-size: 0.75rem; font-weight: 700;
  padding: 4px 12px; border-radius: 999px; letter-spacing: 0.04em;
}
.path-card p { font-size: 0.95rem; color: var(--ink-soft); }
.path-card__where { margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 0.9rem; color: var(--ink-soft); }
.path-card__where b { color: var(--ink); }

/* ---------- artifact showcase (alternating rows) ---------- */
.showcase-rows { display: grid; gap: clamp(44px, 6vw, 72px); }
.showcase-row {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(28px, 5vw, 64px); align-items: center;
}
.showcase-row--flip .showcase-row__media { order: 2; }
.showcase-row--flip .showcase-row__copy { order: 1; }
.showcase-row__copy .h3 { font-size: 1.4rem; margin-bottom: 10px; }
.showcase-row__copy p { font-size: 1rem; color: var(--ink-soft); max-width: 34em; }
.showcase-row__copy .kicker { margin-bottom: 8px; }
@media (max-width: 900px) {
  .showcase-row { grid-template-columns: 1fr; gap: 20px; }
  .showcase-row--flip .showcase-row__media { order: 1; }
  .showcase-row--flip .showcase-row__copy { order: 2; }
}

.mock { border-radius: var(--radius); box-shadow: var(--shadow-card); overflow: hidden; border: 1px solid var(--line); }
.showcase-row .mock { box-shadow: 0 2px 4px rgba(23, 26, 33, 0.06), 0 24px 60px -18px rgba(23, 26, 33, 0.22); }
/* Restrained hover depth on real-deliverable mockups (hover-capable devices only;
   purely decorative — never implies interactivity beyond what ships). */
@media (hover: hover) {
  .showcase-row .mock { transition: transform var(--motion-fast) var(--motion-ease), box-shadow var(--motion-fast) var(--motion-ease); }
  .showcase-row .mock:hover { transform: translateY(-4px); box-shadow: 0 4px 8px rgba(23, 26, 33, 0.08), 0 34px 70px -18px rgba(23, 26, 33, 0.28); }
  .stack__row { transition: background var(--motion-fast) ease; }
  .stack__row:hover { background: var(--paper); }
  .tier-card { transition: transform var(--motion-fast) var(--motion-ease), box-shadow var(--motion-fast) var(--motion-ease); }
  .tier-card:hover { transform: translateY(-3px); }
}
.mock__bar {
  display: flex; align-items: center; gap: 6px; padding: 12px 16px;
  background: var(--paper-2); border-bottom: 1px solid var(--line);
}
.mock__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.mock__bar span { margin-left: 8px; font-size: 0.74rem; font-weight: 700; color: var(--ink-faint); letter-spacing: 0.06em; text-transform: uppercase; }

.mock--doc { background: var(--white); }
.mock--doc .mock__body { padding: 24px; display: grid; gap: 11px; }
.doc-line { height: 10px; border-radius: 5px; background: var(--paper-2); }
.doc-line--head { width: 62%; height: 15px; background: var(--line); }
.doc-line--fill { background: var(--blue-tint); }
.doc-check { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--ink-soft); font-weight: 600; }
.doc-check svg { color: var(--green); flex: none; }

.mock--chat { background: var(--white); }
.mock--chat .mock__body { padding: 20px; display: grid; gap: 12px; }
.chat-msg { max-width: 82%; padding: 12px 15px; border-radius: 12px; font-size: 0.92rem; line-height: 1.5; }
.chat-msg--user { background: var(--blue); color: #fff; justify-self: end; border-bottom-right-radius: 4px; }
.chat-msg--agent { background: var(--paper-2); color: var(--ink); border-bottom-left-radius: 4px; }
.chat-msg--agent b { display: block; font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--blue-deep); margin-bottom: 3px; }

.mock--flow { background: var(--navy); }
.mock--flow .mock__bar { background: var(--navy-2); border-bottom-color: var(--line-navy); }
.mock--flow .mock__bar span { color: var(--on-navy-soft); }
.mock--flow .mock__body { padding: 24px; display: grid; gap: 9px; }
.flow-node {
  display: flex; align-items: center; gap: 10px;
  background: var(--navy-2); border: 1px solid var(--line-navy); border-radius: 9px;
  padding: 11px 14px; font-size: 0.88rem; font-weight: 600; color: var(--on-navy);
}
.flow-node i { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); flex: none; }
.flow-node--ok i { background: #35c98e; }
.flow-arrow { width: 2px; height: 14px; background: var(--line-navy); margin-left: 24px; }

/* ---------- proof artifacts (Phase 3: readable, source-backed demonstrations) ----------
   Semantic, non-decorative: the input -> output -> decision text is real content,
   available to screen readers (no aria-hidden), readable at 375 and 1440. */
.proof {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
  font-size: 0.9rem;
}
.showcase-row .proof { box-shadow: 0 2px 4px rgba(23, 26, 33, 0.06), 0 24px 60px -18px rgba(23, 26, 33, 0.22); }
.proof__cap {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 16px; background: var(--paper-2); border-bottom: 1px solid var(--line);
}
.proof__name { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-faint); }
.proof__flag {
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase;
  color: var(--blue-deep); background: var(--blue-tint);
  padding: 3px 9px; border-radius: 999px; white-space: nowrap; flex: none;
}
.proof__step { padding: 13px 16px; border-bottom: 1px solid var(--line); }
.proof__step:last-of-type { border-bottom: 0; }
.proof__label { display: block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 6px; }
.proof__io { color: var(--ink); font-style: italic; line-height: 1.5; }
.proof__list { list-style: none; display: grid; gap: 8px; }
.proof__list li { color: var(--ink-soft); line-height: 1.5; padding-left: 14px; position: relative; }
.proof__list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); }
.proof__list b { color: var(--ink); }
.proof__scroll { overflow-x: auto; }
.proof__score { width: 100%; border-collapse: collapse; font-size: 0.8rem; margin-bottom: 8px; }
.proof__score th, .proof__score td { text-align: center; padding: 5px 4px; border: 1px solid var(--line); }
.proof__score th:first-child, .proof__score td:first-child { text-align: left; color: var(--ink-soft); white-space: nowrap; }
.proof__score thead th { background: var(--paper); font-size: 0.7rem; color: var(--ink-faint); font-weight: 700; }
.proof__decision { color: var(--ink); line-height: 1.5; }
.proof__decision b { color: var(--green); }
.proof__fields { display: grid; }
.proof__field { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.proof__field:last-child { border-bottom: 0; }
.proof__field dt { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 5px; }
.proof__field dd { color: var(--ink); line-height: 1.5; }
.proof__blank { color: var(--ink-faint); text-decoration: line-through; text-decoration-color: var(--line-strong); }
.proof__to { color: var(--blue); font-weight: 700; margin: 0 3px; }
.proof__filled { color: var(--ink); font-weight: 600; }
.proof__note { display: block; text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 0.72rem; color: var(--ink-faint); margin-top: 2px; }
.proof__econ-tbl { width: 100%; border-collapse: collapse; }
.proof__econ-tbl td { padding: 7px 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.proof__econ-tbl tr:last-child td { border-bottom: 0; }
.proof__econ-tbl td:last-child { text-align: right; color: var(--ink); white-space: nowrap; }
.proof__decision .proof__opt:first-child { color: var(--green); font-weight: 700; }
.proof__fineprint { padding: 12px 16px; font-size: 0.76rem; color: var(--ink-faint); background: var(--paper); line-height: 1.45; }
/* flow variant (navy, numbered order-router steps) */
.proof--flow { background: var(--navy); border-color: var(--line-navy); }
.proof__cap--dark { background: var(--navy-2); border-bottom-color: var(--line-navy); }
.proof__cap--dark .proof__name { color: var(--on-navy-soft); }
.proof__flag--dark { color: var(--navy); background: var(--amber); }
.proof__flow-steps { list-style: none; counter-reset: step; display: grid; }
.proof__flow-steps li { position: relative; color: var(--on-navy-soft); padding: 11px 16px 11px 44px; border-bottom: 1px solid var(--line-navy); line-height: 1.45; }
.proof__flow-steps li:last-of-type { border-bottom: 0; }
.proof__flow-steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 14px; top: 10px; width: 19px; height: 19px; border-radius: 50%; background: var(--navy-3); color: var(--on-navy); font-size: 0.68rem; font-weight: 700; display: grid; place-items: center; }
.proof__flow-steps--ok { color: var(--on-navy); }
.proof__flow-steps--ok::before { background: #35c98e; color: var(--navy); }
.proof__flow-steps--hold::before { background: var(--amber); color: var(--navy); }
.proof__fineprint--dark { background: var(--navy-2); color: var(--on-navy-soft); }

/* ---------- steps (compact numbered strip) ---------- */
.steps-strip {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}
.steps-strip__item { padding: clamp(24px, 3.5vw, 36px) clamp(18px, 3vw, 32px); }
.steps-strip__item + .steps-strip__item { border-left: 1px solid var(--line); }
.steps-strip__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--navy); color: var(--amber);
  font-weight: 800; font-size: 0.9rem; margin-bottom: 14px;
}
.steps-strip__item .h3 { font-size: 1.08rem; margin-bottom: 6px; }
.steps-strip__item p { font-size: 0.92rem; color: var(--ink-soft); }
@media (max-width: 900px) {
  .steps-strip { grid-template-columns: 1fr; }
  .steps-strip__item + .steps-strip__item { border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- founder ---------- */
.founder {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 56px); align-items: center;
}
@media (max-width: 900px) { .founder { grid-template-columns: 1fr; } }
.founder__quote {
  font-family: var(--font-display); font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  line-height: 1.35; color: var(--ink);
}
.founder__attr { margin-top: 18px; font-size: 0.95rem; color: var(--ink-soft); font-weight: 600; }
.founder__intro .h2 { margin-bottom: 18px; }
.founder__intro p { max-width: 34em; color: var(--ink-soft); }
.founder__facts { display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
.founder__fact {
  padding: 16px 2px; border-bottom: 1px solid var(--line);
  font-size: 0.95rem; color: var(--ink-soft);
}
.founder__fact b { color: var(--ink); }

/* ---------- pricing ---------- */
.tier-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: stretch; max-width: 940px; margin-inline: auto; }
@media (max-width: 1000px) { .tier-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }
.tier-card {
  position: relative;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-card); padding: 30px 26px;
  display: flex; flex-direction: column; gap: 16px;
}
/* A non-featured card that still carries a corner flag (e.g. the Bundle's
   retained for low-emphasis tier labels when needed). */
.tier-card__flag--muted { background: var(--blue-tint); color: var(--blue-deep); }
.tier-card--featured { background: var(--navy); color: var(--on-navy); border-color: var(--navy); position: relative; box-shadow: var(--shadow-deep); }
.tier-card--featured .h3 { color: var(--on-navy); }
.tier-card__flag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--amber); color: var(--navy); font-size: 0.75rem; font-weight: 800;
  padding: 4px 14px; border-radius: 999px; letter-spacing: 0.04em; white-space: nowrap;
}
.tier-card__who { font-size: 0.88rem; color: var(--ink-soft); }
.tier-card--featured .tier-card__who { color: var(--on-navy-soft); }
.tier-card__price { display: flex; align-items: baseline; gap: 6px; }
.tier-card__price .amt { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.02em; }
.tier-card__price .cur { font-size: 0.9rem; font-weight: 700; color: var(--ink-faint); }
.tier-card--featured .tier-card__price .cur { color: var(--on-navy-soft); }
.tier-card__list { display: grid; gap: 9px; font-size: 0.92rem; }
.tier-card__list li { display: flex; gap: 9px; align-items: flex-start; color: var(--ink-soft); }
.tier-card--featured .tier-card__list li { color: var(--on-navy-soft); }
.tier-card__list svg { flex: none; margin-top: 4px; color: var(--green); }
.tier-card--featured .tier-card__list svg { color: var(--amber); }
.tier-card__list b { color: var(--ink); }
.tier-card--featured .tier-card__list b { color: var(--on-navy); }
.tier-card .btn { margin-top: auto; }
.tier-card__foot { font-size: 0.82rem; color: var(--ink-faint); }
.tier-card--featured .tier-card__foot { color: var(--on-navy-soft); }
.pricing-notes { max-width: 640px; margin: 36px auto 0; text-align: center; font-size: 0.92rem; color: var(--ink-soft); display: grid; gap: 10px; }
.pricing-notes b { color: var(--ink); }

.guarantee {
  max-width: 720px; margin: 44px auto 0;
  background: var(--white); border: 1.5px solid var(--green); border-radius: var(--radius);
  padding: 26px 30px; display: flex; gap: 18px; align-items: flex-start;
}
.guarantee svg { flex: none; color: var(--green); margin-top: 3px; }
.guarantee b { display: block; margin-bottom: 4px; }
.guarantee p { font-size: 0.95rem; color: var(--ink-soft); }
@media (max-width: 640px) { .guarantee { flex-direction: column; } }

/* ---------- opt-in (inline home) ---------- */
.optin-card {
  max-width: 680px; margin: 0 auto;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-deep); padding: clamp(28px, 5vw, 44px);
}
/* While the form is hosted in the dialog, keep its inline home composed. */
#lead-form-home:empty { min-height: 260px; display: grid; place-items: center; }
#lead-form-home:empty::after {
  content: "The sign-up form is open in the dialog.";
  color: var(--ink-faint); font-size: 0.9rem;
}
.lead-form { display: grid; gap: 14px; margin-top: 24px; }
.optin-dialog .lead-form { margin-top: 18px; }
.lead-form .field { display: grid; gap: 6px; }
.lead-form label { font-size: 0.85rem; font-weight: 700; color: var(--ink-soft); }
.lead-form input[type="text"], .lead-form input[type="email"] {
  font: inherit; padding: 14px 16px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line-strong); background: var(--paper); color: var(--ink); width: 100%;
}
.lead-form input:focus-visible { outline: 3px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.lead-form__foot { font-size: 0.82rem; color: var(--ink-faint); }
.form-note { display: inline-flex; align-items: center; gap: 7px; }
.form-note svg { color: var(--green); flex: none; }
.lead-form__notice { margin: 2px 0 0; font-size: 0.92rem; line-height: 1.5; padding: 12px 14px; border-radius: var(--radius-sm); border: 1.5px solid transparent; }
.lead-form__notice[data-kind="error"] { color: #8c1d1d; background: #fdeaea; border-color: #e5b3b3; }
.lead-form__notice[data-kind="info"] { color: var(--blue-deep); background: var(--blue-tint); border-color: #b9c6f5; }

/* ---------- opt-in dialog ---------- */
.optin-dialog {
  /* the global `* { margin: 0 }` reset would kill the UA's `margin: auto`
     centering for modal dialogs — restore it explicitly */
  margin: auto;
  border: 0; padding: 0;
  width: min(560px, calc(100vw - 32px));
  max-height: min(calc(100dvh - 32px), 720px);
  border-radius: var(--radius);
  background: var(--white); color: var(--ink);
  box-shadow: var(--shadow-deep);
  overflow-y: auto;
}
.optin-dialog::backdrop { background: rgba(11, 17, 32, 0.66); }
/* Entrance only: exit stays instant so the verified close state machine
   (restore form -> unlock scroll -> refocus -> track) never waits on animation. */
@keyframes dialog-in { from { opacity: 0.6; transform: translateY(10px) scale(0.985); } to { opacity: 1; transform: none; } }
@keyframes backdrop-in { from { opacity: 0; } to { opacity: 1; } }
.optin-dialog[open] { animation: dialog-in var(--motion-fast) var(--motion-ease); }
.optin-dialog[open]::backdrop { animation: backdrop-in var(--motion-medium) ease; }
.optin-dialog__inner { padding: clamp(24px, 5vw, 40px); }
.optin-dialog__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.optin-dialog__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.6rem, 4vw, 2rem); line-height: 1.15;
}
.optin-dialog__desc { margin-top: 10px; font-size: 0.96rem; color: var(--ink-soft); }
.optin-dialog__close {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid var(--line-strong); background: var(--white); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.05rem; line-height: 1;
}
.optin-dialog__close:hover { border-color: var(--ink); }
body.modal-open .sticky-cta { display: none; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.faq-question {
  width: 100%; text-align: left; background: none; border: 0;
  padding: 18px 20px; font-weight: 700; font-size: 1rem; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.faq-question .faq-icon { flex: none; color: var(--blue-deep); font-size: 1.25rem; line-height: 1; transition: transform 0.2s ease; }
.faq-item.open .faq-question .faq-icon { transform: rotate(45deg); }
/* Progressive enhancement: answers ship OPEN (no-JS readers get full content).
   script.js adds .js-accordion to collapse them; expansion animates via the
   grid-row technique — no fixed heights, nothing clipped when open. */
.faq-answer { display: grid; grid-template-rows: 1fr; }
.faq-answer__inner { min-height: 0; overflow: hidden; padding: 0 20px 18px; color: var(--ink-soft); font-size: 0.96rem; }
.js-accordion .faq-item:not(.open) .faq-answer { grid-template-rows: 0fr; }
.js-accordion .faq-item:not(.open) .faq-answer__inner { padding-bottom: 0; }
html.motion-ok .faq-answer { transition: grid-template-rows var(--motion-medium) var(--motion-ease); }
html.motion-ok .faq-answer__inner { transition: padding-bottom var(--motion-medium) var(--motion-ease); }

/* ---------- final CTA ---------- */
.final-cta { text-align: center; max-width: 720px; margin: 0 auto; }
.final-cta .h2 { margin-bottom: 14px; }
.final-cta .btn { margin-top: 28px; }

/* ---------- disclaimer + footer ---------- */
.disclaimer { font-size: 0.85rem; color: var(--ink-faint); max-width: 760px; margin: 0 auto; text-align: center; }
.footer { background: var(--navy); color: var(--on-navy-soft); padding: 48px 0; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: flex-start; }
.footer .brand { color: var(--on-navy); }
.footer .brand__mark { background: var(--white); color: var(--navy); }
.footer__brand small { display: block; margin-top: 8px; font-size: 0.85rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: 18px; font-size: 0.9rem; }
.footer__links a { color: var(--on-navy-soft); }
.footer__links a:hover { color: var(--on-navy); }

/* ---------- privacy consent ---------- */
.privacy-consent {
  position: fixed; z-index: 1200; left: 16px; right: 16px; bottom: 16px;
  max-width: 920px; margin: 0 auto; padding: 18px;
  color: var(--on-navy); background: var(--navy); border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius); box-shadow: var(--shadow-deep);
}
.privacy-consent[hidden] { display: none; }
.privacy-consent__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.privacy-consent b { display: block; margin-bottom: 5px; }
.privacy-consent p { max-width: 620px; color: var(--on-navy-soft); font-size: 0.88rem; line-height: 1.5; }
.privacy-consent__actions { display: flex; flex: none; gap: 10px; }
.privacy-consent .btn--ghost { color: var(--on-navy); border-color: rgba(255,255,255,0.45); }
.privacy-settings {
  position: fixed; z-index: 1100; left: 12px; bottom: 10px;
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 7px 11px;
  background: var(--white); color: var(--ink-soft); box-shadow: var(--shadow-soft);
  font: 600 0.75rem/1 var(--font-ui); cursor: pointer;
}
.privacy-settings:hover { color: var(--ink); border-color: var(--ink-faint); }
@media (max-width: 700px) {
  .privacy-consent__inner { align-items: stretch; flex-direction: column; gap: 14px; }
  .privacy-consent__actions { display: grid; grid-template-columns: 1fr 1fr; }
  .privacy-consent .btn { width: 100%; }
}
.footer__copy { width: 100%; font-size: 0.8rem; margin-top: 8px; }

/* ---------- policy pages ---------- */
.policy { padding: 128px 0 80px; }
.policy__head { padding-bottom: 28px; border-bottom: 1px solid var(--line); margin-bottom: 34px; }
.policy__head .lead { max-width: 760px; }
.policy__meta { margin-top: 14px; color: var(--ink-faint); font-size: 0.88rem; }
.policy__body { max-width: 820px; }
.policy__body h2 { margin: 36px 0 12px; font-size: clamp(1.3rem, 2vw, 1.65rem); color: var(--ink); }
.policy__body p, .policy__body li { color: var(--ink-soft); line-height: 1.75; }
.policy__body p + p { margin-top: 14px; }
.policy__body ul { margin: 12px 0 0 22px; display: grid; gap: 8px; }
.policy__body strong { color: var(--ink); }

/* ---------- sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(250, 246, 239, 0.94);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  display: none;
}
.sticky-cta .btn { width: 100%; }
@media (max-width: 640px) {
  body.has-sticky .sticky-cta { display: block; }
  body.has-sticky { padding-bottom: 84px; }
  body.sticky-open .privacy-settings { bottom: calc(94px + env(safe-area-inset-bottom)); }
}

/* ---------- reveal (progressive enhancement — content is NEVER JS-gated) ----------
   Contract: HTML + base CSS = complete readable page. The base .reveal state is
   fully visible. Only when JS runs, IntersectionObserver exists, and motion is
   allowed does script.js add html.motion-ok and mark below-fold elements
   .reveal--pending — a state that stays READABLE (opacity 0.8, small offset) and
   settles to base on intersection, with a timeout/bfcache failsafe clearing any
   stragglers. No JS, no IO, screenshots, anchor jumps, background tabs, and
   reduced motion all get the complete static page. */
.reveal { opacity: 1; transform: none; }
html.motion-ok .reveal {
  transition:
    opacity var(--motion-medium) var(--motion-ease) var(--rd, 0s),
    transform var(--motion-medium) var(--motion-ease) var(--rd, 0s);
}
html.motion-ok .reveal--pending { opacity: 0.8; transform: translateY(var(--motion-distance)); }

/* ---------- utilities ---------- */
.mt-cta { margin-top: clamp(32px, 5vw, 48px); text-align: center; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- interior pages (thank-you / success / 404 reuse) ---------- */
.ty { padding: clamp(64px, 10vw, 120px) 0; }
.ty__inner { text-align: center; }
.ty__check {
  width: 64px; height: 64px; margin: 0 auto 24px; border-radius: 50%;
  background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-cta);
}
.ty__check svg { width: 30px; height: 30px; }
.ty .h1, .ty h1 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.1rem, 5vw, 3.2rem); line-height: 1.1; margin-bottom: 16px;
}
.ty .lead { margin: 0 auto 8px; }
.ty__bridge, .card.ty__bridge {
  max-width: 620px; margin: 36px auto 0; text-align: left;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-card); padding: clamp(24px, 4vw, 36px);
}
.ty__bridge p { color: var(--ink-soft); font-size: 0.98rem; margin: 10px 0 0; }
.ty__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--blue-deep); margin-bottom: 14px;
}
.optin__badge {
  display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--blue-deep); background: var(--blue-tint);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 10px;
}
.accent-text { color: var(--blue-deep); }
