/* ============================================================================
   TerraNova — V2 "Chambers" styles (dark, law-library-at-night)
   Source of truth: DESIGN.md. Tailwind utilities come from the Play CDN.
   This file owns the dark token system, the version toggle, the dark hero,
   and the signature centrepiece: the complexity-scroll law-sheet explosion.
   ========================================================================== */

:root {
  /* ── Background layers (cool, atmospheric) ─────────────────────────── */
  --bg-base:        #AFC5AD;   /* 46594D */
  --bg-dk-base:     #0A0F0A;   /*  */
  --bg-raised:      #AFC5AD;   /*  */
  --bg-alt:         #0A0F0A;   /*  */
  --bg-overlay:     #18293a;   /*  */
  --border:         rgba(0, 23, 100, 0.08);
  --border-strong:  rgba(0, 23, 100, 0.14);

 /* ── Brand color ─────────────────────────────────────────────────────── */
  --tn-yellow:      #FFC500;
  --tn-lt-blue:     #C3E2FF;
  --tn-sea-foam:    #74A3A6;
  --tn-lt-green:    #AFC5AD;
  --tn-md-green:    #46594D;
  --tn-dk-green:    #0A0F0A;

  /* ── Text (warm, paper-adjacent) ───────────────────────────────────── */
  --text-hi:        #f0ece4;
  --text-lo:        #f5efe3;
  --text-xlo:       #f5efe3;

  /* ── Paper + resolution (the colour story) ─────────────────────────── */
  --paper:          #f5efe3;
  --paper-mid:      #e0d8cb;
  --paper-dark:     #c8bfb0;
  --resolution:     #fdfdfd;

  /* ── Rare accent ───────────────────────────────────────────────────── */
  --gold-dim:       #b8924a;

  /* ── Aliases so the shared waitlist.js confirmation renders correctly ─ */
  --ink:            #f0ece4;
  --secondary-dark: #f5efe3;
  --dust:           #b4ad9f;

  /* ── Semantic (used inside white resolution cards) ─────────────────── */
  --confidence-high:   #AFC5AD;
  --confidence-medium: #FFC500;
  --confidence-low:    #C75C4A;

  --font-display: 'Kaisei Decol', 'Playfair Display', Georgia, serif;
  --font-sans:    'DM Sans', system-ui, -apple-system, sans-serif;
  --font-mono:    'Courier Prime', 'IBM Plex Mono', monospace;

  --section-y: 128px;
  --container: 980px;
}

/* Temp 

:root {
  /* ── Background layers (cool, atmospheric) ─────────────────────────── 
  --bg-base:        #090e18;   /* very dark blue-slate — depth, not navy 
  --bg-raised:      #0f2536;   /* cards, nav, callouts — visible blue 
  --bg-alt:         #131c2a;   /* alternate section backgrounds 
  --bg-overlay:     #18293a;   /* hover / nested surfaces 
  --border:         rgba(200, 220, 255, 0.08);
  --border-strong:  rgba(200, 220, 255, 0.14);

  /* ── Text (warm, paper-adjacent) ───────────────────────────────────── 
  --text-hi:        #f0ece4;
  --text-lo:        #8a8278;
  --text-xlo:       #5a5550;

  /* ── Paper + resolution (the colour story) ─────────────────────────── 
  --paper:          #f5efe3;
  --paper-mid:      #e0d8cb;
  --paper-dark:     #c8bfb0;
  --resolution:     #ffffff;

  /* ── Rare accent ───────────────────────────────────────────────────── 
  --gold-dim:       #b8924a;

  /* ── Aliases so the shared waitlist.js confirmation renders correctly ─ 
  --ink:            #f0ece4;
  --secondary-dark: #b4ad9f;
  --dust:           #6f6a62;

  /* ── Semantic (used inside white resolution cards) ─────────────────── 
  --confidence-high:   #6f9a8b;
  --confidence-medium: #e0b548;
  --confidence-low:    #c75c4a;

  --font-display: 'Kaisei Decol', 'Playfair Display', Georgia, serif;
  --font-sans:    'DM Sans', system-ui, -apple-system, sans-serif;
  --font-mono:    'Courier Prime', 'IBM Plex Mono', monospace;

  --section-y: 128px;
  --container: 980px;
}
*/


/* ── Base ──────────────────────────────────────────────────────────────── */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text-hi);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.modal-open { overflow: hidden; }

