/* Hallmark · shape: Workbench · genre: modern-minimal · theme: Cobalt (deal 3/3, seed llm-gateway-developers-one-0a60·4306cb00·2026-10-30·r0) · redesign: full · draw: 58b9ea · job: sign up
 * hero: Settled · nav: edge-aligned, wordmark left, three links and one key right · footer: colophon block · imagery: the product built (the routing demo) · signature: the request field, an ASCII ground that converges into the class the demo picked
 * axes: light/grotesk-sans/cool · posture: restrained · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R5 V4 · weakest: S, the hero demo was a lavender card any router could show; the field behind it now draws this gateway's own fan-out from raw requests into spark, core and apex */
/* Hallmark · finish-review: subagent, fix · 6 findings · 5 resolved 1 partial (the stream into the card still reads thin at 1440; the three class lanes now fall from the tiles inside the fold, the picked one lit) · gap: none */
/* Hallmark · display face: Onest stands in for Familjen Grotesk, which has no Cyrillic; fonts are self-hosted because the CSP allows font-src 'self' only */
/* Hallmark · dropped eyebrow "Для разработчиков" over Подключение · 54 names it; the heading already says it */
/* Hallmark · reworded hero "Подключите приложение к CodeLab Gateway. Выберите модель сами или включите smart, чтобы Gateway подбирал её под запрос." to "Выберите модель сами или включите smart, и Gateway подберёт её под запрос." · 58 names the hero's three text blocks */
/* Hallmark · waive 77 · the path band is one line of three stops between the hero and the sections · it restates the request path at title scale and carries no section of its own */
/* Hallmark · waive 79 · the room under the hero copy carries the request field's raw stream on its way into the demo · the space is the signature, not a dead band */
/* Hallmark · waive 44c · the hero ends at the demo card's foot and the field fills the band under it before the path band · the request field reads as the hero's floor */
/* Hallmark · answered F6 · the model table heads are class names, no figures to align */
/* Hallmark · dismissed 25 · .split-head p and .ops-head p are one-sentence ledes, allowed from 28ch */
/* Hallmark · reworded eyebrow "Для приложений и AI-агентов" and note "Поддерживает Chat Completions и потоковые ответы." into one line under the actions · 54 and 58 */

