/* Hallmark · shape: Split Studio (/), Long Document (install, licence, about, terms, refunds, privacy) · genre: modern-minimal · theme: Coral (deal 1/3, seed plain-english-control-panel-raspberry-9037·3660193f·2026-10-31·r0) · redesign: full
 * hero: Corridor set to the left edge over the product strip (/), Banner (the documents) · nav: edge-aligned bar, the wordmark left, four links and the download right, no rule · footer: index columns · imagery: screenshots 12 (the user's own, site/img/shots) · signature: the Pi's own Health page, the whole app in one frame from its top edge, laid on the desk as the floor of the first screen
 * axes: light/grotesk-sans/warm · posture: restrained · contrast: pass · fold: pass · draw: c1b554 (nav swapped: the site has no search) · job: try · hero-review: fix · 5 findings · 4 resolved 1 partial (the phone bar is two rows, down from three) · finish-review: subagent · 7 findings · 7 resolved · gap: Coral's objects (the page takes its paper, type and controls; no stationery is built) · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R4 V4 · weakest: V, a Corridor over a product strip is still text-then-picture; the strip is cropped to the one line the product says, not the whole window */
/* Hallmark · waive 78 · the six document pages are Long Documents: install steps, licence terms, policies, with heads inline at 31px · a 52px head every 300 words would shout over the instructions */
/* Hallmark · waive 79 · the product strip is painted from under the actions to the fold at every width; the gate reads the text column only · the strip is the hero visual, not a band of nothing */
/* Hallmark · answered F4 · Coral sets its control pair as an ink card beside a cotton card; the cotton card, the copy button and the groove are the theme quiet state, not a second primary */
/* Hallmark · reworded "Every licence, free or paid, unlocks the same Pi OS+" to "Every licence, free or paid, is the same Pi OS+" · 19 names the verb */
/* Hallmark · waive 44c · the home hero ends where the product strip meets the fold at 1440; the gate reads the text block, which ends at 423 · the six documents are Banner heroes whose text starts by 450px */
/* Hallmark · waive 59 · the six documents are one column of instructions and terms parted by their own heads at 96px · a 120px gap before every head would break the reading */
/* Hallmark · waive 77 · the six documents are Long Documents: a head and its paragraphs, a table, a form, with no picture to give a section mass · the install steps and the licence forms are the mass */
/* Hallmark · dropped pi os+ · the h1 that named the product is gone: the wordmark in the bar carries the name and the headline now carries the claim */
/* Hallmark · reworded the How it works heads into the terms of a definition list, and "Your Pi's own sign-in", "Stop the browser's warning" and kin now carry a typographic apostrophe · F1 names the straight quote */
/* Hallmark · waive 85 · the licence page's forms fetch a licence code from the licence service; the one email-only form resends a lost code and sits mid-page · nothing on the page is a mailing list */
/* Hallmark · reworded "Pi Collection New" to "Pi Collection", "Storage and card wear New" to "Storage and card wear", "Processes New" to "Processes", "Services New" to "Services" · 38iii names the accented word; "New." now opens each line */
/* Hallmark · dropped a web page served by the pi, your pi's own sign-in, reading needs no privileges, a record that survives a reboot, several pis, one place, your data stays home, stop the browser's warning · the six are the terms of a definition list and the install step keeps its head with a typographic apostrophe; no words changed */
/* Hallmark · waive 8 · the home page keeps its recorded order (why, screens, features, how it works, install) in a new composition: a corridor, a switcher of seven questions, ruled rows, two splits · the owner's argument was already right */
@import url("./tokens.css");
@import url("./base.css");

@font-face { font-family: "General Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/general-sans-400.woff2") format("woff2"); }
@font-face { font-family: "General Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/general-sans-500.woff2") format("woff2"); }
@font-face { font-family: "General Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/general-sans-600.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/geist-mono-400-latin.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: "Geist Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/geist-mono-400-latin-ext.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; }