h1, h2, h3, h4 {
  font-family: var(--font-display); color: var(--text-hi);
  line-height: 1.12; font-weight: 400; letter-spacing: -0.02em; margin: 0;
}
.display { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
h3 { font-size: 1.375rem; }

p { margin: 0; }
a { color: var(--text-hi); text-decoration: none; }
a:hover { text-decoration: underline; }

/* green highlight + paper text reads on both the light (paper) and dark (green)
   sections, so selected text never vanishes into its own background */
::selection { background: var(--tn-md-green); color: var(--paper); }
::-moz-selection { background: var(--tn-md-green); color: var(--paper); }
.price-card ::selection,
.card ::selection { background: var(--bg-dk-base); color: var(--paper); }
.price-card ::-moz-selection,
.card ::-moz-selection { background: var(--bg-dk-base); color: var(--paper); }
:focus-visible { outline: 1.5px solid var(--paper); outline-offset: 3px; border-radius: 3px; }

/* ── Layout helpers ────────────────────────────────────────────────────── */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1.5rem; }
.measure { max-width: 60ch; }
.section { padding-block: var(--section-y); }
@media (max-width: 768px) { :root { --section-y: 80px; } }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 1.72rem; letter-spacing: 0.14em;
  color: var(--paper);
}
.eyebrow .idx { color: var(--tn-yellow); margin-right: 0.5rem; opacity: 0.7; }

/* enlarged section eyebrow — reads as a real section title */
.eyebrow-xl {
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  letter-spacing: 0.04em; line-height: 1.1;
}
.eyebrow-xl .idx { margin-right: 0.7rem; opacity: 0.55; }

/* ── Scroll progress bar ───────────────────────────────────────────────── */
.v2-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: var(--bg-dk-base);
  z-index: 70; transition: width .08s linear; opacity: 0.7;
}

/* ── Version toggle pill (fixed, top-right, both pages) ─────────────────── */
.version-pill {
  /* sits just below the 72px header bar so it never collides with nav CTAs,
     stays pinned top-right, and reads consistently across both pages */
  position: fixed; top: 84px; right: 1.25rem; z-index: 80;
  display: inline-flex; gap: 2px;
  background: rgba(15, 37, 54, 0.82);
  border: 1px solid var(--border-strong);
  border-radius: 999px; padding: 4px;
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  box-shadow: 0 8px 30px -12px rgba(0,0,0,0.7);
}
.version-pill a {
  font-family: var(--font-sans); font-size: 0.78rem; font-weight: 500;
  color: var(--text-lo); padding: 0.34rem 0.85rem; border-radius: 999px;
  text-decoration: none; transition: color .18s ease, background-color .18s ease;
  white-space: nowrap;
}
.version-pill a:hover { color: var(--text-hi); text-decoration: none; }
.version-pill a.is-active { background: var(--paper); color: var(--bg-base); }
.version-pill a.is-active:hover { color: var(--bg-base); }

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-sans); font-weight: 500; font-size: 1rem;
  padding: 0.85rem 1.5rem; border-radius: 9px; cursor: pointer;
  border: 1px solid transparent;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn .arrow { transition: transform .2s ease; }

/* primary = warm parchment "document" button (Risk 1) */
.btn-primary { background: var(--tn-yellow); color: var(--tn-dk-green); border-color: var(--border-strong);}
.btn-primary:hover { background: var(--tn-dk-green); color: var(--paper); text-decoration: none; }
.btn-primary:hover .arrow { transform: translateX(3px); }

.btn-ghost { background: transparent; color: var(--text-hi); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--paper); color: var(--paper); text-decoration: none; }

.btn-text { background: none; color: var(--tn-dk-green); padding-inline: 0; gap: 0.3rem; }
.btn-text:hover { text-decoration: none; }
.btn-text:hover .arrow { transform: translateY(3px); }

/* ── Header / nav ──────────────────────────────────────────────────────── */
.v2-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 15, 10, 0.72);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background-color .2s ease;
}
.v2-header.scrolled { border-bottom-color: var(--border); background: rgba(10,15,10,0.9); }
/* the top bar gets its own class so the rule can't also catch #mobile-nav.container
   (that would override [hidden] and force the mobile menu open on desktop). */
.v2-bar { display: flex; align-items: center; gap: 2.5rem; height: 72px; }
.v2-bar .nav-mobile-toggle { margin-left: auto; }   /* keep Menu pinned right on mobile */
.v2-signin {
  margin-left: auto; padding: 0.55rem 1.1rem; font-size: 0.92rem;
  border-color: currentColor;
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}
.v2-signin:hover { color: var(--tn-yellow); border-color: var(--tn-yellow); background: transparent; }
.v2-logo { display: inline-flex; align-items: center; gap: 0.55rem; }
.v2-logo-mark { height: 30px; width: auto; display: block; }
.v2-footer .v2-logo-mark { height: 24px; }
/* logo.png ships with an opaque light background, so it can't sit on the dark
   theme. Use a text wordmark in the brand serif instead. Swap in a
   transparent-bg asset later to restore the ornamental flourishes. */
