/*
  Zonal user site: shared stylesheet. One file, no build step, no external requests.

  PAGE SKELETON (every page uses exactly this chrome; copy it from site/guide.html)
    <body>
      <a class="skip-link" href="#main">Skip to content</a>
      <header class="site-header"><div class="wrap"> .brand + nav.site-nav </div></header>
      <main id="main" class="wrap doc"> ... </main>        (home page: <main id="main"> with sections)
      <footer class="site-footer"><div class="wrap"> ... </div></footer>
    </body>
  Head: charset, viewport, <title>Page · Zonal</title>, meta description, favicon.svg,
  canonical https://zonal.anteras.app/<file>, og:title, og:description. Links between pages are relative.
  Mark the current page's nav link with aria-current="page" (header and footer).

  THEME
    Custom properties on :root; dark values via prefers-color-scheme. One accent color (--accent).
    Use var(--text), --muted, --bg, --surface, --line, --accent, --accent-soft in any inline SVG
    (fill="currentColor" or style="fill:var(--accent)"); they follow the color scheme.

  READING PAGES (guide, FAQ, licensing, privacy, terms): <main id="main" class="wrap doc">
    .doc            Reading column, about 70ch. Style plain h1, h2, h3, p, ul, ol, a, strong, code, hr, blockquote
                    with elements only; do not add classes to them. Headings: sentence case, h1 once, then h2, h3.
                    Give h2/h3 an id when linked from a table of contents (they get scroll offset automatically).
    .page-head      <header class="page-head"> wrapping the h1 and the lead.
    .lead           First paragraph under the h1: larger, muted.
    .updated        "Last updated" line for legal pages: <p class="updated">Last updated <time datetime="2026-10-24">24 October 2026</time></p>
    .toc            "On this page" list: <nav class="toc" aria-label="On this page"><h2>On this page</h2><ol><li><a href="#id">..</a></li></ol></nav>
                    A direct child of .doc; from 1360px it sits, sticky, in the left margin.
                    Pages with a .toc load site/toc.js, which marks the section being read (aria-current).
                    (use <ul> if unnumbered). Put it after the lead.
    .note           Callout: <aside class="note"><p>..</p></aside>. Optional first child <p class="note-title">Title</p>.
    .note.warning   Same with a warning tone (data loss, things that stop working).
    .steps          Numbered step list: <ol class="steps"><li>..</li></ol>. Each li may start with <strong> as the step name.
                    Add .row (class="steps row") for three or four short steps side by side from 720px up (home page).
    .faq            Wrapper for question list: <div class="faq"><details><summary>Question?</summary><div class="answer"><p>..</p></div></details>...</div>
                    Give each <details> a short id; with site/toc.js in the <head>, a link to #id opens that question.
                    Add the open attribute on a <details> to start expanded. No JavaScript needed.
    table           Style by element. Wrap in <div class="table-wrap" tabindex="0" role="region" aria-label="..."> so it scrolls
                    inside itself on phones. Use <caption>, <thead>, <th scope="col|row">.
                    Class .keys-table on the <table> gives the first column a narrow no-wrap look (for key/action lists).
    figure          <figure><svg role="img" aria-label="..">..</svg><figcaption>..</figcaption></figure>. Inline SVG scales to the column;
                    give it a viewBox and no width/height. Use currentColor and the theme variables, never hard-coded colors.
    .why            "Why use it" callout that opens a feature section: <aside class="why"><p class="why-title">Why use it</p><p>..</p></aside>.
    figure.shot     Screenshot: <figure class="shot"><img src="media/guide/x.webp" alt=".." width=".." height=".." loading="lazy"><figcaption>..</figcaption></figure>.
                    The image gets a hairline frame and soft shadow. Always give width and height (no layout shift).
    figure.shot.clip  A looping clip: <figure class="shot clip"><video width="1280" height="800" muted loop playsinline preload="none" poster="media/guide/clip-x-poster.webp" aria-label=".."><source src="media/guide/clip-x.mp4" type="video/mp4"></video><figcaption>..</figcaption></figure>.
                    With site/clips.js (defer) it plays only while in view, and not at all under prefers-reduced-motion (a click toggles it).
                    Dark screenshots: wrap the img in <picture><source srcset="media/guide/x-dark.webp" media="(prefers-color-scheme: dark)"><img ..></picture>.
    .pair           Two figures side by side from 720px up (before/after): <div class="pair"><figure class="shot">..</figure><figure class="shot">..</figure></div>.
    .recipes        Grid of .recipe cards (1 column on phones, 2 from 720px): <div class="recipes"><div class="recipe"><svg ..></svg><h3>..</h3><p>..</p></div></div>.
                    The svg is a mini Layout (viewBox 0 0 160 100) using .z (Zone), .z-main (accent Zone) and .z-rail (Rail) classes.
    .diagram        Concept diagram SVG classes: .d-frame (display), .d-zone, .d-win, .d-hot (accent), .d-rail, .d-text, .d-arrow.
    kbd             Keycap. One <kbd> per key: <kbd>⌃</kbd><kbd>⌥</kbd><kbd>⇧</kbd><kbd>1</kbd>.
    kbd, one glyph per kbd   Every modifier symbol (⌃ ⌥ ⇧ ⌘) must sit alone in its own <kbd>, in running text and in
                    combinations alike: <kbd>⇧</kbd><kbd>⌘</kbd><kbd>Z</kbd>, never <kbd>⇧⌘Z</kbd> or a bare glyph.
                    site/keys.js finds these kbd, gives them role="img" and an aria-label (Control, Option, Shift,
                    Command) and wraps the glyph as <span class="k-sym"> beside <span class="k-name">.
    .keys           Optional wrapper (span) that keeps a combination together on one line: <span class="keys"><kbd>⇧</kbd> drag</span>.
    code, pre       Monospace (ui-monospace). pre scrolls horizontally inside itself.
    .small          Fine print (smaller, muted) for any block or inline element.
    .nowrap         white-space: nowrap.

  HOME PAGE ONLY (index.html, 404.html may reuse .btn and .cta-row)
    .hero, .hero-art, .hero-demo (video + caption + play button), .eyebrow, .fineprint
    .btn .btn-primary / .btn .btn-secondary   Buttons (links). Primary = accent fill.
    .cta-row        Flex row of buttons, wraps on phones.
    .section        Vertical rhythm block; contains .section-head (h2 + optional p) and content.
    .features       Grid of .feature (h3 + p), 1 column on phones, 2 from 720px.
    .band           Quiet full-width strip for a trust statement.
    .closing        Closing call to action block.
    .soon           "Coming soon" pill in place of the buttons before launch (no link).
    .art-*          Classes used inside the hero SVG only.

  KEY LABELS (site/keys.js, <script src> in every <head>; root-absolute on 404.html)
    html[data-keys="names"]   Names mode: modifier kbd show Control, Option (Alt), Shift, Command (Win). Absent = Symbols.
    .k-sym / .k-name          Added by the script inside modifier kbd; CSS shows one. Do not write them by hand.
    .keys-toggle              Header switch, two buttons with aria-pressed (data-keys="symbols|names"). Copy the markup from
                              any page; it is hidden until the script reveals it.
    .js-only                  Element with the hidden attribute that the script reveals; use for text about the switch.
    .when-symbols             Spelled-out name next to a glyph kbd ("<kbd>⇧</kbd> Shift"); hidden in Names mode, where the kbd already says it.

  Visible focus: every link, summary and scrollable region gets a 2px accent outline (:focus-visible).
  Motion: only color/border transitions; disabled under prefers-reduced-motion.
*/

