/* The product site: the front door (the landing, pricing, the docs, the legal pages). Every colour and
   face is a role of the Volter brand (company decision 0018): the build fetches the brand's tokens into
   brand/tokens.css, which every page links before this sheet, and the names below are this sheet's
   aliases for those roles; the pre-commit hook refuses a literal colour here. The roles carry both
   themes (light-dark()), so the page follows the reader's light or dark setting. */
:root {
  color-scheme: light dark;
  --ground: var(--volter-surface-page); --surface: var(--volter-surface-raised); --surface-2: var(--volter-surface-subtle);
  --line: var(--volter-border-default); --line-strong: var(--volter-border-strong);
  --ink: var(--volter-text-primary); --muted: var(--volter-text-muted); --faint: var(--volter-text-faint);
  --accent: var(--volter-action-default); --accent-hover: var(--volter-action-hover); --accent-ink: var(--volter-text-on-strong); --accent-soft: var(--volter-action-soft);
  --link: var(--volter-action-text, var(--volter-action-default));
  --focus: var(--volter-selection-default, var(--volter-action-default));
  --danger: var(--volter-status-danger-text); --warn: var(--volter-status-attention-text);
  --mono: var(--volter-font-data);
  --sans: var(--volter-font-ui);
  --display: var(--volter-font-display, var(--volter-font-ui));
  --radius: 8px;
  --header: 57px;
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
* { box-sizing: border-box; }
html { overflow-x: hidden; scroll-padding-top: calc(var(--header) + 16px); }
body { margin: 0; font: 16px/1.6 var(--sans); color: var(--ink); background: var(--ground); -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-underline-offset: 2px; }
a:hover { text-decoration: underline; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
main:focus { outline: none; }
.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: -48px; z-index: 10; padding: 8px 14px; background: var(--accent); color: var(--accent-ink); border-radius: 6px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 10px; }
kbd { font: 11px/1 var(--mono); padding: 3px 5px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; color: var(--muted); background: var(--ground); }

/* buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 14px; border-radius: var(--volter-radius-control, 6px); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font: 500 14px/1.3 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap; }
.button:hover { text-decoration: none; border-color: var(--ink); }
.button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.button.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.button.quiet { border-color: transparent; background: transparent; }
.button.quiet:hover { border-color: var(--line-strong); }
.button.large { padding: 11px 20px; font-size: 15px; }

/* the top bar */
header.top { position: sticky; top: 0; z-index: 4; background: var(--surface); border-bottom: 1px solid var(--line); }
header.top .bar { display: flex; align-items: center; gap: 24px; padding: 10px 24px; min-height: var(--header); }
header.top .brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; color: var(--ink); text-decoration: none; font-size: 17px; letter-spacing: -0.01em; white-space: nowrap; }
header.top img, footer img { display: block; border: 0; border-radius: 0; }
header.top nav.site { display: flex; gap: 22px; }
header.top nav.site a { color: var(--muted); text-decoration: none; font-size: 14px; }
header.top nav.site a:hover, header.top nav.site a[aria-current="page"] { color: var(--ink); }
.search-button { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; min-width: 210px; padding: 6px 8px 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--ground); color: var(--muted); font: 14px var(--sans); cursor: pointer; }
.search-button:hover { border-color: var(--line-strong); color: var(--ink); }
.search-button kbd { margin-left: auto; }
header.top nav.account { display: flex; gap: 8px; }
.menu { display: none; padding: 7px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--ink); cursor: pointer; }
.drawer { border-top: 1px solid var(--line); background: var(--surface); }
.drawer nav { display: flex; flex-direction: column; padding: 8px 16px 16px; }
.drawer nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 16px; }
.drawer nav a:last-child { border-bottom: 0; }

