/* The download page. Its own styles: it shares only the fonts and tokens (DESIGN.md) with the
   landing page, so neither page can break the other. */

@font-face { font-family: "Cereal"; src: url("site-assets/fonts/AirbnbCereal-Book.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Cereal"; src: url("site-assets/fonts/AirbnbCereal-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("site-assets/fonts/IBMPlexMono-Regular-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("site-assets/fonts/IBMPlexMono-Medium-latin.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --ground: #101010;
  --surface: #1b1b1d;
  --surface-2: #202023;
  --surface-3: #26262b;
  --line: #262626;
  --line-strong: #333336;
  --ink: #fff;
  --ink-soft: #d6d6d8;
  --ink-mute: #959597;
  --ink-faint: #4a4a4e;
  --main: #58a6ff;
  --add-bar: #5eb26c;
  --merge: #a371f7;
  --del-bar: #e06c66;
  /* For the Story scene (the app's own tokens, src/index.css). */
  --island-bg: rgba(255, 255, 255, 0.01);
  --pill: rgba(255, 255, 255, 0.05);
  --main-fill: rgba(88, 166, 255, 0.16);
  --main-ink: #79b8ff;
  --main-text: #79b8ff;
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.02) inset, 0 24px 48px -24px rgba(0, 0, 0, 0.7);
  --amber: #e5b85c;
  --label: "Cereal", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --duck-shadow: rgba(0, 0, 0, 0.75);
  --btn: #f2f2f3;
  --btn-hover: #fff;
  --btn-ink: #101010;
  /* A card in the flow (DESIGN.md, Shape). */
  --card-shadow: 0 1px 0 rgba(255, 255, 255, 0.02) inset, 0 24px 48px -24px rgba(0, 0, 0, 0.7);

  --float: 3.6s;
  --ease-float: cubic-bezier(.45, 0, .55, 1);
  --rise: cubic-bezier(.2, .7, .2, 1);
  --wide: 1040px;

  /* The canvas grid (src/App.tsx), and one step up while the story is in use. */
  --grid-minor: #121212;
  --grid-major: #161616;
  --grid-minor-on: #131313;
  --grid-major-on: #171717;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);

  /* An opened card (src/index.css): the diff tints, the checks, the comments. */
  --add: rgba(94, 178, 108, 0.12);
  --del: rgba(224, 108, 102, 0.12);
  --teal: #7cc4b4;
  --teal-dim: rgba(124, 196, 180, 0.12);
  --rose: #e06c66;
  --rose-dim: rgba(224, 108, 102, 0.12);
  --graphite: #9a9aa0;
  --graphite-dim: rgba(154, 154, 160, 0.12);
  --amber-dim: rgba(229, 184, 92, 0.12);
  /* Code colours in the app (Vesper). */
  --c-tx: #ffffff;
  --c-kw: #a0a0a0;
  --c-fn: #ffc799;
  --c-str: #99ffe4;
  /* Each agent's accent as r g b (src/index.css): Claude's orange, Codex near-white. */
  --agent-claude: 217 119 87;
  --agent-claude-ink: #fff;
  --agent-codex: 232 232 236;
  --agent-codex-ink: #151517;
  --agent-gemini: 71 150 227;
  --agent-gemini-ink: #fff;
  --tc-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  /* The waitlist modal (src/index.css, .about): its greys at AA on --surface-2. */
  --modal-ink: #9a9a9d;
  --modal-note: #87878a;
  --scrim: rgba(10, 10, 10, 0.62);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background-color: var(--ground); }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background-color: var(--ground);
  color: var(--ink-soft);
  font-family: var(--label);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a:focus-visible { outline: 2px solid var(--main); outline-offset: 3px; border-radius: 2px; }

/* The page, on the ground, with no frame. The top margin is fixed, so the duck never moves. */
.page {
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 157px 24px 0;
}

.hero {
  width: 100%;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* The duck. The float and the shadow share one clock, so the shadow tightens as the duck rises. */
.mascot {
  position: relative;
  width: 100px;
  height: 124px;
  margin-bottom: 26px;
}
.duck {
  position: relative;
  z-index: 1;
  display: block;
  width: 100px;
  height: 100px;
  border-radius: 23px;
  box-shadow: 0 0 0 1px var(--line-strong);
  animation: float var(--float) var(--ease-float) infinite;
}
.shadow {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 80px;
  height: 11px;
  margin-left: -40px;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--duck-shadow), transparent);
  filter: blur(2px);
  animation: breathe var(--float) var(--ease-float) infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes breathe { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(0.8); opacity: 0.6; } }

/* The title and its line each sit on one line on a desktop; they wrap only on a phone. */
h1 {
  margin: 0;
  color: var(--ink);
  font-size: 40px;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
.lede {
  margin: 12px 0 0;
  color: var(--ink-mute);
  font-size: 17px;
  line-height: 1.55;
  text-wrap: balance;
}
@media (min-width: 720px) {
  h1, .lede { white-space: nowrap; }
}

/* The one button: filled, light on dark. */
.dl {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  margin-top: 30px;
  padding: 0 28px 0 24px;
  border-radius: 999px;
  background: var(--btn);
  color: var(--btn-ink);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 160ms ease;
}
.dl:hover { background: var(--btn-hover); }
.apple { fill: currentColor; margin-top: -2px; flex: none; }


/* The product: Story mode. download-story.js places the islands as the app does (storyLayout) and
   scales the scene to the width; the box keeps the scaled height. */
.story {
  position: relative;
  width: 100%;
  max-width: 1280px;
  margin: 104px 0 0;
  /* Its height before download-story.js lays it out, so the sections under it do not jump on load.
     The wide scene is 1280 by 476 at most (with step 2's card open); the narrow one stacks the steps,
     572 wide and 1370 tall at full size. download-story.js sets the exact height after. */
  aspect-ratio: 1280 / 476;
}
@media (max-width: 947px) { .story { aspect-ratio: 572 / 1370; max-height: 1370px; } }
.story .story-scene { position: absolute; left: 0; top: 0; transform-origin: 0 0; opacity: 0; }
.story .story-scene.laid { opacity: 1; transition: opacity 200ms var(--ease-out, ease-out); }
@media (prefers-reduced-motion: reduce) { .story .story-scene.laid { transition: none; } }
/* The canvas behind the app (src/App.tsx): minor lines every 40px, major every 200px. The box
   starts 56px above the story and is a whole number of cells tall (download-story.js sets --grid-h),
   and the lines start 20px in, so the top and bottom edges cut mid-cell and no line runs along
   them. Only the sides fade. Two layers: the dim one at rest, a brighter one that fades in while
   the reader works in the story (pointer over it, or focus inside it). */
.story::before, .story::after {
  content: "";
  position: absolute;
  top: -56px;
  left: -48px;
  right: -48px;
  height: var(--grid-h, calc(100% + 112px));
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--gm) 1px, transparent 1px),
    linear-gradient(90deg, var(--gm) 1px, transparent 1px),
    linear-gradient(var(--gn) 1px, transparent 1px),
    linear-gradient(90deg, var(--gn) 1px, transparent 1px);
  background-size: 200px 200px, 200px 200px, 40px 40px, 40px 40px;
  background-position: center 20px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent);
}
.story::before { --gn: var(--grid-minor); --gm: var(--grid-major); }
.story::after { --gn: var(--grid-minor-on); --gm: var(--grid-major-on); opacity: 0; transition: opacity 240ms var(--ease-out); }
.story .story-scene { z-index: 1; }
/* The story sits over the sections after it, so an open thread can hang over them. */
.story { z-index: 5; }

