/* ============================================================
   PasteSuiteAI website: SSoT for the shared look (Draft T, 2026-10).
   Every page links this file BEFORE its own <style> block, so a page
   rule with the same selector still wins. Edit colours, type and the
   shared building blocks ONLY here; page <style> blocks hold layout
   that exists on one page only.

   Look: display headings in Bricolage Grotesque (self-hosted, see
   fonts/), body text in the system font, auto/light/dark theme (dark is
   a dark GREY, never black), 3D keycaps, pill buttons, chips, window
   frames, curved section edges, pricing as a timeline, inverted
   download block. Deliberately absent: gradient text, animated colour
   orbs, a badge above the H1, hover-lift cards.

   Theme: theme.js sets <html data-theme="light|dark"> for a manual
   choice; no attribute = follow the OS. Every dark token therefore
   exists twice (OS-dark without a light override, and forced dark).
   ============================================================ */

/* ---------- Display font (OFL, subset: wght 600-720 variable; wdth 90 + opsz 60 pinned for size; build: docs/features/website-design.md) ---------- */
@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('fonts/bricolage-grotesque-latin.woff2') format('woff2');
  font-weight: 600 720;
  font-style: normal;
  font-display: swap;
}
/* Metric-matched fallback (Arial Bold scaled to Bricolage's width and
   vertical metrics, measured 2026-10-10): headings keep their size and line
   breaks while the web font loads, so the swap does not shift the layout. */
@font-face {
  font-family: 'Bricolage Fallback';
  src: local('Arial Bold'), local('Arial-BoldMT'), local('Arial');
  font-weight: 600 800;
  size-adjust: 86.2%;
  ascent-override: 107.9%;
  descent-override: 31.3%;
  line-gap-override: 0%;
}

/* ---------- Tokens ---------- */
:root {
  --color-bg: #ffffff;
  --color-bg-secondary: #f5f5f7;
  --color-bg-tertiary: #fbfbfd;
  --color-text-primary: #1d1d1f;
  --color-text-secondary: #424245;
  --color-text-tertiary: #6e6e73;
  --color-accent: #0071e3;
  --color-accent-hover: #0077ed;
  --color-accent-soft: rgba(0, 113, 227, 0.1);
  --color-on-accent: #ffffff;
  --color-selection: rgba(0, 113, 227, 0.22);
  --color-separator: #d2d2d7;
  --color-nav-bg: rgba(251, 251, 253, 0.72);
  --color-card-shadow: rgba(0, 0, 0, 0.06);
  --color-screenshot-shadow: rgba(0, 0, 0, 0.08);
  --color-backdrop: rgba(0, 0, 0, 0.3);
  --color-ok: #34c759;
  --color-warn: #ff9500;
  --color-warn-soft: rgba(255, 149, 0, 0.1);
  --color-danger: #d70015;
  --font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-display: 'Bricolage Grotesque', 'Bricolage Fallback', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', 'Cascadia Mono', Consolas, monospace;
  --max-width: 1040px;
  --nav-height: 52px;
  --radius: 14px;
  --radius-organic: 20px 20px 20px 6px;
  --curve: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --color-bg: #141416;
    --color-bg-secondary: #1f1f22;
    --color-bg-tertiary: #18181a;
    --color-text-primary: #f5f5f7;
    --color-text-secondary: #b0b0b5;
    --color-text-tertiary: #8e8e93;
    --color-accent: #3b9eff;
    --color-accent-hover: #5aadff;
    --color-accent-soft: rgba(59, 158, 255, 0.14);
    --color-on-accent: #0b0b0c;
    --color-selection: rgba(59, 158, 255, 0.3);
    --color-separator: #3a3a3d;
    --color-nav-bg: rgba(20, 20, 22, 0.78);
    --color-card-shadow: rgba(0, 0, 0, 0.4);
    --color-screenshot-shadow: rgba(0, 0, 0, 0.45);
    --color-backdrop: rgba(0, 0, 0, 0.55);
    --color-ok: #30d158;
    --color-warn: #ff9f0a;
    --color-warn-soft: rgba(255, 159, 10, 0.12);
    --color-danger: #ff453a;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --color-bg: #141416;
  --color-bg-secondary: #1f1f22;
  --color-bg-tertiary: #18181a;
  --color-text-primary: #f5f5f7;
  --color-text-secondary: #b0b0b5;
  --color-text-tertiary: #8e8e93;
  --color-accent: #3b9eff;
  --color-accent-hover: #5aadff;
  --color-accent-soft: rgba(59, 158, 255, 0.14);
  --color-on-accent: #0b0b0c;
  --color-selection: rgba(59, 158, 255, 0.3);
  --color-separator: #3a3a3d;
  --color-nav-bg: rgba(20, 20, 22, 0.78);
  --color-card-shadow: rgba(0, 0, 0, 0.4);
  --color-screenshot-shadow: rgba(0, 0, 0, 0.45);
  --color-backdrop: rgba(0, 0, 0, 0.55);
  --color-ok: #30d158;
  --color-warn: #ff9f0a;
  --color-warn-soft: rgba(255, 159, 10, 0.12);
  --color-danger: #ff453a;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-family);
  background: var(--color-bg);
  color: var(--color-text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s, color .3s;
}
::selection { background: var(--color-selection); }
strong { font-weight: 600; }
:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; border-radius: 6px; }
[id] { scroll-margin-top: calc(var(--nav-height) + 16px); }