/* The page's own tokens: the brand's red plus, and the groove the theme presses its choices into. */
:root {
  --color-plus: oklch(57% 0.21 18);
  --radius-groove: 12px;
  --nav-height: 72px;
}

/* Sections sit half as far apart as the scaffold sets them: the page is pictures and short runs of text, and the long gaps read as nothing. */
:root { --section-gap-s: 60px; --section-gap: 72px; --section-gap-l: 88px; }
@media (max-width: 60rem) { :root { --section-gap-s: 40px; --section-gap: 48px; --section-gap-l: 60px; } }
@media (max-width: 40rem) { :root { --section-gap-s: 28px; --section-gap: 36px; --section-gap-l: 48px; } }

html { scroll-behavior: smooth; }
body { font-synthesis: none; }
h1, h2, h3 { font-weight: var(--display-weight); }
h2 { line-height: 1.08; }
a { text-decoration-color: color-mix(in oklab, var(--color-ink) 35%, transparent); transition: text-decoration-color var(--dur-micro) var(--ease-out); }
a:hover { text-decoration-color: var(--color-accent-2); }
strong { font-weight: 600; }
em { font-style: italic; }
.muted { color: var(--color-muted); }
.small { font-size: var(--text-sm); }
.fig, code, pre, .sha, .num { font-family: var(--font-outlier); font-variant-numeric: tabular-nums; }

/* The bar */
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-sm) var(--space-lg); min-height: var(--nav-height); padding-block: var(--space-sm); }
.wordmark { display: inline-flex; align-items: center; gap: var(--space-sm); font-weight: 600; font-size: var(--text-lg); letter-spacing: -0.01em; text-decoration: none; color: var(--color-ink); }
.wordmark img { width: 32px; height: 32px; border-radius: 7px; }
.wordmark .plus { color: var(--color-plus); }
.bar nav, .bar .links { display: flex; align-items: center; gap: var(--space-lg); }
.bar .links a { font-size: var(--text-sm); font-weight: 500; color: var(--color-ink-2); text-decoration: none; }
.bar .links a:hover { text-decoration: underline; text-decoration-color: var(--color-accent-2); }
.bar .btn { min-height: 40px; padding-inline: var(--space-md); font-size: var(--text-sm); }
@media (max-width: 40rem) {
  .bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; row-gap: var(--space-xs); padding-block: var(--space-xs); }
  .bar nav { display: contents; }
  .bar .btn { grid-row: 1; grid-column: 2; justify-self: end; }
  .bar .links { grid-column: 1 / -1; flex-wrap: wrap; justify-content: space-between; gap: var(--space-xs) var(--space-sm); }
  .bar .links a { font-size: var(--text-md); }
}

