/* nostrings. Dark only. Ultron palette: #262626 #b3b3b3 #c9c9c9 #f2f2f2, one red #941212. */

@font-face {
  font-family: "Geist";
  src: url("fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-0: #161616;
  --bg: #1c1c1c;
  --surface: #262626;
  --surface-2: #2e2e2e;
  --line: rgb(242 242 242 / 0.08);
  --line-2: #3a3a3a;
  --ink: #f2f2f2;
  --ink-2: #c9c9c9;
  --muted: #b3b3b3;
  --muted-2: #8f8f8f;
  --red: #941212;
  --red-hi: #b51717;
  /* #941212 is too dark for text on these greys: same hue, lighter. */
  --red-ink: #e85c5c;
  --ok: #8fd18f;
  --radius: 8px;
  --radius-lg: 12px;
  --maxw: 1120px;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", "Cascadia Code", "JetBrains Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* Signature: a thin red string across the top of every page. */
body::before {
  content: "";
  position: fixed; inset: 0 0 auto; height: 2px; z-index: 100;
  background: linear-gradient(90deg, transparent, var(--red) 18%, var(--red-hi) 50%, var(--red) 82%, transparent);
  pointer-events: none;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: var(--line-2); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color 0.15s ease, text-decoration-color 0.15s ease; }
a:hover { color: var(--ink); text-decoration-color: var(--red-ink); }
:focus-visible { outline: 2px solid var(--red-ink); outline-offset: 2px; }
::selection { background: rgb(148 18 18 / 0.6); color: #fff; }
strong { font-weight: 600; }
code, pre, kbd { font-family: var(--mono); font-size: 0.875em; }
:not(pre) > code {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-2);
  padding: 0.1em 0.4em;
  border-radius: 5px;
  overflow-wrap: anywhere;
}
h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.1; margin: 0; font-weight: 600; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: transparent; color: var(--ink);
  font: 500 0.92rem/1 var(--font);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover { color: var(--ink); background: var(--surface); }
.btn-primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-hi); border-color: var(--red-hi); color: #fff; }
[hidden] { display: none !important; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 0.85rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgb(28 28 28 / 0.82);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.03em; font-size: 1.08rem; text-decoration: none; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo svg { width: 22px; height: 22px; }
.logo-word { display: block; height: 16px; width: auto; }
.nav-links { display: flex; gap: 24px; margin-left: auto; align-items: center; }
.nav-links a { text-decoration: none; font-size: 0.9rem; color: var(--muted); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links .btn-primary, .nav-links .btn-primary:hover { color: #fff; }
@media (max-width: 640px) { .nav-links .hide-sm { display: none; } }

/* Eyebrow: mono label with a red dot. In the hero it becomes a pill. */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 0.75rem/1 var(--mono); letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red-ink); flex: none; }
.hero .eyebrow {
  height: 30px; padding: 0 14px 0 12px;
  border: 1px solid var(--line-2); border-radius: 999px;
  background: rgb(22 22 22 / 0.7);
  text-transform: none; letter-spacing: 0.01em;
}
.hero .eyebrow::before { box-shadow: 0 0 0 3px rgb(232 92 92 / 0.18); }
@media (max-width: 479px) { .hero .eyebrow { font-size: 0.68rem; padding: 0 10px; gap: 8px; white-space: nowrap; } }

/* Hero: soft red light top-right, faint vertical strings fading out. */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: 112px 0 104px; }
.hero::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  top: -35%; right: -15%; width: 80%; height: 130%;
  background: radial-gradient(closest-side, rgb(148 18 18 / 0.26), rgb(148 18 18 / 0.08) 55%, transparent);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(90deg, rgb(242 242 242 / 0.045) 0 1px, transparent 1px 88px);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 75%);
  mask-image: linear-gradient(180deg, #000, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); } }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.25rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1.02; margin: 24px 0 22px; }
.hero h1 em { font-style: normal; color: var(--red-ink); }
.lede { font-size: clamp(1.05rem, 1.5vw, 1.18rem); color: var(--muted); max-width: 34em; margin: 0 0 32px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Marionette strings behind the hero (strings.js). They replace the static vertical lines once the script runs. */
.strings-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000, #000 55%, transparent 94%);
  mask-image: linear-gradient(180deg, #000, #000 55%, transparent 94%);
}
.hero.has-strings::after { display: none; }
.hero .btn:not(.btn-primary) { background: rgb(22 22 22 / 0.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hero .btn:not(.btn-primary):hover { background: var(--surface); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 28px 0 0; padding: 0; font-size: 0.86rem; color: var(--muted); }
.hero-meta li { display: inline-flex; align-items: center; gap: 8px; }

/* Code card */
.code-card { background: var(--bg-0); color: var(--muted); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; min-width: 0; }
.code-head { display: flex; align-items: stretch; gap: 2px; height: 42px; padding: 0 8px 0 6px; border-bottom: 1px solid var(--line); }
.tab {
  display: inline-flex; align-items: center;
  background: none; border: 0; border-bottom: 1px solid transparent; margin-bottom: -1px;
  color: var(--muted-2); cursor: pointer;
  font: 500 0.78rem var(--mono); padding: 0 10px;
}
.tab:hover { color: var(--ink-2); }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--red-ink); }
.copy {
  align-self: center; margin-left: auto;
  height: 26px; padding: 0 10px;
  background: none; border: 1px solid var(--line-2); border-radius: 6px;
  color: var(--muted); font: 0.72rem var(--mono); cursor: pointer;
}
.copy:hover { color: var(--ink); border-color: var(--muted-2); }
pre { margin: 0; padding: 20px 22px; overflow-x: auto; font-size: 0.82rem; line-height: 1.75; tab-size: 2; color: var(--muted); }
pre .c { color: var(--muted-2); }
pre .s { color: var(--ink); }
pre .k { color: var(--red-ink); }
[role="tabpanel"][hidden] { display: none; }

/* Diff block */
pre.diff span { display: block; margin: 0 -22px; padding: 0 22px; }
pre.diff .del { color: var(--muted-2); background: rgb(148 18 18 / 0.12); }
pre.diff .add { color: var(--ink); background: rgb(143 209 143 / 0.07); }

/* Scroll reveal (site.js adds .js on <html> and .reveal/.in on blocks). */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* Tiles: client integrations on the landing, page lists on section indexes. Text only, no third-party logos. */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
@media (min-width: 560px) { .tiles-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .tiles-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 720px) { .tiles-list { grid-template-columns: repeat(2, 1fr); } }
.tiles li { display: flex; }
.tile { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 22px 24px 24px; background: var(--bg); text-decoration: none; transition: background 0.15s ease; }
.tile:hover { background: #202020; }
.tile-label { font: 500 0.72rem var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted-2); }
.tile-name { font-weight: 500; font-size: 1.05rem; color: var(--ink); letter-spacing: -0.01em; }
.tile-desc { color: var(--muted); font-size: 0.9rem; }
.tile-go { margin-top: auto; padding-top: 10px; font: 0.75rem var(--mono); color: var(--muted-2); }
.tile-go::after { content: " \2192"; }
.tile:hover .tile-go { color: var(--red-ink); }
.tiles-list { margin-top: 36px; }

/* Sections */
section { padding: 88px 0; }
main > section + section:not(.band) { border-top: 1px solid var(--line); }
.section-head { max-width: 40em; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 600; letter-spacing: -0.035em; margin: 16px 0 12px; }
.section-head p { color: var(--muted); margin: 0; font-size: 1.05rem; }

.grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
@media (min-width: 720px) { .grid-2, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 720px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.cell { background: var(--bg); padding: 28px 24px 32px; }
.cell h3 { font-size: 1rem; font-weight: 500; letter-spacing: -0.01em; margin: 22px 0 8px; }
.cell p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.ico {
  width: 36px; height: 36px; display: grid; place-items: center;
  border: 1px solid var(--line-2); border-radius: var(--radius);
  background: var(--bg-0); color: var(--ink-2);
}
.ico svg { width: 18px; height: 18px; }

/* Prompt examples */
.examples { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
@media (min-width: 720px) { .examples { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .examples { grid-template-columns: repeat(3, 1fr); } }
.ex { margin: 0; background: var(--bg); padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 14px; transition: background 0.15s ease; }
.ex:hover { background: #202020; }
.ex figcaption { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.ex-tag { font: 500 0.72rem var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--red-ink); }
.ex-else {
  font: 0.72rem var(--mono); color: var(--muted-2);
  background: linear-gradient(rgb(232 92 92 / 0.75), rgb(232 92 92 / 0.75)) no-repeat 0 55% / 100% 1px;
}
.js .examples .ex-else { background-size: 0% 1px; transition: background-size 0.5s cubic-bezier(0.7, 0, 0.3, 1); }
.js .examples.in .ex-else { background-size: 100% 1px; }
.js .examples.in .ex:nth-child(2) .ex-else { transition-delay: 0.12s; }
.js .examples.in .ex:nth-child(3) .ex-else { transition-delay: 0.24s; }
.js .examples.in .ex:nth-child(4) .ex-else { transition-delay: 0.36s; }
.js .examples.in .ex:nth-child(5) .ex-else { transition-delay: 0.48s; }
.js .examples.in .ex:nth-child(6) .ex-else { transition-delay: 0.6s; }
.ex blockquote { margin: 0; color: var(--ink-2); font-size: 0.97rem; line-height: 1.55; }
.ex blockquote::before { content: "\201C"; color: var(--muted-2); margin-right: 1px; }
.ex blockquote::after { content: "\201D"; color: var(--muted-2); margin-left: 1px; }

/* Refused vs answered. Left: the refusal hangs from strings and sways like a puppet. Right: a cut stroke
   severs the strings, the loose ends drop, the answer is revealed in the direction of the blade. */
.split { margin-top: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-0); overflow: hidden; }
.split-prompt { margin: 0; padding: 16px 24px; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 0.95rem; }
.split-k { font: 500 0.72rem var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted-2); margin-right: 12px; }
.split-panes { display: grid; }
@media (min-width: 720px) { .split-panes { grid-template-columns: 1fr 1fr; } }
.pane { position: relative; padding: 20px 24px 28px; display: flex; flex-direction: column; }
.pane + .pane { border-top: 1px solid var(--line); }
@media (min-width: 720px) { .pane + .pane { border-top: 0; border-left: 1px solid var(--line); } }
.pane-label { font: 500 0.72rem var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted-2); }
.pane-ns .pane-label { color: var(--red-ink); }
.puppet, .freed { margin: 0 auto; width: min(100%, 360px); }
.threads { width: 100%; height: 56px; overflow: visible; }
.threads path { fill: none; stroke: rgb(242 242 242 / 0.22); stroke-width: 1; vector-effect: non-scaling-stroke; }
.freed { position: relative; }
.cut { position: absolute; left: 10%; width: 80%; top: 27px; height: 1.5px; border-radius: 1px; background: var(--red-ink); opacity: 0.6; transform: rotate(-4deg); transform-origin: 0 50%; pointer-events: none; }
.pane-text { margin: 0; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: var(--radius); font-size: 0.95rem; line-height: 1.55; }
.pane-else .pane-text { color: var(--muted); background: var(--bg); }
.pane-ns .pane-text { color: var(--ink-2); background: var(--bg); border-color: var(--line); }
.puppet { transform-origin: 50% 0; animation: sway 6s ease-in-out infinite; }
@keyframes sway { 0%, 100% { transform: rotate(-0.7deg); } 50% { transform: rotate(0.7deg); } }
.js .split .fall { transition: transform 0.7s cubic-bezier(0.5, 0, 0.9, 0.5) 0.75s, opacity 0.6s ease 0.85s; }
.js .split .stub { transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.4) 0.72s; }
.js .split .cut { transition: transform 0.32s cubic-bezier(0.7, 0, 0.3, 1) 0.4s, opacity 1.2s ease 1.2s; }
.js .split .answer { transition: clip-path 1.1s cubic-bezier(0.4, 0, 0.2, 1) 0.85s; }
.js .split.reveal:not(.in) .fall, .js .split.reveal:not(.in) .stub { transform: none; opacity: 1; }
.js .split.reveal:not(.in) .cut { transform: rotate(-4deg) scaleX(0); opacity: 1; }
.js .split.reveal:not(.in) .answer { clip-path: inset(0 100% 0 0); }
.split .fall { transform: translateY(26px); opacity: 0; }
.split .stub { transform: translateY(-3px); }
.split .answer { clip-path: inset(0 0 0 0); }

/* Switching */
.switch-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .switch-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; } }
.switch-grid .section-head { margin-bottom: 0; }
.st { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 20px; margin: 28px 0 0; padding-top: 22px; border-top: 1px solid var(--line); font-size: 0.92rem; }
.st dt { font: 500 0.75rem/1.9 var(--mono); text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted-2); }
.st dd { margin: 0; color: var(--ink-2); min-width: 0; }
.st em { font-style: normal; color: var(--ink); }