/* All headings use the display face; pages set size/weight as before. */
h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}
h1 { font-weight: 720; letter-spacing: -0.035em; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  padding: 10px 16px; border-radius: 10px;
  background: var(--color-text-primary); color: var(--color-bg) !important;
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 10px; }

.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 22px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-height);
  background: var(--color-nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--color-separator);
  display: flex; align-items: center; gap: 16px; padding: 0 22px;
}
/* Simple nav (legal, checkout, docs): back link left, controls right. */
.nav > a {
  font-size: 14px; font-weight: 500; letter-spacing: -0.01em;
  color: var(--color-text-primary); text-decoration: none;
}
.nav > a:hover { color: var(--color-accent); }
.nav > .theme-seg { margin-left: auto; }
.nav > .lang-toggle + .theme-seg { margin-left: 0; }
.nav > .lang-toggle { margin-left: auto; }

.nav-inner {
  max-width: var(--max-width); width: 100%; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav-brand {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
  color: var(--color-text-primary); text-decoration: none;
}
.nav-brand img { width: 22px; height: 22px; display: block; }
.nav-links { display: flex; align-items: center; gap: 24px; list-style: none; }
.nav-links a { font-size: 13px; color: var(--color-text-secondary); text-decoration: none; transition: color 0.2s; white-space: nowrap; }
.nav-links a:hover { color: var(--color-accent); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-cta {
  display: inline-flex; align-items: center;
  padding: 6px 14px; border-radius: 980px;
  background: var(--color-accent); color: var(--color-on-accent) !important;
  border: 1px solid transparent;
  font-size: 13px; font-weight: 500; text-decoration: none; transition: background 0.2s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--color-accent-hover); }
.nav-cta-secondary {
  background: transparent; color: var(--color-text-primary) !important;
  border-color: var(--color-separator);
}
.nav-cta-secondary:hover { background: var(--color-bg-secondary); }

/* Theme switch: auto / light / dark. Hidden until theme.js can run it. */
.theme-seg {
  display: inline-flex; flex: none; padding: 3px; gap: 2px; border-radius: 980px;
  border: 1px solid var(--color-separator); background: var(--color-bg);
}
html:not(.js) .theme-seg { visibility: hidden; }
.theme-seg button {
  min-height: 28px; min-width: 28px; padding: 0 9px; border: 0; border-radius: 980px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--color-text-tertiary);
  font: 500 12px var(--font-family); cursor: pointer;
  transition: background .2s, color .2s;
}
.theme-seg button:hover { color: var(--color-text-primary); }
.theme-seg button[aria-pressed="true"] { background: var(--color-bg-secondary); color: var(--color-text-primary); }
.theme-seg svg { display: block; }

/* ---------- Buttons (pill) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 980px;
  font-family: inherit; font-size: 15px; font-weight: 500;
  text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.2s, color 0.2s, transform 0.1s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--color-accent); color: var(--color-on-accent); }
.btn-primary:hover { background: var(--color-accent-hover); color: var(--color-on-accent); }
.btn-secondary { background: transparent; color: var(--color-text-primary); border-color: var(--color-separator); }
.btn-secondary:hover { background: var(--color-bg-secondary); }
.btn-large { padding: 14px 28px; font-size: 16px; }

/* ---------- Small parts ---------- */
.accent { color: var(--color-accent); }
.lead { font-size: clamp(17px, 2vw, 21px); color: var(--color-text-secondary); line-height: 1.5; }
.body-s { font-size: 14px; color: var(--color-text-secondary); line-height: 1.55; }
.meta { font-size: 13px; color: var(--color-text-tertiary); }
.eyebrow {
  font-family: var(--font-display); font-size: 15px; font-weight: 650;
  letter-spacing: .02em; color: var(--color-text-tertiary);
}
.nw { white-space: nowrap; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 980px;
  background: var(--color-bg-secondary); border: 1px solid var(--color-separator);
  font-size: 12px; font-weight: 500; color: var(--color-text-secondary);
}
.chip-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--color-ok); flex: none; }

