/* StatsRaven site components, built only from tokens.css. Rules: docs/design/site-guideline.md. Specimen: /design/ */

@font-face { font-family: "League Gothic"; src: url("/fonts/league-gothic.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("/fonts/schibsted-grotesk.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Spline Sans Mono"; src: url("/fonts/spline-sans-mono.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 var(--t-body)/var(--lh-text) var(--text); overflow-x: hidden; }
h1, h2, h3, h4, p, dl, dd, figure, pre, ul, ol { margin: 0; }
a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
code, kbd, pre, samp { font-family: var(--mono); font-size: 0.875em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }

/* Type */
.t-hero, .t-d1, .t-d2, .t-d3, .t-d4 { font-family: var(--display); font-weight: 400; letter-spacing: 0; text-wrap: balance; }
.t-hero { font-size: var(--t-hero); line-height: 0.88; }
.t-d1 { font-size: var(--t-d1); line-height: var(--lh-display); }
.t-d2 { font-size: var(--t-d2); line-height: var(--lh-display); }
/* One shout per page: a page opens with t-d1 and the closing ask keeps it, every section heading between them sits a step lower. */
h2.t-d1 { font-size: var(--t-d2); }
.cta-band h2.t-d1 { font-size: var(--t-d1); }
.t-d3 { font-size: var(--t-d3); line-height: 1; }
.t-d4 { font-size: var(--t-d4); line-height: 1.05; }
.t-lead { font-size: var(--t-lead); line-height: 1.38; max-width: var(--measure); }
.t-small { font-size: var(--t-small); }
.t-micro { font-size: var(--t-micro); line-height: 1.4; }
.muted { color: var(--muted); }
.measure { max-width: var(--measure); }
.prose > * + * { margin-top: 1em; }
.prose h2 { font: 400 var(--t-d3)/1 var(--display); margin-top: 1.6em; }
.prose h3 { font: 700 1.1875rem/var(--lh-tight) var(--text); margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: 0.4em; }

/* Layout */
.wrap { width: 100%; max-width: calc(var(--page) + 2 * var(--edge)); margin-inline: auto; padding-inline: var(--edge); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: var(--s-block); }
.section { padding-block: var(--s-section); }
.stack > * + * { margin-top: var(--s-5); }
.stack-l > * + * { margin-top: var(--s-block); }

/* Section shapes */
.statement { row-gap: var(--s-5); }
.statement .title { grid-column: 1 / span 10; }
.statement .copy { grid-column: 1 / span 7; display: grid; gap: var(--s-4); align-content: start; }
.split .side { grid-column: 1 / span 5; display: grid; gap: var(--s-5); align-content: start; }
.split .media { grid-column: 6 / span 7; }
.split.flip .side { grid-column: 8 / span 5; grid-row: 1; }
.split.flip .media { grid-column: 1 / span 7; grid-row: 1; }
/* A statement may hold one live mock beside its copy, where the copy alone would leave the band half empty. */
.statement.with-aside { grid-template-rows: auto 1fr; }
.statement.with-aside .title { grid-column: 1 / span 7; }
.statement.with-aside .copy { grid-column: 1 / span 6; }
.statement .aside { grid-column: 8 / span 5; grid-row: 1 / span 2; }
.split .media, .statement .aside { align-self: center; }

/* Surfaces */
.ink { background: var(--ink-bg); color: var(--ink-fg); --muted: var(--ink-muted); --prompt: var(--ink-prompt); --line: var(--ink-line); --surface: var(--ink-surface); --link: var(--ink-fg); --focus: var(--accent); }
.signal { background: var(--signal-bg); color: var(--signal-fg); --muted: var(--n-800); --link: var(--signal-fg); --focus: var(--signal-fg); }
/* Sheen: the strong blue band. It redefines fg and bg, so every component inside inverts against blue the way it does on mist.
   Code and raised boxes sit on raven, and amber keeps its job: the prompt, the focus ring and the primary button. */
.sheen { background: var(--sheen-bg); color: var(--sheen-fg); --fg: var(--sheen-fg); --bg: var(--sheen-bg); --muted: var(--sheen-muted); --line: var(--sheen-line); --surface: var(--code-bg); --link: var(--sheen-fg); --prompt: var(--accent); --focus: var(--accent); --ask-bg: var(--sheen-fg); --ask-fg: var(--sheen-bg); }
.sheen .button.quiet:hover { background: var(--sheen-fg); color: var(--sheen-bg); border-color: var(--sheen-fg); }
.sheen pre, .sheen pre.code { color: var(--code-fg); }

/* Bridges */
.branch { position: relative; height: var(--branch); background: var(--fg); }
.branch .pose { position: absolute; bottom: 100%; }
/* A perched raven stands on the branch with its feet; the tail hangs down in front of it. */
.branch .pose-perch, .branch .pose-stretch, .branch .pose-turn { bottom: 100%; translate: 0 calc(var(--hang) * 100%); z-index: 1; }
.pose { position: relative; display: block; pointer-events: none; }
.pose svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pose .raven-bars { fill: currentColor; }
.pose-eye circle { fill: var(--eye-500); }
/* A raven that crosses from paper into ink keeps its contrast on both: its bars take the difference with what is behind them. */
.pose.cross { mix-blend-mode: difference; }
.pose.cross .raven-bars { fill: var(--n-200); }
.overlap { position: relative; z-index: 1; margin-bottom: calc(var(--overlap, 160px) * -1); }
.overlap + * { padding-top: calc(var(--overlap, 160px) + var(--s-section)); }

/* Buttons and links */
.button { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); min-height: 52px; padding: 0 var(--s-5); background: var(--accent); color: var(--on-accent); border: var(--rule) solid var(--accent); border-radius: var(--r-0); font: 650 1rem/1 var(--text); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast); }
.button:hover { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.button.quiet { background: transparent; color: var(--fg); border-color: var(--fg); }
.button.quiet:hover { background: var(--fg); color: var(--bg); }
.ink .button:hover, .signal .button:hover { background: currentColor; }
.ink .button.quiet:hover { background: var(--ink-fg); color: var(--ink-bg); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); }
.text-link { font-weight: 650; }