/* Ring marker: hollow red circle used next to periods and units. */
.ring { display: inline-block; width: 9px; height: 9px; border: 1.5px solid var(--red-ink); border-radius: 50%; flex: none; }

/* Pricing: three model ids */
.tiers { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
@media (min-width: 860px) { .tiers { grid-template-columns: repeat(3, 1fr); } }
.tier { background: var(--bg); padding: 28px 26px 26px; display: flex; flex-direction: column; }
.tier-default { background: var(--surface); }
.tier-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 28px; }
.tier-head h3 { font-size: 1.1rem; }
.tier-head h3 code { background: none; border: 0; padding: 0; color: var(--ink); font-size: 1rem; }
.tier-badge { font: 500 0.7rem var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--red-ink); border: 1px solid rgb(232 92 92 / 0.35); border-radius: 999px; padding: 4px 10px; }
.tier-desc { color: var(--muted); font-size: 0.92rem; margin: 12px 0 0; }
.tier-turn { margin: auto 0 0; padding-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.tier-turn .amount { font-size: 2.6rem; font-weight: 500; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.tier-turn .unit { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.88rem; }
.tier-rates { margin: 22px 0 0; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: 0.9rem; }
.tier-rates div { display: flex; justify-content: space-between; gap: 12px; }
.tier-rates dt { color: var(--muted-2); }
.tier-rates dd { margin: 0; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.tier-rates dd span { color: var(--muted-2); }
.tier-cap { margin: 10px 0 0; color: var(--muted-2); font-size: 0.85rem; }
.tier-common { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: 0.88rem; }
.tier-common li { display: inline-flex; align-items: center; gap: 8px; }
.tier-common li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--muted-2); }

/* Cost calculator */
.calc { margin-top: 28px; display: grid; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--bg); }
@media (min-width: 860px) { .calc { grid-template-columns: 1.1fr 1fr; } }
.calc-in { padding: 26px; display: grid; gap: 20px; }
.calc-in h3 { font-size: 1rem; font-weight: 500; }
.calc-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; font-size: 0.92rem; color: var(--ink-2); }
.calc-row output { font: 500 0.85rem var(--mono); color: var(--ink); font-variant-numeric: tabular-nums; }
.calc input[type="range"] { width: 100%; margin: 0; accent-color: var(--red-ink); }
.calc-note { margin: 0; color: var(--muted-2); font-size: 0.85rem; }
.calc-out { margin: 0; padding: 26px; display: grid; gap: 14px; align-content: center; background: var(--bg-0); border-top: 1px solid var(--line); }
@media (min-width: 860px) { .calc-out { border-top: 0; border-left: 1px solid var(--line); } }
.calc-out div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.calc-out div:last-child { padding-bottom: 0; border-bottom: 0; }
.calc-out dt code { font-size: 0.9rem; }
.calc-out dd { margin: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.calc-month { font-size: 1.6rem; font-weight: 500; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--ink); }
.calc-month::after { content: " / month"; font-size: 0.8rem; letter-spacing: 0; color: var(--muted-2); font-weight: 400; }
.calc-turn { font: 0.75rem var(--mono); color: var(--muted-2); }