:root {
  color-scheme: light dark;
  --bg: #fbfbfd;
  --surface: #ffffff;
  --surface-2: #f3f3f6;
  --text: #1d1d1f;
  --muted: #5a5a62;
  --line: #dcdce2;
  --accent: #0a62d0;
  --accent-hover: #084ea6;
  --accent-soft: rgba(10, 98, 208, 0.12);
  --on-accent: #ffffff;
  --warn: #9a5200;
  --warn-soft: rgba(154, 82, 0, 0.1);
  --kbd-bg: #ffffff;
  --kbd-edge: #c4c4cc;
  --radius: 12px;
  --radius-sm: 8px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101012;
    --surface: #18181b;
    --surface-2: #202024;
    --text: #f2f2f5;
    --muted: #a3a3ad;
    --line: #2e2e34;
    --accent: #5aa2ff;
    --accent-hover: #82b9ff;
    --accent-soft: rgba(90, 162, 255, 0.18);
    --on-accent: #06142a;
    --warn: #f0b060;
    --warn-soft: rgba(240, 176, 96, 0.12);
    --kbd-bg: #26262b;
    --kbd-edge: #0b0b0d;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

main { flex: 1 0 auto; }

img, svg { max-width: 100%; height: auto; }

a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 20px; }
@media (min-width: 720px) { .wrap { padding-inline: 32px; } }

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 20;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
}
.skip-link:focus { top: 12px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
/* From 720px up the header stays at the top, frosted; on phones it scrolls away to keep the screen for text. */
@media (min-width: 720px) {
  html { scroll-padding-top: 64px; }  /* anchor targets land below the header */
  .site-header { position: sticky; top: 0; z-index: 10; }
  @supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
    .site-header {
      background: color-mix(in srgb, var(--bg) 80%, transparent);
      -webkit-backdrop-filter: saturate(180%) blur(16px);
      backdrop-filter: saturate(180%) blur(16px);
    }
  }
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 20px;
  padding-block: 12px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand:hover { color: var(--text); }
.brand svg { width: 30px; height: 22px; flex: none; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 2px 4px; margin: 0; padding: 0; list-style: none; }
.site-nav a {
  display: block;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.15s, background-color 0.15s;
}
.site-nav a:hover { color: var(--text); background: var(--surface-2); }
.site-nav a[aria-current="page"] { color: var(--text); font-weight: 600; }

/* Key-label switch */
.keys-toggle { display: inline-flex; padding: 2px; gap: 2px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); order: 1; margin-left: auto; }
.keys-toggle button {
  font: inherit; font-size: 0.85rem; line-height: 1.3; min-width: 2.6em; padding: 3px 10px;
  border: 0; border-radius: 6px; background: none; color: var(--muted); cursor: pointer;
  transition: color 0.15s, background-color 0.15s;
}
.keys-toggle button:hover { color: var(--text); }
.keys-toggle button[aria-pressed="true"] { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: 0 0 0 1px var(--line); }
.keys-toggle button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.site-nav { order: 2; flex-basis: 100%; }
@media (min-width: 720px) {
  .brand { margin-right: auto; }
  .site-nav { order: 1; flex-basis: auto; }
  .keys-toggle { order: 2; margin-left: 0; }
}

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 72px; padding-block: 32px 40px; color: var(--muted); font-size: 0.9rem; }
.site-footer .wrap { display: grid; gap: 16px; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; padding: 0; list-style: none; }
.site-footer a { color: var(--muted); }
.site-footer a:hover, .site-footer a[aria-current="page"] { color: var(--text); }
.site-footer p { margin: 0; max-width: 70ch; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--line); }
.btn-secondary:hover { background: var(--surface-2); color: var(--text); border-color: var(--muted); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Keycaps */
kbd {
  display: inline-block;
  min-width: 1.7em;
  padding: 0.05em 0.45em 0.1em;
  margin-inline: 0.08em;
  background: var(--kbd-bg);
  border: 1px solid var(--line);
  border-bottom-color: var(--kbd-edge);
  border-bottom-width: 2px;
  border-radius: 6px;
  font-family: var(--font);
  font-size: 0.86em;
  font-weight: 500;
  line-height: 1.45;
  text-align: center;
  color: var(--text);
  white-space: nowrap;
}
.keys { white-space: nowrap; }
.k-name, html[data-keys="names"] .k-sym, html[data-keys="names"] .when-symbols { display: none; }
html[data-keys="names"] .k-name { display: inline; }
html[data-keys="names"] .keys { white-space: normal; }   /* long combos may wrap between keys, never inside one */
html[data-keys="names"] .keys-table td:first-child, html[data-keys="names"] .keys-table th:first-child { white-space: normal; width: auto; }
[hidden] { display: none !important; }

code, pre { font-family: var(--mono); font-size: 0.9em; }
code { background: var(--surface-2); border-radius: 5px; padding: 0.1em 0.35em; }
pre { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; overflow-x: auto; line-height: 1.5; }
pre code { background: none; padding: 0; }

.small { font-size: 0.875rem; color: var(--muted); }
.nowrap { white-space: nowrap; }

/* Reading pages */
.doc { max-width: 70ch; padding-top: 48px; }
@media (min-width: 720px) { .doc { padding-top: 72px; } }
.doc h1, .doc h2, .doc h3 { font-family: var(--font-display); line-height: 1.2; letter-spacing: -0.015em; scroll-margin-top: 24px; }
.doc h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 2.9rem); margin: 0 0 0.4em; font-weight: 700; letter-spacing: -0.025em; }
.doc h2 { font-size: 1.6rem; margin: 2.2em 0 0.5em; font-weight: 650; }
.doc h3 { font-size: 1.2rem; margin: 1.8em 0 0.4em; font-weight: 650; }
.doc p, .doc ul, .doc ol { margin: 0 0 1em; }
.doc ul, .doc ol { padding-left: 1.4em; }
.doc li { margin-bottom: 0.35em; }
.doc hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.doc blockquote { margin: 1.2em 0; padding-left: 1em; border-left: 2px solid var(--line); color: var(--muted); }
.page-head { margin-bottom: 2rem; }
.lead { font-size: 1.25rem; line-height: 1.5; color: var(--muted); margin: 0 0 1em; }
.updated { color: var(--muted); font-size: 0.9rem; margin: 0 0 2rem; }