/* Command box */
.cmd { display: flex; width: 100%; max-width: 36rem; }
.cmd-line { flex: 1; min-width: 0; min-height: 52px; display: flex; align-items: center; padding: var(--s-2) var(--s-3); border: var(--rule) solid currentColor; border-right: 0; border-radius: var(--r-0); font: 500 0.8125rem/1.5 var(--mono); }
.cmd-line .nw { white-space: nowrap; }
/* Tone instead of colour: the prompt marks it as a command, the program and the shell carry weight, flags and the pipe step back. The prompt is not copied. */
.cmd-line > span::before { content: "$\00a0"; color: var(--prompt); font-weight: 750; user-select: none; }
.cmd-line b { font-weight: 750; }
.cmd-line i { font-style: normal; color: var(--muted); }
.cmd button { min-height: 52px; padding: 0 var(--s-5); background: var(--accent); color: var(--on-accent); border: var(--rule) solid currentColor; border-radius: var(--r-0); font: 650 1rem/1 var(--text); cursor: pointer; }
.cmd button:hover { background: var(--fg); color: var(--bg); }
/* A quieter box where a filled button already leads: the copy button takes the frame of the field. */
.cmd-quiet button { background: transparent; color: inherit; }
.cmd-quiet button:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
pre.code { padding: var(--s-4) var(--s-5); background: var(--surface); overflow-x: auto; font: 400 0.875rem/1.65 var(--mono); }

/* Product frame: the only rounded, shadowed thing on the site */
.shot { margin: 0; }
.shot-frame { display: block; overflow: hidden; border-radius: var(--r-frame); background: var(--surface); box-shadow: var(--frame-shadow); }
.shot-frame img, .shot-frame picture { display: block; width: 100%; height: auto; }
.shot figcaption { margin-top: var(--s-3); font-size: var(--t-small); color: var(--muted); max-width: var(--measure); }

/* Tabs */
.tabrail { display: flex; flex-wrap: wrap; gap: var(--s-1); }
.tabrail button { min-height: 48px; padding: 0 var(--s-5); background: var(--sunk); color: var(--fg); border: 0; border-radius: var(--r-0); font: 400 var(--t-d4)/1 var(--display); cursor: pointer; transition: background-color var(--dur-fast), color var(--dur-fast); }
.tabrail button[aria-selected="true"] { background: var(--fg); color: var(--bg); }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: var(--rule); padding: var(--rule); background: var(--fg); }
.plan { display: grid; gap: var(--s-4); align-content: start; padding: var(--s-6); background: var(--bg); }
.plan.featured { background: var(--fg); color: var(--bg); --muted: var(--line); }
.plan h3 { font: 650 1rem/1.2 var(--text); }
.price { font: 400 var(--t-d2)/0.9 var(--display); }
.price small { font: 500 var(--t-small)/1 var(--text); margin-left: var(--s-2); }
.ticks { list-style: none; padding: 0; display: grid; gap: var(--s-2); }
.ticks li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: var(--s-3); align-items: baseline; }
.ticks li::before { content: ""; width: 10px; height: 10px; background: currentColor; }

/* Short answer (blog) and note */
.answer { padding: var(--s-5) var(--s-6); border: var(--rule) solid var(--fg); font-size: var(--t-lead); line-height: 1.4; }
.answer strong { font-weight: 700; }