/* Controls: letterpress cards, 48px, pressed labels */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: 48px; padding: 0 var(--space-lg); border: 0; border-radius: var(--radius-stock); font: 500 var(--text-md)/1 var(--font-body); white-space: nowrap; text-decoration: none; cursor: pointer; transition: transform var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out); }
.btn--card { background-color: var(--color-cotton); background-image: var(--tex-cotton); color: var(--color-print); text-shadow: 0.5px 0.75px 0 var(--color-cotton); box-shadow: var(--edge-stock), var(--cast-stock); }
.btn--ink { background: var(--color-board); color: var(--color-board-type); text-shadow: 0 -0.75px 0 var(--color-ink); box-shadow: var(--cast-stock); }
.btn:hover { transform: translateY(-1px); }
.btn--card:hover { box-shadow: var(--edge-stock), var(--cast-stock-lift); }
.btn--ink:hover { box-shadow: var(--cast-stock-lift); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn[aria-busy="true"] { cursor: progress; }
@media (prefers-reduced-motion: reduce) { .btn, a { transition: none; } .btn:hover, .btn:active { transform: none; } }

/* The desk: the hero's ground */
.desk { background-color: var(--color-desk); background-image: radial-gradient(90% 120% at 0% 30%, var(--color-cotton), transparent 62%), var(--tex-desk); }

/* Sections */
.section { padding-block: var(--section-gap); }
.section--s { padding-block: var(--section-gap-s); }
.section--l { padding-block: var(--section-gap-l); }
.section--rule { border-top: var(--rule-hair) solid var(--color-rule); }
.band { background: var(--color-paper-2); padding-block: calc(var(--space-3xl) / 2); }
#screens { padding-block-end: var(--space-xl); }
.band .rows, .band .rows > li { border-color: var(--color-rule-2); }
.head { display: grid; gap: var(--space-md); margin-block-end: var(--space-2xl); }
.head .lead { color: var(--color-ink-2); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-2xl) var(--gap-columns); align-items: center; }
.split--lead { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
.split--even { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); }
.split--text { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split > * { min-width: 0; }
.prose { display: grid; gap: var(--space-md); }
.prose p { max-width: 56ch; }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
@media (max-width: 60rem) { .split, .split--lead, .split--even, .split--text { grid-template-columns: minmax(0, 1fr); } .head { margin-block-end: var(--space-xl); } }

/* Captures: the product on cotton */
.shot { position: relative; margin: 0; aspect-ratio: 16 / 10; border-radius: var(--radius-card); background: var(--color-cotton); box-shadow: var(--edge-stock), var(--cast-stock); }
.shot > img { border-radius: inherit; }
[data-kind="product"] > img { filter: none; }
.shot--tall { aspect-ratio: 9 / 19; max-width: 300px; border-radius: 22px; }
.shot-link { display: block; border-radius: var(--radius-card); text-decoration: none; }
.shot-link:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.caption { margin-block-start: var(--space-sm); font-size: var(--text-sm); color: var(--color-muted); }

/* Hero: the headline at the left edge, the product's own warning as the floor of the first screen */
.hero { display: flex; flex-direction: column; padding-block: var(--space-xl) 0; }
.hero-grid { display: flex; container-type: inline-size; flex-direction: column; gap: var(--space-2xl); flex: 1 1 auto; min-width: 0; }
.hero-text { display: grid; justify-items: start; gap: var(--space-lg); }
.hero-text h1 { max-width: 23ch; }
.hero-text .lead { max-width: 60ch; color: var(--color-ink-2); text-wrap: balance; }
.hero-text .actions { margin-block-start: var(--space-xs); }
.hero-screen { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; border-radius: var(--radius-card) var(--radius-card) 0 0; text-decoration: none; }
.hero-screen:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.hero-screen .shot { flex: none; height: min(62cqw, 72dvh); min-height: 320px; aspect-ratio: auto; border-radius: var(--radius-card) var(--radius-card) 0 0; }
/* The frame: the Home page whole, from its top edge, as wide as the strip; the box is capped at the capture's own 16:10 so it never outruns the image. */
.hero-screen .shot > img { inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: top center; transform: none; }
.hero-screen .shot { mask-image: linear-gradient(to bottom, var(--color-ink) calc(100% - 72px), transparent); }
@media (max-width: 60rem) {
  .hero-grid { gap: var(--space-xl); }
  /* Phone: the whole frame, shrunk to the width of the screen. */
  .hero-screen .shot { aspect-ratio: 2160 / 1350; height: auto; min-height: 0; max-height: none; mask-image: linear-gradient(to bottom, var(--color-ink) calc(100% - 32px), transparent); }
}

/* The seven questions: a groove with a cotton card riding in it */
.seg { display: flex; flex-wrap: wrap; gap: var(--space-2xs); padding: var(--space-2xs); margin: 0; border: 0; border-radius: var(--radius-groove); background: var(--color-paper-2); box-shadow: var(--press-groove); }
.seg [role="tab"] { min-height: 44px; padding: 0 var(--space-md); border: 0; border-radius: calc(var(--radius-groove) - var(--space-2xs)); background: transparent; color: var(--color-ink-2); font: 500 var(--text-sm)/1 var(--font-body); white-space: nowrap; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out); }
.seg [role="tab"]:hover { color: var(--color-ink); }
.seg [role="tab"][aria-selected="true"] { background-color: var(--color-cotton); background-image: var(--tex-cotton); color: var(--color-print); box-shadow: var(--edge-stock); }
.seg [role="tab"]:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -2px; }
.seg [role="tab"]:active { box-shadow: var(--press-groove); }
.switch { display: grid; gap: var(--space-xl); }
.panel { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-xl) var(--gap-columns); align-items: start; }
.panel > * { min-width: 0; }
.panel .prose { position: sticky; top: var(--space-xl); }
.panel-shots { display: grid; gap: var(--space-lg); }
.panel-shots .caption { max-width: 60ch; }
@media (max-width: 60rem) { .panel { grid-template-columns: minmax(0, 1fr); } .panel .prose { position: static; } }

