/* ============================================================
   RAMMENTA - landing page
   Aesthetic: SoftRiver — Atomic Black, white type, red emblem.
   ============================================================ */

:root {
  /* SoftRiver palette */
  --light-red: #FF3B30;
  --brand-red: #C90000;
  --red:   var(--light-red);
  --ember: var(--brand-red);
  --ink:   #0F0F10;
  --white: #FFFFFF;
  --bone:  #EDEFF7;
  --mist:  #D3D6E0;
  --ash:   #6E7180;
  --space: #9DA2B3;
  --steel: #BCBFCC;

  /* Atomic Black surface stack */
  --bg:     #0F0F10;
  --bg-2:   #141416;
  --surface:#1A1A1D;
  --raised: #222226;
  --hair:   color-mix(in srgb, var(--bone) 14%, transparent);
  --hair-2: color-mix(in srgb, var(--bone) 8%, transparent);

  /* Text on dark */
  --fg:     #FFFFFF;
  --fg-dim: #9DA2B3;
  --fg-mute:color-mix(in srgb, var(--space) 72%, transparent);

  /* Signal */
  --glow:   color-mix(in srgb, var(--red) 60%, var(--ember));
  --accent: var(--red);

  /* Type */
  --display: "Geist", "Geist Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ui: "Geist", "Geist Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Menlo", monospace;

  /* Rhythm */
  --maxw: 1200px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --r-card: 16px;
  --r-lg: 24px;

  /* Motion */
  --expo: cubic-bezier(0.16, 1, 0.3, 1);
  --quint: cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-theme="light"] {
  --red: var(--brand-red);
  --ember: var(--brand-red);
  --bg: var(--white);
  --bg-2: var(--bone);
  --surface: color-mix(in srgb, var(--bone) 58%, var(--white));
  --raised: var(--white);
  --hair: color-mix(in srgb, var(--ash) 32%, transparent);
  --hair-2: color-mix(in srgb, var(--ash) 18%, transparent);
  --fg: var(--ink);
  --fg-dim: color-mix(in srgb, var(--ash) 82%, var(--ink));
  --fg-mute: color-mix(in srgb, var(--ash) 88%, var(--ink));
  --glow: color-mix(in srgb, var(--brand-red) 72%, var(--light-red));
  --accent: var(--brand-red);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Keyboard focus: a strong, theme-consistent ring that reads on warm-black. */
:where(a, button, input):focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 6px;
  box-shadow: 0 0 0 5px rgba(255, 59, 48, 0.28);
}

/* Honor reduced motion globally: quiet every animation + transition, including
   the always-on decorative pulses (livedot, sonar, scrollPulse, spin, floaty). */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--ui);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip; /* clip (not hidden) so it doesn't break position:sticky */
  transition: background-color 0.45s var(--expo), color 0.35s ease;
}

img, canvas { display: block; max-width: 100%; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 300;
  background: var(--red); color: #fff; padding: 0.7rem 1.1rem;
  border-radius: 0 0 12px 0; font-weight: 600; text-decoration: none;
}
.skip:focus { left: 0; }

/* ---- Typography primitives ---- */
.display {
  font-family: var(--display);
  font-weight: 600;
  font-optical-sizing: auto;
  line-height: 0.98;
  letter-spacing: -0.03em;
}
.h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.2rem, 5.2vw, 4.1rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
}
.lede {
  font-size: clamp(1.08rem, 1.5vw, 1.4rem);
  line-height: 1.55;
  color: var(--fg-dim);
  max-width: 38ch;
}
.kicker {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
}
.num-mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }

/* ---- Buttons / pills ---- */
.pill {
  --pad-y: 0.68rem; --pad-x: 1.4rem;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 999px;
  font-weight: 600; font-size: 0.97rem;
  text-decoration: none; cursor: pointer; border: none;
  transition: transform 0.4s var(--expo), box-shadow 0.4s var(--expo), background 0.3s ease;
  will-change: transform;
}
.pill--lg { --pad-y: 0.9rem; --pad-x: 1.85rem; font-size: 1.04rem; }
.pill--accent {
  color: #fff;
  background: var(--ember);
  box-shadow: 0 10px 34px -8px color-mix(in srgb, var(--ember) 75%, transparent),
              inset 0 1px 0 color-mix(in srgb, #fff 30%, transparent);
}
.pill--accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 48px -10px color-mix(in srgb, var(--red) 70%, transparent),
              inset 0 1px 0 color-mix(in srgb, #fff 36%, transparent);
}
.pill--ghost {
  color: var(--fg);
  background: color-mix(in srgb, var(--bone) 6%, transparent);
  box-shadow: inset 0 0 0 1px var(--hair);
}
.pill--ghost:hover { background: color-mix(in srgb, var(--bone) 11%, transparent); transform: translateY(-2px); }

/* OAuth verifier block — always visible, no scroll-reveal dependency */
.oauth-plain {
  padding: clamp(2.5rem, 6vw, 4rem) var(--gutter);
  background: color-mix(in srgb, var(--bg-2) 88%, var(--red) 12%);
  border-block: 1px solid var(--hair-2);
}
.oauth-plain__inner { max-width: 42rem; margin: 0 auto; }
.oauth-plain__h3 {
  font-family: var(--display);
  font-size: 1.25rem; font-weight: 600;
  margin: 1.6rem 0 0.6rem; color: var(--fg);
}
.oauth-plain__list {
  margin: 0.8rem 0 1rem 1.1rem;
  font-size: 1.02rem; line-height: 1.65; color: var(--fg-2);
}
.oauth-plain__list li { margin: 0.45rem 0; }
.oauth-plain__list strong { color: var(--fg); }
.oauth-plain__links { font-size: 0.95rem; margin-top: 1.2rem; }
.oauth-plain__links a { color: var(--ember); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.85rem var(--gutter);
  transition: background 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom-color: var(--hair-2);
}
.brandlock { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; color: var(--fg); }
.brandlock__logos { position: relative; display: block; width: 124px; height: 24px; }
.brandlock__logo { display: block; width: 124px; height: auto; }
.brandlock__logos .brandlock__logo { position: absolute; inset: 0; }
.theme-logo--light { visibility: hidden; }
html[data-theme="light"] .theme-logo--dark { visibility: hidden; }
html[data-theme="light"] .theme-logo--light { visibility: visible; }
.brandlock__mark { width: 30px; height: 30px; flex: none; object-fit: contain; }
.brandlock__mark svg { width: 100%; height: 100%; display: block; }
.brandlock__name { font-weight: 700; font-size: 1.18rem; letter-spacing: -0.03em; }
.nav__links { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2rem); }
.nav__links a:not(.pill) {
  text-decoration: none; color: var(--fg-dim); font-weight: 500; font-size: 0.94rem;
  transition: color 0.25s ease;
}
.nav__links a:not(.pill):hover { color: var(--fg); }
.theme-toggle {
  width: 40px; height: 40px; flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--hair); border-radius: 50%;
  color: var(--fg-dim); background: color-mix(in srgb, var(--raised) 76%, transparent);
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease, transform 0.35s var(--expo);
}
.theme-toggle:hover {
  color: var(--fg); border-color: color-mix(in srgb, var(--red) 45%, var(--hair));
  background: color-mix(in srgb, var(--red) 8%, var(--raised));
  transform: rotate(8deg);
}
.theme-toggle__icon { width: 17px; height: 17px; }
.theme-toggle__moon { display: none; }
html[data-theme="light"] .theme-toggle__sun { display: none; }
html[data-theme="light"] .theme-toggle__moon { display: block; }
.nav__cta { padding: 0.55rem 1.1rem; font-size: 0.9rem; }
.nav__download {
  text-decoration: none; color: var(--fg-dim); font-weight: 600; font-size: 0.94rem;
  display: inline-flex; align-items: center; gap: 0.35rem;
  transition: color 0.25s ease;
}
.nav__download::before { content: "↓"; font-size: 0.92em; color: var(--red); }
.nav__download:hover { color: var(--fg); }

/* ============================================================
   HERO — SoftRiver 2B: emblem-dominant, clean black field
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  padding: 6.5rem var(--gutter) 4rem;
  overflow: hidden;
  background: var(--bg);
}
.hero__inner {
  position: relative; z-index: 2;
  max-width: 720px; width: 100%; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.hero-lockup {
  position: relative;
  width: clamp(270px, 48vw, 520px);
  aspect-ratio: 1601.41 / 311.75;
  margin: 0 auto clamp(2.4rem, 5vw, 3.5rem);
  flex: none;
}
.hero-lockup img {
  position: absolute; inset: 0;
  width: 100%; height: auto; display: block;
  transform-origin: 10% 50%;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-lockup img {
    clip-path: inset(0 80% 0 0);
    transform: translateX(40%) scale(0.06);
  }
  .hero.is-lit .hero-lockup img {
    animation: brandReveal 2.7s var(--expo) both;
  }
}
@keyframes brandReveal {
  0%   { clip-path: inset(0 80% 0 0); transform: translateX(40%) scale(0.06); }
  38%  { clip-path: inset(0 80% 0 0); transform: translateX(40%) scale(1); }
  56%  { clip-path: inset(0 80% 0 0); transform: translateX(40%) scale(1); }
  100% { clip-path: inset(0); transform: none; }
}
.hero__kicker {
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.12em;
  color: var(--fg-mute); text-transform: uppercase; margin-bottom: 1rem;
}
.hero__title {
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  margin-bottom: 0.75rem;
  letter-spacing: -0.035em;
}
.hero__tagline {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 500;
  color: var(--fg-dim);
  margin-bottom: 1.4rem;
  letter-spacing: -0.01em;
}
.hero__title .kw {
  display: inline-block;
  opacity: 0; transform: translateY(0.32em);
  filter: blur(8px);
}
.hero__title .kw--accent { color: var(--red); }
.hero.is-lit .kw { animation: kwIn 0.9s var(--expo) both; }
.hero.is-lit .kw:nth-child(1) { animation-delay: 0.05s; }
.hero.is-lit .kw:nth-child(2) { animation-delay: 0.13s; }
.hero.is-lit .kw:nth-child(3) { animation-delay: 0.21s; }
.hero.is-lit .kw:nth-child(4) { animation-delay: 0.29s; }
.hero.is-lit .kw:nth-child(5) { animation-delay: 0.37s; }
.hero.is-lit .kw:nth-child(6) { animation-delay: 0.45s; }
@keyframes kwIn { to { opacity: 1; transform: none; filter: blur(0); } }

.hero__lede { font-size: clamp(1rem, 1.5vw, 1.2rem); max-width: 42ch; color: var(--fg-mute); margin-bottom: 2rem; line-height: 1.55; }
.hero__cta { display: flex; gap: 0.8rem; flex-wrap: wrap; justify-content: center; margin-bottom: 1.4rem; }
.hero__download {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem 0.85rem;
  margin-bottom: 2rem; font-size: 0.94rem;
}
.hero__download-label {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-mute);
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.hero__download-label::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red);
  box-shadow: 0 0 8px 1px color-mix(in srgb, var(--red) 70%, transparent);
}
.hero__dl-link {
  display: inline-flex; align-items: center; gap: 0.35rem;
  color: var(--fg); font-weight: 600; text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--red) 45%, transparent);
  padding-bottom: 1px; transition: color 0.25s ease, border-color 0.25s ease;
}
.hero__dl-link:hover { color: var(--red); border-bottom-color: var(--red); }
.hero__download-sep { color: var(--fg-mute); }
@media (max-width: 600px) {
  .nav__download { display: none; }
  .hero__download-sep { display: none; }
  .hero__download { gap: 0.45rem 1rem; }
}
.hero__trust {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.92rem; color: var(--fg-mute);
}
.hero__trust .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red);
  box-shadow: 0 0 12px 2px color-mix(in srgb, var(--red) 80%, transparent); }

.hero__scroll {
  position: absolute; left: 50%; bottom: 1.8rem; z-index: 2;
  transform: translateX(-50%);
}
.hero__scrollline { display: block; width: 1px; height: 46px;
  background: linear-gradient(var(--fg-mute), transparent);
  position: relative; overflow: hidden; }
.hero__scrollline::after {
  content: ""; position: absolute; top: -50%; left: 0; width: 1px; height: 50%;
  background: var(--red);
  animation: scrollPulse 1.9s var(--expo) infinite;
}
@keyframes scrollPulse { to { top: 100%; } }

/* ============================================================
   PROOF LINE
   ============================================================ */