@font-face { font-family: "Onest"; src: url("/onest-cyrillic.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; src: url("/onest-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; 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: "IBM Plex Sans"; src: url("/plex-cyrillic.woff2") format("woff2"); font-weight: 100 700; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "IBM Plex Sans"; src: url("/plex-latin.woff2") format("woff2"); font-weight: 100 700; font-display: swap; 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"; src: url("/mono-cyrillic.woff2") format("woff2"); font-weight: 100 800; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "JetBrains Mono"; src: url("/mono-latin.woff2") format("woff2"); font-weight: 100 800; font-display: swap; 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; }

:root {
  color-scheme: light;
  --space-3xs: 2px; --space-2xs: 4px; --space-xs: 8px; --space-sm: 12px; --space-md: 16px; --space-lg: 24px; --space-xl: 40px; --space-2xl: 64px; --space-3xl: 96px; --space-4xl: 144px;
  --text-xs: 0.8125rem; --text-sm: 0.875rem; --text-md: 1rem; --text-lg: 1.25rem; --text-xl: 1.5625rem; --text-2xl: 1.953rem; --text-3xl: 2.441rem;
  --text-display-s: clamp(2.25rem, 4vw + 0.5rem, 3.75rem); --text-display: clamp(2.75rem, 5vw + 1rem, 5.25rem);
  --text-section: clamp(2rem, 2.5vw + 1rem, 3.5rem); --text-title: clamp(1.25rem, 0.75vw + 0.875rem, 1.625rem); --text-lead: clamp(1.125rem, 0.35vw + 1rem, 1.375rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1); --ease-in: cubic-bezier(0.7, 0, 0.84, 0); --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-micro: 120ms; --dur-short: 220ms; --dur-long: 420ms;
  --color-error: oklch(52% 0.19 27); --color-success: oklch(50% 0.12 150);
  --container: 1440px; --gutter: 64px; --gap-columns: 32px; --section-gap-s: 120px; --section-gap: 144px; --section-gap-l: 176px;
  --z-base: 1; --z-raised: 10; --z-dropdown: 100; --z-sticky: 200; --z-sticky-nav: 300; --z-modal: 400; --z-toast: 500; --z-tooltip: 600;
  --color-paper: oklch(98.6% 0.005 250); --color-paper-2: oklch(96.2% 0.008 252); --color-paper-3: oklch(93% 0.011 252);
  --color-ink: oklch(21% 0.028 262); --color-ink-2: oklch(36% 0.022 260); --color-muted: oklch(50% 0.018 258);
  --color-rule: oklch(90% 0.009 252); --color-rule-2: oklch(83% 0.012 252);
  --color-graphite: oklch(21% 0.024 262); --color-graphite-2: oklch(26.5% 0.026 262); --color-graphite-ink: oklch(93% 0.010 250); --color-graphite-muted: oklch(69% 0.022 256);
  --color-accent: oklch(52% 0.19 258); --color-accent-2: oklch(76% 0.13 254); --color-accent-wash: oklch(95% 0.028 256); --color-accent-ink: oklch(98.6% 0.005 250); --color-focus: oklch(52% 0.19 258);
  --color-accent-deep: oklch(43% 0.2 262); --color-accent-edge: oklch(39% 0.16 260);
  --color-glyph-1: oklch(89% 0.025 254); --color-glyph-2: oklch(81% 0.045 255); --color-glyph-3: oklch(70% 0.085 256); --color-glyph-4: oklch(60% 0.13 257);
  --color-key-face: oklch(99.4% 0.003 250); --color-key-edge: oklch(80% 0.016 254);
  --font-display: "Onest", system-ui, sans-serif; --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-outlier: "JetBrains Mono", ui-monospace, monospace;
  --radius-card: 8px; --radius-input: 6px;
  --cell-w: 8px; --cell-h: 16px; --cut: 8px; --cut-l: 16px;
  --rule-hair: 1px; --shadow-card: 0 1px 2px oklch(21% 0.028 262 / 0.06);
  --shadow-key: 0 3px 0 0 var(--color-key-edge), 0 6px 8px -4px oklch(21% 0.028 262 / 0.28), inset 0 1px 0 oklch(100% 0 0 / 0.9);
  --shadow-key-accent: 0 3px 0 0 var(--color-accent-edge), 0 6px 8px -4px oklch(30% 0.12 260 / 0.45), inset 0 1px 0 oklch(100% 0 0 / 0.22);
  --shadow-tray: inset 0 1px 2px oklch(21% 0.028 262 / 0.08);
  --shadow-key-press: inset 0 1px 2px oklch(21% 0.028 262 / 0.14);
  --tracking-display: -0.028em; --display-weight: 600;
  --nav-h: 72px;
}

/* base */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scrollbar-color: var(--color-muted) var(--color-paper); scroll-padding-top: var(--space-xl); scroll-behavior: smooth; }
body { margin: 0; background: var(--color-paper); color: var(--color-ink); font-family: var(--font-body); font-size: var(--text-md); line-height: 1.55; -webkit-font-smoothing: antialiased; caret-color: var(--color-accent); font-synthesis: none; }
::selection { background: color-mix(in oklab, var(--color-accent) 22%, transparent); color: var(--color-ink); }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; text-decoration-color: var(--color-rule-2); }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--tracking-display); line-height: 1.04; overflow-wrap: break-word; min-width: 0; text-wrap: balance; color: var(--color-ink); }
h1 { max-width: 20ch; font-size: var(--text-display); } h2 { max-width: 30ch; font-size: var(--text-section); } h3 { max-width: 40ch; font-size: var(--text-title); font-weight: 500; line-height: 1.2; }
.lead { font-size: var(--text-lead); line-height: 1.45; max-width: 44ch; color: var(--color-ink-2); }
p { margin: 0; text-wrap: pretty; }
ul, ol, dl, dd, figure, pre { margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
code, pre { font-family: var(--font-outlier); font-size: 0.92em; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--space-md); top: calc(-1 * var(--space-3xl)); z-index: var(--z-tooltip); background: var(--color-paper); padding: var(--space-sm) var(--space-md); border: var(--rule-hair) solid var(--color-rule-2); border-radius: var(--radius-input); }
.skip:focus-visible { top: var(--space-sm); }

/* the cut: two opposite corners bevelled where the browser can */
.cut { border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card); background: var(--color-paper); box-shadow: var(--shadow-card); }
@supports (corner-shape: bevel) { .cut { border-radius: var(--cut-l) 4px var(--cut-l) 4px; corner-shape: bevel round bevel round; } }
.graphite { background: var(--color-graphite); color: var(--color-graphite-ink); }