/* Keycap with CSS-only depth. Docs <kbd> and the race keys share it. */
kbd, .kbd, .key {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.1em; height: 2.1em; padding: 0 .6em; border-radius: .45em;
  font: 600 12px/1 var(--font-family); letter-spacing: 0; white-space: nowrap;
  color: var(--color-text-primary); background: var(--color-bg);
  border: 1px solid var(--color-separator);
  box-shadow: 0 .18em 0 var(--color-separator), 0 .3em .6em var(--color-card-shadow);
  vertical-align: .05em;
  transition: transform .09s, box-shadow .09s, color .15s, border-color .15s, opacity .15s;
}
kbd { height: 1.9em; margin: 0 1px .18em; }
.kbd.is-on, .key.down {
  transform: translateY(.16em);
  box-shadow: 0 .02em 0 var(--color-separator), 0 .1em .2em var(--color-card-shadow);
  border-color: var(--color-accent); color: var(--color-accent);
}

/* Generic app-window frame (neutral, no third-party branding). */
.win {
  background: var(--color-bg);
  border: 1px solid var(--color-separator);
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 12px 40px var(--color-card-shadow);
}
.win-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 34px; padding: 0 12px;
  background: var(--color-bg-secondary);
  border-bottom: 1px solid var(--color-separator);
  font-size: 12px; color: var(--color-text-tertiary);
}
.win-ctrl { display: flex; gap: 10px; }
.win-ctrl i { width: 9px; height: 9px; border: 1.5px solid var(--color-text-tertiary); border-radius: 2px; opacity: 0.6; }
.win-body { padding: 18px 20px; font-size: 15px; line-height: 1.6; }
.sel { background: var(--color-selection); border-radius: 3px; }

/* ---------- Sections + curved edges ---------- */
.section-inner { max-width: var(--max-width); margin: 0 auto; }
.section-alt { background: var(--color-bg-secondary); position: relative; }
/* The one organic shape: a soft curve where a grey band starts and ends. */
.section-alt::before, .section-alt::after {
  content: ""; position: absolute; left: 0; right: 0; height: 56px;
  background: var(--color-bg-secondary); pointer-events: none;
  -webkit-mask: var(--curve-mask) no-repeat 0 0 / 100% 100%;
  mask: var(--curve-mask) no-repeat 0 0 / 100% 100%;
}
.section-alt::before {
  bottom: 100%;
  --curve-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 72' preserveAspectRatio='none'%3E%3Cpath d='M0 72C360 10 1100 0 1440 40V72Z'/%3E%3C/svg%3E");
}
.section-alt::after {
  top: 100%;
  --curve-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 72' preserveAspectRatio='none'%3E%3Cpath d='M0 0H1440V8C960 64 480 64 0 0Z'/%3E%3C/svg%3E");
}
.section-alt + .section-alt::before, .section-alt:has(+ .section-alt)::after { display: none; }

/* ---------- Marketing pages (home + landing pages) ---------- */
body > section, .band { padding: 88px 22px; }
.section-header { margin-bottom: 48px; max-width: 46em; }
.section-header h2, .h-section {
  font-size: clamp(30px, 4vw, 46px); font-weight: 700;
  letter-spacing: -0.035em; line-height: 1.04; margin-bottom: 14px;
}
.section-header p { font-size: 17px; color: var(--color-text-secondary); }
.section-header p + p { margin-top: 12px; }