.v2-logo .wordmark {
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 500;
  color: var(--text-hi); letter-spacing: 0.005em; line-height: 1;
}
.v2-footer .v2-logo .wordmark { font-size: 1.1rem; }

.nav-desktop { display: flex; align-items: center; gap: 2rem; }
.nav-link {
  position: relative; color: var(--text-lo); font-size: 0.92rem; font-weight: 500;
  padding-block: 0.35rem; transition: color .18s ease;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px;
  background: var(--paper); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .26s cubic-bezier(.22,.61,.36,1);
}
.nav-link:hover { color: var(--text-hi); text-decoration: none; }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link.is-active { color: var(--text-hi); }
.nav-link.is-active::after { transform: scaleX(1); }

.nav-mobile-toggle { display: none; }

/* ── Trust microcopy ───────────────────────────────────────────────────── */
.trust-line { font-family: var(--font-sans); font-size: 0.74rem; color: var(--tn-dk-green); }
.trust-line strong { color: var(--tn-dk-green); font-weight: 400; }

/* ══════════════════════════════════════════════════════════════════════════
   HERO  (restrained, cinematic — lets the scroll do the drama)
   ════════════════════════════════════════════════════════════════════════ */
.v2-hero {
  position: relative; overflow: hidden;
  padding-top: 92px; padding-bottom: 16px;
  text-align: center;
}
.v2-hero::before {
  /* faint warm glow at the base, hinting the resolution to come */
  content: ""; position: absolute; left: 50%; bottom: -20%;
  width: 1200px; height: 540px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(245,239,227,0.06), transparent 72%);
  pointer-events: none;
}
.v2-hero .container { position: relative; z-index: 2; }

/* ── EXPERIMENT 1: globe graphic, right of hero ──────────────────────────
   Image ships grey-on-white; multiply blend drops the white so the arcs sit
   straight on the paper. Flipped so the globe faces into the page. */
.hero-globe {
  position: absolute; top: 50%; right: -6%; transform: translateY(-50%) scaleX(-1);
  width: min(56vw, 720px); height: auto; z-index: 1;
  mix-blend-mode: multiply; opacity: 0.9; pointer-events: none;
  -webkit-mask-image: radial-gradient(closest-side, #000 62%, transparent 96%);
  mask-image: radial-gradient(closest-side, #000 62%, transparent 96%);
}
@media (max-width: 900px) { .hero-globe { opacity: 0.35; right: -20%; width: 90vw; } }

/* ── EXPERIMENT 3: topographic transition band (hero → question) ──────────
   Contour lines + traveling light pulses on paper. Masked at top/bottom so it
   dissolves into the paper sections above and below. */
.topo-transition {
  position: relative; width: 100%; height: clamp(150px, 19vw, 260px);
  margin-top: -28px; margin-bottom: -52px;
  overflow: hidden; background: var(--paper);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 9%, #000 91%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 9%, #000 91%, transparent 100%);
}
.topo-transition canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-eyebrow { color: var(--tn-dk-green); }
.hero-h1 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.9rem, 7.2vw, 5.6rem); line-height: 1.05; letter-spacing: -0.03em;
  color: var(--text-hi); max-width: 22ch; margin: 1.4rem auto 0;
}
.hero-sub {
  margin: 1.4rem auto 0; max-width: 52ch;
  font-size: 1.12rem; color: var(--tn-dk-green); line-height: 1.65;
}
.hero-sub strong { color: var(--tn-dk-green); font-weight: 500; }
.hero-form-wrap { margin: 2rem auto 0; max-width: 620px; }