/* keys: all eight states */
.key { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: 48px; padding: 0 var(--space-lg); border: var(--rule-hair) solid var(--color-rule-2); border-radius: var(--radius-input); background: var(--color-key-face); color: var(--color-ink); font: 500 var(--text-md)/1 var(--font-display); text-decoration: none; white-space: nowrap; box-shadow: var(--shadow-key); transition: transform var(--dur-micro) var(--ease-out), box-shadow var(--dur-micro) var(--ease-out), background-color var(--dur-micro) var(--ease-out); }
.key:hover { transform: translateY(-1px); }
.key:active { transform: translateY(3px); box-shadow: var(--shadow-key-press); }
.key:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.key:disabled, .key[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.key[aria-busy="true"] { cursor: progress; }
.key--primary { background: var(--color-accent); border-color: var(--color-accent-edge); color: var(--color-accent-ink); box-shadow: var(--shadow-key-accent); }
.key--primary:hover { background: var(--color-accent-deep); }
.key--small { min-height: 44px; padding: 0 var(--space-md); font-size: var(--text-sm); }
.text-link { color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-rule-2); transition: text-decoration-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.text-link:hover { text-decoration-color: var(--color-accent); color: var(--color-accent-deep); }
.text-link:active { color: var(--color-ink-2); }

/* options on a sunken tray, the chosen one pressed */
.tray { display: flex; gap: var(--space-2xs); padding: var(--space-2xs); background: var(--color-paper-3); border-radius: var(--radius-card); box-shadow: var(--shadow-tray); }
.tray > button { min-height: 44px; padding: 0 var(--space-md); border: var(--rule-hair) solid transparent; border-radius: var(--radius-input); background: transparent; color: var(--color-ink-2); font: 500 var(--text-sm)/1.2 var(--font-display); white-space: nowrap; transition: background-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out), box-shadow var(--dur-micro) var(--ease-out); }
.tray > button:hover { color: var(--color-ink); background: color-mix(in oklab, var(--color-key-face) 55%, transparent); }
.tray > button:active { box-shadow: var(--shadow-key-press); }
.tray > button:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 1px; }
.tray > button:disabled { opacity: 0.55; cursor: not-allowed; }
.tray > button[aria-pressed="true"], .tray > button[aria-selected="true"] { background: var(--color-key-face); color: var(--color-ink); border-color: var(--color-rule-2); box-shadow: 0 1px 0 0 var(--color-key-edge); }

/* nav */
.nav { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); position: relative; z-index: var(--z-raised); }
.brand { display: inline-flex; gap: var(--space-sm); align-items: center; font: 600 var(--text-xl)/1 var(--font-display); letter-spacing: -0.03em; text-decoration: none; }
.brand-product { display: block; font: 400 var(--text-xs)/1 var(--font-display); letter-spacing: 0; color: var(--color-muted); margin-top: var(--space-2xs); }
.brand-mark { width: 36px; height: 36px; flex-shrink: 0; }
.nav-end { display: flex; align-items: center; gap: var(--space-xl); }
.nav nav { display: flex; gap: var(--space-lg); font-size: var(--text-sm); }
.nav nav a { text-decoration: none; color: var(--color-ink-2); padding-block: var(--space-sm); transition: color var(--dur-short) var(--ease-out); }
.nav nav a:hover { color: var(--color-accent-deep); }

/* hero: Settled, the routing demo on the right over the request field */
.hero { position: relative; min-height: calc(100svh - var(--nav-h) - var(--space-3xl)); display: grid; align-items: center; padding-block: var(--space-xl) var(--space-2xl); isolation: isolate; }
.field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; background-image: radial-gradient(var(--color-glyph-1) 1px, transparent 1.5px); background-size: var(--cell-w) var(--cell-h); background-position: 0 var(--space-xs); mask-image: linear-gradient(90deg, transparent 0, color-mix(in oklab, var(--color-ink) 50%, transparent) 35%, var(--color-ink) 70%); }
.field.is-live { background-image: none; mask-image: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--space-3xl); align-items: center; }
.hero-copy { display: grid; gap: var(--space-lg); justify-items: start; align-self: end; padding-bottom: var(--space-lg); }
.hero-actions { display: flex; align-items: center; gap: var(--space-lg); margin-top: var(--space-xs); flex-wrap: wrap; }
.hero-note { font-size: var(--text-sm); color: var(--color-muted); }

