/* ===================================================================
   JonTea — marketing site styles
   Gradients mirror the in-app Theme.swift AtmosphericBackground:
   a base linear gradient + 3 large blurred color "orbs" + glass cards.

   The app consolidated to exactly three brand gradients (Duo / Fam /
   Crew welcome gradients). Each scene's palette is expressed as six
   custom properties (--c1..--c3 gradient stops, --o1..--o3 orb colors)
   registered via @property so a palette class swap can interpolate —
   the experiences switcher recolors its scene live this way.

   ---- Two background modes -------------------------------------------
   FLOW MODE (html.js + prefers-reduced-motion: no-preference) is what
   almost everyone sees. `.bg-flow` — one fixed layer that js/main.js
   lerps between section palettes on scroll — paints the ENTIRE page,
   and `section.scene::before` contributes only a legibility vignette.
   The page is literally one continuous gradient; there are no section
   seams to blend, so --seam collapses to 0.

   FALLBACK MODE (no JS, or reduced motion) is the old model: .bg-flow
   is static, so each section paints its own palette and the --seam
   overlap + ::before mask feather the joins.

   A section's bg-* class therefore no longer decides what it *paints*
   in flow mode — it decides which palette the flow lerps toward there,
   and which colors its orbs are.
   =================================================================== */

:root {
  --maxw: 1200px;
  --radius: 22px;
  --radius-sm: 14px;
  /* vertical overlap/feather between adjacent scenes */
  --seam: clamp(90px, 11vh, 160px);
  /* --- spacing system --- */
  --sp-section: clamp(64px, 8vw, 112px);
  --sp-section-slim: clamp(40px, 4.5vh, 62px);
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 28px;
  --sp-7: 36px;
  --sp-8: 48px;
  /* column gap for 2-col grids (scales down through the tablet range) */
  --gap-split: clamp(36px, 4.5vw, 56px);
  /* --- container widths --- */
  --maxw-narrow: 760px;
  --maxw-disclosure: 820px;
  /* --- card padding --- */
  --pad-card: 32px;
  --pad-card-sm: 20px 22px;
  --pad-card-lg: 40px 44px;
  /* --- small type scale --- */
  --fs-xs: 0.75rem;
  --fs-sm: 0.85rem;
  --fs-md: 0.9rem;
  --fs-base: 0.95rem;
  --glass-bg: rgba(255, 255, 255, 0.075);
  /* solid-ish fallback swapped in below where backdrop-filter is unsupported */
  --glass-border: rgba(255, 255, 255, 0.18);
  /* layered: tight contact shadow + soft ambient falloff */
  --glass-shadow: 0 1px 1px rgba(0, 0, 0, 0.12), 0 18px 50px rgba(0, 0, 0, 0.28);
  --ink: #ffffff;
  --ink-dim: rgba(255, 255, 255, 0.88);
  --ink-faint: rgba(255, 255, 255, 0.78);
  /* champagne premium-title accent, mirrors Theme.swift premiumTitle */
  --accent: rgb(255, 232, 184);
  --accent-soft: rgba(255, 232, 184, 0.16);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
}

/* Register the palette properties so class swaps interpolate (a harmless
   no-op in browsers without @property — swaps are instant there). */