/* ── Waitlist form (dark) ──────────────────────────────────────────────── */
.waitlist-form { display: flex; flex-direction: column; gap: 0.7rem; text-align: left; }
.input-group {
  display: flex; align-items: center; gap: 4px;
  background: var(--bg-raised);
  border: 1px solid var(--border-strong); border-radius: 12px; padding: 5px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.input-group:focus-within { border-color: var(--paper); box-shadow: 0 0 0 4px rgba(245,239,227,0.12); }
/* hero form: no light-green frame around the email box + waitlist button */
.v2-hero .input-group { background: transparent; border-color: transparent; padding: 0; gap: 8px; }
.v2-hero .input-group:focus-within { box-shadow: none; }
.v2-hero .input-group .field-bare { border-radius: 10px; }
.v2-hero .input-group .btn-primary { border-color: transparent; }
.input-group .field-bare {
  flex: 1 1 auto; min-width: 0; border: 0; background: var(--resolution);
  font-family: var(--font-sans); font-size: 1rem; color: var(--bg-dk-base);
  padding: 0.7rem 0.5rem 0.7rem 0.9rem;
}
.input-group .field-bare:focus { outline: none; }
.input-group .btn { padding-block: 0.7rem; white-space: nowrap; }

.field {
  width: 100%; min-width: 0;
  font-family: var(--font-sans); font-size: 0.95rem; color: var(--bg-dk-base);
  background: var(--resolution); border: 1px solid var(--border-strong);
  border-radius: 10px; padding: 0.7rem 0.9rem;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field::placeholder, .field-bare::placeholder { color: var(--tn-dk-green); opacity: 0.8; }
.field:focus { outline: none; border-color: var(--paper); box-shadow: 0 0 0 4px rgba(245,239,227,0.12); }

/* Bottom CTA sits on the near-black section-alt background — give its inputs a
   lighter, higher-contrast (paper) fill, distinct from the hero's sage fill. */
.section-alt .input-group,
.section-alt .field { background: var(--resolution); border: 1px solid rgba(10,15,10,0.16); }
.section-alt .input-group .field-bare { background: var(--resolution); }
.section-alt .input-group .field-bare,
.section-alt .field { color: var(--tn-dk-green); }
.section-alt .field::placeholder,
.section-alt .field-bare::placeholder { color: var(--tn-dk-green); opacity: 0.6; }
/* subhead + consent copy were paper-on-dark; make them ink-on-paper here */
.section-alt .final-cta p { color: var(--tn-md-green); }
.section-alt .consent-microcopy { color: var(--tn-md-green); }
.section-alt .consent-microcopy a { color: var(--tn-dk-green); }
/* yellow button so it reads as a button against the paper field, not part of it */
.section-alt .input-group .btn-primary { background: var(--tn-yellow); color: var(--tn-dk-green); }
.section-alt .input-group .btn-primary:hover { background: var(--tn-dk-green); color: var(--paper); }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.consent-microcopy { font-size: 0.78rem; color: var(--paper); }
.consent-microcopy a { color: var(--text-lo); text-decoration: underline; }
.form-status { font-size: 0.9rem; min-height: 1.2rem; }
.form-status.error { color: var(--confidence-low); }
.form-status.success { color: var(--confidence-high); }
.confirm-panel {
  background: rgba(111,154,139,0.10); border: 1px solid rgba(111,154,139,0.28);
  border-radius: 12px; padding: 1.5rem; text-align: left;
}

/* the under-CTA "see a real rule" link, centered in hero */
.hero-form-wrap .btn-text { margin-top: 0.6rem; }

/* ── Quiet category line ───────────────────────────────────────────────── */
.category-line {
  text-align: center; font-family: var(--font-display); font-size: 1.25rem;
  max-width: 760px; margin-inline: auto; color: var(--text-hi); line-height: 1.5;
}
.category-line span { color: var(--text-lo); }
.category-line-dk span { color: var(--bg-dk-base); }

/* ══════════════════════════════════════════════════════════════════════════
   THE COMPLEXITY SCROLL — "Words that migrate" paper-lab centrepiece
   Ported from sandbox/paper-lab. GSAP + ScrollTrigger pin the stage; scroll
   progress 0→1 drives statute pages → yellow scan → operative words fly →
   plain-English chips → the final typeset rule. Background eases
   #AFC5AD → #46593D so it flows straight into "Our solution".
   All rules scoped under #complexity to keep the generic class names local.
   ════════════════════════════════════════════════════════════════════════ */
#complexity {
  --ink-on-paper:#33291c; --stamp:#9e3b2c;
  --pl-text-hi:#f0ece4; --pl-text-lo:#c6cfc2; --pl-text-xlo:#8a978a;
  --font-law:Georgia,"Times New Roman",serif;
  --pl-green-start:#afc5ad; --pl-green-end:#46593d;
  position: relative;
  background: var(--paper);
  color: var(--ink-on-paper);
}

/* intro lead-in (normal flow, before the pinned stage).
   Sits on paper, then eases into the green the pinned stage opens on so the
   scroll into the animation has no seam. */
#complexity .pl-intro {
  min-height: 42vh; display: flex; flex-direction: column;
  align-items: center; justify-content: flex-start; text-align: center;
  padding: 4px 24px 64px;
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper) 46%, var(--pl-green-start) 100%);
}
#complexity .pl-intro .kicker {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.34em;
  text-transform: uppercase; color: #2f3e34; margin-bottom: 22px;
}
#complexity .pl-q {
  font-family: var(--font-display); font-weight: 500; letter-spacing: -0.02em;
  font-size: clamp(2.2rem, 6vw, 4.2rem); line-height: 1.04; max-width: 18ch; color: #1e2a20;
}
#complexity .pl-intro p { color: #3c4a3e; max-width: 46ch; margin-top: 20px; font-size: 1.04rem; line-height: 1.65; }
#complexity .pl-intro .rule-line { width: 52px; height: 1px; background: #2f3e34; margin-top: 34px; }

