/*
 * ============================================================
 * site.css — every page of subtank.dev
 * ============================================================
 * WHY THIS EXISTS   2026-09-24. One stylesheet, cached once, for seven static
 *                   pages. Redesigned the same day the first release shipped:
 *                   the first site read as a demo — three grids of identical
 *                   glass cards and pill chips over the headline, the look a
 *                   generated landing page has. This one is an instrument,
 *                   like the app: sections open on a calibrated rule with a
 *                   numbered label in the margin (a fuel gauge's scale, not a
 *                   pill), and each section has a form of its own — the real
 *                   menu bar at real size, an annotated row, a spec table,
 *                   typeset rules, a pull quote, one download band.
 * WHAT IT DOES      Declares the three typefaces from /fonts (served by this
 *                   host; OFL notice in /fonts/OFL.txt), the colour tokens
 *                   (dark first, a light set swapped in by the system), and
 *                   every component the pages and site-release.mjs's
 *                   generated blocks use. Motion is CSS only: the stage
 *                   settles on load, sections rise as they scroll in where
 *                   the browser has scroll-driven animations, and all of it
 *                   stops for prefers-reduced-motion.
 * WHAT IT CANNOT DO Load anything from another host. Every page carries a CSP
 *                   of default-src 'none' with style, font and image from
 *                   'self' only — no script, and no inline style attribute
 *                   either, so bar widths in the illustrations are classes
 *                   (.w34). Content never waits on an animation to be seen.
 * ============================================================
 */