@property --c1 { syntax: "<color>"; inherits: true; initial-value: #0b0e29; }
@property --c2 { syntax: "<color>"; inherits: true; initial-value: #131744; }
@property --c3 { syntax: "<color>"; inherits: true; initial-value: #090b22; }
@property --o1 { syntax: "<color>"; inherits: true; initial-value: transparent; }
@property --o2 { syntax: "<color>"; inherits: true; initial-value: transparent; }
@property --o3 { syntax: "<color>"; inherits: true; initial-value: transparent; }
/* the per-palette vignette depth — registered too, or it would snap to the
   fallback mid-morph while every other palette var eased */
@property --sheen-dark { syntax: "<color>"; inherits: true; initial-value: rgba(0, 0, 0, 0.18); }

/* Without backdrop-filter a 0.12 white veil is unreadable over the gradient —
   swap in a solid-ish tint so those engines still get a legible card. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root { --glass-bg: rgba(20, 22, 50, 0.55); }
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  /* pin the footer to the bottom on short pages (contact, delete-account):
     .bg-flow is fixed, so without this the backdrop showed below the footer */
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  /* orbs are positioned past the left/right edges on purpose; `clip` keeps
     them from ever producing a horizontal scrollbar (and, unlike `hidden`,
     doesn't make body a scroll container, so the sticky nav still works) */
  overflow-x: clip;
  font-family: var(--font);
  color: var(--ink);
  background: #0b0e29;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}

/* fixed film-grain overlay — premium atmospheric texture over everything */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  /* Static grain keeps texture without constant surface motion. */
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
/* visually hidden (kept for assistive tech) */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

/* ---------- Atmospheric gradient + orb system ---------- */
/* Each .scene's base gradient + sheen live on a masked ::before layer so
   content/orbs are never faded. .orb children are big blurred radial blobs.
   The gradient stops and orb colors come from the scene's --c1..--c3 and
   --o1..--o3 vars, which inherit — so a nested .scene (e.g. a phone-screen
   mock) with no bg-* class of its own picks up its ancestor's live palette. */

.scene {
  position: relative;
  overflow: hidden;
  /* A plain stacking context, NOT `isolation: isolate`. Both give the same
     ::before(0) / .orb(1) / .scene-inner(2) layering, but `isolation` forms a
     Backdrop Root — and in flow mode the section paints nothing, so any
     .glass inside would have an empty backdrop to blur. Chrome samples
     through it fine today; z-index avoids depending on that. */
  z-index: 0;
}

.scene::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  /* FALLBACK MODE paint: a restrained sheen over the section's own palette.
     The sheen used to open at rgba(255,255,255,0.16), which flattened every
     palette's deep end into the same mid-tone — keep it faint. */
  background:
    linear-gradient(135deg,
      rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03) 30%,
      transparent 52%, var(--sheen-dark, rgba(0, 0, 0, 0.18))),
    linear-gradient(rgba(9, 11, 34, 0.24), rgba(9, 11, 34, 0.24)),
    linear-gradient(135deg,
      var(--c1, #0b0e29), var(--c2, #131744), var(--c3, #090b22));
}

/* only the experiences switcher animates its palette; everything that reads
   the vars (gradient, orbs, and tab fills) morphs together */
@media (prefers-reduced-motion: no-preference) {
  .scene--live {
    transition: --c1 0.9s var(--ease), --c2 0.9s var(--ease), --c3 0.9s var(--ease),
      --o1 0.9s var(--ease), --o2 0.9s var(--ease), --o3 0.9s var(--ease);
  }
}

/* fixed continuous-morph backdrop — js/main.js lerps its gradient between
   each section's palette as you scroll. In FLOW MODE this is the only thing
   painting the page's color. Its static value comes from the palette class on
   <body> (bg-duo on index/demo, bg-advisor on the doc pages), so the no-JS /
   reduced-motion fallback is correct per page instead of hardcoded to Duo. */
.bg-flow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(135deg, var(--c1), var(--c2), var(--c3));
}

/* ---------- FLOW MODE ----------
   JS is running (so .bg-flow is actually being driven) and motion is allowed.
   Sections stop painting their palette and contribute only a vignette; with
   nothing to blend, the whole seam system collapses via one variable. */
@media (prefers-reduced-motion: no-preference) {
  html.js { --seam: 0px; }

  /* Full-bleed sections share the fixed backdrop in flow mode. */
  html.js section.scene::before { background: none; }

  /* The vignette lives on the fixed layer, not per section. Anchoring it to
     section boxes put a visible step wherever one began — most obviously in
     the 64px strip above the hero, where the sticky nav sits and no section
     paints. One fixed vignette over one fixed gradient = no steps anywhere. */
  html.js .bg-flow::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
      radial-gradient(125% 80% at 50% 0%, rgba(255, 255, 255, 0.08), transparent 55%),
      linear-gradient(180deg, rgba(0, 0, 0, 0.16), transparent 26%,
                              transparent 60%, rgba(0, 0, 0, 0.30)),
      linear-gradient(rgba(9, 11, 34, 0.24), rgba(9, 11, 34, 0.24));
  }

  /* Orbs overhang their section's edges by design, and `overflow: hidden` cut
     them off dead straight at every boundary — a hard horizontal line, most
     visible where the hero meets the 64px nav strip. `clip` with a generous
     margin lets them bleed across the join (so neighbouring sections' orbs
     overlap into one field) without ever becoming scrollable overflow. */
  @supports (overflow: clip) {
    html.js section.scene {
      /* `visible` is only coerced to `auto` when paired with hidden/scroll/auto
         — paired with `clip` it stays visible. So: hard horizontal clip (orbs
         sit past the left/right edges by design and must never widen the page)
         plus unlimited vertical bleed, which is the whole point. */
      overflow-x: clip;
      overflow-y: visible;
    }
  }

  /* the seam mask computes to fully-opaque at --seam:0, but a fully-opaque
     mask still forces a mask layer in every engine — drop it outright */
  html.js .scene + .scene::before {
    -webkit-mask-image: none;
    mask-image: none;
  }
}

.scene > .scene-inner {
  position: relative;
  z-index: 2;
}

.orb {
  position: absolute;
  border-radius: 50%;
  aspect-ratio: 1;
  /* the radial already feathers; most of the old 90px of blur was wasted GPU.
     No `will-change`: 18 permanently-promoted layers (6 scenes x 3), each the
     orb bbox plus ~3x the blur radius, cost ~100MB of layer memory. The CSS
     animation promotes during playback on its own. */
  filter: blur(64px);
  z-index: 1;
  pointer-events: none;
  animation: orbDrift1 30s ease-in-out infinite alternate;
  /* soft radial falloff (per-orb color from the scene's --o* vars) reads like
     an iOS mesh gradient control point rather than a flat disc. The 66% stop
     concentrates the same alpha into a readable core instead of a wash. */
  background: radial-gradient(circle at 50% 50%,
    var(--orb-col, rgba(255, 255, 255, 0.35)) 0%, transparent 66%);
}
.orb-1 { --orb-col: var(--o1, rgba(255, 255, 255, 0.2)); }
.orb-2 { --orb-col: var(--o2, rgba(255, 255, 255, 0.16)); }
.orb-3 { --orb-col: var(--o3, rgba(255, 255, 255, 0.12)); }

/* FALLBACK MODE seam: pull each scene up under the previous one and fade its
   own top edge so the previous scene's color shows through and blends.
   --seam is 0 in flow mode, which makes this whole block a no-op. */
.scene + .scene {
  margin-top: calc(-1 * var(--seam));
  padding-top: calc(var(--sp-section) + var(--seam));
}
/* Insurance for fallback mode: the overlap can exceed the previous section's
   bottom padding on some viewports, which would put the next section's box on
   top of the last line of content. (Measured: it does NOT currently occlude
   anything — the trailing .center-link keeps enough clearance — but the margin
   is thin.) Give any overlapped scene matching bottom room so it can't. */
.scene:has(+ .scene) { padding-bottom: calc(var(--sp-section) + var(--seam)); }
.scene--slim:has(+ .scene) { padding-bottom: calc(var(--sp-section-slim) + var(--seam)); }
/* eased (smoothstep-like) fade so no mach band is visible at any mask stop */
.scene + .scene::before {
  -webkit-mask-image: linear-gradient(180deg,
    transparent 0,
    rgba(0, 0, 0, 0.05) calc(var(--seam) * 0.2),
    rgba(0, 0, 0, 0.2)  calc(var(--seam) * 0.4),
    rgba(0, 0, 0, 0.5)  calc(var(--seam) * 0.6),
    rgba(0, 0, 0, 0.8)  calc(var(--seam) * 0.8),
    #000 var(--seam));
  mask-image: linear-gradient(180deg,
    transparent 0,
    rgba(0, 0, 0, 0.05) calc(var(--seam) * 0.2),
    rgba(0, 0, 0, 0.2)  calc(var(--seam) * 0.4),
    rgba(0, 0, 0, 0.5)  calc(var(--seam) * 0.6),
    rgba(0, 0, 0, 0.8)  calc(var(--seam) * 0.8),
    #000 var(--seam));
}

/* living orbs — slow drift + breathe (disabled under reduced motion) */
@keyframes orbDrift1 {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(5vw, 4vh, 0) scale(1.12); }
}
@keyframes orbDrift2 {
  from { transform: translate3d(0, 0, 0) scale(1.06); }
  to   { transform: translate3d(-4vw, -3vh, 0) scale(0.94); }
}
@keyframes orbDrift3 {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(3vw, -5vh, 0) scale(1.1); }
}
@keyframes grainShift {
  0%   { background-position: 0 0; }
  100% { background-position: 180px 140px; }
}
.orb-1 { animation-name: orbDrift1; animation-duration: 30s; }
.orb-2 { animation-name: orbDrift2; animation-duration: 38s; }
.orb-3 { animation-name: orbDrift3; animation-duration: 46s; }

/* ----- Palettes — keep in lockstep with the app's Theme.swift ----- */

/* JonTea Duo — Theme.swift `welcomeGradient` (all couples screens) */
.bg-duo {
  --c1: rgb(105, 28, 74);
  --c2: rgb(201, 87, 117);
  --c3: rgb(250, 184, 120);
  --o1: rgba(255, 138, 156, 0.32);
  --o2: rgba(250, 204, 110, 0.24);
  --o3: rgba(161, 107, 240, 0.20);
}
/* Deepen the vignette over Duo's light peach corner. Scoped to .scene on
   purpose: the bg-duo class on <body> exists only to give .bg-flow a static
   fallback, and unscoped this would push Duo's depth into every other
   section's fallback paint via inheritance. */
.scene.bg-duo { --sheen-dark: rgba(0, 0, 0, 0.28); }

/* JonTea Fam — Theme.swift `famWelcomeGradient` (plum → violet).
   NOTE: the app swapped Fam/Crew identities in June 2026 — Fam is the
   purple one now. Do not "fix" this back to teal. */
.bg-fam {
  --c1: rgb(61, 33, 107);
  --c2: rgb(115, 56, 158);
  --c3: rgb(158, 87, 199);
  --o1: rgba(217, 115, 242, 0.32);
  --o2: rgba(250, 158, 219, 0.24);
  --o3: rgba(140, 115, 250, 0.20);
}

/* JonTea Crew — Theme.swift `friendsWelcomeGradient` (teal → sage-gold).
   Same June 2026 swap: Crew is the teal/green one now. */
.bg-crew {
  --c1: rgb(31, 77, 107);
  --c2: rgb(51, 133, 138);
  --c3: rgb(153, 189, 107);
  --o1: rgba(117, 219, 189, 0.32);
  --o2: rgba(255, 204, 117, 0.24);
  --o3: rgba(97, 148, 230, 0.20);
}

/* Neutral "ink" valley — not an app gradient; chrome derived from the site's
   own darks (body #0b0e29 / footer #090b22) to give the eye a rest between
   the three brand palettes. Orbs are faint echoes of the accent hues. */
.bg-ink {
  --c1: rgb(11, 14, 41);
  --c2: rgb(19, 23, 68);
  --c3: rgb(9, 11, 34);
  --o1: rgba(125, 99, 255, 0.14);
  --o2: rgba(255, 232, 184, 0.09);
  --o3: rgba(97, 148, 230, 0.12);
}

/* LEGACY — relationshipAdvisorGradient. No longer in the app's Theme.swift;
   kept ONLY as the backdrop of the doc pages (privacy/terms/support/contact/
   delete-account). Don't use it on index.html, and keep its entry in
   js/main.js PALETTES so those pages' bg-flow stays correct. */
.bg-advisor {
  --c1: rgb(92, 31, 87);
  --c2: rgb(189, 71, 115);
  --c3: rgb(245, 143, 140);
  --o1: rgba(255, 153, 158, 0.30);
  --o2: rgba(245, 199, 140, 0.22);
  --o3: rgba(148, 92, 219, 0.20);
}

/* Default orb placement. These used to be 60–80vw squares, which on a wide
   screen flooded the viewport and (because height tracked viewport *width*)
   massively overshot short .scene--slim sections. Clamped, with height from
   aspect-ratio, they read as light sources instead of a color wash. */
.orb-1 { width: clamp(280px, 46vw, 720px); left: -12vw; top: -14vh; }
.orb-2 { width: clamp(320px, 52vw, 820px); right: -16vw; bottom: -18vh; }
.orb-3 { width: clamp(240px, 38vw, 600px); right: 6vw; top: -10vh; }

/* ---------- Glass surfaces (Liquid Glass) ---------- */
.glass {
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  backdrop-filter: blur(22px) saturate(150%);
}
/* soft top-edge specular highlight for a refined liquid-glass sheen */
.glass:not(.mock)::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 42%);
}
/* darker glass for copy that sits over a light gradient corner */
.glass--deep { background: rgba(11, 14, 41, 0.38); }