/* the pinned stage */
#complexity .pl-stage { position: relative; height: 100vh; width: 100%; overflow: hidden; background: var(--pl-green-start); }
#complexity .scene { position: absolute; inset: 0; }

/* paper world */
#complexity .paperworld { position: absolute; inset: 0; z-index: 10; }
#complexity .page {
  position: absolute; background: linear-gradient(165deg, #f6efe0 0%, #ece2cd 100%); color: var(--ink-on-paper);
  box-shadow: 0 2px 4px rgba(30,40,30,.18), 0 18px 50px -12px rgba(25,35,25,.4), inset 0 0 0 1px rgba(255,255,255,.5);
  padding: 26px 28px; overflow: hidden; will-change: transform, filter;
}
#complexity .page .ph {
  font-family: var(--font-mono); font-size: 8px; letter-spacing: .14em; text-transform: uppercase; color: #6f7a63;
  border-bottom: 1px solid rgba(60,70,55,.28); padding-bottom: 6px; margin-bottom: 12px;
  display: flex; justify-content: space-between; gap: 10px;
}
#complexity .page .pt { font-family: var(--font-law); font-size: 8.6px; line-height: 1.62; text-align: justify; hyphens: auto; color: #33291c; }
#complexity .page .pt p { margin-bottom: 8px; }
#complexity .page .pt .sec { font-weight: 700; letter-spacing: .02em; }
#complexity .page .veil { position: absolute; inset: 0; background: #c8d6c1; opacity: 0; pointer-events: none; }
#complexity .frag, #complexity .rejspan { display: inline-block; white-space: nowrap; }
#complexity .stamp {
  position: absolute; font-family: var(--font-mono); font-size: 9px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--stamp); border: 2px solid var(--stamp); border-radius: 4px; padding: 4px 9px; opacity: .65; mix-blend-mode: multiply; pointer-events: none;
}
#complexity .repealstamp { left: 10%; top: 34%; font-size: 13px; padding: 8px 14px; border-width: 3px; opacity: 0; color: #8e2f22; border-color: #8e2f22; z-index: 5; }
#complexity .pgrain {
  position: absolute; inset: 0; pointer-events: none; opacity: .3; mix-blend-mode: multiply; z-index: 12;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/></filter><rect width='140' height='140' filter='url(%23n)' opacity='0.4'/></svg>");
}

/* scan band — brand yellow sweep */
#complexity .scanband {
  position: absolute; left: 0; right: 0; height: 16vh; z-index: 40; pointer-events: none; opacity: 0;
  background: linear-gradient(180deg, transparent, rgba(255,197,0,.20) 35%, rgba(255,197,0,.32) 50%, rgba(255,197,0,.20) 65%, transparent);
  mix-blend-mode: multiply;
}
#complexity .scanband .edge { position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(150,120,20,.6); box-shadow: 0 0 16px rgba(255,197,0,.9); }

/* vignette that deepens as the world darkens to green */
#complexity .inkoverlay {
  position: absolute; inset: 0; z-index: 50; pointer-events: none; opacity: 0;
  background: radial-gradient(122% 104% at 50% 46%, transparent 42%, rgba(24,33,26,.55) 100%);
}

/* ambient brand glow */
#complexity .tnglow {
  position: absolute; left: 50%; top: 48%; width: 1150px; height: 1150px; transform: translate(-50%,-50%); border-radius: 50%;
  z-index: 52; pointer-events: none; opacity: 0; mix-blend-mode: screen; filter: blur(34px);
  background: radial-gradient(circle, rgba(175,197,173,.26), rgba(255,197,0,.12) 42%, transparent 68%);
}

/* extracted legalese strips — brand amber-yellow */
#complexity .strip {
  position: absolute; z-index: 60; font-family: var(--font-law); font-style: italic; color: #2a220f; white-space: nowrap;
  background: linear-gradient(180deg, rgba(255,205,60,.95), rgba(232,182,42,.95)); border-radius: 3px; padding: 3px 8px;
  opacity: 0; will-change: transform, opacity; box-shadow: 0 4px 18px rgba(20,30,15,0);
}
#complexity .strip .cite { font-style: normal; font-family: var(--font-mono); font-size: .62em; color: #5c4820; margin-left: 8px; letter-spacing: .04em; }
#complexity .strip.reject {
  background: linear-gradient(180deg, rgba(163,84,64,.32), rgba(140,60,45,.32)); color: #4a1e14; text-decoration: line-through;
  box-shadow: inset 0 0 0 1px rgba(142,47,34,.5);
}
#complexity .strip.reject .cite { color: #8e2f22; text-decoration: none; }