/* page frames */
.page { max-width: 1180px; margin: 0 auto; padding: 32px 28px; }
.page.home { max-width: none; padding: 0; }
.page.docs { max-width: 1400px; display: grid; grid-template-columns: 240px minmax(0, 1fr) 220px; gap: 48px; align-items: start; }
main { min-width: 0; }
article { max-width: 760px; }
h1, h2, h3, h4 { letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: 34px; line-height: 1.15; margin: 8px 0 16px; }
h2 { font-size: 23px; margin: 40px 0 10px; }
h3 { font-size: 18px; margin: 28px 0 8px; }
h1 .anchor, h2 .anchor, h3 .anchor, h4 .anchor { color: inherit; text-decoration: none; }
article h2 .anchor:hover::after, article h3 .anchor:hover::after { content: " #"; color: var(--faint); }
p, li { max-width: 72ch; }
code { font: 13.5px/1.5 var(--mono); background: var(--surface-2); border: 1px solid var(--line); padding: 1px 5px; border-radius: 5px; }
pre { position: relative; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; overflow-x: auto; }
pre code { background: transparent; border: 0; padding: 0; font-size: 13px; }
pre .copy { position: absolute; top: 8px; right: 8px; padding: 3px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--muted); font: 12px var(--sans); cursor: pointer; opacity: 0; transition: opacity var(--volter-motion-fast, .15s); }
pre:hover .copy, pre .copy:focus-visible { opacity: 1; }
table { border-collapse: collapse; margin: 12px 0; font-size: 14px; display: block; overflow-x: auto; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; }
img { max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius); }
blockquote { margin: 12px 0; padding: 4px 16px; border-left: 3px solid var(--line-strong); color: var(--muted); }
details summary { cursor: pointer; }
.eyebrow { margin: 0 0 12px; font: 600 13px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--link); }

/* the docs: navigation, the article, on this page, previous and next */
.docs-nav { position: sticky; top: calc(var(--header) + 24px); max-height: calc(100vh - var(--header) - 48px); overflow-y: auto; padding-right: 8px; }
.docs-menu > summary { display: none; }
.docs-nav h2 { margin: 22px 0 6px; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.docs-nav h2:first-child { margin-top: 0; }
.docs-nav ul { list-style: none; margin: 0; padding: 0; }
.docs-nav li a { display: block; padding: 5px 10px; margin-left: -10px; border-radius: 6px; font-size: 14px; line-height: 1.4; color: var(--ink); text-decoration: none; }
.docs-nav li a:hover { background: var(--surface-2); }
.docs-nav li a[aria-current="page"] { background: var(--accent-soft); color: var(--ink); font-weight: 600; }
.toc-col { position: sticky; top: calc(var(--header) + 24px); max-height: calc(100vh - var(--header) - 48px); overflow-y: auto; }
.toc h2 { margin: 0 0 8px; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.toc ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc li a { display: block; padding: 4px 0 4px 12px; margin-left: -1px; border-left: 2px solid transparent; font-size: 13px; line-height: 1.4; color: var(--muted); text-decoration: none; }
.toc li.d3 a { padding-left: 24px; }
.toc li a:hover { color: var(--ink); }
.toc li a.current { color: var(--ink); border-left-color: var(--accent); }
article.doc > h1:first-child { margin-top: 0; }
.edit { margin: 48px 0 0; font-size: 14px; }
.edit a { color: var(--muted); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; max-width: 760px; }
.pager a { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; font-weight: 600; }
.pager a:hover { border-color: var(--line-strong); }
.pager a span { font-size: 12.5px; font-weight: 400; color: var(--muted); }
.pager .next { text-align: right; grid-column: 2; }

/* the search dialog */
dialog.search { width: min(640px, calc(100vw - 32px)); max-height: min(560px, calc(100vh - 96px)); margin: 72px auto auto; padding: 0; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); color: var(--ink); box-shadow: var(--volter-shadow-dialog); overflow: hidden; }
dialog.search::backdrop { background: var(--volter-overlay-scrim); }
dialog.search[open] { display: flex; flex-direction: column; }
dialog.search form { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--muted); }
dialog.search input { flex: 1; border: 0; background: transparent; color: var(--ink); font: 17px var(--sans); outline: none; }
dialog.search .close { border: 1px solid var(--line); border-radius: 4px; background: var(--ground); color: var(--muted); font: 11px var(--mono); padding: 3px 6px; cursor: pointer; }
dialog.search ul { list-style: none; margin: 0; padding: 8px; overflow-y: auto; }
dialog.search li { max-width: none; }
dialog.search li a { display: flex; flex-direction: column; gap: 2px; padding: 9px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; }
dialog.search li a[aria-selected="true"], dialog.search li a:hover { background: var(--accent-soft); }
dialog.search li a b { font-weight: 600; }
dialog.search .in { font-size: 12.5px; color: var(--muted); }
dialog.search .snip { font-size: 13px; color: var(--muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
dialog.search .hint { padding: 16px 12px; color: var(--muted); font-size: 14px; }

/* the footer */
footer { border-top: 1px solid var(--line); margin-top: 72px; background: var(--surface); }
footer .foot { max-width: 1180px; margin: 0 auto; padding: 40px 28px 48px; display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; font-size: 14px; }
footer .foot-brand { display: flex; flex-wrap: wrap; align-items: center; align-content: start; gap: 8px; font-weight: 650; }
footer .foot-brand p { flex-basis: 100%; margin: 6px 0 0; font-weight: 400; color: var(--muted); }
footer nav { display: flex; flex-direction: column; gap: 8px; }
footer nav h2 { margin: 0 0 4px; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--ink); text-decoration: underline; }

/* the landing: volter.ai's look (the serif display, mono kickers on a rule, framed pictures on the brand's
   lime, lilac and stone), in the shape developer products share (landing.ts) */
.home { max-width: none; }
.home > section { max-width: 1200px; margin: 0 auto; padding: 112px 32px 0; }
.home h2 { font: 400 44px/1.06 var(--display); letter-spacing: -0.01em; margin: 0 0 18px; }
.kicker { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; font: 500 11.5px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.kicker::before { content: ""; width: 32px; height: 1px; background: var(--line-strong); }
.kicker span { color: var(--ink); }
.kicker span + span { color: var(--muted); }
.kicker span + span::before { content: "/"; margin: 0 10px 0 -2px; color: var(--faint); }
.more { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 500; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-strong); padding-bottom: 3px; }
.more:hover { text-decoration: none; border-bottom-color: var(--ink); }
.arrow { width: 14px; height: 14px; flex: none; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* the hero: the outcome, then the product itself */
.home .hero { padding-top: 96px; }
.hero-text { max-width: 860px; }
.hero h1 { font: 400 84px/0.98 var(--display); letter-spacing: -0.02em; margin: 0 0 26px; }
.hero .lede { font-size: 20px; line-height: 1.5; color: var(--muted); margin: 0 0 32px; max-width: 700px; }
.hero .install { margin: 22px 0 0; font-size: 13.5px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.product { margin: 64px 0 0; }
.window { color-scheme: light; border: 1px solid var(--line-strong); border-radius: 12px; overflow: hidden; background: var(--volter-color-paper); box-shadow: var(--volter-shadow-floating); }
.window-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--volter-color-rule); background: var(--volter-color-stone-light); }
.window-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--volter-color-rule-strong); }
.window-bar em { margin-left: 10px; font: 12px var(--mono); font-style: normal; color: var(--volter-color-subdued); }
.window img, .panel img { display: block; width: 100%; height: auto; border: 0; border-radius: 0; }
.product figcaption { margin-top: 14px; font-size: 13.5px; color: var(--muted); text-align: center; }