.costs { margin-top: 20px; background: var(--bg); }
.costs .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.costs td.num:last-child { color: var(--ink); }

/* Data flow: three nodes on a string. */
.flow { display: grid; align-items: stretch; }
@media (min-width: 860px) { .flow { grid-template-columns: 1fr 56px 1fr 56px 1fr; } }
.node { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg); padding: 24px; }
.node .tag { font: 500 0.75rem var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted-2); }
.node h3 { font-size: 1.05rem; font-weight: 500; margin: 10px 0 8px; }
.node p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.node.us { border-color: var(--line-2); background: var(--surface); }
.node.us .tag { color: var(--red-ink); }
.node.us p { color: var(--ink-2); }
.arrow { position: relative; min-height: 32px; }
.arrow::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--line-2); }
.arrow::after {
  content: ""; position: absolute; left: 50%; top: 0; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%;
  background: var(--red-ink); box-shadow: 0 0 0 4px rgb(232 92 92 / 0.12);
  animation: packet-v 3.2s cubic-bezier(0.6, 0, 0.4, 1) infinite;
}
.flow .arrow:nth-of-type(4)::after { animation-delay: 1.6s; }
@keyframes packet-v { 0% { top: 0; opacity: 0; } 8% { opacity: 1; } 42% { top: 100%; opacity: 1; } 50%, 100% { top: 100%; opacity: 0; } }
@keyframes packet-h { 0% { left: 0; opacity: 0; } 8% { opacity: 1; } 42% { left: 100%; opacity: 1; } 50%, 100% { left: 100%; opacity: 0; } }
@media (min-width: 860px) {
  .arrow::before { left: 0; right: 0; top: 50%; bottom: auto; width: auto; height: 1px; }
  .arrow::after { top: 50%; left: 0; animation-name: packet-h; }
}
.fineprint { color: var(--muted-2); font-size: 0.9rem; margin-top: 20px; }