/* Landing hero: left-aligned, display H1, plain kicker line (no badge). */
.hero { padding: clamp(56px, 9vw, 104px) 22px 64px; }
.hero-inner { max-width: var(--max-width); margin: 0 auto; }
.hero-eyebrow, .kicker {
  display: block; margin-bottom: 18px;
  font-size: 14px; font-weight: 500; color: var(--color-text-secondary);
}
.hero h1 {
  font-size: clamp(42px, 6.6vw, 80px); line-height: .98; max-width: 15ch;
  letter-spacing: -0.04em; margin-bottom: 24px;
}
.hero p.lead { max-width: 36em; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.hero-meta { font-size: 13px; color: var(--color-text-tertiary); }

/* Feature cards: flat, organic corner, no hover lift. */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.feature-card {
  background: var(--color-bg); border: 1px solid var(--color-separator);
  border-radius: var(--radius-organic); padding: 26px 24px;
}
.feature-icon {
  width: 40px; height: 40px; margin-bottom: 16px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-accent-soft); color: var(--color-accent);
}
.feature-card h3 { font-size: 19px; font-weight: 680; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--color-text-secondary); line-height: 1.55; }
/* Links inside running text are underlined: colour alone is not enough (WCAG 1.4.1). */
.feature-card a, .callout a, .faq-item a, .related a { color: var(--color-accent); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.feature-card a:hover, .callout a:hover, .faq-item a:hover, .related a:hover { text-decoration-thickness: 2px; }

/* Steps: the number is a keycap. */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.steps .step { padding: 24px 0 0; border-top: 1px solid var(--color-separator); }
.steps .step-number {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.3em; height: 2.3em; margin-bottom: 16px; border-radius: .45em;
  font: 600 15px/1 var(--font-family); color: var(--color-accent);
  background: var(--color-bg); border: 1px solid var(--color-separator);
  box-shadow: 0 .18em 0 var(--color-separator), 0 .3em .6em var(--color-card-shadow);
}
.steps .step h3 { font-size: 21px; font-weight: 680; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 8px; }
.steps .step p { font-size: 15px; color: var(--color-text-secondary); line-height: 1.55; }

/* Privacy callout */
.callout {
  max-width: 820px; padding: 40px 36px;
  background: var(--color-bg); border: 1px solid var(--color-separator);
  border-radius: 24px 24px 24px 8px;
}
.callout h3 { font-size: clamp(24px, 3vw, 32px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 16px; }
.callout p { font-size: 15px; color: var(--color-text-secondary); margin-bottom: 14px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; list-style: none; }

/* FAQ */
.faq { max-width: 820px; }
.faq-item { border-top: 1px solid var(--color-separator); }
.faq-item:last-child { border-bottom: 1px solid var(--color-separator); }
.faq-item summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 18px 40px 18px 0; min-height: 44px;
  font-size: 17px; font-weight: 600; color: var(--color-text-primary);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 4px; top: 14px;
  font: 400 24px/1.2 var(--font-family); color: var(--color-text-tertiary);
  transition: transform .25s var(--curve), color .2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); color: var(--color-accent); }
.faq-item p { padding: 0 0 20px; font-size: 15px; color: var(--color-text-secondary); line-height: 1.6; }
.faq-item code { font: 13px var(--font-mono); background: var(--color-bg-secondary); padding: 1px 6px; border-radius: 5px; }

.section-related { padding: 40px 22px; }
.related { font-size: 14px; color: var(--color-text-tertiary); max-width: 820px; }
.related a { font-weight: 500; }

/* Download: the inverted block. */
.download-cta {
  padding: 48px 40px; border-radius: 28px 28px 28px 6px;
  background: var(--color-text-primary); color: var(--color-bg);
}
.download-cta h2 { font-size: clamp(30px, 4vw, 48px); font-weight: 720; letter-spacing: -0.035em; line-height: 1.02; margin-bottom: 12px; }
.download-cta > p { font-size: 16px; opacity: .8; margin-bottom: 28px; }
.download-cta .hero-meta { color: inherit; opacity: .75; margin-top: 12px; }
.download-cta .hero-meta a, .download-cta a:not(.btn) { color: inherit; text-decoration: underline; font-weight: 500; }
.download-cta .btn-primary { background: var(--color-bg); color: var(--color-text-primary); }
.download-cta .btn-primary:hover { background: var(--color-bg-secondary); color: var(--color-text-primary); }
.download-cta .btn-secondary { color: inherit; border-color: currentColor; }
.download-cta .btn-secondary:hover { background: transparent; opacity: .85; }

/* Scroll-reveal is retired: content is visible immediately (index.js may still add .visible). */
.reveal { opacity: 1; transform: none; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--color-separator); padding: 32px 22px; background: var(--color-bg); }
.footer-inner {
  max-width: var(--max-width); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer-text { font-size: 12px; color: var(--color-text-tertiary); letter-spacing: -0.01em; }
.footer-links { display: flex; align-items: center; gap: 8px 20px; flex-wrap: wrap; }
.footer-links a { font-size: 12px; color: var(--color-text-tertiary); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--color-text-primary); }

/* ============================================================
   Home page only (index.html): hero, race, doors, index list,
   pricing timeline, download block. Kept here so the whole look
   lives in one cached file.
   ============================================================ */
.home-hero { padding: clamp(40px, 6vw, 72px) 22px 0; }
.home-hero .wrap { padding: 0; }
.home-head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px 56px; align-items: end; }
.home-head h1 { font-size: clamp(44px, 7vw, 88px); line-height: .96; letter-spacing: -0.04em; }
.home-head h1 .accent { display: inline-block; }
.hero-tagline {
  display: block; margin-top: 20px; max-width: 26em;
  font-family: var(--font-family); font-size: clamp(17px, 1.9vw, 21px); font-weight: 600;
  letter-spacing: -0.015em; line-height: 1.35; color: var(--color-text-primary);
}
.home-side .lead { font-size: 16px; line-height: 1.55; }
.home-side .hero-actions { margin: 22px 0 12px; }

/* Race: four panels stacked in one grid cell, the tallest sets the
   height, so switching never moves the page. Without JS they simply
   list one after another. */