/* The app's own rules for Story (src/index.css), scoped to .rc. */
.rc { font-family: var(--label); color: var(--ink-soft); line-height: normal; font-size: 16px; }
.rc * { box-sizing: border-box; }
.rc .island { position: absolute; border: 1px solid var(--line); background: var(--island-bg); border-radius: 14px; padding: 20px 26px 0; font-family: var(--label); }
.rc .island.main { border-color: color-mix(in srgb, var(--main) 45%, transparent); }
.rc .island.sum-frame { padding: 26px; }
.rc .frame-label { position: absolute; left: 0; bottom: 100%; display: flex; align-items: center; gap: 10px; padding-bottom: 12px; white-space: nowrap; font-family: var(--label); }
.rc .frame-label .name { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 17.5px; font-weight: 500; color: var(--ink-soft); }
.rc .frame-label .name.main { color: var(--main-text); }
.rc .st { display: inline-grid; place-items: center; width: 24px; height: 24px; flex: 0 0 auto; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--pill); color: var(--ink); font-size: 11px; font-weight: 500; line-height: 1; }
.rc .frame-label .st { width: 30px; height: 30px; font-size: 14px; }
.rc .st.main, .rc .timeline .main .dot { background: var(--main-fill); border-color: color-mix(in srgb, var(--main) 60%, transparent); color: var(--main-ink); }
.rc .island-head { display: flex; flex-direction: column; gap: 6px; }
.rc .island .gt { font-size: 19px; font-weight: 500; letter-spacing: -0.005em; color: var(--ink); line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc .island .gs { font-size: 13px; line-height: 1.45; color: var(--ink-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc .island .to-check { align-self: flex-start; margin-top: 15px; display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 12px 0 10px; border-radius: 999px; background: var(--pill); border: 1px solid var(--line-strong); font-size: 12.5px; font-weight: 500; color: var(--ink); white-space: nowrap; }
.rc .check-icon { width: 14px; height: 14px; flex: 0 0 auto; }
.rc .island .to-check .check-icon { color: var(--ink-mute); }
.rc .cards { display: flex; flex-direction: column; gap: 18px; margin-top: 24px; padding-bottom: 26px; }
.rc .island-callers { padding: 0 0 26px; margin-top: -4px; }
.rc .sum-card { width: 440px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 20px 20px 18px; display: flex; flex-direction: column; gap: 18px; font-family: var(--label); }
.rc .sum-card .h { margin: 0 0 -8px; font-size: 17px; font-weight: 500; line-height: 1.3; letter-spacing: -0.005em; color: var(--ink); text-wrap: balance; }
.rc .sum-card .t { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--ink-mute); }
.rc .timeline { list-style: none; margin: 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; }
.rc .timeline li { position: relative; }
.rc .timeline li:not(:last-child)::before { content: ""; position: absolute; left: 11.5px; top: 24px; bottom: -4px; width: 1px; background: var(--line-strong); }
.rc .timeline .tl { display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 0 0 14px; border: 0; background: none; text-align: left; font: inherit; color: inherit; cursor: default; }
.rc .timeline li:last-child .tl { padding-bottom: 0; }
.rc .timeline .dot { flex: 0 0 auto; position: relative; z-index: 1; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--pill); color: var(--ink); font-size: 11px; font-weight: 500; }
.rc .timeline .what { display: flex; flex-direction: column; gap: 2px; padding-top: 2px; min-width: 0; }
.rc .timeline .name { font-size: 13px; line-height: 1.35; color: var(--ink-soft); }
.rc .timeline .on .name { color: var(--ink); }
.rc .timeline .kind { font-size: 11.5px; color: var(--ink-mute); }
.rc .timeline .main .kind { color: var(--main-text); }
.rc .conv-row { display: flex; align-items: center; gap: 8px; width: 100%; padding: 16px 0 0; border-top: 1px solid var(--line); color: var(--ink-mute); }
.rc .conv-name { font-size: 13px; line-height: 1.35; color: var(--ink-soft); }
.rc .conv-count { font-size: 12px; font-variant-numeric: tabular-nums; color: var(--ink-mute); }
.rc .conv-chev { margin-left: auto; flex: 0 0 auto; color: var(--ink-mute); }

.rc .frame { position: relative; display: flex; align-items: flex-start; gap: 22px; font-family: var(--mono); }
.rc .frame-box { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; width: 520px; box-shadow: var(--shadow-card); }
.rc .frame.current .frame-box { border-color: var(--main); }
.rc .frame-head { display: flex; gap: 12px; align-items: flex-start; position: relative; border-bottom: 1px solid var(--line); padding: 13px 14px 12px; }
.rc .frame-head .title { flex: 1 1 0%; min-width: 0; font-family: var(--label); font-weight: 500; font-size: 14.5px; line-height: 1.3; letter-spacing: -0.005em; color: var(--ink); text-wrap: balance; }
.rc .card-body { padding: 12px 14px 6px; font-family: var(--label); font-size: 12px; line-height: 1.6; display: flex; flex-direction: column; gap: 10px; }
.rc .card-body .lead { color: var(--ink-mute); }
.rc .card-body .points { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; }
.rc .card-body .points .k, .rc .card-body .points .v { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc .card-body .points .k { color: var(--ink-mute); }
.rc .card-body .points .v { color: var(--ink-soft); }
.rc .compact-meta { display: flex; align-items: center; flex-wrap: nowrap; gap: 6px 8px; padding: 8px 14px 11px; font-family: var(--label); font-size: 11px; color: var(--ink-mute); }
.rc .compact-meta > * { flex: 0 0 auto; }
.rc .ftype { flex: 0 0 auto; width: 18px; height: 18px; display: block; }
.rc .compact-meta .path { flex: 0 1 auto; min-width: 0; display: flex; font-family: var(--mono); font-size: 10.5px; white-space: nowrap; overflow: hidden; color: var(--ink-mute); }
.rc .compact-meta .path .dir { min-width: 0; overflow: hidden; text-overflow: ellipsis; flex: 0 999 auto; }
.rc .compact-meta .path .base { flex: 0 1 auto; min-width: 2ch; overflow: hidden; text-overflow: ellipsis; color: var(--ink-soft); font-weight: 500; }
.rc .compact-meta .grow { flex: 1 1 0%; }
.rc .compact-meta .delta { font-family: var(--mono); font-size: 10px; white-space: nowrap; }
.rc .compact-meta .delta .add { color: var(--add-bar); font-weight: 500; }
.rc .compact-meta .delta .del { color: var(--del-bar); font-weight: 500; }
.rc .chip { font-family: var(--label); font-size: 11px; font-weight: 500; display: inline-flex; align-items: center; gap: 5px; }
.rc .chip.open { color: var(--ink-soft); }
.rc .chip.open .check-icon { width: 13px; height: 13px; color: var(--ink-mute); }
.rc .open-code { display: inline-flex; align-items: center; gap: 3px; height: 20px; padding: 0 6px 0 8px; border-radius: 10px; border: 1px solid var(--line-strong); background: none; color: var(--ink-mute); font-family: var(--label); font-size: 10.5px; cursor: pointer; transition: color 150ms, border-color 150ms; }
.rc .open-code svg { width: 12px; height: 12px; }
.rc .open-code:hover { color: var(--ink); border-color: var(--ink-faint); }
.rc .open-code.mode-hop { padding: 0 7px; }
.rc .compact-meta .open-code { height: 21px; border-radius: 11px; }
.rc .compact-meta .chip { flex: none; }
.rc .ic-list { padding-top: 0; }
.rc .ic-head { display: flex; align-items: center; gap: 8px; width: calc(100% + 16px); height: 30px; margin: 0 -8px 6px; padding: 0 10px; border-radius: 6px; background: color-mix(in srgb, var(--ink) 3.5%, var(--ground)); color: var(--ink-mute); font-size: 12px; }
.rc .ic-count { color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.rc .ic-rule { flex: 1 1 0%; }
.rc .ic-caret { flex: 0 0 auto; color: var(--ink-faint); }
.rc .caller-row { display: grid; grid-template-columns: 16px auto minmax(0, 1fr) auto auto; align-items: center; column-gap: 10px; width: calc(100% + 16px); height: 30px; margin: 0 -8px; padding: 0 8px; border-radius: 6px; color: var(--ink-soft); }
.rc .cr-icon { width: 14px; height: 14px; }
.rc .cr-name { max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 12.5px var(--mono); color: var(--ink); }
.rc .cr-file { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 12px var(--mono); color: var(--ink-mute); }
.rc .cr-uses { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; color: var(--ink-mute); }
.rc .cr-code { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; margin-right: -4px; color: var(--ink-faint); }
.rc .step-wires { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.rc .step-wires path { fill: none; stroke: var(--ink-faint); stroke-width: 1.5; }

/* ---- A card opened into its code, as the app opens a Story card (src/index.css, FrameNode.tsx):
   the header stays, the code with its gutter, the checks under it, the footer last. ---- */
.rc .frame-box { transition: border-color 160ms; cursor: pointer; }
.rc .frame:hover .frame-box { border-color: var(--line-strong); }
.rc .frame.in-main.current .frame-box, .rc .frame.current .frame-box { border-color: var(--main); }
.rc .frame.opened .frame-box { cursor: default; }
.rc .frame.opened .frame-head, .rc .frame.opened .compact-meta { cursor: pointer; }
.rc .frame-box:has(.toggle:focus-visible) { outline: 2px solid var(--main); outline-offset: 3px; }
.rc .toggle:focus-visible { outline: none; color: var(--ink); border-color: var(--ink-faint); }
.rc .frame-box.sizing { overflow: hidden; transition: height 240ms var(--ease-out), border-color 160ms; }
.rc .frame.opened .card-body { display: none; }
.rc .frame:not(.opened) .open-body { display: none; }
.rc .frame.opened .compact-meta { border-top: 1px solid var(--line); padding-top: 10px; }
.rc button.open-code { margin: 0; }

.rc .frame-code { padding: 12px 0 10px; font-family: var(--mono); font-size: 11px; line-height: 18px; color: var(--c-tx); }
.rc .row { display: grid; grid-template-columns: 34px 12px minmax(0, 1fr); white-space: pre; position: relative; }
.rc .row .ln { text-align: right; padding: 1px 6px 0 0; color: var(--ink-mute); user-select: none; font-size: 10px; font-family: var(--label); }
.rc .row .sign { color: var(--ink-faint); user-select: none; }
.rc .row .src { overflow: hidden; text-overflow: clip; }
.rc .row.add, .rc .row.del { --bar: var(--add-bar); }
.rc .row.del { --bar: var(--del-bar); }
.rc .row.add::before, .rc .row.del::before { content: ""; position: absolute; left: 3px; top: 2px; bottom: 2px; width: 2px; border-radius: 1px; background: var(--bar); }
.rc .row.add { background: var(--add); }
.rc .row.add .sign { color: var(--add-bar); }
.rc .row.del { background: var(--del); }
.rc .row.del .sign { color: var(--del-bar); }
.rc .row.del .src { color: color-mix(in srgb, currentColor 90%, transparent); }
.rc .row .k { color: var(--c-kw); }
.rc .row .f { color: var(--c-fn); }
.rc .row .s { color: var(--c-str); }
.rc .row.has-comments { background: var(--graphite-dim); }
.rc .row.add.has-comments { background: linear-gradient(var(--graphite-dim), var(--graphite-dim)), var(--add); }
.rc .row.open { z-index: 5; }
.rc .row.anchored { background: var(--amber-dim); box-shadow: inset 1px 0 var(--amber), inset -1px 0 var(--amber); }
.rc .row.anchored.a-top { box-shadow: inset 1px 0 var(--amber), inset -1px 0 var(--amber), inset 0 1px var(--amber); }
.rc .row.anchored.a-bot { box-shadow: inset 1px 0 var(--amber), inset -1px 0 var(--amber), inset 0 -1px var(--amber); }

/* A comment on a row: the round bubble with the squared bottom-left corner at the row's right edge. */
.rc .row-bubble { position: absolute; top: -6px; right: 8px; width: 32px; height: 32px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 16px 16px 16px 4px; border: 1px solid var(--graphite); background: var(--graphite-dim); color: var(--ink-soft); cursor: pointer; font-family: var(--label); font-size: 10px; line-height: 1; z-index: 2; transition: border-color 140ms ease, background 140ms ease, transform 140ms ease; }
.rc .row-bubble img { width: 24px; height: 24px; border-radius: 50%; display: block; }
.rc .row-bubble:hover { transform: scale(1.06); }
.rc .row-bubble.on { border-color: var(--ink-mute); }
.rc .row-bubble.resolved { opacity: 0.45; filter: grayscale(1); }
.rc .row-bubble.resolved:hover, .rc .row-bubble.resolved.on { opacity: 0.9; filter: none; }
.rc .row-bubble:focus-visible { outline: 2px solid var(--main); outline-offset: 2px; }
.rc .row-bubble .n { position: absolute; top: -6px; right: -6px; background: var(--graphite); color: var(--ground); font-size: 10px; font-weight: 500; border-radius: 8px; padding: 2px 5px; }
.rc .chip.comments { color: var(--graphite); }
.rc .chip.comments .glyph { display: inline-block; width: 8px; height: 8px; border: 2px solid var(--graphite); border-radius: 50% 50% 50% 0; }
.rc .chip.done { color: var(--ink-mute); }
.rc .chip.done .check-icon { width: 13px; height: 13px; color: var(--ink-mute); }
.rc .chip.issue { color: var(--rose); }
.rc .chip.issue .glyph { display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: var(--rose); }
.rc .island .to-check.done { color: var(--ink-mute); background: none; border-color: var(--line); }
.rc .island .to-check.done .check-icon { color: var(--ink-faint); }

/* The thread box: from the bubble, 6px under it, over what lies below. */
.rc .thread { position: absolute; top: 32px; right: 6px; width: 460px; z-index: 20; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: var(--tc-shadow); padding: 16px 18px; font-family: var(--label); white-space: normal; display: flex; flex-direction: column; cursor: default; line-height: 1.4; transform-origin: top right; }
.rc .row .thread .thread-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; margin-right: -10px; padding-right: 10px; }
.rc .thread-list.above { -webkit-mask-image: linear-gradient(transparent, #000 28px); mask-image: linear-gradient(transparent, #000 28px); }
.rc .thread-list.below { -webkit-mask-image: linear-gradient(#000 calc(100% - 28px), transparent); mask-image: linear-gradient(#000 calc(100% - 28px), transparent); }
.rc .thread-list.above.below { -webkit-mask-image: linear-gradient(transparent, #000 28px, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(transparent, #000 28px, #000 calc(100% - 28px), transparent); }
.rc .row .thread .tc.compose, .rc .row .thread .tc-actions, .rc .row .thread .demo-note { flex: none; }
.rc .thread.sizing { overflow: hidden; transition: height 240ms var(--ease-out), opacity 200ms var(--ease-out); }
.rc .tc { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; padding: 14px 0; border-top: 1px solid var(--line); }
.rc .tc:first-child { padding-top: 0; border-top: 0; }
.rc .tc:last-child { padding-bottom: 0; }
.rc .tc.ask { row-gap: 12px; }
.rc .tc-avatar { width: 24px; height: 24px; border-radius: 50%; background: var(--surface-2); object-fit: cover; display: block; }
.rc .tc-avatar.agent { display: inline-flex; align-items: center; justify-content: center; color: rgb(var(--agent)); background: color-mix(in srgb, rgb(var(--agent)) 12%, var(--surface)); }
.rc .tc-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rc .tc-head { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--ink-mute); }
.rc .tc-head b { color: var(--ink); font-weight: 500; }
.rc .tc-head .gh { color: var(--ink-mute); margin-left: -2px; border-bottom: 1px solid var(--line-strong); }
.rc .tc-head .note { display: inline-flex; align-items: center; gap: 4px; color: var(--main); }
.rc .tc-head .note.sent, .rc .tc-head .note.term { color: var(--ink-mute); }
.rc .tc-head .note svg { flex: none; opacity: 0.85; }
.rc .tc-head .resolve { margin-left: auto; font-family: var(--label); font-size: 11px; font-weight: 500; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line-strong); background: none; color: var(--ink-soft); cursor: pointer; }
.rc .tc-head .resolve:hover { color: var(--ink); border-color: var(--ink-mute); }
.rc .tc-head .resolve.on { border-color: transparent; background: var(--graphite-dim); color: var(--ink-mute); }
.rc .tc-head .resolve.on::before { content: "\2713"; margin-right: 4px; }
/* A bot's comment, rendered as GitHub renders its markdown (src/index.css, .tc-body .md). */
.rc .tc-body .md p, .rc .tc-body .md h3 { margin: 0 0 8px; }
.rc .tc-body .md > :last-child { margin-bottom: 0; }
.rc .tc-body .md h3 { font-size: 1.04em; font-weight: 500; line-height: 1.3; color: var(--ink); }
.rc .tc-body .md strong { font-weight: 500; color: var(--ink); }
.rc .tc-body .md .sev { font-size: 12px; color: var(--ink-mute); }
.rc .tc-body .md em { font-style: italic; }
.rc .tc-body pre.code { margin: 8px 0; padding: 8px 10px; border-radius: 7px; background: var(--surface-2); font-family: var(--mono); font-size: 11.5px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--c-tx); }
.rc .tc-body pre.code .k { color: var(--c-kw); }
.rc .tc-body pre.code .f { color: var(--c-fn); }
.rc .tc-body pre.code .s { color: var(--c-str); }
.rc .tc-body pre.code:last-child { margin-bottom: 0; }
.rc .tc-body .after { display: block; }
.rc .thread-acts { display: flex; gap: 6px; margin-top: 8px; }
.rc .thread-acts .ghost { display: inline-flex; align-items: center; gap: 5px; font-family: var(--label); font-size: 11px; font-weight: 500; padding: 5px 11px; border-radius: 999px; cursor: pointer; background: none; border: 1px solid var(--line-strong); color: var(--ink-soft); }
.rc .thread-acts .ghost:hover { color: var(--ink); border-color: var(--ink-faint); }
.rc .thread-acts .ghost:focus-visible { outline: 2px solid var(--main); outline-offset: 2px; }
.rc .thread-acts .ghost.icon { padding: 0; width: 27px; justify-content: center; }
.rc .thread-acts .ghost svg { width: 12px; height: 12px; flex: none; }
.rc .tc-body .suggestion { margin: 2px 0 0; border-radius: 7px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.rc .tc-body .suggestion-label { display: block; padding: 6px 10px; font-size: 11px; color: var(--ink-mute); border-bottom: 1px solid var(--line); }
.rc .tc-body .suggestion pre { margin: 0; padding: 1px 10px 1px 6px; font-family: var(--mono); font-size: 11.5px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); }
.rc .tc-body .suggestion pre.s-del { background: var(--del); }
.rc .tc-body .suggestion pre.s-add { background: var(--add); }
.rc .tc-body .suggestion pre:last-of-type { padding-bottom: 4px; }
.rc .tc-body .suggestion-foot { display: flex; justify-content: flex-end; padding: 6px 8px; border-top: 1px solid var(--line); }
.rc .tc-body .suggestion.applied pre { opacity: 0.6; }
.rc .tc-body .suggestion-foot .applied { display: inline-flex; align-items: center; gap: 5px; margin-right: auto; padding: 2px 2px; font-size: 11px; color: var(--ink-mute); }
.rc .tc-body .suggestion .s-mark { display: inline-block; width: 14px; color: var(--ink-mute); user-select: none; }
.rc .tc-body .suggestion pre.s-del .s-mark { color: var(--del-bar); }
.rc .tc-body .suggestion pre.s-add .s-mark { color: var(--add-bar); }
.rc .tc-body .badge-link { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 6px; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--ink-soft); font-size: 11.5px; font-weight: 500; }
.rc .tc-body { font-size: 14px; line-height: 1.5; color: var(--ink-soft); overflow-wrap: anywhere; min-width: 0; }
.rc .tc-body code { font-family: var(--mono); font-size: 0.86em; padding: 1px 5px; border-radius: 4px; background: rgba(255, 255, 255, 0.06); }
.rc .tc.ask .tc-main:last-child .tc-body { background: rgb(var(--agent) / 0.03); border-radius: 8px; padding: 8px 10px; }
.rc .agent-claude { --agent: var(--agent-claude); --agent-ink: var(--agent-claude-ink); }
.rc .agent-codex { --agent: var(--agent-codex); --agent-ink: var(--agent-codex-ink); }
.rc .agent-gemini { --agent: var(--agent-gemini); --agent-ink: var(--agent-gemini-ink); }

/* The compose box under a thread (Thread.tsx, src/index.css). */
.rc .thread-list + .tc.compose { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; }
.rc .tc.compose { padding-bottom: 0; }
.rc .compose-main { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.rc .who-to { display: inline-flex; align-self: flex-start; gap: 2px; padding: 2px; border-radius: 7px; background: var(--surface-2); }
.rc .who-to button { display: inline-flex; align-items: center; padding: 3px 7px; border: 0; border-radius: 5px; background: none; color: var(--ink-mute); cursor: pointer; font-family: var(--label); }
.rc .who-to button svg { display: block; }
.rc .who-to button:hover { color: var(--ink-soft); }
.rc .who-to button.on { background: var(--surface-3); color: var(--ink); }
.rc .who-to button:focus-visible { outline: 2px solid var(--main); outline-offset: 1px; }
.rc .tc.compose.to-claude .who-to button.on { color: color-mix(in srgb, rgb(var(--agent)) 75%, white); }
.rc .tc textarea { display: block; width: 100%; min-height: 64px; margin: 0; resize: vertical; background: var(--surface-2); color: var(--ink); border: 1px solid transparent; border-radius: 8px; padding: 9px 12px; font-family: var(--label); font-size: 13px; line-height: 1.4; }
.rc .tc textarea::placeholder { color: var(--ink-mute); }
.rc .tc textarea:focus { outline: none; border-color: var(--line-strong); }
.rc .tc.compose.to-claude textarea { background: rgb(var(--agent) / 0.03); }
.rc .tc-actions { display: flex; align-items: center; gap: 8px; font-size: 10px; color: var(--ink-mute); margin-top: 10px; }
.rc .tc-actions .hint { flex: 1; }
.rc .tc-actions button { font-family: var(--label); font-size: 11px; font-weight: 500; padding: 6px 12px; border-radius: 6px; cursor: pointer; }
.rc .tc-actions button:focus-visible { outline: 2px solid var(--main); outline-offset: 2px; }
.rc .tc-actions .ghost { background: none; border: 1px solid var(--line-strong); color: var(--ink-soft); }
.rc .tc-actions .ghost:hover { color: var(--ink); border-color: var(--ink-faint); }
.rc .tc-actions .post { background: var(--ink); border: 0; color: var(--ground); }
.rc .tc-actions .post.ask { background: rgb(var(--agent)); color: var(--agent-ink); }
.rc .tc-actions .post:disabled { opacity: 0.4; cursor: default; }
.rc .demo-note { margin-top: 10px; padding: 8px 10px; border-radius: 7px; background: var(--surface-2); color: var(--ink-soft); font-size: 12px; line-height: 1.45; }
.rc [hidden] { display: none !important; }

/* The checks, under the code: Seyi's check, More for the why, Not an issue or Issue. */
.rc .rail.stacked { display: flex; flex-direction: column; gap: 6px; padding: 0 10px 10px; }
.rc .rail-item.check { position: relative; display: block; padding: 9px 10px; border-radius: 7px; border: 1px solid var(--line); font-family: var(--label); font-size: 12px; line-height: 1.4; color: var(--ink); cursor: default; transition: background 120ms, border-color 120ms; }
.rc .rail-item.check.shut { cursor: pointer; }
.rc .rail-item.check .q { font-weight: 500; font-size: 10.5px; letter-spacing: 0.005em; }
.rc .rail-item.check .q code { font-family: var(--mono); font-weight: 400; font-size: 10px; }
.rc .rail-item.check.checked { border-color: var(--teal); background: var(--teal-dim); }
.rc .rail-item.check.issue { border-color: var(--rose); background: var(--rose-dim); }
.rc .rail-item.check .why { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; margin-top: 8px; font-size: 12px; line-height: 1.5; }
.rc .rail-item.check.shut .why { display: none; }
.rc .rail-item.check .why .k { color: var(--ink-mute); }
.rc .rail-item.check .why .v { color: var(--ink-soft); }
.rc .rail-item.check .why .lines { font-family: var(--mono); font-size: 11px; color: var(--teal); }
.rc .rail-item.check .acts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 9px; }
.rc .rail-item.check .acts .grow { flex: 1 1 0%; }
.rc .rail-item.check .acts .open-code { padding: 0 8px; }
.rc .rail-item.check .acts .open-code.more { padding: 0 6px 0 8px; }
.rc .rail-item.check .acts .open-code.mode-hop { padding: 0 7px; }
.rc .rail-item.check .acts .open-code svg { width: 12px; height: 12px; }
.rc .rail-item.check .acts .ask-check { gap: 5px; }
.rc .rail-item.check.shut .ask-check { display: none; }
.rc .rail-item.check .acts .ask-check.on { color: var(--ink); border-color: var(--ink-faint); }
.rc .rail-item.check .issue-acts { justify-content: flex-end; margin-top: 6px; }
.rc .rail-item.check .issue-acts .open-code { display: inline-flex; align-items: center; gap: 5px; }
.rc .rail-item.check > .demo-note { margin-top: 8px; }
.rc .thread.inline { position: relative; top: auto; right: auto; width: auto; margin-top: 10px; box-shadow: none; padding: 12px; }
.rc .thread.inline .thread-list:empty { display: none; }
.rc .thread.inline .thread-list:empty + .tc.compose { border-top: 0; padding-top: 0; margin-top: 0; }
.rc .tc-head .discard { margin-left: auto; background: none; border: 0; color: var(--ink-mute); font-family: var(--label); font-size: 10px; cursor: pointer; padding: 2px 4px; border-radius: 3px; }
.rc .tc-head .discard:hover { color: var(--rose); background: var(--rose-dim); }
.rc .rail-item.check .acts .on.c { color: var(--teal); border-color: var(--teal); }
.rc .rail-item.check .acts .on.i { color: var(--rose); border-color: var(--rose); }
.rc .open-code:focus-visible { outline: 2px solid var(--main); outline-offset: 2px; }

/* A long thread scrolls inside its box (the app's 440 cap); the box you type in stays at the foot. */
.rc .row .thread .thread-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; margin-right: -10px; padding-right: 10px; }
.rc .thread-list.above { -webkit-mask-image: linear-gradient(transparent, #000 28px); mask-image: linear-gradient(transparent, #000 28px); }
.rc .thread-list.below { -webkit-mask-image: linear-gradient(#000 calc(100% - 28px), transparent); mask-image: linear-gradient(#000 calc(100% - 28px), transparent); }
.rc .thread-list.above.below { -webkit-mask-image: linear-gradient(transparent, #000 28px, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(transparent, #000 28px, #000 calc(100% - 28px), transparent); }
.rc .row .thread .tc.compose, .rc .row .thread .tc-actions, .rc .row .thread .demo-note { flex: none; }

@media (prefers-reduced-motion: reduce) {
  .story::after, .rc .frame-box.sizing, .rc .thread.sizing { transition: none; }
}

/* The close: a second download, over a large and faint tile scene. */
.closing {
  position: relative;
  width: 100%;
  max-width: 1280px;
  margin-top: 120px;
  padding: 88px 24px;
  text-align: center;
}
.closing-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.05;
  pointer-events: none;
  /* Clear behind the words, so the scene stays at the edges. */
  -webkit-mask-image: radial-gradient(ellipse 34% 60% at 50% 50%, transparent 40%, var(--ink) 100%);
  mask-image: radial-gradient(ellipse 34% 60% at 50% 50%, transparent 40%, var(--ink) 100%);
}
.closing-copy { position: relative; }
.closing h2 {
  margin: 0;
  color: var(--ink);
  font-size: 32px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.closing p {
  margin: 10px 0 0;
  color: var(--ink-mute);
  font-size: 16px;
  line-height: 1.55;
}
.closing .dl { margin-top: 26px; }

/* What it does: four tall cards in a row. The picture fills the top; the words sit at the foot,
   as on the portfolio's project cards, with the empty space between them on purpose. */
.features {
  width: 100%;
  max-width: 1280px;
  margin-top: 144px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.feat {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 400px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--card-shadow);
  transition: border-color 160ms ease;
}
.feat:hover { border-color: var(--line-strong); }
.feat:focus-visible { outline: 2px solid var(--main); outline-offset: 2px; }
/* The picture: a 3D shape in small isometric tiles, drawn by download-art.js on this canvas. */
.art {
  display: block;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
}
/* In a card the dots cover it all, words included; each line of words gets its own tight backing
   in the card's colour, so the dots show everywhere else, between the lines too. */
.feat .art { position: absolute; inset: 0; height: 100%; }
.txt { position: relative; flex: none; margin-top: auto; padding: 0 16px 22px; }
.txt .bk { background: var(--surface); padding: 2px 6px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.txt h2 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.005em;
}
.txt p {
  margin: 4px 0 0;
  color: var(--ink-mute);
  font-size: 13.5px;
  line-height: 1.45;
  text-wrap: balance; /* one line on a wide screen; it wraps rather than cut on a narrow one */
}

/* The agents it works with: their marks and names, in one grey. */
.used {
  width: 100%;
  max-width: var(--wide);
  margin-top: 136px;
  text-align: center;
}
.used-label { margin: 0; font: 500 13px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-mute); }
.closing p br.ph { display: none; }
/* A slow marquee, faded at both ends. It pauses on hover and stands still for reduced motion. */
.marquee {
  margin: 24px auto 0;
  max-width: 900px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, var(--ink) 12%, var(--ink) 88%, transparent);
  mask-image: linear-gradient(to right, transparent, var(--ink) 12%, var(--ink) 88%, transparent);
}
.names {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
  animation: marquee 40s linear infinite;
}
.marquee:hover .names { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.names li { flex: none; margin-right: 52px; }
.names li { display: flex; align-items: center; gap: 10px; height: 34px; }
/* Each agent's mark in the names' grey, the same optical size for all five. */
.agent-mark { display: block; flex: none; width: 22px; height: 22px; color: var(--ink-mute); }
/* opencode's solid frame reads larger than the line marks: a step smaller, so all five weigh the same. */
.agent-mark.oc { transform: scale(0.84); }
/* An agent's name beside its mark. */
.names span {
  color: var(--ink-mute);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

/* The footer: the wordmark in small iso tiles, dim, over three links and two round buttons. */
.foot {
  position: relative;
  width: 100%;
  margin-top: 88px;
}
/* The wordmark spans the page, gutter to gutter. download-footer.js sets its height from the word. */
.mark {
  display: block;
  width: 100%;
  height: 220px;
}
.foot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
  padding: 22px 0 32px;
  border-top: 1px solid color-mix(in srgb, var(--line) 50%, transparent);
  color: var(--ink-mute);
  font-size: 13px;
  line-height: 1.5;
}
/* Text links with a small line icon each, and round icon buttons on the right. */
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 26px; }
/* A link wraps whole, never inside its name. */
.foot-links a { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-weight: 500; color: var(--ink-mute); text-decoration: none; transition: color 200ms var(--ease-out, ease-out); }
.foot-links a:hover, .foot-links a:focus-visible { color: var(--ink); }
.foot-icons { display: flex; gap: 10px; }
.foot-icons a { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ink-mute); transition: color 200ms var(--ease-out, ease-out), border-color 200ms var(--ease-out, ease-out), background 200ms var(--ease-out, ease-out); }
.foot-icons a:hover, .foot-icons a:focus-visible { color: var(--ink); border-color: var(--ink-faint, var(--line-strong)); background: var(--surface); }
.foot-row svg { flex: none; }
.foot-row svg.ln { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.foot-row svg.fill { fill: currentColor; }

/* Between a desktop and a phone: two cards a row. */
@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .page { padding: 64px 16px 0; }
  .mascot { margin-bottom: 3px; transform: scale(0.76); transform-origin: 50% 100%; margin-top: -24px; }
  h1 { font-size: 25px; }
  .lede { font-size: 16px; max-width: 34ch; }
  .dl { margin-top: 26px; }
  .features { margin-top: 84px; }
  /* The cards hug each other, edge to edge: no gutters, no corners, one line between them. */
  .features { width: calc(100% + 32px); margin-left: -16px; margin-right: -16px; }
  .cards { grid-template-columns: 1fr; gap: 0; }
  .feat { height: 380px; border: 0; border-radius: 0; box-shadow: none; }
  .feat + .feat { border-top: 1px solid var(--line); }
  .feat:focus-visible { outline-offset: -2px; }
  .used { margin-top: 80px; }
  .story { margin-top: 72px; }
  .closing { margin-top: 72px; padding: 96px 8px; }
  .closing-art { left: -16px; right: -16px; width: calc(100% + 32px);
    -webkit-mask-image: radial-gradient(ellipse 46% 42% at 50% 50%, transparent 62%, var(--ink) 100%);
    mask-image: radial-gradient(ellipse 46% 42% at 50% 50%, transparent 62%, var(--ink) 100%); }
  .closing h2 { font-size: 22px; }
  .closing p br.ph { display: inline; }
  .closing p { font-size: 15px; }
  .names li { margin-right: 36px; }
  .names li { height: 24px; }
  .agent-mark { width: 18px; height: 18px; }
  .names span { font-size: 15px; }
  .foot { margin-top: 56px; }
  /* The wordmark runs edge to edge of the screen. */
  .mark { width: calc(100% + 32px); margin: 0 -16px; height: 60px; }
  /* Two columns: the links stacked on the left, the round buttons on the right. */
  .foot-row { flex-direction: row; flex-wrap: nowrap; align-items: center; justify-content: space-between; text-align: left; gap: 16px; padding-bottom: 26px; }
  .used-label { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .duck, .shadow { animation: none; }
  /* The marquee stands still: one copy, wrapped and centred. */
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .names { animation: none; width: auto; flex-wrap: wrap; justify-content: center; gap: 16px 40px; }
  .names li { margin-right: 0; }
  .names li[aria-hidden="true"] { display: none; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 640px) {
  .names { gap: 10px 26px; }
}

/* The footer links on a phone, beside the round buttons: three do not fit on one row at 390px,
   so the last one wraps to a second row, whole. */
@media (max-width: 640px) {
  .foot-links { min-width: 0; gap: 10px 20px; }
}

/* The story's graph paper stays inside the phone's width. */
@media (max-width: 640px) { .story::before, .story::after { left: -16px; right: -16px; } }

/* ---- The waitlist, as the site's Get the Mac app modal (review-canvas src/index.css, .about). ---- */
html.wl-open, html.wl-open body { overflow: hidden; }
.about-backdrop { position: fixed; inset: 0; z-index: 100; background: var(--scrim); display: flex; align-items: center; justify-content: center; padding: 24px; animation: wl-fade 160ms; }
.about { position: relative; width: 600px; max-width: 100%; max-height: min(85vh, 760px); display: flex; flex-direction: column; background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6); font-family: var(--label); overflow: hidden; animation: wl-rise 220ms var(--rise); text-align: left; }
.about .wl-body { overflow: auto; min-height: 0; }
.about:focus { outline: none; }
.about .wl-page { padding: 30px 34px 48px; display: flex; flex-direction: column; }
.about.stamped .wl-page { padding-bottom: 92px; }
.about.stamped .steps li:last-child { padding-right: 130px; }
.about .wl-duck { display: block; width: 44px; height: 44px; margin: 30px 34px -14px; border-radius: 11px; box-shadow: 0 0 0 1px var(--line-strong); }
.about h2 { margin: 0 0 12px; color: var(--ink); font-weight: 500; font-size: 22px; letter-spacing: -0.01em; }
.about p { margin: 0; color: var(--modal-ink); font-size: 14px; line-height: 1.55; }
.about .close { position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; background: none; border: 1px solid transparent; border-radius: 6px; color: var(--ink-mute); cursor: pointer; z-index: 1; }
.about .close:hover { border-color: var(--line-strong); color: var(--ink); }
.about .close:focus-visible, .about button:focus-visible, .about a:focus-visible { outline: 2px solid var(--main); outline-offset: 2px; }
/* Centred (Kadet): the duck, the title and the lead. The steps stay left-aligned. */
.about .wl-duck { margin-left: auto !important; margin-right: auto !important; }
.about h2, .about .wl-page > p { text-align: center; }
.about .wl-page > p { max-width: 600px; margin-left: auto; margin-right: auto; text-wrap: balance; }
.about .steps { margin: 30px 0 0; padding: 0; list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: 34px; }
.about .steps li { position: relative; padding-left: 34px; color: var(--modal-ink); font-size: 13px; line-height: 1.55; min-height: 22px; }
.about .steps li b { display: block; margin-bottom: 2px; color: var(--ink); font-weight: 500; }
.about .steps.joined li:not(:last-child)::after { content: ""; position: absolute; left: 11px; top: 27px; bottom: -30px; width: 1px; background: var(--line-strong); }
.about .steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--ink); font-size: 11px; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; }
.about .wl { display: flex; align-items: center; gap: 8px; margin: 16px 0 6px; max-width: 470px; padding: 6px 6px 6px 16px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; transition: border-color 120ms; }
.about .wl:focus-within { border-color: var(--ink-mute); }
.about .wl.bad, .about .wl.bad:focus-within { border-color: var(--rose); animation: wl-shake 320ms cubic-bezier(.36, .07, .19, .97); }
.about .wl input[type=email] { flex: 1; min-width: 0; height: 32px; background: none; border: 0; padding: 0; font: 13.5px var(--label); color: var(--ink); }
.about .wl input[type=email]:focus { outline: none; }
.about .wl input::placeholder, .about .wl-q input::placeholder { color: var(--ink-mute); }
.about .wl button { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 15px 0 18px; border-radius: 5px; background: var(--ink); color: var(--ground); border: 0; font: 500 12.5px var(--label); cursor: pointer; transition: opacity 120ms; }
.about .wl button:hover { opacity: 0.9; }
.about .wl button:disabled { opacity: 0.5; cursor: default; }
.about .wl-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.about .wl-note { margin-top: 2px; font-size: 12px; color: var(--modal-note); }
.about .wl-link { all: unset; cursor: pointer; color: var(--ink-mute); border-bottom: 1px solid var(--line-strong); }
.about .wl-link:hover { color: var(--ink); }
.about .wl-link:focus-visible { outline: 2px solid var(--main); outline-offset: 2px; }
.about .wl-wait { position: absolute; left: -3px; top: -2px; width: 28px; height: 28px; box-sizing: border-box; border-radius: 50%; border: 1.5px solid var(--amber-dim); border-top-color: var(--amber); animation: wl-spin 1.1s linear infinite; }
.about .wl-q { display: flex; flex-direction: column; gap: 8px; margin: 14px 0 4px; max-width: 470px; }
.about .wl-q label { color: var(--ink-soft); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.about .wl-q input { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; padding: 11px 12px; font: 13px var(--label); color: var(--ink); }
.about .wl-q input:focus { outline: none; border-color: var(--ink-mute); }
.about .wl-q-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.about .wl-q-foot .wl-note { margin: 0; }
.about .wl-q button { background: none; border: 1px solid var(--line-strong); color: var(--ink-soft); border-radius: 6px; padding: 6px 14px; font: 500 12px var(--label); cursor: pointer; }
.about .wl-q button:disabled { opacity: 0.5; cursor: default; }
.about .wl-err, .about .wl-q-foot .wl-note.wl-err { margin-top: 6px; font-size: 12px; color: var(--rose); }
.about .wl-q-foot .wl-note.wl-err { margin-top: 0; }
.about .wl-dl { display: inline-flex; align-items: center; gap: 8px; width: fit-content; margin-top: 12px; height: 36px; padding: 0 16px 0 14px; border-radius: 999px; background: var(--btn); color: var(--btn-ink); font-size: 13px; font-weight: 500; text-decoration: none; }
.about .wl-dl:hover { background: var(--btn-hover); }
.about .steps li .wl-dl { display: flex; }
.about.stamped { animation: wl-knock 260ms ease-out 330ms 1 both; }
.wl-stamp { position: absolute; right: 34px; bottom: 30px; pointer-events: none; transform: rotate(-12deg); }
.wl-stamp .seal { display: block; animation: wl-stamp 440ms cubic-bezier(.3, .6, .4, 1) both; }
.wl-stamp .seal-band { fill: var(--surface-2); }
@keyframes wl-stamp { 0% { opacity: 0; transform: scale(2.4) rotate(8deg); } 70% { opacity: 1; transform: scale(0.95) rotate(0deg); } 100% { opacity: 0.9; transform: scale(1); } }
@keyframes wl-knock { 0% { transform: none; } 30% { transform: translateY(2px) scale(0.997); } 100% { transform: none; } }
@keyframes wl-shake { 15%, 85% { transform: translateX(-2px); } 30%, 70% { transform: translateX(4px); } 45%, 55% { transform: translateX(-5px); } 50% { transform: translateX(5px); } }
@keyframes wl-spin { to { transform: rotate(360deg); } }
@keyframes wl-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes wl-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) {
  .about-backdrop { padding: 16px; align-items: flex-end; }
  .about { max-height: calc(100svh - 32px); }
  .about .wl-page { padding: 24px 20px 40px; }
  .about.stamped .wl-page { padding-bottom: 96px; }
  .about .wl-duck { margin: 24px 20px -10px; }
  .about .wl-q label { white-space: normal; }
  .wl-stamp { right: 18px; bottom: 16px; }
  .wl-stamp .seal { width: 104px; height: 104px; }
}
@media (prefers-reduced-motion: reduce) {
  .about-backdrop, .about, .about.stamped, .about .wl.bad, .wl-stamp .seal { animation: none; }
  .about .wl-wait { animation: none; border-color: var(--amber); }
}


/* The @ button copies the address: a small label rises over it for a moment. */
.foot-icons button { position: relative; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid var(--line-strong); border-radius: 999px; background: none; color: var(--ink-mute); cursor: pointer; transition: color 200ms var(--ease-out, ease-out), border-color 200ms var(--ease-out, ease-out), background 200ms var(--ease-out, ease-out); }
.foot-icons button:hover, .foot-icons button:focus-visible { color: var(--ink); border-color: var(--ink-faint); background: var(--surface); }
/* Copied: the @ turns into a check for a moment, then back (Kadet, 2026-10-25). The words stay for
   screen readers only. */
.foot-icons .copy-mail svg { transition: opacity 160ms var(--ease-out, ease-out), transform 160ms var(--ease-out, ease-out); }
.foot-icons .copy-mail .ok { position: absolute; opacity: 0; transform: scale(0.7); color: var(--add-bar); }
.foot-icons .copy-mail.did .at { opacity: 0; transform: scale(0.7); }
.foot-icons .copy-mail.did .ok { opacity: 1; transform: scale(1); }
.foot-icons .copied { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* The waitlist on a phone (Kadet, 2026-10-25): the modal fills the screen, square, inside the
   safe areas; the close button stays at the top right and the steps scroll under it. The form
   splits: the field is its own box, and Early access is a full-width button 10px below it. The
   field is 16px so iOS does not zoom in on focus. Desktop keeps the centred modal and one row. */
@media (max-width: 500px) {
  .about-backdrop { padding: 0; align-items: stretch; }
  .about { width: 100%; height: 100%; max-height: none; border: 0; border-radius: 0; box-shadow: none; padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
  .about .wl-body { flex: 1; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  .about .close { top: calc(12px + env(safe-area-inset-top)); right: calc(12px + env(safe-area-inset-right)); width: 36px; height: 36px; z-index: 1; }
  .about .wl-duck { margin-top: 56px; }
  .about .wl { flex-direction: column; align-items: stretch; gap: 10px; max-width: none; padding: 0; background: none; border: 0; border-radius: 0; }
  .about .wl.bad, .about .wl.bad:focus-within { border-color: transparent; }
  .about .wl input[type=email] { flex: none; height: 44px; padding: 0 14px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; font-size: 16px; transition: border-color 200ms var(--ease-out, ease-out); }
  .about .wl input[type=email]:focus { border-color: var(--ink-mute); }
  .about .wl.bad input[type=email] { border-color: var(--rose); }
  .about .wl button { justify-content: center; height: 44px; padding: 0 16px; border-radius: 10px; font-size: 14px; }
}