.proof {
  text-align: center;
  padding: clamp(4rem, 11vh, 8rem) var(--gutter);
  max-width: 1000px; margin: 0 auto;
}
/* ── Cinematic stat band: the live "Already remembering" proof moment. A faint
   drifting voiceprint (the brand mark) behind three enormous live numbers. The
   numbers keep class="num" data-stat data-count so main.js animates + live-
   updates them via the site-stats edge fn. ── */
.band {
  position: relative; width: 100%; overflow: hidden;
  padding: clamp(3.5rem, 9vh, 6rem) var(--gutter);
  background: var(--bg);
}
.band::before, .band::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px; z-index: 4;
  background: linear-gradient(90deg, transparent, var(--hair) 18%, var(--hair) 82%, transparent);
}
.band::before { top: 0; }
.band::after  { bottom: 0; }
.band__canvas { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; opacity: 0.9; }
/* vignette sinks the canvas into the night + a center darkening keeps the
   numbers crisp where the voiceprint burst is densest */
.band__veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(46% 56% at 50% 52%, color-mix(in srgb, var(--bg) 55%, transparent), transparent 72%),
    radial-gradient(58% 70% at 50% 50%, transparent, color-mix(in srgb, var(--bg) 78%, transparent) 86%),
    linear-gradient(to bottom, var(--bg) 0%, transparent 16% 84%, var(--bg) 100%);
}
.band__inner { position: relative; z-index: 3; max-width: 1040px; margin: 0 auto; text-align: center; }
.band__live {
  display: inline-flex; align-items: center;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--fg-mute); margin-bottom: clamp(1.4rem, 3vw, 2rem);
}
.band__stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid var(--hair-2);
}
.stat {
  display: grid; justify-items: center; align-content: center; gap: 0.55rem; min-width: 0;
  padding: clamp(1.3rem, 3vw, 2rem) clamp(0.6rem, 2vw, 1.4rem);
}
.stat__num {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  line-height: 1; letter-spacing: -0.035em;
  color: var(--red); font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.stat__label {
  font-family: var(--ui); font-size: clamp(0.68rem, 1vw, 0.8rem);
  font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-mute);
}
.stat + .stat { position: relative; }
.stat + .stat::before {
  content: ""; position: absolute; left: 0; top: 20%; bottom: 20%; width: 1px;
  background: var(--hair-2);
}
.band__sub {
  font-size: 0.84rem; line-height: 1.5;
  color: var(--fg-mute); max-width: 62ch; margin: clamp(1.3rem, 3vw, 1.8rem) auto 0;
}
@media (max-width: 720px) {
  .band__stats { grid-template-columns: 1fr; }
  .stat + .stat::before {
    left: 18%; right: 18%; top: 0; bottom: auto; width: auto; height: 1px;
  }
}

/* ============================================================
   THE NAME - a compact dictionary aside under the hero
   ============================================================ */
.namedef {
  text-align: center;
  max-width: 720px; margin: 0 auto;
  padding: clamp(3rem, 8vh, 5rem) var(--gutter) 0;
}
.namedef__kicker {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--fg-mute); margin-bottom: 1rem;
}
.namedef__lead {
  display: inline-flex; align-items: baseline; gap: 0.5rem 0.9rem;
  flex-wrap: wrap; justify-content: center;
}
.namedef__word { font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1; }
.namedef__meta { font-size: clamp(0.82rem, 1.2vw, 0.95rem); color: var(--fg-mute); }
.namedef__ipa { font-family: var(--mono); color: var(--fg-dim); }
.namedef__def {
  font-family: var(--display); font-style: italic;
  font-size: clamp(1.05rem, 2vw, 1.4rem); line-height: 1.5;
  color: var(--fg-dim); margin-top: 0.7rem;
}
.namedef__def b { font-style: normal; font-weight: 600; color: var(--red); }
/* Pull the live stat band closer so the name leads into the count */
.namedef + .band { padding-top: clamp(3rem, 9vh, 6rem); }

/* ============================================================
   REPLACES - one app for the stack you're juggling
   ============================================================ */
.replaces { padding: clamp(5rem, 13vh, 9rem) var(--gutter); }
.replaces__inner { max-width: var(--maxw); margin: 0 auto; }
.replaces__head { text-align: center; }
.replaces__head .kicker { margin-bottom: 1rem; }
.replaces__h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
.replaces__lede { margin: 1.1rem auto 0; max-width: 46ch; }

.ledger {
  max-width: 940px; margin: clamp(2.6rem, 5vw, 3.8rem) auto 0;
  background: linear-gradient(165deg, var(--surface), var(--bg-2));
  border: 1px solid var(--hair-2); border-radius: var(--r-lg);
  box-shadow: 0 40px 80px -34px rgba(0,0,0,0.8);
  overflow: hidden;
}
.ledger__rows { list-style: none; }
.repl {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 2.5rem minmax(0, 1.1fr);
  align-items: center; gap: clamp(0.7rem, 2vw, 1.5rem);
  padding: clamp(0.85rem, 2vw, 1.15rem) clamp(1.1rem, 3vw, 1.8rem);
  border-top: 1px solid var(--hair-2); transition: background 0.3s ease;
}
.repl:first-child { border-top: none; }
.repl:hover { background: color-mix(in srgb, var(--bone) 3%, transparent); }

.repl__from { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.appchip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.85rem; color: var(--fg-dim); white-space: nowrap;
  padding: 0.3rem 0.72rem 0.3rem 0.34rem; border-radius: 999px;
  border: 1px solid var(--hair);
  background: color-mix(in srgb, var(--bone) 4%, transparent);
}
.appchip__ic {
  flex: none; width: 22px; height: 22px; border-radius: 6px;
  object-fit: cover; background: transparent;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.28), 0 1px 2px rgba(0, 0, 0, 0.3);
}
.repl__seam { display: grid; place-items: center; }
.repl__arrow {
  font-size: 1.05rem; line-height: 1;
  color: color-mix(in srgb, var(--red) 78%, var(--fg-mute));
  text-shadow: 0 0 12px color-mix(in srgb, var(--red) 45%, transparent);
}
.repl__to { display: flex; gap: 0.7rem; align-items: flex-start; }
.repl__ic {
  flex: none; width: 32px; height: 32px; border-radius: 9px;
  display: grid; place-items: center;
  color: var(--red); background: color-mix(in srgb, var(--red) 15%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--red) 24%, transparent);
}
.repl__ic svg { width: 17px; height: 17px; display: block; }
.repl__cap { display: grid; gap: 0.12rem; min-width: 0; }
.repl__name { font-size: 1.02rem; font-weight: 600; color: var(--fg); letter-spacing: -0.01em; }
.repl__desc { font-size: 0.86rem; color: var(--fg-dim); line-height: 1.42; }

.replaces__foot {
  max-width: 52ch; margin: clamp(1.9rem, 3.5vw, 2.7rem) auto 0; text-align: center;
  font-size: clamp(1.02rem, 1.4vw, 1.2rem); line-height: 1.55; color: var(--fg-dim);
}
.replaces__foot b { color: var(--fg); font-weight: 600; }

@media (max-width: 680px) {
  .repl { grid-template-columns: 1fr; gap: 0.65rem; padding: 1.1rem 1.1rem; }
  .repl__seam { justify-self: start; }
  .repl__arrow { display: inline-block; transform: rotate(90deg); }
}

/* ============================================================
   Shared section feel
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity 0.9s var(--expo), transform 0.9s var(--expo); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero__title .kw { opacity: 1 !important; transform: none !important; filter: none !important; }
}

/* ---- Device shell shared ---- */
.device { position: relative; }
.device__glow {
  position: absolute; inset: -16% 0 -22%; z-index: -1;
  background: radial-gradient(50% 50% at 50% 45%, color-mix(in srgb, var(--red) 18%, transparent), transparent 70%);
  filter: blur(38px); opacity: 0.35;
}

/* ============================================================
   CAPTURE → RECALL (pinned scrollytelling)
   ============================================================ */
.capture { position: relative; }
@media (min-width: 961px) { .capture { min-height: 300vh; } }
.capture__sticky {
  position: sticky; top: 0; min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 2rem;
  max-width: var(--maxw); margin: 0 auto; padding: 6rem var(--gutter);
}
.capture__copy { max-width: 30rem; }
.capture__steps { list-style: none; margin-top: 2.4rem; display: grid; gap: 0.4rem; }
.capture__step {
  display: flex; gap: 1.1rem; padding: 1rem 1.1rem;
  border-radius: 14px;
  opacity: 0.32; transition: opacity 0.5s var(--expo), background 0.5s var(--expo);
}
.capture__step.is-on { opacity: 1; background: color-mix(in srgb, var(--bone) 4%, transparent); }
.capture__no { font-family: var(--mono); color: var(--red); font-size: 0.9rem; padding-top: 0.25rem; }
.capture__step h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
.capture__step p { color: var(--fg-dim); font-size: 0.98rem; margin-top: 0.2rem; }
.capture__stage { display: grid; place-items: center; }

/* ============================================================
   PHONE device
   ============================================================ */