/* Tables */
.table { width: 100%; border-collapse: collapse; }
.table .num { font-variant-numeric: tabular-nums; }
.table th, .table td { padding: var(--s-3) var(--s-4) var(--s-3) 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table thead th { font-weight: 650; border-bottom: var(--rule) solid var(--fg); }
.table-wrap { overflow-x: auto; }

/* FAQ */
.faq-rows { border-top: var(--rule) solid var(--fg); }
.faq-rows details { border-bottom: 1px solid var(--line); }
.faq-rows summary { display: flex; justify-content: space-between; gap: var(--s-5); padding: var(--s-4) 0; font-weight: 650; font-size: 1.125rem; cursor: pointer; list-style: none; }
.faq-rows summary::-webkit-details-marker { display: none; }
.faq-rows summary::after { content: "+"; font: 400 1.5rem/1 var(--text); transition: transform var(--dur-med) var(--ease-move); }
.faq-rows details[open] summary::after { transform: rotate(45deg); }
.faq-rows details > :not(summary) { padding-bottom: var(--s-5); max-width: var(--measure); color: var(--muted); }

/* Header */
.skip { position: absolute; left: var(--edge); top: -80px; background: var(--fg); color: var(--bg); padding: var(--s-2) var(--s-4); z-index: 20; }
.skip:focus { top: var(--s-2); }
.site-top { position: relative; z-index: 10; }
.site-top-row { display: flex; align-items: center; gap: var(--s-6); min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font: 400 1.75rem/1 var(--display); }
.logo { width: 38px; height: 26px; flex: none; fill: currentColor; }
.site-nav { display: flex; align-items: center; gap: var(--s-5); font-weight: 500; }
.site-nav > a, .site-tools > a:not(.button) { text-decoration: none; }
.site-nav > a:hover, .site-tools > a:not(.button):hover, .site-nav [aria-current] { text-decoration: underline; text-decoration-thickness: 2px; }
.site-tools { display: flex; align-items: center; gap: var(--s-5); margin-left: auto; font-weight: 500; }
.button.small { min-height: 40px; padding: 0 var(--s-4); font-size: var(--t-small); }
.nav-menu { position: relative; }
.nav-menu summary, .nav-mobile summary { list-style: none; cursor: pointer; }
.nav-menu summary::-webkit-details-marker, .nav-mobile summary::-webkit-details-marker { display: none; }
.nav-menu summary { display: inline-flex; align-items: center; gap: var(--s-2); }
.nav-menu summary::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0; rotate: 45deg; translate: 0 -2px; transition: rotate var(--dur-fast); }
.nav-menu[open] summary::after { rotate: 225deg; translate: 0 2px; }
.nav-panel { position: absolute; left: calc(var(--s-5) * -1); top: calc(100% + var(--s-4)); width: min(40rem, 90vw); padding: var(--s-5); background: var(--bg); border: var(--rule) solid var(--fg); box-shadow: var(--frame-shadow); }
.nav-features { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-1); }
.nav-features a { display: grid; gap: 2px; padding: var(--s-3); text-decoration: none; }
.nav-features a:hover, .nav-features a[aria-current] { background: var(--sunk); }
.nav-features b { font-weight: 650; }
.nav-features span { font-size: var(--t-small); color: var(--muted); font-weight: 400; }
.nav-panel-foot { display: flex; gap: var(--s-5); margin-top: var(--s-4); padding: var(--s-4) var(--s-3) 0; border-top: 1px solid var(--line); font-size: var(--t-small); font-weight: 650; }
.nav-mobile { display: none; }
.nav-mobile summary { display: grid; place-items: center; width: 44px; height: 44px; margin-right: -10px; }
.nav-mobile summary span, .nav-mobile summary span::before, .nav-mobile summary span::after { display: block; width: 22px; height: 2px; background: currentColor; transition: rotate var(--dur-fast), translate var(--dur-fast), opacity var(--dur-fast); }
.nav-mobile summary span { position: relative; }
.nav-mobile summary span::before, .nav-mobile summary span::after { content: ""; position: absolute; left: 0; }
.nav-mobile summary span::before { translate: 0 -7px; }
.nav-mobile summary span::after { translate: 0 7px; }
.nav-mobile[open] summary span { background: transparent; }
.nav-mobile[open] summary span::before { translate: 0; rotate: 45deg; }
.nav-mobile[open] summary span::after { translate: 0; rotate: -45deg; }
.nav-sheet { position: absolute; left: 0; right: 0; top: 100%; padding: var(--s-5) var(--edge) var(--s-7); background: var(--bg); border-bottom: var(--rule) solid var(--fg); max-height: calc(100svh - 72px); overflow-y: auto; }
.nav-sheet ul { list-style: none; padding: 0; display: grid; }
.nav-sheet a { display: flex; align-items: center; min-height: 48px; font: 400 var(--t-d4)/1 var(--display); text-decoration: none; }
.nav-sheet-title { font-size: var(--t-small); color: var(--muted); }
.nav-sheet-main { margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--line); }

/* Footer */
.site-foot { margin-top: var(--s-section); }
.foot-perch { padding-top: clamp(150px, 15vw, 230px); }
.foot-perch .pose { left: 6%; width: clamp(130px, 13vw, 200px); }
.foot-perch .pose-stretch, .foot-perch .pose-turn { width: clamp(170px, 17vw, 260px); }
.foot { padding-block: var(--s-9) var(--s-6); }
.foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-6) var(--gutter); }
.foot h2 { font: 650 var(--t-small)/1.2 var(--text); margin-bottom: var(--s-3); }
.foot ul { list-style: none; padding: 0; display: grid; gap: var(--s-2); font-size: var(--t-small); }
.foot ul a { text-decoration: none; }
.foot ul a:hover { text-decoration: underline; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-4); margin-top: var(--s-8); font-size: var(--t-micro); color: var(--muted); }
.foot-base nav { display: flex; flex-wrap: wrap; gap: var(--s-4); }

@media (max-width: 900px) {
  .statement .title, .statement .copy, .split .side, .split .media, .split.flip .side, .split.flip .media, .statement.with-aside .title, .statement.with-aside .copy, .statement .aside { grid-column: 1 / -1; grid-row: auto; }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.theme { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin: -8px -8px -8px 0; background: none; border: 0; color: inherit; cursor: pointer; padding: 0; }
.theme:hover { background: var(--sunk); }
.theme-dark { background: var(--bg); color: var(--fg); }

/* Page bodies */
.page-prose { padding-block: var(--s-8) var(--s-9); }
.page-head { padding-block: var(--s-8) var(--s-block); display: grid; gap: var(--s-5); }
.page-head .t-lead { color: var(--muted); }
/* Long text: about 70 characters a line, a looser leading, and a size made for reading, not scanning. */
.prose { max-width: 40rem; font-size: 1.125rem; line-height: 1.7; }
.prose p, .prose li { text-wrap: pretty; }
.prose h1 { font: 400 var(--t-d2)/var(--lh-display) var(--display); margin-bottom: var(--s-6); }
.prose h2 { font: 400 var(--t-d4)/1.05 var(--display); margin-top: var(--s-7); }
.prose h3 { font: 650 1.125rem/var(--lh-tight) var(--text); margin-top: var(--s-6); }
.prose h2 + *, .prose h3 + * { margin-top: var(--s-3); }
.prose pre { padding: var(--s-4) var(--s-5); background: var(--code-bg); color: var(--code-fg); overflow-x: auto; font: 400 0.875rem/1.65 var(--mono); }
.prose :not(pre) > code { font: 400 0.875em var(--mono); background: var(--chip-bg); color: var(--chip-fg); box-shadow: inset 0 0 0 1px var(--chip-line); padding: 1px 5px; }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--t-small); display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: var(--s-2) var(--s-4) var(--s-2) 0; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose thead th, .prose tr:first-child th { border-bottom: var(--rule) solid var(--fg); font-weight: 650; }
.prose td code { white-space: nowrap; }
.prose dl { display: grid; gap: var(--s-3); }
.prose dt { font-weight: 650; }
.prose dd { margin: 0; color: var(--muted); }