.route-demo { padding: var(--space-lg); display: grid; gap: var(--space-md); }
.demo-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-sm); font: 500 var(--text-sm)/1.3 var(--font-display); }
.demo-tag { color: var(--color-muted); font-weight: 400; }
.demo-prompts > button { flex: 1; }
.request { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-sm); align-items: baseline; padding: var(--space-md); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-input); background: var(--color-paper-2); min-height: 76px; }
.request-role { font: 400 var(--text-xs)/1.4 var(--font-outlier); color: var(--color-accent); }
.request p { font-size: var(--text-md); }
.router-node { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-sm); padding: var(--space-md) var(--space-lg); border-radius: var(--radius-input); background: var(--color-graphite); color: var(--color-graphite-ink); position: relative; }
.router-node::before { content: ""; position: absolute; left: 50%; bottom: 100%; width: var(--rule-hair); height: var(--space-md); background: var(--color-rule-2); }
.model-node { position: relative; }
.model-node.selected::before { content: ""; position: absolute; left: 50%; bottom: 100%; width: 2px; height: var(--space-md); background: var(--color-accent); }
.node-label { font-size: var(--text-xs); color: var(--color-graphite-muted); }
.router-node strong { font: 500 var(--text-lg)/1.2 var(--font-outlier); color: var(--color-accent-2); }
.model-nodes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-xs); }
.model-node { display: grid; gap: var(--space-2xs); padding: var(--space-md) var(--space-sm); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-input); background: var(--color-paper); transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out); }
.model-node strong { font: 500 var(--text-lg)/1.1 var(--font-outlier); }
.model-node span { font-size: var(--text-xs); color: var(--color-muted); }
.model-node.selected { background: var(--color-accent-wash); border-color: var(--color-accent); }
.model-node.selected strong { color: var(--color-accent-deep); }
.demo-result { font: 500 var(--text-md)/1.4 var(--font-display); }
.demo-caption { font-size: var(--text-xs); color: var(--color-muted); max-width: 52ch; }

/* the path: a dimension line from the app to the providers */
.path { border-block: var(--rule-hair) solid var(--color-rule); background: var(--color-paper-2); }
.path-row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gap-columns); align-items: center; padding-block: var(--space-2xl); }
.path-lead { color: var(--color-ink-2); max-width: 32ch; }
.path-lead strong { color: var(--color-ink); font-weight: 500; }
.path-steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-md); font: 500 var(--text-2xl)/1.15 var(--font-display); letter-spacing: -0.02em; }
.path-steps li { position: relative; padding-top: var(--space-xl); }
.path-steps li::before { content: ""; position: absolute; top: var(--space-xs); left: 0; right: 0; height: var(--rule-hair); background: var(--color-rule-2); }
.path-steps li::after { content: ""; position: absolute; top: var(--space-2xs); left: 0; width: var(--rule-hair); height: var(--space-xs); background: var(--color-ink-2); }
.path-gateway { color: var(--color-accent-deep); }

/* section heads: split, head left, line right, baselines aligned */
.how, .models, .ops, .faq, .connect { padding-block: var(--section-gap) 0; }
.models { padding-top: var(--section-gap-s); }
.faq { padding-top: var(--section-gap-l); }
.split-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap-columns); align-items: end; margin-bottom: var(--space-2xl); }
.split-head p { color: var(--color-ink-2); max-width: 44ch; }
.split-head code { color: var(--color-accent-deep); }

