/* The public product page (/about.html, SPEC-design.md 4.10). It works without JavaScript; /theme-init.js only lets a
   stored theme win when scripts run. The fonts and the tokens below are copies of web/src/styles/tokens.css (only the
   ones this page uses). Served under style-src 'self': no inline styles anywhere on the page. */
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400 1000; font-display: swap; src: url('/fonts/dm-sans-latin.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('/fonts/manrope-latin.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/ibm-plex-mono-latin.woff2') format('woff2'); }

:root {
  color-scheme: light;
  --paper: #f5f7f8; --surface: #ffffff; --surface-2: #edf1f4; --hover: #e7edf2;
  --ink: #050709; --soft: #3c4753; --muted: #5b6773; --on-accent: #ffffff;
  --border: #d8dfe6; --border-strong: #c0cad3;
  --accent: #1d6eaf; --accent-hover: #19639f; --accent-press: #155688; --link: #1d6eaf; --focus: #1d6eaf;
  --ring: color-mix(in srgb, var(--focus) 28%, transparent);
  --brand-red: #ca1c21; --brand-blue: #3390e3; --brand-yellow: #fccd26; --brand-green: #2aa04a;
  --font-sans: 'DM Sans', 'Segoe UI', sans-serif; --font-mono: 'IBM Plex Mono', 'Consolas', monospace; --font-display: 'Manrope', 'Segoe UI', sans-serif;
  --text-h1: clamp(1.875rem, 1.45rem + 1.9vw, 2.75rem); --text-h2: clamp(1.375rem, 1.2rem + .8vw, 1.75rem);
  --text-about: 1.0625rem; --text-ui: .9375rem; --text-compact: .875rem; --text-small: .8125rem; --text-label: .75rem;
  --r-sm: 8px; --r-md: 12px; --r-full: 999px;
  --gutter: clamp(16px, 4vw, 40px);
  --shadow-1: 0 1px 2px rgb(5 7 9 / .06), 0 1px 1px rgb(5 7 9 / .04);
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --paper: #10151b; --surface: #171e26; --surface-2: #1e2731; --hover: #273440;
  --ink: #edf2f6; --soft: #c3ccd5; --muted: #a3afba;
  --border: #2c3946; --border-strong: #3a4a59;
  --accent: #2578bf; --accent-hover: #1d6eaf; --accent-press: #19639f; --link: #78bcf6; --focus: #78bcf6;
  --shadow-1: 0 1px 2px rgb(0 0 0 / .4), inset 0 1px 0 rgb(255 255 255 / .03);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --paper: #10151b; --surface: #171e26; --surface-2: #1e2731; --hover: #273440;
    --ink: #edf2f6; --soft: #c3ccd5; --muted: #a3afba;
    --border: #2c3946; --border-strong: #3a4a59;
    --accent: #2578bf; --accent-hover: #1d6eaf; --accent-press: #19639f; --link: #78bcf6; --focus: #78bcf6;
    --shadow-1: 0 1px 2px rgb(0 0 0 / .4), inset 0 1px 0 rgb(255 255 255 / .03);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; min-width: 320px; background: var(--paper); color: var(--ink); font: 400 var(--text-about)/1.65 var(--font-sans); font-synthesis: none; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.masthead, main, .colophon { width: calc(100% - 2 * var(--gutter)); max-width: 720px; margin-inline: auto; }
a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
main p a { padding-block: 2px; }   /* a 24 px tall hit area for links in sentences */
a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; box-shadow: 0 0 0 4px var(--ring); border-radius: 4px; }
::selection { background: #3390e333; }

/* Brand row: the [→] mark as text, the wordmark and the four-colour strip, linking home. */
.masthead { display: flex; align-items: center; min-height: 64px; padding-top: 8px; }
.brand { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding-bottom: 6px; color: var(--ink); text-decoration: none; }
.brand-mark { display: inline-flex; align-items: center; gap: 1px; font: 400 1.375rem/1 var(--font-mono); }
.brand-mark span { display: inline-block; }
.brand-name { position: relative; font: 800 var(--text-about)/1 var(--font-display); letter-spacing: -.03em; white-space: nowrap; }
.brand-files { margin-left: .18em; color: var(--muted); font-weight: 500; }
/* The strip starts under the wordmark, as in the app header. */
.brand-strip { position: absolute; left: 0; top: calc(100% + 7px); display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; width: 44px; height: 3px; }
.brand-strip i:nth-child(1) { background: var(--brand-red); }
.brand-strip i:nth-child(2) { background: var(--brand-blue); }
.brand-strip i:nth-child(3) { background: var(--brand-yellow); }
.brand-strip i:nth-child(4) { background: var(--brand-green); }
.brand:hover { text-decoration: none; }
.brand:hover .brand-mark span:first-child { transform: translateX(-2px); }
.brand:hover .brand-mark span:last-child { transform: translateX(2px); }
@media (prefers-reduced-motion: no-preference) { .brand-mark span { transition: transform 200ms cubic-bezier(.34, 1.56, .64, 1); } }

main { padding: 40px 0 56px; }
.eyebrow { margin: 0; font: 400 var(--text-label)/1.6 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
.byline { margin-top: 16px; color: var(--soft); font-size: var(--text-ui); }
h1, h2 { margin: 0; font-family: var(--font-display); font-weight: 750; letter-spacing: -.025em; line-height: 1.12; text-wrap: balance; }
h1 { margin-top: 12px; font-size: var(--text-h1); }
h2 { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); font-size: var(--text-h2); }
p { margin: 16px 0 0; }
.lead { margin-top: 16px; max-width: 60ch; color: var(--soft); font-size: 1.125rem; }
.cta { margin-top: 24px; }
.action { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border-radius: var(--r-sm); background: var(--accent); color: var(--on-accent); font: 600 1rem/1 var(--font-sans); text-decoration: none; }
.action:hover { background: var(--accent-hover); }
.action:active { background: var(--accent-press); }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.facts li { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: var(--r-full); background: var(--surface-2); color: var(--soft); font: 500 var(--text-small)/1 var(--font-sans); }

/* How it works: three numbered steps. */
.steps { margin: 16px 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; margin-top: 12px; padding: 16px 16px 16px 60px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow-1); counter-increment: step; }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 16px; top: 16px; color: var(--muted); font: 400 1.125rem/1.65 var(--font-mono); }

/* Limits: a two-column grid of facts from 560 px. */
.limits { display: grid; gap: 12px; margin: 16px 0 0; }
.limits div { padding: 16px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); }
.limits dt { font: 700 var(--text-ui)/1.4 var(--font-sans); color: var(--ink); }
.limits dd { margin: 4px 0 0; color: var(--soft); font-size: var(--text-ui); line-height: 1.6; }
@media (min-width: 560px) { .limits { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.colophon { padding: 24px 0 calc(32px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--border); color: var(--muted); font-size: var(--text-small); line-height: 1.5; }
.colophon nav { display: flex; flex-wrap: wrap; gap: 0 8px; margin-left: -8px; }
.colophon nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; color: var(--soft); font-size: var(--text-compact); text-decoration: none; border-radius: var(--r-sm); }
.colophon nav a:hover { color: var(--ink); text-decoration: underline; }
.colophon p { margin-top: 8px; }

@media (min-width: 720px) { main { padding-top: 64px; } }
html[data-motion='reduced'] * { transition: none !important; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
