/* dotpals landing page. Playful, crisp, dark or light. No build step. */

/* The palette. Dark is the default; the light values are further down.
   The selectors after :root are pictures of the real (dark) app: the notch, the
   story card, the dashboard frame, terminals and code. They keep the dark palette
   whichever theme the page is in. */
:root,
.notch, .screen, .story-card, .browser, .roundbar, .install, .code, .doc pre, .g-pre, .new-mock {
  --bg: #0b0a0e;
  --bg-2: #111016;
  --card: #15141b;
  --card-2: #1c1b23;
  --line: #2a2831;
  --line-2: #3a3843;
  --line-3: #55525f;
  --text: #f4f1ea;
  --muted: #b0acb8;
  --dim: #8c8896;
  --amber: #ffb547;
  --green: #4ade80;
  --red: #ff6b6b;
  --blue: #5aa9ff;
  --claude: #e2764a;
  --codex: #8fa6ff;
  --mine: #16c6ae;
  --accent: #ffcf5a;
  --wash: rgb(255 255 255 / .06);
  --wash-soft: rgb(255 255 255 / .03);
  color-scheme: dark;
}
.notch, .screen, .story-card, .browser, .roundbar, .install, .code, .doc pre, .g-pre, .new-mock { color: var(--text); }

/* Page-only tokens: these follow the page theme even inside the dark pictures
   (their drop shadows sit on the page). */
:root {
  --input: #07070a;
  --well: #07070a;
  --stage: #0e0d12;
  --body-text: #d9d5e0;
  --code-text: #eee9f5;
  --link: #ffd98a;
  --link-line: rgb(255 217 138 / .35);
  --quote-text: #f3d9a6;
  --mark: rgb(255 207 90 / .22);
  --head-bg: rgb(11 10 14 / .86);
  --dot: rgb(255 255 255 / .055);
  --glow: #1a1626;
  --solid-hover: #fff;
  --star-1: #2a2418; --star-2: #1a1710; --star-1h: #342c1b; --star-2h: #1f1a10;
  --star-line: #5a4a22; --star-text: #ffe6a8;
  --shadow: rgb(0 0 0 / .45);
  --notch-drop: 0 14px 40px rgb(0 0 0 / .55);
  --sun: block; --moon: none;
  --bubble-shadow: 0 6px 18px rgb(0 0 0 / .22);
  --bubble-filter: none;
}

/* Light: a warm paper page. Same values for "the OS prefers light" (unless the
   visitor picked dark) and "the visitor picked light". */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f6f2ea; --bg-2: #efeadf; --card: #fcfaf6; --card-2: #efe9de;
    --line: #e2dbce; --line-2: #d2c8b8; --line-3: #b3a893;
    --text: #1c1915; --muted: #57504a; --dim: #6b645b;
    --amber: #8f5400; --green: #17783a; --red: #c22b2b; --blue: #1f62c4;
    --claude: #a8481f; --codex: #4a5fd0; --mine: #08715f; --accent: #935a00;
    --wash: rgb(0 0 0 / .04); --wash-soft: rgb(0 0 0 / .025);
    --input: #fffdf9; --well: #fffdf9; --stage: #f0eadf; --body-text: #2f2a24; --code-text: #2a2520;
    --link: #8a5000; --link-line: rgb(138 80 0 / .35); --quote-text: #5c4210; --mark: rgb(255 184 40 / .35);
    --head-bg: rgb(246 242 234 / .86); --dot: rgb(70 50 20 / .09); --glow: #f7e6c6; --solid-hover: #000;
    --star-1: #fff6dc; --star-2: #fbe8b8; --star-1h: #fff1cc; --star-2h: #f8df9e;
    --star-line: #e0bf72; --star-text: #4f3500;
    --shadow: rgb(70 50 20 / .14);
    --notch-drop: 0 10px 28px rgb(40 30 15 / .22);
    --sun: none; --moon: block;
    --bubble-shadow: 0 4px 14px rgb(70 50 20 / .16);
    --bubble-filter: drop-shadow(0 0 .6px rgb(70 50 20 / .55));
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f6f2ea; --bg-2: #efeadf; --card: #fcfaf6; --card-2: #efe9de;
  --line: #e2dbce; --line-2: #d2c8b8; --line-3: #b3a893;
  --text: #1c1915; --muted: #57504a; --dim: #6b645b;
  --amber: #8f5400; --green: #17783a; --red: #c22b2b; --blue: #1f62c4;
  --claude: #a8481f; --codex: #4a5fd0; --mine: #08715f; --accent: #935a00;
  --wash: rgb(0 0 0 / .04); --wash-soft: rgb(0 0 0 / .025);
  --input: #fffdf9; --well: #fffdf9; --stage: #f0eadf; --body-text: #2f2a24; --code-text: #2a2520;
  --link: #8a5000; --link-line: rgb(138 80 0 / .35); --quote-text: #5c4210; --mark: rgb(255 184 40 / .35);
  --head-bg: rgb(246 242 234 / .86); --dot: rgb(70 50 20 / .09); --glow: #f7e6c6; --solid-hover: #000;
  --star-1: #fff6dc; --star-2: #fbe8b8; --star-1h: #fff1cc; --star-2h: #f8df9e;
  --star-line: #e0bf72; --star-text: #4f3500;
  --shadow: rgb(70 50 20 / .14);
  --notch-drop: 0 10px 28px rgb(40 30 15 / .22);
  --sun: none; --moon: block;
  --bubble-shadow: 0 4px 14px rgb(70 50 20 / .16);
  --bubble-filter: drop-shadow(0 0 .6px rgb(70 50 20 / .55));
  color-scheme: light;
}