/* Docs: a side list of every doc page */
.docs { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: var(--s-8); padding-block: var(--s-8) var(--s-9); align-items: start; }
.docs-nav { position: sticky; top: var(--s-5); }
.docs-nav ul { list-style: none; padding: 0; display: grid; }
.docs-nav a { display: block; padding: 6px var(--s-3); text-decoration: none; font-size: var(--t-small); }
.docs-nav a:hover { background: var(--sunk); }
.docs-nav a[aria-current] { background: var(--fg); color: var(--bg); font-weight: 650; }

/* Closing call to action: the line and the actions on one baseline */
.cta-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-6) var(--s-9); align-items: end; }
.cta-copy { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-5); justify-items: start; }
.cta-install { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-2); width: 100%; }
.cta-install .t-small { color: var(--muted); }

/* Notice pages: 404 and the Worker's short answers */
.notice-page { min-height: 60svh; display: grid; align-content: center; gap: var(--s-5); padding-block: var(--s-9); }

@media (max-width: 1060px) {
  .nav-wide { display: none; }
}
@media (max-width: 760px) {
  .site-nav, .site-tools > .button { display: none; }
  .nav-mobile { display: block; }
  .site-top-row { min-height: 64px; }
  .docs { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
  .docs-nav { position: static; }
  .docs-nav ul { display: flex; flex-wrap: wrap; gap: var(--s-1); }
  .docs-nav a { padding: 6px 10px; background: var(--sunk); }
}
@media (pointer: coarse) {
  .foot ul a, .foot-base a { display: inline-flex; align-items: center; min-height: 40px; }
  .actions .text-link, .switch-more { display: inline-flex; align-items: center; min-height: 44px; }
}

/* Account, sign-in and checkout pages, served by the Worker (src/lib.ts) */
.shop { max-width: 46rem; padding-block: var(--s-8) var(--s-9); }
.shop h1 { font: 400 var(--t-d2)/var(--lh-display) var(--display); margin-bottom: var(--s-5); }
.shop h2 { font: 400 var(--t-d4)/1.05 var(--display); margin: var(--s-6) 0 var(--s-3); }
.shop p { margin-bottom: var(--s-3); }
.shop .stack { display: grid; gap: 10px; justify-items: start; margin: 18px 0 22px; }
.shop .stack > * + * { margin-top: 0; }
.shop .stack > label:not(.pick) { font-weight: 600; }
.shop input[type="email"], .shop input.code { width: min(100%, 26rem); height: 52px; padding: 0 var(--s-4); background: transparent; color: var(--fg); border: var(--rule) solid var(--fg); border-radius: 0; font: inherit; }
.shop input.code { width: 11ch; font: 500 1.5rem/1 var(--mono); letter-spacing: 0.12em; }
.shop .button { margin-top: 6px; }
.shop .error { font-weight: 650; margin: 0; }
.shop .note { padding: var(--s-3) var(--s-4); background: var(--surface); font-weight: 600; }
.shop .buy { justify-items: stretch; gap: 4px; }
.shop .stack > label.consent { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-3); align-items: start; margin-top: var(--s-4); font-weight: 400; font-size: var(--t-small); line-height: 1.5; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--fg); }
.shop ol, .shop ul { margin: 0 0 14px 1.2em; padding: 0; }
.shop ol li { margin-bottom: 8px; }
.shop pre { padding: var(--s-4); background: var(--surface); overflow-x: auto; font: 400 0.875rem/1.6 var(--mono); }
.shop .cmd { margin-bottom: var(--s-3); }
.shop .fine { margin-top: var(--s-4); font-size: var(--t-small); color: var(--muted); }
/* The honeypot field on the sign-in form: off screen for people, still filled in by bots. */
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.pick { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 4px 16px; align-items: center; padding: var(--s-3) var(--s-4); background: var(--surface); font-weight: 400; }
.pick:has(input[type="checkbox"]) { grid-template-columns: auto minmax(0, 1fr) auto; cursor: pointer; }
.pick.fixed { grid-template-columns: minmax(0, 1fr) auto; }
.pick input[type="checkbox"] { width: 20px; height: 20px; margin: 0; accent-color: var(--fg); }
.pick strong { display: block; }
.pick .amount { font-weight: 700; white-space: nowrap; }
.pick .qty { width: 5ch; height: 40px; padding: 0 8px; background: var(--bg); color: var(--fg); border: var(--rule) solid var(--fg); border-radius: 0; font: inherit; text-align: center; }
.total { margin: 14px 0 4px; font-weight: 700; font-size: 1.25rem; }
.total small { font-weight: 400; font-size: var(--t-small); color: var(--muted); }
.who { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; color: var(--muted); }
.license { margin: 22px 0; border: var(--rule) solid var(--fg); }
.license header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; padding: 14px 18px; background: var(--fg); color: var(--bg); }
.license h2 { margin: 0; }
.license header code { font: 400 0.8125rem var(--mono); opacity: 0.8; }
.license ul { margin: 14px 18px 4px 2.3em; }
.license .actions { padding: 6px 18px 18px; }
.text-button { background: none; border: 0; padding: 4px 0; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 0.18em; cursor: pointer; }
@media (max-width: 560px) {
  .pick, .pick:has(input[type="checkbox"]) { grid-template-columns: minmax(0, 1fr) auto; }
  .pick:has(input[type="checkbox"]) input { grid-row: span 2; }
}