.phone {
  position: relative;
  width: min(310px, 78vw); aspect-ratio: 9 / 19.3;
  background: linear-gradient(160deg, #2a2320, #15110f);
  border-radius: 44px;
  padding: 9px;
  box-shadow:
    0 50px 90px -30px rgba(0,0,0,0.85),
    inset 0 0 0 1.5px color-mix(in srgb, var(--bone) 12%, transparent),
    inset 0 0 0 7px #0b0908;
}
.phone--sm { width: min(208px, 58vw); border-radius: 34px; }
.phone__notch {
  position: absolute; top: 17px; left: 50%; transform: translateX(-50%);
  width: 34%; height: 22px; background: #0b0908; border-radius: 0 0 14px 14px; z-index: 3;
}
.phone--sm .phone__notch { height: 18px; }
.phone__screen {
  position: relative; height: 100%; border-radius: 36px; overflow: hidden;
  background: radial-gradient(120% 80% at 50% 0%, var(--bg-2), var(--bg) 60%);
  padding: 2.6rem 1rem 1.1rem;
}
.phone--sm .phone__screen { border-radius: 30px; padding: 2.1rem 0.85rem 1rem; }

.screen { position: absolute; inset: 0; padding: inherit;
  opacity: 0; transform: translateY(14px) scale(0.99);
  transition: opacity 0.55s var(--expo), transform 0.55s var(--expo);
  pointer-events: none; }
.screen.is-active { opacity: 1; transform: none; }

/* recording HUD */
.rechud { height: 100%; display: flex; flex-direction: column; }
.rechud__top { display: flex; align-items: center; justify-content: space-between; }
.rechud__time { font-size: 2.1rem; font-weight: 600; color: var(--fg); }
.rechud__live { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.78rem; color: var(--fg-dim); }
.livedot { width: 7px; height: 7px; border-radius: 50%; background: var(--red);
  box-shadow: 0 0 10px 1px color-mix(in srgb, var(--red) 80%, transparent);
  animation: breathe 1.6s var(--expo) infinite; }
.livedot--sm { width: 5px; height: 5px; }
@keyframes breathe { 50% { opacity: 0.45; transform: scale(1.35); } }
.rechud__sonar { position: relative; flex: 1; display: grid; place-items: center; }
.rechud__sonar span {
  position: absolute; width: 86px; height: 86px; border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--red) 60%, transparent);
  animation: sonar 1.8s var(--expo) infinite;
}
.rechud__sonar span:nth-child(2) { animation-delay: 0.6s; }
.rechud__sonar span:nth-child(3) { animation-delay: 1.2s; }
@keyframes sonar { from { transform: scale(0.7); opacity: 0.65; } to { transform: scale(2.1); opacity: 0; } }
.rechud__stop {
  position: relative; z-index: 1; width: 64px; height: 64px; border: none; cursor: pointer;
  border-radius: 50%; background: linear-gradient(135deg, var(--red), var(--ember));
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--red) 18%, transparent), 0 8px 20px -6px var(--ember);
}
.rechud__stop::after { content: ""; position: absolute; inset: 0; margin: auto; width: 20px; height: 20px; background: #fff; border-radius: 5px; }
.rechud__wave { width: 100%; height: 46px; margin: 0.4rem 0 0.7rem; }
.rechud__caption { font-size: 0.82rem; color: var(--fg-mute); line-height: 1.45; }

/* transcript */
.screen--script { display: flex; flex-direction: column; gap: 0.5rem; overflow: hidden; }
.scripthead { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 0.3rem; }
.scripthead__title { font-weight: 600; font-size: 0.98rem; }
.scripthead__meta { font-size: 0.68rem; color: var(--fg-mute); }
.line { display: grid; grid-template-columns: auto 1fr; gap: 0.55rem; align-items: start; }
.who {
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.02em;
  padding: 0.16rem 0.42rem; border-radius: 999px; white-space: nowrap; margin-top: 0.15rem;
  color: #fff;
}
.who--a { background: linear-gradient(135deg, var(--red), var(--ember)); }
.who--b { background: linear-gradient(135deg, #3b82f6, #1e51c9); }
.who--c { background: linear-gradient(135deg, #c084fc, #7c3aed); }
.line__text { font-size: 0.84rem; color: var(--fg-dim); line-height: 1.4; }
.karaoke { color: var(--fg); background: color-mix(in srgb, var(--red) 16%, transparent);
  border-radius: 4px; box-decoration-break: clone; padding: 0 2px; }

/* recall */
.screen--recall { display: flex; flex-direction: column; gap: 0.7rem; }
.recall__card { background: color-mix(in srgb, var(--bone) 5%, transparent);
  border: 1px solid var(--hair-2); border-radius: 14px; padding: 0.85rem 0.9rem; }
.recall__eyebrow { font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--red); font-weight: 700; margin-bottom: 0.35rem; }
.recall__eyebrow--list { margin-top: 0.2rem; }
.recall__sum { font-size: 0.82rem; color: var(--fg-dim); line-height: 1.45; }
.todo { list-style: none; display: grid; gap: 0.5rem; }
.todo li { display: flex; align-items: center; gap: 0.55rem; font-size: 0.82rem; color: var(--fg-dim); }
.todo li em { margin-left: auto; font-style: normal; font-size: 0.66rem; color: var(--fg-mute); }
.todo__box { width: 15px; height: 15px; border-radius: 5px; border: 1.5px solid var(--fg-mute); flex: none; }
.todo__box--done { background: linear-gradient(135deg, var(--red), var(--ember)); border-color: transparent;
  position: relative; }
.todo__box--done::after { content: "✓"; position: absolute; inset: 0; font-size: 10px; color: #fff; display: grid; place-items: center; }

/* ============================================================
   FEATURE rows (ask / audio)
   ============================================================ */
.feature {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(5rem, 13vh, 9rem) var(--gutter);
}
.feature__text .lede { margin-top: 1.4rem; }
.feature--audio .feature__art { order: -1; }

/* ---- MAC window ---- */
.mac, .macmini {
  border-radius: 14px; overflow: hidden;
  background: var(--surface);
  box-shadow: 0 50px 90px -34px rgba(0,0,0,0.85), inset 0 0 0 1px var(--hair-2);
}
.mac__bar, .macmini__bar {
  display: flex; align-items: center; gap: 0.7rem; padding: 0.6rem 0.85rem;
  background: color-mix(in srgb, var(--bone) 5%, transparent);
  border-bottom: 1px solid var(--hair-2);
}
.mac__dots, .macmini__dots { display: inline-flex; gap: 6px; }
.mac__dots i, .macmini__dots i { width: 11px; height: 11px; border-radius: 50%; background: color-mix(in srgb, var(--bone) 18%, transparent); }
.mac__dots i:first-child { background: #ff5f57; }
.mac__dots i:nth-child(2) { background: #febc2e; }
.mac__dots i:nth-child(3) { background: #28c840; }
.mac__title { font-size: 0.8rem; color: var(--fg-mute); }
.mac__body { padding: 1.4rem; }

.chat { display: grid; gap: 0.85rem; }
.chat__q {
  justify-self: end; max-width: 80%;
  background: linear-gradient(135deg, var(--red), var(--ember)); color: #fff;
  padding: 0.6rem 0.9rem; border-radius: 14px 14px 4px 14px; font-size: 0.92rem;
}
.chat__think { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; color: var(--fg-mute); }
.chat__spark { width: 13px; height: 13px; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--red), var(--ember), var(--red));
  animation: spin 1.1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.chat__a { max-width: 92%; }
.chat__a > p { background: color-mix(in srgb, var(--bone) 6%, transparent); border: 1px solid var(--hair-2);
  padding: 0.7rem 0.9rem; border-radius: 14px 14px 14px 4px; font-size: 0.92rem; color: var(--fg); }
.cite {
  display: flex; gap: 0.7rem; align-items: center; margin-top: 0.6rem; text-decoration: none;
  background: color-mix(in srgb, var(--red) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--red) 26%, transparent);
  border-radius: 12px; padding: 0.6rem 0.75rem;
  transition: transform 0.4s var(--expo), border-color 0.3s;
}
.cite:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--red) 50%, transparent); }
.cite__mark { width: 30px; height: 30px; flex: none; }
.cite__body { display: grid; gap: 0.1rem; }
.cite__who { font-size: 0.74rem; font-weight: 600; color: var(--red); }
.cite__quote { font-size: 0.84rem; color: var(--fg-dim); }
.cite__time { font-size: 0.66rem; color: var(--fg-mute); }

/* ---- AUDIO player ---- */
.player {
  background: linear-gradient(165deg, var(--surface), var(--bg-2));
  border: 1px solid var(--hair-2); border-radius: var(--r-lg);
  padding: 1.6rem; max-width: 460px; margin: 0 auto;
  box-shadow: 0 40px 80px -34px rgba(0,0,0,0.8);
}
.player__head { display: flex; align-items: center; justify-content: space-between; }
.player__badge { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: #fff; background: linear-gradient(135deg, var(--red), var(--ember));
  padding: 0.28rem 0.6rem; border-radius: 999px; }
.player__len { font-size: 0.8rem; color: var(--fg-mute); }
.player__title { font-family: var(--display); font-weight: 600; font-size: 1.5rem; margin-top: 0.9rem; letter-spacing: -0.02em; }
.player__hosts { color: var(--fg-mute); font-size: 0.88rem; margin-top: 0.25rem; }
.player__wave { width: 100%; height: 64px; margin: 1.2rem 0; }
.player__controls { display: flex; align-items: center; justify-content: center; gap: 1.4rem; }
.player__t { font-size: 0.78rem; color: var(--fg-mute); }
.player__play { position: relative; width: 56px; height: 56px; border: none; cursor: pointer; border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--ember));
  box-shadow: 0 10px 26px -8px var(--ember); }
.player__play::after { content: ""; position: absolute; inset: 0; margin: auto; width: 0; height: 0;
  border-left: 16px solid #fff; border-top: 10px solid transparent; border-bottom: 10px solid transparent;
  transform: translateX(2px); }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.6rem; }
.chips li { font-size: 0.82rem; color: var(--fg-dim);
  padding: 0.36rem 0.8rem; border-radius: 999px; border: 1px solid var(--hair); }