/* ---------- Top navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  /* Transparent at rest: a tinted bar here painted a hard horizontal seam
     across the top of the hero gradient. js/main.js adds .nav--scrolled past
     12px, which is where the solid bar earns its keep. */
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
}
/* the mobile dropdown is opaque, so the bar above it has to be too */
.nav:has(.nav-links.open),
.nav--scrolled {
  background: rgba(11, 14, 41, 0.78);
  border-bottom-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.4);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}
.nav:has(.nav-links.open) { background: rgba(11, 14, 41, 0.96); }
.nav-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  min-height: 44px;
  gap: 10px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}
/* The app's JT monogram (BrandMark*.imageset), rounded at 23% like BrandMarkView.swift. */
.brand-mark {
  width: 28px; height: 28px;
  flex: none;
  border-radius: 23%;
  box-shadow: 0 4px 14px rgba(9, 11, 34, 0.35);
}
.nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav-links a { color: var(--ink-dim); font-size: var(--fs-base); font-weight: 500; transition: color 0.15s ease; }
.nav-links a:hover { color: var(--ink); }
/* Business entry point, quieter than the primary button but findable */
.nav-links a.nav-biz { padding: 6px 14px; border: 1px solid rgba(255, 232, 184, 0.5); border-radius: 999px; color: var(--accent); }
.nav-links a.nav-biz:hover, .nav-links a.nav-biz[aria-current="page"] { background: rgba(255, 232, 184, 0.14); color: var(--accent); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: rgba(24, 16, 38, 0.88);
  border-color: rgba(255, 232, 184, 0.62);
  color: #fff;
  box-shadow: 0 6px 20px rgba(9, 11, 34, 0.18);
}
.btn-primary:hover { background: rgba(24, 16, 38, 0.98); border-color: var(--accent); }
.btn-ghost {
  /* A white tint disappeared against bg-duo's peach corner. A dark translucent
     fill reads at both ends of every palette. */
  background: rgba(10, 12, 32, 0.34);
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  backdrop-filter: blur(10px) saturate(140%);
}
.btn-ghost:hover { background: rgba(10, 12, 32, 0.48); border-color: rgba(255, 255, 255, 0.62); }
.btn-light {
  background: #fff;
  color: #1a1340;
}
.btn-lg { padding: 15px 28px; font-size: 1.02rem; }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 0;
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 6px;
}

/* ---------- Sections / typography ---------- */
section { padding: var(--sp-section) 0; }
/* tighter rhythm for the slim bands (play / advisor / trust) */
.scene--slim { padding: var(--sp-section-slim) 0; }
.scene + .scene--slim { padding-top: calc(var(--sp-section-slim) + var(--seam)); }

/* one uppercase-label voice for eyebrows and panel kickers */
.eyebrow,
.xp-kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
}
.eyebrow { margin: 0 0 var(--sp-4); }
h1, h2, h3 { margin: 0 0 18px; letter-spacing: -0.02em; line-height: 1.1; }
h1, h2 {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-weight: 560;
  letter-spacing: -0.02em;
}
h1 {
  font-size: clamp(2.7rem, 5.5vw + 0.5rem, 5.8rem);
  line-height: 1.0;
  text-wrap: balance;
}
h2 {
  font-size: clamp(2.1rem, 3.6vw + 0.6rem, 3.6rem);
  line-height: 1.05;
  text-wrap: balance;
}
h3 { font-size: 1.25rem; font-weight: 700; }
.accent { color: var(--accent); }
.lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--ink-dim); max-width: 60ch; text-wrap: pretty; }
.section-head { max-width: var(--maxw-narrow); margin-bottom: var(--sp-7); }
/* the AI scene's second head sits closer to its band than a scene-opening head */
.section-head--restart.section-head { margin-bottom: var(--sp-5); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .lead { margin-left: auto; margin-right: auto; }
/* a second section head inside one scene (AI copilots -> Relationship Advisor) */
.section-head--restart { margin-top: var(--sp-8); }

/* ---------- Hero ---------- */
.hero {
  min-height: calc(100svh - 64px);
  display: flex;
  align-items: center;
  padding: calc(var(--sp-section) * 0.75) 0 var(--sp-section);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--gap-split);
  align-items: center;
}
.hero .lead { margin-bottom: var(--sp-6); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* scroll cue — thin champagne line with a falling pulse dot */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 2;
  width: 2px;
  height: 44px;
  border-radius: 2px;
  background: rgba(255, 232, 184, 0.32);
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent);
}
.scroll-cue::after {
  content: "";
  position: absolute;
  left: 0; top: -14px;
  width: 2px; height: 14px;
  border-radius: 2px;
  background: var(--accent);
  animation: cueDrop 2.2s var(--ease) infinite;
}
@keyframes cueDrop {
  0%   { transform: translateY(0); opacity: 0; }
  25%  { opacity: 1; }
  80%  { transform: translateY(66px); opacity: 0; }
  100% { transform: translateY(66px); opacity: 0; }
}