.race-stack { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--color-separator); }
.js .race-stack, .js .extras-stack { display: grid; }
.js .race-stack > *, .js .extras-stack > * { grid-area: 1 / 1; transition: opacity .2s ease, visibility 0s; }
.js .race-stack > :not(.is-active), .js .extras-stack > :not(.is-active) { visibility: hidden; opacity: 0; transition: opacity .2s ease, visibility 0s .2s; }
html:not(.js) .race-panel + .race-panel { margin-top: 64px; }
html:not(.js) .race-ctrl { display: none; }
.door-h2 {
  font-size: clamp(28px, 3.6vw, 44px); font-weight: 700; line-height: 1.02;
  letter-spacing: -0.035em; max-width: 19ch;
}
.door-lead { margin-top: 14px; max-width: 38em; font-size: clamp(16px, 1.7vw, 19px); }

.race {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  margin-top: 32px; overflow: hidden; background: var(--color-bg);
  border: 1px solid var(--color-separator); border-radius: 24px 24px 24px 8px;
  box-shadow: 0 24px 48px -28px var(--color-card-shadow);
}
.lane { padding: 22px 24px 24px; display: flex; flex-direction: column; min-width: 0; }
.lane-old { background: var(--color-bg-tertiary); border-right: 1px solid var(--color-separator); }
.lane-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--color-separator);
}
.lane-head .eyebrow { margin-bottom: 2px; }
.lane-new .lane-head .eyebrow { color: var(--color-accent); }
.clock { font: 600 38px/1 var(--font-mono); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--color-text-primary); }
.lane-new .clock { color: var(--color-accent); }

.race-steps { list-style: none; counter-reset: step; display: grid; gap: 2px; }
.race-steps li {
  counter-increment: step;
  display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 10px;
  padding: 6px 10px; border-radius: 8px;
  font-size: 15px; color: var(--color-text-tertiary);
  transition: background 0.2s, color 0.2s;
}
.race-steps li::before { content: counter(step); font: 500 12px/1 var(--font-mono); color: var(--color-text-tertiary); }
.race-steps .t { font: 500 12px/1 var(--font-mono); color: var(--color-text-tertiary); opacity: 0; transition: opacity 0.2s; }
.race-steps li.is-active { background: var(--color-accent-soft); color: var(--color-text-primary); }
.race-steps li.is-active::before { color: var(--color-accent); }
.race-steps li.is-done { color: var(--color-text-secondary); }
.race-steps li.is-done .t { opacity: 1; }
.race-steps q { quotes: "\201C" "\201D"; font-style: italic; }
html:not(.js) .race-steps .t { opacity: 1; }

.lane-status { margin-top: auto; padding-top: 16px; min-height: 2.6em; }
.lane-status .meta { display: inline-flex; align-items: center; gap: 8px; }
.is-finished .lane-status .meta { color: var(--color-text-primary); font-weight: 500; }
.lane-new.is-finished .lane-status .meta::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--color-ok); flex: none; }

.lane-new .win { box-shadow: none; }
.win-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win-right { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.win-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--color-text-secondary); }
.lane-new .win-body p + p { margin-top: 10px; }
.mail-head {
  display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 2px 8px;
  font-size: 13px; padding-bottom: 10px; margin-bottom: 12px; border-bottom: 1px solid var(--color-separator);
}
.mail-head dt { color: var(--color-text-tertiary); }
.mail-head dd { color: var(--color-text-primary); }
.win-ctx { margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--color-separator); }
.mono { font-family: var(--font-mono); font-size: 13.5px; line-height: 1.65; }

.swap { display: grid; }
.swap > span { grid-area: 1 / 1; transition: opacity 0.35s; }
.swap .txt-new { opacity: 0; }
.lane-new.is-working .txt-old { opacity: 0.45; }
.lane-new.is-finished .txt-old { opacity: 0; }
.lane-new.is-finished .txt-new { opacity: 1; }
.hl { transition: background 0.2s; }
.ba-note {
  margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--color-separator);
  display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--color-text-secondary);
  opacity: 0.35; transition: opacity 0.3s;
}
.lane-new.is-finished .ba-note { opacity: 1; }