.chips li:first-child { color: #fff; background: color-mix(in srgb, var(--red) 18%, transparent); border-color: color-mix(in srgb, var(--red) 40%, transparent); }

/* ============================================================
   MEMORY LAYER constellation
   ============================================================ */
.memory { padding: clamp(5rem, 13vh, 9rem) var(--gutter); }
.memory__inner { max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.constellation { position: relative; aspect-ratio: 1; max-width: 460px; width: 100%; margin: 0 auto; }
.constellation__core { position: absolute; inset: 18%; width: 64%; height: 64%;
  filter: drop-shadow(0 0 16px rgba(255, 59, 48, 0.45)); }
.source {
  position: absolute; font-size: 0.84rem; font-weight: 600; color: var(--fg-dim);
  padding: 0.5rem 0.85rem; border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  border: 1px solid var(--hair);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  animation: floaty 6s ease-in-out infinite;
}
.source--mail { top: 4%; left: 26%; }
.source--msg  { top: 22%; right: 0; animation-delay: -1.2s; }
.source--note { bottom: 16%; right: 6%; animation-delay: -2.4s; }
.source--obs  { bottom: 2%; left: 22%; animation-delay: -3.6s; }
.source--rec  { top: 38%; left: -2%; animation-delay: -4.8s; }
@keyframes floaty { 50% { transform: translateY(-9px); } }

/* ============================================================
   THREE DEVICES
   ============================================================ */
.devices { padding: clamp(2.6rem, 5vh, 4rem) var(--gutter); max-width: var(--maxw); margin: 0 auto; }
.devices__text { text-align: center; max-width: 40ch; margin: 0 auto clamp(1.3rem, 2.4vw, 1.8rem); }
.devices__text .lede { margin: 1.2rem auto 0; }
.devices__stage {
  display: grid; grid-template-columns: auto auto auto; align-items: center; justify-content: center;
  gap: clamp(1rem, 4vw, 3rem);
}

/* watch */
.watch {
  position: relative; width: 150px; aspect-ratio: 0.82; border-radius: 42px;
  background: linear-gradient(160deg, #2a2320, #0c0a09); padding: 12px;
  box-shadow: 0 40px 70px -28px rgba(0,0,0,0.85), inset 0 0 0 1px var(--hair-2);
}
.watch__back { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 42px; object-fit: contain; opacity: 0.22; }
.watch__face { position: relative; height: 100%; border-radius: 32px; background: #060504;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.35rem; padding: 0.5rem; }
.watch__time { font-size: 1.8rem; font-weight: 600; color: #fff; }
.watch__state { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.64rem; color: var(--ash); }
.watch__btns { display: flex; gap: 0.35rem; margin-top: 0.5rem; width: 100%; }
.watch__btn { flex: 1; text-align: center; font-size: 0.66rem; padding: 0.4rem 0; border-radius: 999px;
  background: color-mix(in srgb, var(--bone) 12%, transparent); color: #fff; }
.watch__btn--go { background: linear-gradient(135deg, var(--red), var(--ember)); }

/* mac mini capture bar */
.macmini { width: min(330px, 80vw); }
.macmini__body { padding: 1.1rem; }
.capturebar { display: flex; align-items: center; gap: 0.6rem;
  background: color-mix(in srgb, var(--bone) 5%, transparent); border: 1px solid var(--hair-2);
  border-radius: 12px; padding: 0.6rem 0.75rem; }
.capturebar__t { font-size: 0.92rem; color: #fff; font-weight: 600; }
.capturebar__wave { flex: 1; height: 26px; }
.capturebar__pill { font-size: 0.62rem; color: var(--fg-dim); padding: 0.2rem 0.5rem; border-radius: 999px; border: 1px solid var(--hair); white-space: nowrap; }
.macmini__hint { font-size: 0.8rem; color: var(--fg-mute); margin-top: 0.7rem; }

/* home dashboard */
.home { height: 100%; display: flex; flex-direction: column; gap: 0.7rem; }
.home__head { display: flex; align-items: center; justify-content: space-between; }
.home__hello { font-family: var(--display); font-weight: 600; font-size: 1.15rem; }
.home__mark { width: 34px; height: 34px; }
.home__record { display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  border: none; cursor: pointer; border-radius: 14px; padding: 0.85rem; color: #fff; font-weight: 600; font-size: 0.86rem;
  background: linear-gradient(135deg, var(--red), var(--ember)); box-shadow: 0 8px 20px -8px var(--ember); }
.home__recdot { width: 10px; height: 10px; border-radius: 50%; background: #fff; }
.home__tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.35rem; }
.tile { font-size: 0.62rem; text-align: center; padding: 0.5rem 0.2rem; border-radius: 10px;
  background: color-mix(in srgb, var(--bone) 5%, transparent); color: var(--fg-dim); }
.home__recent { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--fg-mute); margin-top: 0.2rem; }
.home__row { display: flex; align-items: center; gap: 0.45rem; font-size: 0.74rem; color: var(--fg-dim); }
.home__row em { margin-left: auto; font-style: normal; font-size: 0.64rem; color: var(--fg-mute); }
.home .who { font-size: 0.54rem; }

/* ============================================================
   LEADERBOARD
   ============================================================ */
.leaderboard {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(2rem, 6vw, 5rem);
  max-width: var(--maxw); margin: 0 auto; padding: clamp(5rem, 13vh, 9rem) var(--gutter);
}
.leaderboard__text .lede { margin-top: 1.4rem; }
.board {
  background: linear-gradient(165deg, var(--surface), var(--bg-2));
  border: 1px solid var(--hair-2); border-radius: var(--r-lg); padding: 1.4rem;
  box-shadow: 0 40px 80px -34px rgba(0,0,0,0.8); max-width: 460px; margin: 0 auto; width: 100%;
}
.board__head { display: flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; color: var(--fg-dim); }
.board__headlabel { font-weight: 600; color: var(--fg); }
.board__period { margin-left: auto; font-size: 0.74rem; color: var(--fg-mute); }
.board__chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.9rem 0 1.1rem; }
.bchip { font-family: inherit; cursor: pointer; font-size: 0.74rem; padding: 0.34rem 0.7rem; border-radius: 999px;
  border: 1px solid var(--hair); background: transparent; color: var(--fg-dim); transition: color 0.2s, border-color 0.2s, background 0.2s; }
.bchip:hover { color: var(--fg); }
.bchip.is-on { color: var(--red); border-color: color-mix(in srgb, var(--red) 45%, transparent); background: color-mix(in srgb, var(--red) 10%, transparent); }
.brow--skeleton { opacity: 0.5; }
.brow--skeleton .bav { background: color-mix(in srgb, var(--bone) 12%, transparent); }
.board__list { list-style: none; display: grid; gap: 0.4rem; }
.brow { display: flex; align-items: center; gap: 0.7rem; padding: 0.55rem 0.7rem; border-radius: 12px;
  background: color-mix(in srgb, var(--bone) 3.5%, transparent); }
.brow--me { background: color-mix(in srgb, var(--red) 12%, transparent); border: 1px solid color-mix(in srgb, var(--red) 40%, transparent); }
.brank { font-family: var(--mono); font-size: 0.8rem; width: 1.4rem; text-align: center; color: var(--fg-mute); }
.brow--1 .brank { color: #d9a821; } .brow--2 .brank { color: #a9aeb6; }
.bav { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-size: 0.6rem; font-weight: 700; color: #fff; overflow: hidden; flex: none;
  background: linear-gradient(135deg, hsl(var(--h, 14) 55% 62%), hsl(var(--h, 14) 60% 48%)); }
.bav--me { background: linear-gradient(135deg, var(--red), var(--ember)); font-size: 0.5rem; }
.bname { font-size: 0.88rem; color: var(--fg); display: flex; align-items: center; gap: 0.4rem; }
.bname em { font-style: normal; font-size: 0.62rem; color: var(--red); }
.bval { margin-left: auto; font-size: 0.92rem; font-weight: 600; color: var(--fg); }
.board__foot { font-size: 0.68rem; color: var(--fg-mute); margin-top: 0.9rem; }

/* ============================================================
   PRIVACY
   ============================================================ */
.privacy { padding: clamp(5rem, 13vh, 9rem) var(--gutter); }
.privacy__inner { max-width: var(--maxw); margin: 0 auto; }
.privacy__cols { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4.5rem);
  margin-top: clamp(2.4rem, 5vw, 3.6rem); align-items: start; }
.privacy__lead { position: relative; padding: clamp(1.6rem, 3vw, 2.4rem); border-radius: var(--r-lg);
  background: linear-gradient(165deg, color-mix(in srgb, var(--red) 11%, transparent), transparent 72%);
  border: 1px solid color-mix(in srgb, var(--red) 22%, transparent); }
.privacy__mark { width: 60px; height: 60px; margin-bottom: 1.2rem;
  filter: drop-shadow(0 0 12px rgba(255, 59, 48, 0.4)); }
.privacy__lead h3 { font-family: var(--display); font-weight: 600; font-size: clamp(1.7rem, 2.6vw, 2.4rem);
  letter-spacing: -0.02em; line-height: 1.05; margin-bottom: 0.85rem; }
.privacy__lead p { color: var(--fg-dim); font-size: 1.02rem; line-height: 1.55; max-width: 34ch; }
.privacy__list { list-style: none; }
.privacy__list li { padding: 1.25rem 0; border-top: 1px solid var(--hair-2); }
.privacy__list li:first-child { border-top: none; padding-top: 0.2rem; }
.privacy__list h4 { font-size: 1.1rem; letter-spacing: -0.01em; margin-bottom: 0.35rem;
  display: flex; align-items: center; gap: 0.6rem; }
.privacy__list h4::before { content: ""; width: 7px; height: 7px; border-radius: 50%; flex: none;
  background: var(--red); box-shadow: 0 0 10px 1px color-mix(in srgb, var(--red) 70%, transparent); }
.privacy__list p { color: var(--fg-dim); font-size: 0.96rem; line-height: 1.5; padding-left: 1.3rem; }

/* ============================================================
   EARLY ACCESS
   ============================================================ */
.access { position: relative; overflow: hidden; padding: clamp(6rem, 16vh, 11rem) var(--gutter); text-align: center;
  background: radial-gradient(80% 70% at 50% 40%, color-mix(in srgb, var(--red) 8%, transparent), var(--bg) 72%); }
.access__inner { position: relative; z-index: 2; max-width: 640px; margin: 0 auto; }
.access__title { font-size: clamp(3rem, 9vw, 6.5rem); }
.access__lede { color: var(--fg-dim); font-size: 1.15rem; margin: 1.2rem auto 2.2rem; max-width: 40ch; }
.access__form { display: flex; gap: 0.6rem; max-width: 460px; margin: 0 auto; flex-wrap: wrap; }
.access__input { flex: 1; min-width: 220px; padding: 0.9rem 1.2rem; border-radius: 999px;
  background: color-mix(in srgb, var(--bone) 7%, transparent); border: 1px solid var(--hair);
  color: var(--fg); font-size: 1rem; font-family: var(--ui); }
.access__input::placeholder { color: var(--fg-mute); }
.access__input:focus { outline: none; border-color: color-mix(in srgb, var(--red) 60%, transparent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--red) 16%, transparent); }
.access__note { font-size: 0.85rem; color: var(--fg-mute); margin-top: 1.1rem; }
.access.is-sent .access__form { display: none; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { padding: 3.5rem var(--gutter) 3rem; border-top: 1px solid var(--hair-2); max-width: var(--maxw); margin: 0 auto; }
.footer__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer__links { display: flex; gap: 1.4rem; }
.footer__links a { color: var(--fg-dim); text-decoration: none; font-size: 0.92rem; }
.footer__links a:hover { color: var(--fg); }
.footer__tag { font-family: var(--display); font-size: 1.6rem; color: var(--fg-mute); margin: 1.8rem 0; letter-spacing: -0.02em; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; align-items: baseline; color: var(--fg-mute); font-size: 0.8rem; }
.footer__affirm { flex: 1; min-width: 280px; max-width: 64ch; line-height: 1.5; }
.footer__affirm a { color: var(--fg-dim); text-decoration: underline; }

/* ============================================================
   APP MOCKUPS (accurate to the real SwiftUI screens)
   ============================================================ */
.appbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.7rem; }
.appbar__title { font-weight: 600; font-size: 1rem; }
.appbar__ic { color: var(--fg-mute); font-size: 0.95rem; }
.dayhdr { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--fg-mute); font-weight: 600;
  display: flex; align-items: baseline; gap: 0.5rem; margin: 0.2rem 0 0.5rem; }
.dayhdr em { font-style: normal; color: var(--fg-mute); letter-spacing: 0; text-transform: none; font-size: 0.66rem; margin-left: auto; }

/* ---- Recording HUD (capture state 0) ---- */
.rechud { height: 100%; display: flex; flex-direction: column; }
.rechud__timer { display: flex; align-items: baseline; justify-content: space-between; }
.rechud__time { font-size: 2.2rem; font-weight: 600; letter-spacing: -0.02em; color: var(--fg); }
.rechud__live { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.76rem; color: var(--fg-dim); }
.rechud__wave { width: 100%; height: 64px; margin: 1rem 0 0.7rem; }
.rechud__caption { font-size: 0.82rem; color: var(--fg-mute); line-height: 1.45; }
.rechud__controls { margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 1.3rem; padding-top: 0.8rem; }
.hudbtn { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: color-mix(in srgb, var(--bone) 9%, transparent); color: var(--fg); font-size: 0.85rem; }
.hudstop { position: relative; width: 62px; height: 62px; border-radius: 50%;
  border: 3px solid color-mix(in srgb, var(--red) 45%, transparent);
  box-shadow: 0 0 22px -4px color-mix(in srgb, var(--red) 60%, transparent); }
.hudstop::after { content: ""; position: absolute; inset: 0; margin: auto; width: 24px; height: 24px; border-radius: 7px;
  background: linear-gradient(135deg, var(--red), var(--ember)); }

/* ---- Transcript (capture state 1) ---- */
.tx { display: flex; flex-direction: column; gap: 0.15rem; overflow: hidden; }
.tx__spk { font-size: 0.82rem; font-weight: 600; margin-top: 0.55rem; }
.tx__spk:first-child { margin-top: 0; }
.tx__spk--a { color: var(--red); }
.tx__spk--b { color: #5b9bff; }
.tx__spk--c { color: #c89bff; }
.tx__line { display: grid; grid-template-columns: 2.6rem 1fr; gap: 0.4rem; align-items: start; }
.tx__t { font-size: 0.64rem; color: var(--fg-mute); padding-top: 0.18rem; }
.tx__line p { font-size: 0.82rem; color: var(--fg-dim); line-height: 1.4; }

/* ---- Recall (capture state 2) ---- */
.recall__sec { background: color-mix(in srgb, var(--bone) 5%, transparent); border: 1px solid var(--hair-2);
  border-radius: 14px; padding: 0.8rem 0.85rem; margin-bottom: 0.7rem; }
.recall__sec--items { background: color-mix(in srgb, var(--red) 6%, transparent); border-color: color-mix(in srgb, var(--red) 16%, transparent); }
.recall__label { display: flex; align-items: center; gap: 0.45rem; font-size: 0.8rem; font-weight: 600; margin-bottom: 0.45rem; }
.recall__ic { display: grid; place-items: center; width: 17px; height: 17px; border-radius: 5px; font-size: 0.62rem;
  background: color-mix(in srgb, var(--red) 18%, transparent); color: var(--red); }
.recall__body { font-size: 0.8rem; color: var(--fg-dim); line-height: 1.45; }
.aitems { list-style: none; display: grid; gap: 0.5rem; }
.aitems li { display: flex; gap: 0.5rem; font-size: 0.8rem; color: var(--fg-dim); line-height: 1.35; }
.aitems__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); margin-top: 0.4rem; flex: none;
  box-shadow: 0 0 8px 0 color-mix(in srgb, var(--red) 70%, transparent); }
.aitems li em { font-style: normal; color: var(--fg-mute); font-size: 0.7rem; }

/* ---- Notes mockup ---- */
.notesui { display: flex; flex-direction: column; gap: 0.6rem; }
.dailyeditor { display: grid; gap: 0.3rem; }
.de__h { font-weight: 600; font-size: 0.92rem; }
.de__li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; color: var(--fg-dim); }
.de__chk { width: 15px; height: 15px; border-radius: 5px; border: 1.5px solid var(--fg-mute); flex: none; display: grid; place-items: center; font-size: 9px; color: transparent; }
.de__chk--done { background: linear-gradient(135deg, var(--red), var(--ember)); border-color: transparent; color: #fff; }
.de__p { font-size: 0.8rem; color: var(--fg-mute); line-height: 1.4; }
.notecard { display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem 0.7rem; border-radius: 12px;
  background: color-mix(in srgb, var(--bone) 5%, transparent); border: 1px solid var(--hair-2); }
.notecard__ic { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; flex: none;
  background: color-mix(in srgb, var(--red) 16%, transparent); color: var(--red); font-size: 0.8rem; }
.notecard__b { display: grid; gap: 0.05rem; min-width: 0; }
.notecard__t { font-size: 0.82rem; font-weight: 500; }
.notecard__s { font-size: 0.7rem; color: var(--fg-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notecard__tag { margin-left: auto; font-size: 0.58rem; font-weight: 600; color: #f0c674; white-space: nowrap;
  padding: 0.16rem 0.42rem; border-radius: 999px; background: color-mix(in srgb, #f0c674 16%, transparent); }
.dayrec { display: flex; align-items: center; gap: 0.45rem; font-size: 0.74rem; color: var(--fg-dim);
  padding: 0.55rem 0.7rem; border-radius: 12px; background: color-mix(in srgb, var(--bone) 4%, transparent); }
.dayrec__ic { color: var(--red); }

/* ---- Tasks mockup ---- */
.tasksui { display: flex; flex-direction: column; gap: 0.6rem; }
.taskcard { padding: 0.75rem 0.8rem; border-radius: 14px; background: color-mix(in srgb, var(--bone) 5%, transparent); border: 1px solid var(--hair-2); }
.taskcard__t { font-size: 0.84rem; color: var(--fg); line-height: 1.35; }
.taskcard__row { display: flex; align-items: center; gap: 0.5rem; margin: 0.6rem 0 0.5rem; }
.ownerchip { font-size: 0.66rem; font-weight: 500; padding: 0.2rem 0.5rem; border-radius: 999px; white-space: nowrap; }
.ownerchip--a { color: #5b9bff; background: color-mix(in srgb, #5b9bff 14%, transparent); }
.ownerchip--c { color: #c89bff; background: color-mix(in srgb, #c89bff 14%, transparent); }
.addtask { margin-left: auto; font-size: 0.68rem; font-weight: 600; color: var(--red); white-space: nowrap; }
.addtask--done { color: var(--fg-mute); }
.taskcard__src { display: flex; align-items: center; gap: 0.35rem; font-size: 0.68rem; color: var(--fg-mute); }

/* ---- Voiceprints mockup ---- */
.vpui { display: flex; flex-direction: column; gap: 0.55rem; }
.vpexplain { font-size: 0.72rem; color: var(--fg-mute); line-height: 1.45;
  background: color-mix(in srgb, var(--bone) 4%, transparent); border-radius: 12px; padding: 0.6rem 0.7rem; }
.vpexplain strong { color: var(--fg-dim); font-weight: 600; }
.vplegend { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 0.3rem; }
.vpd { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 0.1rem; vertical-align: baseline; }
.vpd--pos { background: var(--red); } .vpd--neg { background: #5b9bff; }
.vpsec { font-size: 0.72rem; font-weight: 600; }
.vpcard { display: flex; align-items: center; gap: 0.6rem; padding: 0.5rem 0.6rem; border-radius: 12px;
  background: color-mix(in srgb, var(--bone) 4%, transparent); border: 1px solid var(--hair-2); }
.vpviz { width: 50px; height: 50px; flex: none; }
.vpcard__info { display: grid; gap: 0.12rem; min-width: 0; }
.vpcard__name { font-size: 0.86rem; font-weight: 500; display: flex; align-items: center; gap: 0.4rem; }
.vpyou { font-size: 0.55rem; font-weight: 700; color: var(--red); background: color-mix(in srgb, var(--red) 16%, transparent);
  padding: 0.06rem 0.34rem; border-radius: 999px; }
.vpstatus { font-size: 0.68rem; }
.vpstatus--certain { color: #58c06a; }
.vpstatus--learning { color: var(--fg-mute); }
.vpcard__act { margin-left: auto; color: var(--fg-mute); }
.device__caption { text-align: center; font-size: 0.78rem; color: var(--fg-mute); margin-top: 0.9rem; }

/* feature art on the left for alternating rhythm */
.feature--flip .feature__art { order: -1; }

/* voiceprint progression chips in the copy column */
.vpprogress { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-top: 1.6rem; }
.vpstep { font-size: 0.78rem; padding: 0.34rem 0.75rem; border-radius: 999px; border: 1px solid var(--hair); color: var(--fg-mute); }
.vpstep--learn { color: var(--fg-dim); border-color: var(--hair); }
.vpstep--certain { color: #58c06a; border-color: color-mix(in srgb, #58c06a 45%, transparent); background: color-mix(in srgb, #58c06a 10%, transparent); }
.vparrow { color: var(--fg-mute); font-size: 0.8rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .capture__sticky { position: static; min-height: auto; grid-template-columns: 1fr; gap: 2.4rem; text-align: left; padding-top: 5rem; padding-bottom: 5rem; }
  .capture__copy { order: 1; }
  .capture__stage { order: 0; }
  .feature, .memory__inner, .leaderboard { grid-template-columns: 1fr; gap: 2.6rem; }
  .feature--audio .feature__art, .feature--flip .feature__art { order: 0; }
  .privacy__cols { grid-template-columns: 1fr; gap: 2rem; }
  .devices__stage { grid-template-columns: 1fr; gap: 2.5rem; justify-items: center; }
}
/* Short landscape phones: don't let the full-viewport hero hide the CTA. */
@media (max-height: 540px) and (orientation: landscape) {
  .hero { min-height: auto; padding-top: 5rem; padding-bottom: 2.5rem; }
  .hero__title { font-size: clamp(2.4rem, 7vw, 4rem); margin-bottom: 1rem; }
  .hero__lede { margin-bottom: 1.2rem; }
  .hero__scroll { display: none; }
}
@media (max-width: 600px) {
  .nav__links a:not(.pill):not(.nav__cta) { display: none; }
  .nav__cta { padding-top: 0.72rem; padding-bottom: 0.72rem; } /* >=44px touch target */
  .footer__tag { font-size: 1.3rem; }
  .device--macmini, .macmini { width: 100%; max-width: 330px; }
  /* constellation pills shrink + pull in so they don't crash into the core */
  .constellation { max-width: 300px; }
  .source { font-size: 0.72rem; padding: 0.34rem 0.6rem; }
  .source--rec { left: 2%; } .source--msg { right: 2%; } .source--note { right: 2%; }
}

/* ============================================================
   PRIVATE BY ARCHITECTURE - the cloudless strategy
   ============================================================ */
.private { padding: clamp(3rem, 7vh, 4.5rem) var(--gutter); position: relative; }
.private__inner { max-width: var(--maxw); margin: 0 auto; }
.private__head { text-align: center; }
.private__head .kicker { margin-bottom: 1rem; }
.private__h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
.arch { max-width: 980px; margin: clamp(1.3rem, 2.5vw, 1.8rem) auto 0; display: grid; gap: clamp(0.7rem, 1.5vw, 1rem); }

/* The on-device boundary: a glowing enclosure that visually contains the pipeline */
.arch__device {
  position: relative; border-radius: var(--r-lg);
  padding: clamp(1.6rem, 3vw, 2rem) clamp(1rem, 3vw, 2rem) clamp(1rem, 2vw, 1.4rem);
  border: 1px solid color-mix(in srgb, var(--red) 32%, transparent);
  background:
    radial-gradient(130% 150% at 50% -10%, color-mix(in srgb, var(--red) 10%, transparent), transparent 58%),
    linear-gradient(165deg, var(--surface), var(--bg-2));
  box-shadow: 0 30px 70px -34px rgba(0,0,0,0.8), 0 0 60px -26px color-mix(in srgb, var(--red) 45%, transparent);
}
.arch__boundary {
  position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 0.5rem; white-space: nowrap;
  padding: 0.42rem 1rem; border-radius: 999px;
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.04em; color: var(--fg);
  background: var(--bg-2); border: 1px solid color-mix(in srgb, var(--red) 40%, transparent);
  box-shadow: 0 0 26px -8px color-mix(in srgb, var(--red) 55%, transparent);
}
.arch__lock { display: grid; place-items: center; color: var(--red); }
.arch__lock svg { width: 15px; height: 15px; display: block; }

.arch__pipe { display: flex; align-items: flex-start; justify-content: space-between; gap: clamp(0.3rem, 1.2vw, 0.8rem); }
.arch__node, .arch__icloud, .arch__devices {
  flex: 1 1 0; min-width: 0; display: grid; justify-items: center; text-align: center; gap: 0.22rem; padding: 0.3rem;
}
.arch__nic {
  display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 0.4rem; border-radius: 14px;
  color: var(--red); background: color-mix(in srgb, var(--red) 14%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--red) 26%, transparent);
}
.arch__nic svg { width: 23px; height: 23px; display: block; }
.arch__node b, .arch__icloud b, .arch__devices b { font-size: 0.95rem; color: var(--fg); font-weight: 600; }
.arch__flow {
  flex: 0 0 auto; align-self: flex-start; margin-top: 1.55rem; width: clamp(14px, 3vw, 44px); height: 2px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--red) 75%, transparent), transparent);
}

/* Sync row: only your own iCloud leaves the device */
.arch__sync { display: flex; align-items: center; justify-content: center; gap: clamp(0.5rem, 2vw, 1.1rem); flex-wrap: wrap; }
.arch__icloud, .arch__devices {
  flex: 0 1 210px; padding: 0.75rem 1rem; border-radius: var(--r-card);
  border: 1px solid var(--hair); background: color-mix(in srgb, var(--bone) 4%, transparent);
}
.arch__syncline { flex: 0 0 auto; width: clamp(20px, 5vw, 60px); height: 2px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--red) 60%, transparent), color-mix(in srgb, var(--red) 20%, transparent)); }

/* The crossed-off destinations data NEVER reaches */
.arch__never { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.5rem 0.7rem; }
.arch__never-k { font-size: 0.78rem; color: var(--fg-mute); }
.arch__x {
  font-size: 0.82rem; color: var(--fg-mute); padding: 0.32rem 0.78rem; border-radius: 999px;
  border: 1px dashed color-mix(in srgb, var(--fg-mute) 40%, transparent);
  text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--red) 80%, transparent); text-decoration-thickness: 2px;
}

/* Proof stats */
.proof { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(0.6rem, 1.5vw, 1rem);
  max-width: 980px; margin: clamp(1.6rem, 3vw, 2.2rem) auto 0; }
.proof li { text-align: center; padding: clamp(1.1rem, 2.5vw, 1.5rem) 0.8rem; border-radius: var(--r-card);
  border: 1px solid var(--hair-2); background: linear-gradient(165deg, color-mix(in srgb, var(--bone) 4%, transparent), transparent); }
.proof__n { display: block; font-family: var(--display); font-weight: 600; line-height: 1;
  font-size: clamp(1.9rem, 4.2vw, 2.7rem); color: var(--red); }
.proof__n i { font-style: normal; font-size: 0.58em; margin-left: 0.04em; }
.proof li span { display: block; margin-top: 0.55rem; font-size: 0.82rem; color: var(--fg-dim); line-height: 1.4; }

.private__stack { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem;
  max-width: 780px; margin: clamp(1.3rem, 2.4vw, 1.8rem) auto 0; }
.private__stack span { font-family: var(--mono); font-size: 0.74rem; letter-spacing: -0.01em; color: var(--fg-mute);
  padding: 0.34rem 0.72rem; border-radius: 999px; border: 1px solid var(--hair-2);
  background: color-mix(in srgb, var(--bone) 3%, transparent); }

@media (max-width: 760px) {
  .arch__pipe { flex-direction: column; align-items: stretch; gap: 0.5rem; }
  .arch__node { grid-template-columns: 48px 1fr; justify-items: start; text-align: left; align-items: center; gap: 0.1rem 0.9rem; }
  .arch__node .arch__nic { grid-row: 1 / 3; margin-bottom: 0; }
  .arch__flow { width: 2px; height: 16px; align-self: center; margin: 0; }
  .proof { grid-template-columns: repeat(2, 1fr); }
}

/* Coming-soon + early-access form */
.hero__dl-soon { color: var(--fg-mute); font-size: 0.92rem; }
.access__form { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; max-width: 470px; margin: 1.7rem auto 0; }
.access__input {
  flex: 1 1 240px; min-width: 0; font: inherit; font-size: 1rem; color: var(--fg);
  padding: 0.85rem 1.15rem; border-radius: 999px; outline: none;
  background: color-mix(in srgb, var(--bone) 6%, transparent); border: 1px solid var(--hair);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.access__input::placeholder { color: var(--fg-mute); }
.access__input:focus {
  border-color: color-mix(in srgb, var(--red) 60%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 22%, transparent);
}
.access__input[aria-invalid="true"] { border-color: var(--red); }
.access__form button { flex: 0 0 auto; white-space: nowrap; cursor: pointer; }
.access.is-sent .access__form { display: none; }
.access.is-sent .access__note { color: var(--fg); font-weight: 600; font-size: 1.02rem; }
@media (max-width: 480px) {
  .access__form { flex-direction: column; }
  /* In a column, flex-basis is the MAIN (vertical) axis — `flex:1 1 240px` would
     make the email field 240px TALL. Reset to content height + full width. */
  .access__input { flex: 0 0 auto; width: 100%; }
  .access__form button { width: 100%; }
}

/* ============================================================
   v3 — "The second brain that writes itself"
   New narrative spine: problem -> data-flow graph -> on-device ->
   payoff (person pages) -> dictation -> manifesto.
   ============================================================ */

/* ---- shared eyebrow used by the new sections ---- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red);
  box-shadow: 0 0 9px 1px color-mix(in srgb, var(--red) 70%, transparent);
}

/* ============================================================
   THE PROBLEM — the scattered stack
   ============================================================ */
.problem { padding: clamp(5rem, 13vh, 9rem) var(--gutter); }
.problem__inner { max-width: 880px; margin: 0 auto; text-align: center; }
.problem__h2 { font-size: clamp(1.95rem, 4.4vw, 3.2rem); }
.problem__lede { margin: 1.2rem auto 0; max-width: 50ch; }
.scatter {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 0.7rem 0.8rem; margin: clamp(2.4rem, 5vw, 3.6rem) auto 0; max-width: 760px;
}
.scatter__chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.86rem; color: var(--fg-mute);
  padding: 0.45rem 0.85rem 0.45rem 0.5rem; border-radius: 999px;
  border: 1px solid var(--hair-2); background: color-mix(in srgb, var(--bone) 3%, transparent);
  opacity: 0.78;
}
.scatter__chip img { width: 22px; height: 22px; border-radius: 6px; object-fit: cover;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.28); flex: none; }
.scatter__chip:nth-child(2n) { transform: rotate(-2.5deg); }
.scatter__chip:nth-child(3n) { transform: rotate(2deg) translateY(-3px); }
.scatter__chip:nth-child(5n) { transform: rotate(-1.5deg) translateY(4px); }
.problem__foot {
  font-family: var(--display); font-style: italic;
  font-size: clamp(1.1rem, 2.2vw, 1.6rem); line-height: 1.45; color: var(--fg-dim);
  max-width: 30ch; margin: clamp(2.4rem, 5vw, 3.4rem) auto 0;
}
.problem__foot b { font-style: normal; font-weight: 600; color: var(--fg); }

/* ============================================================
   DATA-FLOW GRAPH — the centerpiece (pinned scrollytelling)
   ============================================================ */
/* Cancel the global `scroll-padding-top` (nav offset) for the pinned flow
   section: with it, jumping to #flow lands ~4.6rem ABOVE the pin start, so the
   user had to scroll that gap before the phases engaged. A matching negative
   scroll-margin lands the jump exactly at the pin start → scroll drives the
   phases immediately. */
.flow { position: relative; scroll-margin-top: -4.6rem; }
@media (min-width: 961px) { .flow { min-height: 380vh; } }
.flow__sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  overflow: hidden; isolation: isolate;
}
.flow__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.flow__veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, var(--bg), transparent 12% 88%, var(--bg) 100%);
}
.flow__head {
  position: absolute; top: clamp(4.6rem, 10vh, 7rem); left: 50%; transform: translateX(-50%);
  z-index: 2; width: min(90%, 760px); text-align: center; pointer-events: none;
}
.flow__head .eyebrow { margin-bottom: 0.7rem; }
.flow__title {
  font-family: var(--display); font-weight: 600; letter-spacing: -0.025em; line-height: 1.05;
  font-size: clamp(1.6rem, 3.3vw, 2.6rem);
}
.flow__caps {
  position: absolute; left: 50%; bottom: clamp(3rem, 7vh, 5rem); transform: translateX(-50%);
  z-index: 2; width: min(94%, 820px); min-height: 4.6rem; text-align: center; pointer-events: none;
}
.flow__cap {
  position: absolute; inset: 0;
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.6s var(--expo), transform 0.6s var(--expo);
}
.flow__cap.is-on { opacity: 1; transform: none; }
.flow__cap-no {
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.06em;
  color: var(--red); margin-bottom: 0.55rem; display: block;
}
.flow__cap-h {
  font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.06;
  font-size: clamp(1.3rem, 2.7vw, 1.95rem); margin-bottom: 0.4rem;
}
.flow__cap-p { font-size: clamp(0.92rem, 1.3vw, 1.05rem); line-height: 1.45; color: var(--fg-dim); max-width: none; margin: 0 auto; }
.flow__cap-p b { color: var(--fg); font-weight: 600; }
/* progress rail */
.flow__rail {
  position: absolute; left: 50%; bottom: clamp(1.2rem, 2.6vh, 1.9rem); transform: translateX(-50%);
  z-index: 2; display: flex; gap: 0.5rem; pointer-events: none;
}
.flow__pip { width: 22px; height: 3px; border-radius: 2px; background: var(--hair); transition: background 0.4s ease, box-shadow 0.4s ease; }
.flow__pip.is-on { background: var(--red); box-shadow: 0 0 8px 0 color-mix(in srgb, var(--red) 60%, transparent); }