/* ── typefaces (latin + latin-ext, weight axis) ─────────────── */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/fonts/bricolage-grotesque-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/fonts/bricolage-grotesque-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url(/fonts/instrument-sans-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url(/fonts/instrument-sans-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url(/fonts/jetbrains-mono-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url(/fonts/jetbrains-mono-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── tokens: dark first, light swapped in ───────────────────── */
:root {
  --ground: #080b13;
  --ground-2: #0d121e;
  --raise: #111827;
  --ink: #edf1f8;
  --ink-2: #c3cbda;
  --muted: #8b97ae;
  --faint: #56627a;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.18);
  --tick: rgba(255, 255, 255, 0.22);
  --track: rgba(255, 255, 255, 0.1);
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.07);
  --accent: #5b8fff;
  --accent-2: #8a7bff;
  --accent-ink: #fff;
  --ok: #5cc49a;
  --warn: #e9ae3f;
  --crit: #f0736f;
  --p-claude: #cf6a43;
  --p-openai: #22a66c;
  --p-cursor: #7a88e8;
  --p-kilo: #c99a1c;
  --p-copilot: #9c6bdb;
  --p-openrouter: #8384ff;
  --p-ollama: #5a6f96;
  --p-manual: #8791a6;
  /* the popover in the stage: the app's dark glass */
  --pop-bg: rgba(20, 26, 40, 0.72);
  --pop-line: rgba(255, 255, 255, 0.12);
  --pop-row: rgba(255, 255, 255, 0.04);
  --pop-best: rgba(92, 196, 154, 0.08);
  --menubar: rgba(18, 22, 34, 0.55);
  --menubar-ink: #f4f6fb;
  --code-bg: rgba(255, 255, 255, 0.06);
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8), 0 2px 8px rgba(0, 0, 0, 0.4);
  --glow: 0.55;
  --ff-display: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --ff-body: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Apple SD Gothic Neo", sans-serif;
  --ff-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --max: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --rail: 200px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --ground: #f3f5f9;
    --ground-2: #ffffff;
    --raise: #ffffff;
    --ink: #0e1524;
    --ink-2: #2a3448;
    --muted: #56637d;
    --faint: #8a95ab;
    --line: rgba(14, 21, 36, 0.1);
    --line-2: rgba(14, 21, 36, 0.2);
    --tick: rgba(14, 21, 36, 0.26);
    --track: rgba(14, 21, 36, 0.09);
    --surface: rgba(255, 255, 255, 0.7);
    --surface-2: rgba(255, 255, 255, 0.95);
    --accent: #1f5eea;
    --accent-2: #5b46e0;
    --ok: #1a8a61;
    --warn: #a86d08;
    --crit: #c93d37;
    --p-claude: #c2572e;
    --p-openai: #0f9a63;
    --p-cursor: #4f63d2;
    --p-kilo: #b98400;
    --p-copilot: #7a4fc4;
    --p-openrouter: #5b5ce6;
    --p-ollama: #2b3a55;
    --p-manual: #6b7488;
    --pop-bg: rgba(248, 250, 254, 0.78);
    --pop-line: rgba(14, 21, 36, 0.1);
    --pop-row: rgba(14, 21, 36, 0.025);
    --pop-best: rgba(26, 138, 97, 0.08);
    --menubar: rgba(246, 248, 252, 0.6);
    --menubar-ink: #111827;
    --code-bg: rgba(14, 21, 36, 0.05);
    --shadow: 0 30px 70px -34px rgba(20, 30, 60, 0.45), 0 1px 3px rgba(20, 30, 60, 0.12);
    --glow: 0.3;
    color-scheme: light;
  }
}

/* ── base ───────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ground);
  color: var(--ink);
  font: 400 16px / 1.6 var(--ff-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
/* One soft light behind the top of every page; the rest is plain ground. */
body::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 980px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(52% 60% at 78% 4%, color-mix(in oklab, var(--accent-2) calc(var(--glow) * 34%), transparent), transparent 70%),
    radial-gradient(46% 52% at 12% 0%, color-mix(in oklab, var(--accent) calc(var(--glow) * 30%), transparent), transparent 72%);
}
main {
  flex: 1;
}
h1,
h2,
h3 {
  margin: 0;
  font-family: var(--ff-display);
  font-weight: 650;
  letter-spacing: -0.028em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.6rem, 6vw, 4.9rem);
  line-height: 0.98;
  letter-spacing: -0.042em;
}
h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  line-height: 1.04;
}
h3 {
  font-size: 1.14rem;
  line-height: 1.3;
  letter-spacing: -0.012em;
}
p {
  margin: 0;
}
a {
  color: var(--accent);
  text-decoration: none;
  text-underline-offset: 3px;
}
a:hover {
  text-decoration: underline;
}
code,
kbd,
pre {
  font-family: var(--ff-mono);
  font-size: 0.86em;
}
code {
  padding: 0.1em 0.35em;
  border-radius: 5px;
  background: var(--code-bg);
  border: 1px solid var(--line);
  /* a long path wraps rather than widening the page on a phone */
  overflow-wrap: anywhere;
}
kbd {
  padding: 0.08em 0.4em;
  border-radius: 5px;
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  background: var(--surface);
}
pre {
  margin: 0;
  padding: 16px 18px;
  overflow-x: auto;
  border-radius: 10px;
  background: var(--code-bg);
  border: 1px solid var(--line);
  line-height: 1.6;
}
pre code {
  padding: 0;
  border: 0;
  background: none;
  white-space: pre;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
::selection {
  background: color-mix(in oklab, var(--accent) 40%, transparent);
}
.num {
  font-variant-numeric: tabular-nums;
}
.lede {
  max-width: 60ch;
  font-size: 1.12rem;
  line-height: 1.6;
  color: var(--ink-2);
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.875rem;
}
.sr-only {
  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: 20;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
}
.skip:focus {
  top: 12px;
}
.dash {
  font-family: var(--ff-mono);
  color: var(--muted);
}
.cc {
  font: 600 0.66rem / 1 var(--ff-mono);
  padding: 2px 5px;
  border-radius: 5px;
  border: 1px solid var(--line-2);
  color: var(--muted);
  vertical-align: 0.12em;
}

/* ── layout ─────────────────────────────────────────────────── */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap.narrow {
  max-width: 900px;
}
.page {
  padding-block: 40px 120px;
}

/* ── buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 11px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--ink);
  font: 600 0.97rem / 1 var(--ff-body);
  white-space: nowrap;
  transition:
    background 0.18s var(--ease),
    border-color 0.18s var(--ease),
    transform 0.25s var(--spring);
}
.btn:hover {
  text-decoration: none;
  background: var(--surface-2);
  border-color: color-mix(in oklab, var(--accent) 40%, var(--line-2));
}
.btn:active {
  transform: scale(0.98);
}
.btn.pri {
  border-color: transparent;
  color: var(--accent-ink);
  background: linear-gradient(180deg, color-mix(in oklab, var(--accent) 86%, white), var(--accent));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 10px 28px -12px color-mix(in oklab, var(--accent) 90%, transparent);
}
.btn.pri:hover {
  filter: brightness(1.07);
}
.btn small {
  font: 500 0.78rem / 1 var(--ff-mono);
  opacity: 0.78;
}
.btn.sm {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 9px;
  font-size: 0.9rem;
}
.btn[aria-disabled="true"] {
  opacity: 0.5;
  pointer-events: none;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

/* ── header ─────────────────────────────────────────────────── */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid transparent;
  background: color-mix(in oklab, var(--ground) 72%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  backdrop-filter: saturate(1.6) blur(18px);
  transition: border-color 0.2s var(--ease);
}
@supports (animation-timeline: scroll()) {
  .top {
    animation: top-edge linear both;
    animation-timeline: scroll();
    animation-range: 0 80px;
  }
  @keyframes top-edge {
    to {
      border-bottom-color: var(--line);
    }
  }
}
.top-in {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font: 650 1.2rem / 1 var(--ff-display);
  letter-spacing: -0.03em;
}
.brand:hover {
  text-decoration: none;
}
.brand .mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(145deg, #2a6bff, #6a3fd6);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 6px 18px -8px rgba(42, 107, 255, 0.8);
}
.brand .mark .fill {
  fill: #7ff0c8;
}
.top-in > nav {
  margin-left: auto;
}
.nav {
  display: flex;
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav a {
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 500;
  transition: color 0.15s var(--ease);
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: none;
}

/* ── the calibrated rule that opens a section ────────────────
   A hairline with ticks hanging from it (minor every 12 px, major every
   120 px), the label in the left margin: a gauge's scale, not a pill. */
.sec {
  padding-block: clamp(80px, 11vw, 140px) 0;
}
.rule {
  position: relative;
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  gap: 0 40px;
  padding-top: 26px;
  border-top: 1px solid var(--line-2);
}
.rule::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 11px;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, var(--tick) 0 1px, transparent 1px 120px) 0 0 / 100% 11px no-repeat,
    repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 12px) 0 0 / 100% 6px no-repeat;
}
.idx {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font: 500 0.8rem / 1.4 var(--ff-mono);
  color: var(--muted);
}
.idx b {
  font-weight: 600;
  color: var(--accent);
}
.rule-body {
  display: grid;
  gap: 18px;
  max-width: 820px;
}

