/* Agent Neo's website. The app's ink and paper; lime only where the agent
   stops and waits for you. */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Martian Mono";
  src: url("fonts/martian-mono-latin.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --paper: #edf0ee;
  --surface: #f9faf9;
  --inset: #e3e8e6;
  --ink: #0f2633;
  --ink-2: #183747;
  --slate: #536671;
  --rule: #c6d0d2;
  /* Lime: fills carry ink text; lines and text use the deeper tones so
     they hold up on paper. */
  --signal: #a3e635;
  --signal-line: #65a30d;
  --signal-text: #3f6212;
  --signal-wash: #ecfccb;
  --stop: #b42318;

  /* The harness section and code blocks: ink, in both themes. */
  --deep: #0f2633;
  --deep-2: #163343;
  --deep-line: #2b4b5b;
  --deep-text: #e6ecea;
  --deep-muted: #9fb3bb;

  --btn-bg: #0f2633;
  --btn-text: #f9faf9;
  --focus: #0f2633;

  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Martian Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --wrap: 74rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --header: 4rem;
  color-scheme: light;
}

/* The theme is chosen per page (data-theme on <html>) and by the toggle in
   the header, not by the system setting. */
:root[data-theme="dark"] {
    color-scheme: dark;
    --paper: #0c1e28;
    --surface: #122a37;
    --inset: #0f2430;
    --ink: #e6ecea;
    --ink-2: #c9d4d6;
    --slate: #93a7af;
    --rule: #24414f;
    --signal: #a3e635;
    --signal-line: #a3e635;
    --signal-text: #bef264;
    --signal-wash: #1f2b12;
    --stop: #ff8a80;
    --deep: #071621;
    --deep-2: #0d2230;
    --deep-line: #24414f;
    --btn-bg: #e6ecea;
    --btn-text: #0f2633;
    --focus: #e6ecea;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header) + 1rem);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 750; letter-spacing: -0.01em; line-height: 1.15; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 3px; }
code, kbd, pre { font-family: var(--mono); }
:not(pre) > code {
  font-size: 0.82em;
  padding: 0.12em 0.36em;
  border-radius: 5px;
  background: var(--inset);
  overflow-wrap: anywhere;
}
code.nw { white-space: nowrap; }
strong { font-weight: 700; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip {
  position: absolute; left: 1rem; top: -3rem; z-index: 50;
  background: var(--btn-bg); color: var(--btn-text);
  padding: 0.5rem 0.9rem; border-radius: 8px; text-decoration: none;
}
.skip:focus { top: 0.75rem; }

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

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; height: var(--header);
}
.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-weight: 800; font-stretch: 115%; font-size: 1.05rem;
  letter-spacing: -0.01em; text-decoration: none; white-space: nowrap;
}
.brand img { width: 34px; height: 34px; border-radius: 8px; box-shadow: 0 0 0 1px var(--rule); }
.nav { display: flex; align-items: center; gap: clamp(0.9rem, 2.5vw, 1.75rem); font-size: 0.95rem; }
.nav a { color: var(--slate); text-decoration: none; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav .nav-gh { display: inline-flex; align-items: center; gap: 0.4rem; }
.nav .nav-gh svg { width: 18px; height: 18px; }
.theme-toggle {
  display: inline-grid; place-items: center;
  width: 2.25rem; height: 2.25rem; padding: 0;
  border: 1px solid var(--rule); border-radius: 50%;
  background: transparent; color: var(--slate);
  cursor: pointer;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--slate); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (max-width: 560px) {
  .nav .nav-hide-sm { display: none; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 3rem; padding: 0.75rem 1.3rem;
  border-radius: 10px; border: 1px solid transparent;
  font-weight: 650; font-size: 1rem; line-height: 1.2;
  text-decoration: none; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--btn-bg); color: var(--btn-text); }
.btn-primary:hover { background: color-mix(in srgb, var(--btn-bg) 85%, var(--paper)); }
.btn-quiet { border-color: var(--rule); color: var(--ink); }
.btn-quiet:hover { border-color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Shared section furniture ---------- */

.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section.flush-top { padding-top: 0; }
.section-head { max-width: 44rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.display-2 {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 800; font-stretch: 112%;
  line-height: 1.02; letter-spacing: -0.025em;
  margin-bottom: 1.1rem;
}
.lede { font-size: clamp(1.06rem, 1.5vw, 1.2rem); line-height: 1.55; color: var(--slate); max-width: 40rem; }
.subhead {
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  font-weight: 750; font-stretch: 108%;
  letter-spacing: -0.015em; margin-bottom: 0.5rem;
}
.subhead + .sub-lede { color: var(--slate); max-width: 38rem; margin-bottom: 2rem; }

/* ---------- Hero ---------- */

.hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(4rem, 8vw, 6.5rem); }
.hero-top {
  display: grid; gap: 1.75rem clamp(2.5rem, 5vw, 4.5rem);
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
}
@media (min-width: 1000px) {
  .hero-top { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
}
.hero h1 {
  font-size: clamp(2.35rem, 4.9vw, 4.15rem);
  font-weight: 820; font-stretch: 116%;
  line-height: 0.98; letter-spacing: -0.03em;
  margin: 0;
  text-wrap: balance;
}
.hero .lede { margin-bottom: 1.6rem; font-size: clamp(1.02rem, 1.3vw, 1.12rem); }

/* The showcase: the agent's desktop in the take-over view, and the phone app
   that asked you to sign in. Everything inside is sized in em off a
   container-relative font size, so it scales like a picture. */
.showcase {
  margin: clamp(2.5rem, 5vw, 4rem) 0 0;
  container-type: inline-size;
}
.showcase-in { position: relative; padding-bottom: 9cqw; }
.screen {
  width: 84%;
  font-size: 1.42cqw;
  border: 1px solid var(--rule);
  border-radius: 0.9em;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 2.5em 4.5em -2.8em rgba(15, 38, 51, 0.5);
}
.desk-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1em;
  padding: 0.55em 0.7em 0.55em 1em;
  border-bottom: 1px solid var(--rule);
  font-size: 0.85em; color: var(--ink);
}
.db-ask { display: flex; align-items: center; gap: 0.55em; font-weight: 600; min-width: 0; white-space: nowrap; }
.db-ask svg { width: 1.25em; height: 1.25em; flex: none; color: var(--slate); }
.db-btns { display: flex; gap: 0.45em; flex: none; }
.b {
  padding: 0.35em 0.85em; border-radius: 0.5em;
  border: 1px solid var(--rule); font-weight: 650; font-size: 0.92em;
}
.b-pri { background: var(--btn-bg); color: var(--btn-text); border-color: transparent; }

/* XFCE, as the desktop draws it: always light, whatever this page's theme. */
.xp {
  display: flex; align-items: center; gap: 1.4em;
  height: 2.1em; padding: 0 0.8em;
  background: #eef0f1; color: #23303a;
  border-bottom: 1px solid #d5dadd;
  font: 500 0.7em/1 system-ui, -apple-system, "Segoe UI", sans-serif;
}
.xp-apps { display: flex; align-items: center; gap: 0.45em; font-weight: 600; }
.xp-logo { width: 1.25em; height: 1.25em; border-radius: 0.3em; background: #2f6fa8; display: inline-block; }
.xp-win {
  padding: 0.35em 0.9em; border-radius: 0.35em;
  background: #dfe3e6; box-shadow: inset 0 0 0 1px #c9cfd3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 16em;
}
.xp-right { margin-left: auto; display: flex; gap: 1.2em; color: #46535c; white-space: nowrap; }

.wall {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(120% 90% at 18% 10%, #4f7b92 0%, #2b5468 45%, #1c3a4b 100%);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}
.desk-icons {
  list-style: none; position: absolute; left: 1.1em; top: 1.1em;
  display: grid; gap: 1.1em;
  font-size: 0.68em; color: #fff; text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}
.desk-icons li { display: grid; justify-items: center; gap: 0.35em; width: 5.5em; }
.desk-icons i { display: block; width: 3.4em; height: 2.8em; border-radius: 0.3em; position: relative; }
.ico-folder { background: linear-gradient(#f2c35a, #e0a73a); }
.ico-folder::before { content: ""; position: absolute; left: 0; top: -0.45em; width: 45%; height: 0.7em; border-radius: 0.3em 0.3em 0 0; background: #e8b448; }
.ico-term { background: #1d262c; box-shadow: inset 0 0 0 2px #5e6b73; }
.ico-term::before { content: ">_"; position: absolute; left: 0.45em; top: 0.35em; color: #8fe0b8; font: 700 1em/1 ui-monospace, Menlo, monospace; text-shadow: none; }
.ico-trash { width: 2.6em !important; background: linear-gradient(#d9dee1, #b8c0c5); border-radius: 0.15em 0.15em 0.45em 0.45em !important; }

.win {
  position: absolute; left: 12%; right: 14%; top: 6%; bottom: 7%;
  display: flex; flex-direction: column;
  background: #fff; color: #1f2328;
  border-radius: 0.55em; overflow: hidden;
  box-shadow: 0 1.4em 3em -1em rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.2);
}
.win-tabs {
  display: flex; align-items: flex-end; justify-content: space-between;
  height: 2.5em; padding: 0 0.7em;
  background: #dee3e8;
}
.win-tab {
  display: flex; align-items: center; gap: 0.55em;
  padding: 0.55em 1.1em 0.6em; max-width: 17em;
  background: #fff; border-radius: 0.6em 0.6em 0 0;
  font-size: 0.72em; white-space: nowrap; overflow: hidden;
}
.fav { width: 1.1em; height: 1.1em; border-radius: 50%; background: #6b4fd8; flex: none; }
.win-ctl { display: flex; gap: 1.1em; align-self: center; color: #4b555c; font-size: 0.8em; }
.win-ctl i { font-style: normal; }
.win-omni {
  display: flex; align-items: center; gap: 1em;
  height: 2.6em; padding: 0 0.9em;
  border-bottom: 1px solid #e3e6e9;
}
.win-nav { color: #5b656c; font-size: 0.8em; white-space: nowrap; }
.win-url {
  flex: 1; display: flex; align-items: center; gap: 0.5em;
  padding: 0.38em 0.9em; border-radius: 1.2em;
  background: #eef1f4; font-size: 0.74em; color: #1f2328;
}
.win-url svg { width: 1em; height: 1em; color: #5b656c; }
.win-page { flex: 1; display: grid; place-items: center; background: #f5f6f8; }

.si {
  position: relative;
  width: 17.5em;
  display: grid; gap: 0.3em;
  padding: 1.5em 1.6em 1.6em;
  background: #fff; border: 1px solid #e1e4e8; border-radius: 0.7em;
  font-size: 0.8em;
}
.si-logo { display: flex; align-items: center; gap: 0.45em; font-weight: 700; color: #5a3fd0; }
.si-logo i { width: 1.25em; height: 0.9em; border-radius: 0.15em; background: #6b4fd8; }
.si-h { font-size: 1.45em; font-weight: 650; margin: 0.25em 0 0.55em; }
.si-l { font-size: 0.78em; color: #57606a; }
.si-i {
  display: flex; align-items: center;
  padding: 0.5em 0.65em; margin-bottom: 0.45em;
  border: 1px solid #d0d7de; border-radius: 0.4em;
  font-size: 0.88em;
}
.si-pw { border-color: #6b4fd8; box-shadow: 0 0 0 0.2em rgba(107, 79, 216, 0.18); letter-spacing: 0.12em; }
.caret { display: inline-block; width: 1px; height: 1.1em; margin-left: 0.15em; background: #1f2328; }
.si-b {
  margin-top: 0.35em; padding: 0.6em; text-align: center;
  background: #6b4fd8; color: #fff; border-radius: 0.4em; font-weight: 600;
}
.pointer {
  position: absolute; width: 1.7em; height: 1.7em;
  right: 3.2em; bottom: 0.5em;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.35));
}

/* The phone: the web app on your phone, in this page's theme. */
.phone {
  position: absolute; right: 0; top: 7cqw;
  width: 25%;
  font-size: 1.04cqw;
}
.ph {
  display: flex; flex-direction: column;
  aspect-ratio: 9 / 17.5;
  background: var(--paper); color: var(--ink);
  border: 0.6em solid #0a1820;
  border-radius: 3em;
  overflow: hidden;
  box-shadow: 0 2.5em 4em -2em rgba(15, 38, 51, 0.55);
}
.ph-island { display: block; width: 32%; height: 1.7em; margin: 0.55em auto 0.35em; border-radius: 1em; background: #0a1820; flex: none; }
.ph-top {
  display: flex; align-items: center; gap: 0.55em;
  padding: 0.35em 1.1em 0.75em;
  border-bottom: 1px solid var(--rule);
  font-weight: 750; font-stretch: 110%; font-size: 1.05em;
}
.ph-top img { width: 1.9em; height: 1.9em; }
.ph-chat { display: grid; gap: 0.85em; align-content: start; padding: 1.1em 1em; line-height: 1.35; }
.ph-chat p { margin: 0; }
.ph-you {
  justify-self: end; max-width: 88%;
  padding: 0.65em 0.85em; border-radius: 1em 1em 0.3em 1em;
  background: var(--ink); color: var(--paper);
}
:root[data-theme="dark"] .ph-you { background: #1b3a4a; color: var(--ink); }
:root[data-theme="dark"] .ph { border-color: #1f3542; box-shadow: 0 0 0 1px #3a5a69, 0 2.5em 4em -2em rgba(0, 0, 0, 0.7); }
:root[data-theme="dark"] .ph-island { background: #1f3542; }
.ph-step { display: flex; align-items: baseline; gap: 0.5em; color: var(--slate); font-size: 0.92em; }
.ph-step::before {
  content: ""; flex: none; width: 0.6em; height: 0.32em;
  border-left: 2px solid var(--slate); border-bottom: 2px solid var(--slate);
  transform: translateY(-0.2em) rotate(-45deg);
}
.ph-card {
  padding: 0.85em 0.85em 0.9em;
  border: 1px solid var(--signal-line); border-left-width: 0.35em; border-radius: 0.8em;
  background: var(--surface);
}
.ph-kick { color: var(--signal-text); font-weight: 700; font-size: 0.85em; margin-bottom: 0.3em !important; }
.ph-title { font-weight: 700; margin-bottom: 0.65em !important; }
/* The card's screenshot: the same desktop, small. */
.ph-shot {
  position: relative;
  aspect-ratio: 16 / 9; margin-bottom: 0.75em;
  border-radius: 0.45em; overflow: hidden;
  background: radial-gradient(120% 90% at 18% 10%, #4f7b92 0%, #2b5468 45%, #1c3a4b 100%);
}
.ph-shot .w {
  position: absolute; left: 14%; right: 10%; top: 10%; bottom: 10%;
  display: grid; place-items: center;
  background: #f5f6f8; border-radius: 0.25em;
  box-shadow: inset 0 0.9em 0 #dee3e8;
}
.ph-shot .f { display: grid; gap: 0.25em; width: 40%; margin-top: 0.9em; padding: 0.45em; background: #fff; border-radius: 0.25em; box-shadow: 0 0 0 1px #e1e4e8; }
.ph-shot i { display: block; height: 0.4em; border-radius: 0.15em; background: #d6dbe0; }
.ph-shot i.go { background: #6b4fd8; }
.ph-btns { display: flex; flex-wrap: wrap; gap: 0.35em; }
.ph-btns span {
  padding: 0.42em 0.65em; border-radius: 0.55em;
  border: 1px solid var(--rule); font-size: 0.86em; font-weight: 650;
}
.ph-btns .pri { background: var(--signal); border-color: var(--signal); color: #0f2633; }
.ph-compose {
  margin: auto 0.9em 1.1em; padding: 0.7em 1em;
  border: 1px solid var(--rule); border-radius: 1.4em;
  color: var(--slate); font-size: 0.92em;
}

@media (max-width: 640px) {
  .showcase-in { padding-bottom: 0; }
  .screen { width: 100%; font-size: 1.7cqw; }
  .phone {
    position: relative; right: auto; top: auto;
    width: 68%; margin: -9cqw 2cqw 0 auto;
    font-size: 2.75cqw;
  }
  .ph { aspect-ratio: auto; }
  .win { right: 4.5%; }
  .ph-compose { margin-top: 0.4em; }
}

.hero-notes {
  list-style: none;
  display: grid; gap: 1.75rem clamp(2rem, 4vw, 3.5rem);
  grid-template-columns: minmax(0, 1fr);
  margin-top: clamp(2.25rem, 4vw, 3rem);
}
@media (min-width: 820px) {
  .hero-notes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.hero-notes li { border-top: 1px solid var(--rule); padding-top: 1rem; }
.hero-notes h2 { font-size: 1.15rem; font-stretch: 106%; margin-bottom: 0.45rem; }
.hero-notes p { margin: 0; color: var(--slate); }

@media (prefers-reduced-motion: no-preference) {
  .ph-you, .ph-step, .ph-card, .desk-bar, .pointer {
    animation: arrive 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .ph-you { animation-delay: 0.3s; }
  .ph-step { animation-delay: 0.9s; }
  .ph-card { animation: arrive 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) 1.5s both, ask 1.4s ease-out 2s 1; }
  .desk-bar { animation-delay: 2.7s; }
  .pointer { animation-delay: 3.1s; }
  .caret { animation: blink 1.1s steps(1) 3.3s 6; }
}
@keyframes arrive {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@keyframes ask {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--signal) 45%, transparent); }
  100% { box-shadow: 0 0 0 1.2em color-mix(in srgb, var(--signal) 0%, transparent); }
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------- What it does ---------- */

.abilities {
  list-style: none;
  display: grid; gap: 2.25rem clamp(2rem, 4vw, 3.5rem);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 640px) {
  .abilities { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .abilities { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.abilities li { border-top: 2px solid var(--ink); padding-top: 1rem; }
.abilities h3 { font-size: 1.15rem; font-stretch: 106%; margin-bottom: 0.45rem; }
.abilities p { margin: 0; color: var(--slate); }

/* ---------- Desktop apps ---------- */

.kicker {
  display: inline-block;
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.01em;
  color: var(--signal-text);
  margin-bottom: 0.9rem;
}
.apps-top {
  display: grid; gap: clamp(2rem, 4vw, 3.5rem);
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}
@media (min-width: 980px) {
  .apps-top { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
}
/* What the agent reads, and what you're asked: the tree, then the card over it. */
.apps-figure { margin: 0; display: grid; gap: 0; }
.tree-head {
  padding: 0.75rem 1.1rem; margin: 0;
  font-size: 0.85rem; color: var(--deep-muted);
  border-bottom: 1px solid var(--deep-line);
}
.tree-body {
  margin: 0; padding: 0.9rem 1.1rem 4.5rem;
  font: 400 0.76rem/1.8 var(--mono);
  white-space: pre; overflow-x: auto;
}
.tree-body .ref {
  padding: 0 0.35em; border-radius: 4px;
  background: var(--deep-2); color: #bef264; border: 1px solid var(--deep-line);
}
.tree-body .m { color: var(--deep-muted); }
.app-card {
  position: relative;
  margin: -3.25rem 0 0 clamp(1rem, 8%, 3.5rem);
  padding: 1rem 1.1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--signal-line); border-left-width: 0.4rem; border-radius: 14px;
  box-shadow: 0 1.5rem 3rem -1.5rem rgba(15, 38, 51, 0.45);
}
.app-card p { margin: 0; }
.app-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; margin-bottom: 0.6rem; }
.app-card-title { font-weight: 750; font-size: 1.08rem; }
.app-chip {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.2rem 0.6rem; border-radius: 999px;
  border: 1px solid var(--rule); color: var(--slate);
  font-size: 0.82rem; font-weight: 600;
}
.app-chip svg { width: 0.95rem; height: 0.95rem; }
.app-card-said { font-weight: 650; margin-bottom: 0.35rem !important; }
.app-card-target { color: var(--ink-2); margin-bottom: 0.75rem !important; }
.app-card-inset {
  padding: 0.6rem 0.8rem; margin-bottom: 0.6rem;
  border-radius: 10px; background: var(--inset);
  font-size: 0.9rem;
}
.app-card-inset .strong { font-weight: 650; margin-bottom: 0.15rem; }
.app-card-inset p:not(.strong) { color: var(--slate); }
.app-card-steps { list-style: none; margin: 0.2rem 0 0.8rem; padding: 0; display: grid; gap: 0.55rem; }
.app-card-steps li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.95rem; }
.app-card-steps .n {
  flex: none; display: inline-grid; place-items: center;
  width: 1.35rem; height: 1.35rem; margin-top: 0.05rem; border-radius: 999px;
  border: 1px solid var(--rule); color: var(--slate);
  font-size: 0.75rem; font-weight: 700;
}
.app-card-steps kbd {
  padding: 0.05rem 0.4rem; border-radius: 0.35rem;
  border: 1px solid var(--rule); border-bottom-width: 2px;
  font: 600 0.8rem/1.4 var(--mono);
}
.app-card-quote {
  display: block; margin-top: 0.35rem; padding: 0.15rem 0 0.15rem 0.7rem;
  border-left: 3px solid var(--signal-line);
  font: 400 0.85rem/1.6 var(--mono); color: var(--ink-2);
}
.app-card-window { color: var(--slate); font: 400 0.78rem/1.5 var(--mono); margin-bottom: 0.9rem !important; }
.app-card-btns { display: flex; justify-content: flex-end; gap: 0.5rem; }
.app-card-btns span {
  padding: 0.45rem 0.9rem; border-radius: 0.6rem;
  border: 1px solid var(--rule); font-size: 0.9rem; font-weight: 650;
}
.app-card-btns .pri { background: var(--signal); border-color: var(--signal); color: #0f2633; }

.apps-points { list-style: none; display: grid; gap: 1.6rem; }
.apps-points li { border-top: 2px solid var(--ink); padding-top: 0.9rem; }
.apps-points h3 { font-size: 1.12rem; font-stretch: 106%; margin-bottom: 0.4rem; }
.apps-points p { margin: 0; color: var(--slate); }
.apps-note {
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 0;
  max-width: 46rem;
  border-left: 4px solid var(--signal-line);
  padding: 0.2rem 0 0.2rem 1.1rem;
  color: var(--slate);
}
.apps-note strong { color: var(--ink); }

/* ---------- The harness (deep) ---------- */

.deep {
  background: var(--deep);
  color: var(--deep-text);
  --focus: var(--deep-text);
  --rule: var(--deep-line);
  --slate: var(--deep-muted);
  --ink: var(--deep-text);
  --inset: var(--deep-2);
  --signal-text: #bef264;
  --signal-line: #a3e635;
  --stop: #ff8a80;
}
.deep ::selection { background: var(--signal); color: #0f2633; }
.legend {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.92rem; color: var(--deep-muted);
  margin: -1.25rem 0 clamp(2.5rem, 5vw, 3.5rem);
}
.legend::before {
  content: ""; width: 0.75rem; height: 0.75rem; border-radius: 3px; background: var(--signal); flex: none;
}

.pipeline { list-style: none; counter-reset: stage; position: relative; margin-bottom: clamp(4rem, 8vw, 6rem); }
.stage {
  counter-increment: stage;
  position: relative;
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 0 1.25rem;
  padding-bottom: 2.25rem;
}
.stage::before {
  content: counter(stage);
  grid-row: 1 / span 2;
  display: grid; place-items: center;
  width: 2.5rem; height: 2.5rem;
  border: 1.5px solid var(--deep-line);
  border-radius: 8px;
  font: 600 0.85rem/1 var(--mono);
  color: var(--deep-text);
  background: var(--deep);
  position: relative; z-index: 1;
}
.stage::after {
  content: ""; position: absolute; left: calc(1.25rem - 0.75px); top: 2.5rem; bottom: 0;
  border-left: 1.5px solid var(--deep-line);
}
.stage:last-child { padding-bottom: 0; }
.stage:last-child::after { display: none; }
.stage-text h4 { font-size: 1.2rem; font-stretch: 106%; margin: 0.45rem 0 0.4rem; }
.stage-text p { color: var(--deep-muted); margin-bottom: 0; max-width: 34rem; }
.stage-eg { margin-top: 1rem; min-width: 0; }
@media (max-width: 899px) {
  .stage-eg { grid-column: 1 / -1; position: relative; z-index: 1; }
}
@media (max-width: 480px) {
  .eg { font-size: 0.66rem; padding: 0.8rem 0.85rem; }
}
@media (min-width: 900px) {
  .stage { grid-template-columns: 2.5rem minmax(0, 1fr) minmax(0, 1fr); gap: 0 2rem; }
  .stage::before { grid-row: 1; }
  .stage-eg { margin-top: 0.35rem; }
}
.stage.gate::before { background: var(--signal); border-color: var(--signal); color: #0f2633; }
.stage.gate h4 { color: #bef264; }

.eg {
  margin: 0;
  background: var(--deep-2);
  border: 1px solid var(--deep-line);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  font: 400 0.74rem/1.75 var(--mono);
  color: var(--deep-text);
  overflow-x: auto;
  white-space: pre;
}
.eg .m { color: var(--deep-muted); }
.eg .x { color: var(--stop); }
.eg-list { list-style: none; display: grid; gap: 0.5rem; }
.eg-list li {
  display: flex; gap: 0.6rem; align-items: baseline;
  font-size: 0.95rem; line-height: 1.4;
}
.eg-list li::before {
  content: ""; flex: none; width: 0.5rem; height: 0.5rem; border-radius: 2px;
  background: var(--signal); transform: translateY(-0.1em);
}
.eg-caption { font-size: 0.85rem; color: var(--deep-muted); margin: 0.75rem 0 0; }

/* The desktop: three Unix accounts behind one door. */
.vm {
  border: 1.5px dashed var(--deep-line);
  border-radius: 16px;
  padding: clamp(1rem, 3vw, 1.75rem);
  display: grid; gap: 1rem;
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}
.vm-label { font-size: 0.9rem; color: var(--deep-muted); margin: 0; }
.vm-label strong { color: var(--deep-text); }
.vm-edge {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem 0.9rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: var(--deep-2);
  font-size: 0.92rem; color: var(--deep-muted);
}
.vm-edge code { background: transparent; padding: 0; color: var(--deep-text); font-size: 0.8rem; font-weight: 600; }
.vm-users { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 820px) {
  .vm-users { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.acct {
  border: 1px solid var(--deep-line);
  border-radius: 12px;
  padding: 1.1rem 1.1rem 1.2rem;
  background: color-mix(in srgb, var(--deep-2) 55%, transparent);
}
.acct-name { font: 600 0.95rem/1.2 var(--mono); margin: 0 0 0.2rem; }
.acct-role { color: var(--deep-muted); font-size: 0.92rem; margin: 0 0 0.9rem; }
.acct h5 { margin: 0 0 0.35rem; font-size: 0.82rem; font-weight: 650; color: var(--deep-muted); }
.acct ul { list-style: none; display: grid; gap: 0.3rem; font-size: 0.9rem; line-height: 1.4; margin-bottom: 0.9rem; }
.acct ul:last-child { margin-bottom: 0; }
.acct li { padding-left: 1rem; position: relative; }
.acct li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 0.45rem; border-top: 1.5px solid var(--deep-muted); }
.acct .cant li::before { width: 0.5rem; top: 0.3em; height: 0.5rem; border: 0; background:
  linear-gradient(45deg, transparent 43%, var(--deep-muted) 43% 57%, transparent 57%),
  linear-gradient(-45deg, transparent 43%, var(--deep-muted) 43% 57%, transparent 57%); }

.perimeter {
  list-style: none;
  display: grid; gap: 2rem clamp(2rem, 4vw, 3.5rem);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 720px) {
  .perimeter { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.perimeter h4 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.perimeter p { color: var(--deep-muted); margin: 0; }

.note-auto {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  border-left: 4px solid var(--signal);
  padding: 0.25rem 0 0.25rem 1.1rem;
  max-width: 46rem;
  color: var(--deep-text);
}
.note-auto p { margin: 0; }
.note-auto p + p { margin-top: 0.5rem; color: var(--deep-muted); font-size: 0.95rem; }

/* ---------- Memory ---------- */

.mem-top {
  display: grid; gap: clamp(2rem, 4vw, 3.5rem);
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  margin-bottom: clamp(3.5rem, 7vw, 5rem);
}
@media (min-width: 980px) {
  .mem-top { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
}
.prompt {
  margin: 0;
  border-radius: 14px;
  background: var(--deep);
  color: var(--deep-text);
  overflow: hidden;
}
:root[data-theme="dark"] .prompt { border: 1px solid var(--rule); }
.prompt figcaption {
  padding: 0.75rem 1.1rem;
  font-size: 0.85rem;
  color: var(--deep-muted);
  border-bottom: 1px solid var(--deep-line);
}
.prompt-body {
  padding: 0.2rem 1.1rem 1.2rem;
  font: 400 0.76rem/1.7 var(--mono);
}
.prompt-body p { margin: 0; }
.prompt-body .line { padding-left: 1.5em; text-indent: -1.5em; margin-bottom: 0.4rem; }
.prompt-body .h { color: var(--deep-muted); margin-bottom: 0.4rem; }
.prompt-where {
  font: 600 0.8rem/1.3 var(--sans);
  color: var(--deep-muted);
  margin: 1.1rem 0 0.5rem !important;
  padding-top: 0.9rem;
  border-top: 1px dashed var(--deep-line);
}
.prompt-where:first-child { border-top: 0; padding-top: 0.4rem; }
.prompt .you { color: #bef264; }
.prompt .hint { color: #b9c8ce; }

.trust { list-style: none; display: grid; gap: 1.5rem; }
.trust li { display: grid; grid-template-columns: 0.9rem minmax(0, 1fr); gap: 0 1rem; }
.trust li::before {
  content: ""; width: 0.9rem; height: 0.9rem; border-radius: 50%;
  border: 2px solid var(--ink); margin-top: 0.3rem;
}
.trust li.you::before { background: var(--signal); border-color: var(--signal-line); }
.trust li.imported::before { background: linear-gradient(90deg, var(--ink) 50%, transparent 50%); }
.trust h3 { font-size: 1.1rem; margin-bottom: 0.3rem; }
.trust p { margin: 0; color: var(--slate); }
.trust code { white-space: nowrap; }
.trust-intro { margin-bottom: 1.5rem; }
.trust-intro h3 { font-size: 1.3rem; font-stretch: 108%; margin-bottom: 0.4rem; }
.trust-intro p { color: var(--slate); margin: 0; }

.recall {
  display: grid; gap: clamp(2rem, 4vw, 3.5rem);
  grid-template-columns: minmax(0, 1fr);
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  border-block: 1px solid var(--rule);
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}
@media (min-width: 900px) {
  .recall { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: center; }
}
.recall h3 { font-size: 1.3rem; font-stretch: 108%; margin-bottom: 0.5rem; }
.recall p { color: var(--slate); }
.recall p:last-child { margin-bottom: 0; }
.score-formula {
  font: 500 clamp(0.72rem, 1.6vw, 0.85rem)/1.5 var(--mono);
  margin-bottom: 1rem;
  overflow-wrap: anywhere;
}
.bar { display: flex; height: 3.25rem; border-radius: 10px; overflow: hidden; gap: 3px; }
.bar span { display: flex; align-items: flex-end; padding: 0.45rem 0.6rem; font-size: 0.8rem; font-weight: 650; min-width: 0; white-space: nowrap; overflow: hidden; }
.bar .rel { flex: 60; background: var(--ink); color: var(--paper); }
.bar .rec { flex: 25; background: color-mix(in srgb, var(--ink) 55%, var(--paper)); color: var(--paper); }
.bar .imp { flex: 15; background: color-mix(in srgb, var(--ink) 22%, var(--paper)); color: var(--ink); }
.bar-key { list-style: none; display: grid; gap: 0.35rem; margin-top: 1rem; font-size: 0.92rem; color: var(--slate); }
.bar-key strong { color: var(--ink); font-weight: 650; }

.upkeep {
  list-style: none;
  display: grid; gap: 2rem clamp(2rem, 4vw, 3rem);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 640px) { .upkeep { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .upkeep { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.upkeep h3 { font-size: 1.08rem; margin-bottom: 0.45rem; }
.upkeep p { color: var(--slate); margin: 0; font-size: 0.98rem; }

/* ---------- Run your own ---------- */

.run {
  display: grid; gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}
@media (min-width: 940px) {
  .run { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); }
}
.needs { list-style: none; display: grid; gap: 0.6rem; margin: 0 0 2rem; }
.needs li { display: flex; gap: 0.7rem; align-items: baseline; }
.needs li::before {
  content: ""; flex: none; width: 0.55rem; height: 0.3rem;
  border-left: 2px solid var(--slate); border-bottom: 2px solid var(--slate);
  transform: translateY(-0.25em) rotate(-45deg);
}
.run-cost { margin: 0 0 2rem; font-size: 0.95rem; color: var(--slate); max-width: 34rem; }

/* ---------- Code blocks ---------- */

.code {
  position: relative;
  background: var(--deep);
  color: var(--deep-text);
  border-radius: 12px;
  margin: 0 0 1.5rem;
  min-width: 0;
}
:root[data-theme="dark"] .code { border: 1px solid var(--rule); }
.code pre {
  margin: 0;
  padding: 1rem 1.1rem;
  font-size: 0.78rem; line-height: 1.8;
  overflow-x: auto;
  tab-size: 2;
}
.code.has-copy pre { padding-right: 5rem; }
.code .c { color: var(--deep-muted); }
.code .p { color: var(--deep-muted); user-select: none; }
.code .o { color: #b9c8ce; }
.code-label {
  display: block;
  padding: 0.6rem 1.1rem;
  border-bottom: 1px solid var(--deep-line);
  font: 400 0.82rem/1.3 var(--sans);
  color: var(--deep-muted);
}
.copy {
  position: absolute; right: 0.55rem; top: 0.55rem;
  font: 600 0.78rem/1 var(--sans);
  color: var(--deep-text);
  background: var(--deep-2);
  border: 1px solid var(--deep-line);
  border-radius: 7px;
  padding: 0.45rem 0.65rem;
  cursor: pointer;
  --focus: var(--deep-text);
}
.code-label + .copy, .code:has(.code-label) .copy { top: 0.35rem; }
.copy:hover { border-color: var(--deep-muted); }
.copy.done { color: #bef264; border-color: #65a30d; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--rule);
  padding-block: 2.5rem 3rem;
  font-size: 0.92rem;
  color: var(--slate);
}
.site-footer .wrap {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem 3rem;
}
.site-footer p { margin: 0.6rem 0 0; max-width: 30rem; }
.foot-links { list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem 1.75rem; align-content: start; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Getting started (docs) ---------- */

.docs {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  padding-block: clamp(2rem, 5vw, 4rem) clamp(4rem, 8vw, 6rem);
}
@media (min-width: 1040px) {
  .docs { grid-template-columns: 15rem minmax(0, 1fr); gap: 4rem; }
}

.toc { font-size: 0.92rem; }
.toc summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 1rem;
  border: 1px solid var(--rule); border-radius: 10px;
  font-weight: 650;
  background: var(--surface);
}
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after {
  content: ""; width: 0.5rem; height: 0.5rem;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s;
}
.toc[open] summary::after { transform: rotate(-135deg); }
.toc nav { padding: 1rem 0.25rem 0.25rem; }
.toc ol { list-style: none; display: grid; gap: 0.1rem; }
.toc a {
  display: flex; gap: 0.6rem; align-items: baseline;
  padding: 0.35rem 0.75rem;
  border-left: 2px solid transparent;
  color: var(--slate); text-decoration: none; line-height: 1.35;
}
.toc a:hover { color: var(--ink); }
.toc a.is-current { color: var(--ink); border-left-color: var(--ink); font-weight: 600; }
.toc .n { font: 600 0.72rem/1 var(--mono); min-width: 1.1rem; }
.toc .toc-group { margin: 1.25rem 0 0.35rem calc(0.75rem + 2px); font-size: 0.8rem; color: var(--slate); font-weight: 600; }
@media (min-width: 1040px) {
  .toc { position: sticky; top: calc(var(--header) + 1.5rem); align-self: start; max-height: calc(100vh - var(--header) - 3rem); overflow-y: auto; }
  .toc summary { display: none; }
  .toc nav { padding: 0; }
}

.doc { max-width: 46rem; min-width: 0; }
.doc-head h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 820; font-stretch: 118%;
  line-height: 1; letter-spacing: -0.03em;
  margin-bottom: 1.2rem;
}
.doc-head .lede { margin-bottom: 2rem; }

.route {
  list-style: none; counter-reset: route;
  display: grid; gap: 0.5rem;
  grid-template-columns: minmax(0, 1fr);
  margin-bottom: 1rem;
}
@media (min-width: 640px) { .route { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.4rem; } }
.route li { counter-increment: route; }
@media (max-width: 639px) { .route { display: none; } }
.route a {
  display: flex; gap: 0.6rem; align-items: baseline;
  height: 100%;
  padding: 0.75rem 0.85rem;
  border-top: 2px solid var(--ink);
  background: var(--surface);
  border-radius: 0 0 8px 8px;
  text-decoration: none; font-weight: 650; font-size: 0.95rem; line-height: 1.25;
}
.route a::before { content: counter(route); font: 600 0.72rem/1.6 var(--mono); color: var(--slate); }
.route a:hover { background: var(--inset); }
.route-note { font-size: 0.92rem; color: var(--slate); margin-bottom: 0; }

.doc section { padding-top: clamp(3rem, 6vw, 4.5rem); }
.doc h2 {
  display: flex; align-items: baseline; gap: 0.9rem;
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  font-weight: 800; font-stretch: 112%;
  letter-spacing: -0.02em; line-height: 1.1;
  margin-bottom: 1rem;
  padding-top: 1.25rem;
  border-top: 2px solid var(--ink);
}
.doc h2 .n {
  font: 600 0.9rem/1 var(--mono);
  color: var(--slate);
  transform: translateY(-0.2em);
}
.doc h3 { font-size: 1.2rem; font-stretch: 106%; margin: 2.25rem 0 0.75rem; }
.doc p, .doc li { max-width: 42rem; }
.doc > section > p, .doc .prose p { margin-bottom: 1em; }
.doc ul.plain { padding-left: 1.2rem; display: grid; gap: 0.45rem; margin-bottom: 1.25rem; }
.doc ul.plain li::marker { color: var(--slate); }

/* Numbered sub-steps: a real sequence. */
.steps { list-style: none; counter-reset: step; display: grid; gap: 1.75rem; margin: 1.5rem 0 1.5rem; }
.steps > li {
  counter-increment: step;
  display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: 0 1rem;
}
.steps > li::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 2rem; height: 2rem; border-radius: 50%;
  border: 1.5px solid var(--rule);
  font: 600 0.78rem/1 var(--mono);
  color: var(--ink);
}
.steps > li > * { grid-column: 2; }
.steps > li > :first-child { grid-row: 1; }
.steps h4 { font-size: 1.05rem; margin: 0.3rem 0 0.4rem; }
.steps p { margin-bottom: 0.75rem; }
.steps p:last-child { margin-bottom: 0; }
.steps .code { margin-bottom: 0.75rem; }
.steps ul.plain { margin-bottom: 0.75rem; }

.callout {
  border-left: 3px solid var(--ink);
  background: var(--surface);
  padding: 0.9rem 1.1rem;
  border-radius: 0 10px 10px 0;
  margin: 1.25rem 0 1.5rem;
  font-size: 0.97rem;
}
.callout p { margin: 0; }
.callout p + p { margin-top: 0.5rem; }
.callout .callout-title { font-weight: 700; margin-bottom: 0.25rem; }
.callout.must { border-left-color: var(--signal-line); background: var(--signal-wash); }

.table-wrap { overflow-x: auto; margin: 1rem 0 1.5rem; border: 1px solid var(--rule); border-radius: 10px; }
table { border-collapse: collapse; width: 100%; font-size: 0.93rem; }
th, td { text-align: left; vertical-align: top; padding: 0.65rem 0.9rem; border-bottom: 1px solid var(--rule); }
th { font-weight: 650; background: var(--surface); }
tr:last-child td { border-bottom: 0; }
td code { white-space: nowrap; }
td:first-child { white-space: nowrap; }

.tools { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--rule); margin: 1rem 0 1.5rem; }
.tools li {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.15rem 1.5rem;
  padding: 0.75rem 0; border-bottom: 1px solid var(--rule);
}
@media (min-width: 640px) { .tools li { grid-template-columns: 12rem minmax(0, 1fr); } }
.tools .t { font-weight: 650; }
.tools .d { color: var(--slate); font-size: 0.95rem; }

details.more {
  border: 1px solid var(--rule); border-radius: 10px;
  margin: 1.25rem 0 1.5rem; background: var(--surface);
}
details.more > summary {
  cursor: pointer; padding: 0.85rem 1.1rem; font-weight: 650;
}
details.more > div { padding: 0 1.1rem 1.1rem; }
details.more .steps { margin-top: 0.5rem; }

.fix { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--rule); margin-top: 1rem; }
.fix li { padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.fix .sym { font-weight: 650; margin-bottom: 0.3rem; color: var(--ink); }
.fix .sym code { font-weight: 500; }
.fix p { margin: 0; color: var(--slate); }
.fix p + p { margin-top: 0.4rem; }

.next {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border-radius: 14px;
  background: var(--deep); color: var(--deep-text);
  --focus: var(--deep-text);
}
.next h2 { border: 0; padding: 0; color: var(--deep-text); }
.next p { color: var(--deep-muted); }
.next .btn-primary { background: var(--deep-text); color: #0f2633; }
.next .btn-quiet { color: var(--deep-text); border-color: var(--deep-line); }
.next .btn-quiet:hover { border-color: var(--deep-text); }

@media print {
  .site-header, .toc, .copy { display: none; }
  .docs { display: block; }
}
