/* PAIS product page — dark cinematic, scroll-storytelling. Tokens first. */
:root {
  --ink:        #07090f;
  --ink-2:      #0b0e17;
  --surface:    rgba(255,255,255,0.04);
  --surface-2:  rgba(255,255,255,0.07);
  --border:     rgba(255,255,255,0.09);
  --border-l:   rgba(255,255,255,0.05);
  --text:       rgba(244,246,252,0.94);
  --muted:      rgba(244,246,252,0.55);
  --dim:        rgba(244,246,252,0.28);

  --green:      #34d399;   /* run green — brand accent */
  --green-dim:  rgba(52,211,153,0.12);
  --blue:       #60a5fa;
  --violet:     #a78bfa;
  --amber:      #fbbf24;
  --orange:     #fb923c;   /* attention — agent needs the user to finish */
  --rose:       #fb7185;
  --teal:       #2dd4bf;
  --sky:        #38bdf8;
  --indigo:     #818cf8;

  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:  'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  --text-hero:  clamp(2.6rem, 1rem + 6.5vw, 6.5rem);
  --text-h2:    clamp(1.8rem, 1rem + 2.6vw, 3.2rem);
  --text-h3:    clamp(1.25rem, 1rem + 0.9vw, 1.7rem);
  --space-sec:  clamp(5rem, 3rem + 8vw, 12rem);

  --dur-fast:   180ms;
  --dur:        300ms;
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  font-family: var(--font-sans);
  background: var(--ink);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
::selection { background: rgba(52,211,153,0.35); }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }
.mono { font-family: var(--font-mono); }

/* atmosphere: grain + aurora */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    radial-gradient(ellipse 70% 45% at 75% -10%, rgba(52,211,153,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 55% 40% at 10% 25%, rgba(99,102,241,0.10) 0%, transparent 60%);
}
body::after {
  content: ""; position: fixed; inset: -50%; z-index: 0; pointer-events: none; opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}
main, header.site, footer { position: relative; z-index: 1; }