/* ── hero ───────────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(48px, 7vw, 96px) 0;
}
.hero-copy {
  display: grid;
  gap: 26px;
  align-content: start;
}
.hero h1 .soft {
  color: var(--muted);
}
.hero .ko {
  margin-top: -10px;
  font-size: 1.02rem;
  color: var(--muted);
}
.hero-cta {
  display: grid;
  gap: 16px;
  margin-top: 6px;
}
.facts-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  font: 500 0.8rem / 1.5 var(--ff-mono);
  color: var(--muted);
}
.facts-line a {
  color: var(--ink-2);
}
.ver {
  color: var(--ok);
}
a.ver {
  color: var(--ok);
}

/* The terminal line: one Homebrew command, nothing to click. */
.brew {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  width: 100%;
  max-width: 520px;
  padding: 13px 16px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--code-bg);
  font: 500 0.88rem / 1.2 var(--ff-mono);
  overflow-x: auto;
}
.brew .ps {
  color: var(--faint);
  user-select: none;
}
.brew code {
  white-space: nowrap;
  overflow-wrap: normal;
  padding: 0;
  border: 0;
  background: none;
  font-size: inherit;
  color: var(--ink);
}

/* ── the stage: a slice of a Mac, at real size ──────────────── */
.stage {
  margin: 0;
  display: grid;
  gap: 14px;
}
.desk {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow);
  isolation: isolate;
  /* a wallpaper: dusk over water, in gradients */
  background:
    radial-gradient(70% 55% at 85% 10%, #6b3fd6 0%, transparent 60%),
    radial-gradient(60% 60% at 10% 30%, #1f5eea 0%, transparent 65%),
    radial-gradient(80% 50% at 50% 100%, #0f8f7e 0%, transparent 70%),
    linear-gradient(180deg, #121a3a, #0b1024);
}
.desk::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 4px);
  mix-blend-mode: overlay;
}
.menubar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  height: 30px;
  padding: 0 14px;
  background: var(--menubar);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  backdrop-filter: blur(20px) saturate(1.8);
  color: var(--menubar-ink);
  font: 500 13px / 1 -apple-system, BlinkMacSystemFont, "Helvetica Neue", var(--ff-body);
}
.menubar svg {
  display: block;
}
.mb-clock {
  letter-spacing: 0.01em;
}
/* subtank's item: the slim gauge and LEFT over the number, pressed while the
   popover is open (a rounded highlight, as macOS draws it). */