/* Rules + FAQ */
.rules { display: grid; padding: 0; margin: 0; list-style: none; counter-reset: r; border-bottom: 1px solid var(--line); }
.rules li { counter-increment: r; display: flex; gap: 20px; padding: 18px 0; border-top: 1px solid var(--line); color: var(--ink-2); }
.rules li::before { content: counter(r, decimal-leading-zero); font: 500 0.85rem/1.9 var(--mono); color: var(--red-ink); min-width: 2ch; }
details { border-top: 1px solid var(--line); padding: 20px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 500; font-size: 1.02rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--mono); color: var(--muted-2); }
details[open] summary::after { content: "\2212"; }
details p { color: var(--muted); margin: 10px 0 0; max-width: 46em; }

/* CTA band */
.band { padding-top: 24px; }
.band-card {
  position: relative; isolation: isolate; overflow: hidden;
  border: 1px solid var(--line); border-radius: 16px;
  background: var(--bg-0);
  padding: 64px 24px;
}
@media (min-width: 720px) { .band-card { padding: 72px 56px; } }
.band-card::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  top: -60%; right: -20%; width: 70%; height: 180%;
  background: radial-gradient(closest-side, rgb(148 18 18 / 0.3), rgb(148 18 18 / 0.08) 55%, transparent);
}
.band-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(90deg, rgb(242 242 242 / 0.04) 0 1px, transparent 1px 88px);
  -webkit-mask-image: linear-gradient(270deg, #000, transparent 60%);
  mask-image: linear-gradient(270deg, #000, transparent 60%);
}
.band h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 600; letter-spacing: -0.04em; }
.band p { color: var(--muted); max-width: 36em; margin: 16px 0 32px; }