@media (max-width: 960px) {
  /* Pin + scroll-drive the flow on mobile too. It used to be a flat,
     timer-advanced stack you'd scroll right past without seeing the phases;
     now it sticks like desktop and the scroll moves you through all of them.
     Shorter scroll distance (280vh vs 380vh) so a phone reaches every phase. */
  .flow { min-height: 280vh; }
  .flow__head { top: clamp(3.2rem, 7vh, 5rem); width: min(92%, 640px); }
  .flow__caps { bottom: clamp(4.2rem, 11vh, 6rem); width: min(92%, 640px); }
}

/* ============================================================
   STEP panels (pull everything / thinks on device)
   ============================================================ */
.step { align-items: center; }
.panel {
  position: relative; border-radius: var(--r-lg); padding: clamp(1.4rem, 3vw, 2rem);
  background: linear-gradient(165deg, var(--surface), var(--bg-2));
  border: 1px solid var(--hair-2);
  box-shadow: 0 40px 80px -36px rgba(0,0,0,0.8);
}
.panel__legend { display: flex; align-items: center; gap: 0.5rem; font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.04em; color: var(--fg-mute); margin-bottom: 0.9rem; }
.srcgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.srcrow {
  display: flex; align-items: center; gap: 0.55rem; padding: 0.6rem 0.7rem; border-radius: 12px;
  background: color-mix(in srgb, var(--bone) 4%, transparent); border: 1px solid var(--hair-2);
  font-size: 0.88rem; color: var(--fg);
}
.srcrow__ic { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; flex: none;
  color: var(--red); background: color-mix(in srgb, var(--red) 14%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--red) 24%, transparent); }
