/* Twocursor landing page. The page is a board: dot grid, frames, sticky notes, hand annotations.
   Dark is the brand default; light looks like paper. One display face (system sans, 800), one mono, Caveat for annotations. */
@font-face { font-family: "Caveat"; src: url("fonts/caveat-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --bg: #121214; --dot: rgba(255, 255, 255, .085); --ink: #efede6; --ink-2: #b9b7b0; --mute: #8a8984; --line: #34343b;
  --purple: #7c5cff; --purple-ink: #b3a1ff; --purple-soft: rgba(124, 92, 255, .13);
  --yellow: #f6d860; --yellow-ink: #2b2512; --pink: #f7c6d4;
  --board: #17171b; --board-2: #1f1f24; --board-line: #3a3a42; --board-text: #ececf1; --board-mute: #7d7f89; --sel: #6d8bff;
  --code-bg: #0d0d0f; --shadow: 0 1px 0 rgba(0, 0, 0, .5), 0 10px 30px rgba(0, 0, 0, .45);
  --me-fill: #f5f5f7; --me-stroke: #121214;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --hand: "Caveat", "Bradley Hand", "Segoe Print", cursive;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f1e8; --dot: rgba(40, 32, 10, .16); --ink: #19181c; --ink-2: #4a4843; --mute: #6b6962; --line: #d6d1c3;
    --purple: #6a48f5; --purple-ink: #5536d8; --purple-soft: rgba(106, 72, 245, .1);
    --yellow: #fae37c; --yellow-ink: #2b2512; --pink: #f9cfdb;
    --board: #fbfbfc; --board-2: #ffffff; --board-line: #d9dce1; --board-text: #1e1e24; --board-mute: #868e96; --sel: #4c6ef5;
    --code-bg: #fffdf7; --shadow: 0 1px 0 rgba(60, 50, 20, .08), 0 10px 30px rgba(60, 50, 20, .12);
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); font: 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden;
  background-color: var(--bg);
  background-image: radial-gradient(var(--dot) 1.1px, transparent 1.3px);
  background-size: 22px 22px; background-position: -11px -11px;
}
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; border-radius: 4px; }
code, kbd, pre { font-family: var(--mono); }
[hidden] { display: none !important; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 20; background: var(--purple); color: #fff; padding: 8px 12px; border-radius: 6px; }
.skip:focus { left: 8px; }

/* ---------- top ---------- */
.top { padding: 28px clamp(16px, 4vw, 56px) 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--purple); text-decoration: none; font: 700 21px/1 var(--sans); letter-spacing: -.03em; }
.brand b { color: var(--ink); font-weight: 700; }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 64px);
  padding: clamp(40px, 7vw, 96px) 0 0 clamp(16px, 4vw, 56px); align-items: start;
}
h1 { margin: 0 0 40px; font: 800 clamp(44px, 6vw, 88px)/.95 var(--sans); letter-spacing: -.045em; }
.install { display: flex; align-items: stretch; max-width: 520px; background: var(--code-bg); border: 1px solid var(--line); border-radius: 6px; }
.install code { flex: 1; min-width: 0; padding: 13px 14px; font-size: 13px; white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
.install code span { color: var(--mute); }
.copy { font: 600 12px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; padding: 0 16px; border-left: 1px solid var(--line); color: var(--ink-2); }
.copy:hover { color: var(--ink); background: var(--purple-soft); }
.copy.done { color: var(--purple-ink); }
.copy.link { border: 0; padding: 0; text-transform: none; letter-spacing: 0; font: 500 14px/1.4 var(--mono); color: var(--purple-ink); text-decoration: underline; text-decoration-style: wavy; text-decoration-thickness: 1px; text-underline-offset: 5px; background: none; }
.alt { margin: 14px 0 0; font: 14px/1.4 var(--mono); color: var(--mute); }
.fine { margin: 6px 0 0; font: 12px/1.5 var(--mono); color: var(--mute); }
.fine code { color: var(--ink-2); }
.fine.local { color: var(--ink-2); }

/* board figure */
.board-wrap { position: relative; margin: 56px 0 0; container-type: inline-size; }
.stage {
  position: relative; width: 100%; aspect-ratio: 760 / 470; font-size: calc(100cqw / 76); overflow: hidden;
  background: var(--board) radial-gradient(color-mix(in srgb, var(--board-text) 13%, transparent) .1em, transparent .12em) 0 0 / 2.2em 2.2em;
  border: 1px solid var(--board-line); border-right: 0; border-radius: .9em 0 0 .9em; box-shadow: var(--shadow); color: var(--board-text);
  font-family: var(--sans); transition: opacity .5s;
}
.stage.fade > * { opacity: 0 !important; transition: opacity .5s !important; }
.pause { position: absolute; left: 0; bottom: -30px; font: 12px var(--mono); color: var(--mute); padding: 4px 0; }
.pause:hover { color: var(--ink); }

.anno { position: absolute; z-index: 2; pointer-events: none; overflow: visible; }
.anno text { font: 600 30px var(--hand); fill: var(--ink-2); }
.anno path { fill: none; stroke: var(--ink-2); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.anno-you { width: 120px; left: -100px; top: 16%; }
.anno-agent { width: 170px; right: 6%; top: -64px; }
.anno-agent text { fill: var(--purple-ink); }
.anno-agent path { stroke: var(--purple-ink); }

/* app chrome */
.tb { position: absolute; left: 1.2em; top: 11em; width: 3em; padding: .6em 0; display: grid; gap: .7em; justify-items: center; background: var(--board-2); border-radius: .8em; box-shadow: 0 0 0 1px var(--board-line); }
.tb i { width: 1.4em; height: 1.4em; border-radius: .35em; border: .15em solid var(--board-mute); opacity: .7; }
.tb i.on { border-color: var(--sel); background: color-mix(in srgb, var(--sel) 25%, transparent); opacity: 1; }
.tb i:nth-child(3) { border-radius: 50%; }
.mode { position: absolute; right: 1.4em; top: 1.4em; display: flex; padding: .3em; gap: .2em; background: var(--board-2); border-radius: .7em; box-shadow: 0 0 0 1px var(--board-line); font-size: 1.2em; }
.mode span { padding: .3em .7em; border-radius: .45em; color: var(--board-mute); }
.mode .on { color: var(--purple-ink); background: var(--purple-soft); box-shadow: 0 0 0 1px color-mix(in srgb, var(--purple) 45%, transparent); }

.fl { position: absolute; left: 0; top: -1.8em; font-size: 1.25em; color: var(--board-mute); white-space: nowrap; }
.fr { position: absolute; border: .1em solid var(--board-line); border-radius: .3em; }
.fr-a { left: 8em; top: 7em; width: 25em; height: 16em; display: flex; gap: 1.4em; padding: 1.6em 1.6em; }
.fr-a .fl { top: -2.1em; }
.scr { flex: 1; border-radius: .6em; background: var(--board-2); box-shadow: 0 0 0 .1em var(--board-line); padding: 1em .8em; display: flex; flex-direction: column; gap: .6em; position: relative; }
.scr i { display: block; height: .6em; width: 100%; border-radius: .3em; background: var(--board-line); }
.scr i.w6 { width: 60%; } .scr i.w4 { width: 40%; }
.scr b { position: absolute; left: .8em; right: .8em; bottom: 1em; height: 1.8em; border-radius: .4em; background: color-mix(in srgb, var(--board-text) 80%, transparent); }
.scr .tick { width: 3em; height: 3em; border-radius: 50%; border: .25em solid var(--board-line); margin: .6em auto 0; }

.note { position: absolute; background: var(--yellow); color: var(--yellow-ink); box-shadow: 0 .2em .6em rgba(0, 0, 0, .25); font: 1.25em/1.35 var(--mono); padding: .7em .8em; }
.n-drop { left: 35.4em; top: 7.6em; width: 10.6em; height: 9em; font-size: 1.15em; rotate: -1.5deg; transform: scale(.3); opacity: 0; transition: transform .35s cubic-bezier(.3, 1.6, .5, 1), opacity .2s; }
.sel { position: absolute; left: 6.4em; top: 4.4em; width: 43.6em; height: 20.6em; border: .12em solid var(--sel); background: color-mix(in srgb, var(--sel) 8%, transparent); border-radius: .2em; transform-origin: 0 0; transform: scale(0); opacity: 0; transition: transform .8s cubic-bezier(.45, 0, .3, 1), opacity .15s; }

/* ghosts: what the agent proposes, as in the app (dashed purple, half opacity) */
.gh { position: absolute; border: .15em dashed var(--purple); background: var(--purple-soft); border-radius: .4em; opacity: 0; transform: translateY(.6em); transition: opacity .35s, transform .35s, border-color .3s, background .3s; }
.gh .fl { color: var(--purple-ink); }
.gh-flow { left: 8em; top: 28em; width: 30em; height: 8.6em; padding: .8em 0; }
.gh-flow svg { width: 100%; height: 100%; }
.gh-flow .nd rect { fill: var(--board-2); stroke: var(--board-mute); stroke-width: 1.2; }
.gh-flow .ar path { fill: none; stroke: var(--board-mute); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.gh-flow .tx text { font: 11px var(--sans); fill: var(--board-text); text-anchor: middle; }
.gh-ask { left: 53.4em; top: 7em; width: 19.5em; padding: 1.2em 1.3em 1.4em; display: flex; flex-direction: column; gap: .6em; font-size: 1em; }
.gh-ask .qk { font: 600 1em var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--purple-ink); }
.gh-ask p { margin: 0 0 .2em; font-size: 1.45em; font-weight: 600; }
.gh-ask .opt { font-size: 1.25em; padding: .4em .6em .4em 2em; border-radius: .4em; background: var(--board-2); box-shadow: 0 0 0 .08em var(--board-line); position: relative; }
.gh-ask .opt::before { content: ""; position: absolute; left: .65em; top: 50%; width: .8em; height: .8em; margin-top: -.4em; border-radius: 50%; border: .12em solid var(--board-mute); }
.gh-ask .opt.on::before { border-color: var(--purple); background: radial-gradient(var(--purple) 40%, transparent 46%); }
.gh-tbl { left: 42em; top: 28em; width: 22em; padding: 1em; }
.tbl { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5em .8em; font: 1.2em var(--mono); }
.tbl b { font-weight: 600; color: var(--board-mute); }
.tbl i { height: .55em; border-radius: .3em; background: var(--board-line); margin: .35em 0; }

.pend { position: absolute; left: 50%; top: 1.15em; translate: -50% 0; display: flex; align-items: center; gap: .9em; padding: .5em .6em .5em 1.1em; font-size: 1.25em; background: var(--board-2); border-radius: .7em; box-shadow: 0 0 0 1px var(--board-line), 0 .4em 1.2em rgba(0, 0, 0, .3); opacity: 0; transform: translateY(.6em); transition: opacity .3s, transform .3s; white-space: nowrap; }
.pend .acc { background: var(--purple); color: #fff; padding: .35em .8em; border-radius: .45em; font-weight: 600; transition: filter .15s, transform .1s; }
.pend .rej { color: var(--board-mute); padding-right: .4em; }
.receipt { position: absolute; left: 50%; top: 1.2em; translate: -50% 0; font: 1.25em var(--mono); padding: .55em .9em; border-radius: .6em; background: var(--board-2); box-shadow: 0 0 0 1px color-mix(in srgb, var(--purple) 50%, transparent); color: var(--purple-ink); opacity: 0; transition: opacity .3s; white-space: nowrap; }
.receipt::before { content: "accepted 3 \2192  "; color: var(--board-mute); }

.ask { position: absolute; left: 50%; bottom: 2em; translate: -50% 0; width: 27em; height: 3.8em; display: flex; align-items: center; gap: .8em; padding: 0 .9em 0 1.2em; border-radius: 1.9em; background: var(--board-2); box-shadow: 0 0 0 .12em color-mix(in srgb, var(--purple) 55%, transparent); font-size: 1.2em; transition: box-shadow .2s; }
.ask .spark { width: .9em; height: .9em; rotate: 45deg; background: var(--purple); border-radius: .15em; }
.ask .ph { color: var(--board-mute); }
.ask .typed { display: none; overflow: hidden; white-space: nowrap; width: 0; font-family: var(--mono); }
.ask kbd { margin-left: auto; font-size: .9em; padding: .1em .45em; border-radius: .3em; background: color-mix(in srgb, var(--board-text) 10%, transparent); color: var(--board-mute); }

.cur { position: absolute; left: 0; top: 0; z-index: 5; width: 1.7em; transition: transform .9s cubic-bezier(.5, 0, .2, 1); will-change: transform; }
.cur svg { width: 1.7em; height: 2.5em; overflow: visible; }
.cur-me svg { fill: var(--me-fill); stroke: var(--me-stroke); }
.cur-ag svg { fill: var(--purple); stroke: #fff; }
.cur-ag span { position: absolute; left: 1.5em; top: 2.2em; font: 600 1.15em/1 var(--sans); color: #fff; background: var(--purple); padding: .3em .55em; border-radius: .4em; white-space: nowrap; }
.cur-me { transform: translate(70em, 44em); }
.cur-ag { transform: translate(78em, -4em); }
.cur.click svg { animation: clk .25s; }
@keyframes clk { 50% { transform: scale(.82); } }

/* timeline states: classes s1..s9 are added cumulatively by main.js */
.s2 .n-drop { transform: none; opacity: 1; }
.s3 .sel { opacity: 1; transform: scale(.02); }
.s4 .sel { transform: none; }
.s5 .sel { opacity: 0; transition: opacity .4s; }
.s5 .ask { box-shadow: 0 0 0 .18em var(--purple); }
.s5 .ask .ph { display: none; }
.s5 .ask .typed { display: block; animation: type 1s steps(14) forwards; }
@keyframes type { to { width: 14ch; } }
.s6 .ask .typed { display: none; }
.s6 .ask .ph { display: inline; }
.s6 .ask { box-shadow: 0 0 0 .12em color-mix(in srgb, var(--purple) 55%, transparent); }
.s7a .gh-flow, .s7b .gh-ask, .s7c .gh-tbl { opacity: .62; transform: none; }
.s8 .pend { opacity: 1; transform: none; }
.s9 .pend .acc { filter: brightness(1.2); transform: scale(.94); }
.s9 .pend { opacity: 0; transition-delay: .25s; }
.s9 .gh { opacity: 1; border-style: solid; border-color: var(--board-line); background: var(--board-2); transform: none; }
.s9 .gh .fl { color: var(--board-mute); }
.s9 .receipt { opacity: 1; transition-delay: .45s; }

/* ---------- taste sticky ---------- */
.taste { display: flex; justify-content: flex-end; padding: 96px clamp(16px, 9vw, 160px) 0; }
.sticky { margin: 0; background: var(--yellow); color: var(--yellow-ink); font: 600 30px/1.12 var(--hand); padding: 26px 28px 34px; box-shadow: 0 2px 0 rgba(0, 0, 0, .12), 0 18px 30px -12px rgba(0, 0, 0, .45); }
.sticky.big { width: min(330px, 100%); rotate: 2.2deg; }

/* ---------- visual sections ---------- */
.v { position: relative; padding: 120px clamp(16px, 4vw, 56px) 0; max-width: 1340px; margin: 0 auto; }
.frame-l { font: 14px var(--sans); color: var(--mute); margin: 0 0 10px; }
.cap { margin: 22px 0 0; font: 600 clamp(28px, 3vw, 38px)/1.1 var(--hand); color: var(--ink); max-width: 22ch; }

/* 1: chat vs board */
.v1 .pair { display: grid; grid-template-columns: minmax(0, 4fr) 90px minmax(0, 7fr); align-items: center; gap: 12px; }
.chat { display: grid; gap: 14px; padding: 26px 0; position: relative; }
.side-l { position: absolute; top: -8px; left: 8%; font: 12px var(--sans); color: var(--mute); }
.mb > .side-l { left: 0; top: -24px; }
.bub { justify-self: end; width: 92%; padding: 18px 20px; border-radius: 16px 16px 4px 16px; background: color-mix(in srgb, var(--ink) 8%, transparent); display: flex; flex-wrap: wrap; gap: 9px 6px; }
.bub i { display: block; height: 8px; border-radius: 4px; background: color-mix(in srgb, var(--ink) 22%, transparent); }
.bub em { font: 600 22px/8px var(--hand); color: var(--purple-ink); font-style: normal; padding: 0 2px; white-space: nowrap; }
.bub.them { justify-self: start; width: 64%; border-radius: 16px 16px 16px 4px; background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.bub.them i { background: color-mix(in srgb, var(--ink) 13%, transparent); }
.arrow-mid path, .g-x path { fill: none; stroke: var(--ink-2); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.mb { position: relative; display: grid; grid-template-columns: 1fr 1fr 1fr; grid-template-areas: "brand flow ask" "tbl tbl ask"; gap: 44px 26px; padding: 44px 30px 30px; border: 1px solid var(--line); border-radius: 6px; background: color-mix(in srgb, var(--board) 70%, transparent); }
.m-fr { position: relative; border: 1px solid var(--board-line); border-radius: 4px; padding: 14px; min-height: 110px; }
.m-fr > span { position: absolute; left: 0; top: -22px; font: 12px var(--sans); color: var(--board-mute); }
.sw { display: flex; gap: 6px; }
.sw i { width: 30px; height: 30px; border-radius: 4px; background: #1d3557; }
.sw i:nth-child(2) { background: #457b9d; } .sw i:nth-child(3) { background: #a8dadc; } .sw .warm { background: #e76f51; }
.mn { margin-top: 12px; background: var(--yellow); color: var(--yellow-ink); font: 11px/1.3 var(--mono); padding: 7px 8px; width: max-content; max-width: 100%; rotate: -1deg; }
.mn.pink { position: absolute; right: 28px; bottom: -16px; margin: 0; background: var(--pink); rotate: 2deg; }
.m-brand { grid-area: brand; } .m-flow { grid-area: flow; } .m-ask { grid-area: ask; align-self: start; }
.m-flow svg { width: 100%; height: auto; }
.m-flow .nd > * { fill: var(--board-2); stroke: var(--board-mute); stroke-width: 1.1; }
.m-flow .ar path { fill: none; stroke: var(--board-mute); stroke-width: 1.2; }
.g { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px 8px; }
.g b, .g i { height: 6px; border-radius: 3px; background: var(--board-line); }
.g b { background: var(--board-mute); }
.m-tbl { grid-area: tbl; }
.m-ask { border: 1.5px dashed var(--purple); background: var(--purple-soft); }
.m-ask > span { color: var(--purple-ink); }
.m-ask p { margin: 0 0 8px; font: 600 13px var(--sans); color: var(--board-text); }
.m-ask em { display: block; height: 14px; margin-top: 6px; border-radius: 3px; box-shadow: 0 0 0 1px var(--board-line); background: var(--board-2); position: relative; }
.m-ask em.on::before { content: ""; position: absolute; left: 4px; top: 3px; width: 8px; height: 8px; border-radius: 50%; background: var(--purple); }
.v1 .cap { margin-left: auto; text-align: right; rotate: -1deg; }

/* 2: tokens, heights to scale (272 / 1286 = 21%) */
.v2 { padding-left: clamp(16px, 12vw, 200px); }
.tok { display: flex; align-items: flex-end; gap: clamp(24px, 6vw, 90px); }
.col { margin: 0; position: relative; }
.stack { margin: 0; height: 520px; width: min(440px, 52vw); overflow: hidden; font-size: 9.5px; line-height: 1.45; white-space: pre-wrap; word-break: break-all; color: var(--ink-2); background: var(--code-bg); border: 1px solid var(--line); border-radius: 4px; padding: 12px 14px; -webkit-mask-image: linear-gradient(#000 80%, transparent); mask-image: linear-gradient(#000 80%, transparent); }
.stack.read { height: 110px; width: min(330px, 40vw); -webkit-mask-image: none; mask-image: none; white-space: pre; word-break: normal; border-color: color-mix(in srgb, var(--purple) 55%, transparent); color: var(--ink); }
.stack .h { color: var(--mute); } .stack .id { color: var(--purple-ink); }
.col figcaption { margin-top: 10px; font: 13px var(--mono); color: var(--mute); }
.col figcaption b { display: block; font: 600 64px/1 var(--hand); color: var(--ink); margin-bottom: 2px; }
.slim figcaption b { color: var(--purple-ink); }

/* 3: ghosts and the guard */
.v3 { display: flex; flex-direction: column; align-items: flex-end; }
.gd { position: relative; width: min(720px, 100%); height: 360px; }
.g-mine { position: absolute; left: 4%; top: 40px; width: 190px; height: 150px; background: var(--yellow); color: var(--yellow-ink); font: 13px/1.4 var(--mono); padding: 14px; rotate: -2deg; box-shadow: 0 10px 22px -10px rgba(0, 0, 0, .5); z-index: 1; }
.g-try { position: absolute; left: calc(4% + 120px); top: 120px; width: 190px; height: 150px; border: 1.5px dashed var(--purple); rotate: 6deg; opacity: .55; }
.g-x { position: absolute; left: calc(4% + 196px); top: 176px; width: 40px; z-index: 2; }
.g-x path { stroke: #ff6b6b; stroke-width: 3.4; }
.g-ref { position: absolute; left: calc(4% + 244px); top: 186px; font: 600 24px var(--hand); color: #ff8787; rotate: -3deg; }
.g-ghost { position: absolute; right: 2%; top: 10px; width: 230px; padding: 16px 18px; border: 1.5px dashed var(--purple); background: var(--purple-soft); border-radius: 5px; display: grid; gap: 6px; font: 13px var(--mono); color: var(--ink-2); }
.g-ghost b { font: 600 15px var(--sans); color: var(--ink); margin-bottom: 4px; }
.cur.still { font-size: 10px; left: auto; right: -34px; top: auto; bottom: -46px; transform: none; transition: none; }
.g-keys { position: absolute; right: 2%; top: 196px; font: 12px var(--mono); color: var(--mute); }
.g-keys kbd { font-size: 11px; padding: 2px 6px; border-radius: 4px; border: 1px solid var(--line); color: var(--ink-2); }
.g-rc { position: absolute; right: 2%; bottom: 20px; font-size: 13px; padding: 10px 14px; border-radius: 4px; background: var(--code-bg); border: 1px solid var(--line); color: var(--purple-ink); }
.v3 .cap { align-self: flex-start; margin-left: 6%; rotate: 1.2deg; }

/* 4: demo */
.v4 { padding-right: clamp(16px, 10vw, 180px); }
.demo { margin: 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #151518; aspect-ratio: 16 / 10; box-shadow: var(--shadow); }
.demo video, .demo img { width: 100%; height: 100%; object-fit: cover; }

/* numbers, faq, footer */
.nums { margin: 120px auto 0; padding: 0 clamp(16px, 4vw, 56px); max-width: 1340px; display: flex; flex-wrap: wrap; gap: 6px 28px; font: 13px/1.6 var(--mono); color: var(--mute); }
.nums span + span::before { content: "/"; margin-right: 28px; color: var(--line); }
.faq { max-width: 1340px; margin: 72px auto 0; padding: 0 clamp(16px, 4vw, 56px); }
.faq dl { margin: 0; display: grid; align-items: start; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 64px; max-width: 820px; }
.faq dt { font-weight: 700; letter-spacing: -.01em; }
.faq dd { margin: 4px 0 0; color: var(--ink-2); font-size: 15px; }
.foot { padding: 96px clamp(16px, 4vw, 56px) 40px; display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: baseline; justify-content: space-between; }
.foot p { margin: 0; font: 12px var(--mono); color: var(--mute); }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; font: 12px var(--mono); }
.foot nav a { color: var(--ink-2); text-decoration: none; }
.foot nav a:hover, .foot nav a[aria-current] { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- legal pages: terms, privacy, report ---------- */
.doc { max-width: 720px; padding: clamp(40px, 6vw, 80px) clamp(16px, 4vw, 56px) 0; }
.doc h1 { font-size: clamp(38px, 5vw, 60px); margin-bottom: 18px; }
.doc .meta { margin: 0 0 28px; font: 12px/1.5 var(--mono); color: var(--mute); }
.doc .draft { margin: 0 0 40px; max-width: 520px; background: var(--yellow); color: var(--yellow-ink); font: 600 24px/1.15 var(--hand); padding: 16px 20px 20px; rotate: -1deg; box-shadow: 0 2px 0 rgba(0, 0, 0, .12), 0 14px 26px -12px rgba(0, 0, 0, .45); }
.doc h2 { margin: 48px 0 10px; font: 700 21px/1.25 var(--sans); letter-spacing: -.02em; scroll-margin-top: 24px; }
.doc h3 { margin: 28px 0 6px; font: 700 16px/1.3 var(--sans); }
.doc p, .doc li { color: var(--ink-2); font-size: 16px; line-height: 1.65; }
.doc p { margin: 0 0 14px; }
.doc ul, .doc ol { margin: 0 0 14px; padding-left: 22px; }
.doc li { margin: 4px 0; }
.doc strong { color: var(--ink); }
.doc a { color: var(--purple-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.doc code { font-size: 14px; color: var(--ink); background: var(--code-bg); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; }
.doc .tbl-wrap { overflow-x: auto; margin: 0 0 18px; border: 1px solid var(--line); border-radius: 6px; background: var(--code-bg); }
.doc table { border-collapse: collapse; width: 100%; font-size: 14px; line-height: 1.5; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.doc th { color: var(--ink); font-weight: 700; }
.doc tr:last-child td { border-bottom: 0; }
.doc .callout { border: 1.5px dashed var(--purple); background: var(--purple-soft); border-radius: 6px; padding: 16px 18px; margin: 0 0 18px; }
.doc .callout p:last-child { margin-bottom: 0; }
.doc .callout.stop { border-color: #ff6b6b; background: rgba(255, 107, 107, .1); }
.doc .btn { display: inline-block; font: 600 13px/1 var(--mono); padding: 12px 16px; border-radius: 6px; background: var(--purple); color: #fff; text-decoration: none; }
.doc .btn:hover { filter: brightness(1.1); }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-right: 0; }
  .hero-copy { padding-right: 16px; }
  .board-wrap { margin-top: 64px; }
  .anno-you { display: none; }
  .anno-agent { right: auto; left: 30%; top: -58px; width: 140px; }
  .v1 .pair { grid-template-columns: 1fr; }
  .arrow-mid { width: 60px; rotate: 90deg; justify-self: center; }
  .chat { padding: 0; }
  .v2 { padding-left: 16px; }
  .gd { height: 470px; }
  .g-ghost { top: 260px; right: auto; left: 4%; }
  .cur.still { right: -26px; }
  .g-keys { top: auto; bottom: 64px; right: auto; left: 4%; display: none; }
  .g-rc { bottom: -40px; left: 4%; right: auto; }
  .v3 .cap { margin-top: 64px; }
  .faq dl { grid-template-columns: 1fr; }
  .taste { padding-top: 72px; justify-content: center; }
}
@media (max-width: 560px) {
  .mb { grid-template-columns: 1fr 1fr; padding: 40px 16px 26px; gap: 40px 16px; }
  .mb { grid-template-areas: "brand flow" "tbl tbl" "ask ask"; }
  .tok { gap: 18px; }
  .stack { height: 360px; width: 54vw; font-size: 8px; }
  .stack.read { height: 76px; width: 33vw; font-size: 8px; overflow: hidden; }
  .col figcaption b { font-size: 46px; }
  .g-try { left: calc(4% + 70px); }
  .g-x { left: calc(4% + 140px); }
  .g-ref { left: calc(4% + 120px); top: 236px; }
  .nums span + span::before { display: none; }
  .nums { flex-direction: column; }
  .v { padding-top: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .pause { display: none; }
}