/* ---------- Waitlist capture (hero + final CTA) ---------- */
.waitlist { margin-bottom: var(--sp-5); }
.waitlist-row {
  display: flex;
  gap: 6px;
  align-items: center;
  max-width: 440px;
  padding: 5px 5px 5px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.waitlist-row:focus-within {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.16);
}
.waitlist-row input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: var(--fs-base);
  padding: 10px 12px;
}
.waitlist-row input:focus { outline: none; }
.waitlist-row:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.waitlist-row input::placeholder { color: rgba(255, 255, 255, 0.78); }
.waitlist-row .btn { flex: none; }
.waitlist-hint {
  margin: 10px 2px 0;
  font-size: var(--fs-sm);
  color: var(--ink-faint);
}
.waitlist--center .waitlist-row { margin: 0 auto; }
.waitlist--center .form-note { max-width: 440px; margin-left: auto; margin-right: auto; }
@media (max-width: 480px) {
  .waitlist-row {
    flex-direction: column;
    align-items: stretch;
    border-radius: var(--radius);
    padding: 8px;
    gap: 8px;
  }
  .waitlist-row input { text-align: center; }
}

/* ---------- Experiences switcher ---------- */
/* invisible scroll targets for #duo/#fam/#crew (+ legacy #couples) deep links */
.xp-anchor { display: block; height: 0; }

.xp-tabs {
  display: none; /* enabled by html.js below; no-JS shows all panels stacked */
  width: max-content;
  max-width: 100%;
  margin: 0 auto var(--sp-6);
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
}
html.js .xp-tabs { display: inline-flex; }
.xp-tabs-row { text-align: center; }
.xp-tabs [role="tab"] {
  border: 0;
  background: transparent;
  color: var(--ink-dim);
  font: inherit;
  font-weight: 650;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 8px 24px 8px 10px;
  min-height: 44px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.xp-tab-mark { width: 26px; height: 26px; border-radius: 23%; opacity: 0.8; transition: opacity 0.25s var(--ease); }
.xp-tabs [aria-selected="true"] .xp-tab-mark { opacity: 1; }
.xp-tabs [role="tab"]:hover { color: #fff; }
.xp-tabs [aria-selected="true"] {
  color: #fff;
  /* filled by the scene's *live* palette so the pill morphs with the scene */
  background: linear-gradient(135deg, var(--c1), var(--c2));
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
}

/* panels: stacked in one grid cell, crossfaded; equal height so the layout
   (and the bg-flow's measured section centers) never jumps between tabs */
.xp-panels { display: block; }
html.js .xp-panels { display: grid; }
.xp-panel {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--gap-split);
  align-items: center;
}
html.js .xp-panel {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease), visibility 0s 0.45s;
}
html.js .xp-panel.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0.12s, 0.12s, 0s;
}
/* no-JS: all three panels stack with breathing room */
html:not(.js) .xp-panel + .xp-panel { margin-top: 72px; }

.xp-panel h3 {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-weight: 560;
  font-size: clamp(1.7rem, 2.6vw, 2.4rem);
  letter-spacing: -0.015em;
  line-height: 1.08;
  text-wrap: balance;
}
.xp-kicker { margin: 0 0 var(--sp-3); }
.xp-panel .pills { margin-top: var(--sp-5); }

/* ---------- Pill row ---------- */
.pills { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-6); }
.pills--center { justify-content: center; }
.center-link { text-align: center; margin-top: var(--sp-5); color: var(--ink-dim); }
.pill {
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.26);
  font-size: var(--fs-md);
  font-weight: 500;
}
/* a pill's number/label pair, used by the compact gamification row */
.pill strong { color: var(--accent); font-weight: 700; }
/* pills that are real links (the game marquee) get a hover state; static
   pills deliberately get none, so nothing reacts that can't be clicked */
a.pill {
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
a.pill:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.55);
}

/* ---------- Games marquee ---------- */
/* CSS-only infinite loop: two identical rows, each translating its own width.
   Pills stay backdrop-filter-free (the row repaints every frame). */
.marquee {
  display: flex;
  overflow: hidden;
  width: 100%;
  /* vertical room so pill borders, hover lift and focus rings aren't cropped */
  padding: var(--sp-2) 0;
  margin-top: 6px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee + .marquee { margin-top: 0; }
.marquee-row {
  display: flex;
  gap: 12px;
  padding: 0 6px;
  margin: 0;
  list-style: none;
  flex: none;
  min-width: max-content;
  animation: marqueeX 46s linear infinite;
}
.marquee:hover .marquee-row,
.marquee:focus-within .marquee-row { animation-play-state: paused; }
@keyframes marqueeX {
  to { transform: translateX(-100%); }
}
.marquee .pill { white-space: nowrap; }
/* Touch screens can't hover-pause, so a moving list fails WCAG 2.2.2 there.
   Degrade to the same static wrapped pills as reduced motion: every game is
   visible and tappable, nothing overflows, and the duplicate row is hidden. */
@media (hover: none) {
  .marquee { mask-image: none; -webkit-mask-image: none; }
  .marquee-row { animation: none; flex-wrap: wrap; min-width: 0; flex: 1 1 auto; }
  .marquee-row[aria-hidden="true"] { display: none; }
}

/* ---------- Split layout (AI section) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-split);
  align-items: center;
}

/* sample chat / list mockup */
.mock { background: rgba(9, 11, 34, 0.24); padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.mock--bare { padding: 0; }
.bubble {
  padding: 12px 16px;
  border-radius: 18px;
  font-size: var(--fs-base);
  max-width: 85%;
}
.bubble.ai {
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.26);
  align-self: flex-start;
  border-bottom-left-radius: 6px;
}
.bubble.me {
  background: rgba(61, 33, 107, 0.88);
  align-self: flex-end;
  border-bottom-right-radius: 6px;
}
.gift-item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px;
  border-radius: 14px;
  background: rgba(9, 11, 34, 0.20);
  border: 1px solid rgba(255,255,255,0.24);
}
.gift-item .badge {
  flex: none;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 8px;
  font-weight: 800;
  background: rgba(255,255,255,0.22);
}
.gift-item .t { font-weight: 700; }
.gift-item .d { color: var(--ink-dim); font-size: var(--fs-sm); }

/* ---------- AI copilot selector ---------- */
/* The four copilot rows used to be static cards that lifted on hover and did
   nothing. They're now a tablist that swaps the sample chat beside them,
   reusing the same grid-cell crossfade as the experiences switcher. */