/* the services, as a logo strip */
.home .vendors { padding-top: 88px; }
.marks { list-style: none; margin: 8px 0 24px; padding: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.marks li { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); max-width: none; }
.marks a { display: flex; flex-direction: column; align-items: center; gap: 10px; height: 100%; padding: 22px 8px 18px; color: var(--ink); text-decoration: none; }
.marks a:hover { background: var(--surface); text-decoration: none; }
.marks a:hover span { color: var(--ink); }
.marks svg { width: 26px; height: 26px; opacity: 0.85; }
.marks span { font-size: 12.5px; color: var(--muted); }

/* the numbered sections: words on one side, the picture on a brand panel on the other */
.home .chapter { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; padding-top: 128px; }
.home .chapter.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.chapter.flip .chapter-text { order: 2; }
.chapter-text p { color: var(--muted); font-size: 17px; margin: 0 0 14px; max-width: 460px; }
.chapter-text p.kicker { font-size: 11.5px; color: var(--muted); margin: 0 0 20px; max-width: none; }
.chapter-text p.quiet { font-size: 15px; color: var(--faint); }
.chapter-text .more { margin-top: 14px; }
.panel { color-scheme: light; position: relative; margin: 0; padding: 40px; border-radius: 4px; }
.panel.lime { background: var(--volter-color-lime); }
.panel.lilac { background: var(--volter-color-lilac); }
.panel.stone { background: var(--volter-color-stone-strong); }
.panel > img { border-radius: 8px; box-shadow: var(--volter-shadow-player); }
.corner { position: absolute; width: 14px; height: 14px; }
.corner::before, .corner::after { content: ""; position: absolute; background: var(--ink); }
.corner::before { left: 6px; top: 0; width: 1px; height: 14px; }
.corner::after { top: 6px; left: 0; width: 14px; height: 1px; }
.corner.tl { left: -7px; top: -7px; }
.corner.br { right: -7px; bottom: -7px; }
.code, .deploy { background: var(--volter-color-surface); border: 1px solid var(--volter-color-rule); border-radius: 8px; box-shadow: var(--volter-shadow-player); color: var(--volter-color-ink); }
.code-head, .deploy-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--volter-color-rule-soft); font: 12px var(--mono); color: var(--volter-color-subdued); }
.code-head em { font-style: normal; padding: 3px 8px; border-radius: 4px; background: var(--volter-color-lime); color: var(--volter-color-ink); letter-spacing: 0.06em; text-transform: uppercase; font-size: 10.5px; }
.code pre { margin: 0; padding: 18px 16px; border: 0; background: transparent; overflow-x: auto; }
.code pre code { font: 13.5px/1.75 var(--mono); color: var(--volter-color-ink); white-space: pre; }
.code .k { color: var(--volter-color-slate); } .code .s { color: var(--volter-color-healthy); }
.routes { border-top: 1px solid var(--volter-color-rule-soft); padding: 12px 16px 14px; display: grid; gap: 10px; }
.routes p { display: flex; align-items: center; gap: 12px; margin: 0; font: 12.5px var(--mono); }
.routes code { background: none; border: 0; padding: 0; font-size: 12.5px; color: var(--volter-color-ink); white-space: nowrap; }
.routes .line { flex: 1; height: 1px; background: var(--volter-color-rule-strong); min-width: 24px; }
.routes em { font-style: normal; color: var(--volter-color-subdued); white-space: nowrap; }
.routes em.twin { padding: 3px 8px; border-radius: 4px; background: var(--volter-color-lime); color: var(--volter-color-ink); }
.deploy { max-width: 520px; margin: 0 auto; }
.deploy-head strong { font-weight: 600; color: var(--volter-color-ink); }
.deploy ol { list-style: none; margin: 0; padding: 8px 16px; }
.deploy li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; font-size: 14px; max-width: none; }
.deploy li code { background: none; border: 0; padding: 0; font-size: 13.5px; }
.deploy li span { color: var(--volter-color-subdued); }
.deploy-steps { display: grid; gap: 8px; padding: 14px 16px; border-top: 1px solid var(--volter-color-rule-soft); }
.deploy-steps span { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.deploy-steps span::before { content: "✓"; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--volter-color-healthy-soft); color: var(--volter-color-healthy); font-size: 12px; font-weight: 700; }
.deploy-note { margin: 0; padding: 12px 16px; border-top: 1px solid var(--volter-color-rule-soft); font-size: 12.5px; color: var(--volter-color-subdued); }
.deploy-note a { color: var(--volter-color-ink); }