.srcrow__ic svg { width: 15px; height: 15px; }
.srcrow--soon { color: var(--fg-mute); border-style: dashed; }
.srcrow--soon .srcrow__ic { color: var(--fg-mute); background: color-mix(in srgb, var(--bone) 7%, transparent); box-shadow: inset 0 0 0 1px var(--hair-2); }
.srcrow__tag { margin-left: auto; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--fg-mute); padding: 0.16rem 0.42rem; border-radius: 999px; border: 1px dashed var(--hair); }
.panel__note { display: flex; align-items: center; gap: 0.5rem; margin-top: 1rem; font-size: 0.82rem; color: var(--fg-dim); }
.panel__note svg { width: 15px; height: 15px; color: var(--red); flex: none; }

/* engine rungs (step 2) */
.rungs { display: grid; gap: 0.6rem; }
.rung {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.7rem;
  padding: 0.75rem 0.85rem; border-radius: 14px;
  background: color-mix(in srgb, var(--bone) 4%, transparent); border: 1px solid var(--hair-2);
}
.rung__ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; flex: none;
  color: var(--red); background: color-mix(in srgb, var(--red) 14%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--red) 24%, transparent); font-size: 0.9rem; }
.rung__ic--apple { color: var(--fg); background: color-mix(in srgb, var(--bone) 7%, transparent); box-shadow: inset 0 0 0 1px var(--hair-2); }
.rung__b { min-width: 0; }
.rung__t { display: block; font-size: 0.92rem; font-weight: 600; color: var(--fg); }
.rung__s { display: block; font-size: 0.78rem; color: var(--fg-dim); line-height: 1.35; margin-top: 0.1rem; }
.rung__pill { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 0.2rem 0.5rem; border-radius: 999px; white-space: nowrap; }
.rung__pill--on { color: #58c06a; background: color-mix(in srgb, #58c06a 14%, transparent); }
.rung--opt { border-style: dashed; }
.rung--opt .rung__ic { color: var(--fg-dim); background: color-mix(in srgb, var(--bone) 7%, transparent); box-shadow: inset 0 0 0 1px var(--hair-2); }
.rung__ic img { display: block; width: 18px; height: 18px; }
.rung--opt .rung__ic--claude { background: color-mix(in srgb, #D97757 10%, transparent); }
.rung__pill--opt { color: var(--fg-mute); border: 1px dashed var(--hair); }

/* ============================================================
   THE PAYOFF — person page / wiki mockup
   ============================================================ */
.wikipage {
  position: relative; max-width: 460px; margin: 0 auto; border-radius: var(--r-lg);
  background: linear-gradient(168deg, var(--surface), var(--bg-2));
  border: 1px solid var(--hair-2); overflow: hidden;
  box-shadow: 0 50px 100px -40px rgba(0,0,0,0.85);
}
.wikipage__bar {
  display: flex; align-items: center; gap: 0.55rem; padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--hair-2); background: color-mix(in srgb, var(--bone) 4%, transparent);
  font-size: 0.74rem; color: var(--fg-mute);
}
.wikipage__crumb { font-family: var(--mono); }
.wikipage__crumb b { color: var(--red); font-weight: 600; }
.wikipage__live { margin-left: auto; display: inline-flex; align-items: center; gap: 0.35rem; }
.wikipage__body { padding: clamp(1.2rem, 3vw, 1.7rem); }
.wikipage__head { display: flex; align-items: center; gap: 0.85rem; }
.wikipage__av {
  width: 52px; height: 52px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font-weight: 700; font-size: 1.3rem; color: #fff;
  background: linear-gradient(135deg, var(--red), var(--ember));
  box-shadow: 0 8px 22px -8px var(--ember);
}
.wikipage__name { font-family: var(--display); font-weight: 600; font-size: 1.35rem; letter-spacing: -0.02em; }
.wikipage__meta { font-size: 0.78rem; color: var(--fg-mute); margin-top: 0.1rem; }
.wikipage__sources { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 1rem 0; }
.wikipage__src {
  display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.68rem; font-weight: 600;
  color: var(--red); padding: 0.24rem 0.55rem; border-radius: 999px;
  background: color-mix(in srgb, var(--red) 9%, transparent);
  border: 1px solid color-mix(in srgb, var(--red) 24%, transparent);
}
.wikipage__src::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--red); }
.wikipage__sec { margin-top: 1.05rem; }
.wikipage__h { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--fg-mute); margin-bottom: 0.45rem; }
.wikipage__p { font-size: 0.88rem; color: var(--fg-dim); line-height: 1.5; }
.wikipage__p .wl { color: var(--red); border-bottom: 1px solid color-mix(in srgb, var(--red) 40%, transparent); }
.wikipage__facts { list-style: none; display: grid; gap: 0.45rem; margin-top: 0.2rem; }
.wikipage__facts li { display: flex; gap: 0.5rem; font-size: 0.84rem; color: var(--fg-dim); line-height: 1.4; }
.wikipage__facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red); margin-top: 0.42rem; flex: none;
  box-shadow: 0 0 7px 0 color-mix(in srgb, var(--red) 70%, transparent); }