/* plain-english chips — brand-tinted borders (set per chip in JS) */
#complexity .chip {
  position: absolute; left: 50%; top: 50%; z-index: 70; font-family: var(--font-sans); font-weight: 600; font-size: clamp(15px,1.6vw,19px);
  color: var(--pl-text-hi); white-space: nowrap; background: rgba(20,30,22,.14); border: 1px solid rgba(255,197,0,.55);
  border-radius: 999px; padding: 9px 20px; opacity: 0; will-change: transform, opacity; backdrop-filter: blur(4px);
}
#complexity .chip .arrow { color: var(--tn-yellow); font-family: var(--font-mono); font-weight: 400; margin-right: 10px; font-size: .85em; }

/* the big header text that explains what's happening */
#complexity .tn-title {
  position: absolute; left: 50%; top: 8%; transform: translateX(-50%); text-align: center; width: min(820px,90vw);
  z-index: 110; pointer-events: none; opacity: 0;
}
#complexity .tn-title h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.45rem,3.8vw,2.7rem); line-height: 1.12; letter-spacing: -.02em; }

/* final rule — typography as the hero */
#complexity .finale {
  position: absolute; inset: 0; z-index: 80; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 0 24px; pointer-events: none;
}
#complexity .finale .badge {
  font-family: var(--font-mono); font-size: .66rem; letter-spacing: .3em; text-transform: uppercase; color: var(--tn-yellow);
  border: 1px solid rgba(255,197,0,.5); border-radius: 999px; padding: 7px 16px; opacity: 0; margin-bottom: 34px;
}
#complexity .finale h2 {
  font-family: var(--font-display); font-weight: 500; letter-spacing: -.015em; color: var(--pl-text-hi);
  font-size: clamp(2.2rem,5.4vw,4.4rem); line-height: 1.14; max-width: 19ch;
}
#complexity .finale h2 .w { display: inline-block; opacity: 0; will-change: transform, opacity, filter; }
#complexity .finale h2 .em { color: var(--tn-yellow); }
#complexity .finale .sub { color: #d3dccf; font-size: clamp(.95rem,1.4vw,1.12rem); line-height: 1.6; max-width: 52ch; margin-top: 26px; opacity: 0; }
#complexity .finale .srcs { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 34px; opacity: 0; }
#complexity .finale .src {
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .05em; color: #e6eee2;
  border: 1px solid rgba(216,229,210,.4); border-radius: 999px; padding: 6px 13px; background: rgba(216,229,210,.1);
}
#complexity .finale .src.dead { text-decoration: line-through; border-style: dashed; opacity: .5; }
#complexity .finale .tail { margin-top: 44px; font-family: var(--font-display); font-style: italic; color: #d3dccf; font-size: 1.06rem; opacity: 0; }
#complexity .finale .tail b { color: var(--tn-yellow); font-weight: 500; font-style: normal; }

/* caption */
#complexity .pl-caption {
  position: absolute; bottom: 5vh; left: 50%; transform: translateX(-50%); text-align: center;
  width: auto; max-width: min(640px,88vw);
  z-index: 100; pointer-events: none; opacity: 0;
  padding: 9px 24px; border-radius: 12px;
  background: rgba(10,15,10,0.42);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  text-shadow: 0 1px 10px rgba(10,15,10,0.6);
}
#complexity .pl-caption .step { font-family: var(--font-mono); font-size: .64rem; letter-spacing: .24em; text-transform: uppercase; color: var(--paper); opacity: 0.8; margin-bottom: 7px; }
#complexity .pl-caption h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.05rem,2.2vw,1.45rem); color: var(--paper); line-height: 1.3; }
#complexity .pl-caption .count { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .16em; color: var(--paper); opacity: 0.85; margin-top: 7px; text-transform: uppercase; }

/* reduced motion: no pin — the stage rests on its finished (green) state */
@media (prefers-reduced-motion: reduce) {
  #complexity .pl-stage { background: var(--pl-green-end); }
  #complexity .pl-caption { mix-blend-mode: normal; }
}

/* ══════════════════════════════════════════════════════════════════════════
   DOWNSTREAM SECTIONS  (light port — to be expanded next pass)
   ════════════════════════════════════════════════════════════════════════ */