/* how it works: four steps, then the tutorial as it runs */
.step-list { list-style: none; padding: 0; margin: 40px 0 32px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.step-list li { padding: 22px 22px 0 0; max-width: none; display: flex; flex-direction: column; }
.step-list .n { font: 400 40px/1 var(--display); color: var(--faint); margin-bottom: 14px; }
.step-list h3 { margin: 0 0 6px; font-size: 17px; }
.step-list p { margin: 0 0 14px; color: var(--muted); font-size: 15px; flex: 1; }
.step-list code { align-self: flex-start; font-size: 12.5px; }
/* the prompt for a coding agent: the text a person copies, whole, with a button that says so */
.agent { margin: 0 0 32px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); overflow: hidden; }
.agent-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); font: 500 11.5px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.agent pre { margin: 0; border: 0; border-radius: 0; background: transparent; padding: 16px 18px; overflow-x: auto; }
.agent pre code { font-size: 13px; line-height: 1.6; white-space: pre-wrap; color: var(--ink); }
.agent figcaption { padding: 10px 18px 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
/* the terminal keeps the light scheme's roles, where the inverse surface is dark, in either theme */
.terminal { color-scheme: light; margin: 0; border-radius: 10px; overflow: hidden; background: var(--volter-surface-inverse); box-shadow: var(--volter-shadow-floating); border: 1px solid var(--volter-surface-inverse-raised); }
.terminal-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--volter-surface-inverse-raised); }
.terminal-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--volter-surface-inverse-raised); }
.terminal-bar em { margin-left: 8px; font: 12px var(--mono); font-style: normal; color: var(--volter-text-inverse-muted); }
.terminal pre { margin: 0; border: 0; border-radius: 0; background: transparent; padding: 16px 18px; overflow-x: auto; }
.terminal pre code { color: var(--volter-text-inverse); font-size: 12.5px; line-height: 1.55; white-space: pre; }
.terminal .prompt { color: var(--volter-terminal-green); }
.terminal .cmd { color: var(--volter-text-inverse); font-weight: 600; }
.terminal .out { color: var(--volter-text-inverse-muted); }
.terminal figcaption { padding: 10px 18px 12px; font-size: 12.5px; color: var(--volter-text-inverse-muted); border-top: 1px solid var(--volter-surface-inverse-raised); }
.terminal figcaption a { color: var(--volter-text-inverse); }