/* Features as ruled rows */
.rows { margin: 0; padding: 0; list-style: none; border-bottom: var(--rule-hair) solid var(--color-rule); }
.rows > li { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--space-xs) var(--gap-columns); padding-block: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); }
.rows > li > * { min-width: 0; }
.rows h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-sm); }
.rows p { max-width: 60ch; color: var(--color-ink-2); }
.new { font-weight: 600; }
@media (max-width: 60rem) { .rows > li { grid-template-columns: minmax(0, 1fr); } }

/* How it works: a definition list */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-lg) var(--gap-columns); margin: 0; }
.facts > div { display: grid; gap: var(--space-2xs); align-content: start; }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; color: var(--color-ink-2); }
.phone { display: grid; justify-items: start; gap: var(--space-md); }
.phone .shot-link { display: block; width: min(100%, 300px); }
.phone .shot--tall { width: 100%; max-width: none; }
.phone h3 { font-size: var(--text-lg); }
.phone p { max-width: 48ch; }
@media (max-width: 40rem) { .facts { grid-template-columns: minmax(0, 1fr); } }

/* The close: the download beside one last screen */
.close .prose { gap: var(--space-lg); }

/* Footer: index columns */
.foot { padding-block: var(--space-2xl) var(--space-xl); border-top: var(--rule-hair) solid var(--color-rule); font-size: var(--text-sm); color: var(--color-muted); }
.foot-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-xl) var(--gap-columns); }
.foot-col { display: grid; gap: var(--space-xs); align-content: start; grid-column: span 3; }
.foot-col--wide { grid-column: span 6; }
.foot-col p { margin: 0; max-width: 52ch; }
.foot-col strong { display: block; color: var(--color-ink); font-weight: 600; }
.foot a { color: var(--color-ink-2); }
.foot .legal { margin-block-start: var(--space-xl); }
@media (max-width: 60rem) { .foot-col, .foot-col--wide { grid-column: span 12; } .foot-col--half { grid-column: span 6; } }