/* Closing logo: the header lockup (mark + wordmark) at large scale, fading into the footer line.
   Proportions follow the header: mark 22px, gap 10px, wordmark 16px tall. */
.wordmark { --w: min(88vw, 1040px); overflow: hidden; margin-top: 72px; user-select: none; pointer-events: none; }
.wordmark-lockup {
  display: flex; align-items: center; justify-content: center; gap: calc(var(--w) * 0.094);
  width: var(--w); margin: 0 auto calc(var(--w) * -0.03);
  -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent 98%);
  mask-image: linear-gradient(180deg, #000 40%, transparent 98%);
}
.wordmark .wm-mark { display: block; width: calc(var(--w) * 0.2075); height: auto; }
.wordmark .wm-word { display: block; height: calc(var(--w) * 0.151); width: auto; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 44px; color: var(--muted-2); font-size: 0.88rem; }
.footer-row { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
.footer-row nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-left: auto; }
.status { display: inline-flex; align-items: center; gap: 8px; font: 0.78rem var(--mono); }
.status-dot { width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--muted-2); }
.status.is-up .status-dot { border-color: var(--ok); background: var(--ok); box-shadow: 0 0 0 3px rgb(143 209 143 / 0.12); }
.status.is-up { color: var(--ink-2); }
.footer-row a { text-decoration: none; }