.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin: 0 0 2rem; }
.doc .toc h2 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 600; margin: 0 0 0.6em; }
.toc ol, .toc ul { margin: 0; padding-left: 1.3em; }
.toc li { margin-bottom: 0.2em; }
/* On wide screens the list moves into the left margin and stays in view while the page scrolls. */
@media (min-width: 1360px) {
  .doc:has(> .toc) { margin-left: calc(50% - 560px + 256px); }  /* main is .wrap.doc: the list lines up with the header's left edge */
  .doc > .toc {
    float: left; width: 208px; margin: 0 0 0 -256px;
    position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow-y: auto;
    background: none; border: 0; border-radius: 0; padding: 0;
  }
  .toc ol, .toc ul { padding-left: 0; list-style: none; }
  .toc li { font-size: 0.92rem; line-height: 1.35; margin-bottom: 0.55em; }
  .toc a { color: var(--muted); text-decoration: none; }
  .toc a:hover { color: var(--text); }
  .toc a[aria-current] { color: var(--text); font-weight: 600; }  /* set by toc.js */
}

.note { background: var(--accent-soft); border: 1px solid transparent; border-left: 3px solid var(--accent); border-radius: var(--radius-sm); padding: 14px 18px; margin: 1.5em 0; }
.note > :last-child { margin-bottom: 0; }
.note-title { font-weight: 650; margin: 0 0 0.3em; }
.note.warning { background: var(--warn-soft); border-left-color: var(--warn); }
.note.warning .note-title { color: var(--warn); }