/* Documents: install, licences, about, the policies */
.doc-head { padding-block: var(--space-2xl) var(--space-xl); display: grid; gap: var(--space-lg); }
.doc-head h1 { font-size: var(--text-display-s); max-width: 24ch; }
.doc-head .lead { max-width: 56ch; color: var(--color-ink-2); }
.doc { padding-block: var(--space-xl) var(--section-gap-s); line-height: 1.65; }
.doc h2 { font-size: var(--text-2xl); margin-block: var(--space-3xl) var(--space-md); scroll-margin-top: var(--space-xl); }
.doc h3 { font-size: var(--text-lg); margin-block: var(--space-xl) var(--space-xs); }
.doc p, .doc li { max-width: 62ch; }
.doc > * + * { margin-block-start: var(--space-md); }
.doc > h2 + *, .doc > h3 + * { margin-block-start: var(--space-sm); }
.doc ul, .doc ol { padding-inline-start: var(--space-lg); margin: 0; display: grid; gap: var(--space-xs); }
.doc .lead { font-size: var(--text-lead); }
.toc { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin: 0; padding: 0; list-style: none; }
.toc a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 var(--space-sm); border-radius: var(--radius-input); background-color: var(--color-cotton); background-image: var(--tex-cotton); color: var(--color-print); font-size: var(--text-sm); font-weight: 500; text-decoration: none; box-shadow: var(--edge-stock); }
.toc a:hover { box-shadow: var(--edge-stock), var(--cast-stock); }
.toc a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.well { padding: var(--space-lg); border-radius: var(--radius-card); background: var(--color-paper-2); }
.well > * + * { margin-block-start: var(--space-sm); }
.card { padding: var(--space-lg); border-radius: var(--radius-card); background-color: var(--color-cotton); background-image: var(--tex-cotton); color: var(--color-print); box-shadow: var(--edge-stock), var(--cast-stock); }
.card > * + * { margin-block-start: var(--space-sm); }
.note, .warn { padding: var(--space-md) var(--space-lg); border-radius: var(--radius-card); background: var(--color-paper-2); }

/* Steps: a real list, its numerals in the figure face */
.doc .steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 0; border-bottom: var(--rule-hair) solid var(--color-rule); }
.doc .steps > li { max-width: none; }
.steps > li { counter-increment: step; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 11fr); gap: var(--space-xs) var(--gap-columns); padding-block: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); }
.steps > li::before { content: counter(step); grid-row: 1 / span 9; font: 400 var(--text-xl)/1.1 var(--font-outlier); color: var(--color-muted); font-variant-numeric: tabular-nums; }
.steps > li > * { grid-column: 2; min-width: 0; }
.steps > li h3 { margin: 0; }
.steps > li p { margin: 0; }
.steps > li > ul, .steps > li > ol { margin: 0; }
@media (max-width: 40rem) { .steps > li { grid-template-columns: minmax(0, 1fr); } .steps > li::before { grid-row: auto; } .steps > li > * { grid-column: 1; } }

/* Commands on the board */
.code { display: flex; align-items: flex-start; gap: var(--space-sm); margin: 0; padding: var(--space-xs); padding-inline-start: 0; border-radius: var(--radius-card); background: var(--color-board); }
.code pre { flex: 1 1 auto; min-width: 0; margin: 0; padding: var(--space-sm) var(--space-md); background: transparent; color: var(--color-board-type); font: 400 var(--text-sm)/1.6 var(--font-outlier); white-space: pre-wrap; overflow-wrap: anywhere; }
.code button { flex: 0 0 auto; min-height: 44px; padding: 0 var(--space-sm); border: 0; border-radius: var(--radius-input); background-color: var(--color-cotton); background-image: var(--tex-cotton); color: var(--color-print); font: 500 var(--text-xs)/1 var(--font-body); cursor: pointer; box-shadow: var(--edge-stock); transition: transform var(--dur-micro) var(--ease-out); }
.code button:hover { box-shadow: var(--edge-stock), var(--cast-stock); }
.code button:active { transform: translateY(1px); }
.code button:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
code { font-size: 0.92em; padding: 0 var(--space-2xs); border-radius: 4px; background: var(--color-paper-3); color: var(--color-ink); }
pre code { padding: 0; background: transparent; color: inherit; font-size: inherit; }