.plans-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.plans-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* Add-ons: three tiles with the price on the name's line, then the yearly updates as a plain line. */
.addons { display: grid; gap: var(--s-7); }
.addons-head { display: grid; gap: var(--s-4); max-width: 44rem; }
.addons-head .t-lead { color: var(--muted); }
.addon-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--rule); background: var(--line); padding-block: var(--rule); }
.addon-list li { display: grid; grid-template-rows: auto 1fr auto; gap: var(--s-3); padding: var(--s-6) var(--s-6) var(--s-6) 0; background: var(--bg); }
.addon-list li + li { padding-left: var(--s-6); }
.addon-list li:last-child { padding-right: 0; }
.addon-top { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-4); }
.addon-top h3, .addon-price { font: 400 var(--t-d3)/1 var(--display); margin: 0; }
.addon-price { font-variant-numeric: tabular-nums; }
.addon-list a { font-weight: 600; font-size: var(--t-small); }
.addon-renewal { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); align-items: baseline; color: var(--muted); }
.addon-renewal b { color: var(--fg); }
@media (max-width: 900px) { .addon-list { grid-template-columns: minmax(0, 1fr); } .addon-list li, .addon-list li + li { padding: var(--s-5) 0; } }
.trial-band { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-5) var(--s-8); align-items: center; margin-top: var(--s-5); padding: var(--s-6); }
.trial-band > div { display: grid; gap: var(--s-2); }
.fit-section h2 { margin-bottom: var(--s-block); }
.fit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6) var(--s-9); }
.fit h3 { margin-bottom: var(--s-4); }
.ticks.no li::before { background: transparent; box-shadow: inset 0 0 0 2px currentColor; }
.fine-row { margin-top: var(--s-4); max-width: 60em; }
@media (max-width: 900px) { .plans-3, .plans-2, .fit, .trial-band { grid-template-columns: minmax(0, 1fr); } }

/* Facts: a grid of short claims, each with its own heading. No boxes. */
.sec-title { margin-bottom: var(--s-block); max-width: 16em; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: var(--s-7) var(--gutter); }
.facts h3 { font: 400 var(--t-d4)/1.05 var(--display); margin-bottom: var(--s-3); }
.facts p { max-width: 32em; }
.facts p + p { margin-top: var(--s-3); }
.proof { display: grid; gap: var(--s-4); align-content: start; padding: var(--s-6); border: var(--rule) solid var(--fg); }
.proof h3 { font: 650 var(--t-small)/1.2 var(--text); }