.mb-st {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0 7px;
  border-radius: 6px;
  background: color-mix(in oklab, var(--menubar-ink) 18%, transparent);
}
.mb-st .stack {
  display: grid;
  line-height: 1;
}
.mb-st .stack small {
  font: 600 6.5px / 1 -apple-system, BlinkMacSystemFont, var(--ff-body);
  letter-spacing: 0.06em;
  opacity: 0.72;
}
.mb-st .stack b {
  font: 700 11.5px / 1.05 -apple-system, BlinkMacSystemFont, var(--ff-body);
  font-variant-numeric: tabular-nums;
}

/* The popover, hanging under subtank's item. */
.pop {
  position: relative;
  align-self: flex-end;
  width: 360px;
  max-width: calc(100% - 24px);
  margin: 8px 104px 36px 0;
  border-radius: 14px;
  border: 1px solid var(--pop-line);
  background: var(--pop-bg);
  -webkit-backdrop-filter: blur(30px) saturate(1.6);
  backdrop-filter: blur(30px) saturate(1.6);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 24px 60px -18px rgba(0, 0, 0, 0.6);
  color: var(--ink);
  font-family: var(--ff-body);
  overflow: hidden;
  transform-origin: 72% 0;
}
.pop-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--pop-line);
}
.pop-hd .ttl {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font: 650 0.92rem / 1 var(--ff-display);
  letter-spacing: -0.02em;
}
.verdict {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid color-mix(in oklab, var(--ok) 45%, transparent);
  background: color-mix(in oklab, var(--ok) 12%, transparent);
  font-size: 0.74rem;
  font-weight: 600;
}
.verdict i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--ok) 25%, transparent);
}
.prow {
  position: relative;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  gap: 6px 10px;
  align-items: center;
  padding: 10px 14px 11px;
  border-bottom: 1px solid var(--pop-line);
}
.prow:last-of-type {
  border-bottom: 0;
}
.prow.best {
  background: var(--pop-best);
}
.prow.best::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  border-radius: 2px;
  background: var(--ok);
}
.prow .who {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
  white-space: nowrap;
}
.prow .who b {
  font-size: 0.84rem;
  font-weight: 650;
}
.prow .who small {
  font-size: 0.74rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
}
.st {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 7px;
  border-radius: 999px;
  border: 1px solid currentColor;
  font: 600 0.58rem / 1.5 var(--ff-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.st::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}
.st.ok {
  color: var(--ok);
}
.st.warn {
  color: var(--warn);
}
.bars {
  grid-column: 2 / 4;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 32px 50px;
  gap: 4px 8px;
  align-items: center;
  font: 500 0.64rem / 1.3 var(--ff-mono);
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.bars .pct {
  text-align: right;
  color: var(--ink);
}
.bars .rst {
  text-align: right;
}
.bars .amt {
  grid-column: 2 / 4;
  color: var(--ink-2);
}
.bar {
  position: relative;
  height: 5px;
  border-radius: 999px;
  background: var(--track);
  overflow: hidden;
}
.bar.thin {
  height: 3.5px;
}
.bar > i {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: var(--pc, var(--ink-2));
  transform-origin: 0 50%;
}
.bar.warn > i {
  background: var(--warn);
}
.bar.crit > i {
  background: var(--crit);
}
.pc-claude {
  --pc: var(--p-claude);
}
.pc-openai {
  --pc: var(--p-openai);
}
.pc-cursor {
  --pc: var(--p-cursor);
}
.pc-kilo {
  --pc: var(--p-kilo);
}
.w4 > i { width: 4%; }
.w8 > i { width: 8%; }
.w9 > i { width: 9%; }
.w12 > i { width: 12%; }
.w22 > i { width: 22%; }
.w31 > i { width: 31%; }
.w41 > i { width: 41%; }
.w58 > i { width: 58%; }
.w61 > i { width: 61%; }
.w73 > i { width: 73%; }
.w88 > i { width: 88%; }
.pop-ft {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 10px 9px 14px;
  border-top: 1px solid var(--pop-line);
  font: 500 0.66rem / 1 var(--ff-mono);
  color: var(--muted);
}
.pop-ft .acts {
  display: flex;
  gap: 2px;
  color: var(--ink-2);
}
.pop-ft .acts span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
}
.stage figcaption {
  font-size: 0.82rem;
  color: var(--muted);
  text-align: right;
}

/* The provider square: a letter in the provider's colour. */
.pg {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--p-manual);
  color: #fff;
  font: 700 0.62rem / 1 var(--ff-mono);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.pg.lg {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 0.78rem;
}
.pg.claude {
  background: var(--p-claude);
}
.pg.openai {
  background: var(--p-openai);
}
.pg.cursor {
  background: var(--p-cursor);
}
.pg.kilo {
  background: var(--p-kilo);
}
.pg.copilot {
  background: var(--p-copilot);
}
.pg.openrouter {
  background: var(--p-openrouter);
}
.pg.ollama {
  background: var(--p-ollama);
}

/* ── 01 · three steps on one scale ──────────────────────────── */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 7px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2) 60%, var(--line) 100%);
}
.steps li {
  position: relative;
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 36px 32px 0 0;
  counter-increment: step;
}
.steps li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--ground);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 5px var(--ground);
}
.steps .n {
  font: 500 0.78rem / 1 var(--ff-mono);
  color: var(--accent);
}
.steps p {
  color: var(--ink-2);
  max-width: 34ch;
}