:root {
  --f-display: "Bricolage Grotesque", ui-rounded, system-ui, sans-serif;
  --f-body: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;
  --f-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1180px;
  --r: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --spring: cubic-bezier(.3, 1.5, .5, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--f-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
/* A faint dot grid: it's called dotpals, after all. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 1px 1px, var(--dot) 1px, transparent 1.4px) 0 0 / 22px 22px,
    radial-gradient(1200px 700px at 50% -10%, var(--glow) 0%, transparent 60%),
    var(--bg);
  pointer-events: none;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
code, pre, kbd { font-family: var(--f-mono); font-variant-ligatures: none; } /* "--flag" must not become a dash */
p code, li code {
  font-size: .86em;
  padding: .1em .38em;
  border-radius: 6px;
  background: var(--card-2);
  border: 1px solid var(--line);
  white-space: nowrap;
}
b { font-weight: 600; }
h1, h2, h3 { font-family: var(--f-display); margin: 0; letter-spacing: -.025em; text-wrap: balance; }
h1 em, h2 em {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.01em;
  color: var(--accent);
}
h2 { font-size: clamp(2rem, 4.4vw, 3.5rem); line-height: 1.02; font-weight: 700; }
h3 { font-size: 1.2rem; line-height: 1.25; font-weight: 650; letter-spacing: -.01em; }
p { margin: 0 0 1rem; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--text); color: var(--bg); padding: .6rem 1rem; border-radius: 10px; font-weight: 600;
}
.skip:focus { top: 12px; }

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

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45em;
  min-height: 48px; padding: 0 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--card);
  color: var(--text);
  font: 600 1rem/1 var(--f-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s var(--ease), background .2s, border-color .2s;
  white-space: nowrap;
}
.btn:hover { background: var(--card-2); border-color: var(--line-3); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-sm { min-height: 38px; padding: 0 .95rem; font-size: .9rem; }
.btn-solid { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn-solid:hover { background: var(--solid-hover); border-color: var(--solid-hover); }
.btn-star {
  background: linear-gradient(180deg, var(--star-1), var(--star-2));
  border-color: var(--star-line);
  color: var(--star-text);
}
.btn-star:hover { border-color: var(--accent); background: linear-gradient(180deg, var(--star-1h), var(--star-2h)); }

/* ---------- header + notch ---------- */
.top {
  position: relative;
  z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
  padding: 0 var(--gutter);
  max-width: 1400px; margin: 0 auto;
}
.brand { display: inline-flex; align-items: flex-end; gap: .55rem; text-decoration: none; font: 700 1.2rem/1 var(--f-display); letter-spacing: -.02em; }
.brand dot-pal { --dp-size: 34px; }
.brand-name { padding-bottom: 5px; }
.nav { display: flex; align-items: center; gap: 1.2rem; font-size: .95rem; }
/* The docs link sits by the brand: the notch owns the middle of the bar. */
.top-docs {
  margin: 0 auto 0 .6rem; padding: .28rem .7rem; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--muted); text-decoration: none; font-size: .86rem; font-weight: 500;
}
.top-docs:hover { color: var(--text); border-color: var(--line-3); }
.nav a:not(.btn) { color: var(--muted); text-decoration: none; }
.nav a:not(.btn):hover { color: var(--text); }

.notch {
  --w: min(340px, calc(100vw - 440px));
  --open-w: min(480px, calc(100vw - 24px));
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: var(--w);
  min-width: 0;
  background: #000;
  border-radius: 0 0 22px 22px;
  box-shadow: 0 0 0 1px var(--wash), var(--notch-drop);
  transition: width .45s var(--spring), box-shadow .5s, border-radius .4s;
  z-index: 30;
  text-align: left;
}
/* Concave "shoulders" so it melts into the top edge like a real notch. */
.notch::before, .notch::after {
  content: ""; position: absolute; top: 0; width: 14px; height: 14px;
  background: radial-gradient(circle at 0 100%, transparent 13.5px, #000 14px);
}
.notch::before { left: -14px; transform: scaleX(-1); }
.notch::after  { right: -14px; }
.notch:hover, .notch:focus-within, .notch.open { width: var(--open-w); border-radius: 0 0 26px 26px; }
.notch-pill {
  display: flex; align-items: center; gap: .6rem;
  width: 100%; height: 40px;
  padding: 0 .75rem 0 1rem;
  background: none; border: 0; color: var(--text);
  font: 600 .86rem/1 var(--f-body);
  cursor: pointer;
  text-align: left;
  border-radius: 0 0 22px 22px;
}
.notch-pill:focus-visible { outline-offset: -3px; }
.notch-dots { display: inline-flex; gap: 3px; flex: none; align-items: center; margin-left: -4px; }
/* An agent's avatar: its pal peeking up inside a round badge in the agent's colour. */
.av { position: relative; flex: none; width: 24px; height: 24px; border-radius: 50%; overflow: hidden; display: inline-flex; align-items: flex-end; justify-content: center;
  background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--c) 34%, #1d1d24), #111116); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 70%, transparent);
  transition: box-shadow .3s; }
.av dot-pal { margin-bottom: -3px; pointer-events: none; }
.av dot-pal::part(bubble) { display: none; }
.av[data-s="waiting"] { box-shadow: inset 0 0 0 2px var(--amber), 0 0 10px color-mix(in srgb, var(--amber) 60%, transparent); }
.av[data-s="done"] { box-shadow: inset 0 0 0 1.5px var(--green); }
.av[data-s="idle"] { filter: saturate(.5) brightness(.8); }
.av.av-lg { width: 30px; height: 30px; }
.av.av-lg dot-pal { margin-bottom: -4px; }
.notch-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--c, #555); }
.notch-dots i[data-s="working"] { animation: nd-pulse 1.2s ease-in-out infinite; }
.notch-dots i[data-s="waiting"] { background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.notch-dots i[data-s="done"] { background: var(--green); }
.notch-dots i[data-s="idle"] { background: #3d3b44; }
@keyframes nd-pulse { 50% { opacity: .35; } }
.notch-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color .3s; }
.notch-ring { flex: none; width: 20px; height: 20px; }
.notch-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.notch-ring circle { fill: none; stroke: #2b2a31; stroke-width: 3; }
.notch-ring .v { stroke: var(--ring, var(--red)); stroke-dasharray: var(--v, 91) 100; stroke-linecap: round; }

.notch-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.notch:hover .notch-panel, .notch:focus-within .notch-panel, .notch.open .notch-panel { grid-template-rows: 1fr; }
.notch-inner { overflow: hidden; min-height: 0; }
.notch-agents { list-style: none; margin: 0; padding: .1rem .7rem .2rem; display: grid; gap: .45rem; }
.na {
  background: #141318; border-radius: 12px; padding: .6rem .8rem .65rem;
  font-size: .84rem; line-height: 1.35;
  transition: background .3s, box-shadow .3s;
}
.na-top { display: flex; align-items: center; gap: .45rem; margin-bottom: .25rem; }
.na-top i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; }
.na-top b { font-weight: 650; }
.na-top span { color: var(--dim); font-size: .78rem; }
.na-s { margin-left: auto; font-size: .78rem; color: var(--dim); }
.na[data-s="waiting"] .na-s { color: var(--amber); }
.na[data-s="waiting"] { box-shadow: inset 0 0 0 1px rgb(255 181 71 / .35); }
.na[data-s="waiting"] .na-top i { background: var(--amber); }
.na[data-s="done"] .na-s { color: var(--green); }
.na-line { color: #e9e6ef; }
.na-plan { display: flex; align-items: center; gap: .6rem; margin-top: .4rem; font-size: .74rem; color: var(--dim); }
.na-plan .bar { flex: 1; height: 4px; border-radius: 4px; background: #2a2930; overflow: hidden; }
.na-plan .bar i { display: block; height: 100%; width: var(--p); background: var(--claude); border-radius: inherit; transition: width .6s var(--ease); }
.notch-usage { padding: .6rem 1rem 1rem; }
.notch-usage h4 { margin: .2rem 0 .5rem; font: 600 .68rem/1 var(--f-body); letter-spacing: .09em; text-transform: uppercase; color: var(--dim); }
.u-row { display: grid; grid-template-columns: 7.2rem 1fr 2.6rem; align-items: center; gap: .1rem .7rem; font-size: .8rem; margin-bottom: .45rem; }
.u-row .bar { height: 6px; border-radius: 6px; background: #26252c; overflow: hidden; }
.u-row .bar i { display: block; height: 100%; width: var(--v); background: var(--green); border-radius: inherit; }
.u-row.hot .bar i { background: var(--red); }
.u-row b { text-align: right; font-variant-numeric: tabular-nums; }
.u-row small { grid-column: 2 / 4; color: var(--dim); font-size: .7rem; margin-top: -.15rem; }

/* tones */
.notch[data-tone="wait"] { box-shadow: 0 0 0 1px rgb(255 181 71 / .55), 0 0 28px rgb(255 181 71 / .45), var(--notch-drop); animation: glow-amber 1.6s ease-in-out infinite; }
.notch[data-tone="wait"] .notch-text { color: #ffd592; }
.notch[data-tone="done"] { animation: flash-green 1.4s ease-out; }
.notch[data-tone="done"] .notch-text { color: #9af0b8; }
@keyframes glow-amber {
  50% { box-shadow: 0 0 0 1px rgb(255 181 71 / .8), 0 0 44px rgb(255 181 71 / .65), var(--notch-drop); }
}
@keyframes flash-green {
  0%   { box-shadow: 0 0 0 1px rgb(74 222 128 / .9), 0 0 50px rgb(74 222 128 / .8), var(--notch-drop); }
  100% { box-shadow: 0 0 0 1px var(--wash), 0 0 0 rgb(74 222 128 / 0), var(--notch-drop); }
}

/* ---------- hero ---------- */
.hero { position: relative; padding-top: clamp(44px, 7vh, 96px); overflow: hidden; }
.hero-copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .35rem .85rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--wash-soft);
  color: var(--muted); font-size: .85rem; margin-bottom: 1.3rem;
}
.eyebrow a { color: var(--text); text-decoration: none; font-weight: 600; }
.eyebrow a:hover { text-decoration: underline; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgb(74 222 128 / .6); animation: ring 2s infinite; }
@keyframes ring { 70% { box-shadow: 0 0 0 8px rgb(74 222 128 / 0); } 100% { box-shadow: 0 0 0 0 rgb(74 222 128 / 0); } }
h1 {
  font-size: clamp(2.5rem, 6.2vw, 5.4rem);
  line-height: .98;
  font-weight: 750;
  letter-spacing: -.04em;
  max-width: 17ch;
}
h1 em { padding-right: .06em; }
.lede { max-width: 46rem; margin: 1.4rem auto 1.8rem; font-size: clamp(1.02rem, 1.4vw, 1.16rem); color: var(--muted); text-wrap: pretty; }
.lede-sm { color: var(--muted); max-width: 40rem; margin: 1rem auto 0; font-size: 1.08rem; }
.cta { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; align-items: center; }
.install {
  display: flex; align-items: center; gap: .6rem;
  min-height: 52px; max-width: 100%;
  padding: .35rem .4rem .35rem 1rem;
  border-radius: 14px;
  background: #07070a;
  border: 1px solid var(--line-2);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .04), 0 10px 30px var(--shadow);
  font-size: .92rem;
}
.install .prompt { color: var(--green); font-family: var(--f-mono); }
.install code { min-width: 0; overflow-x: auto; white-space: nowrap; scrollbar-width: none; padding: .3rem 0; }
.install code::-webkit-scrollbar { display: none; }
.copy-btn {
  flex: none;
  min-height: 40px; padding: 0 .9rem;
  border-radius: 10px; border: 1px solid var(--line-2);
  background: var(--card-2); color: var(--text);
  font: 600 .85rem/1 var(--f-body); cursor: pointer;
}
.copy-btn:hover { background: #26252e; } /* inside the dark terminal */
.copy-btn.ok { color: var(--green); border-color: rgb(74 222 128 / .5); }
.fine { margin-top: 1rem; color: var(--dim); font-size: .9rem; }
.fine code { font-size: .8rem; }
/* The visitor count under the install line (hidden until the number arrives). */
.visitors { display: inline-flex; align-items: center; gap: .45rem; margin-top: .8rem; padding: .3rem .8rem; border-radius: 999px; border: 1px solid var(--line); background: var(--wash-soft); color: var(--dim); font-size: .85rem; }
.visitors[hidden] { display: none; }
.visitors b { color: var(--text); font-variant-numeric: tabular-nums; }

/* ledge: pals peek over a line, like they do on your desktop */
.ledge { position: relative; margin-top: clamp(8px, 2vh, 40px); }
.ledge::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2) 15%, var(--line-3) 50%, var(--line-2) 85%, transparent);
}
.ledge-row { display: flex; justify-content: center; align-items: flex-end; gap: clamp(28px, 9vw, 140px); padding-top: 90px; }
.lp { margin: 0; position: relative; display: flex; flex-direction: column; align-items: center; }
.lp figcaption {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%);
  white-space: nowrap; font-size: .85rem; font-weight: 600; display: flex; align-items: center; gap: .4rem;
}
.lp figcaption span { color: var(--dim); font-weight: 400; }
i[style*="--c"] { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; }
.hero-ledge { padding-bottom: 0; margin-bottom: 70px; }
.hero-ledge::before {
  content: ""; position: absolute; left: 50%; bottom: 0; width: min(900px, 90vw); height: 140px; transform: translateX(-50%);
  background: radial-gradient(50% 100% at 50% 100%, rgb(255 207 90 / .08), transparent 70%);
  pointer-events: none;
}
dot-pal::part(bubble) { font-family: var(--f-body); font-weight: 600; box-shadow: var(--bubble-shadow); filter: var(--bubble-filter); }

/* ---------- theme toggle (landing nav and docs header) ---------- */
.theme-toggle {
  flex: none; display: inline-grid; place-items: center;
  width: 36px; height: 36px; padding: 0; border-radius: 999px;
  border: 1px solid var(--line-2); background: transparent; color: var(--muted);
  cursor: pointer; transition: color .2s, border-color .2s, background .2s;
}
.theme-toggle:hover { color: var(--text); border-color: var(--line-3); background: var(--wash-soft); }
.theme-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .i-sun { display: var(--sun); }
.theme-toggle .i-moon { display: var(--moon); }
.top > .theme-toggle { margin-right: .6rem; }

/* ---------- sections ---------- */
.section { padding: clamp(80px, 12vw, 150px) 0; position: relative; }
.kicker {
  display: inline-flex; align-items: center; gap: .6rem;
  font: 600 .8rem/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1.1rem;
}
.kicker span { color: var(--bg); background: var(--accent); padding: .28rem .4rem; border-radius: 6px; }
.head-center { text-align: center; max-width: 52rem; margin: 0 auto clamp(40px, 6vw, 64px); }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.copy h2 { margin-bottom: 1.4rem; }
.copy > p { color: var(--muted); }
.copy > p b { color: var(--text); }
.ticks { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; gap: .55rem; }
.ticks li { position: relative; padding-left: 1.6rem; color: var(--muted); }
.ticks li b { color: var(--text); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .52em; width: 10px; height: 10px; border-radius: 50%;
  background: var(--card-2); box-shadow: inset 0 0 0 2px var(--line-2);
}
.warn-ticks li::before { background: rgb(255 181 71 / .15); box-shadow: inset 0 0 0 2px var(--amber); }
b.amber { color: var(--amber) !important; }
b.green { color: var(--green) !important; }

.seg { display: inline-flex; flex-wrap: wrap; gap: .4rem; padding: .3rem; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); }
.seg button {
  min-height: 40px; padding: 0 .95rem; border-radius: 10px; border: 0;
  background: transparent; color: var(--muted); font: 600 .9rem/1 var(--f-body); cursor: pointer;
}
.seg button:hover { color: var(--text); background: var(--card-2); }
.seg button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.seg-sm button { min-height: 36px; padding: 0 .8rem; font-size: .85rem; }