.table-wrap { overflow-x: auto; margin: 1.5em 0; border: 1px solid var(--line); border-radius: var(--radius-sm); }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
caption { text-align: left; padding: 10px 14px; color: var(--muted); font-size: 0.875rem; }
th, td { text-align: left; vertical-align: top; padding: 10px 14px; border-top: 1px solid var(--line); }
thead th { border-top: 0; background: var(--surface-2); font-weight: 600; white-space: nowrap; }
.doc > table { margin: 1.5em 0; }
.keys-table td:first-child, .keys-table th:first-child { white-space: nowrap; width: 1%; }

figure { margin: 2em 0; }
figure svg { display: block; width: 100%; height: auto; }
figcaption { margin-top: 0.7em; color: var(--muted); font-size: 0.9rem; }

.doc dt { font-weight: 650; margin-top: 0.9em; }
.doc dd { margin: 0.2em 0 0; }

.why { border-left: 3px solid var(--accent); padding: 2px 0 2px 16px; margin: 0.5em 0 1.5em; }
.why > :last-child { margin-bottom: 0; }
.why-title { font-size: 0.8rem; font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); margin: 0 0 0.3em; }

figure.shot picture { display: block; }
figure.shot video { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08); background: var(--surface-2); cursor: pointer; }
figure.shot img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08); background: var(--surface-2); }
.pair { display: grid; gap: 16px; margin: 2em 0; }
.pair > figure { margin: 0; }
@media (min-width: 720px) { .pair { grid-template-columns: 1fr 1fr; } }