.copilots { display: grid; gap: var(--sp-3); }
.copilot-pick {
  font: inherit;
  color: inherit;
  text-align: left;
  width: 100%;
  cursor: pointer;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.copilot-pick:hover { background: rgba(9, 11, 34, 0.32); }
.copilot-pick[aria-selected="true"] {
  background: rgba(9, 11, 34, 0.42);
  border-color: rgba(255, 232, 184, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.copilot-pick[aria-selected="true"] .badge {
  background: var(--accent);
  color: #2a1a40;
}
.copilot-pick[aria-selected="true"] .t { color: var(--accent); }

/* panels stack in one grid cell and crossfade; equal footprint so the layout
   (and bg-flow's measured section centers) never jumps between copilots */
.copilot-panels { display: block; }
html.js .copilot-panels { display: grid; }
html.js .copilot-panel {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0s 0.4s;
}
html.js .copilot-panel.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0.1s, 0.1s, 0s;
}
/* no-JS: all four sample chats stack with breathing room */
html:not(.js) .copilot-panel + .copilot-panel { margin-top: var(--sp-5); }

/* compact list band (advisor) */
.band {
  max-width: var(--maxw-narrow);
  margin: 0 auto;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

/* Privacy reassurance lives with the consumer CTA. */
.trust-row { margin-top: var(--sp-7); padding-top: var(--sp-5); border-top: 1px solid var(--glass-border); }
.trust-row .center-link { margin-top: var(--sp-4); font-size: var(--fs-sm); }

/* underlined inline link (e.g. inside cards) */
.ulink { text-decoration: underline; }
.ulink:hover { color: #fff; }

/* ---------- Final CTA band ---------- */
/* Extra floor under the CTA card so it clears the footer's fade ramp — at the
   default section padding its bottom edge sat ~60px above the footer, well
   inside the ramp, and the founder note got painted over. */
.cta-band { padding-bottom: calc(var(--sp-section) + 56px); }

.cta-inner {
  max-width: var(--maxw-narrow);
  margin: 0 auto;
  text-align: center;
  padding: 48px 40px;
}
.cta-inner .eyebrow { margin-bottom: var(--sp-3); }
.cta-inner .lead { margin: 0 auto var(--sp-6); }
/* short signed founder note — human, no invented metrics */
.founder-note {
  margin: var(--sp-6) auto 0;
  max-width: 44ch;
  font-style: italic;
  font-size: var(--fs-md);
  color: var(--ink-faint);
}
.founder-note .fn-sig {
  display: block;
  margin-top: 6px;
  font-style: normal;
  color: var(--ink-dim);
}

/* ---------- Legibility + focus ---------- */
.scene-inner h1, .scene-inner h2 { text-shadow: 0 2px 10px rgba(0, 0, 0, 0.18); }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
.check:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
::selection { background: rgba(255, 232, 184, 0.32); color: #fff; }

/* Hover lift ONLY where something actually happens on click. Static cards
   (advisor rows and the retired stat chips) used to rise under the cursor and
   then do nothing — a false affordance. */
@media (prefers-reduced-motion: no-preference) {
  a.gift-item, button.gift-item {
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  }
  a.gift-item:hover, button.gift-item:hover { transform: translateY(-3px); }
}

/* ---------- Footer ---------- */
.footer {
  margin-top: auto;
  background: #090b22;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 56px 0 40px;
  position: relative;
  /* no z-index: the old `z-index: 2` lifted the footer above body::after's
     film grain (z-index 1), so every scene was grained and the footer wasn't */
}
/* Long fade above the footer. A 48px ramp topping out at 55% left a hard
   peach -> near-black edge under the Duo CTA band; run it to full instead.
   Eased (same smoothstep shape as the seam mask) so there's no mach band, and
   held near zero through the first half — once --seam is 0 the .cta-inner
   card's bottom edge is only var(--sp-section) above the footer, and a linear
   ramp painted ~50% black straight over the founder note. */
.footer { --footer-fade: clamp(120px, 15vh, 180px); }
.footer::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: calc(-1 * var(--footer-fade));
  height: var(--footer-fade);
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(9, 11, 34, 0)    0%,
    rgba(9, 11, 34, 0.04) 30%,
    rgba(9, 11, 34, 0.16) 50%,
    rgba(9, 11, 34, 0.42) 68%,
    rgba(9, 11, 34, 0.74) 84%,
    rgba(9, 11, 34, 0.93) 94%,
    rgb(9, 11, 34)        100%);
}
/* doc pages end on a short card — keep the ramp off it */
main:has(> .scene.doc) + .footer { --footer-fade: 110px; }
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}
/* footer column titles are h2 for a correct outline, but keep the small-caps
   label look they had as h4: undo the global display-heading h2 styles */
.footer-col h2 {
  font-family: var(--font); font-weight: 700; line-height: inherit; text-wrap: wrap;
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--ink-faint); margin: 0 0 14px;
}
.footer-col a { display: block; color: var(--ink-dim); font-size: var(--fs-md); padding: 5px 0; }
.footer-col a:hover { color: #fff; }
.footer-tag { color: var(--ink-faint); max-width: 32ch; font-size: var(--fs-md); }
.footer-bottom {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.82rem;
  color: var(--ink-faint);
  display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: space-between;
}
/* doc pages: slim footer with no rule above */
.footer-bottom--bare { border: 0; margin: 0; padding: 0; }
.footer .brand { margin-bottom: var(--sp-3); }

/* ---------- Legal / long-form pages ---------- */
.doc { padding: 96px 0 96px; }
.doc-wrap { max-width: var(--maxw-narrow); margin: 0 auto; }
.doc-wrap > * + * { margin-top: var(--sp-5); }
.doc .glass { padding: var(--pad-card-lg); background: rgba(9, 11, 34, 0.38); }
.doc h1 { font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.1; margin-bottom: var(--sp-3); }
.doc h2 { font-size: 1.4rem; margin-top: 34px; }
/* a card's heading directly after an eyebrow starts the card, not a new section */
.doc .eyebrow + h2 { margin-top: 0; margin-bottom: var(--sp-3); }
.doc p, .doc li { color: var(--ink-dim); }
.doc ul { padding-left: 20px; }
.doc .lead { margin-bottom: var(--sp-6); }
.doc .glass > .lead:last-child { margin-bottom: 0; }
.doc .updated { color: var(--ink-faint); font-size: var(--fs-md); margin-bottom: var(--sp-6); }
/* quiet supporting note (legal caveats, alt-contact lines) */
.fine-print { color: var(--ink-faint); font-size: var(--fs-sm); margin-top: var(--sp-4); }
.fine-print--lead { margin: 0 0 var(--sp-2); }

/* ---------- Contact form ---------- */
.form-grid { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-size: var(--fs-md); font-weight: 600; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 13px 15px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.1);
  color: #fff;
  font: inherit;
  font-size: 1rem;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,0.78); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.16);
}
/* keyboard focus gets a visible ring on every form (not just the inquiry form) */
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.field [aria-invalid="true"] { border-color: var(--accent); }
.field textarea { min-height: 140px; resize: vertical; }
.field select {
  appearance: none;
  min-height: 48px;
  padding-right: 42px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.field select option { color: #1a1430; background: #fff; }
.check-hint { color: var(--ink-faint); font-size: var(--fs-xs); font-weight: 600; }
.field .optional { color: var(--ink-faint); font-weight: 400; }
/* experience checkboxes (advertise form) — pill-shaped labels around native inputs */
.checks { border: 0; padding: 0; margin: 0; }
.checks legend { font-size: var(--fs-md); font-weight: 600; margin-bottom: 7px; }
.check-row { display: flex; flex-wrap: wrap; gap: 10px; }
.check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.3);
  font-size: var(--fs-md);
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}
.check:has(input:checked) {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.7);
}
.check input { accent-color: var(--accent); }
.form-note {
  display: none;
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(185, 246, 200, 0.18);
  border: 1px solid rgba(185, 246, 200, 0.5);
  font-size: var(--fs-md);
}
.form-note.show { display: block; }
.form-note[data-state="error"] { background: rgba(9,11,34,0.22); border-color: var(--accent); }
.form-note[data-state="pending"] { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.3); }
form .btn:disabled { cursor: not-allowed; transform: none; box-shadow: none; opacity: 0.65; }