/* ---------- new: was it really tested? ---------- */
.new-sec { padding-bottom: clamp(40px, 6vw, 80px); }
.new-sec .credit { color: var(--dim); font-size: .85rem; margin-top: .4rem; }
.new-sec .credit a { color: var(--muted); }
.new-mock {
  border-radius: 22px; padding: 1.1rem; display: grid; gap: .8rem;
  background: linear-gradient(180deg, #17161d, #121117);
  border: 1px solid var(--line); box-shadow: 0 30px 80px var(--shadow), inset 0 1px 0 rgb(255 255 255 / .04);
}
.nm-top { display: flex; justify-content: flex-end; }
.nm-seg { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; font-size: .78rem; }
.nm-seg > * { padding: .25rem .7rem; color: var(--muted); }
.nm-seg b { background: var(--line); color: var(--text); font-weight: 600; }
.nm-ask { border-left: 3px solid var(--claude); padding: .5rem .8rem; border-radius: 4px; background: var(--wash-soft); font-weight: 600; }
.nm-ask small { display: block; color: var(--dim); font-weight: 500; font-size: .75rem; margin-bottom: .15rem; }
.nm-line { margin: 0; display: flex; gap: .55rem; align-items: baseline; font-size: 1.02rem; }
.nm-line .x { color: var(--red); font-weight: 700; }
.nm-check { border: 1px solid var(--line); border-radius: 14px; padding: .8rem .9rem; display: grid; gap: .45rem; background: var(--bg-2); }
.nm-check p { margin: 0; }
.nm-label { font: 600 .72rem/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.nm-why { color: var(--muted); font-size: .92rem; }
.nm-why b { color: var(--green); }
.nm-check pre { margin: 0; padding: .6rem .75rem; border-radius: 10px; background: #0b0a0e; border: 1px solid var(--line); font: .8rem/1.5 var(--f-mono); color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.nm-verdict { font-size: .88rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.nm-verdict .badge { color: var(--red); background: rgb(255 107 107 / .14); border-radius: 6px; padding: .1rem .5rem; font-weight: 600; }

/* ---------- story ---------- */
.story { padding: clamp(40px, 8vw, 90px) 0 clamp(60px, 8vw, 100px); }
.story-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.story-copy { position: sticky; top: 16vh; padding-top: 2vh; }
.story-copy h2 { margin-bottom: 1.4rem; }
.story-copy > p { color: var(--muted); }
.story-track { position: relative; }
.story-live .story-track { height: 280vh; }
.story-sticky { position: sticky; top: max(12px, calc(50vh - 330px)); }
.story-card {
  position: relative;
  border-radius: 22px;
  background: linear-gradient(180deg, #17161d, #121117);
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px var(--shadow), inset 0 1px 0 rgb(255 255 255 / .04);
  overflow: hidden;
}
.sc-head {
  display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start;
  padding: 1.1rem 1.25rem 1rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgb(226 118 74 / .08), transparent 60%);
  box-shadow: inset 3px 0 0 var(--claude);
}
.sc-meta { display: flex; align-items: center; gap: .45rem; margin: 0 0 .35rem; font-size: .82rem; font-weight: 600; color: var(--muted); }
.sc-ask { margin: 0; font-weight: 600; line-height: 1.35; }
.sc-ask span { display: block; font-weight: 400; font-size: .78rem; color: var(--dim); }
.sc-count { margin: 0; text-align: right; flex: none; }
.sc-n { display: block; font: 700 1.9rem/1 var(--f-display); font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.sc-unit { font-size: .75rem; color: var(--dim); }
.sc-body { position: relative; height: min(572px, calc(100vh - 150px)); overflow: hidden; }
.story-live .sc-story { overflow-y: auto; scrollbar-width: thin; }
.sc-log {
  list-style: none; margin: 0; padding: .5rem 0;
  position: absolute; inset: 0 0 auto 0;
  font: 400 .76rem/24px var(--f-mono);
  will-change: transform;
  display: none;
}
.story-live .sc-log { display: block; }
.sc-log li { display: grid; grid-template-columns: 3.6rem 1fr auto; gap: .6rem; padding: 0 1.25rem; white-space: nowrap; color: #cfcbd6; }
.sc-log li > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; }
.sc-log .k { font-weight: 600; font-size: .66rem; letter-spacing: .04em; color: var(--kc, var(--dim)); }
.sc-log .ms { color: var(--dim); }
.sc-log .ok { color: var(--green); }
.sc-log .bad { color: var(--red); }
.sc-log li.hot { background: rgb(255 181 71 / .07); }
.sc-log li.hot > span:nth-child(2) { color: #ffd592; }
.sc-body::after { /* fade the log at the edges */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(#131218, transparent 14%, transparent 80%, #121117);
  opacity: 0; transition: opacity .3s;
}
.story-live .sc-body::after { opacity: 1; }
.story-live.compressed .sc-body::after { opacity: 0; }
.story-live .sc-log { transition: transform .1s linear, opacity .5s, clip-path .6s var(--ease), filter .5s; clip-path: inset(0 0 0 0); }
.story-live.compressed .sc-log { opacity: 0; filter: blur(6px); clip-path: inset(0 0 100% 0); }

.sc-story { padding: 1.1rem 1.25rem 1.2rem; }
.sc-says { font-size: .9rem; color: var(--muted); margin: 0 0 .9rem; padding-bottom: .9rem; border-bottom: 1px dashed var(--line); }
.sc-says b { color: var(--claude); }
.chapters { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .35rem; }
.ch {
  display: grid; grid-template-columns: 30px 1fr; column-gap: .75rem; align-items: center;
  padding: .55rem .7rem; border-radius: 12px; background: #1b1a21;
}
.ch-ico {
  grid-row: span 2; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  font-size: .9rem; font-weight: 700; background: color-mix(in srgb, var(--cc) 18%, transparent); color: var(--cc);
}
.ch[data-type="explore"] { --cc: #9aa4b8; }
.ch[data-type="change"]  { --cc: var(--amber); }
.ch[data-type="test"]    { --cc: var(--green); }
.ch[data-type="install"] { --cc: var(--blue); }
.ch[data-type="ship"]    { --cc: #c792ff; }
.ch-t { font-weight: 600; font-size: .98rem; line-height: 1.3; }
.ch-d { font-size: .8rem; color: var(--dim); line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.add { color: var(--green); font-family: var(--f-mono); font-size: .85em; }
.del { color: var(--red); font-family: var(--f-mono); font-size: .85em; }
.flags { border-radius: 12px; border: 1px solid rgb(255 181 71 / .3); background: rgb(255 181 71 / .06); padding: .7rem .85rem; }
.flags-h { margin: 0 0 .35rem; font: 600 .7rem/1 var(--f-body); letter-spacing: .09em; text-transform: uppercase; color: var(--amber); }
.flags ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; font-size: .88rem; }
.flags li { padding-left: 1.4rem; position: relative; }
.flags li::before { content: "⚠"; position: absolute; left: 0; color: var(--amber); }
.sc-pal { position: absolute; right: 18px; bottom: 0; line-height: 0; opacity: 0; transition: opacity .4s; pointer-events: none; }
.story-live .sc-pal { opacity: 1; }

/* the compress animation */
.story-live .sc-story { position: absolute; inset: 0; }
.story-live .sc-says, .story-live .ch, .story-live .flags {
  opacity: 0; transform: translateY(-18px) scaleY(.6); transform-origin: top;
  transition: opacity .45s var(--ease), transform .55s var(--spring);
}
.story-live.compressed .sc-says, .story-live.compressed .ch { opacity: 1; transform: none; }
.story-live.compressed .sc-says { transition-delay: .05s; }
.story-live.compressed .ch:nth-child(1) { transition-delay: .12s; }
.story-live.compressed .ch:nth-child(2) { transition-delay: .2s; }
.story-live.compressed .ch:nth-child(3) { transition-delay: .28s; }
.story-live.compressed .ch:nth-child(4) { transition-delay: .36s; }
.story-live.compressed .ch:nth-child(5) { transition-delay: .44s; }
.story-live.flagged .flags { opacity: 1; transform: none; }
.story-live.flagged .sc-pal { opacity: 0; }

/* ---------- notch section ---------- */
.screen {
  position: relative;
  min-height: 520px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background:
    radial-gradient(80% 70% at 80% 100%, rgb(143 166 255 / .16), transparent 60%),
    radial-gradient(70% 60% at 10% 90%, rgb(226 118 74 / .14), transparent 60%),
    linear-gradient(180deg, #16151c, #0f0e13);
  box-shadow: 0 30px 80px var(--shadow);
  overflow: hidden;
}
.screen-bar { position: absolute; top: 0; left: 0; right: 0; height: 28px; display: flex; gap: 6px; align-items: center; padding: 0 12px; }
.screen-bar span { width: 9px; height: 9px; border-radius: 50%; background: #2b2a32; }
.notch.notch-big { --w: min(360px, 82%); --open-w: min(440px, 94%); }
.screen-hint { position: absolute; top: 56px; left: 50%; transform: translateX(-50%); margin: 0; color: var(--dim); font: 400 .78rem/1 var(--f-mono); transition: opacity .3s; white-space: nowrap; }
.notch-big:hover ~ .screen-hint, .notch-big.open ~ .screen-hint { opacity: 0; }
.screen-shot { position: absolute; right: 18px; bottom: 18px; margin: 0; width: min(300px, 58%); transform: rotate(2deg); transition: transform .4s var(--ease), opacity .3s; }
.screen-shot img { border-radius: 12px; box-shadow: 0 20px 50px rgb(0 0 0 / .6), 0 0 0 1px rgb(255 255 255 / .08); }
.screen-shot figcaption { font-size: .78rem; color: var(--dim); margin-top: .5rem; text-align: right; }
.notch-big:hover ~ .screen-shot, .notch-big.open ~ .screen-shot, .notch-big:focus-within ~ .screen-shot { opacity: .15; }
.notch-sec .seg { margin-top: .4rem; }

/* ---------- agents ---------- */
.agents-stage { position: relative; max-width: 760px; margin: 0 auto 56px; }
.agents-stage::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-3) 20%, var(--line-3) 80%, transparent);
}
.roundbar {
  display: flex; justify-content: center; gap: .35rem;
  width: max-content; max-width: 100%; margin: 0 auto;
  padding: .3rem; border-radius: 999px; background: #000; border: 1px solid var(--line);
  font-size: .82rem; font-weight: 600;
}
.roundbar span { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .75rem; border-radius: 999px; background: #17161c; }
.agents-row { gap: clamp(16px, 6vw, 72px); padding-top: 64px; }
.agents-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 16px; }
.acard-try { grid-column: 2; grid-row: 1 / span 2; }
.acard {
  border-radius: var(--r); padding: 1.4rem; background: var(--card); border: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.acard h3 { margin-bottom: .6rem; }
.acard p { color: var(--muted); font-size: .96rem; }
.acard-foot { margin-top: .4rem; margin-bottom: 0 !important; font-size: .82rem !important; color: var(--green) !important; font-weight: 600; }
.acard-foot::before { content: "✓ "; }
.try textarea {
  width: 100%; resize: vertical; min-height: 76px;
  padding: .7rem .8rem; border-radius: 10px;
  background: var(--input); color: var(--text); border: 1px solid var(--line-2);
  font: 400 .82rem/1.5 var(--f-mono);
}
.try-row { display: flex; gap: .6rem; align-items: flex-start; justify-content: space-between; margin-top: .6rem; }
.chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.chips button {
  min-height: 32px; padding: 0 .65rem; border-radius: 8px;
  background: var(--card-2); color: var(--muted); border: 1px solid var(--line);
  font: 500 .76rem/1 var(--f-mono); cursor: pointer;
}
.chips button:hover { color: var(--text); border-color: var(--line-2); }
.try-out { min-height: 1.4em; margin: .6rem 0 0; font: 400 .78rem/1.4 var(--f-mono); color: var(--dim); }
.try-out.err { color: var(--red); }

/* ---------- mixer ---------- */
.mixer {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 0;
  border-radius: 24px; border: 1px solid var(--line); background: var(--card); overflow: hidden;
}
.mix-stage {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 1rem;
  padding: 2rem 1.5rem 1.6rem;
  background:
    radial-gradient(60% 50% at 50% 70%, color-mix(in srgb, var(--mix, #16c6ae) 22%, transparent), transparent 70%),
    var(--stage);
  border-right: 1px solid var(--line);
  transition: background .5s;
}
.mix-ledge { position: relative; padding-top: 110px; width: 100%; display: flex; justify-content: center; }
.mix-ledge::after { content: ""; position: absolute; left: 8%; right: 8%; bottom: 0; height: 1px; background: var(--line-3); }
.mix-name { margin: 0; font: 700 1.6rem/1 var(--f-display); letter-spacing: -.02em; }
.mix-controls { padding: 1.4rem 1.5rem 1.5rem; display: grid; gap: 1rem; align-content: start; min-width: 0; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font: 600 .72rem/1 var(--f-body); letter-spacing: .09em; text-transform: uppercase; color: var(--dim); margin-bottom: .55rem; padding: 0; }
.opts { display: flex; flex-wrap: wrap; gap: .35rem; }
.opts label { position: relative; }
.opts input[type="radio"] { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opts label span {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 .8rem; border-radius: 10px;
  background: var(--card-2); border: 1px solid var(--line); color: var(--muted);
  font-size: .88rem; font-weight: 500; transition: background .15s, color .15s, border-color .15s;
}
.opts label:hover span { color: var(--text); border-color: var(--line-2); }
.opts input:checked + span { background: var(--text); color: var(--bg); border-color: var(--text); font-weight: 600; }
.opts input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.colors { align-items: center; }
.swatch { width: 32px; height: 32px; border-radius: 50%; border: 2px solid transparent; background: var(--s); cursor: pointer; padding: 0; box-shadow: inset 0 0 0 2px rgb(0 0 0 / .25); }
.swatch[aria-pressed="true"] { border-color: var(--text); }
.color-pick { position: relative; width: 32px; height: 32px; border-radius: 50%; overflow: hidden; background: conic-gradient(#ff5f5f, #ffc21a, #8be22e, #16c6ae, #1e88ff, #9d6bff, #ff2fc4, #ff5f5f); border: 2px solid var(--line-2); }
.color-pick input { position: absolute; inset: -8px; width: 48px; height: 48px; opacity: 0; cursor: pointer; }
.color-pick:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.mix-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .8rem; }
.field { display: grid; gap: .35rem; flex: 1 1 140px; }
.field span { font: 600 .72rem/1 var(--f-body); letter-spacing: .09em; text-transform: uppercase; color: var(--dim); }
.field input {
  min-height: 44px; padding: 0 .8rem; border-radius: 10px; border: 1px solid var(--line-2);
  background: var(--input); color: var(--text); font: 500 1rem/1 var(--f-body); width: 100%;
}
.check { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; color: var(--muted); font-weight: 500; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.code {
  margin: 0; padding: .9rem 1rem; border-radius: 12px; background: #07070a; border: 1px solid var(--line);
  font-size: .78rem; line-height: 1.55; color: #d9d5e0; white-space: pre-wrap; word-break: break-word;
}
.code .s { color: #9af0b8; }
.code .k { color: #c792ff; }
.code .f { color: #8fc1ff; }
.code .c { color: var(--dim); }
.notch-text .dim { color: var(--dim); font-weight: 500; }

/* ---------- dashboard ---------- */
.browser { border-radius: 16px; border: 1px solid var(--line); background: #0d0c11; overflow: hidden; box-shadow: 0 40px 90px var(--shadow); }
.browser-bar { display: flex; align-items: center; gap: 1rem; padding: .55rem .8rem; border-bottom: 1px solid var(--line); background: #131218; }
.browser-dots { display: inline-flex; gap: 6px; }
.browser-dots i { width: 10px; height: 10px; border-radius: 50%; background: #2d2c34; }
.tabs { display: inline-flex; gap: .25rem; }
.tabs button {
  min-height: 34px; padding: 0 .9rem; border-radius: 8px; border: 0; background: transparent;
  color: var(--muted); font: 600 .86rem/1 var(--f-body); cursor: pointer;
}
.tabs button[aria-selected="true"] { background: var(--card-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.browser-url { margin-left: auto; font: 400 .76rem/1 var(--f-mono); color: var(--dim); padding: .45rem .8rem; border-radius: 8px; background: #0b0a0e; }
.feats { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feats li { padding: 1.1rem 1.2rem; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.feats h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.feats p { margin: 0; color: var(--muted); font-size: .93rem; line-height: 1.5; }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 3vw, 32px); margin-top: clamp(40px, 6vw, 72px); max-width: 980px; margin-left: auto; margin-right: auto; }
.shots figure { margin: 0; }
.shots img { border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 20px 50px var(--shadow); }
.shots figure:nth-child(1) { transform: rotate(-1.5deg); }
.shots figure:nth-child(3) { transform: rotate(1.5deg); }
.shots figcaption { margin-top: .8rem; font-size: .88rem; color: var(--dim); text-align: center; }
.shots figcaption b { color: var(--text); margin-right: .3rem; }

/* ---------- private ---------- */
.two-rev .copy { order: 0; }
.os { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.os li { padding: .45rem .95rem; border-radius: 999px; border: 1px solid var(--line-2); font-weight: 600; font-size: .9rem; }
.machine {
  position: relative;
  display: grid; grid-template-columns: auto 1fr auto 44px auto; align-items: center; gap: 0;
  padding: 3.2rem 1.6rem 2rem;
  border-radius: 24px;
  border: 1.5px dashed var(--line-3);
  background: radial-gradient(70% 80% at 50% 50%, rgb(22 198 174 / .07), transparent 70%);
}
.machine-tag {
  position: absolute; top: -.8rem; left: 1.4rem; margin: 0;
  padding: .25rem .7rem; border-radius: 999px; background: var(--bg); border: 1px solid var(--line-3);
  font: 600 .74rem/1 var(--f-mono); color: var(--muted); letter-spacing: .04em;
}
.m-col { display: grid; gap: .6rem; }
.m-src span, .m-out > span:last-child {
  display: inline-flex; align-items: center; gap: .45rem; padding: .55rem .8rem; border-radius: 10px;
  background: var(--card); border: 1px solid var(--line); font-size: .88rem; font-weight: 600; white-space: nowrap;
}
.m-wire { width: 100%; min-width: 48px; align-self: stretch; height: auto; overflow: visible; }
.m-wire path { fill: none; stroke: var(--mine); stroke-opacity: .75; stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-dasharray: 3 6; animation: flow 1.1s linear infinite; }
.m-wire-1 { align-self: center; height: 10px; }
@keyframes flow { to { stroke-dashoffset: -9; } }
.m-bridge {
  display: grid; gap: .2rem; text-align: center; padding: 1rem 1.1rem; border-radius: 14px;
  background: var(--well); border: 1px solid var(--mine); box-shadow: 0 0 30px rgb(22 198 174 / .18);
}
.m-bridge b { font: 700 1.05rem/1 var(--f-display); }
.m-bridge span { font: 400 .76rem/1 var(--f-mono); color: var(--muted); }
.m-out { justify-items: center; }
.m-pal { line-height: 0; border-bottom: 1px solid var(--line-3); padding: 0 8px; }

/* ---------- final ---------- */
.final { position: relative; padding: clamp(80px, 12vw, 140px) 0 0; text-align: center; overflow: hidden; }
.final h2 { font-size: clamp(2.4rem, 6vw, 4.8rem); }
.final .lede-sm { margin-bottom: 2rem; }
.final::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(50% 60% at 50% 100%, rgb(255 207 90 / .1), transparent 70%);
}
.crew { display: flex; justify-content: center; align-items: flex-end; gap: clamp(4px, 2vw, 28px); margin-top: 72px; border-bottom: 1px solid var(--line-3); padding-top: 40px; flex-wrap: nowrap; overflow: hidden; }
.foot { padding: 32px 0 48px; }
.foot-inner { display: grid; gap: .6rem; text-align: center; justify-items: center; }
.foot p { margin: 0; }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.4rem; }
.foot nav a { color: var(--muted); text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.foot nav a:hover { color: var(--text); text-decoration: underline; }

/* offscreen sections skip rendering work */
.dash-sec, .private-sec { content-visibility: auto; contain-intrinsic-size: auto 1200px; }

/* ---------- responsive ---------- */
@media (max-width: 1360px) {
  .nav a:not(.btn) { display: none; }
  .notch { --w: min(380px, calc(100vw - 440px)); }
}
@media (max-width: 960px) {
  .top-docs { padding: .28rem .2rem; border-color: transparent; }
  .two, .story-grid { grid-template-columns: minmax(0, 1fr); }
  .story-copy { position: static; }
  .agents-grid { grid-template-columns: 1fr 1fr; }
  .acard-try { grid-column: 1 / -1; grid-row: auto; }
  .mixer { grid-template-columns: minmax(0, 1fr); }
  .mix-stage { border-right: 0; border-bottom: 1px solid var(--line); }
  .feats { grid-template-columns: 1fr 1fr; }
  .screen { min-height: 480px; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 1rem; }
  .top { height: 56px; }
  .brand-name, .hide-sm, .top-docs { display: none; }
  .notch { --w: calc(100vw - 224px); --open-w: calc(100vw - 16px); }
  /* Room for the theme button by the brand and the Star button on the right. */
  .top > .theme-toggle { margin: 0 auto 0 .4rem; width: 30px; height: 30px; }
  .top > .theme-toggle svg { width: 15px; height: 15px; }
  .nav .btn-sm { padding: 0 .75rem; }
  .notch-pill { padding: 0 .6rem 0 .75rem; font-size: .78rem; height: 36px; gap: .45rem; }
  .notch-ring { width: 16px; height: 16px; }
  .notch.notch-big { --w: 86%; --open-w: 96%; }
  .hero { padding-top: 56px; }
  .install { width: 100%; font-size: .8rem; padding-left: .8rem; }
  .cta .btn-star { width: 100%; }
  .ledge-row { gap: 22px; padding-top: 84px; }
  .hero .lp dot-pal { --dp-size: 118px; }
  .lp-3 { display: none; }
  .hero-ledge { margin-bottom: 60px; }
  .lp figcaption { font-size: .78rem; }
  .story-live .story-track { height: 240vh; }
  .sc-body { height: min(560px, 70vh); }
  .sc-count .sc-n { font-size: 1.5rem; }
  .ch-d { white-space: normal; }
  .agents-grid { grid-template-columns: 1fr; }
  .agents-row dot-pal { --dp-size: 92px; }
  .roundbar { font-size: .74rem; }
  .roundbar span { padding: .3rem .55rem; }
  .try-row { flex-direction: column; align-items: stretch; }
  .try-row .btn { width: 100%; }
  .mix-stage dot-pal { --dp-size: 190px; }
  .mix-controls { padding: 1.2rem 1rem 1.2rem; }
  .feats { grid-template-columns: 1fr; }
  .shots { grid-template-columns: 1fr 1fr; }
  .shots figure:nth-child(3) { display: none; }
  .browser-url { display: none; }
  .screen { min-height: 460px; }
  .screen-shot { width: 64%; }
  .machine { grid-template-columns: 1fr; justify-items: center; padding: 2.4rem 1rem 1.6rem; gap: .2rem; }
  .m-src { grid-auto-flow: row; justify-items: center; }
  .machine { gap: 34px; }
  .m-wire { display: none; }
  .m-bridge, .m-out { position: relative; }
  .m-bridge::before, .m-out::before { content: ""; position: absolute; left: 50%; top: -30px; height: 26px; border-left: 2px dashed var(--mine); opacity: .7; }
  .crew dot-pal { --dp-size: 64px; }
  .crew dot-pal:nth-child(n+6) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .notch[data-tone="wait"] { animation: none; }
}
.try-label { margin: 1rem 0 .5rem !important; font-size: .86rem !important; }
.acard .code { font-size: .74rem; }
.install { min-width: 0; }
.hero-copy .cta { width: 100%; }
.acard .code { white-space: pre; overflow-x: auto; word-break: normal; }
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .install code { white-space: normal; overflow-wrap: anywhere; line-height: 1.5; text-align: left; }
  .sc-says { font-size: .84rem; margin-bottom: .7rem; padding-bottom: .7rem; }
  .ch { padding: .45rem .6rem; column-gap: .6rem; }
  .ch-t { font-size: .92rem; }
  .sc-story { padding: .9rem 1rem 1rem; }
  .sc-head { padding: .9rem 1rem .8rem; }
  .mix-ledge { padding-top: 76px; }
  .mix-stage { padding: 1.2rem 1rem 1.2rem; }
}
.acard { min-width: 0; }
@media (max-width: 640px) { .agents-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .feats { grid-template-columns: 1fr 1fr; gap: 10px; } .feats li { padding: .9rem; } .feats p { font-size: .86rem; } }
.lede-sm code { font-size: .86em; padding: .1em .38em; border-radius: 6px; background: var(--card-2); border: 1px solid var(--line); }