/* ── 02 · one row, taken apart ──────────────────────────────── */
.anatomy {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  margin-top: 56px;
}
.specimen {
  position: relative;
  padding: 56px 64px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background:
    radial-gradient(80% 80% at 0% 0%, color-mix(in oklab, var(--p-claude) 14%, transparent), transparent 70%),
    var(--surface);
}
.specimen .prow {
  grid-template-columns: 26px minmax(0, 1fr) auto;
  gap: 12px 14px;
  padding: 18px 20px 20px;
  border: 1px solid var(--pop-line);
  border-radius: 14px;
  background: var(--pop-bg);
  box-shadow: var(--shadow);
}
.specimen .pg {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  font-size: 0.74rem;
}
.specimen .prow .who b {
  font-size: 1.1rem;
}
.specimen .prow .who small {
  font-size: 0.9rem;
}
.specimen .st {
  font-size: 0.68rem;
  padding: 2px 9px;
}
.specimen .bars {
  grid-template-columns: 52px minmax(0, 1fr) 44px 64px;
  gap: 11px 12px;
  font-size: 0.8rem;
}
.specimen .bar {
  height: 8px;
}
.specimen .bar.thin {
  height: 6px;
}
/* Numbered markers, each pinned to the part it names: the left ones land
   in the gutter left of the row, the right ones in the gutter right of it. */