/* Changelog */
.log { padding-bottom: var(--s-9); }
.log-release { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--s-5) var(--gutter); padding-block: var(--s-7); border-top: var(--rule) solid var(--fg); }
.log-release h2 { display: grid; gap: var(--s-2); align-content: start; font-weight: 400; }
.log-when { font: 400 var(--t-small)/1.4 var(--text); color: var(--muted); }
.log-items { list-style: none; padding: 0; display: grid; }
.log-items li { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: var(--s-4); padding-block: var(--s-3); border-bottom: 1px solid var(--line); }
.log-items li:last-child { border-bottom: 0; }
.log-items time { font-size: var(--t-small); color: var(--muted); font-variant-numeric: tabular-nums; }
.log-items li:target { background: var(--sunk); }
.log-more { grid-column: 2; }
.log-upgrade { grid-column: 2; display: grid; gap: var(--s-2); padding: var(--s-4) var(--s-5); background: var(--sunk); border: var(--rule) solid var(--fg); }
.log-upgrade h3 { font-size: var(--t-body); font-weight: 600; }
.log-upgrade ul { margin: 0; padding-left: 1.2em; display: grid; gap: var(--s-2); }
.log-upgrade + .log-items { grid-column: 2; }
.log-release:has(.log-upgrade) > h2 { grid-row: span 2; }
.log-more summary { padding-block: var(--s-3); font-weight: 600; font-size: var(--t-small); cursor: pointer; }
.log-older { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--s-5) var(--gutter); padding-block: var(--s-7); border-top: var(--rule) solid var(--fg); }
.log-older ul { list-style: none; margin: 0; padding: 0; display: grid; }
.log-older li { display: grid; grid-template-columns: 9.5rem 12rem minmax(0, 1fr); gap: var(--s-4); align-items: baseline; padding-block: var(--s-3); border-bottom: 1px solid var(--line); }
.log-older li:last-child { border-bottom: 0; }
.log-older a { font: 400 var(--t-d4)/1 var(--display); }
.log-older span { color: var(--muted); font-size: var(--t-small); }
@media (max-width: 760px) {
  .log-release, .log-older { grid-template-columns: minmax(0, 1fr); }
  .log-more, .log-upgrade, .log-upgrade + .log-items { grid-column: 1; }
  .log-release:has(.log-upgrade) > h2 { grid-row: auto; }
  .log-older li { grid-template-columns: 6rem minmax(0, 1fr); } .log-older li span:last-child { display: none; }
  .log-items li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

/* Comparisons */
.crumb { font-size: var(--t-small); }
.crumb a { color: var(--muted); }
.choose > div { grid-column: span 6; display: grid; gap: var(--s-5); align-content: start; }
.choose .ticks { font-size: 1.0625rem; gap: var(--s-3); }
.compare-table th[scope="row"] { width: 14%; font-weight: 650; }
.compare-table td { width: 43%; }
.cost-section { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-7) var(--s-9); align-items: start; }
.cost-head { display: grid; gap: var(--s-3); }
.cost-head .t-lead { color: var(--muted); }
.cost { display: grid; gap: var(--s-6); }
.cost-group { display: grid; gap: var(--s-3); }
.cost-label { font-weight: 650; }
.cost-bar { display: grid; grid-template-columns: 9rem minmax(0, 1fr) 5.5rem; gap: var(--s-4); align-items: center; }
.cost-who { font-size: var(--t-small); color: var(--muted); }
.cost-track { height: 28px; }
.cost-track i { display: block; height: 100%; width: var(--w); background: var(--line); }
.cost-bar b { font: 400 var(--t-d3)/1 var(--display); text-align: right; font-variant-numeric: tabular-nums; }
.cost-bar.us .cost-who { color: var(--fg); font-weight: 650; }
.cost-bar.us .cost-track i { background: var(--ask-bg); }
.matrix { font-size: var(--t-small); }
.matrix .us th, .matrix .us td { font-weight: 650; background: var(--sunk); }
.matrix .group th { padding-top: var(--s-6); font: 400 var(--t-d4)/1 var(--display); border-bottom: var(--rule) solid var(--fg); }
.mk-y::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; background: currentColor; vertical-align: 0.1em; }
.mk-n, .mk-u { color: var(--muted); }
.mk-u { font-style: italic; }
.matrix th[scope="row"] { white-space: nowrap; }
@media (max-width: 900px) { .cost-section { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .choose > div { grid-column: 1 / -1; } .cost-bar { grid-template-columns: 6rem minmax(0, 1fr) 4.5rem; } }

/* Blog: field notes */
.cover { display: block; width: 100%; height: auto; }
/* Blog. A post reads down one axis: header, cover and body share the same left edge, the contents rail sits to its left. */
.post-layout { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; padding-top: var(--s-8); }
.post-head { grid-column: 4 / span 8; display: grid; gap: var(--s-5); padding-bottom: var(--s-7); }
.post-head .t-lead { color: var(--muted); max-width: 38em; }
.post-when { font-size: var(--t-small); color: var(--muted); }
.post-cover-wide { grid-column: 4 / -1; margin-bottom: var(--s-8); }
.post-rail { grid-column: 1 / span 2; grid-row: 3; position: sticky; top: var(--s-5); font-size: var(--t-small); }
.post-body { grid-column: 4 / span 7; grid-row: 3; font-size: 1.125rem; line-height: 1.7; max-width: 40rem; }
.post-body > p:first-child { font-size: var(--t-lead); line-height: 1.55; }
.rail-title { font-weight: 650; margin-bottom: var(--s-3); }
.post-rail ol { list-style: none; padding: 0; display: grid; gap: var(--s-1); }
.post-rail a { display: block; padding: 4px 0; text-decoration: none; color: var(--muted); line-height: 1.35; }
.post-rail a:hover { color: var(--fg); text-decoration: underline; }
.answer { margin-block: var(--s-6); padding: var(--s-5) var(--s-6); background: var(--surface); border: 0; box-shadow: inset 0 0 0 1px var(--paper-edge, transparent); }
.answer .answer-title { margin: 0 0 var(--s-3); font: 650 var(--t-small)/1.2 var(--text); color: var(--muted); }
.answer p { font-size: var(--t-lead); line-height: 1.5; }
.post-faq, .post-compare { margin-top: var(--s-8); }
.post-compare ul { padding-left: 1.2em; }
.read-next .post-cards { margin-top: var(--s-block); }
/* Index: cards of equal weight, cover first. */
.blog-head { padding-bottom: var(--s-7); }
.blog-list { display: grid; gap: var(--s-9); padding-bottom: var(--s-section); }
.post-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-8) var(--gutter); }
.post-cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.post-card { display: grid; gap: var(--s-3); text-decoration: none; align-content: start; }
.post-card .post-cover { margin-bottom: var(--s-2); }
.post-card b { font: 400 var(--t-d3)/1.05 var(--display); }
.post-cards:not(.post-cards-2) .post-card b { font-size: var(--t-d4); }
.post-desc { color: var(--muted); max-width: 36em; }
.post-card:hover b, .post-lead:hover b { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.12em; }
.post-cover .cover { box-shadow: 0 0 0 1px var(--line); }
.post-meta { font-size: var(--t-small); color: var(--muted); }
.post-lead { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-6) var(--s-8); align-items: center; text-decoration: none; }
.post-lead-copy { display: grid; gap: var(--s-4); }
.post-lead .t-lead { color: var(--muted); }
.fig { margin-block: var(--s-7); padding: var(--s-5); background: var(--sunk); font-size: var(--t-small); line-height: 1.5; }
.fig figcaption { margin-top: var(--s-4); color: var(--muted); }
.prose .fig-raw, .fig-raw { display: block; padding: var(--s-3) var(--s-4); background: var(--ink-bg); color: var(--ink-fg); font: 400 0.8125rem/1.6 var(--mono); overflow-wrap: anywhere; }
.fig-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4) var(--gutter); margin-top: var(--s-5); }
.fig-fields dt { font-weight: 650; }
.fig-fields dd { margin: 0; color: var(--muted); }
.fig-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gutter); }
.fig-split figcaption { grid-column: 1 / -1; margin-top: 0; }
.fig-split.fig-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fig-split dl { display: grid; grid-row: span 4; grid-template-rows: subgrid; gap: var(--s-3); margin: 0; }
.fig-split dt { font-weight: 650; }
.fig-split dd { margin: 0; padding: 6px var(--s-3); background: var(--surface); }
.fig-split dd.fig-hot { background: var(--accent); color: var(--on-accent); font-weight: 650; }
.fig-h { font: 400 var(--t-d4)/1 var(--display); margin-bottom: var(--s-3); }
.fig-split ul { list-style: none; padding: 0; display: grid; gap: 6px; }
.fig-split li { padding: 6px var(--s-3); background: var(--surface); }
.fig-split li.fig-hot { background: var(--accent); color: var(--on-accent); font-weight: 650; }
.fig-split li.fig-none { background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); }
.fig-steps ol { padding-left: 1.4em; display: grid; gap: var(--s-3); }
.fig-steps li::marker { font-weight: 700; }
@media (max-width: 1060px) { .post-head, .post-cover-wide, .post-body { grid-column: 1 / -1; } .post-rail { display: none; } }
@media (max-width: 760px) { .post-cards, .post-cards-2, .post-lead, .fig-split, .fig-split.fig-3, .fig-fields { grid-template-columns: minmax(0, 1fr); } }

