/* DualWhisper landing page.

   The app's own palette and vocabulary: paper and ink, one green for the
   words you can change, red only where something is recording. Two faces:
   Bricolage Grotesque carries the headlines; Atkinson Hyperlegible, the
   app's own body face, carries everything else; JetBrains Mono for code.
   Every window wears macOS-style dots. Light surfaces sit flat on the page
   with a hairline; only dark windows carry a shadow. */

:root {
  --paper: #fcfcfa;
  --paper-2: #f3f3ef;
  --ink: #14161b;
  --ink-2: #1d1d1f;
  --text: #1b2436;
  --dim: #465163;
  --faint: #8a93a3;
  --line: rgba(27, 36, 54, 0.12);
  --line-2: rgba(27, 36, 54, 0.18);
  --green: #0e6b47;
  --green-soft: #dff3e8;
  --mint: #5fd3a0;
  --rec: #e5484d;
  --display: "Bricolage Grotesque", "Segoe UI Variable Display", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  --col: 1160px;
  --dark-shadow: 0 1px 2px rgba(0,0,0,0.35), 0 16px 40px -20px rgba(0,0,0,0.5);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--text); font: 18px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2 { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.04; margin: 0; }
h1 { font-size: clamp(36px, 4vw, 54px); font-variation-settings: "opsz" 96; }
h1 br { display: block; }
@media (max-width: 560px) { h1 br { display: none; } }
h2 { font-size: clamp(30px, 3.4vw, 44px); font-variation-settings: "opsz" 48; }
p { margin: 0; }
p + p { margin-top: 1em; }
.lede { font-size: 21px; line-height: 1.55; color: var(--dim); }
.lede.narrow { max-width: 680px; }
.fine { font-size: 15px; color: var(--faint); }
kbd {
  display: inline-block; min-width: 1.6em; margin: 0 1px; padding: 0.05em 0.45em; border-radius: 6px;
  border: 1px solid var(--line); border-bottom-width: 2px; background: #fff; color: var(--text);
  font: 700 0.82em/1.5 var(--body); vertical-align: 0.06em;
}
.ink kbd { background: #2a2c33; border-color: rgba(255,255,255,0.18); color: #fff; }
code { font: 500 0.9em/1 var(--mono); background: var(--paper-2); padding: 0.15em 0.4em; border-radius: 6px; }
.ink code { background: rgba(255,255,255,0.1); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }

.dots { display: inline-flex; gap: 7px; flex: none; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 0.5px rgba(0,0,0,0.12); }
.dots i:nth-child(2) { background: #febc2e; }
.dots i:nth-child(3) { background: #28c840; }

/* ------------------------------------------------------------ buttons -- */
.btn {
  white-space: nowrap; display: inline-flex; align-items: center; height: 52px; padding: 0 24px; border-radius: 999px;
  background: var(--ink); color: #fff; text-decoration: none; font-weight: 700; font-size: 17px;
  transition: transform 120ms ease, background 120ms ease;
}
.btn:hover { background: #000; transform: translateY(-1px); }
.btn.small { height: 38px; padding: 0 16px; font-size: 14.5px; }
.link { color: var(--text); font-weight: 700; text-decoration: none; padding-bottom: 1px; }
.hero h1 span { display: block; }
@media (min-width: 900px) { .hero h1 span { white-space: nowrap; } .hero h1 { font-size: clamp(34px, 3.6vw, 50px); } }
.hero h1 span + span { margin-top: 14px; }
.hero h1 u { text-decoration: underline; text-decoration-color: var(--green); text-decoration-thickness: 4px; text-underline-offset: 7px; }
.link:hover { color: var(--green); }
.soon { color: var(--faint); font-weight: 600; }
.cta { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; margin-top: 32px; }

/* ---------------------------------------------------------------- top -- */
body { padding-top: 82px; }
.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40; box-sizing: border-box; height: 82px;
  max-width: none; margin: 0; padding: 0 calc((100% - var(--col)) / 2 + 24px); display: flex; align-items: center; gap: 24px;
  background: var(--paper);
}
.top.compact {
  top: 12px; left: 50%; right: auto; transform: translateX(-50%); height: 52px; padding: 0 6px 0 16px; gap: 18px; border-radius: 999px;
  background: var(--ink); color: #fff; border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 1px 2px rgba(0,0,0,0.4), 0 14px 32px -12px rgba(0,0,0,0.5);
  animation: nav-in 320ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes nav-in { from { opacity: 0; transform: translateX(-50%) translateY(-10px); } }
.top.compact .brand span { display: none; }
.top.compact .brand img { width: 24px; height: 24px; }
.top.compact .topnav { margin-left: 0; gap: 18px; font-size: 14.5px; }
.top.compact .topnav a:not(.btn) { color: rgba(255,255,255,0.62); }
.top.compact .topnav a:not(.btn):hover { color: #fff; }
.top.compact .btn.small { background: #fff; color: var(--ink); height: 40px; }
.nav-dl img { width: 16px; height: 16px; margin-right: 7px; border-radius: 4px; flex: none; }
.top.compact .nav-dl { padding: 0 15px 0 12px; }
.top:not(.compact) .nav-dl img { display: none; }
@media (max-width: 700px) { .top.compact { display: none; } }
.top.compact { padding: 0 8px 0 16px; max-width: calc(100vw - 24px); box-sizing: border-box; }
@media (max-width: 1000px) { .top.compact .nav-dl { display: none; } .top.compact { padding: 0 18px 0 16px; } }
@media (max-width: 1100px) {
  .top.compact .topnav a[data-short] { font-size: 0; white-space: nowrap; }
  .top.compact .topnav a[data-short]::after { content: attr(data-short); font-size: 14px; }
}
.top.compact .topnav a { white-space: nowrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 18px; }
.brand img { border-radius: 8px; }
.topnav { margin-left: auto; display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 600; }
.topnav a:not(.btn) { color: var(--dim); text-decoration: none; }
.topnav a:not(.btn):hover { color: var(--text); }
@media (max-width: 760px) { .topnav a:not(.btn) { display: none; } }

/* --------------------------------------------------------------- hero -- */
.hero { min-height: min(calc(100vh - 82px), 920px); display: flex; flex-direction: column; }
html { scroll-padding-top: 82px; }
.hero-grid {
  flex: 1; width: 100%; max-width: var(--col); margin: 0 auto; padding: 32px 24px 56px;
  display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.12fr); gap: 48px; align-items: center;
}
.hero .lede { margin-top: 26px; max-width: 640px; }
.hero .lede span { display: block; }
@media (min-width: 900px) { .hero .lede span { white-space: nowrap; } }
.hero .fine { margin-top: 20px; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1fr); padding-top: 16px; } .hero { min-height: 0; } }

/* The desk: the Claude Code window, with the bar and the transport over it. */
.desk { position: relative; padding: 24px 0 70px; }
.cc { background: #0c0c0e; color: #d6d8de; border: 1px solid #27272b; border-radius: 14px; box-shadow: var(--dark-shadow); overflow: hidden; height: 440px; display: flex; flex-direction: column; }
.cc .cc-bar { background: #121214; border-color: #27272b; height: 41px; box-sizing: border-box; flex: none; flex-wrap: nowrap; }
.cc .cc-bar img { border-radius: 4px; }
.cc-in-wrap { flex: 1; min-width: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.cc-in { display: inline; }
.cc .cc-prompt.done { border-left: 2px solid var(--mint); padding-left: 10px; color: #e8e8ea; font-family: var(--body); font-size: 14px; }
.cc .cc-prompt.done .cc-ps { display: none; }
.cc .cc-reply { border-left-color: #27272b; }
.cc .cc-diff { background: #141416 !important; border-color: #27272b; }
.cc-flow { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 14px 18px 12px; }
.cc-scroll { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.cc-scroll > * { flex: none; }
.cc-input { flex: none; display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding: 9px 12px; border: 1px solid #333338; border-radius: 8px; background: #111113; font-family: var(--mono); font-size: 13.5px; line-height: 1.6; color: #fff; min-height: 3.2em; box-sizing: border-box; }
.cc-input .caret { vertical-align: -0.2em; }
.cc-think { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; color: #8b8d96; font-size: 13px; }
.cc-think i { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); animation: pulse 1s ease-in-out infinite; }
.cc-think[hidden], .cc-reply[hidden], .cc-prompt[hidden], .cc-code[hidden], #cc-code[hidden] { display: none; }
.cc-phase { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,0.08); color: #d6d8de; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.cc-phase[hidden] { display: none; }
.cc-phase i { width: 7px; height: 7px; border-radius: 50%; background: var(--rec); }
.cc-phase[data-kind="read"] i { background: var(--mint); }
.cc-phase b { font-weight: 600; }
.cc .cc-diff { position: relative; }
.transport.hero-rt { bottom: 8px; transition: opacity 300ms ease, transform 300ms ease; }
.transport[data-state="off"] { opacity: 0; transform: translateX(-50%) translateY(8px); pointer-events: none; }
@keyframes pulse { 50% { opacity: 0.35; } }
.cc-bar, .win-bar, .ide-bar, .term-bar { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-bottom: 1px solid #2c2d33; background: #1e1f24; font-size: 12.5px; color: #8b8d96; }
.cc-bar em, .win-bar em, .ide-bar em, .term-bar em { font-style: normal; }
.cc-body { padding: 16px 18px 22px; font: 400 14px/1.7 var(--body); }
.cc-prompt { display: flex; gap: 10px; align-items: baseline; font-family: var(--mono); font-size: 13.5px; color: #fff; min-height: 1.7em; }
.cc-prompt.done { color: #b9bcc6; }
.cc-ps { color: var(--mint); font-weight: 600; }
.cc-in.raw { color: #8b8d96; }
.cc-in .tok.new { color: #7bd88f; background: rgba(123, 216, 143, 0.14); }
.cc-reply { margin-top: 14px; padding-left: 14px; border-left: 2px solid #2c2d33; transition: opacity 400ms ease; }
.cc-reply.dim { opacity: 0.28; }
.cc .read-body { color: #b9bcc6; font-size: 14px; }
.cc .read-body .said { color: #eef1f6; }
.cc .read-body .now { color: #7bd88f; background: rgba(123, 216, 143, 0.14); }
.cc-diff { background: #101115 !important; }
.cc-diff .del { color: #e06c75; }
.cc-diff .add { color: #7bd88f; }
.caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 1px; vertical-align: -0.2em; background: var(--mint); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.raw { color: var(--faint); }
.tidy { color: inherit; }
.tok { display: inline-block; transition: color 200ms ease, background 300ms ease, opacity 250ms ease, max-width 320ms ease; max-width: 14em; overflow: hidden; vertical-align: bottom; white-space: pre; border-radius: 4px; }
.tok.gone { opacity: 0; max-width: 0; }
.sp.gone { display: none; }
.caret[hidden] { display: none; }
.tok.new { color: var(--green); background: var(--green-soft); }

/* The bar. */
.pill {
  position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%);
  width: min(400px, 100% - 24px);
  background: var(--ink-2); color: #fff; border: 1px solid rgba(255,255,255,0.22); border-radius: 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.4), 0 8px 22px -8px rgba(0,0,0,0.4);
  padding: 12px 16px 10px; font-size: 13.5px; line-height: 1.45;
  transition: opacity 300ms ease, transform 300ms ease;
}
.pill[data-state="off"] { opacity: 0; transform: translateX(-50%) translateY(8px) scale(0.96); }
.pill-text { min-height: 1.45em; max-height: 2.9em; overflow: hidden; margin-bottom: 8px; scroll-behavior: smooth; }
.pill-text:empty { min-height: 0; margin: 0; }
.pill-text .soft { opacity: 0.55; }
.pill-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: 10px; }
.pill-app { width: 20px; height: 20px; border-radius: 6px; background: #fff; display: grid; place-items: center; }
.pill-app svg { width: 13px; height: 13px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; }
.pill-app img { width: 12px; height: 12px; }
.pill-app.app-tile { background: none; }
.pill-app.app-tile img { width: 20px; height: 20px; border-radius: 6px; }
.pill-row { min-height: 20px; }
.pill-time { font-variant-numeric: tabular-nums; font-size: 12px; opacity: 0.85; justify-self: end; }
.pill-status { grid-column: 2; grid-row: 1; justify-self: center; font-size: 12.5px; opacity: 0.85; display: none; }
.pill[data-state="working"] .pill-status { display: block; }
.pill[data-state="working"] .bars { display: none; }
.bars { grid-column: 2; grid-row: 1; justify-self: center; display: flex; align-items: center; gap: 2.5px; height: 20px; }
.bars i { display: block; width: 2.5px; height: 2px; border-radius: 2px; background: #fff; }
.bars-still i:nth-child(1) { height: 2px } .bars-still i:nth-child(2) { height: 3px } .bars-still i:nth-child(3) { height: 2px }
.bars-still i:nth-child(4) { height: 5px } .bars-still i:nth-child(5) { height: 9px } .bars-still i:nth-child(6) { height: 14px }
.bars-still i:nth-child(7) { height: 18px } .bars-still i:nth-child(8) { height: 11px } .bars-still i:nth-child(9) { height: 16px }
.bars-still i:nth-child(10) { height: 8px } .bars-still i:nth-child(11) { height: 13px } .bars-still i:nth-child(12) { height: 6px }
.bars-still i:nth-child(13) { height: 3px } .bars-still i:nth-child(14) { height: 2px }
#bars i, #editor-bars i, .bars-live i { animation: bar 900ms ease-in-out infinite alternate; }
#bars i:nth-child(odd), #editor-bars i:nth-child(odd) { animation-duration: 760ms; }
#bars i:nth-child(3n), #editor-bars i:nth-child(3n) { animation-delay: 120ms; }
#bars i:nth-child(4n), #editor-bars i:nth-child(4n) { animation-delay: 260ms; }
#bars i:nth-child(5n), #editor-bars i:nth-child(5n) { animation-delay: 420ms; }
@keyframes bar { from { height: 2px; } to { height: var(--h, 12px); } }

/* The transport. */
.transport {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: min(470px, 100% - 16px);
  display: flex; align-items: center; gap: 8px; padding: 8px 10px 8px 12px; border-radius: 14px;
  background: #fff; color: var(--text); border: 1px solid var(--line-2); box-shadow: 0 1px 2px rgba(0,0,0,0.1), 0 8px 20px -14px rgba(0,0,0,0.35);
  font-size: 13px;
}
.transport.static { position: static; transform: none; width: min(470px, 100%); box-shadow: none; border: 1px solid var(--line-2); }
.transport-app { width: 20px; height: 20px; display: grid; place-items: center; flex: none; }
.transport-app img { width: 18px; height: 18px; }
.transport-title { font-weight: 700; white-space: nowrap; }
.transport-time { color: var(--faint); font-variant-numeric: tabular-nums; margin-right: auto; }
.transport-btn { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; flex: none; }
.transport-btn.primary { width: 36px; height: 36px; background: var(--ink); border-color: var(--ink); }
.transport-btn svg { width: 15px; height: 15px; fill: none; stroke: var(--text); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.transport-btn.primary svg { stroke: #fff; }
.transport-speed { font-weight: 700; padding: 5px 10px; border-radius: 999px; background: var(--paper-2); flex: none; }
@media (max-width: 480px) { .transport-btn:not(.primary) { display: none; } .transport-title { font-size: 12.5px; } .transport { gap: 6px; } }

/* --------------------------------------------------------------- apps -- */
.apps { padding: 8px 0 40px; overflow: hidden; }
.apps h2 { text-align: center; font-size: 20px; font-weight: 600; color: var(--dim); margin-bottom: 22px; padding: 0 24px; }
.marquee { position: relative; margin: 0 auto; max-width: 1400px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee + .marquee { margin-top: 14px; }
.track { display: flex; gap: 14px; width: max-content; animation: slide 90s linear infinite; }
.reverse .track { animation-direction: reverse; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.tile { flex: none; width: 66px; height: 66px; border-radius: 18px; background: #fff; border: 1px solid var(--line-2); display: grid; place-items: center; }
.tile img { width: 30px; height: 30px; }
.tile b { font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: -0.02em; }

/* ------------------------------------------------------------ feature -- */
.feature {
  max-width: var(--col); margin: 0 auto; padding: 88px 24px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center;
}
.feature-copy h2 { margin-bottom: 20px; }
.feature-copy > p { max-width: 540px; color: var(--dim); }
.points { list-style: none; margin: 28px 0 0; padding: 0; max-width: 540px; display: grid; gap: 14px; }
.points li { color: var(--dim); padding-left: 18px; border-left: 2px solid var(--green); }
.points strong { color: var(--text); }
.feature-fig { margin: 0; min-width: 0; }
.feature-fig figcaption { margin-top: 16px; font-size: 15px; color: var(--faint); }
@media (max-width: 860px) { .feature { grid-template-columns: minmax(0, 1fr); gap: 36px; } .feature.ink .feature-fig { order: 2; } }

.stage {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 40px 20px 108px; border-radius: 20px;
  background: linear-gradient(160deg, #e9eef6 0%, #f3f1ea 55%, #e6ebe8 100%); border: 1px solid var(--line);
}
.dock {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 18px; width: max-content;
  background: rgba(255,255,255,0.7); border: 1px solid rgba(255,255,255,0.9); box-shadow: 0 1px 2px rgba(0,0,0,0.08), 0 10px 24px -12px rgba(0,0,0,0.3);
}
.dock img { width: 34px; height: 34px; border-radius: 9px; background: #fff; padding: 6px; box-sizing: border-box; box-shadow: 0 1px 2px rgba(0,0,0,0.12); }
.dock img.bare { padding: 0; background: none; box-shadow: none; }
.pill.static { position: static; transform: none; width: min(400px, 100%); box-shadow: 0 1px 2px rgba(0,0,0,0.3), 0 5px 12px -6px rgba(0,0,0,0.35); }
.pill.static.open .pill-text { min-height: 2.9em; }
.pill.compact { width: auto; border-radius: 999px; padding: 7px 12px; }
.pill.compact .pill-row { column-gap: 12px; }
.pill.wave { width: auto; border-radius: 999px; padding: 9px 16px; display: flex; justify-content: center; }
.pill.wave .bars { height: 22px; }

/* ---------------------------------------------------------------- tidy -- */
.tidy { max-width: var(--col); margin: 0 auto; padding: 0 24px 96px; }
.tidy-top { padding: 40px 0 56px; max-width: none; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); align-items: start; }
.tidy-top .feature-copy { padding-top: 2px; }
.tidy-top h2 { font-size: clamp(28px, 2.9vw, 36px); white-space: nowrap; }

/* The IDE: files, code, chat. The chat scene shows all three; the code
   scene folds the chat away and moves in on the code. */
.ide { position: relative; padding-bottom: 92px; }
.tidy-top .feature-fig figcaption { margin-top: 24px; }
.ide-frame { border-radius: 14px; overflow: hidden; border: 1px solid #2c2d33; background: #16171b; }
.ide-zoom { transition: transform 1100ms cubic-bezier(0.3, 0, 0.15, 1); }
.ide[data-scene="code"] .ide-zoom { transform: scale(1.3); }
.ide-bar { border-bottom: 1px solid #2c2d33; }
.ide-bar img { border-radius: 4px; }
.ide-title { margin: 0 auto; transform: translateX(-13px); color: #b9bcc6; }
.ide-body { display: grid; grid-template-columns: 112px minmax(0, 1fr) 40%; background: #16171b; overflow: hidden; height: 424px; transition: grid-template-columns 900ms cubic-bezier(0.3, 0, 0.15, 1); }
.ide[data-scene="code"] .ide-body { grid-template-columns: 112px minmax(0, 1fr) 0px; }
.ide-tree { padding: 12px 0; border-right: 1px solid #2c2d33; font: 500 12px/2 var(--mono); color: #b9bcc6; overflow: hidden; white-space: nowrap; }
.ide-dir { display: flex; align-items: center; gap: 6px; padding: 0 12px; color: #8b8d96; font-size: 11px; }
.ide-dir svg { width: 13px; height: 13px; fill: none; stroke: #8b8d96; stroke-width: 1.8; stroke-linejoin: round; }
.ide-file { display: flex; align-items: center; gap: 7px; padding: 0 12px 0 18px; transition: color 200ms ease, background 200ms ease; }
.ide-file.hit { color: #7bd88f; background: rgba(123, 216, 143, 0.12); }
.fi { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 3px; font: 700 8px/1 var(--mono); flex: none; }
.fi.ts { background: #3178c6; color: #fff; }
.fi.test { background: #7bd88f; color: #16171b; }
.fi.json { background: #f5c451; color: #16171b; }
.ide-main { display: flex; flex-direction: column; min-width: 0; }
.ide-tabs { display: flex; border-bottom: 1px solid #2c2d33; overflow: hidden; white-space: nowrap; }
.ide-tab { display: flex; align-items: center; gap: 6px; padding: 8px 12px; font: 500 12px/1 var(--mono); color: #8b8d96; border-right: 1px solid #2c2d33; }
.ide-tab.on { color: #e8e8ea; background: #101115; }
.ide-chat { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-left: 1px solid #2c2d33; overflow: hidden; min-width: 0; }
.ide-chat-h { display: block; font: 600 11px/1 var(--body); color: #8b8d96; }
.msg { font: 400 13px/1.5 var(--body); color: #d6d8de; }
.msg.user { align-self: flex-end; max-width: 90%; padding: 8px 11px; border-radius: 12px 12px 4px 12px; background: #2a2b31; }
.msg.ai { display: flex; flex-direction: column; gap: 6px; }
.msg.ai p { margin: 2px 0 0; color: #b9bcc6; }
.msg.ai code { background: rgba(255,255,255,0.08); color: #e8e8ea; font-size: 12px; padding: 0.1em 0.35em; }
.tool { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; padding: 4px 9px; border-radius: 999px; background: #101115; border: 1px solid #2c2d33; font: 500 11.5px/1 var(--mono); color: #8b8d96; }
.tool svg { width: 12px; height: 12px; fill: none; stroke: #7bd88f; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.composer-text { margin-top: auto; min-height: 3.6em; padding: 9px 11px; border-radius: 9px; background: #101115; border: 1px solid #2c2d33; color: #e8e8ea; font: 400 13px/1.55 var(--body); white-space: normal; }
.composer-text .placeholder { color: #565963; }
.composer-text.raw .tok { color: #8b8d96; }
.composer-text .tok.new { color: #7bd88f; background: rgba(123, 216, 143, 0.14); }
.code {
  margin: 0; padding: 18px 16px 22px; background: #16171b; color: #d6d8de; font-variant-ligatures: none;
  font: 400 11.5px/1.8 var(--mono); overflow: hidden; white-space: pre; tab-size: 2; transition: font-size 500ms ease, padding 500ms ease;
}
.ide[data-scene="code"] .ide-code { font-size: 11px; padding: 22px 18px; }
.ide-code .ln { width: 2.2em; }
#code-line .was, #code-line .now { display: inline; transition: opacity 300ms ease; }
#code-line.before .now, #code-line.after .was { display: none; }
#code-line.hit { background: rgba(123, 216, 143, 0.14); border-radius: 4px; }
.msg.after .tool svg { stroke: #f5c451; }
.code.small { font-size: 12.5px; line-height: 1.7; border-radius: 10px; margin: 12px 0; padding: 12px 14px; position: relative; background: #1e1f24; border: 1px solid #2c2d33; }
.code .ln { display: inline-block; width: 2.4em; color: #565963; user-select: none; }
.code .kw { color: #c792ea; }
.code .fn { color: #82aaff; border-radius: 4px; transition: background 200ms ease; }
.code .fn.hit { background: rgba(123, 216, 143, 0.22); color: #7bd88f; box-shadow: 0 0 0 2px rgba(123, 216, 143, 0.35); }
.ide-file.hit { box-shadow: inset 3px 0 0 #7bd88f; }
#code-line.hit .now { background: rgba(123, 216, 143, 0.12); }
.code .ty { color: #ffcb6b; }
.code .st { color: #c3e88d; }
.code .cm { color: #7f8592; font-style: italic; padding: 0; margin: 0; }
.code .cm.raw .tok { color: #6b7080; font-style: normal; }
.ide-code .cm-line { display: block; padding-left: calc(2.2em + 2ch); text-indent: calc(-2.2em - 2ch); white-space: pre-wrap; }
.ide-code .cm-line .ln, .ide-code .cm-line .tok, .ide-code .cm-line .sp { text-indent: 0; }
.code .tok.new { color: #7bd88f; background: rgba(123, 216, 143, 0.14); }
.code .raw .tok, .code .raw { color: #6b7080; font-style: normal; }
.code .tidy .tok { color: #7f8592; }
.editor-pill.pill { bottom: 6px; }
.skip {
  position: absolute; right: 10px; top: 10px; padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,0.08); color: #b9bcc6;
  font: 600 11px/1.4 var(--body); opacity: 0; transition: opacity 250ms ease;
}
.skip.on { opacity: 1; }

/* Said, then typed: three cards, each with its own kind of tidying. */
.pairs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.pair { padding: 20px 22px 18px; border-radius: 18px; background: #fff; border: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 12px; }
.pair h3 { margin: 0 0 2px; display: flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 600; font-size: 19px; letter-spacing: -0.01em; white-space: nowrap; }
.pair h3 svg { width: 19px; height: 19px; fill: none; stroke: var(--green); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.heard { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--paper-2); color: var(--faint); font-size: 15px; line-height: 1.5; }
.pair-arrow { display: block; width: 18px; height: 18px; margin: -2px auto; }
.pair-arrow svg { width: 18px; height: 18px; fill: none; stroke: var(--faint); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.typed { margin: 0; font-family: var(--display); font-weight: 600; font-size: 20px; line-height: 1.4; letter-spacing: -0.01em; }
.typed b { font-weight: 600; color: var(--green); background: var(--green-soft); border-radius: 5px; padding: 0 0.15em; }
.typed.lines { font-size: 18px; line-height: 1.5; }
.pair-app { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--faint); }
.pair-app b { font-family: var(--display); font-weight: 700; font-size: 14px; }
@media (max-width: 860px) { .pairs { grid-template-columns: 1fr; } }

/* The ink band. */
.ink { background: #e9eae6; color: var(--text); }
.feature.ink { max-width: none; padding: 96px calc((100% - var(--col)) / 2 + 24px); }
.ink .feature-copy > p, .ink .points li { color: var(--dim); }
.ink .points strong { color: var(--text); }
.ink .points li { border-color: var(--green); }
.ink .feature-fig figcaption { color: var(--faint); }

/* Read aloud: tabs on top, one scene at a time, the transport under it. */
.rtabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.read-caption { margin: 0 0 12px; font-size: 14px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rtab { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: none; color: var(--dim); font: 600 13.5px/1.3 var(--body); text-align: left; cursor: pointer; }
.rtab img { width: 16px; height: 16px; margin-bottom: 4px; filter: grayscale(1); opacity: 0.7; }
.rtab small { font-weight: 500; font-size: 12px; color: var(--faint); white-space: nowrap; }
.rtab:hover { border-color: var(--text); color: var(--text); }
.rtab[aria-selected="true"] { background: #fff; color: var(--ink); border-color: var(--ink); }
.rtab[aria-selected="true"] img { filter: none; opacity: 1; }
.rtab[aria-selected="true"] small { color: var(--dim); }
.rscene { transition: opacity 340ms ease, transform 420ms cubic-bezier(0.2, 0.7, 0.2, 1); }
.reader.fading .rscene { opacity: 0; transform: translateY(-10px); }
.rscene.enter { opacity: 0; transform: translateY(12px); transition: none; }
.win.light.claude-light { font-family: var(--body); }
.win.light .cc-body { color: var(--text); }
.win.light .cc-prompt, .win.light .cc-prompt.done { color: var(--dim); }
.win.light .cc-ps { color: var(--green); }
.win.light .read-body { color: var(--dim); }
.win.light .cc-diff { background: #f1f1ed !important; border: 1px solid var(--line); color: var(--text); }
.win.light .cc-diff .del { color: #b3261e; }
.win.light .cc-diff .add { color: #1b7f3b; }
.win.light .skip { background: #fff; color: var(--dim); border: 1px solid var(--line); }
.win.light .read-body .now { color: var(--green); background: var(--green-soft); }
.reader { position: relative; padding-bottom: 40px; }
.transport.live .transport-btn { background: #fff; cursor: pointer; }
.transport.live .transport-btn.primary { background: var(--ink); }
.transport.live .transport-btn:hover { border-color: var(--text); }
.transport.live .transport-speed { border: 0; cursor: pointer; font-family: inherit; }
.transport.live .i-pause { display: none; }
.reader.playing .i-pause { display: block; }
.reader.playing .i-play { display: none; }
.read-hint { margin-top: 14px; font-size: 14px; color: var(--faint); }
.rscene[hidden] { display: none; }
.win { border-radius: 16px; overflow: hidden; height: 340px; }
.win.light { background: #fbfbf9; color: var(--text); border: 1px solid var(--line-2); }
.win.light .win-bar { background: #fff; border-color: var(--line); color: var(--faint); }
.win.dark { background: #16171b; color: #d6d8de; border: 1px solid #2c2d33; }
.win.dark .read-body { color: #b9bcc6; }
.win.dark .read-body .said { color: #eef1f6; }
.win.dark .read-body .now { color: #7bd88f; background: rgba(123, 216, 143, 0.14); }
.read-body { font-size: 15px; line-height: 1.7; color: var(--dim); }
.read-body span { transition: color 150ms ease, background 150ms ease; border-radius: 4px; padding: 0 0.06em; }
.read-body .said { color: var(--text); }
.read-body .now { color: var(--green); background: var(--green-soft); }
.notion { display: grid; grid-template-columns: 130px minmax(0, 1fr); }
.notion-side { padding: 14px 0; border-right: 1px solid var(--line); font-size: 13px; color: var(--faint); }
.notion-side span { display: block; padding: 5px 14px; }
.notion-side .on { color: var(--text); background: rgba(27,36,54,0.05); }
.notion-page { padding: 18px 20px 26px; }
.notion .read-body { font-size: 14.5px; }
.notion-page h5 { margin: 0 0 10px; font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.notion-chips { display: flex; gap: 8px; margin-top: 16px; }
.notion-chips span { font-size: 12px; color: var(--faint); padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); }
.mail { padding: 16px 20px 22px; }
.mail-h { display: flex; gap: 10px; align-items: baseline; font-size: 13.5px; color: var(--faint); margin-bottom: 10px; }
.mail-h b { color: var(--text); }
.mail-h em { margin-left: auto; font-style: normal; }
.mail-body { font-size: 14px; line-height: 1.6; color: var(--faint); }
.mail-gist { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: #fff; border-left: 3px solid var(--green); }
.mail-gist > span { display: block; font: 700 11.5px/1 var(--body); color: var(--green); margin-bottom: 6px; }
.mail-gist .read-body { color: var(--dim); }
.cc-diff.small { margin: 12px 0; }

/* ---------------------------------------------------------------- race -- */
.race { max-width: var(--col); margin: 0 auto; padding: 96px 24px 88px; }
.race-copy h2 { margin-bottom: 18px; }
.race-stage { position: relative; margin-top: 32px; max-width: 980px; }
.race-target {
  position: relative; padding: 28px 32px; border-radius: 18px; background: #fff; border: 1px solid var(--line-2);
  font-family: var(--display); font-weight: 500; font-size: clamp(22px, 2.3vw, 27px); line-height: 1.65; letter-spacing: 0.01em; word-spacing: 0.06em;
  color: var(--faint); cursor: text; user-select: none;
}
.race-target span { border-radius: 4px; }
.race-target .ok { color: var(--text); }
.race-target .bad { color: var(--rec); background: rgba(229, 72, 77, 0.14); text-decoration: underline; text-decoration-thickness: 2px; }
.race-caret { position: absolute; left: 0; top: 0; width: 2.5px; border-radius: 2px; background: var(--green); opacity: 0; transition: transform 60ms ease-out; will-change: transform; }
.race-stage.focused:not(.done) .race-caret { opacity: 1; animation: blink 1s steps(1) infinite; }
.race-stage.focused.typing .race-caret { animation: none; opacity: 1; }
.race-in { position: absolute; left: 0; top: 0; width: 100%; height: calc(100% - 50px); opacity: 0; border: 0; padding: 0; margin: 0; cursor: text; }
.race-foot { position: relative; display: flex; align-items: center; gap: 16px; margin-top: 14px; font-size: 15px; color: var(--dim); }
.race-again { margin-left: auto; height: 36px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; background: #fff; font: 600 14px/1 var(--body); color: var(--text); cursor: pointer; }
.race-again:hover { border-color: var(--text); }
.race-result { margin-top: 28px; padding: 28px 32px; border-radius: 18px; background: var(--ink); color: #fff; max-width: 980px; }
.race-result h3 { margin: 0 0 8px; font-family: var(--display); font-weight: 600; font-size: clamp(24px, 3vw, 34px); letter-spacing: -0.02em; line-height: 1.1; }
.race-result p { color: rgba(255,255,255,0.78); max-width: 680px; }
.race-result .btn { margin-top: 20px; background: #fff; color: var(--ink); }

/* --------------------------------------------------------------- setup -- */
.setup { max-width: var(--col); margin: 0 auto; padding: 24px 24px 96px; }
.setup-copy { max-width: 700px; }
.setup-copy h2 { margin-bottom: 18px; }
.setup-copy > p { color: var(--dim); }

/* The replica of the app. Real, small, and working, page by page. */
.app { position: relative; margin-top: 40px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); background: var(--paper); font-size: 15px; line-height: 1.5; user-select: none; box-shadow: 0 1px 2px rgba(0,0,0,0.05), 0 20px 44px -28px rgba(0,0,0,0.28); }
.app-chrome { display: flex; align-items: center; gap: 9px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 13.5px; font-weight: 700; }
.app-chrome .dots { margin-right: 6px; }
.app-fold { flex: none; width: 28px; height: 26px; border: 0; border-radius: 7px; background: none; color: var(--faint); display: grid; place-items: center; cursor: pointer; }
.app-fold:hover { background: var(--paper-2); color: var(--text); }
.app-fold svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.app-mark img { border-radius: 5px; display: block; }
.app-ready { margin-left: auto; display: flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--paper-2); font-size: 12px; font-weight: 600; }
.app-ready i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: ready 2s ease-in-out infinite; }
@keyframes ready { 50% { opacity: 0.3; box-shadow: 0 0 0 3px var(--green-soft); } }
.app-body { display: flex; height: 560px; }
.app-side { flex: none; width: 190px; border-right: 1px solid var(--line); padding: 12px 8px; display: flex; flex-direction: column; gap: 2px; transition: width 480ms cubic-bezier(0.2, 0.7, 0.2, 1); }
.app-side.folded { width: 58px; }
.app-search { display: flex; align-items: center; gap: 7px; height: 34px; margin-bottom: 10px; padding: 0 8px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--dim); font-size: 13px; font-weight: 500; overflow: hidden; }
.app-search kbd { font-size: 10.5px; min-width: 0; padding: 0 5px; line-height: 1.5; }
.app-search kbd:first-of-type { margin-left: auto; }
.app-side.folded .app-search > span, .app-side.folded .app-search kbd { display: none; }
.app-side.folded .app-search { justify-content: center; padding: 0; }
.app-side svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.app-item { position: relative; display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 9px; border: 0; border-radius: 8px; background: none; color: var(--dim); font: 600 13.5px/1 var(--body); text-align: left; white-space: nowrap; overflow: hidden; cursor: pointer; }
.app-item:hover, .app-item.current { background: #fff; color: var(--text); }
.app-item.current::before { content: ""; position: absolute; left: -8px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--green); }
.app-side.folded .app-item { justify-content: center; padding: 0; }
.app-side.folded .app-item span { display: none; }
.app-main { flex: 1; min-width: 0; padding: 26px 32px 30px; overflow: hidden; }
.app-view[hidden] { display: none; }
.app-head { display: flex; align-items: flex-start; gap: 16px; }
.app-head h3 { margin: 0; font-family: var(--display); font-size: 24px; font-weight: 700; letter-spacing: -0.01em; }
.app-head p { color: var(--dim); font-size: 13.5px; }
.app-btn { margin-left: auto; display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; }
.app-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.app-main h4 { margin: 26px 0 8px; font-size: 13.5px; font-weight: 700; }
.app-sentence { font-size: 18px; line-height: 1.75; max-width: 640px; }
.app-sentence + .app-sentence { margin-top: 14px; }
.app-sentence kbd { font-size: 0.7em; vertical-align: 0.15em; }
/* The green word. The chevron is a glyph glued to the last word with a
   non-breaking space, so it can never wrap onto a line of its own. */
.w { color: var(--green); background: var(--green-soft); border-radius: 6px; padding: 0.02em 0.28em; cursor: pointer; border-bottom: 2px solid transparent; transition: border-color 120ms ease; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.w::after { content: "\00a0\25BE"; font-size: 0.85em; opacity: 0.7; }
.w:hover, .w.open { border-color: var(--green); }
.app-note { display: flex; align-items: center; gap: 7px; margin-top: 10px; font-size: 12.5px; color: var(--faint); }
.app-note svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.app-entry { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
.app-kind { flex: none; width: 26px; height: 26px; border-radius: 50%; background: #e9ecf3; color: var(--dim); display: grid; place-items: center; }
.app-kind svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.app-entry[data-kind="read"] .app-kind { background: #e9ecf3; color: var(--dim); }
.app-entry > div { flex: 1; min-width: 0; }
.app-entry-text { font-size: 14.5px; }
.app-entry-meta { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--faint); margin-top: 3px; }
.app-entry-meta > span:last-child { margin-left: auto; }
.app-tag { display: inline-flex; align-items: center; gap: 5px; }
.app-tag img { width: 13px; height: 13px; }
.app-tag b { font-family: var(--display); font-weight: 700; font-size: 13px; }
.app-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.app-stats div { padding: 12px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line); opacity: 0; transform: translateY(8px); }
.app.live .app-stats div { animation: app-in 520ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
.app.live .app-stats div:nth-child(2) { animation-delay: 70ms; }
.app.live .app-stats div:nth-child(3) { animation-delay: 140ms; }
.app.live .app-stats div:nth-child(4) { animation-delay: 210ms; }
@keyframes app-in { to { opacity: 1; transform: none; } }
.app-stats b { display: block; font-family: var(--display); font-size: 24px; font-weight: 700; letter-spacing: -0.01em; }
.app-stats span { font-size: 12.5px; color: var(--faint); }
.app-bars { display: flex; align-items: flex-end; gap: 6px; height: 90px; padding: 0 2px; margin-top: 30px; }
.app-bars i { flex: 1; height: var(--h); border-radius: 4px 4px 2px 2px; background: var(--green); opacity: 0.85; position: relative; cursor: default; transition: opacity 120ms ease; transform: scaleY(0); transform-origin: bottom; }
.app.live .app-bars i { animation: app-bar 700ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards; animation-delay: calc(240ms + var(--i, 0) * 38ms); }
@keyframes app-bar { to { transform: scaleY(1); } }
.app-bars i:hover { opacity: 1; }
.app-bars i::after { content: attr(data-v); position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); padding: 2px 7px; border-radius: 6px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 600; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 120ms ease; }
.app-bars i:hover::after { opacity: 1; }
.app-bars i:last-child { background: var(--text); }
.app-where { display: grid; grid-template-columns: 110px 1fr 40px; align-items: center; gap: 12px; font-size: 13.5px; margin-top: 8px; }
.app-where i { display: block; height: 10px; width: var(--w); border-radius: 5px; background: var(--green); transform: scaleX(0); transform-origin: left; }
.app.live .app-where i { animation: app-meter 720ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards; animation-delay: calc(700ms + var(--i, 0) * 90ms); }
@keyframes app-meter { to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .app-stats div, .app-bars i, .app-where i { opacity: 1; transform: none; animation: none !important; } }
.app-where em { font-style: normal; color: var(--faint); text-align: right; }
.app-meter { display: flex; align-items: center; gap: 12px; margin: 10px 0 16px; font-size: 13px; color: var(--green); }
.app-meter-bars { display: flex; gap: 3px; align-items: flex-end; height: 16px; }
.app-meter-bars i { width: 5px; height: 100%; border-radius: 2px; background: var(--green); }
.app-meter-bars i:nth-child(n+9) { background: var(--line); }
.app-keys { display: flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 13.5px; color: var(--dim); }
.app-keys > span:not(.app-btn) { margin-right: 4px; }
.app-keys > span:nth-of-type(2) { margin-left: 12px; }
.app-btn.sm { height: 28px; padding: 0 10px; font-size: 12.5px; margin-left: auto; }
.app-voice { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.app-voice i { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--faint); }
.app-voice.on i { border: 4.5px solid var(--green); }
.app-voice b { font-weight: 700; }
.app-voice > span:not(.app-btn) { color: var(--faint); font-size: 13px; }
.app-word { display: flex; align-items: baseline; gap: 12px; padding: 10px 0; }
.app-word + .app-word { border-top: 1px solid var(--line); }
.app-sub { margin: -6px 0 4px; font-size: 13.5px; color: var(--faint); }
.app-words { margin-bottom: 8px; }
.app-word b { font-weight: 700; }
.app-word span { color: var(--faint); font-size: 13.5px; }
.app-pop { position: absolute; z-index: 5; width: 300px; padding: 8px; border-radius: 12px; background: #fff; border: 1px solid var(--line-2); box-shadow: 0 8px 24px -12px rgba(27,36,54,0.35); }
.app-pop-h { padding: 6px 10px 8px; font-size: 12.5px; font-weight: 700; color: var(--faint); }
.app-opt { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: none; font: 500 14px/1.3 var(--body); color: var(--text); text-align: left; cursor: pointer; }
.app-opt:hover { background: var(--paper-2); }
.app-opt i { flex: none; width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid var(--faint); }
.app-opt[aria-pressed="true"] i { border: 4.5px solid var(--green); }
@media (max-width: 700px) { .app-side { display: none; } .app-main { padding: 20px; } .app-head .app-btn { display: none; } .app-stats { grid-template-columns: 1fr 1fr; } }

/* ------------------------------------------------------------- private -- */
.private { background: var(--paper-2); padding: 88px 24px; }
.private-in { max-width: var(--col); margin: 0 auto; }
.private-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }
.facts { margin-top: 30px; display: grid; gap: 26px; }
.facts p { color: var(--dim); font-size: 17px; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: start; margin: 0; }
.fact-ic { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); display: grid; place-items: center; }
.fact-ic svg { width: 22px; height: 22px; fill: none; stroke: var(--text); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.facts strong { display: block; color: var(--text); font-family: var(--display); font-weight: 600; font-size: 21px; margin-bottom: 4px; letter-spacing: -0.01em; }
.cli-lede { margin-top: 14px; color: var(--dim); font-size: 17px; }
@media (max-width: 860px) { .private-grid { grid-template-columns: 1fr; gap: 48px; } }

.term { margin-top: 22px; border-radius: 14px; background: #16171b; border: 1px solid #2c2d33; box-shadow: var(--dark-shadow); overflow: hidden; cursor: text; }
.term-bar { border-radius: 0; }
.term-scroll { height: 340px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.term-scroll::-webkit-scrollbar { display: none; }
.term-body { padding: 14px 16px 0; font: 400 13px/1.7 var(--mono); color: #d6d8de; white-space: pre-wrap; font-variant-ligatures: none; }
.term-wrap { flex: 1; position: relative; display: flex; }
.term-ghost { position: absolute; left: 0; top: 0; color: #6b7080; pointer-events: none; display: flex; align-items: center; gap: 8px; }
.term-ghost[hidden] { display: none; }
.term-ghost .typed { visibility: hidden; white-space: pre; }
.term-ghost kbd { font: 600 10.5px/1 var(--mono); color: #8b8d96; border: 1px solid #3a3b42; border-radius: 4px; padding: 3px 5px; background: #1e1f24; }
.term-l.term-cmd { color: #fff; font-weight: 600; margin-top: 6px; }
.term-l.term-cmd:first-child { margin-top: 0; }
.term-ps { color: var(--mint); }
.term-line { display: flex; align-items: center; gap: 8px; padding: 6px 16px 14px; font: 400 13px/1.7 var(--mono); }
.term-line[hidden] { display: none; }
.term-in { flex: 1; background: none; border: 0; color: #fff; font: inherit; outline: none; font-variant-ligatures: none; }
.term-in::placeholder { color: #6b7080; }

/* ------------------------------------------------------------ download -- */
.download { padding: 64px 24px 100px; }
.faq { padding: 120px 24px 24px; }
.faq-in { max-width: 760px; margin: 0 auto; }
.faq-head { text-align: center; }
.faq-head p { color: var(--dim); margin: 16px auto 0; }
.faq-item p { text-align: left; }
.faq-list { margin-top: 40px; border-top: 1px solid var(--line); }
@media (max-width: 700px) { .faq { padding-top: 80px; } .faq-list { margin-top: 28px; } }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { cursor: pointer; padding: 18px 0; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; width: 10px; height: 10px; border-right: 2px solid var(--faint); border-bottom: 2px solid var(--faint); transform: rotate(45deg); flex: none; transition: transform 200ms ease; margin-right: 4px; }
.faq-item[open] summary::after { transform: rotate(-135deg); }
.faq-item p { color: var(--muted); max-width: 640px; padding: 0 0 20px; margin: 0; }
.dl-os { list-style: none; margin: 30px 0 0; padding: 22px 0 0; border-top: 1px solid rgba(255,255,255,0.14); display: flex; gap: 28px; flex-wrap: wrap; }
.dl-os li { display: flex; align-items: center; gap: 9px; color: rgba(255,255,255,0.5); font-size: 14.5px; }
.dl-os li svg { width: 18px; height: 18px; fill: currentColor; }
.dl-os li em { font-style: normal; font-size: 13px; color: rgba(255,255,255,0.36); }
.dl-os li span { font-weight: 600; }
.download-in[data-os="windows"] .dl-os li[data-os="windows"],
.download-in[data-os="mac"] .dl-os li[data-os="mac"],
.download-in[data-os="linux"] .dl-os li[data-os="linux"] { color: #fff; }
.download-in[data-os="windows"] .dl-os li[data-os="windows"] em { color: #5fd3a0; }
.download-in { max-width: var(--col); margin: 0 auto; padding: 56px; background: var(--ink); color: #fff; border-radius: 24px; }
.download-in p { color: rgba(255,255,255,0.74); max-width: 560px; margin-top: 18px; }
.dl-ways { margin-top: 28px; display: flex; align-items: flex-start; gap: 20px; flex-wrap: wrap; }
.dl-way { display: flex; flex-direction: column; gap: 10px; }
.dl-way .soon { font-size: 13.5px; }
.dl-btn { background: #fff; color: var(--ink); height: 46px; font-size: 16px; padding: 0 22px; }
.dl-ways { align-items: stretch; }
.dl-way { justify-content: space-between; }
.dl-btn:hover { background: rgba(255,255,255,0.88); }
.dl-or { color: rgba(255,255,255,0.5); font-weight: 600; align-self: flex-start; line-height: 46px; }
.winget { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.winget code { font-size: 15px; padding: 12px 16px; line-height: 20px; }
.winget-copy { height: 46px; padding: 0 14px; }
.dl-alt { margin-top: 22px; }
.dl-link { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.term-l.term-cmd.dim { color: #8b8d96; font-weight: 500; }
#dictate.feature { align-items: start; }
#dictate .feature-copy { padding-top: 4px; }
.code .cm.tidy .tok.gone { display: none; }
.winget-l { color: rgba(255,255,255,0.6); font-size: 15px; }
.winget code { background: rgba(255,255,255,0.08); color: #fff; padding: 9px 14px; border-radius: 10px; font-size: 14px; user-select: all; }
.winget-copy { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.22); background: none; color: #fff; font: 600 13.5px/1 var(--body); cursor: pointer; }
.winget-copy:hover { background: rgba(255,255,255,0.1); }
.winget-copy svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.download-in .btn { background: #fff; color: var(--ink); }
.download-in .fine { color: rgba(255,255,255,0.5); }
@media (max-width: 700px) { .download-in { padding: 32px 24px; } }

/* ---------------------------------------------------------------- foot -- */
.foot { max-width: var(--col); margin: 0 auto; padding: 24px 24px 48px; display: flex; gap: 24px; font-size: 14px; color: var(--faint); }
.foot span { font-weight: 700; color: var(--dim); margin-right: auto; }
.foot a { color: var(--dim); text-decoration: none; }
.foot a:hover { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  #bars i, #editor-bars i, .caret, .race-caret { animation: none; }
  .track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee { mask-image: none; -webkit-mask-image: none; padding: 0 24px; }
  .btn, .tok, .pill, .ide-body, .code { transition: none; }
}

/* ---------------------------------------------------- small screens -- */
/* Phones, foldables and tablets. Later in the file on purpose: a section's
   own grid rule (the editor's) used to win over the stacking rule above. */
html { overflow-x: hidden; }
.top, .feature.ink { padding-left: max(24px, calc((100% - var(--col)) / 2 + 24px)); padding-right: max(24px, calc((100% - var(--col)) / 2 + 24px)); }
@media (max-width: 900px) {
  .tidy-top { grid-template-columns: minmax(0, 1fr); gap: 36px; padding: 32px 0 48px; }
  .tidy-top h2 { white-space: normal; }
  .ide-body { grid-template-columns: 96px minmax(0, 1fr) 44%; height: 380px; }
  .ide[data-scene="code"] .ide-body { grid-template-columns: 96px minmax(0, 1fr) 0px; }
  .cc { height: 400px; }
  .feature.ink .feature-fig { order: 2; }
}
@media (max-width: 700px) {
  .ide-body { grid-template-columns: 0px minmax(0, 1fr) 46%; height: 360px; }
  .ide[data-scene="code"] .ide-body { grid-template-columns: 0px minmax(0, 1fr) 0px; }
  .ide-tree { visibility: hidden; padding: 0; border: 0; min-width: 0; }
  .ide[data-scene="code"] .ide-zoom { transform: none; }
  .ide[data-scene="code"] .ide-code { font-size: 11.5px; padding: 16px 12px; }
  .ide-code { font-size: 11px; }
  .ide { padding-bottom: 84px; }
  .cc { height: 520px; }
  .cc-input { font-size: 12.5px; }
  .cc-phase { font-size: 11px; padding: 2px 8px; }
  .win { height: auto; min-height: 280px; }
  .term-scroll { height: 300px; }
  .app-body { height: 520px; }
  .race-target { font-size: 18px; line-height: 1.7; }
  .stage { padding: 28px 12px 96px; }
  .pill { font-size: 13px; }
}
@media (max-width: 520px) {
  h1 { font-size: clamp(30px, 8.6vw, 36px); }
  h2 { font-size: clamp(26px, 7.4vw, 32px); }
  .hero-grid { padding: 36px 20px 40px; gap: 32px; }
  .lede { font-size: 18px; }
  .cta { gap: 14px; }
  .rtabs { grid-template-columns: 1fr; gap: 6px; }
  .rtab { flex-direction: row; align-items: center; gap: 8px; padding: 8px 10px; }
  .rtab img { margin: 0; }
  .rtab small { margin-left: auto; }
  .notion-side { display: none; }
  .notion { grid-template-columns: minmax(0, 1fr); }
  .tidy-top .feature-fig { margin: 0 -12px; }
  .ide-frame { border-radius: 10px; }
  .app-body { height: auto; }
  .app-view[data-view="usage"] h4:has(+ .app-where), .app-where { display: none; }
  .dl-ways { flex-direction: column; gap: 14px; }
  .dl-or { line-height: 1; }
  .transport { padding: 6px 8px; gap: 6px; }
  .dock { transform: translateX(-50%) scale(0.86); transform-origin: bottom center; }
  .tile { width: 56px; height: 56px; border-radius: 14px; }
  .tile img { width: 26px; height: 26px; }
  .pairs { gap: 12px; }
  .pair { padding: 16px 16px 14px; }
  .typed { font-size: 18px; }
  .app-main { padding: 16px; }
  .app-stats { grid-template-columns: 1fr 1fr; gap: 8px; }
  .feature, .tidy, .race, .setup, .private { padding-left: 20px; padding-right: 20px; }
}