/* ── nav ─────────────────────────────────────────────────────────── */
header.site {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  padding: 14px clamp(20px, 4vw, 56px);
  background: rgba(7,9,15,0.65); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-l);
}
.wordmark { font-family: var(--font-mono); font-weight: 700; font-size: 17px; letter-spacing: 1px; }
.wordmark .tick { color: var(--green); }
header.site nav { display: flex; gap: 24px; margin-left: auto; }
header.site nav a {
  font-size: 13.5px; color: var(--muted); transition: color var(--dur-fast);
  cursor: pointer;
}
header.site nav a:hover { color: var(--text); }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 14px; cursor: pointer;
  padding: 11px 22px; border-radius: 12px; border: 1px solid transparent;
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast), border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.btn-primary {
  background: var(--green); color: #04130c;
  box-shadow: 0 0 0 0 rgba(52,211,153,0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px -6px rgba(52,211,153,0.45); }
.btn-ghost { border-color: var(--border); color: var(--text); background: var(--surface); }
.btn-ghost:hover { background: var(--surface-2); transform: translateY(-2px); }
header.site .btn { padding: 8px 18px; font-size: 13px; }
.header-cta { display: flex; gap: 10px; align-items: center; margin-left: 18px; }

/* tappable elements: kill the 300ms mobile tap delay */
.btn, header.site nav a, .nav-toggle, .mobile-menu a, .see-live { touch-action: manipulation; }

/* ── mobile nav (hamburger + dropdown) ───────────────────────────── */
.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px; flex: none;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  cursor: pointer; padding: 0; align-items: center; justify-content: center; gap: 5px; flex-direction: column;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--text);
  transition: transform var(--dur) var(--ease-out), opacity var(--dur-fast);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; top: 72px; left: 0; right: 0; z-index: 49;
  display: flex; flex-direction: column; gap: 6px;
  padding: 14px 16px calc(16px + env(safe-area-inset-bottom));
  background: rgba(7,9,15,0.96); backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 24px 50px -20px rgba(0,0,0,0.85);
  animation: menuDrop var(--dur) var(--ease-out);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a {
  font-size: 17px; font-weight: 500; color: var(--text); padding: 14px 6px;
  border-bottom: 1px solid var(--border-l); min-height: 48px; display: flex; align-items: center;
}
.mobile-menu nav a[aria-current="page"] { color: var(--green); }
.mobile-menu .btn { width: 100%; justify-content: center; min-height: 48px; font-size: 15px; }
.mobile-menu .btn-ghost { margin-top: 10px; }
@keyframes menuDrop { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
body.nav-open { overflow: hidden; }

/* ── hero ─────────────────────────────────────────────────────────── */
.hero {
  min-height: 100dvh; display: flex; flex-direction: column; justify-content: center;
  padding: 120px clamp(20px, 5vw, 72px) 60px; position: relative; overflow: hidden;
}
/* the circuit: neon race-track backdrop, slow cinematic drift */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: url('hero-track.webp') center 38% / cover no-repeat;
  transform-origin: 62% 42%; will-change: transform;
  animation: heroDrift 38s ease-in-out infinite alternate;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 95% 75% at 30% 42%, rgba(7,9,15,0.18), rgba(7,9,15,0.82) 68%, var(--ink) 100%),
    linear-gradient(180deg, rgba(7,9,15,0.6), rgba(7,9,15,0.18) 32%, rgba(7,9,15,0.55) 78%, var(--ink) 98%);
}
@keyframes heroDrift { from { transform: scale(1.05); } to { transform: scale(1.16) translateX(-1.5%); } }
/* staggered grid-launch entrance */
.hero .kicker, .hero h1, .hero p.lede, .hero .hero-cta, .hero .hero-meta {
  opacity: 0; transform: translateY(26px);
  animation: heroRise 0.9s var(--ease-out) forwards;
}
.hero h1 { animation-delay: 0.12s; }
.hero p.lede { animation-delay: 0.26s; }
.hero .hero-cta { animation-delay: 0.4s; }
.hero .hero-meta { animation-delay: 0.55s; }
@keyframes heroRise { to { opacity: 1; transform: none; } }
.kicker {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--green); margin-bottom: 22px;
  display: flex; align-items: center; gap: 12px;
}
.kicker::before { content: ""; width: 34px; height: 1px; background: var(--green); }
.hero h1 {
  font-size: var(--text-hero); font-weight: 700; letter-spacing: -0.035em;
  line-height: 1.02; max-width: 13ch;
}
.hero h1 .ghost { color: var(--dim); }
.hero h1 .time { font-family: var(--font-mono); color: var(--green); font-weight: 600; }
.hero p.lede {
  margin-top: 30px; max-width: 56ch; font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
  color: var(--muted); font-weight: 300;
}
.hero p.lede b { color: var(--text); font-weight: 500; }
.hero-cta { display: flex; gap: 14px; margin-top: 40px; flex-wrap: wrap; }
.hero-meta {
  margin-top: 64px; display: flex; gap: clamp(20px, 4vw, 60px); flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 12.5px; color: var(--dim);
}
.hero-meta b { display: block; font-size: clamp(1.4rem, 1rem + 1.4vw, 2.1rem); color: var(--text); letter-spacing: -1px; }
.hero-meta span em { font-style: normal; color: var(--muted); }
.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  color: var(--dim); font-family: var(--font-mono); font-size: 11px; letter-spacing: 2px;
  animation: bob 2.4s var(--ease-out) infinite;
}
@keyframes bob { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,8px); } }

/* ── demo (video placeholder) ─────────────────────────────────────── */
.demo { padding: var(--space-sec) clamp(20px, 5vw, 72px); text-align: center; }
.demo h2 { font-size: var(--text-h2); letter-spacing: -0.03em; max-width: 22ch; margin: 0 auto; }
.demo-lede { max-width: 62ch; margin: 18px auto 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
.demo-lede b { color: var(--text); font-weight: 500; }
/* ── voice-call transcript cards (3-across wall) ─────────────────── */
.voicecall-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
  align-items: stretch; max-width: 1180px; margin: 44px auto 0; }
.voicecall { position: relative; display: flex; flex-direction: column; text-align: left;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid rgba(52,211,153,0.3); border-radius: 20px; padding: 20px 22px 18px;
  box-shadow: 0 0 60px -18px rgba(52,211,153,0.35), 0 50px 110px -40px rgba(0,0,0,0.9); }
.vc-head { display: flex; align-items: center; gap: 12px; }
.vc-tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.5px; color: var(--green);
  background: var(--green-dim); border: 1px solid rgba(52,211,153,0.3); border-radius: 999px; padding: 5px 11px; white-space: nowrap; }
.vc-tag.vc-amber { color: var(--orange); background: rgba(251,146,60,0.12); border-color: rgba(251,146,60,0.3); }
.vc-meta { display: flex; flex-direction: column; line-height: 1.3; }
.vc-meta strong { font-size: 15px; font-variant-numeric: tabular-nums; }
.vc-meta span { font-size: 12px; color: var(--dim); }
.vc-chev { margin-left: auto; color: var(--dim); font-size: 22px; line-height: 1; }
.vc-flag { margin: 14px 0 4px; padding: 9px 13px; font-size: 12.5px; color: var(--muted);
  background: rgba(255,255,255,0.03); border: 1px solid var(--border-l); border-left: 2px solid var(--green);
  border-radius: 8px; }