.recipes { display: grid; gap: 16px; margin: 1.5em 0 2em; }
@media (min-width: 720px) { .recipes { grid-template-columns: 1fr 1fr; } }
.recipe { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.recipe svg { display: block; width: 100%; max-width: 220px; height: auto; margin-bottom: 10px; }
.recipe h3 { margin: 0 0 0.3em; font-size: 1.05rem; }
.recipe p { margin: 0 0 0.5em; font-size: 0.95rem; }
.recipe p:last-child { margin-bottom: 0; }
.z, .d-zone { fill: currentColor; fill-opacity: 0.12; stroke: currentColor; stroke-opacity: 0.35; stroke-width: 1; }
.z-main, .d-hot { fill: var(--accent); fill-opacity: 0.85; stroke: var(--accent); stroke-width: 1; }
.z-rail, .d-rail { fill: #e8890c; fill-opacity: 0.15; stroke: #e8890c; stroke-width: 1.5; stroke-dasharray: 4 3; }
.d-frame { fill: none; stroke: currentColor; stroke-opacity: 0.5; stroke-width: 1.5; }
.d-win { fill: var(--surface); stroke: currentColor; stroke-opacity: 0.55; stroke-width: 1.2; }
.d-text { fill: currentColor; font: 600 11px var(--font); }
.d-small { fill: currentColor; fill-opacity: 0.7; font: 10px var(--font); }
.d-on-accent { fill: var(--on-accent); font: 600 11px var(--font); }
.d-arrow { fill: none; stroke: currentColor; stroke-opacity: 0.6; stroke-width: 1.5; }
.d-arrowhead { fill: currentColor; fill-opacity: 0.6; }

.steps { list-style: none; counter-reset: step; padding: 0 !important; margin: 1.5em 0; display: grid; gap: 16px; }
.steps > li { counter-increment: step; position: relative; margin: 0; padding-left: 3rem; min-height: 2.1rem; }
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.1rem;
  height: 2.1rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 650;
  font-size: 0.95rem;
}
.steps > li > strong:first-child { display: block; }
@media (min-width: 720px) {
  .steps.row { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .steps.row > li { padding: 3rem 0 0; }
}

.faq { margin: 1.5em 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding: 16px 36px 16px 0;
  font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -6px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.15s;
}
.faq details[open] > summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq summary:hover { color: var(--accent); }
.faq .answer { padding: 0 0 8px; color: var(--text); }
.faq .answer > :last-child { margin-bottom: 0.8em; }

.table-wrap:focus-visible { outline-offset: 2px; }

/* Home page */
.hero { text-align: center; padding-block: 56px 24px; }
@media (min-width: 720px) { .hero { padding-block: 88px 32px; } }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 1.2rem + 5vw, 4.1rem);
  line-height: 1.07;
  letter-spacing: -0.03em;
  font-weight: 700;
  max-width: 21ch;
  margin: 0 auto 0.45em;
  text-wrap: balance;
}
.hero .lead { max-width: 40ch; margin-inline: auto; font-size: 1.2rem; text-wrap: pretty; }
.hero .cta-row { justify-content: center; margin-top: 28px; }
.fineprint { color: var(--muted); font-size: 0.875rem; margin: 16px 0 0; }
.soon { display: inline-block; margin: 28px auto 0; padding: 9px 18px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-weight: 600; letter-spacing: 0.01em; }
.closing .soon { margin-top: 28px; }
.hero-art { margin: 40px auto 0; max-width: 940px; }
.hero-art svg { display: block; width: 100%; height: auto; }
.hero-demo { margin: 40px auto 0; max-width: 940px; }
.demo-frame { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18); background: var(--surface-2); }
.demo-frame video { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; }
.demo-play { position: absolute; inset: 0; margin: auto; width: 72px; height: 72px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(0, 0, 0, 0.6); color: #fff; cursor: pointer; }
.demo-play[hidden] { display: none; }
.demo-play:hover { background: rgba(0, 0, 0, 0.78); }
.demo-play svg { width: 32px; height: 32px; fill: currentColor; }
.hero-demo figcaption { margin-top: 14px; color: var(--muted); font-size: 0.95rem; }

.section { padding-top: 88px; }
.section-head { max-width: 40rem; margin: 0 0 32px; }
.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.1rem + 2vw, 2.3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 0.4em;
}
.section-head p { color: var(--muted); margin: 0; }