/* where it runs */
.where-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 36px; border-top: 1px solid var(--ink); }
.where-grid > section { padding: 24px 28px 0 0; display: flex; flex-direction: column; align-items: flex-start; }
.where-grid > section + section { padding-left: 28px; border-left: 1px solid var(--line); }
.where-grid h3 { margin: 0 0 8px; font: 400 26px/1.1 var(--display); }
.where-grid p { color: var(--muted); margin: 0 0 14px; }
.where-grid code { font-size: 12.5px; margin-bottom: 18px; }

.pricing-band .plans { margin-top: 32px; }
.pricing-band .more { margin-top: 4px; }

/* questions */
.questions-list { margin-top: 28px; border-top: 1px solid var(--ink); max-width: 880px; }
.questions details { border-bottom: 1px solid var(--line); }
.questions summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-size: 18px; font-weight: 500; }
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after { content: "+"; font: 300 24px/1 var(--sans); color: var(--muted); }
.questions details[open] summary::after { content: "−"; }
.questions details p { margin: 0 0 22px; color: var(--muted); max-width: 760px; }

.home .closing { text-align: center; margin-top: 128px; padding: 96px 32px 16px; border-top: 1px solid var(--line); }
.closing h2 { font-size: 64px; }
.closing p { margin: 0 auto 28px; color: var(--muted); font-size: 18px; max-width: 560px; }
.closing .actions { justify-content: center; }