/* how: a switcher, the request body on graphite beside the explanation */
.mode-layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gap-columns); align-items: start; }
.mode-tabs { flex-direction: column; }
.mode-tabs > button { display: grid; gap: var(--space-2xs); text-align: left; padding: var(--space-md) var(--space-lg); white-space: normal; }
.mode-tab-title { font: 500 var(--text-lg)/1.2 var(--font-display); white-space: nowrap; }
.mode-tab-note { font: 400 var(--text-sm)/1.4 var(--font-body); color: var(--color-muted); }
.mode-panel { display: grid; grid-template-columns: minmax(0, 1fr); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card); overflow: hidden; background: var(--color-paper); }
@supports (corner-shape: bevel) { .mode-panel { border-radius: var(--cut-l) 4px var(--cut-l) 4px; corner-shape: bevel round bevel round; } }
.mode-expression { padding: var(--space-lg) var(--space-xl); font-size: clamp(1.125rem, 0.8vw + 0.6rem, 1.5rem); line-height: 1.3; overflow-wrap: anywhere; white-space: pre-wrap; }
.mode-expression code { font-size: inherit; }
.token-key { color: var(--color-graphite-muted); }
.mode-expression .token { font-weight: 500; color: var(--color-accent-2); }
.mode-body { padding: var(--space-xl); display: grid; gap: var(--space-md); align-content: start; }
.mode-body > p:not([class]) { color: var(--color-ink-2); max-width: 60ch; }
.mode-facts { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-xs); margin-top: var(--space-sm); padding-top: var(--space-md); border-top: var(--rule-hair) solid var(--color-rule); font-size: var(--text-sm); }
.mode-footnote { font-size: var(--text-sm); color: var(--color-muted); }

/* models: the table that is the API */
.model-table { width: 100%; border-collapse: collapse; }
.model-table th, .model-table td { text-align: left; vertical-align: baseline; padding: var(--space-lg) var(--space-md) var(--space-lg) 0; border-top: var(--rule-hair) solid var(--color-rule); }
.model-table thead th { font: 500 var(--text-sm)/1.3 var(--font-display); color: var(--color-muted); padding-block: var(--space-sm); border-top: 0; white-space: nowrap; }
.model-table tbody th h3 { font-size: var(--text-title); }
.model-table td { color: var(--color-ink-2); }
.model-table td:nth-child(2) { white-space: nowrap; color: var(--color-ink); }
.model-table td:last-child { white-space: nowrap; font-size: var(--text-sm); color: var(--color-ink); padding-right: 0; }
.model-table td:nth-child(3) { max-width: 46ch; }
.model-table .muted { color: var(--color-muted); }
.model-table tbody tr:last-child > * { border-bottom: var(--rule-hair) solid var(--color-rule); }
.row-smart > * { background: var(--color-accent-wash); }
.row-smart code { color: var(--color-accent-deep); }

/* access and spend: four facts as a defined list */
.ops-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gap-columns); align-items: start; }
.ops-head { display: grid; gap: var(--space-md); position: sticky; top: var(--space-xl); }
.ops-head p { color: var(--color-ink-2); max-width: 36ch; }
.ops-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xl) var(--gap-columns); }
.ops-list > div { display: grid; gap: var(--space-sm); padding-top: var(--space-md); border-top: var(--rule-hair) solid var(--color-ink); align-content: start; }
.ops-list dt { font: 500 var(--text-title)/1.2 var(--font-display); letter-spacing: -0.015em; }
.ops-list dd { color: var(--color-ink-2); max-width: 44ch; }

/* questions as rows */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gap-columns); align-items: start; }
.faq-list details { border-bottom: var(--rule-hair) solid var(--color-rule); }
.faq-list details:first-child { border-top: var(--rule-hair) solid var(--color-rule); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--space-lg); min-height: 72px; padding-block: var(--space-md); font: 500 var(--text-lg)/1.35 var(--font-display); transition: color var(--dur-short) var(--ease-out); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font: 400 var(--text-xl)/1 var(--font-outlier); color: var(--color-accent); flex-shrink: 0; transition: transform var(--dur-short) var(--ease-out); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list summary:hover { color: var(--color-accent-deep); }
.faq-list summary:active { color: var(--color-ink-2); }
.faq-list summary:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.faq-list details > p { color: var(--color-ink-2); max-width: 64ch; padding-bottom: var(--space-lg); }