/* Screenshots follow the page theme: both are in the page, one is shown. */
.shot .on-dark { display: none; }
:root[data-theme="dark"] .shot .on-light { display: none; }
:root[data-theme="dark"] .shot .on-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .shot .on-light { display: none; }
  :root:not([data-theme="light"]) .shot .on-dark { display: block; }
}
.shot-phone { max-width: 360px; }
.shot-phone .shot-frame { border-radius: 28px; }

/* Feature pages */
.feature-head { padding-bottom: var(--s-7); }
.feature-shot { position: relative; z-index: 2; }
.feature-shot + .ink > .section:first-child { padding-top: calc(var(--overlap, 160px) + var(--s-block)); }
.overlap + .ink { padding-top: 0; }
.facts-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-8) var(--s-9); }
.feature-code { margin-top: var(--s-block); max-width: 44rem; }
.feature-second .media { align-self: center; }
.no-top { padding-top: var(--s-block); }
.asks { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-3); }
.asks li { padding: var(--s-3) var(--s-4); background: var(--ask-bg); color: var(--ask-fg); font-weight: 600; }
.feature-next { padding-top: 0; display: grid; gap: var(--s-6); }
.next-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--rule); padding: var(--rule); background: var(--fg); }
.next-card { display: grid; gap: var(--s-2); align-content: start; padding: var(--s-5); background: var(--bg); text-decoration: none; }
.next-card b { font: 400 var(--t-d4)/1.05 var(--display); }
.next-card span { color: var(--muted); }
a.next-card:hover { background: var(--sunk); }
.docs-card a { font-weight: 600; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-8) var(--gutter); padding-bottom: var(--s-section); }
.feature-card { display: grid; gap: var(--s-4); align-content: start; text-decoration: none; }
.feature-card.wide { grid-column: span 2; grid-row: span 2; }
.feature-card-text { display: grid; gap: var(--s-1); }
.feature-card-text b { font: 400 var(--t-d3)/1 var(--display); }
.feature-card-text span { color: var(--muted); }
.feature-card:hover .feature-card-text b { text-decoration: underline; text-decoration-thickness: 2px; }
@media (max-width: 900px) {
  .facts-2, .next-cards { grid-template-columns: minmax(0, 1fr); }
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .feature-card.wide { grid-column: auto; grid-row: auto; }
}

/* Story */
.decisions { display: grid; gap: var(--s-6); }
.decisions dt { font: 400 var(--t-d4)/1.05 var(--display); margin-bottom: var(--s-2); }
.decisions dd { margin: 0; max-width: 34em; }

@media (max-width: 900px) { .cta-grid { grid-template-columns: minmax(0, 1fr); } }

/* Features hub: one row per feature, words and its live mock, sides alternating */
/* Features: one page, a chapter per feature. Chapters alternate paper and ink, so the change of ground is the separator. */
.features-head { padding-bottom: var(--s-7); }
.chapter-index { position: sticky; top: 0; z-index: 5; background: var(--bg); box-shadow: 0 var(--rule) 0 var(--line); }
.chapter-index .wrap { display: flex; gap: var(--s-1); overflow-x: auto; scrollbar-width: none; padding-block: var(--s-2); }
.chapter-index a { flex: none; padding: var(--s-2) var(--s-3); text-decoration: none; font-weight: 600; font-size: var(--t-small); color: var(--muted); white-space: nowrap; transition: color var(--dur-fast), background-color var(--dur-fast); }
.chapter-index a:hover { color: var(--fg); }
.chapter-index a[aria-current] { background: var(--fg); color: var(--bg); }
.chapter { scroll-margin-top: 52px; }
.chapter-in { display: grid; gap: var(--s-8); padding-block: clamp(72px, 8vw, 128px); }
.chapter-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-7) var(--s-9); align-items: center; }
.chapter-copy { display: grid; gap: var(--s-4); align-content: center; }
.chapter-copy .t-lead { color: var(--muted); }
.chapter-name { font-weight: 650; color: var(--muted); }
.chapter-code { margin-top: var(--s-2); font-size: 0.8125rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.chapter-media .mock { max-width: 680px; margin-inline: auto 0; }
.chapter-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-6) var(--gutter); padding-top: var(--s-6); box-shadow: 0 calc(var(--rule) * -1) 0 var(--line); }
.chapter-facts h3 { font: 400 var(--t-d4)/1.05 var(--display); margin-bottom: var(--s-3); }
.chapter-facts p { font-size: var(--t-small); line-height: 1.6; }
.chapter-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: var(--s-5) var(--s-8); }
.chapter-asks h3 { font-size: var(--t-small); font-weight: 650; color: var(--muted); margin-bottom: var(--s-3); }
.chapter-asks ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chapter-asks li { padding: var(--s-2) var(--s-3); background: var(--ask-bg); color: var(--ask-fg); font-size: var(--t-small); font-weight: 600; }
.chapter-links { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); font-size: var(--t-small); font-weight: 600; }
/* No z-index on the bridge itself: a stacking context there would cut the raven off from what it blends with. */
.chapter-bridge { position: relative; height: 0; }
.chapter-bridge .pose { position: absolute; z-index: 3; right: 9%; top: 0; width: clamp(180px, 20vw, 300px); translate: 0 -55%; }
@media (max-width: 1100px) { .chapter-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .chapter-head { grid-template-columns: minmax(0, 1fr); } .chapter-media .mock { margin-inline: 0; } }
@media (max-width: 560px) { .chapter-facts { grid-template-columns: minmax(0, 1fr); } .chapter-bridge .pose { width: 140px; right: 4%; } }