.prompt-box { border: 1px solid var(--color-separator); border-radius: 10px; padding: 12px 14px; background: var(--color-bg-secondary); }
.wave { display: flex; align-items: center; gap: 3px; height: 22px; margin-bottom: 10px; opacity: 0.25; transition: opacity 0.2s; }
.wave i { width: 3px; height: 25%; border-radius: 2px; background: var(--color-accent); }
.lane-new.is-recording .wave { opacity: 1; }
.lane-new.is-recording .wave i { animation: wv 0.9s ease-in-out infinite; }
.wave i:nth-child(3n) { animation-delay: -0.3s; }
.wave i:nth-child(4n) { animation-delay: -0.6s; }
.wave i:nth-child(5n) { animation-delay: -0.15s; }
@keyframes wv { 50% { height: 100%; } }
.dict { display: grid; }
.dict > span { grid-area: 1 / 1; }
.js .dict-ghost { visibility: hidden; }
html:not(.js) .dict-live { display: none; }
.dict-ph { color: var(--color-text-tertiary); }
.has-text .dict-ph { display: none; }
.caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: -0.2em; background: var(--color-accent); opacity: 0; }
.lane-new.is-recording .caret { opacity: 1; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.keys-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.keys-row .kbd, .keys-list .kbd { font-size: 13px; }
/* Idle keys are dimmed by colour, not opacity, so they keep readable contrast. */
.js .keys-row .kbd { color: var(--color-text-tertiary); box-shadow: 0 .1em 0 var(--color-separator); }
.js .keys-row .kbd.is-on { color: var(--color-accent); }
.js .lane-new.is-finished .keys-row .kbd { color: var(--color-text-primary); box-shadow: 0 .18em 0 var(--color-separator), 0 .3em .6em var(--color-card-shadow); }
.plus { font-size: 12px; color: var(--color-text-tertiary); }
.keys-label { margin-left: 6px; }

.race-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; padding: 18px 2px 0; }
.race-foot p { flex: 1 1 320px; }
.race-done .race-foot [data-r="verdict"] { color: var(--color-text-primary); font-weight: 600; }
.race-foot .btn { padding: 8px 18px; min-height: 40px; font-size: 14px; }
.race-ctrl { display: flex; gap: 8px; }
.race-ctrl .btn { gap: 6px; }
.race-ctrl [data-playing="true"] .i-play, .race-ctrl [data-playing="false"] .i-pause { display: none; }

/* Doors: the four tabs under the race. */
.pick { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--color-separator); }
.pick-q { font-size: clamp(20px, 2.2vw, 26px); font-weight: 650; letter-spacing: -0.02em; line-height: 1.2; max-width: 32em; }
.doors { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
html:not(.js) .doors { display: none; }
.door {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  min-height: 184px; padding: 20px 20px 18px;
  text-align: left; font: inherit; color: var(--color-text-primary);
  background: var(--color-bg); border: 1px solid var(--color-separator);
  border-radius: var(--radius-organic); cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.door:hover { border-color: var(--color-text-tertiary); }
.door[aria-selected="true"] { border-color: var(--color-accent); box-shadow: inset 0 0 0 1px var(--color-accent); background: var(--color-accent-soft); }
/* Caret on the chosen door points UP to the race it controls. */
.door[aria-selected="true"]::after {
  content: ""; position: absolute; left: 30px; top: -12px;
  border: 11px solid transparent; border-top: 0; border-bottom-color: var(--color-accent);
}
.door-label {
  font-family: var(--font-display); font-size: 21px; font-weight: 680;
  letter-spacing: -0.025em; line-height: 1.12; padding-right: 26px;
}
.door-sub { font-size: 13px; line-height: 1.45; color: var(--color-text-secondary); }
.door-time { margin-top: auto; display: flex; align-items: baseline; gap: 10px; font: 600 16px/1 var(--font-mono); font-variant-numeric: tabular-nums; }
.door-time s { color: var(--color-text-tertiary); font-weight: 500; text-decoration-thickness: 1px; }
.door-time span { color: var(--color-accent); }
.door-time span::before { content: "\2192\00a0"; color: var(--color-text-tertiary); font-weight: 400; }
.door-mark {
  position: absolute; top: 20px; right: 18px; width: 16px; height: 16px; border-radius: 50%;
  border: 1.5px solid var(--color-separator); transition: border-color 0.2s, background-color 0.2s;
}
.door[aria-selected="true"] .door-mark { border-color: var(--color-accent); background: var(--color-accent); box-shadow: inset 0 0 0 3px var(--color-bg); }

.extras-stack { margin-top: 48px; }
html:not(.js) .extras-stack { display: none; }
.door-extras { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 32px 56px; }
.caps { list-style: none; margin-top: 10px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; }
.caps li { padding: 14px 0; border-top: 1px solid var(--color-separator); }
.caps strong { display: block; font-size: 15px; line-height: 1.4; margin-bottom: 4px; }
.caps span { display: block; font-size: 14px; line-height: 1.5; color: var(--color-text-secondary); }
.keys-hint { margin-top: 4px; }
.keys-list { list-style: none; margin-top: 12px; display: grid; gap: 8px; }
.keys-list li { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--color-text-secondary); }

/* Demo video card */
.demo-frame {
  display: block; position: relative; width: 100%; max-width: 820px; aspect-ratio: 16 / 9;
  border-radius: 24px 24px 24px 8px; overflow: hidden; cursor: pointer;
  background: var(--color-bg-secondary); border: 1px solid var(--color-separator);
  box-shadow: 0 24px 48px -28px var(--color-card-shadow);
}
.demo-thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.demo-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 84px; height: 84px; border-radius: 50%; background: rgba(0, 0, 0, 0.62);
  transition: background 0.2s;
}
.demo-play::before {
  content: ""; position: absolute; top: 50%; left: 54%; transform: translate(-50%, -50%);
  border-style: solid; border-width: 16px 0 16px 27px; border-color: transparent transparent transparent #ffffff;
}
.demo-frame:hover .demo-play, .demo-frame:focus-visible .demo-play { background: var(--color-accent); }
.demo-notice { font-size: 13px; color: var(--color-text-tertiary); margin-top: 16px; }