/* ---------- Businesses ---------- */
.hero-free { margin: var(--sp-5) 0 0; color: var(--accent); font-weight: 600; font-size: var(--fs-base); }
.business-invite {
  display: grid;
  grid-template-columns: 1.45fr 0.8fr;
  align-items: center;
  gap: var(--gap-split);
  padding: clamp(var(--sp-6), 5vw, var(--sp-8));
}
.business-invite .lead { margin-bottom: var(--sp-6); }
.business-invite .fine-print { max-width: 46ch; margin-bottom: 0; }
.business-audiences { border-left: 1px solid var(--glass-border); padding-left: var(--sp-7); }
.business-audiences > div { display: flex; align-items: center; gap: var(--sp-4); padding: var(--sp-5) 0; }
.business-audiences > div + div { border-top: 1px solid var(--glass-border); }
.business-audiences h3 { margin: 0 0 var(--sp-1); }
.business-audiences p { margin: 0; color: var(--ink-dim); font-size: var(--fs-base); }
.audience-mark { flex: none; width: 36px; height: 36px; border-radius: 23%; box-shadow: 0 6px 16px rgba(9, 11, 34, 0.3); }
.business-audiences > div { align-items: flex-start; }
.business-audiences h3 { font-size: 1.05rem; }
.business-hero .hero-cta { margin-bottom: var(--sp-2); }
.business-hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: var(--gap-split); }
.business-hero .lead { max-width: 42ch; margin-bottom: var(--sp-6); }
.business-hero .fine-print { max-width: 40ch; }

/* Advertise hero: real capture + the redemption ticket (the page's one bold device) */
.spotlight-stage { position: relative; margin: 0; display: grid; justify-items: center; gap: var(--sp-5); padding-bottom: var(--sp-6); }
.spotlight-phone { width: min(78%, 290px); transform: rotate(2deg); }
.ticket {
  --notch: 10px;
  position: absolute;
  left: 0; bottom: 5.5rem; /* clears the figcaption below the phone */
  display: flex;
  width: min(92%, 340px);
  color: #2a1530;
  background: linear-gradient(135deg, #fff9ee, rgb(255, 232, 184));
  border-radius: 16px;
  box-shadow: 0 24px 48px rgba(9, 11, 34, 0.35);
  transform: rotate(-4deg);
  /* the two half-circle notches at the perforation */
  -webkit-mask: radial-gradient(circle var(--notch) at calc(100% - 104px) 0, #0000 98%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle var(--notch) at calc(100% - 104px) 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle var(--notch) at calc(100% - 104px) 0, #0000 98%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle var(--notch) at calc(100% - 104px) 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
}
.ticket-main { flex: 1; min-width: 0; display: grid; gap: 2px; padding: var(--sp-4) var(--sp-5); }
.ticket-kind { font-size: var(--fs-xs); font-weight: 700; color: rgb(161, 55, 92); }
.ticket-biz { font-family: var(--display); font-size: 1.35rem; font-weight: 600; line-height: 1.15; }
.ticket-title { font-size: var(--fs-sm); color: rgba(42, 21, 48, 0.78); }
.ticket-stub { width: 104px; flex: none; display: grid; justify-items: center; align-content: center; gap: 6px; padding: var(--sp-3); border-left: 2px dashed rgba(42, 21, 48, 0.25); font-size: 0.68rem; font-weight: 700; text-align: center; line-height: 1.2; }
.ticket-qr { width: 52px; height: 52px; }
.spotlight-stage figcaption { font-size: var(--fs-xs); color: var(--ink-dim); text-align: center; }

/* Formats */
.format-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: var(--sp-6); align-items: stretch; }
.format { padding: var(--pad-card-lg); border-radius: var(--radius); }
.format--offer { background: linear-gradient(160deg, rgba(201, 87, 117, 0.32), rgba(255, 255, 255, 0.06)); }
.format-marks { display: flex; gap: var(--sp-2); }
.format-mark { width: 40px; height: 40px; border-radius: 23%; display: block; }
.format h3 { margin: var(--sp-5) 0 var(--sp-3); font-size: 1.45rem; font-family: var(--display); font-weight: 600; }
.format-where { display: block; margin-top: 2px; font-family: var(--font); font-size: var(--fs-sm); font-weight: 500; color: var(--ink-dim); }
.format p { color: var(--ink-dim); }
.tick-list { list-style: none; margin: var(--sp-5) 0 0; padding: 0; display: grid; gap: var(--sp-3); }
.tick-list li { position: relative; padding-left: 28px; font-size: var(--fs-base); }
.tick-list li::before { content: ""; position: absolute; left: 2px; top: 0.3em; width: 16px; height: 16px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-5' fill='none' stroke='%232a1530' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }

/* Redemption steps (a real sequence, so numbered) */
.redeem-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: var(--gap-split); align-items: center; }
.redeem-steps { list-style: none; counter-reset: step; margin: var(--sp-7) 0 var(--sp-5); padding: 0; display: grid; gap: var(--sp-5); }
.redeem-steps li { counter-increment: step; position: relative; padding-left: 60px; }
.redeem-steps li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; font-family: var(--display); font-size: 1.2rem; font-weight: 600; color: #2a1530; background: var(--accent); }
.redeem-steps h3 { margin: 0 0 var(--sp-1); font-size: 1.1rem; }
.redeem-steps p { margin: 0; color: var(--ink-dim); }

/* Pricing */
.tier-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-5); align-items: stretch; }
.tier { display: flex; flex-direction: column; padding: var(--pad-card); border-radius: var(--radius); }
.tier h3 { margin: 0; font-size: 1.1rem; }
.tier-price { margin: var(--sp-4) 0 var(--sp-1); display: flex; align-items: baseline; gap: var(--sp-2); }
.tier-amount { font-family: var(--display); font-size: 3rem; font-weight: 600; line-height: 1; letter-spacing: -0.02em; }
.tier-unit { color: var(--ink-dim); font-size: var(--fs-base); }
.tier-note { margin: 0; color: var(--ink-dim); font-size: var(--fs-sm); min-height: 2.6em; }
.tier .tick-list { margin-bottom: var(--sp-6); }
.tier .btn { margin-top: auto; justify-content: center; }
.tier--featured { border-color: rgba(255, 232, 184, 0.7); box-shadow: 0 0 0 1px rgba(255, 232, 184, 0.45), var(--glass-shadow); }
.tier--featured .tier-amount { color: var(--accent); }
.tier--featured .btn-primary { background: var(--accent); border-color: var(--accent); color: #2a1530; }
.tier--featured .btn-primary:hover { background: #fff3da; }
.tier-fine { max-width: var(--maxw-disclosure); margin: var(--sp-6) auto 0; text-align: center; }

/* FAQ */
.faq-wrap { max-width: var(--maxw-disclosure); }
.faq { margin-top: var(--sp-6); border-top: 1px solid var(--glass-border); }
.faq details { border-bottom: 1px solid var(--glass-border); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4); padding: var(--sp-5) 0; font-weight: 600; font-size: 1.05rem; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform 0.2s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.faq details p { margin: 0 0 var(--sp-5); color: var(--ink-dim); max-width: 68ch; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

.inquiry-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: var(--gap-split); align-items: start; }
.inquiry-copy { padding-top: var(--sp-5); }
.inquiry-details { border-top: 1px solid var(--glass-border); margin-top: var(--sp-7); padding-top: var(--sp-6); }
.inquiry-details h3 { font-size: 1rem; line-height: 1.4; }
.inquiry-details p { font-size: var(--fs-base); color: var(--ink-dim); }
.inquiry-copy .fine-print a { overflow-wrap: anywhere; }
.inquiry-card { padding: var(--pad-card); min-width: 0; }
.inquiry-card > h3 { margin-bottom: var(--sp-2); }
.inquiry-required { margin-top: 0; margin-bottom: var(--sp-6); }
.inquiry-form { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5) var(--sp-4); }
.inquiry-form .field { min-width: 0; }
.field--full { grid-column: 1 / -1; }
.inquiry-form .check { min-height: 44px; padding: var(--sp-3); gap: var(--sp-2); white-space: normal; }
.inquiry-form .check input { width: 18px; height: 18px; padding: 0; flex-shrink: 0; }
.inquiry-form .check-row { gap: var(--sp-2); }
.inquiry-form .fine-print { margin: 0; }
.inquiry-notice, .inquiry-status:not(:empty) { padding: var(--sp-4); border: 1px solid var(--glass-border); border-radius: var(--radius-sm); font-size: var(--fs-md); color: var(--ink-dim); }
.inquiry-notice { margin: 0 0 var(--sp-6); background: rgba(9,11,34,0.22); }
.inquiry-status { margin: 0; }
.inquiry-status:empty { display: none; }
.inquiry-status[data-state="success"] { border-color: var(--accent); background: var(--accent-soft); }
.inquiry-status[data-state="error"] { border-color: var(--accent); }
.inquiry-form .btn:disabled { cursor: not-allowed; transform: none; box-shadow: none; opacity: 0.65; }
.nav-links a[aria-current="page"] { color: var(--accent); }

/* ---------- Scroll reveal ---------- */
/* gated behind html.js so content is never invisible without JavaScript */
html.js .reveal {
  opacity: 0;
  transform: translateY(26px) scale(0.985);
  filter: blur(5px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease), filter 0.65s var(--ease);
}
html.js .reveal.in { opacity: 1; transform: none; filter: none; }

/* staggered reveal for grids of children */
html.js .stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
html.js .stagger.in > * { opacity: 1; transform: none; }
html.js .stagger.in > *:nth-child(2) { transition-delay: 0.07s; }
html.js .stagger.in > *:nth-child(3) { transition-delay: 0.14s; }
html.js .stagger.in > *:nth-child(4) { transition-delay: 0.21s; }
html.js .stagger.in > *:nth-child(5) { transition-delay: 0.28s; }
html.js .stagger.in > *:nth-child(n+6) { transition-delay: 0.35s; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  /* tighten the section rhythm by re-clamping the tokens — every rule that
     reads them (including the seam math) follows automatically */
  :root {
    --sp-section: clamp(46px, 6vh, 66px);
    --sp-section-slim: 38px;
  }

  .nav-links {
    position: absolute;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 22px;
    background: rgba(11, 14, 41, 0.96);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,0.12);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav-links .btn { margin-top: 12px; }
  .nav-links a.nav-biz { border: 0; border-bottom: 1px solid rgba(255,255,255,0.08); border-radius: 0; padding: 13px 0; }
  .nav-toggle { display: block; }

  .hero { min-height: 0; }
  .scroll-cue { display: none; } /* hero no longer fills the viewport here */
  .hero-grid, .split, .xp-panel { grid-template-columns: 1fr; gap: 40px; }
  .business-invite, .business-hero-grid, .inquiry-grid { grid-template-columns: 1fr; }
  .business-audiences { border-left: 0; padding-left: 0; border-top: 1px solid var(--glass-border); }
  .business-hero .lead, .business-hero .fine-print { max-width: 55ch; }
  .format-grid, .redeem-grid, .tier-grid { grid-template-columns: 1fr; }
  .tier-note { min-height: 0; }
  .spotlight-stage { max-width: 420px; justify-self: center; }
  .inquiry-copy { padding-top: 0; }

  /* segmented control becomes full-width, three equal targets */
  html.js .xp-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
  }
  .xp-tabs [role="tab"] { padding: 8px 12px 8px 8px; gap: 6px; }
  .xp-tab-mark { width: 22px; height: 22px; }

  .cta-inner { padding: 36px 24px; }
}