/* Docs layout */
.docs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 48px; padding-bottom: 96px; }
@media (min-width: 960px) { .docs { grid-template-columns: 200px minmax(0, 1fr); gap: 64px; } }
.sidebar { font-size: 0.9rem; }
@media (min-width: 960px) { .sidebar { position: sticky; top: 96px; align-self: start; max-height: calc(100vh - 112px); overflow: auto; } }
.sidebar h4 { font: 500 0.72rem var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted-2); margin: 0 0 8px; }
.sidebar ul { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 1px; }
@media (max-width: 959px) { .sidebar ul { display: flex; flex-wrap: wrap; gap: 6px 16px; } }
.sidebar a { position: relative; text-decoration: none; color: var(--muted); display: block; padding: 4px 0; }
@media (min-width: 960px) { .sidebar a { padding-left: 14px; } }
.sidebar a:hover { color: var(--ink); }
.sidebar a[aria-current] { color: var(--ink); }
@media (min-width: 960px) {
  .sidebar a[aria-current]::before { content: ""; position: absolute; left: 0; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: var(--red-ink); }
}
.doc h1 { font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 600; letter-spacing: -0.035em; margin: 18px 0 14px; }
.doc h2 { font-size: 1.4rem; font-weight: 600; margin: 64px 0 14px; padding-top: 28px; border-top: 1px solid var(--line); scroll-margin-top: 88px; }
.doc h3 { font-size: 1.05rem; font-weight: 500; margin: 28px 0 10px; letter-spacing: -0.01em; }
.doc p, .doc li { color: var(--ink-2); }
.doc .lede { color: var(--muted); margin-bottom: 8px; }
.doc .code-card { margin: 16px 0; }
.doc ol, .doc ul { padding-left: 1.3em; }
.doc li { margin: 6px 0; }
.doc li::marker { color: var(--muted-2); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; margin: 16px 0; }
table { border-collapse: collapse; width: 100%; font-size: 0.9rem; }
th, td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font: 500 0.72rem var(--mono); text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted-2); white-space: nowrap; }
tbody tr { transition: background 0.12s ease; }
tbody tr:hover { background: rgb(242 242 242 / 0.02); }
tr:last-child td { border-bottom: 0; }
.callout { border-left: 2px solid var(--red); background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; padding: 14px 18px; margin: 18px 0; }
.callout p { margin: 0; color: var(--ink-2); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; margin: 20px 0; }
.kv dt { font: 500 0.82rem/1.9 var(--mono); color: var(--muted-2); }
.kv dd { margin: 0; overflow-wrap: anywhere; }

/* Generated content pages (scripts/build-site.ts): guides, learn, glossary, changelog, privacy. */
.page { --maxw: 880px; padding-top: 40px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font: 0.78rem var(--mono); color: var(--muted-2); margin-bottom: 28px; }
.crumbs a { text-decoration: none; }
.crumbs [aria-current] { color: var(--ink-2); }
.page-meta { color: var(--muted-2); font: 0.8rem var(--mono); margin: 0; }
.page .doc h2 { margin-top: 48px; }
.page .doc table code { white-space: nowrap; }
.related { list-style: none; padding: 0 !important; display: grid; gap: 10px; }
.related li { margin: 0; }
.related a { color: var(--ink); }
.related span { display: block; color: var(--muted); font-size: 0.9rem; }
.entry { padding: 0; margin-top: 40px; border-top: 1px solid var(--line); padding-top: 24px; }
.entry h2 { margin-top: 8px !important; padding-top: 0 !important; border-top: 0 !important; }
.page .band { padding: 72px 0 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .puppet { animation: none !important; }
  *, *::before, *::after { transition: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .flow .arrow::after { animation: none !important; }
}

/* Phrases that must not break across lines. */
.nowrap { white-space: nowrap; }
.section-head h2 .refusal { color: var(--red-ink); white-space: nowrap; font-size: min(1em, 6vw); }

/* Who it's for */
@media (min-width: 720px) and (max-width: 999px) { .grid-3.uses { grid-template-columns: 1fr; } }
.uses .cell { display: flex; flex-direction: column; }
.uses .tag { font: 500 0.75rem var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--red-ink); }
.uses h3 { margin-top: 14px; }
.uses ul { margin: 0 0 20px; padding-left: 1.1em; color: var(--muted); font-size: 0.92rem; }
.uses li + li { margin-top: 6px; }
.uses a { margin-top: auto; font-size: 0.9rem; }

/* Tier cards: display name, then the API id, badge pushed right. */
.tier-head { justify-content: flex-start; flex-wrap: wrap; }
.tier-head .tier-id { font-size: 0.8rem; color: var(--muted); }
.tier-head .tier-badge { margin-left: auto; }

/* Pre-launch page (/coming-soon/): the hero alone, filling the viewport. */
.soon-page { min-height: 100vh; display: flex; flex-direction: column; }
.soon-page main { flex: 1; display: flex; }
.soon { flex: 1; display: flex; align-items: center; padding: 72px 0 96px; }
.soon .wrap { width: 100%; }
.soon .lede { margin-bottom: 20px; }
.soon-note { color: var(--muted-2); font-size: 0.95rem; max-width: 34em; margin: 0; }