.wikipage__links { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.55rem; }
.wikipage__link { font-size: 0.74rem; color: var(--fg-dim); padding: 0.28rem 0.6rem; border-radius: 999px; border: 1px solid var(--hair); }
.wikipage__foot { margin-top: 1.1rem; padding-top: 0.9rem; border-top: 1px solid var(--hair-2);
  display: flex; align-items: center; gap: 0.5rem; font-size: 0.72rem; color: var(--fg-mute); }
.wikipage__foot .sparkle { color: var(--red); }

/* The single Karpathy credit — an attributed insight (NOT a verbatim quote),
   presented as an editorial pull-statement so it never reads as words we put
   in his mouth. */
.credit {
  max-width: 720px; margin: clamp(3rem, 6vw, 4.5rem) auto 0;
  padding: clamp(2.2rem, 4.5vw, 3.2rem) clamp(1.8rem, 4.5vw, 3rem);
  border-radius: var(--r-lg); position: relative; text-align: center;
  border: 1px solid color-mix(in srgb, var(--red) 20%, transparent);
  background:
    radial-gradient(120% 130% at 50% -20%, color-mix(in srgb, var(--red) 12%, transparent), transparent 58%),
    linear-gradient(168deg, var(--surface), var(--bg-2));
  box-shadow: 0 40px 90px -48px rgba(0, 0, 0, 0.8), inset 0 1px 0 color-mix(in srgb, var(--bone) 7%, transparent);
}
.credit::before {
  content: ""; display: block; width: 34px; height: 2px; margin: 0 auto 1.4rem;
  background: linear-gradient(90deg, transparent, var(--red), transparent); border-radius: 2px;
}
.credit p {
  font-family: var(--display); font-weight: 400; margin: 0; padding: 0;
  font-size: clamp(1.25rem, 2.6vw, 1.8rem); line-height: 1.4; letter-spacing: -0.015em; color: var(--fg);
}
.credit p b { color: var(--red); font-weight: 500; }
.credit cite {
  display: block; margin-top: 1.4rem; padding: 0; font-style: normal;
  font-family: var(--ui); font-size: 0.9rem; color: var(--fg-mute);
}
.credit cite b { color: var(--fg-dim); font-weight: 600; }

/* ============================================================
   DICTATION showcase
   ============================================================ */
.dictation {
  max-width: 470px; margin: 0 auto; border-radius: var(--r-lg); padding: 1.5rem;
  background: linear-gradient(165deg, var(--surface), var(--bg-2));
  border: 1px solid var(--hair-2); box-shadow: 0 40px 80px -36px rgba(0,0,0,0.8);
}
.dictation__bar { display: flex; align-items: center; gap: 0.55rem;
  background: color-mix(in srgb, var(--bone) 5%, transparent); border: 1px solid var(--hair-2);
  border-radius: 12px; padding: 0.55rem 0.7rem; }
.dictation__where { font-size: 0.74rem; color: var(--fg-dim); white-space: nowrap; }
.dictation__wave { flex: 1; height: 28px; }
.dictation__pill { font-size: 0.62rem; color: var(--fg-mute); padding: 0.2rem 0.5rem; border-radius: 999px; border: 1px solid var(--hair); white-space: nowrap; }
.dictation__out { margin-top: 1.1rem; font-size: 1.02rem; line-height: 1.55; color: var(--fg); }
.dictation__out .cursor { display: inline-block; width: 2px; height: 1.05em; background: var(--red); margin-left: 1px;
  vertical-align: text-bottom; animation: caret 1.05s step-end infinite; }
@keyframes caret { 50% { opacity: 0; } }
.dictation__cap { margin-top: 0.85rem; font-size: 0.78rem; color: var(--fg-mute); }

/* ============================================================
   PRIVACY MANIFESTO (sits with the existing .private architecture diagram)
   ============================================================ */
.manifesto { max-width: 1000px; margin: clamp(1.3rem, 2.5vw, 1.8rem) auto 0; display: grid; gap: 0.65rem; }
.manifesto__row {
  display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; align-items: center;
  min-height: 68px; padding: 0.75rem 0.9rem; border-radius: var(--r-card);
  border: 1px solid var(--hair-2); background: linear-gradient(165deg, color-mix(in srgb, var(--bone) 4%, transparent), transparent);
}
.manifesto__row b { font-size: 0.9rem; line-height: 1.3; color: var(--fg); font-weight: 600; display: block; }
.manifesto__ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; flex: none;
  color: var(--red); background: color-mix(in srgb, var(--red) 13%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--red) 24%, transparent); }
.manifesto__ic svg { width: 17px; height: 17px; }
.manifesto__row--opt { border-style: dashed; }
.manifesto__row--opt .manifesto__ic { color: var(--fg-dim); background: color-mix(in srgb, var(--bone) 6%, transparent); box-shadow: inset 0 0 0 1px var(--hair-2); }
@media (min-width: 900px) { .manifesto { grid-template-columns: repeat(4, 1fr); } }

@media (max-width: 760px) {
  .srcgrid { grid-template-columns: 1fr; }
  .credit::before { display: none; }
  .credit p, .credit cite { padding-left: 0; }
}

/* ============================================================
   REDUCED MOTION — the graph collapses to one legible static frame,
   all captions shown stacked (no pin, no scrub, no auto-advance).
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .flow { min-height: 0; scroll-margin-top: 0; }
  .flow__sticky { position: relative; height: auto; min-height: 0; display: flex; flex-direction: column;
    padding: clamp(3.5rem, 8vh, 5rem) 0; overflow: visible; }
  .flow__head { position: relative; top: auto; left: auto; transform: none; margin: 0 auto; padding: 0 var(--gutter); order: 0; }
  .flow__canvas { position: relative; inset: auto; width: 100%; height: min(78vh, 560px); margin-top: 1.4rem; order: 1; }
  .flow__veil { display: none; }
  .flow__caps { position: relative; left: auto; bottom: auto; transform: none; min-height: 0;
    display: grid; gap: 1.3rem; margin: 1.6rem auto 0; padding: 0 var(--gutter); max-width: 720px; text-align: left; order: 2; }
  .flow__cap { position: relative; inset: auto; opacity: 1 !important; transform: none !important; }
  .flow__rail { display: none; }
}

/* ============================================================
   POLISH LAYER — page transitions and grain.
   ============================================================ */