.card {
  background: var(--paper); border: 1px solid var(--border); border-radius: 14px; padding: 1.75rem;
  transition: transform .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.card h3 { color: var(--bg-dk-base); }
.card p { color: var(--bg-dk-base); }
.cap-icon {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 11px; background: var(--tn-yellow); margin-bottom: 1rem;
}
.cap-icon svg { width: 24px; height: 24px; stroke: var(--tn-dk-green); fill: none; stroke-width: 1.6; }

.section-alt { background: var(--paper); }

/* "Our solution" picks up the green the animation lands on, so the centrepiece
   flows straight into it with no seam. */
#product { background: #46593d; }

/* ── Pricing ───────────────────────────────────────────────────────────── */
/* pricing sits on the light-green brand tint; elevation lifts the paper cards
   off the low-contrast background (larger lift on the featured tier). */
#pricing { background: var(--paper); }
#pricing .eyebrow-xl, #pricing .eyebrow-xl .idx { color: var(--tn-dk-green); opacity: 1; }
#pricing h2 { color: var(--tn-dk-green) !important; }
#pricing .price-trial { color: var(--tn-dk-green); opacity: 0.75; }

/* about (placeholder) — eyebrow + heading need dark ink on paper */
#about .eyebrow-xl, #about .eyebrow-xl .idx { color: var(--tn-dk-green); opacity: 1; }
#about h2 { color: var(--tn-dk-green); }
#about p { color: var(--tn-md-green); }

/* ── Billing toggle (monthly default / annual) ─────────────────────────── */
.price-toggle {
  display: inline-flex; gap: 4px; margin-top: 1.5rem; padding: 4px;
  border-radius: 999px; background: rgba(10,15,10,0.05);
  border: 1px solid rgba(10,15,10,0.12);
}
.price-toggle-btn {
  font-family: var(--font-sans); font-size: 0.86rem; font-weight: 500;
  color: var(--tn-md-green); background: transparent; border: 0;
  border-radius: 999px; padding: 0.45rem 1.2rem; cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
.price-toggle-btn.is-active { background: var(--tn-dk-green); color: var(--paper); }
.price-amount .amt-annual { display: none; }
#pricing.is-annual .price-amount .amt-monthly { display: none; }
#pricing.is-annual .price-amount .amt-annual { display: inline; }
.save-badge {
  display: none; margin-top: 0.55rem;
  font-family: var(--font-sans); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.04em;
  color: var(--tn-dk-green); background: var(--tn-yellow);
  padding: 0.24rem 0.6rem; border-radius: 999px;
}
#pricing.is-annual .save-badge { display: inline-block; align-self: flex-start; width: fit-content; }
.price-note { font-family: var(--font-sans); font-size: 0.85rem; font-weight: 500; color: var(--tn-md-green); margin-top: 0.55rem; }
#pricing.is-annual .note-monthly { display: none; }

/* ── Available Countries card (full-width, Our solution) ───────────────── */
.country-card { margin-top: 1.5rem; padding: 1.75rem; }
.country-card:hover { transform: none; border-color: var(--border); }
.country-title { color: var(--bg-dk-base); font-size: 1.5rem; }
.country-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 1.5rem; }
@media (max-width: 640px) { .country-cols { grid-template-columns: 1fr; gap: 1.5rem; } }
.country-col-head {
  font-family: var(--font-sans); font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--tn-md-green); font-weight: 600;
}
.country-list { list-style: none; padding: 0; margin: 0.9rem 0 0; display: flex; flex-direction: column; gap: 0.55rem; }
/* coming-soon list: 3 in the first column, 2 in the second (column-first fill) */
.country-list-2col { display: block; columns: 2; column-gap: 1.5rem; }
.country-list-2col li { break-inside: avoid; margin-bottom: 0.55rem; }
@media (max-width: 480px) { .country-list-2col { columns: 1; } }
.country-list li { position: relative; padding-left: 1.4rem; color: var(--bg-dk-base); }
.country-list li::before {
  content: ""; position: absolute; left: 0; top: 0.5em; width: 7px; height: 7px;
  border-radius: 999px; background: transparent;
  border: 1.5px solid var(--tn-md-green); opacity: 0.45;
}
.country-col-live .country-list li::before {
  background: var(--tn-md-green); border-color: var(--tn-md-green); opacity: 1;
  box-shadow: 0 0 0 3px rgba(70,89,61,0.15);
}
.country-prioritize {
  margin-top: 1.9rem; padding-top: 1.6rem; border-top: 1px solid rgba(10,15,10,0.1);
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center;
}
.country-prioritize-lead { color: var(--bg-dk-base); font-size: 0.98rem; margin-bottom: 0; }
.country-prioritize .waitlist-form { max-width: none; }
@media (max-width: 640px) {
  .country-prioritize { grid-template-columns: 1fr; gap: 1rem; }
  .country-prioritize-lead { margin-bottom: 0; }
}
/* white form fields + yellow button on the paper card */
.country-card .input-group,
.country-card .field { background: var(--resolution); border: 1px solid rgba(10,15,10,0.16); }
.country-card .input-group .field-bare { background: var(--resolution); }
.country-card .input-group .field-bare,
.country-card .field { color: var(--tn-dk-green); }
.country-card .field::placeholder,
.country-card .field-bare::placeholder { color: var(--tn-md-green); opacity: 0.6; }
.country-card .input-group .btn-primary { background: var(--tn-yellow); color: var(--tn-dk-green); border-color: transparent; }
.country-card .input-group .btn-primary:hover { background: var(--tn-dk-green); color: var(--paper); }
.price-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--resolution); border: 1px solid rgba(10,15,10,0.08);
  border-radius: 14px; padding: 2rem 1.75rem;
  box-shadow: 0 10px 28px -16px rgba(10,15,10,0.45);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.price-card:hover { transform: translateY(-4px); box-shadow: 0 22px 46px -22px rgba(10,15,10,0.5); }