/* The 64-bit / 32-bit choice: a groove, the card rides to the chosen stop */
.arch { display: inline-flex; gap: var(--space-2xs); padding: var(--space-2xs); border-radius: var(--radius-groove); background: var(--color-paper-2); box-shadow: var(--press-groove); }
.arch button { min-height: 44px; padding: 0 var(--space-md); border: 0; border-radius: calc(var(--radius-groove) - var(--space-2xs)); background: transparent; color: var(--color-ink-2); font: 500 var(--text-sm)/1 var(--font-body); cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out); }
.arch button:hover { color: var(--color-ink); }
.arch button.on { background-color: var(--color-cotton); background-image: var(--tex-cotton); color: var(--color-print); box-shadow: var(--edge-stock); }
.arch button:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -2px; }
.arch button:active { box-shadow: var(--press-groove); }

/* Tables: rules only */
.table-wrap { overflow-x: auto; }
table.downloads { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
table.downloads th, table.downloads td { text-align: left; padding: var(--space-sm) var(--space-md) var(--space-sm) 0; border-bottom: var(--rule-hair) solid var(--color-rule); vertical-align: top; }
table.downloads th { color: var(--color-muted); font-weight: 500; white-space: nowrap; }
table.downloads td:first-child { font-weight: 500; }
table.downloads td a { white-space: nowrap; }
.sha { font-size: var(--text-xs); color: var(--color-muted); word-break: break-all; }
@media (max-width: 40rem) {
  table.cookies thead { display: none; }
  table.cookies, table.cookies tbody, table.cookies tr, table.cookies td { display: block; width: 100%; }
  table.cookies td { border-bottom: 0; padding: var(--space-2xs) 0; }
  table.cookies td::before { content: attr(data-label); display: block; color: var(--color-muted); font-size: var(--text-xs); font-weight: 500; }
  table.cookies tr { padding-block: var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-rule); }
  table.cookies tr:last-child { border-bottom: 0; }
}

/* Disclosures: rows, not cards */
details { border-top: var(--rule-hair) solid var(--color-rule); padding-block: var(--space-md); }
details:last-of-type { border-bottom: var(--rule-hair) solid var(--color-rule); }
details summary { cursor: pointer; font-weight: 500; list-style-position: outside; }
details summary:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
details[open] summary { margin-block-end: var(--space-sm); }
details > * + * { margin-block-start: var(--space-sm); }

/* Plans: three columns parted by rules, the commercial one picked out by its button and a word */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; border-top: var(--rule-hair) solid var(--color-rule); border-bottom: var(--rule-hair) solid var(--color-rule); }
.plan { display: grid; grid-template-rows: auto auto auto minmax(0, 1fr) auto; gap: var(--space-sm); padding: var(--space-lg) var(--space-lg) var(--space-lg) 0; border-left: var(--rule-hair) solid var(--color-rule); padding-left: var(--space-lg); }
.plan:first-child { border-left: 0; padding-left: 0; }
.plan-head { display: grid; gap: var(--space-2xs); grid-row: 1; }
.plan .plan-price { grid-row: 2; }
.plan .plan-note { grid-row: 3; }
.plan .plan-text { grid-row: 4; }
.plan .plan-btn { grid-row: 5; }
.plan-head h2, .plan-head h3 { margin: 0; font-size: var(--text-title); line-height: 1.2; }
.plan-tag { font-size: var(--text-sm); color: var(--color-muted); }
.doc .plan-price { font-size: var(--text-section); font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: var(--tracking-display); line-height: 1; margin: var(--space-sm) 0 0; }
.doc .plan-note, .doc .plan-text { margin: 0; color: var(--color-ink-2); }
.doc .plan-note { font-size: var(--text-sm); color: var(--color-muted); }
.plan .plan-btn { align-self: end; }
.plan-more { display: grid; gap: var(--space-xs); padding: var(--space-lg); border-radius: var(--radius-card); background: var(--color-paper-2); }
.plan-more h3 { margin: 0; }
.doc .plan-more p { margin: 0; max-width: 66ch; }
@media (max-width: 60rem) { .plans { grid-template-columns: minmax(0, 1fr); border-bottom: 0; } .plan, .plan:first-child { border-left: 0; padding-left: 0; border-bottom: var(--rule-hair) solid var(--color-rule); } }