.vc-flag.vc-flag-amber { border-left-color: var(--orange); }

.vc-chat { list-style: none; flex: 1; margin: 16px 0 6px; display: flex; flex-direction: column; gap: 11px;
  min-height: 248px; }
.vc-turn { display: flex; flex-direction: column; gap: 4px; max-width: 86%;
  opacity: 0; transform: translateY(8px); transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out); }
.vc-turn.in { opacity: 1; transform: none; }
.vc-ai { align-self: flex-start; align-items: flex-start; }
.vc-caller { align-self: flex-end; align-items: flex-end; }
.vc-role { font-family: var(--font-mono); font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; padding: 0 4px; }
.vc-ai .vc-role { color: var(--green); }
.vc-caller .vc-role { color: var(--muted); }
.vc-bubble { font-size: 14.5px; line-height: 1.5; padding: 10px 14px; border-radius: 14px; }
.vc-ai .vc-bubble { background: var(--green-dim); border: 1px solid rgba(52,211,153,0.28);
  border-bottom-left-radius: 4px; color: var(--text); }
.vc-caller .vc-bubble { background: var(--surface-2); border: 1px solid var(--border);
  border-bottom-right-radius: 4px; color: var(--text); }

.vc-typing .vc-bubble { display: inline-flex; gap: 5px; align-items: center; padding: 13px 14px; }
.vc-typing .vc-bubble i { width: 6px; height: 6px; border-radius: 50%; background: var(--green);
  opacity: 0.45; animation: vcBlink 1.2s ease-in-out infinite; }
.vc-typing .vc-bubble i:nth-child(2) { animation-delay: 0.18s; }
.vc-typing .vc-bubble i:nth-child(3) { animation-delay: 0.36s; }
@keyframes vcBlink { 0%, 60%, 100% { opacity: 0.3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

.vc-foot { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding-top: 13px;
  border-top: 1px solid var(--border-l); font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.3px; color: var(--muted); }
.vc-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 10px var(--green); animation: orbPulse 2.6s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .vc-turn { opacity: 1; transform: none; transition: none; }
  .vc-dot, .vc-typing .vc-bubble i { animation: none; }
}
/* stack the call wall on tablet/phone */
@media (max-width: 960px) {
  .voicecall-row { grid-template-columns: 1fr; max-width: 560px; gap: 18px; }
  .vc-chat { min-height: 0; }
}

/* ── problem strip ────────────────────────────────────────────────── */
.problem { padding: var(--space-sec) clamp(20px, 5vw, 72px); }
.sec-label {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--dim); margin-bottom: 16px;
}
.problem h2, .ondemand h2, .guard h2, .cta-final h2 {
  font-size: var(--text-h2); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1;
  max-width: 24ch;
}
.problem h2 s { text-decoration-color: var(--rose); text-decoration-thickness: 3px; }
.chiplist { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; max-width: 880px; }
.chip {
  font-family: var(--font-mono); font-size: 13px; color: var(--muted);
  border: 1px solid var(--border); border-radius: 999px; padding: 9px 18px;
  background: var(--surface); transition: all var(--dur-fast);
}
.chip:hover { color: var(--text); border-color: var(--green); transform: translateY(-2px); }

/* ── the run: scrollytelling timeline ─────────────────────────────── */
.run { position: relative; padding: var(--space-sec) clamp(20px, 5vw, 72px); }
.run-head { max-width: 980px; margin-bottom: clamp(3rem, 6vw, 7rem); }
.run-head h2 { font-size: var(--text-h2); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.run-head p { color: var(--muted); margin-top: 14px; max-width: 60ch; }

.run-grid { display: grid; grid-template-columns: 200px 1fr; gap: clamp(24px, 4vw, 64px); }

/* sticky clock rail */
.rail { position: relative; }
.rail-inner { position: sticky; top: 110px; }
.clock {
  font-family: var(--font-mono); font-size: clamp(2rem, 1rem + 2.6vw, 3.4rem);
  font-weight: 700; letter-spacing: -2px; color: var(--text);
  font-variant-numeric: tabular-nums; transition: color var(--dur);
}
.clock-sub { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 2px; text-transform: uppercase; color: var(--dim); margin-top: 6px; min-height: 32px; }
.rail-track { margin-top: 26px; width: 6px; height: 300px; border-radius: 4px; position: relative;
  background: rgba(52,211,153,0.07); border: 1px solid rgba(52,211,153,0.18); }
.rail-fill { position: absolute; inset: 0; border-radius: 4px;
  background: linear-gradient(var(--green), var(--indigo));
  transform: scaleY(0); transform-origin: top; transition: transform 120ms linear;
  box-shadow: 0 0 14px rgba(52,211,153,0.45); }
.rail-checks { position: absolute; inset: 0; }
.rail-check { position: absolute; left: 50%; transform: translate(-50%,-50%);
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--ink-2); border: 2px solid var(--border); transition: background .3s, border-color .3s, box-shadow .3s; }
.rail-check.on { background: var(--green); border-color: var(--green); box-shadow: 0 0 10px var(--green); }
.rail-car { position: absolute; top: -4px; left: 50%; transform: translate(-50%,0) rotate(90deg);
  font-size: 19px; line-height: 1; filter: drop-shadow(0 0 9px var(--green));
  transition: transform 120ms linear; will-change: transform; z-index: 1; }