.price-card-featured {
  border: 1.5px solid rgba(10,15,10,0.12);
  box-shadow: 0 34px 80px -30px rgba(10,15,10,0.6), 0 12px 28px -18px rgba(10,15,10,0.4);
}
.price-card-featured:hover { box-shadow: 0 44px 96px -32px rgba(10,15,10,0.62), 0 14px 30px -18px rgba(10,15,10,0.45); }
.price-tag {
  position: absolute; top: -0.75rem; left: 1.75rem;
  font-family: var(--font-sans); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--tn-dk-green); background: var(--tn-yellow);
  padding: 0.28rem 0.7rem; border-radius: 999px;
}
.price-name {
  font-family: var(--font-sans); font-size: 0.78rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--bg-dk-base); opacity: 0.75;
}
.price-amount {
  font-family: var(--font-display); font-size: 2.6rem; line-height: 1;
  color: var(--bg-dk-base); margin-top: 0.6rem;
}
.price-amount .price-per { font-size: 1rem; font-family: var(--font-sans); opacity: 0.7; }
.price-desc { color: var(--bg-dk-base); opacity: 0.85; font-size: 0.95rem; margin-top: 0.9rem; }
.price-list {
  list-style: none; padding: 0; margin: 1.4rem 0 2rem;
  display: flex; flex-direction: column; gap: 0.6rem;
}
.price-list li {
  position: relative; padding-left: 1.5rem;
  color: var(--bg-dk-base); font-size: 0.95rem; line-height: 1.5;
}
.price-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--tn-md-green); font-weight: 700;
}
.price-sub {
  font-family: var(--font-sans); font-size: 0.9rem;
  color: var(--bg-dk-base); opacity: 0.68; margin-top: 0.45rem;
}
.price-trial { color: var(--text-lo); font-size: 1rem; margin-top: 0.85rem; }
.price-cta { margin-top: auto; width: 100%; }
/* ghost CTA sits on a light card, so it needs dark ink, not the dark-theme light ink */
.price-card .btn-ghost { color: var(--bg-dk-base); border-color: var(--bg-dk-base); }
.price-card .btn-ghost:hover { background: var(--bg-dk-base); color: var(--paper); border-color: var(--bg-dk-base); }

/* final CTA */
.final-cta { text-align: center; max-width: 680px; margin-inline: auto; }

/* ── Footer ────────────────────────────────────────────────────────────── */
.v2-footer { background: #0A0F0A; color: var(--text-lo); border-top: 1px solid var(--border); }
.v2-footer a { color: var(--text-lo); }
.v2-footer a:hover { color: var(--text-hi); }
.v2-footer .legal-notice { font-family: var(--font-sans); font-size: 0.72rem; color: var(--text-xlo); }
.v2-footer .col-title { color: var(--text-hi); font-weight: 500; margin-bottom: 0.75rem; }

/* ── Scroll reveal ─────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s cubic-bezier(.22,.61,.36,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }

/* ── Nav responsive ────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .nav-desktop { display: none; }
  .nav-mobile-toggle { display: inline-flex; }
  .v2-signin { display: none; }   /* lives in the mobile menu instead */
}

/* ── Reduced motion ────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .cx-cue .mouse::after { animation: none !important; }
}