/* Typeset feature index: two columns, no card grid. */
.ix { list-style: none; columns: 2; column-gap: 64px; }
.ix li { break-inside: avoid; border-top: 1px solid var(--color-separator); padding: 18px 0 20px; }
.ix h3 { font-size: 20px; font-weight: 680; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 6px; }
.ix p { font-size: 15px; color: var(--color-text-secondary); line-height: 1.55; }

/* Privacy: heading left, text right. */
.trust { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: 24px 56px; align-items: start; }
.trust h3 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; }
.trust p { color: var(--color-text-secondary); font-size: 15px; }
.trust p + p { margin-top: 14px; }

/* Pricing as a timeline. */
.tl { position: relative; display: grid; grid-template-columns: 1fr 1.1fr 1.25fr; gap: 0 4px; }
.tl::before {
  content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 2px;
  background: linear-gradient(90deg, var(--color-accent) 0 33%, var(--color-separator) 33%);
}
.stop { position: relative; display: flex; flex-direction: column; padding: 40px 28px 0 0; }
.stop::before {
  content: ""; position: absolute; top: 4px; left: 0; width: 16px; height: 16px; border-radius: 50%;
  background: var(--color-bg-secondary); border: 2px solid var(--color-separator);
}
.stop.now::before { background: var(--color-accent); border-color: var(--color-accent); }
.price-label { font-size: 13px; color: var(--color-text-tertiary); }
.price-amount { font-family: var(--font-display); font-size: 34px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; margin-top: 2px; }
.price-meta { font-size: 13px; color: var(--color-text-tertiary); line-height: 1.4; }
.price-note { font-size: 12px; color: var(--color-text-tertiary); margin-top: 2px; }
.price-desc { margin-top: 12px; font-size: 15px; color: var(--color-text-secondary); line-height: 1.5; }
.price-desc a, .price-more a, .hero-meta a { color: var(--color-accent); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.price-desc a:hover, .price-more a:hover, .hero-meta a:hover { text-decoration-thickness: 2px; }
.price-features { list-style: none; margin: 14px 0 22px; flex: 1; }
.price-features li { position: relative; padding: 4px 0 4px 22px; font-size: 14px; color: var(--color-text-secondary); line-height: 1.5; }
.price-features li::before {
  content: ""; position: absolute; left: 0; top: 10px; width: 12px; height: 6px;
  border-left: 2px solid var(--color-accent); border-bottom: 2px solid var(--color-accent); transform: rotate(-45deg);
}
.stop .btn { align-self: flex-start; }
.stop.pro {
  margin-top: -10px; padding: 34px 24px 24px;
  border-radius: var(--radius); background: var(--color-bg); border: 1px solid var(--color-separator);
  box-shadow: inset 0 0 0 1px var(--color-accent); border-color: var(--color-accent);
}
.stop.pro::before { top: -9px; left: 24px; border-color: var(--color-accent); }
.stop.pro .price-label { color: var(--color-accent); font-weight: 600; }
.price-more { margin-top: 36px; font-size: 14px; color: var(--color-text-tertiary); }

/* FAQ with the heading on the left. */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px 56px; align-items: start; }
.faq-wrap .section-header { position: sticky; top: calc(var(--nav-height) + 32px); margin-bottom: 0; }

/* Home download block: inverted, Windows card inside. */
.dl-box { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 32px 48px; align-items: center; text-align: left; }
.dl-box h2 { margin-bottom: 10px; }
.dl-box > div > p { opacity: .8; font-size: 16px; }
.download-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
/* HIDDEN 2026-07-06: single-platform layout while macOS/Linux are pulled. Remove with the card comment in index.html. */
.download-grid.dl-single { grid-template-columns: minmax(0, 1fr); }
.download-card {
  display: flex; flex-direction: column; padding: 20px;
  border-radius: var(--radius-organic);
  background: color-mix(in srgb, var(--color-bg) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--color-bg) 22%, transparent);
}
.download-card h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 4px; }
.download-card .dl-meta { font-size: 13px; opacity: .75; margin-bottom: 16px; line-height: 1.5; flex: 1; }
.download-card .btn { width: 100%; }
.download-card .dl-sub { font-size: 13px; margin-top: 10px; text-align: center; }
.dl-status {
  display: inline-flex; align-items: center; gap: 7px; margin-bottom: 8px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; opacity: .75;
}
.dl-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; flex: none; }
.dl-status.status-stable::before { background: var(--color-ok); }
.dl-status.status-beta::before { background: var(--color-warn); }
.dl-after { margin-top: 28px; }
.dl-after .hero-meta + .hero-meta { margin-top: 8px; }