/* faint circuit behind the whole morning run — same asset as the hero */
.run { position: relative; }
.run::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url('hero-track.webp') center / cover no-repeat; opacity: 0.06; }

/* chapters */
.chapters { display: flex; flex-direction: column; gap: clamp(4rem, 7vw, 9rem); }
.chapter {
  --acc: var(--green);
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(22px, 3.5vw, 56px); align-items: center;
  opacity: 0; transform: translateY(36px);
  transition: opacity 650ms var(--ease-out), transform 650ms var(--ease-out);
}
.chapter.vis { opacity: 1; transform: none; }
.chapter:nth-child(even) .ch-copy { order: 2; }
.ch-time {
  font-family: var(--font-mono); font-size: 13px; font-weight: 600;
  color: var(--acc); letter-spacing: 1px; display: flex; align-items: center; gap: 10px;
}
.ch-time .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 14px var(--acc); }
.ch-time .days { color: var(--dim); font-weight: 400; }
.ch-copy h3 { font-size: var(--text-h3); font-weight: 700; letter-spacing: -0.02em; margin-top: 14px; }
.ch-copy p { color: var(--muted); margin-top: 12px; max-width: 52ch; }
.ch-copy p b { color: var(--text); font-weight: 500; }
.ch-points { margin-top: 18px; display: flex; flex-direction: column; gap: 9px; list-style: none; }
.ch-points li { display: flex; gap: 10px; font-size: 14px; color: var(--muted); align-items: baseline; }
.ch-points li svg { flex: none; width: 14px; height: 14px; color: var(--acc); transform: translateY(2px); }

/* device mocks */
.mock {
  border: 1px solid var(--border); border-radius: 18px; overflow: hidden;
  background: linear-gradient(180deg, var(--ink-2), rgba(255,255,255,0.02));
  box-shadow: 0 30px 70px -30px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.02) inset;
  transform: perspective(1200px) rotateX(0deg);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur);
}
.chapter:hover .mock { transform: perspective(1200px) translateY(-4px); box-shadow: 0 40px 90px -30px rgba(0,0,0,0.9), 0 0 40px -18px var(--acc); }
.mock-bar {
  display: flex; align-items: center; gap: 8px; padding: 11px 16px;
  border-bottom: 1px solid var(--border-l); font-family: var(--font-mono);
  font-size: 11px; color: var(--dim); letter-spacing: 1px;
}
.mock-bar .lights { display: flex; gap: 6px; }
.mock-bar .lights i { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-2); }
.mock-bar .lights i:first-child { background: rgba(251,113,133,0.7); }
.mock-body { padding: 18px; display: flex; flex-direction: column; gap: 12px; min-height: 200px; }

/* telegram-style bubble */
.tg {
  background: var(--surface-2); border: 1px solid var(--border-l);
  border-radius: 4px 16px 16px 16px; padding: 13px 15px; max-width: 95%;
  font-size: 13px; line-height: 1.55; color: var(--muted);
}
.tg b { color: var(--text); }
.tg .acc { color: var(--acc); }
.tg-meta { font-family: var(--font-mono); font-size: 10px; color: var(--dim); margin-top: 8px; }
/* terminal lines */
.term { font-family: var(--font-mono); font-size: 12.5px; line-height: 1.9; color: var(--muted); }
.term .p { color: var(--green); }
.term .c { color: var(--dim); }
.term b { color: var(--text); font-weight: 500; }