.features { display: grid; gap: 16px; padding: 0; margin: 0; list-style: none; }
@media (min-width: 720px) { .features { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px 24px 22px; }
.feature h3 { font-family: var(--font-display); font-size: 1.2rem; line-height: 1.25; letter-spacing: -0.01em; margin: 0 0 0.45em; }
.feature p { margin: 0; color: var(--muted); }
.feature kbd { color: var(--text); }

.band { margin-top: 20px; border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; display: grid; gap: 4px 32px; }
.band h3 { font-family: var(--font-display); font-size: 1.2rem; margin: 0; }
.band p { margin: 0; color: var(--muted); }

.closing { text-align: center; padding-top: 96px; }
.closing h2 { font-family: var(--font-display); font-size: clamp(1.7rem, 1.1rem + 2.4vw, 2.6rem); line-height: 1.15; letter-spacing: -0.025em; margin: 0 0 0.35em; text-wrap: balance; }
.closing p { color: var(--muted); max-width: 36rem; margin: 0 auto; }
.closing .cta-row { justify-content: center; margin-top: 24px; }
.closing .fineprint { margin-top: 16px; }

/* Hero illustration */
.art-bezel { fill: var(--surface-2); stroke: var(--line); stroke-width: 1.5; }
.art-stand { fill: var(--surface-2); stroke: var(--line); stroke-width: 1.5; }
.art-screen { fill: var(--bg); stroke: var(--line); stroke-width: 1; }
.art-menubar { fill: var(--text); fill-opacity: 0.05; }
.art-menu-dot { fill: var(--text); fill-opacity: 0.28; }
.art-zone { fill: var(--text); fill-opacity: 0.045; stroke: var(--text); stroke-opacity: 0.16; stroke-width: 1.5; }
.art-zone-sel { fill: var(--accent); fill-opacity: 0.2; stroke: var(--accent); stroke-opacity: 1; stroke-width: 2.5; }
.art-num { fill: var(--muted); font-family: var(--font-display); font-size: 30px; font-weight: 600; text-anchor: middle; }
.art-num-sel { fill: var(--accent); }
.art-win { fill: var(--surface); fill-opacity: 0.92; stroke: var(--muted); stroke-opacity: 0.6; stroke-width: 1.5; }
.art-win-bar { fill: var(--text); fill-opacity: 0.06; }
.art-win-line { fill: var(--text); fill-opacity: 0.14; }
.art-win-dot { fill: var(--text); fill-opacity: 0.3; }
.art-cursor { fill: var(--text); stroke: var(--bg); stroke-width: 1.5; stroke-linejoin: round; }
.art-key { fill: var(--kbd-bg); stroke: var(--line); stroke-width: 1.5; }
.art-key-text { fill: var(--text); font-family: var(--font); font-size: 17px; font-weight: 500; text-anchor: middle; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Print: the page's text only. */
@media print {
  .skip-link, .site-header, .toc, .keys-toggle, .site-footer nav { display: none !important; }
  .doc, .doc:has(> .toc) { max-width: none; margin: 0; padding: 0; }
  a { color: inherit; }
}