/* macOS waitlist form */
.waitlist-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 16px; }
.waitlist-input {
  flex: 0 1 300px; min-width: 0;
  font-family: var(--font-family); font-size: 15px;
  color: var(--color-text-primary); background: var(--color-bg);
  border: 1px solid var(--color-separator); border-radius: 980px;
  padding: 11px 18px; outline: none;
}
.waitlist-input:focus { border-color: var(--color-accent); }
.waitlist-input::placeholder { color: var(--color-text-tertiary); }
.waitlist-input:disabled { opacity: 0.6; }
.waitlist-form .btn { flex: 0 0 auto; }
.waitlist-form .btn:disabled { opacity: 0.5; cursor: default; }
.waitlist-status { flex-basis: 100%; font-size: 13px; color: var(--color-text-tertiary); }
.waitlist-status[data-state="error"] { color: var(--color-danger); }
.waitlist-status[data-state="success"] { color: var(--color-accent); }
.waitlist-status[hidden] { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .caps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .home-head, .trust, .faq-wrap, .dl-box, .door-extras { grid-template-columns: minmax(0, 1fr); }
  .faq-wrap .section-header { position: static; }
  .doors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ix { columns: 1; }
  .tl { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .tl::before {
    left: 7px; right: auto; top: 0; bottom: 0; width: 2px; height: auto;
    background: linear-gradient(180deg, var(--color-accent) 0 30%, var(--color-separator) 30%);
  }
  .stop { padding: 0 0 0 36px; }
  .stop::before { left: 0; top: 4px; }
  .stop.pro { margin: 0 0 0 36px; padding: 24px; }
  .stop.pro::before { left: -37px; top: 28px; }
  .download-cta { padding: 32px 22px; }
}
@media (max-width: 760px) {
  .race { grid-template-columns: minmax(0, 1fr); }
  .lane-old { border-right: 0; border-bottom: 1px solid var(--color-separator); }
  .lane { padding: 18px 16px 20px; }
  .clock { font-size: 28px; }
  .nav-links { display: none; }
}
@media (max-width: 640px) {
  body > section, .band { padding: 64px 22px; }
  .hero { padding: 48px 22px 40px; }
  .nav-cta { padding: 6px 12px; font-size: 12px; }
  .nav-inner { gap: 10px; }
  .nav-actions { gap: 6px; }
  .theme-seg button[data-theme-set="auto"] { padding: 0 7px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .section-alt::before, .section-alt::after { height: 32px; }
  .doors { gap: 10px; }
  .door { min-height: 0; padding: 16px 14px 14px; gap: 10px; }
  .door[aria-selected="true"]::after { display: none; }
  .door-label { font-size: 17px; padding-right: 18px; }
  .door-mark { top: 16px; right: 12px; width: 14px; height: 14px; }
  .lane-new .win-body { padding: 14px; font-size: 14px; }
  .win-ctrl { display: none; }
  .keys-label { flex-basis: 100%; margin: 4px 0 0; }
  .callout { padding: 28px 22px; }
}
/* Full nav (brand + section links + theme switch + both pills) needs ~840px.
   Tiers, so nothing wraps or sticks out: 761-860px drop the Download pill,
   <=760px drop the section links (pill fits again), <=459px drop the pill too
   so the brand name keeps its place. Every page with the pill has a big
   "Download free" right below the nav. */
@media (min-width: 761px) and (max-width: 860px), (max-width: 459px) {
  .nav-actions .nav-cta-secondary { display: none; }
}
@media (max-width: 420px) {
  .nav, .wrap { padding-left: 16px; padding-right: 16px; }
  .waitlist-form .btn { flex: 1 1 auto; white-space: normal; padding: 14px 18px; font-size: 15px; }
}
@media (max-width: 359px) {
  /* Very narrow phones: logo only. Visually hidden, still the link's accessible name. */
  .nav-brand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body, kbd, .kbd, .key, .race-stack > *, .extras-stack > *, .race-steps li, .race-steps .t, .swap > span, .hl, .ba-note { transition: none !important; }
  .wave i, .caret { animation: none !important; }
}