/* plans: the landing's band and the pricing page */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; margin: 28px 0; max-width: 840px; }
.plans.three { max-width: none; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.plan { border: 1px solid var(--line); border-radius: 12px; padding: 24px; background: var(--surface); display: flex; flex-direction: column; gap: 10px; }
.plan.featured { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.plan h2, .plan h3 { margin: 0; font-size: 19px; }
.plan .plan-kind { margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.plan .price { font-size: 36px; font-weight: 700; margin: 0; letter-spacing: -0.02em; }
.plan .price span { font-size: 15px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.plan .plan-pitch { margin: 0; color: var(--muted); min-height: 3.2em; }
.plan ul { padding-left: 0; list-style: none; margin: 8px 0 0; display: grid; gap: 7px; font-size: 14.5px; }
.plan ul li { padding: 0 0 0 22px; position: relative; max-width: none; }
.plan ul li::before { content: "✓"; position: absolute; left: 0; color: var(--link); font-weight: 700; }
.pricing-page { max-width: none; }
.pricing-page .page-head { max-width: 760px; }
.pricing-page h1 { font: 600 48px/1.08 var(--display); margin: 16px 0 14px; }
.pricing-page .lede { font-size: 18px; color: var(--muted); }
.pricing-page > h2 { margin-top: 64px; font-size: 26px; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
table.compare { display: table; width: 100%; margin: 0; min-width: 640px; }
table.compare thead th { font-size: 14px; text-transform: none; letter-spacing: 0; color: var(--ink); padding: 14px 16px; }
table.compare th[scope="row"] { font-weight: 400; color: var(--muted); width: 28%; }
table.compare td, table.compare th { padding: 11px 16px; }
table.compare tr.group th { padding-top: 22px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink); background: var(--surface-2); }
table.compare tbody tr:last-child td, table.compare tbody tr:last-child th { border-bottom: 0; }
table.compare .yes { color: var(--link); font-weight: 700; }
.faq { max-width: 820px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; padding: 18px 32px 18px 0; font-weight: 600; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 22px; font-weight: 400; color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 0 18px; color: var(--muted); }
.faq details > div p { margin: 0; }

/* prose pages: legal, status, not found */
article.landing { max-width: 800px; margin: 0 auto; }
.legal h1 { font-size: 32px; }
.legal > p:first-of-type strong { color: var(--warn); }
.notfound { text-align: center; padding: 72px 0 24px; }
.notfound h1 { font: 600 44px/1.1 var(--display); }
.notfound p { margin-left: auto; margin-right: auto; color: var(--muted); }
.notfound .actions { justify-content: center; margin-top: 28px; }

/* status */
.status ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.status li { padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); max-width: none; }
.status .ok { color: var(--volter-status-healthy-text); }
.status .down { color: var(--danger); }
.status #status-notice { padding: 12px 14px; border: 1px solid var(--warn); border-radius: var(--radius); color: var(--warn); }

/* the consent banner (only in a build with a tag configured) */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 5; max-width: 560px; margin-left: auto; padding: 16px 18px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); box-shadow: var(--volter-shadow-dialog); font-size: 14px; }
.consent p { margin: 0 0 12px; max-width: none; }
.consent-actions { display: flex; justify-content: flex-end; gap: 8px; }

@media (max-width: 1180px) {
  .page.docs { grid-template-columns: 220px minmax(0, 1fr); }
  .toc-col { display: none; }
  .search-button { min-width: 0; }
  .search-button .label, .search-button kbd { display: none; }
}
@media (max-width: 1000px) {
  .home .chapter, .home .chapter.flip { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 88px; }
  .chapter.flip .chapter-text { order: 0; }
  .marks { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .step-list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 20px; }
  .plans.three { grid-template-columns: 1fr; max-width: 560px; }
}
@media (max-width: 860px) {
  header.top .bar { gap: 10px; padding: 8px 16px; }
  header.top nav.site, header.top .signin { display: none; }
  .menu { display: inline-flex; }
  .page { padding: 24px 16px; }
  .page.docs { grid-template-columns: 1fr; gap: 16px; }
  .docs-nav { position: static; max-height: none; overflow: visible; padding: 0; }
  .docs-menu { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
  .docs-menu > summary { display: block; padding: 10px 14px; font-weight: 600; font-size: 14px; }
  .docs-menu > nav { padding: 0 14px 12px; }
  .docs-menu:not([open]) > nav { display: none; }
  .home > section { padding: 72px 16px 0; }
  .home .hero { padding-top: 48px; }
  .hero h1 { font-size: 48px; }
  .hero .lede { font-size: 17px; }
  .home h2 { font-size: 34px; }
  .pricing-page > h2 { font-size: 24px; }
  .product { margin-top: 40px; }
  .panel { padding: 20px; }
  .step-list, .where-grid { grid-template-columns: 1fr; }
  .where-grid > section + section { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 24px; }
  .closing h2 { font-size: 42px; }
  .routes p { flex-wrap: wrap; }
  .pricing-page h1 { font-size: 38px; }
  .terminal pre code { font-size: 11.5px; }
  .pager { grid-template-columns: 1fr; }
  .pager .next { grid-column: 1; }
  footer .foot { grid-template-columns: 1fr 1fr; gap: 28px; padding: 32px 16px 40px; }
  footer .foot-brand { grid-column: 1 / -1; }
  .home .closing { padding: 56px 16px 8px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media (max-width: 860px) {
  table.compare { min-width: 0; font-size: 13px; }
  table.compare td, table.compare th { padding: 9px 8px; }
  table.compare thead th { font-size: 13px; padding: 12px 8px; }
  table.compare th[scope="row"] { width: 34%; }
}
/* the footer sits at the bottom of a short page */
body { min-height: 100vh; display: flex; flex-direction: column; }
body > .page { flex: 1 0 auto; width: 100%; }

/* the theme choice in the footer: System, Light, Dark */
.theme-choice { display: inline-flex; margin-top: 14px; padding: 2px; gap: 2px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); }
.theme-choice button { border: 0; background: transparent; padding: 4px 10px; font: 12.5px var(--sans); color: var(--muted); border-radius: 6px; cursor: pointer; }
.theme-choice button[aria-checked="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