/* connect: the close, the base URL beside the request that uses it */
.connect { padding-bottom: var(--space-2xl); }
.connect-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-2xl) var(--gap-columns); align-items: center; padding-top: var(--section-gap-s); border-top: var(--rule-hair) solid var(--color-rule); }
.connect-copy { display: grid; gap: var(--space-md); justify-items: start; }
.connect-copy > p:not(.access-note) { color: var(--color-ink-2); max-width: 46ch; }
.connect-copy label { font: 500 var(--text-sm)/1.3 var(--font-display); color: var(--color-muted); margin-top: var(--space-md); }
.endpoint { display: flex; gap: var(--space-xs); width: 100%; max-width: 30rem; }
.endpoint input { flex: 1; min-width: 0; min-height: 48px; padding: 0 var(--space-md); border: var(--rule-hair) solid var(--color-muted); border-radius: var(--radius-input); background: var(--color-paper-2); font: 400 var(--text-sm)/1 var(--font-outlier); color: var(--color-ink); }
.endpoint input:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -2px; }
.access-note { font-size: var(--text-sm); color: var(--color-muted); max-width: 46ch; }
.code-panel { border-radius: var(--radius-card); min-width: 0; overflow: hidden; }
@supports (corner-shape: bevel) { .code-panel { border-radius: var(--cut-l) 4px var(--cut-l) 4px; corner-shape: bevel round bevel round; } }
.code-toolbar { display: flex; justify-content: space-between; align-items: center; gap: var(--space-md); padding: 0 var(--space-lg); background: var(--color-graphite-2); }
.code-toolbar [role="tablist"] { display: flex; gap: var(--space-lg); }
.code-toolbar button { min-height: 48px; border: 0; background: transparent; color: var(--color-graphite-muted); font: 500 var(--text-sm)/1 var(--font-display); white-space: nowrap; transition: color var(--dur-micro) var(--ease-out); }
.code-toolbar button:hover { color: var(--color-graphite-ink); }
.code-toolbar button:active { color: var(--color-accent-2); }
.code-toolbar button:focus-visible { outline: 2px solid var(--color-accent-2); outline-offset: -2px; }
.code-toolbar button:disabled { opacity: 0.55; cursor: not-allowed; }
.code-toolbar [aria-selected="true"] { color: var(--color-graphite-ink); box-shadow: inset 0 -2px 0 var(--color-accent-2); }
.code-panel pre { padding: var(--space-lg); overflow: auto; font-size: var(--text-sm); line-height: 1.8; min-height: 320px; color: var(--color-graphite-ink); tab-size: 2; }
.code-panel pre:focus-visible { outline: 2px solid var(--color-accent-2); outline-offset: -2px; }
.code-panel pre code { font-size: inherit; }
.code-note { padding: 0 var(--space-lg) var(--space-lg); font-size: var(--text-sm); color: var(--color-graphite-muted); }
.copy-status { grid-column: 1 / -1; font-size: var(--text-sm); color: var(--color-success); min-height: 1lh; }

/* footer: a colophon block */
.footer { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md) var(--space-xl); padding-block: var(--space-2xl) var(--space-3xl); border-top: var(--rule-hair) solid var(--color-rule); }
.footer p { font-size: var(--text-sm); color: var(--color-muted); margin-right: auto; }
.footer .text-link { font-size: var(--text-sm); }

@media (min-width: 1500px) { .hero-grid { gap: var(--space-4xl); } }
@media (max-width: 60rem) {
  .hero-copy { align-self: auto; padding-bottom: 0; }
  :root { --gutter: 24px; --section-gap-s: 80px; --section-gap: 96px; --section-gap-l: 120px; }
  .nav nav { display: none; }
  .hero { min-height: 0; padding-block: var(--space-xl) var(--space-2xl); }
  .hero-grid, .path-row, .split-head, .mode-layout, .ops-grid, .faq-grid, .connect-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { gap: var(--space-xl); }
  .split-head { gap: var(--space-md); margin-bottom: var(--space-xl); }
  .mode-tab-note { display: none; }
  .ops-head { position: static; }
  .model-table thead { display: none; }
  .model-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-xs) var(--space-md); padding-block: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); }
  .model-table th, .model-table td { border: 0; padding: 0; }
  .model-table tbody tr:last-child > * { border: 0; }
  .model-table td:nth-child(3) { grid-column: 1 / -1; }
  .model-table td:last-child { grid-column: 1 / -1; }
  .row-smart { background: var(--color-accent-wash); }
}
@media (max-width: 40rem) {
  :root { --gutter: 16px; --section-gap-s: 56px; --section-gap: 72px; --section-gap-l: 96px; --gap-columns: 16px; }
  .route-demo { padding: var(--space-md); }
  .demo-prompts > button { padding-inline: var(--space-xs); font-size: var(--text-xs); }
  .path-steps { grid-template-columns: minmax(0, 1fr); gap: var(--space-sm); font-size: var(--text-md); }
  .ops-list, .mode-facts { grid-template-columns: minmax(0, 1fr); }
    .mode-expression, .mode-body { padding: var(--space-lg); }
  .endpoint { flex-wrap: wrap; }
  .endpoint .key { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .key:hover { transform: none; }
}