/* Benchmarks: one card per measured machine, the sustained rate first. */
.bench-lede { max-width: 44em; margin-bottom: var(--s-6); }
.bench-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); gap: var(--gutter); }
.bench-card { display: grid; align-content: start; gap: var(--s-4); padding: var(--s-6); background: var(--surface); border: 1px solid var(--line); }
.bench-card h3 { font: 400 var(--t-d4)/1.05 var(--display); }
.bench-rate { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-3); }
.bench-rate strong { font: 400 clamp(3rem, 8vw, 4.5rem)/0.9 var(--display); font-variant-numeric: tabular-nums; }
.bench-rate.unknown { font: 400 var(--t-d4)/1.1 var(--display); color: var(--muted); }
.bench-facts { display: grid; gap: var(--s-3); margin: 0; }
.bench-facts dt { font-size: var(--t-small); color: var(--muted); }
.bench-facts dd { margin: 0; }
.bench-queries caption { text-align: left; font-weight: 650; padding-bottom: var(--s-2); }
.bench-queries td { font-variant-numeric: tabular-nums; text-align: right; padding-right: 0; }
.bench-method { margin-top: var(--s-5); }
.bench-method summary { cursor: pointer; font-weight: 650; }
.bench-method ul { margin-top: var(--s-3); padding-left: 1.2em; display: grid; gap: var(--s-2); max-width: 52em; }

/* Motion that answers an action, the same rules as the app (docs/design/app-guideline.md, "Motion in general"):
   only opacity and a few pixels, arriving decelerating, leaving accelerating and quicker. */
@keyframes fade-in { from { opacity: 0; } }
@keyframes pop-down { from { opacity: 0; translate: 0 -4px; } }
@keyframes ring-in { from { outline-color: transparent; outline-offset: 7px; } }

/* A header menu drops 4px into place as it fades in. */
.nav-menu[open] .nav-panel, .nav-mobile[open] .nav-sheet { animation: pop-down var(--dur-arrive) var(--ease-move); }

/* An answer opens: its height grows and its text fades in, and it closes the same way, quicker. Browsers that cannot
   animate to auto height still fade the text in. */
:is(.faq-rows details, details.log-more, details.bench-method)[open] > :not(summary) { animation: fade-in var(--dur-arrive) ease-out; }
@supports selector(::details-content) {
  :is(.faq-rows details, details.log-more, details.bench-method) { interpolate-size: allow-keywords; }
  :is(.faq-rows details, details.log-more, details.bench-method)::details-content { block-size: 0; overflow: clip; transition: block-size var(--dur-leave) var(--ease-move), content-visibility var(--dur-leave) allow-discrete; }
  :is(.faq-rows details, details.log-more, details.bench-method)[open]::details-content { block-size: auto; transition-duration: var(--dur-arrive); }
}

/* Controls answer over --dur-fast: the focus ring settles in, a field's frame darkens, a button gives a pixel. */
:where(a, button, input, select, textarea, summary):focus-visible { animation: ring-in var(--dur-fast) var(--ease-move); }
.cmd button, .tabrail button { transition: background-color var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast); }
.shop input, .pick .qty { transition: border-color var(--dur-fast), background-color var(--dur-fast); }
:is(.button, .cmd button):active { translate: 0 1px; }

/* Checkboxes are drawn square like everything else: the box fills and a tick draws from left to right. */
:is(.consent, .pick) input[type="checkbox"] { appearance: none; position: relative; flex: none; background: transparent; border: var(--rule) solid var(--fg); border-radius: 0; cursor: pointer; transition: background-color var(--dur-fast); }
:is(.consent, .pick) input[type="checkbox"]:checked { background: var(--fg); }
:is(.consent, .pick) input[type="checkbox"]::before { content: ""; position: absolute; inset: 1px; background: var(--bg); clip-path: inset(0 100% 0 0); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.4 4.8 9.2 10 3' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='square'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.4 4.8 9.2 10 3' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='square'/%3E%3C/svg%3E") center / contain no-repeat; transition: clip-path var(--dur-arrive) var(--ease-move); }
:is(.consent, .pick) input[type="checkbox"]:checked::before { clip-path: inset(0); }

/* An error or a note the form puts up fades in where it stands. */
.shop .error:not(:empty), .shop .note { animation: fade-in var(--dur-arrive) ease-out; }