.specimen [data-pin] {
  position: relative;
}
.specimen [data-pin]::after {
  content: attr(data-pin);
  position: absolute;
  top: 50%;
  width: 22px;
  height: 22px;
  margin-top: -11px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font: 700 0.68rem / 22px var(--ff-mono);
  text-align: center;
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 22%, transparent);
}
/* the icon starts 20 px into the row; a label starts 20 + 26 + 14 = 60 px in */
.specimen .pg[data-pin]::after {
  left: -54px;
}
.specimen .bars [data-pin]::after {
  left: -94px;
}
/* the chip and the reset column both end 20 px short of the row's edge */
.specimen .st[data-pin]::after,
.specimen .bars .rst[data-pin]::after {
  left: auto;
  right: -54px;
}
.legend {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: pin;
}
.legend li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  counter-increment: pin;
}
.legend li:last-child {
  border-bottom: 1px solid var(--line);
}
.legend li::before {
  content: counter(pin);
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid color-mix(in oklab, var(--accent) 60%, transparent);
  color: var(--accent);
  font: 700 0.68rem / 1 var(--ff-mono);
}
.legend b {
  display: block;
  font-weight: 600;
}
.legend span {
  display: block;
  margin-top: 2px;
  font-size: 0.93rem;
  color: var(--muted);
}

/* ── 03 · the services, as a spec sheet ─────────────────────── */
.spec {
  margin-top: 56px;
  display: grid;
  gap: 40px;
}
.spec-group {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  gap: 0 40px;
}
.spec-group > h3 {
  padding-top: 18px;
  font: 500 0.8rem / 1.4 var(--ff-mono);
  letter-spacing: 0;
  color: var(--muted);
}
.spec-rows {
  margin: 0;
  padding: 0;
  list-style: none;
}
.spec-rows li {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 24px;
  align-items: baseline;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.spec-rows li:last-child {
  border-bottom: 1px solid var(--line);
}
.svc {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}
.svc .pg {
  transform: translateY(1px);
}
.svc .nm {
  display: inline;
}
.svc em {
  display: inline-block;
  margin-left: 8px;
  vertical-align: 0.12em;
  font-style: normal;
  font: 600 0.62rem / 1.4 var(--ff-mono);
  padding: 1px 6px;
  border-radius: 5px;
  border: 1px dashed var(--line-2);
  color: var(--muted);
}
.reads {
  color: var(--ink-2);
}
.via {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ── 04 · the rules, typeset ────────────────────────────────── */
.rules {
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
}
.rules li {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 24px clamp(24px, 5vw, 72px);
  align-items: baseline;
  padding: 34px 0;
  border-top: 1px solid var(--line);
}
.rules li:last-child {
  border-bottom: 1px solid var(--line);
}
.rules h3 {
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.rules h3 .big {
  font-family: var(--ff-mono);
  font-weight: 500;
  color: var(--accent);
}
.rules p {
  color: var(--ink-2);
}

/* ── 05 · the promise ───────────────────────────────────────── */
.promise {
  margin: 56px 0 0;
  display: grid;
  gap: 28px;
}
.promise blockquote {
  margin: 0;
}
.promise blockquote p {
  font: 600 clamp(1.9rem, 4.2vw, 3.5rem) / 1.08 var(--ff-display);
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.promise blockquote p::before {
  content: "“";
  margin-left: -0.5em;
  color: var(--accent);
}
.promise blockquote p::after {
  content: "”";
  color: var(--accent);
}
.promise .after {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: baseline;
  color: var(--muted);
}

/* ── 06 · get it ────────────────────────────────────────────── */
.get {
  margin-top: 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: end;
  padding: clamp(28px, 4vw, 48px);
  border-radius: 20px;
  border: 1px solid var(--line-2);
  background:
    radial-gradient(70% 120% at 100% 0%, color-mix(in oklab, var(--accent-2) 22%, transparent), transparent 65%),
    radial-gradient(60% 120% at 0% 100%, color-mix(in oklab, var(--accent) 18%, transparent), transparent 70%),
    var(--surface);
}
.get h2 {
  max-width: 14ch;
}
.get .side {
  display: grid;
  gap: 14px;
  justify-items: start;
}
.get .get-note {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ── document pages ─────────────────────────────────────────── */
.doc-head {
  display: grid;
  gap: 18px;
  padding: 26px 0 40px;
  border-top: 1px solid var(--line-2);
  position: relative;
}
.doc-head::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 11px;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, var(--tick) 0 1px, transparent 1px 120px) 0 0 / 100% 11px no-repeat,
    repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 12px) 0 0 / 100% 6px no-repeat;
}
.doc-head .eyebrow {
  font: 500 0.8rem / 1.4 var(--ff-mono);
  color: var(--accent);
}
.doc-head h1 {
  font-size: clamp(2.3rem, 5vw, 3.8rem);
}
.eyebrow {
  font: 500 0.8rem / 1.4 var(--ff-mono);
  color: var(--muted);
}
.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0 0 48px;
  padding: 0 0 22px;
  list-style: none;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.toc a {
  color: var(--muted);
}
.toc a:hover {
  color: var(--ink);
}
.prose > * {
  min-width: 0;
}
.prose {
  display: grid;
  gap: 16px;
  max-width: 72ch;
  color: var(--ink-2);
}
.prose h2 {
  margin-top: 36px;
  font-size: 1.6rem;
  line-height: 1.15;
  color: var(--ink);
  scroll-margin-top: 90px;
}
.prose h2:first-child {
  margin-top: 0;
}
.prose h3 {
  margin-top: 12px;
  color: var(--ink);
}
.prose ul,
.prose ol {
  margin: 0;
  padding-left: 1.3em;
  display: grid;
  gap: 8px;
}
.prose strong {
  color: var(--ink);
}
.page > section > pre,
.prose + pre,
pre + .prose {
  margin-block: 16px;
}
.page pre {
  max-width: 72ch;
}
.callout,
.note {
  padding: 14px 18px;
  border-radius: 10px;
  border-left: 3px solid var(--accent);
  background: var(--surface);
}
.callout strong {
  display: block;
  margin-bottom: 4px;
}
.note {
  border-left-color: var(--warn);
}
.tbl {
  overflow-x: auto;
  margin-block: 8px;
}
.tbl table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
}
.tbl th,
.tbl td {
  padding: 12px 14px 12px 0;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--line);
}
.tbl th {
  font: 500 0.78rem / 1.4 var(--ff-mono);
  color: var(--muted);
  border-top-color: var(--line-2);
}
.tbl td:first-child {
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}
.licence {
  padding: clamp(22px, 4vw, 36px);
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  margin-bottom: 20px;
}
.lic-title {
  font: 600 0.82rem / 1.4 var(--ff-mono);
  color: var(--muted);
}