/* ── on-demand bento ──────────────────────────────────────────────── */
.ondemand { padding: var(--space-sec) clamp(20px, 5vw, 72px); }
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; margin-top: 48px; }
.bcard {
  grid-column: span 6; border: 1px solid var(--border); border-radius: 20px;
  padding: 28px; background: var(--surface); position: relative; overflow: hidden;
  transition: transform var(--dur-fast) var(--ease-out), border-color var(--dur-fast);
}
.bcard:hover { transform: translateY(-4px); border-color: var(--acc, var(--green)); }
.bcard::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), color-mix(in oklab, var(--acc, var(--green)) 14%, transparent), transparent 60%);
  transition: opacity var(--dur);
}
.bcard:hover::after { opacity: 1; }
.bcard.wide { grid-column: span 12; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.bcard .hook {
  font-family: var(--font-mono); font-size: 12px; color: var(--acc, var(--green));
  background: color-mix(in oklab, var(--acc, var(--green)) 12%, transparent);
  border: 1px solid color-mix(in oklab, var(--acc, var(--green)) 30%, transparent);
  padding: 5px 12px; border-radius: 8px; display: inline-block;
}
.bcard h3 { font-size: 19px; font-weight: 600; margin-top: 16px; letter-spacing: -0.01em; }
.bcard p { color: var(--muted); font-size: 14px; margin-top: 8px; max-width: 48ch; }

/* ── guardrails ───────────────────────────────────────────────────── */
.guard { padding: var(--space-sec) clamp(20px, 5vw, 72px); }
.guard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin-top: 48px; }
.gcard {
  border: 1px solid var(--border); border-radius: 18px; padding: 26px;
  background: var(--surface); transition: transform var(--dur-fast) var(--ease-out), border-color var(--dur-fast);
}
.gcard:hover { transform: translateY(-4px); border-color: rgba(52,211,153,0.5); }
.gcard svg { width: 26px; height: 26px; color: var(--green); }
.gcard h3 { font-size: 16px; font-weight: 600; margin-top: 16px; }
.gcard p { font-size: 13.5px; color: var(--muted); margin-top: 8px; }

/* ── talk to your brain ───────────────────────────────────────────── */
.brain { padding: var(--space-sec) clamp(20px, 5vw, 72px); }
.brain-wrap {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 5vw, 72px);
  align-items: center; max-width: 1180px; margin: 0 auto;
}
.brain-copy h2 { font-size: var(--text-h2); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; margin-top: 14px; }
.brain-copy > p { color: var(--muted); margin-top: 16px; max-width: 56ch; }
.brain-copy > p b { color: var(--text); font-weight: 500; }
.brain-points { list-style: none; margin-top: 22px; display: flex; flex-direction: column; gap: 11px; }
.brain-points li { display: flex; gap: 11px; font-size: 14.5px; color: var(--muted); align-items: baseline; }
.brain-points li svg { flex: none; width: 16px; height: 16px; color: var(--green); transform: translateY(2px); }
.brain-copy .hero-cta { margin-top: 30px; }

.brain-orb { position: relative; display: grid; place-items: center; min-height: 320px; }
.brain-orb .orb {
  width: clamp(180px, 22vw, 260px); aspect-ratio: 1; border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(52,211,153,0.9), transparent 45%),
    radial-gradient(circle at 70% 70%, rgba(99,102,241,0.85), transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(56,189,248,0.5), transparent 60%);
  filter: blur(6px); animation: orbPulse 6s var(--ease-out) infinite;
}
@keyframes orbPulse { 0%,100% { transform: scale(1); opacity: 0.9; } 50% { transform: scale(1.06); opacity: 1; } }
.brain-orb .orb-ring {
  position: absolute; width: clamp(230px, 28vw, 330px); aspect-ratio: 1; border-radius: 50%;
  border: 1px solid var(--border); box-shadow: 0 0 60px -10px rgba(52,211,153,0.35) inset;
  animation: orbSpin 26s linear infinite;
}
.brain-orb .orb-ring::before {
  content: ""; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px;
  border-radius: 50%; background: var(--green); box-shadow: 0 0 14px var(--green); transform: translateX(-50%);
}
@keyframes orbSpin { to { transform: rotate(360deg); } }
.brain-orb .orb-label {
  position: absolute; font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--muted); background: rgba(7,9,15,0.7); padding: 6px 12px; border-radius: 8px;
  border: 1px solid var(--border-l); backdrop-filter: blur(6px);
}

/* ── floating chat dock ───────────────────────────────────────────── */
.chat-fab {
  position: fixed; bottom: 22px; right: 22px; z-index: 60;
  width: 56px; height: 56px; border-radius: 18px; border: 1px solid rgba(52,211,153,0.5);
  background: var(--green); color: #04130c; cursor: pointer;
  display: grid; place-items: center;
  box-shadow: 0 12px 34px -10px rgba(52,211,153,0.6); transition: transform var(--dur-fast) var(--ease-out);
}
.chat-fab:hover { transform: translateY(-3px) scale(1.04); }
.chat-dock.open ~ .chat-fab, .chat-dock.open + .chat-fab { display: none; }