/* Forms: 48px fields, a constant border, the ring inset */
.licence-form { display: grid; gap: var(--space-md); max-width: 36rem; margin: 0; }
.licence-form label { display: grid; gap: var(--space-2xs); font-weight: 500; font-size: var(--text-sm); }
.licence-form input:not([type="radio"]) { min-height: 48px; padding: 0 var(--space-sm); border: 1px solid var(--color-muted); border-radius: var(--radius-input); background: var(--color-paper); color: var(--color-ink); font-weight: 400; font-size: var(--text-md); outline: 2px solid transparent; outline-offset: -3px; }
.licence-form input:not([type="radio"]):hover { background: var(--color-paper-2); }
.licence-form input:not([type="radio"]):focus-visible { outline-color: var(--color-focus); border-color: var(--color-ink-2); }
.licence-form input[aria-invalid="true"] { border-color: var(--color-error); }
.licence-form input:disabled { opacity: 0.55; cursor: not-allowed; }
.licence-form .choice-row { display: flex; flex-wrap: wrap; gap: var(--space-md) var(--space-lg); }
.licence-form .choice-row label { display: flex; align-items: center; gap: var(--space-xs); min-height: 44px; font-size: var(--text-md); cursor: pointer; }
.licence-form input[type="radio"] { width: 18px; height: 18px; margin: 0; accent-color: var(--color-accent-2); }
.licence-form input[type="radio"]:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.licence-form button { justify-self: start; }
.doc .form-note { margin: 0; color: var(--color-muted); font-size: var(--text-sm); }
.doc .form-result { margin: 0; min-height: 1lh; font-size: var(--text-sm); color: var(--color-ink-2); }
.form-result.good { color: var(--color-success); }
.form-result.bad { color: var(--color-error); }
.doc .plan-note { margin: 0; }

/* Performance figures (performance.html): a Long Document whose mass is charts on cotton cards and their tables.
   Series: the deep coral (--color-accent-2) for the one series, a slate blue for Wi-Fi beside Ethernet; the pair
   was run through the data-viz validator against the cotton surface (CVD ΔE 16.8, contrast ≥ 3:1). */