@media (max-width: 560px) {
  .inquiry-form { grid-template-columns: 1fr; }
  .inquiry-card, .format, .tier { padding: var(--sp-5); }
  .ticket { width: 94%; }
  .business-invite .btn, .business-hero .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal, html.js .stagger > * { opacity: 1; transform: none; filter: none; transition: none; }
  html.js .reveal.in, html.js .stagger.in > * { transition-delay: 0s; }
  .btn:hover { transform: none; }
  .orb { animation: none !important; translate: none !important; }
  body::after { animation: none; }
  .scroll-cue { display: none; }
  html.js .xp-panel, html.js .copilot-panel { transition: none; }
  /* marquee degrades to static wrapped pills; hide the duplicate row */
  .marquee { mask-image: none; -webkit-mask-image: none; }
  .marquee-row { animation: none; flex-wrap: wrap; min-width: 0; }
  .marquee-row[aria-hidden="true"] { display: none; }
}

/* ============ Live demo page (demo.html) ============ */
/* Real iOS captures and an accessible, independent walkthrough toolbar. */
.demo-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--gap-split);
  align-items: center;
}
.demo-copy h1 { font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.08; margin-bottom: var(--sp-4); }
.demo-tips {
  list-style: none;
  padding: 0;
  margin: var(--sp-5) 0;
  display: grid;
  gap: var(--sp-2);
  color: var(--ink-dim);
  font-size: var(--fs-md);
}
.demo-stage-wrap { display: flex; justify-content: center; }
.demo-stage {
  position: relative;
  width: min(340px, 78vw);
  aspect-ratio: 414 / 900;
  border-radius: 44px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(11, 14, 41, 0.38);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.demo-poster { width: 100%; height: 100%; object-fit: cover; display: block; }
.demo-launch {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  padding: var(--sp-4);
  text-align: center;
  background: linear-gradient(180deg, rgba(9, 11, 34, 0.18), rgba(9, 11, 34, 0.55));
}
.demo-stage.is-live .demo-launch,
.demo-stage.is-live .demo-poster { display: none; }
/* One .demo-view per screen; transitions run between the outgoing and
   incoming view (fade for tabs, push/pop for drill-ins, sheet for modals,
   overlay for the switcher/menu). Under prefers-reduced-motion the swap is
   instant — the fx classes are only added when motion is allowed. */
.demo-view { position: absolute; inset: 0; background: #0b0e29; }
.demo-view > .demo-shot { width: 100%; height: 100%; object-fit: cover; display: block; }
.demo-scroll {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.demo-scroll::-webkit-scrollbar { display: none; }
.demo-scroll-inner { position: relative; }
.demo-scroll-inner .demo-shot { width: 100%; height: auto; display: block; }
.demo-pinned-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  display: block;
  pointer-events: none;
}
/* Exiting views must not swallow taps mid-transition */
[class*="fx-"][class*="-exit"] { pointer-events: none; }
.fx-fade-enter { opacity: 0; }
.fx-fade-enter.fx-run { opacity: 1; transition: opacity 0.3s var(--ease); }
.fx-fade-exit.fx-run { opacity: 0; transition: opacity 0.3s var(--ease); }
.fx-push-enter { transform: translateX(100%); z-index: 2; }
.fx-push-enter.fx-run { transform: none; transition: transform 0.3s var(--ease); }
.fx-push-exit.fx-run { transform: translateX(-18%); transition: transform 0.3s var(--ease); }
.fx-pop-enter { transform: translateX(-18%); }
.fx-pop-enter.fx-run { transform: none; transition: transform 0.3s var(--ease); }
.fx-pop-exit { z-index: 2; }
.fx-pop-exit.fx-run { transform: translateX(100%); transition: transform 0.3s var(--ease); }
.fx-sheet-enter { transform: translateY(100%); z-index: 2; }
.fx-sheet-enter.fx-run { transform: none; transition: transform 0.3s var(--ease); }
.fx-sheet-exit.fx-run { opacity: 1; }
.fx-dismiss-exit { z-index: 2; }
.fx-dismiss-exit.fx-run { transform: translateY(100%); transition: transform 0.3s var(--ease); }
.fx-overlay-enter { opacity: 0; transform: scale(1.05); }
.fx-overlay-enter.fx-run { opacity: 1; transform: none; transition: opacity 0.28s var(--ease), transform 0.28s var(--ease); }
.fx-overlay-exit.fx-run { opacity: 0; transition: opacity 0.28s var(--ease); }
/* .btn's display would beat the [hidden] UA rule — restore it so the launch
   button stays hidden for no-JS visitors (only the poster shows) */
.demo-launch [hidden] { display: none !important; }
/* Tap-through hotspots: invisible buttons over the screenshot's real tappable
   UI; a non-hotspot tap toggles .show-hints on the stage to reveal them. */
.demo-hotspot {
  position: absolute;
  background: transparent;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  padding: 0;
}
.demo-hotspot:focus-visible,
.demo-stage.show-hints .demo-hotspot {
  outline: 2px solid rgba(255, 232, 184, 0.9);
  outline-offset: -2px;
  background: rgba(255, 232, 184, 0.12);
}
.demo-under {
  margin-top: var(--sp-3);
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--ink-faint);
}
.demo-under[hidden] { display: none; }

/* ---------- Product presentation ---------- */
main { flex: 1; min-width: 0; }
button, input, select, textarea { font: inherit; }
[hidden] { display: none !important; }
.skip-link { position: fixed; left: var(--sp-4); top: var(--sp-4); z-index: 200; padding: var(--sp-4); border-radius: var(--radius-sm); background: #0b0e29; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.hero-grid > *, .split > *, .xp-panel > *, .demo-grid > * { min-width: 0; }
.hero .lead { max-width: 38ch; line-height: 1.65; }
.hero-note { margin: var(--sp-5) 0 var(--sp-7); color: var(--ink-dim); font-size: var(--fs-sm); }
.text-link { display: inline-flex; align-items: center; gap: var(--sp-3); min-height: 44px; color: var(--accent); font-weight: 600; font-size: var(--fs-base); text-underline-offset: 5px; }
.text-link:hover { text-decoration: underline; }
.product-shot { margin: 0; display: grid; justify-items: center; gap: var(--sp-5); }
.device-frame { display: block; width: min(100%, 290px); padding: 7px; border-radius: 42px; background: rgba(11, 14, 41, 0.7); border: 1px solid rgba(255, 255, 255, 0.35); box-shadow: 0 28px 64px rgba(9, 11, 34, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.device-frame img { width: 100%; height: auto; border-radius: 35px; }
.product-shot figcaption { display: flex; align-items: center; gap: var(--sp-2); text-align: center; font-size: var(--fs-xs); color: var(--ink-dim); }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.xp-panel h3 { font-family: var(--display); font-weight: 500; font-size: clamp(1.8rem, 3vw, 2.6rem); text-wrap: balance; }
.xp-panel .lead { line-height: 1.65; }
.xp-panel .text-link { margin-top: var(--sp-6); }
.pill { box-shadow: none; }
.sample-label { color: var(--ink-dim); font-size: var(--fs-xs); letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 var(--sp-4); }
.doc .lead, .doc p, .doc li { line-height: 1.7; }
.nav-toggle { min-width: 44px; min-height: 44px; }
.waitlist-row input { font-size: 1rem; }
.waitlist-hint { line-height: 1.6; }
.form-note { overflow-wrap: anywhere; }
.demo-copy .lead { line-height: 1.65; }
.demo-experiences { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin: var(--sp-6) 0; }
.demo-experiences a { min-width: 76px; }
.demo-experiences a[aria-current="true"] { border-color: var(--accent); background: rgba(11, 14, 41, 0.55); }
.demo-stage-wrap > div { width: 100%; display: grid; justify-items: center; }
.demo-controls { display: flex; justify-content: center; gap: var(--sp-2); flex-wrap: wrap; margin: var(--sp-5) 0 var(--sp-2); }
.demo-controls button { color: var(--ink); border: 1px solid var(--glass-border); background: rgba(11, 14, 41, 0.45); border-radius: 999px; padding: var(--sp-2) var(--sp-4); min-height: 44px; cursor: pointer; }
.demo-controls button:disabled { opacity: 0.45; cursor: default; }
.demo-controls button[aria-pressed="true"] { border-color: var(--accent); }
.demo-under { max-width: 38ch; line-height: 1.6; margin-bottom: 0; }
.demo-error { position: absolute; inset: 0; z-index: 5; padding: var(--sp-6); background: #0b0e29; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: var(--sp-4); text-align: center; }
.demo-screen-label { max-width: 38ch; color: var(--ink-dim); font-size: var(--fs-sm); text-align: center; line-height: 1.5; margin: var(--sp-4) 0 0; }
html.no-js .demo-launch { display: none; }
@media (max-width: 400px) {
  .container { padding-left: var(--sp-5); padding-right: var(--sp-5); }
  .hero-cta { align-items: stretch; flex-direction: column; }
  .device-frame { width: min(100%, 250px); }
  .demo-stage { width: min(100%, 340px); }
}


/* The hero phone is the walkthrough itself, ready without a launch screen. */
.demo-embedded { display: grid; justify-items: center; gap: var(--sp-3); scroll-margin-top: 84px; }
.demo-embedded > .eyebrow { margin: 0; }
.demo-embedded .demo-experiences { margin: 0; justify-content: center; }
.demo-embedded .demo-stage-wrap { width: 100%; }
.demo-embedded .demo-controls { margin: var(--sp-4) 0 0; }
.demo-embedded .demo-stage { width: min(100%, 300px); }
.demo-embedded .demo-screen-label { display: none; }
.demo-embedded .demo-under { margin-top: var(--sp-3); max-width: 36ch; }
.demo-caption { color: var(--ink-dim); font-size: var(--fs-xs); text-align: center; line-height: 1.6; max-width: 36ch; margin: 0; }

/* Product-presentation breakpoint (kept after the rules it overrides). */
@media (max-width: 860px) {
  .demo-grid { grid-template-columns: 1fr; }
  .hero-grid { text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .demo-copy { text-align: center; }
  .demo-experiences { justify-content: center; }
  /* With no toggle script the expanded menu must scroll with the document. */
  html.no-js .nav { position: relative; }
  html.no-js .nav-inner { height: auto; flex-wrap: wrap; padding-top: var(--sp-4); }
  html.no-js .nav-toggle { display: none; }
  html.no-js .nav-links { display: flex; position: static; width: 100%; background: transparent; backdrop-filter: none; }
  .demo-page { padding-top: var(--sp-7); }
  .demo-grid { gap: var(--sp-4); }
  .demo-copy { display: contents; }
  .demo-intro { order: 0; text-align: center; }
  .demo-stage-wrap { order: 1; }
  .demo-details { order: 2; text-align: center; margin-top: var(--sp-5); }
  .demo-experiences { margin-bottom: 0; }
  .demo-controls { margin-top: 0; margin-bottom: var(--sp-4); }
  .demo-embedded .demo-stage { width: min(100%, 320px); }
}