.chat-dock {
  position: fixed; bottom: 22px; right: 22px; z-index: 61;
  width: min(390px, calc(100vw - 32px)); height: min(620px, calc(100dvh - 44px));
  display: flex; flex-direction: column; overflow: hidden;
  background: rgba(11,14,23,0.92); backdrop-filter: blur(22px);
  border: 1px solid var(--border); border-radius: 22px;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,0.85);
  opacity: 0; transform: translateY(20px) scale(0.98); pointer-events: none;
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.chat-dock.open { opacity: 1; transform: none; pointer-events: auto; }
.chat-head {
  display: flex; align-items: center; gap: 10px; padding: 15px 18px;
  border-bottom: 1px solid var(--border-l);
}
.chat-id { font-size: 13px; color: var(--muted); }
.chat-id .tick { color: var(--green); font-weight: 700; }
.chat-x { margin-left: auto; background: none; border: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; padding: 4px; border-radius: 8px; transition: color var(--dur-fast), background var(--dur-fast); }
.chat-x:hover { color: var(--text); background: var(--surface-2); }

.chat-log { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.chat-msg { font-size: 13.5px; line-height: 1.55; padding: 11px 14px; border-radius: 14px; max-width: 88%; }
.chat-msg.bot { background: var(--surface-2); border: 1px solid var(--border-l); color: var(--text); border-top-left-radius: 4px; align-self: flex-start; }
.chat-msg.bot em { color: var(--green); font-style: normal; }
.chat-msg.user { background: var(--green); color: #04130c; border-top-right-radius: 4px; align-self: flex-end; font-weight: 500; }
.chat-src { margin-top: 8px; font-size: 10.5px; color: var(--dim); border-top: 1px solid var(--border-l); padding-top: 6px; }
.chat-err { color: var(--rose); }
.chat-typing { display: inline-flex; gap: 4px; }
.chat-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: typing 1.2s var(--ease-out) infinite; }
.chat-typing i:nth-child(2) { animation-delay: 0.2s; }
.chat-typing i:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing { 0%,60%,100% { opacity: 0.3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

.chat-auth { padding: 16px 18px; border-top: 1px solid var(--border-l); text-align: center; }
.chat-auth p.mono { font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.chat-google { width: 100%; justify-content: center; }
.chat-demo-note { font-size: 10px; color: var(--dim); margin-top: 10px; }

.brain-bar { padding: 10px 16px 0; }
.brain-bar[hidden] { display: none; }
.brain-upload {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500; cursor: pointer;
  padding: 9px 12px; border-radius: 11px; color: var(--green);
  background: var(--green-dim); border: 1px dashed rgba(52,211,153,0.45);
  transition: background var(--dur-fast), border-color var(--dur-fast);
}
.brain-upload:hover:not(:disabled) { background: rgba(52,211,153,0.18); border-color: var(--green); }
.brain-upload:disabled { opacity: 0.6; cursor: progress; }

.chat-input { display: flex; gap: 8px; padding: 14px 16px; border-top: 1px solid var(--border-l); }
.chat-input[hidden], .chat-auth[hidden] { display: none; }   /* explicit display must yield to hidden */
.chat-input input {
  flex: 1; background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 11px 14px; color: var(--text); font-family: var(--font-sans); font-size: 14px;
}
.chat-input input:focus { outline: none; border-color: var(--green); }
.chat-input .btn { padding: 0 14px; }

@media (max-width: 960px) {
  .brain-wrap { grid-template-columns: 1fr; }
  .brain-orb { min-height: 240px; order: -1; }
}

/* ── final CTA ────────────────────────────────────────────────────── */
.cta-final {
  padding: var(--space-sec) clamp(20px, 5vw, 72px);
  text-align: center; position: relative;
}
.cta-final::before {
  content: ""; position: absolute; inset: 10% 15%; pointer-events: none;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(52,211,153,0.13), transparent 70%);
}
.cta-final h2 { margin: 0 auto; }
.cta-final .clock-big {
  font-family: var(--font-mono); font-size: clamp(3rem, 2rem + 5vw, 6rem);
  font-weight: 700; letter-spacing: -3px; color: var(--green);
  font-variant-numeric: tabular-nums; display: block; margin-bottom: 18px;
}
.cta-final p { color: var(--muted); margin: 18px auto 0; max-width: 52ch; }
.cta-final .hero-cta { justify-content: center; }

/* ── pricing ──────────────────────────────────────────────────────── */
.pricing { padding: var(--space-sec) clamp(20px, 5vw, 72px); }
.pricing h2, .faq h2 { font-size: var(--text-h2); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; max-width: 24ch; }
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 44px; max-width: 880px; }
.price-card { border: 1px solid var(--border); border-radius: 22px; padding: 30px; background: var(--surface); display: flex; flex-direction: column; transition: transform var(--dur) var(--ease-out); }
.price-card:hover { transform: translateY(-4px); }
.price-card.featured { border-color: rgba(52,211,153,0.5); box-shadow: 0 0 56px -18px rgba(52,211,153,0.5); background: linear-gradient(160deg, rgba(52,211,153,0.07), var(--surface)); position: relative; }
.pc-tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.pc-tag.pro { color: var(--green); text-shadow: 0 0 14px rgba(52,211,153,0.5); }
.pc-amount { margin: 14px 0 2px; display: flex; align-items: baseline; gap: 8px; }
.pc-amount b { font-size: 48px; font-weight: 700; letter-spacing: -2px; }
.featured .pc-amount b { color: #eafff6; text-shadow: 0 0 22px rgba(52,211,153,0.45); }
.pc-amount span { color: var(--muted); font-size: 14px; }
.pc-sub { color: var(--muted); font-size: 14px; }
.pc-feat { list-style: none; margin: 22px 0; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.pc-feat li { display: flex; gap: 10px; font-size: 14px; align-items: baseline; color: var(--text); }
.pc-feat li svg { width: 15px; height: 15px; color: var(--green); flex: none; transform: translateY(2px); }
.pc-feat li.muted { color: var(--dim); font-size: 12.5px; }
.pc-cta { justify-content: center; }
.price-foot { text-align: center; color: var(--dim); font-size: 13px; margin-top: 26px; }

/* ── faq ──────────────────────────────────────────────────────────── */
.faq { padding: 0 clamp(20px, 5vw, 72px) var(--space-sec); }
.faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 16px; margin-top: 40px; }
.faq-item { border: 1px solid var(--border-l); border-radius: 16px; padding: 22px; background: var(--surface); }
.faq-item h3 { font-size: 15px; font-weight: 600; }
.faq-item p { color: var(--muted); font-size: 13.5px; margin-top: 8px; line-height: 1.6; }

footer {
  border-top: 1px solid var(--border-l); padding: 28px clamp(20px, 5vw, 72px);
  display: flex; gap: 18px; align-items: center; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 12px; color: var(--dim);
}
footer .wordmark { font-size: 14px; }
footer span:last-child { margin-left: auto; }

/* reveal utility for non-chapter sections */
.rv { opacity: 0; transform: translateY(28px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
.rv.vis { opacity: 1; transform: none; }

/* ── responsive ───────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .run-grid { grid-template-columns: 1fr; }
  .rail { display: none; }
  .chapter, .chapter:nth-child(even) { grid-template-columns: 1fr; }
  .chapter:nth-child(even) .ch-copy { order: 0; }
  .bcard, .bcard.wide { grid-column: span 12; grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  header.site > nav { display: none; }              /* desktop links → hamburger */
  .nav-toggle { display: flex; margin-left: 10px; }
  .header-cta { margin-left: auto; }
  .header-cta .btn-ghost { display: none; }         /* keep primary CTA in the bar */
  header.site { padding-inline: 16px; gap: 10px; }
  header.site .btn { min-height: 44px; }
  /* hero: thumb-zone CTAs, tighter type, full-height but not overflowing */
  .hero { min-height: 100svh; padding: 96px 18px 76px; }
  .hero h1 { max-width: none; font-size: clamp(2.2rem, 1rem + 9vw, 3.4rem); }
  .hero p.lede { font-size: 1rem; margin-top: 22px; }
  .hero-cta { margin-top: 30px; gap: 10px; }
  .hero-cta .btn { width: 100%; justify-content: center; min-height: 48px; font-size: 15px; }
  .kicker { font-size: 11px; letter-spacing: 2px; }
  .scroll-hint { display: none; }
  /* sections: tighter rhythm */
  .problem, .demo, .faq, .cta-final { padding-inline: 18px; }
  .chip { font-size: 12px; padding: 7px 12px; }
  /* voice-call card: tighten without overflowing */
  .voicecall { margin-top: 28px; padding: 16px 16px 14px; border-radius: 16px; }
  .vc-turn { max-width: 92%; }
  .vc-bubble { font-size: 14px; }
  .vc-flag { font-size: 12px; }
  .vc-foot { font-size: 10px; letter-spacing: 0; }
  .demo-lede { font-size: 14px; }
  footer { flex-direction: column; align-items: flex-start; gap: 8px; }
  footer span:last-child { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .chapter, .rv { opacity: 1; transform: none; }
  .hero .kicker, .hero h1, .hero p.lede, .hero .hero-cta, .hero .hero-meta { opacity: 1; transform: none; }
}

/* ───────────────────────── PRICING ───────────────────────── */
.pricing { max-width: var(--maxw, 1180px); margin: 0 auto; padding: var(--space-section, 7rem) 24px; }
.pricing > .sec-label, .pricing > h2 { text-align: center; }
.pricing > h2 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem); line-height: 1.05; max-width: 20ch; margin: 0 auto 10px; }
.pricing .lede { text-align: center; color: var(--muted); max-width: 60ch; margin: 0 auto 14px; font-size: 15px; line-height: 1.6; }

.founding {
  display: flex; gap: 14px; align-items: center; justify-content: center; flex-wrap: wrap;
  max-width: 760px; margin: 0 auto 46px; padding: 16px 22px; text-align: center;
  border: 1px solid rgba(52,211,153,0.32); border-radius: 16px;
  background: linear-gradient(180deg, var(--green-dim), transparent);
}
.founding .tag {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 1.6px; text-transform: uppercase;
  color: #04130c; background: var(--green); padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}
.founding p { color: var(--text); font-size: 14px; line-height: 1.55; margin: 0; }
.founding b { color: var(--green); }

.tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.tier {
  position: relative; display: flex; flex-direction: column;
  border: 1px solid var(--border-l); border-radius: 20px; padding: 28px 24px 26px;
  background: var(--surface); transition: transform .3s var(--ease-out), border-color .3s, box-shadow .3s;
}
.tier:hover { transform: translateY(-5px); border-color: var(--green); box-shadow: 0 18px 50px -20px rgba(52,211,153,0.35); }
.tier.feature { border-color: rgba(52,211,153,0.5); background: linear-gradient(180deg, rgba(52,211,153,0.06), var(--surface) 60%); }
.tier .badge {
  position: absolute; top: -11px; left: 24px; font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 1.4px; text-transform: uppercase; color: #04130c; background: var(--green);
  padding: 4px 11px; border-radius: 999px;
}
.tier .badge.alt { background: var(--amber); color: #1a1206; }
.tier .t-name { font-size: 13px; font-weight: 600; letter-spacing: .3px; color: var(--text); }
.tier .t-sub { color: var(--muted); font-size: 12.5px; margin: 4px 0 18px; line-height: 1.5; min-height: 34px; }
.tier .price { font-family: var(--font-mono); font-size: 40px; font-weight: 600; color: var(--text); line-height: 1; }
.tier .price small { font-size: 13px; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.tier .price-note { font-size: 11.5px; color: var(--green); margin-top: 7px; font-family: var(--font-mono); letter-spacing: .3px; }
.tier ul { list-style: none; margin: 20px 0 24px; padding: 0; display: grid; gap: 11px; }
.tier li { position: relative; padding-left: 26px; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.tier li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 16px; height: 16px;
  background: var(--green-dim); border-radius: 5px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334d399' stroke-width='3'%3E%3Cpath d='M5 12l4 4 10-10'/%3E%3C/svg%3E") center/12px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334d399' stroke-width='3'%3E%3Cpath d='M5 12l4 4 10-10'/%3E%3C/svg%3E") center/12px no-repeat;
  background: var(--green);
}
.tier li b { color: var(--text); font-weight: 600; }
.tier .btn { margin-top: auto; width: 100%; justify-content: center; }

.assure { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 42px auto 0; max-width: 820px; }
.assure span {
  font-size: 12.5px; color: var(--muted); border: 1px solid var(--border); border-radius: 999px;
  padding: 8px 15px; background: var(--surface); display: inline-flex; gap: 7px; align-items: center;
}
.assure b { color: var(--green); font-weight: 600; }

@media (max-width: 860px) { .tier-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }

/* ──────────────────── LEAK LEDGER (problem) ──────────────────── */
.problem-lede { color: var(--muted); font-size: 15.5px; line-height: 1.6; max-width: 62ch; margin: 16px 0 30px; }
.leak-ledger { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0 0 26px; }
.leak {
  border: 1px solid var(--border-l); border-left: 3px solid var(--rose); border-radius: 14px;
  padding: 22px 20px; background: var(--surface); transition: transform .3s var(--ease-out), border-color .3s;
}
.leak:hover { transform: translateY(-4px); border-left-color: var(--green); }
.leak .amt { display: block; font-family: var(--font-mono); font-size: clamp(1.5rem, 1rem + 1.6vw, 2.1rem); font-weight: 600; color: var(--rose); line-height: 1; letter-spacing: -.5px; }
.leak:hover .amt { color: var(--green); }
.leak .lab { display: block; margin-top: 10px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.problem-foot { font-size: 16px; color: var(--text); font-weight: 500; max-width: 56ch; }
.problem-foot b { color: var(--green); }
@media (max-width: 920px) { .leak-ledger { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .leak-ledger { grid-template-columns: 1fr; } }
