/* ── Tokens ─────────────────────────────────────────── */
:root {
  --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --hand: 'Kalam', cursive;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
:root {
  color-scheme: dark;
  --bg: #161618;
  --card: #1f1f22;
  --ink: #ecebe6;
  --muted: #a6a6a0;
  --faint: #76767a;
  --line: #2e2e32;
  --bubble: #2a2a2e;
  --wash: #173a35;
  --nav: rgb(31 31 34 / 72%);
  --shadow: 0 24px 60px rgb(0 0 0 / 40%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
a { color: inherit; text-decoration: none; }
code { font: 0.88em var(--mono); background: var(--bubble); padding: 0.1em 0.35em; border-radius: 5px; }

/* ── Faces ──────────────────────────────────────────── */
.face { width: 22px; height: 22px; flex: none; }
.face.big { width: 64px; height: 64px; }
.face .eyes { transition: transform 0.35s var(--ease); }
.face.looking .eyes { animation: look 1.6s var(--ease) infinite; }
@keyframes look { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }

/* ── Nav ────────────────────────────────────────────── */
.nav-wrap { position: fixed; inset: 14px 16px auto; z-index: 10; display: flex; justify-content: center; }
.nav {
  width: min(960px, 100%);
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 8px 8px 16px;
  background: var(--nav);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line); border-radius: 999px;
}
.brand { display: flex; gap: 9px; align-items: center; font-weight: 600; }
.nav-links { display: flex; gap: 22px; align-items: center; font-size: 15px; color: var(--muted); }
.nav-links > a:not(.btn):hover { color: var(--ink); }

/* ── Buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--bg);
  font-weight: 500; padding: 12px 22px; border-radius: 999px;
  transition: transform 0.25s var(--ease), opacity 0.25s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(0.98); }
.btn-small { padding: 7px 16px; font-size: 14px; color: var(--bg) !important; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.copy {
  display: inline-flex; gap: 10px; align-items: center;
  font: 13.5px var(--mono); color: var(--muted);
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 11px 12px 11px 18px; cursor: pointer;
}
.copy .prompt { color: var(--faint); }
.copy-label { font: 500 12px var(--sans); background: var(--bubble); color: var(--ink); padding: 4px 10px; border-radius: 999px; }

/* ── Hero ───────────────────────────────────────────── */
.hero { padding: 132px 16px 0; text-align: center; max-width: 1040px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.note { font: 300 22px var(--hand); color: var(--muted); }
h1 { font-size: clamp(42px, 7vw, 76px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 600; margin: 14px 0 22px; }
.lede { font-size: 19px; color: var(--muted); max-width: 560px; margin: 0 auto; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.video-frame {
  position: relative; margin-top: 64px;
  border-radius: 22px; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.video-frame video { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.sound {
  position: absolute; right: 14px; bottom: 14px;
  font: 500 12px var(--sans); color: #1c1c1e;
  background: rgb(251 251 250 / 85%); border: 0; border-radius: 999px; padding: 6px 12px; cursor: pointer;
}

/* ── Sections ───────────────────────────────────────── */
.section { max-width: 1040px; margin: 0 auto; padding: 110px 16px 0; }
.section-head { max-width: 560px; }
h2 { font-size: clamp(30px, 4.4vw, 44px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 600; margin-bottom: 14px; }
.section-head p { color: var(--muted); }



/* ── Split sections ─────────────────────────────────── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.reverse .section-head { order: 2; }

/* ── Specs ──────────────────────────────────────────── */

/* ── CTA + footer ───────────────────────────────────── */
.cta { text-align: center; padding: 220px 16px 200px; }
.note.big { font-size: 34px; margin-bottom: 10px; }
.strike { position: relative; }
.strike::after { content: ''; position: absolute; left: -4%; right: -4%; top: 55%; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 0.8s 0.3s var(--ease); }
.reveal.in .strike::after { transform: scaleX(1); }
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; max-width: 1040px; margin: 0 auto; padding: 28px 16px 40px; color: var(--faint); font-size: 14px; }
.footer a:hover { color: var(--ink); }

/* ── Reveal ─────────────────────────────────────────── */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 860px) {
  .nav-links > a:not(.btn) { display: none; }
  .demo, .split { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse .section-head { order: 0; }
}
@media (max-width: 520px) {
    .copy { font-size: 11.5px; max-width: 100%; overflow: hidden; }
  .hero { padding: 132px 16px 0; text-align: center; max-width: 1040px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
.logo { border-radius: 8px; box-shadow: 0 0 0 1px var(--line); }

/* ── One bot ────────────────────────────────────────── */
.face { filter: drop-shadow(0 1px 1px rgb(0 0 0 / 12%)); }
.hero-face { display: flex; justify-content: center; margin-bottom: 22px; }
#hero-face { width: 80px; height: 80px; filter: drop-shadow(0 10px 16px rgb(28 28 30 / 12%)); cursor: pointer; }
#hero-face.hop { animation: hop 0.75s var(--ease); }
#hero-face .eyes { transition: transform 0.25s var(--ease); transform-box: fill-box; }
#hero-face .eyes.blink { transform: scaleY(0.1) !important; transform-origin: center; transition-duration: 0.08s; }
@keyframes breathe { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.cta-face { width: 72px; height: 72px; margin-bottom: 14px; }
.reveal.in.cta-face { animation: hop 0.8s 0.4s var(--ease) both; }

@keyframes hop {
  0% { transform: none; }
  20% { transform: scale(1.1, 0.88) translateY(4px); }
  50% { transform: scale(0.94, 1.08) translateY(-12px); }
  80% { transform: scale(1.04, 0.96); }
  100% { transform: none; }
}

/* ── Story layout ───────────────────────────────────── */
.story { max-width: 1480px; margin: 0 auto; padding: 200px 24px 0; display: grid; grid-template-columns: minmax(280px, 0.58fr) 1.6fr; gap: 56px; }
.story-steps { padding: 10vh 0 30vh; }
.step { min-height: 95vh; opacity: 0.28; transition: opacity 0.6s var(--ease); }
.step[data-step="2"] { min-height: 160vh; }
.step[data-step="3"] { min-height: 260vh; }
.step-inner { position: sticky; top: calc(50vh - 140px); padding: 40px 0; }
.step.active, .step.past { opacity: 1; transform: none; }
.step.past { opacity: 0.28; }
.step p { color: var(--muted); }
.step-frame { display: none; }
.rules { list-style: none; margin-top: 22px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: var(--muted); }
.rules span { display: inline-block; width: 18px; margin-right: 8px; color: var(--ink); }
.story-stage { position: sticky; top: calc(50vh - 330px); height: 660px; align-self: start; }

/* ── The Hybrid app window (dark, from apps/web tokens) ─ */
.app {
  --a-bg: #0a0a0a; --a-card: #121212; --a-border: rgb(255 255 255 / 6%); --a-input: rgb(255 255 255 / 8%);
  --a-fg: #f5f5f5; --a-muted: #8b8b8b; --a-faint: #5a5a5a; --a-accent: rgb(255 255 255 / 4%);
  --a-success: #34d399; --a-error: #f87171; --a-info: #60a5fa; --a-warn: #fbbf24;
  --a-face: #f4f4f1; --a-ink: #141416;
  position: relative; display: flex; height: 100%; overflow: hidden;
  background: var(--a-bg); color: var(--a-fg);
  border-radius: 14px; font: 400 13px/1.5 var(--sans);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 9%), 0 40px 100px rgb(10 10 12 / 35%), 0 10px 30px rgb(10 10 12 / 20%);
  -webkit-font-smoothing: antialiased;
}
.app .face { width: 18px; height: 18px; filter: none; }
.app code { font: 11.5px var(--mono); background: var(--a-accent); color: var(--a-fg); box-shadow: inset 0 0 0 1px var(--a-border); }
.ico { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.lights { display: flex; gap: 7px; padding: 2px 0 16px; }
.lights i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.lights i:nth-child(2) { background: #febc2e; } .lights i:nth-child(3) { background: #28c840; }

.app-side { width: 208px; flex: none; display: flex; flex-direction: column; padding: 14px 10px 12px; background: var(--a-card); border-right: 1px solid var(--a-border); }
.app-side .lights { padding-left: 4px; }
.side-brand, .side-row { display: flex; align-items: center; gap: 8px; padding: 5px 6px; border-radius: 8px; }
.side-brand { font-weight: 500; }
.side-brand .ico { margin-left: auto; color: var(--a-muted); }
.side-row { color: var(--a-muted); margin-top: 2px; }
.side-label { display: flex; justify-content: space-between; color: var(--a-muted); font-size: 12px; padding: 16px 6px 6px; }
.threads { list-style: none; display: flex; flex-direction: column; gap: 1px; }
.threads li { display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 8px; color: var(--a-muted); white-space: nowrap; overflow: hidden; }
.threads li.active { background: var(--a-accent); color: var(--a-fg); }
.threads .dot { width: 6px; height: 6px; border-radius: 50%; flex: none; background: transparent; transition: background 0.3s, box-shadow 0.3s; }
.threads .dot[data-state='working'] { background: var(--a-muted); animation: dot-pulse 1.4s ease-in-out infinite; }
.threads .dot[data-state='needs-you'] { background: var(--a-face); box-shadow: 0 0 0 3px rgb(244 244 241 / 18%); }
.threads .dot[data-state='done-unread'] { background: var(--a-muted); }
@keyframes dot-pulse { 50% { opacity: 0.3; } }
.side-foot { margin-top: auto; display: flex; justify-content: space-between; color: var(--a-muted); padding: 0 6px; }

.app-main { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; }
.app-head { height: 44px; flex: none; display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 0 14px; border-bottom: 1px solid var(--a-border); }
.app-head .lights { margin-right: auto; }
.app-head .lights { padding: 0 6px 0 0; }
.branch { flex: none; display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 10px; border-radius: 999px; border: 1px solid rgb(255 255 255 / 5%); color: var(--a-muted); font-size: 12px; }

.app-chat { flex: 1; overflow: hidden; position: relative; }
.chat-col { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 14px; padding: 18px 28px 8px; transition: transform 0.55s var(--ease); will-change: transform; }
.greet { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); }
.greet .face { width: 44px; height: 44px; margin-bottom: 6px; }
.greet b { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.greet span { color: var(--a-muted); }
.app.has-chat .greet { opacity: 0; transform: translateY(-10px); }

.m-me { align-self: flex-end; max-width: 75%; background: rgb(255 255 255 / 7%); padding: 8px 13px; border-radius: 16px 16px 5px 16px; }
.m-bot { display: flex; gap: 10px; max-width: 86%; }
.m-bot .face { margin-top: 1px; }
.m-body { color: #e6e6e6; }
.m-card { align-self: flex-start; width: 80%; background: var(--a-card); border: 1px solid var(--a-border); border-radius: 16px; padding: 10px 12px; margin-left: 28px; }
.enter { animation: enter 0.5s var(--ease) both; }
@keyframes enter { from { opacity: 0; transform: translateY(14px) scale(0.985); } to { opacity: 1; transform: none; } }
.c-label { font-size: 11.5px; color: var(--a-muted); }
.c-title { display: flex; align-items: flex-start; gap: 8px; font-weight: 500; }
.c-title span:first-child { flex: 1; }
.pill { flex: none; font-size: 11px; font-weight: 500; padding: 1px 8px; border-radius: 999px; }
.pill.running { background: rgb(96 165 250 / 10%); color: var(--a-info); }
.pill.waiting { background: rgb(251 191 36 / 10%); color: var(--a-warn); }
.pill.completed { background: rgb(52 211 153 / 10%); color: var(--a-success); }
.pill.failed { background: rgb(248 113 113 / 10%); color: var(--a-error); }
.elapsed { flex: none; font-size: 11px; color: var(--a-muted); padding-top: 1px; font-variant-numeric: tabular-nums; }
.beat { font-size: 11.5px; color: var(--a-muted); margin-top: 3px; }
.beat.swap { animation: swap 0.35s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.files, .checks { margin-top: 7px; font-size: 11.5px; display: flex; flex-direction: column; gap: 1px; }
.files p, .checks p { display: flex; gap: 8px; }
.files .path, .checks .cmd { flex: 1; font-family: var(--mono); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.checks .cmd { color: var(--a-muted); }
.add { color: var(--a-success); } .del { color: var(--a-error); } .ran { color: var(--a-muted); }
.c-plan { margin-top: 5px; padding-left: 16px; color: var(--a-muted); font-size: 11.5px; display: flex; flex-direction: column; gap: 1px; }
.c-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.abtn { font: 500 11.5px var(--sans); height: 26px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--a-input); background: transparent; color: var(--a-fg); display: inline-flex; align-items: center; gap: 4px; transition: transform 0.15s var(--ease), opacity 0.3s; }
.abtn.primary { background: var(--a-face); color: var(--a-ink); border-color: transparent; }
.abtn.ghost { border-color: transparent; color: var(--a-muted); }
.abtn.pressed { transform: scale(0.94); }
.resolved .abtn:not(.chosen) { opacity: 0.35; }
.work-thread { margin-top: 8px; border-radius: 10px; border: 1px solid var(--a-border); background: var(--a-bg); padding: 8px 10px; font: 10.5px/1.7 var(--mono); color: var(--a-muted); }

.composer { margin: 4px 22px 18px; border: 1px solid var(--a-border); background: var(--a-card); border-radius: 18px; padding: 11px 12px 10px 14px; flex: none; }
.c-input { display: flex; gap: 10px; align-items: baseline; min-height: 20px; }
.c-ph { color: var(--a-faint); }
.c-caret { display: inline-block; width: 1px; height: 14px; background: var(--a-fg); margin-left: 1px; vertical-align: -2px; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.c-row { display: flex; justify-content: flex-end; align-items: center; gap: 14px; margin-top: 8px; color: var(--a-muted); font-size: 12px; }
.send { width: 26px; height: 26px; border-radius: 50%; background: var(--a-face); color: var(--a-ink); display: grid; place-items: center; transition: transform 0.2s var(--ease); }
.send.pressed { transform: scale(0.86); }
.send .ico { width: 13px; height: 13px; stroke-width: 2.2; }

.cursor { position: absolute; left: 0; top: 0; width: 18px; height: 18px; z-index: 5; pointer-events: none; opacity: 0; transform: translate(560px, 520px); transition: transform 0.9s var(--ease), opacity 0.3s; }
.cursor.on { opacity: 1; }
.cursor svg { width: 18px; height: 18px; transition: transform 0.15s; filter: drop-shadow(0 2px 3px rgb(0 0 0 / 50%)); }
.cursor.press svg { transform: scale(0.82); }

/* Compact window inside each step (mobile) */
.app-mini { height: 600px; border-radius: 14px; }
.app-mini .chat-col { padding: 14px 14px 6px; }
.app-mini .composer { margin: 4px 10px 10px; }
.app-mini .m-card { width: 92%; margin-left: 0; }
.app-mini .m-bot { max-width: 100%; }

@media (max-width: 1180px) { .app-side { display: none; } }
@media (max-width: 899px) { .step, .step[data-step] { min-height: 0; } .step-inner { position: static; padding: 0; } }
@media (max-width: 899px) {
  .story { max-width: 1480px; margin: 0 auto; padding: 200px 24px 0; display: grid; grid-template-columns: minmax(280px, 0.58fr) 1.6fr; gap: 56px; }
  .story-steps { padding: 10vh 0 30vh; }
  .story-stage { display: none; }
  .step { min-height: 95vh; opacity: 0.28; transition: opacity 0.6s var(--ease); }
.step[data-step="2"] { min-height: 160vh; }
.step[data-step="3"] { min-height: 260vh; }
.step-inner { position: sticky; top: calc(50vh - 140px); padding: 40px 0; }
  .step-frame { display: block; margin-top: 26px; }
}

/* ── Meet Hybrid: it introduces itself ──────────────── */
.meet { max-width: 1120px; margin: 0 auto; padding: 220px 24px 0; display: grid; grid-template-columns: 300px 1fr; gap: 72px; align-items: center; }
.meet-face-wrap { display: flex; flex-direction: column; align-items: center; gap: 22px; }
#meet-face { width: 220px; height: 220px; overflow: visible; filter: drop-shadow(0 10px 14px rgb(28 28 30 / 9%)); }
#meet-face .eyes { transition: transform 0.25s var(--ease); }
#meet-face .eyes.blink { transform: scaleY(0.1) !important; transform-box: fill-box; transform-origin: center; transition-duration: 0.08s; }
.mood-caption { display: flex; gap: 14px; font-size: 14px; }
.mood-caption button { background: none; border: 0; padding: 2px 0; font: inherit; color: var(--faint); cursor: pointer; transition: color 0.3s var(--ease); }
.mood-caption button.on { color: var(--ink); }
.meet-talk h2 { margin-bottom: 22px; }
.intro-bubble { position: relative; max-width: 620px; background: var(--bubble); border-radius: 24px 24px 24px 6px; padding: 22px 26px; font-size: 18.5px; line-height: 1.6; }
.intro-ghost { visibility: hidden; }
.intro-typed { position: absolute; inset: 22px 26px; }
.intro-typed.typing::after { content: ''; display: inline-block; width: 2px; height: 1.05em; background: var(--ink); margin-left: 2px; vertical-align: -3px; animation: caret 0.9s steps(1) infinite; }

/* ── Under the hood: a footnote ─────────────────────── */
.footnote { max-width: 1040px; margin: 0 auto; padding: 200px 24px 0; }
.footnote h3 { font-size: 15px; font-weight: 500; margin-bottom: 8px; }
.footnote p { max-width: 60ch; font-size: 15px; line-height: 1.7; color: var(--muted); }
.footnote a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; transition: text-decoration-color 0.2s; }
.footnote a:hover { text-decoration-color: var(--ink); }

@media (max-width: 899px) {
  .meet { grid-template-columns: 1fr; gap: 36px; padding-top: 160px; }
  #meet-face { width: 160px; height: 160px; }
  .intro-bubble { font-size: 16.5px; padding: 18px 20px; }
  .intro-typed { inset: 18px 20px; }
  .footnote { padding-top: 140px; }
  .cta { padding: 160px 16px 140px; }
}

/* ── Window v2: camera, status pill, stream ─────────── */
.app-cam { position: relative; display: flex; width: 100%; height: 100%; transform-origin: 0 0; transition: transform 0.65s cubic-bezier(0.65, 0, 0.35, 1); will-change: transform; }
.app-side, .app-head, .composer, .chat-col > * { transition: opacity 0.6s var(--ease); }
.app.dim .app-side, .app.dim .app-head, .app.dim .composer { opacity: 0.4; }
.app.dim .chat-col > :not(.focus):not(.status) { opacity: 0.32; }
.app.dim.streaming .chat-col > :not(.focus):not(.status) { opacity: 0; }

.status { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; height: 24px; padding: 0 10px 0 6px; border-radius: 12px 12px 12px 4px; background: rgb(255 255 255 / 6%); color: var(--a-muted); font-size: 11.5px; white-space: nowrap; margin-left: 28px; }
.status .face { width: 13px; height: 13px; }
.status[data-kind='waiting'] { color: var(--a-fg); }
.status[data-kind='working'] .s-face .eyes { animation: look 1.6s var(--ease) infinite; }
.status.gone { display: none; }
.s-text.swap { animation: swap 0.35s var(--ease); }
.s-face.hop { animation: hop 0.7s var(--ease); transform-origin: 50% 100%; }
.greet .status { margin: 0 0 14px; align-self: center; }
.greet .greet-face { width: 44px; height: 44px; margin-bottom: 6px; }

.stream { position: absolute; inset: 0; z-index: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 24px 10px; opacity: 0; transition: opacity 0.6s var(--ease); pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 80%, transparent), linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 80%, transparent), linear-gradient(to right, transparent, #000 12%, #000 88%, transparent); mask-composite: intersect; }
.app.streaming .stream { opacity: 0.3; }
.app.streaming.stream-forward .stream { opacity: 0.06; }
.stream-lines p, .live-lines p { font: 10.5px/1.62 var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--a-muted); }
.stream-lines p.cmd, .live-lines p.cmd { color: var(--a-fg); }
.chat-col { z-index: 1; }

/* The work card: calm on top of the noise */
.m-card { position: relative; }
.work .bar { position: absolute; top: -1px; left: 14px; right: 14px; height: 1px; background: var(--a-face); opacity: 0.7; transform: scaleX(0); transform-origin: left; transition: transform 0.2s linear; }
.work .row, .work .sum { opacity: 0; transform: translateY(5px); transition: opacity 0.35s var(--ease), transform 0.35s var(--ease); }
.work .row.in, .work .sum.in { opacity: 1; transform: none; }
.work .add, .work .del { font-variant-numeric: tabular-nums; }
.ck { display: inline-flex; align-items: center; gap: 4px; }
.tick { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tick path { stroke-dasharray: 12; stroke-dashoffset: 12; transition: stroke-dashoffset 0.4s var(--ease); }
.ck.passed .tick path { stroke-dashoffset: 0; }
.ck:not(.passed) .tick { display: none; }
.work-live { position: absolute; left: -1px; right: -1px; bottom: -1px; z-index: 2; display: flex; flex-direction: column; background: var(--a-card); border: 1px solid rgb(255 255 255 / 10%); border-radius: 16px; padding: 10px 12px; height: calc(100% + 150px); opacity: 0; transform: translateY(10px) scale(0.985); transform-origin: 50% 100%; pointer-events: none; transition: opacity 0.4s var(--ease), transform 0.5s var(--ease); box-shadow: 0 -20px 40px rgb(0 0 0 / 35%); }
.work.open .work-live { opacity: 1; transform: none; pointer-events: auto; }
.live-lines { flex: 1; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; margin: 8px 0 0; padding: 8px 10px; border-radius: 10px; background: var(--a-bg); border: 1px solid var(--a-border); }
.live-lines p { font-size: 11px; }
.c-plan li { opacity: 0; transform: translateX(-4px); transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); }
.c-plan li.in { opacity: 1; transform: none; }
.cursor.scrub { transition: transform 0.12s linear, opacity 0.3s; }

/* Mobile: just the element that matters, full width */
.focus-frame { position: relative; display: flex; flex-direction: column; gap: 12px; background: #0a0a0a; color: #f5f5f5; border-radius: 18px; padding: 18px 14px; font: 400 13.5px/1.55 var(--sans); overflow: hidden;
  --a-bg: #0a0a0a; --a-card: #121212; --a-border: rgb(255 255 255 / 6%); --a-input: rgb(255 255 255 / 8%); --a-fg: #f5f5f5; --a-muted: #8b8b8b; --a-faint: #5a5a5a; --a-accent: rgb(255 255 255 / 4%); --a-success: #34d399; --a-error: #f87171; --a-info: #60a5fa; --a-warn: #fbbf24; --a-face: #f4f4f1; --a-ink: #141416; }
.focus-frame .face { width: 18px; height: 18px; }
.focus-frame code { font: 11.5px var(--mono); background: var(--a-accent); color: var(--a-fg); }
.focus-frame .m-card { width: 100%; margin: 0; z-index: 1; }
.focus-frame .m-bot, .focus-frame .m-me { max-width: 100%; }
.focus-frame.with-stream { padding-top: 120px; }
.focus-frame.with-stream .stream { opacity: 0.3; padding: 0 10px; }
.focus-frame .work .row, .focus-frame .work .sum { opacity: 1; transform: none; }
.focus-frame .work-live { height: calc(100% + 110px); }
@media (max-width: 899px) {
  .step, .step[data-step] { min-height: 0 !important; opacity: 1 !important; }
  .step-inner { position: static !important; padding: 0 !important; }
  .focus-frame .work-live { position: static; display: none; height: auto; margin-top: 2px; padding: 0; border: 0; box-shadow: none; background: none; opacity: 1; transform: none; }
  .focus-frame .work-live > .c-title { display: none; }
  .focus-frame .work.open .work-live { display: flex; }
  .focus-frame .work.open > .files, .focus-frame .work.open > .checks, .focus-frame .work.open > .c-actions { display: none; }
  .focus-frame .live-lines { height: 190px; flex: none; }
}

/* ── Short hero ─────────────────────────────────────── */
.hero h1 { font-size: clamp(38px, 4.4vw, 58px); line-height: 1.05; margin: 22px 0 10px; }
.hero .sub { font-size: 19px; color: var(--muted); }
.hero .hero-actions { align-items: center; margin-top: 28px; gap: 18px; }
.btn .apple { width: 17px; height: 17px; margin: -2px 8px 0 -3px; }
.quiet-link { font-size: 15px; color: var(--muted); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; transition: color 0.2s, text-decoration-color 0.2s; }
.quiet-link:hover { color: var(--ink); text-decoration-color: var(--ink); }

/* ── Demo window ────────────────────────────────────── */
.demo { max-width: 1208px; margin: 0 auto; padding: 64px 24px 0; }
.demo .app { height: 700px; border-radius: 18px; box-shadow: 0 0 0 1px rgb(255 255 255 / 8%), 0 0 0 1px rgb(28 28 30 / 10%), 0 30px 70px rgb(10 10 12 / 18%); }
.demo .app-side { display: flex; }
.demo-foot { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 22px; }
.demo-caption { font-size: 15px; color: var(--muted); }
.demo-caption.swap { animation: swap 0.4s var(--ease); }
.demo-dots { display: flex; gap: 4px; }
.demo-dots button { width: 22px; height: 22px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.demo-dots button::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--line); transition: background 0.3s, transform 0.3s var(--ease); }
.demo-dots button.on::before { background: var(--ink); transform: scale(1.15); }
.app.paused, .app.paused * { animation-play-state: paused !important; }
.app .chat-col, .app .greet { transition: opacity 0.5s var(--ease), transform 0.55s var(--ease); }
.app.fading .chat-col, .app.fading .greet, .app.fading .stream { opacity: 0 !important; }

/* ── Launch film ────────────────────────────────────── */
.film { max-width: 1040px; margin: 0 auto; padding: 200px 24px 0; text-align: center; }
.film .note { font-size: 26px; }
.film .video-frame { margin-top: 26px; }
.film-line { margin-top: 22px; color: var(--muted); }

@media (max-width: 1180px) { .demo .app-side { display: none; } }
@media (max-width: 899px) {
  .hero { padding-top: 112px; }
  .hero .hero-actions { flex-direction: column; gap: 12px; }
  .demo { padding: 48px 12px 0; }
  .demo .app { height: 560px; border-radius: 14px; }
  .demo .chat-col { padding: 14px 14px 6px; }
  .demo .composer { margin: 4px 10px 10px; }
  .demo .m-card { width: 100%; margin-left: 0; }
  .demo .status { margin-left: 0; }
  .film { padding-top: 140px; }
}

/* ── Legal pages ────────────────────────────────────── */
.legal { max-width: 680px; margin: 0 auto; padding: 150px 24px 120px; }
.legal-date { font-size: 14px; color: var(--faint); }
.legal h1 { font-size: clamp(34px, 4vw, 46px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 600; margin: 8px 0 18px; }
.legal .lede { font-size: 19px; color: var(--ink); max-width: none; margin: 0 0 12px; }
.legal h2 { font-size: 19px; letter-spacing: -0.01em; margin: 44px 0 10px; }
.legal p, .legal li { color: var(--muted); font-size: 16px; line-height: 1.7; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 20px; margin: 10px 0; }
.legal a, .footer span a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.legal a:hover, .footer span a:hover { text-decoration-color: var(--ink); }
.footer span a { color: inherit; }

/* ── Centred nav links and footer ───────────────────── */
.nav { position: relative; }
.nav-center { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: 26px; font-size: 15px; color: var(--muted); }
.nav-center a:hover { color: var(--ink); }
.footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.foot-links { display: flex; gap: 22px; justify-self: center; }
.foot-links a { color: var(--muted); }
.foot-links a:hover, .foot-right:hover { color: var(--ink); }
.foot-right { justify-self: end; }
@media (max-width: 860px) { .nav-center { display: none; } }
@media (max-width: 700px) {
  .footer { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 10px; }
  .foot-links { order: -1; }
  .foot-right { justify-self: center; }
}