/* The download page: one row per chip, generated by site-release.mjs. */
.dl-ver {
  margin-bottom: 22px;
  font: 500 0.84rem / 1.5 var(--ff-mono);
  color: var(--muted);
}
.dl-list {
  display: grid;
  border-top: 1px solid var(--line-2);
}
.dl-row {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr) auto;
  gap: 16px 32px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.dl-row h2 {
  font-size: 1.5rem;
}
.dl-row .for {
  margin-top: 4px;
  font-size: 0.92rem;
  color: var(--muted);
}
.facts {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 16px;
  margin: 0;
  font-size: 0.86rem;
}
.facts dt {
  font: 500 0.76rem / 1.6 var(--ff-mono);
  color: var(--faint);
}
.facts dd {
  margin: 0;
  color: var(--ink-2);
  min-width: 0;
}
.facts .sha {
  font: 500 0.74rem / 1.6 var(--ff-mono);
  word-break: break-all;
  color: var(--muted);
}
.soon {
  padding: 28px 0;
  border-top: 1px solid var(--line-2);
  display: grid;
  gap: 10px;
}
.qa {
  display: grid;
  margin-top: 8px;
}
.qa > div {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr);
  gap: 12px 32px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.qa > div:last-child {
  border-bottom: 1px solid var(--line);
}
.qa p {
  color: var(--ink-2);
}
.req {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 72ch;
}
.block {
  display: grid;
  gap: 18px;
  margin-top: 64px;
}
.block > h2 {
  font-size: 1.6rem;
}