:root { --viz-series-1: var(--color-accent-2); --viz-series-2: oklch(52% 0.11 235); }
.doc--figures h2 { margin-block-start: var(--space-2xl); }
.doc--figures > p[data-test]:empty { display: none; }
.tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-md); margin: 0; }
.tile { display: grid; gap: var(--space-2xs); align-content: start; padding: var(--space-md) var(--space-lg); border-radius: var(--radius-card); background-color: var(--color-cotton); background-image: var(--tex-cotton); box-shadow: var(--edge-stock), var(--cast-stock); }
.doc .tile p { margin: 0; max-width: none; }
.tile-label { font-size: var(--text-sm); color: var(--color-muted); }
.tile-value { font-size: var(--text-xl); font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; color: var(--color-print); }
.tile-note { font-size: var(--text-xs); color: var(--color-muted); overflow-wrap: anywhere; }
.doc-list { padding-inline-start: var(--space-lg); }
.doc .doc-list li { max-width: 70ch; }
.viz-set { display: grid; gap: var(--space-lg); }
.viz { margin: 0; padding: var(--space-md) var(--space-lg) var(--space-lg); border-radius: var(--radius-card); background-color: var(--color-cotton); background-image: var(--tex-cotton); color: var(--color-print); box-shadow: var(--edge-stock), var(--cast-stock); display: grid; gap: var(--space-md); }
.viz-head { display: grid; gap: var(--space-3xs); }
.doc .viz-head h3 { margin: 0; font-size: var(--text-lg); }
.doc .viz-head p { margin: 0; }
.viz-chart { min-width: 0; }
.viz-chart svg { width: 100%; height: auto; overflow: visible; font-family: var(--font-body); }
.viz-grid { stroke: var(--color-rule); stroke-width: 1; shape-rendering: crispEdges; }
.viz-axis { stroke: var(--color-rule-2); stroke-width: 1; shape-rendering: crispEdges; }
.viz-tick { fill: var(--color-muted); font: 400 var(--text-xs)/1 var(--font-outlier); font-variant-numeric: tabular-nums; }
.viz-label { fill: var(--color-ink-2); font-size: var(--text-sm); font-weight: 500; }
.viz-value { fill: var(--color-ink); font: 400 var(--text-sm)/1 var(--font-outlier); font-variant-numeric: tabular-nums; }
.viz-bar { fill: var(--viz-series-1); transition: opacity var(--dur-micro) var(--ease-out); }
.viz-series-1 .viz-bar { fill: var(--viz-series-2); }
.viz-hit { fill: transparent; }
.viz-row { cursor: default; outline: none; }
.viz-row:hover .viz-bar, .viz-row:focus-visible .viz-bar { opacity: 0.8; }
.viz-row:focus-visible .viz-hit { fill: color-mix(in oklab, var(--color-accent) 12%, transparent); }
.viz-whisker { stroke: var(--color-ink-2); stroke-width: 1; }
.viz-ref { stroke: var(--color-ink); stroke-width: 2; }
.viz-legend { display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-lg); font-size: var(--text-xs); color: var(--color-muted); }
.viz-key { display: inline-flex; align-items: center; gap: var(--space-xs); }
.viz-key::before { content: ""; display: inline-block; width: 14px; height: 10px; border-radius: 2px; background: var(--viz-series-1); }
.viz-key--2::before { background: var(--viz-series-2); }
.viz-key--whisker::before { height: 1px; width: 16px; border-radius: 0; background: var(--color-ink-2); }
.viz-key--ref::before { width: 2px; height: 14px; border-radius: 0; background: var(--color-ink); }
.viz-key--unit::before { display: none; }
.viz-tip { position: absolute; top: 0; left: 0; z-index: var(--z-tooltip); max-width: 320px; padding: var(--space-xs) var(--space-sm); border-radius: var(--radius-input); background: var(--color-board); color: var(--color-board-type); font-size: var(--text-xs); line-height: 1.4; pointer-events: none; box-shadow: var(--cast-stock-lift); }
.viz-tip strong { font-weight: 600; font-variant-numeric: tabular-nums; }
.viz-tip-head { font-size: var(--text-sm); }
.viz-tip-row { color: color-mix(in oklab, var(--color-board-type) 80%, transparent); }
.viz-table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.viz-table th, .viz-table td { text-align: left; padding: var(--space-xs) var(--space-md) var(--space-xs) 0; border-bottom: var(--rule-hair) solid var(--color-rule); vertical-align: top; }
.viz-table th { color: var(--color-muted); font-weight: 500; white-space: nowrap; }
.viz-table tr:last-child td { border-bottom: 0; }
.viz-table th.num, .viz-table td.num { text-align: right; padding-right: 0; padding-left: var(--space-md); font-family: var(--font-outlier); font-variant-numeric: tabular-nums; white-space: nowrap; }
.viz-table th.num { font-family: var(--font-body); }
.viz-table td:first-child { font-weight: 500; }
.viz-empty { color: var(--color-muted); }
.viz-mixes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-lg); }
.viz-mixes > div { min-width: 0; }
.viz--mix .viz-table { font-size: var(--text-xs); }
#weeks { margin-block-start: var(--space-lg); }
#status.bad { color: var(--color-error); }
#latest-runs td:first-child, #latest-runs td:nth-child(2) { white-space: nowrap; }
@media (max-width: 70rem) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 60rem) { .viz-mixes { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 40rem) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .viz { padding: var(--space-sm) var(--space-md) var(--space-md); } .tile { padding: var(--space-sm) var(--space-md); } }