/* ---- Cross-document page transitions (Safari 18+ / Chrome 126+).
   Body content does a soft blur-lift cross-fade; the fixed nav is
   named so it stays put across the navigation instead of fading.
   Browsers without the API just navigate normally. ---- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vtOut 0.26s var(--expo) both; }
::view-transition-new(root) { animation: vtIn 0.42s var(--expo) both; }
@keyframes vtOut { to   { opacity: 0; transform: translateY(-6px) scale(0.992); filter: blur(2px); } }
@keyframes vtIn  { from { opacity: 0; transform: translateY(10px) scale(0.992); filter: blur(6px); } }
.nav { view-transition-name: site-nav; }

/* ---- Film grain ---- */
.grain {
  position: fixed; inset: -15%; z-index: 9990; pointer-events: none;
  opacity: 0.04; mix-blend-mode: overlay; will-change: transform;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainShift 0.7s steps(5) infinite;
}
@keyframes grainShift {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-4%, 3%); }
  40%  { transform: translate(3%, -4%); }
  60%  { transform: translate(-3%, -2%); }
  80%  { transform: translate(4%, 3%); }
  100% { transform: translate(0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) { animation: none !important; }
  .grain { display: none; }
}

/* ============================================================
   SCROLL RAIL — a port of the app's signature ScrollRail: an 8px
   track, a red fill, and a draggable red knob (16→24px on drag) with
   a section bubble. The OS scrollbar is hidden so this is the only
   indicator. Scrolling itself is fully native (see main.js).
   ============================================================ */

/* clear the fixed nav when a nav link / scroll-cue anchor lands */
html { scroll-padding-top: 4.6rem; }

/* hide the OS scrollbar — the red rail is the only scroll indicator now */
html { scrollbar-width: none; }                               /* Firefox / standards */
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; }   /* WebKit */

.srail {
  position: fixed; right: 6px; top: 50%; transform: translateY(-50%);
  width: 26px; height: max(120px, 50vh); z-index: 95;
  touch-action: none;
}
.srail__track {
  position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 8px; border-radius: 999px;
  background: color-mix(in srgb, var(--bone) 20%, transparent);
}
.srail__fill {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 8px; height: 0; border-radius: 999px;
  background: color-mix(in srgb, var(--red) 85%, transparent);
}
.srail__knob {
  position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%);
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--red); border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
  transition: width 0.12s var(--expo), height 0.12s var(--expo), box-shadow 0.12s ease;
}
.srail.is-drag .srail__knob {
  width: 24px; height: 24px;
  box-shadow: 0 5px 16px -2px rgba(0, 0, 0, 0.55);
}
.srail__bubble {
  position: absolute; right: 26px; top: 0; white-space: nowrap;
  transform: translateY(-50%) translateX(6px);
  font: 600 0.74rem var(--ui); letter-spacing: -0.01em; color: #fff;
  background: var(--red); padding: 0.22rem 0.6rem; border-radius: 999px;
  box-shadow: 0 6px 18px -6px color-mix(in srgb, var(--red) 70%, transparent);
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease, transform 0.26s var(--quint);
}
.srail.is-drag .srail__bubble { opacity: 1; transform: translateY(-50%) translateX(0); }

@media (max-width: 680px) {
  .srail { right: 2px; width: 22px; }
  .srail__bubble { display: none; }
}

/* On phones/small tablets the custom rail drag fights native touch scroll
   (momentum, pull-to-refresh) and feels glitchy — hide it and let native
   scroll do its thing. The rail stays on desktop where it shines. */
@media (max-width: 820px) {
  .srail { display: none; }
}

/* ============================================================
   APP STORE SHOWCASE — the iPhone listing, embedded in the page
   (icon + Get + the screenshot panorama) so it's no longer a
   separate page you have to click through to.
   ============================================================ */
.appshow { max-width: var(--maxw); margin: 0 auto; padding: clamp(3rem, 7vh, 5.5rem) var(--gutter); }
.appshow__head {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: clamp(1.1rem, 3vw, 2rem); margin-bottom: clamp(1.6rem, 3.5vw, 2.4rem);
}
.appshow__icon {
  width: clamp(96px, 12vw, 120px); height: clamp(96px, 12vw, 120px); aspect-ratio: 1;
  object-fit: cover; border-radius: 26px; flex: none;
  box-shadow: 0 24px 60px -22px rgba(0, 0, 0, 0.85), inset 0 0 0 1px var(--hair-2);
  filter: drop-shadow(0 0 24px rgba(255, 59, 48, 0.26));
}
.appshow__id .eyebrow { margin-bottom: 0.6rem; }
.appshow__name { font-size: clamp(1.6rem, 3.4vw, 2.4rem); letter-spacing: -0.025em; line-height: 1.04; }
.appshow__sub { color: var(--fg-dim); margin-top: 0.4rem; font-size: clamp(0.95rem, 1.6vw, 1.1rem); }
.appshow__cta { margin-top: 1rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.appshow__free { font-size: 0.8rem; color: var(--fg-mute); }
.appshow__free b { color: var(--fg-dim); font-weight: 600; }
.appshow__stats { display: flex; border: 1px solid var(--hair-2); border-radius: 14px; overflow: hidden; align-self: center; }
.appshow__stat { padding: 0.7rem 1.05rem; text-align: center; border-right: 1px solid var(--hair-2); }
.appshow__stat:last-child { border-right: 0; }
.appshow__stat-k { display: block; font-size: 0.58rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-mute); margin-bottom: 0.28rem; }
.appshow__stat-v { display: block; font-family: var(--display); font-weight: 600; font-size: 1.02rem; color: var(--fg); }
.appshow__rail {
  display: flex; gap: 0; overflow-x: auto; overflow-y: hidden; border-radius: 24px;
  box-shadow: 0 40px 90px -42px rgba(0, 0, 0, 0.85), inset 0 0 0 1px var(--hair-2);
  background: #0c0a08; scroll-behavior: smooth; -webkit-overflow-scrolling: touch;
}
.appshow__rail::-webkit-scrollbar { height: 8px; }
.appshow__rail::-webkit-scrollbar-thumb { background: var(--hair); border-radius: 999px; }
.appshow__rail img { height: clamp(360px, 50vh, 520px); width: auto; aspect-ratio: 660 / 1433; display: block; flex: none; }
.appshow__foot { margin-top: 1rem; text-align: center; font-size: 0.84rem; color: var(--fg-mute); }
.appshow__foot a { color: var(--red); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--red) 35%, transparent); }
.appshow__arrow { color: var(--red); font-weight: 700; }
@media (max-width: 880px) {
  .appshow__head { grid-template-columns: auto 1fr; }
  .appshow__stats { display: none; }
}
@media (max-width: 520px) {
  .appshow__head { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .appshow__cta { justify-content: center; }
}

/* ---- Mac variant of the showcase: the captures are window-only PNGs with their
   own drop shadow, so the rail floats them (no flush panorama frame). ---- */
/* Mac embed = the continuous device-framed panorama, flush like the iPhone */
.appshow--mac .appshow__rail {
  gap: 0; padding: 0; border-radius: 22px; background: #0c0a08;
  box-shadow: 0 36px 80px -40px rgba(0,0,0,0.85), inset 0 0 0 1px var(--hair-2);
}
.appshow--mac .appshow__rail::-webkit-scrollbar { height: 8px; }
.appshow--mac .appshow__rail::-webkit-scrollbar-thumb { background: var(--hair); border-radius: 999px; }
.appshow--mac .appshow__rail img {
  height: clamp(360px, 58vh, 560px); width: auto; aspect-ratio: auto;
  border-radius: 0; flex: none;
}
/* On phones the ~square Mac slices would be wider than the viewport, so the
   global img max-width:100% clamps width while height stays fixed → stretch.
   Size by width (height auto) so they keep their true aspect. */
@media (max-width: 820px) {
  .appshow--mac .appshow__rail img { height: auto; width: min(86vw, 380px); }
}

/* ---- Apple Watch variant: 3 small watch screens, centred and floating ---- */
.appshow--watch .appshow__rail {
  background: transparent; box-shadow: none; border-radius: 0;
  justify-content: center; gap: clamp(1.2rem, 4vw, 3rem); padding: clamp(0.5rem, 1.5vw, 1rem) 0;
}
.appshow--watch .appshow__rail::-webkit-scrollbar { height: 8px; }
.appshow--watch .appshow__rail::-webkit-scrollbar-thumb { background: var(--hair); border-radius: 999px; }
.appshow--watch .appshow__rail img {
  height: clamp(300px, 48vh, 450px); width: auto; aspect-ratio: 410 / 502; flex: none;
  filter: drop-shadow(0 24px 50px rgba(0, 0, 0, 0.5));
}

/* ============================================================
   THEME ART DIRECTION
   Light mode uses the SoftRiver grayscale palette as structure,
   while the compile story remains an Atomic Black brand moment.
   ============================================================ */
.hero, .problem, .replaces, .private, .access, .footer,
.panel, .ledger, .board, .credit, .dictation, .wikipage {
  transition: background-color 0.45s var(--expo), border-color 0.35s ease, color 0.35s ease;
}

html[data-theme="light"] .problem,
html[data-theme="light"] .replaces,
html[data-theme="light"] .private {
  background: var(--bg-2);
}

html[data-theme="light"] .nav.is-scrolled {
  background: color-mix(in srgb, var(--white) 88%, transparent);
}

html[data-theme="light"] .scatter__chip {
  color: var(--ash);
  background: color-mix(in srgb, var(--white) 78%, var(--bone));
  opacity: 1;
}

html[data-theme="light"] :is(.panel, .ledger, .board, .credit, .dictation, .wikipage) {
  box-shadow: 0 26px 70px -40px rgba(15, 15, 16, 0.34);
}

html[data-theme="light"] .rung__pill--on {
  color: #1F7134;
  background: color-mix(in srgb, #1F7134 12%, transparent);
}

html[data-theme="light"] .arch__device {
  box-shadow:
    0 24px 58px -38px rgba(15, 15, 16, 0.32),
    0 0 46px -34px color-mix(in srgb, var(--red) 34%, transparent);
}

html[data-theme="light"] .grain { display: none; }

/* Flow follows the page theme (no forced Atomic Black island). */
.flow {
  color: var(--fg);
  background: var(--bg);
}

.band {
  --fg: var(--white);
  --fg-dim: var(--bone);
  --fg-mute: var(--bone);
  --hair: color-mix(in srgb, var(--white) 34%, transparent);
  --hair-2: color-mix(in srgb, var(--white) 20%, transparent);
  color: var(--fg);
  background: var(--brand-red);
}
.band .stat__num { color: var(--white); }

html[data-theme="light"] .access {
  --red: var(--light-red);
  --ember: var(--brand-red);
  --bg: var(--ink);
  --bg-2: #141416;
  --surface: #1A1A1D;
  --raised: #222226;
  --hair: color-mix(in srgb, var(--bone) 14%, transparent);
  --hair-2: color-mix(in srgb, var(--bone) 8%, transparent);
  --fg: var(--white);
  --fg-dim: var(--space);
  --fg-mute: color-mix(in srgb, var(--space) 78%, transparent);
  color: var(--fg);
  background:
    radial-gradient(80% 70% at 50% 40%, color-mix(in srgb, var(--light-red) 10%, var(--ink)), var(--ink) 72%);
}

@media (prefers-reduced-motion: reduce) {
  .hero, .problem, .replaces, .private, .access, .footer,
  .panel, .ledger, .board, .credit, .dictation, .wikipage {
    transition: none;
  }
}