/* The changelog: the version in the margin, its notes beside it. */
.log {
  margin: 0;
  padding: 0;
  list-style: none;
}
.log-item {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 16px 40px;
  padding: 32px 0;
  border-top: 1px solid var(--line-2);
  scroll-margin-top: 90px;
}
.log-meta {
  display: grid;
  gap: 6px;
  align-content: start;
}
.log-meta h2 {
  font: 600 1.7rem / 1 var(--ff-mono);
  letter-spacing: -0.03em;
}
.log-meta time {
  font-size: 0.88rem;
  color: var(--muted);
}
.chan {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 500 0.76rem / 1.4 var(--ff-mono);
  color: var(--ok);
}
.chan::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.chan.beta {
  color: var(--warn);
}
.log-body {
  display: grid;
  gap: 14px;
  color: var(--ink-2);
}
.log-body ul {
  margin: 0;
  padding-left: 1.2em;
  display: grid;
  gap: 10px;
}

/* 404 */
.empty {
  display: grid;
  place-items: center;
  padding: 120px var(--gutter);
  text-align: center;
}
.empty > div {
  display: grid;
  gap: 18px;
  justify-items: center;
}
.empty .tank {
  color: var(--faint);
}

/* ── footer ─────────────────────────────────────────────────── */
.foot {
  margin-top: 120px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
}
.foot-in {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 0.6fr));
  gap: 32px;
  padding-block: 48px 36px;
}
.foot-brand {
  display: grid;
  gap: 12px;
  align-content: start;
}
.foot-brand p {
  max-width: 36ch;
}
.foot-col h2 {
  margin-bottom: 12px;
  font: 500 0.78rem / 1.4 var(--ff-mono);
  letter-spacing: 0;
  color: var(--faint);
}
.foot-col ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.foot-col a {
  color: var(--ink-2);
}
.foot-legal {
  padding-block: 0 40px;
  font-size: 0.8rem;
  color: var(--faint);
}
.foot-legal p {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

/* ── motion ─────────────────────────────────────────────────── */
/* The stage settles once, on load: the popover drops, the bars fill. */
.desk .pop {
  animation: drop 0.9s var(--spring) 0.25s both;
}
.desk .bar > i {
  animation: fill 1.1s var(--ease) 0.6s both;
}
.mb-st {
  animation: press 0.5s var(--ease) 0.15s both;
}
@keyframes drop {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.97);
  }
}
@keyframes fill {
  from {
    transform: scaleX(0);
  }
}
@keyframes press {
  from {
    background: transparent;
  }
}
/* Sections rise as they come into view, where the browser can tie an
   animation to scrolling; elsewhere they are simply there. Never from
   invisible: a screenshot mid-scroll still shows the words. */
@supports (animation-timeline: view()) {
  .reveal {
    animation: rise linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 55%;
  }
  @keyframes rise {
    from {
      opacity: 0.35;
      transform: translateY(28px);
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ── narrow screens ─────────────────────────────────────────── */
@media (max-width: 1020px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }
  .pop {
    margin-right: 60px;
  }
  .anatomy {
    grid-template-columns: minmax(0, 1fr);
  }
  .get {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }
}
@media (max-width: 820px) {
  :root {
    --rail: 1fr;
  }
  .rule,
  .spec-group {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .spec-group > h3 {
    padding-top: 0;
  }
  .nav .hash {
    display: none;
  }
  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .steps::before {
    top: 0;
    bottom: 0;
    left: 7px;
    right: auto;
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, var(--accent), var(--accent-2) 60%, var(--line));
  }
  .steps li {
    padding: 0 0 0 36px;
  }
  .spec-rows li {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
  .rules li {
    grid-template-columns: minmax(0, 1fr);
  }
  .log-item,
  .dl-row,
  .qa > div {
    grid-template-columns: minmax(0, 1fr);
  }
  .foot-in {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .foot-brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 560px) {
  .top-in {
    gap: 16px;
  }
  .nav {
    gap: 16px;
  }
  .nav li:not(.keep) {
    display: none;
  }
  .pop {
    align-self: stretch;
    width: auto;
    max-width: none;
    margin: 8px 10px 14px;
  }
  .stage figcaption {
    text-align: left;
  }
  .mb-other {
    display: none;
  }
  .specimen {
    padding: 20px 12px;
  }
  .specimen [data-pin]::after {
    display: none;
  }
}
