/* Whipback site styles · Apple look in light and dark, the Mac system font stack (no downloads).
 * Theme: <html data-theme="system|light|dark">. An inline script in each page's <head> applies the saved
 * choice before the first paint (no flash); site.js (Theme) handles the toggles. "system" follows the Mac.
 * Light: white page (#ffffff, never cream or off-white), #f5f5f7 cards, pills and secondary buttons, #1d1d1f
 * text, blue (#007aff) buttons, #0066cc links. Dark: black page, #1d1d1f cards, #f5f5f7 text, #0a84ff.
 * Ember stays the whip's colour: the crack, the logo lash, scarcity ("N left") and the price bar.
 * Typography follows vitalsmac.com / brandmymac.com: headings 600, H1 ~64 px at -0.048em / 1.04,
 * H2 ~40 px at -0.026em, body 18–20 px / 1.5.
 * Bump the date in this file name on every change (assets are cached 7 days, no fingerprinting). */

/* Light is the base; the dark set below is written twice (forced dark, and "system" on a dark Mac):
 * keep the two dark blocks identical. */
:root {
  color-scheme: light dark;

  /* Neutrals (Apple, light): white page, #f5f5f7 cards and pills, hairlines */
  --color-paper:   #ffffff;
  --color-paper-2: #f5f5f7;
  --color-paper-3: #ebebef;
  --color-paper-4: #e1e1e6;
  --color-term:    #ffffff;
  --color-rule:    rgba(0, 0, 0, 0.08);
  --color-rule-2:  rgba(0, 0, 0, 0.14);
  --color-ui:      #b9b9be;
  --color-dim:     #6e6e73;
  --color-muted:   #48484a;
  --color-ink:     #1d1d1f;
  --color-shadow:  rgba(0, 0, 0, 0.16);
  --color-glass:   rgba(255, 255, 255, 0.8);
  --color-raised:  #ffffff;

  /* Blue: buttons, links, focus, selected states */
  --color-blue:    #007aff;
  --color-blue-hi: #0068d9;
  --color-blue-lo: rgba(0, 122, 255, 0.1);
  --color-on-blue: #ffffff;
  --color-link:    #0066cc;
  --color-focus:   #007aff;

  /* Ember: the crack, the whip mark, scarcity ("N left") */
  --color-accent:    oklch(64% 0.2 38);
  --color-accent-hi: oklch(55% 0.19 38);
  --color-accent-lo: oklch(95.5% 0.025 45);
  --color-on-accent: oklch(17% 0.03 37);
  --color-spark:     oklch(80% 0.16 78);

  /* "Included" tags */
  --color-cool:    #0066cc;
  --color-cool-lo: rgba(0, 122, 255, 0.1);

  /* Terminal text */
  --color-term-dim: #6e6e73;
  --color-term-ok:  oklch(52% 0.15 150);

  /* "Online now" dot in the hero counters */
  --color-live:    oklch(66% 0.18 150);

  /* Glows: none on white (they turn muddy); the whip gets a soft contact shadow instead */
  --glow-hero:   transparent;
  --glow-card:   transparent;
  --glow-desk:   rgba(0, 122, 255, 0.07);
  --desk-top:    #eef0f4;
  --desk-bottom: #f5f5f7;
  --pcard-border: transparent;
  --whip-halo:   rgba(0, 0, 0, 0.14);
  --whip-halo-blur: 7;
  /* A thin dark edge around every skin on white (the white USB-C cable, the ticket, the sheet) */
  --skin-edge:   rgba(0, 0, 0, 0.32);
  /* The hand in the slap figure: a neutral gray on white, near white on black */
  --slap-hand:   #a1a1a6;

  /* Skin palette, read by the canvas renderer (light: the pale skins a step deeper) */
  --skin-leather:      oklch(52% 0.09 52);
  --skin-leather-dark: oklch(34% 0.06 45);
  --skin-popper:       oklch(80% 0.05 75);
  --skin-noodle:       oklch(84% 0.15 94);
  --skin-noodle-hi:    oklch(94% 0.07 100);
  --skin-cable:        oklch(99% 0.002 250);
  --skin-cable-shade:  oklch(80% 0.006 250);
  --skin-metal:        oklch(74% 0.01 250);
  --skin-metal-dark:   oklch(45% 0.01 250);
  --skin-crust:        oklch(66% 0.13 64);
  --skin-crumb:        oklch(86% 0.08 86);
  --skin-sole:         oklch(64% 0.17 20);
  --skin-strap:        oklch(70% 0.04 250);
  --skin-chicken:      oklch(85% 0.16 96);
  --skin-comb:         oklch(58% 0.21 28);
  --skin-beak:         oklch(72% 0.16 60);
  --skin-ticket:       oklch(99% 0.003 250);
  --skin-p0:           oklch(58% 0.21 27);
  --skin-cord:         oklch(60% 0.01 250);
  --skin-sheet:        oklch(98% 0.008 95);
  --skin-ink-red:      oklch(56% 0.2 28);
  --skin-line:         oklch(66% 0.01 95);
  --skin-pasta:        oklch(83% 0.12 90);
  --skin-sauce:        oklch(52% 0.18 30);
  --skin-bone:         #EDE6D3;
  --skin-bone-edge:    #BDB29A;
  --skin-bone-dark:    #3A332C;
  --skin-bat:          #1d1d1f;
  /* Halloween tag on the Bone Whip card: orange with near-black text, 6.9:1 in both themes */
  --color-halloween:     #F28C28;
  --color-halloween-ink: #1d1d1f;

  /* Footer wordmark: stripes and the colours of the moving spot */
  --wm-stripe: rgba(0, 0, 0, 0.13);
  --wm-glow: linear-gradient(90deg, oklch(52% 0.09 52), oklch(64% 0.2 38), oklch(78% 0.16 80), oklch(58% 0.2 255), oklch(58% 0.21 27), oklch(52% 0.09 52));

  /* Type: the Mac system stack (SF Pro on Apple devices), no font downloads.
   * Scale measured on vitalsmac.com / brandmymac.com (2026-10-11): headings 600, tight tracking. */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: var(--font-sans);
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --text-xs: 0.8125rem;
  --text-sm: 0.875rem;
  --text-base: 1.0625rem;
  --text-lg: clamp(1.0625rem, 0.6vw + 0.95rem, 1.25rem);
  --text-2xl: clamp(2rem, 1.6vw + 1.3rem, 2.5rem);
  /* H1 follows the viewport height too, so headline + whip fit the first screen of a 13" laptop */
  --text-display: min(clamp(2.5rem, 4.2vw + 0.5rem, 3.75rem), 9.4vh);
  --nav-h: 61px;

  /* 4 pt spacing */
  --space-2xs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --space-section: 80px;
  --gutter: 16px;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 999px;
  --rule-hair: 1px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-micro: 120ms;
  --dur-short: 220ms;
  --dur-long: 420ms;
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] {
  color-scheme: dark;
  --color-paper:   #000000;
  --color-paper-2: #1d1d1f;
  --color-paper-3: #2c2c2e;
  --color-paper-4: #3a3a3c;
  --color-term:    #0e0e10;
  --color-rule:    rgba(255, 255, 255, 0.1);
  --color-rule-2:  rgba(255, 255, 255, 0.17);
  --color-ui:      #636366;
  --color-dim:     #86868b;
  --color-muted:   #a1a1a6;
  --color-ink:     #f5f5f7;
  --color-shadow:  #000000;
  --color-glass:   rgba(0, 0, 0, 0.72);
  --color-raised:  #2c2c2e;

  --color-blue:    #0a84ff;
  --color-blue-hi: #409cff;
  --color-blue-lo: rgba(10, 132, 255, 0.2);
  --color-on-blue: #ffffff;
  --color-link:    #2997ff;
  --color-focus:   #4ba3ff;

  --color-accent:    oklch(68% 0.2 37);
  --color-accent-hi: oklch(76% 0.17 48);
  --color-accent-lo: oklch(29% 0.08 37);
  --color-on-accent: oklch(17% 0.03 37);
  --color-spark:     oklch(94% 0.08 85);

  --color-cool:    #64b5ff;
  --color-cool-lo: rgba(10, 132, 255, 0.18);

  --color-term-dim: #8e8e93;
  --color-term-ok:  oklch(80% 0.12 150);

  --color-live:    oklch(80% 0.17 150);

  --glow-hero:   color-mix(in oklch, oklch(68% 0.2 37) 18%, transparent);
  --glow-card:   color-mix(in oklch, oklch(68% 0.2 37) 12%, transparent);
  --glow-desk:   color-mix(in oklch, oklch(68% 0.2 37) 9%, transparent);
  --desk-top:    #2c2c2e;
  --desk-bottom: #1d1d1f;
  --pcard-border: color-mix(in oklch, oklch(68% 0.2 37) 45%, rgba(255, 255, 255, 0.17));
  --whip-halo:   oklch(68% 0.2 37 / 0.55);
  --whip-halo-blur: 16;
  --skin-edge:   transparent;
  --slap-hand:   #f5f5f7;

  --skin-leather:      oklch(52% 0.09 52);
  --skin-leather-dark: oklch(34% 0.06 45);
  --skin-popper:       oklch(86% 0.04 75);
  --skin-noodle:       oklch(88% 0.13 96);
  --skin-noodle-hi:    oklch(97% 0.05 100);
  --skin-cable:        oklch(95% 0.004 250);
  --skin-cable-shade:  oklch(78% 0.006 250);
  --skin-metal:        oklch(76% 0.01 250);
  --skin-metal-dark:   oklch(45% 0.01 250);
  --skin-crust:        oklch(70% 0.12 68);
  --skin-crumb:        oklch(89% 0.07 88);
  --skin-sole:         oklch(66% 0.16 20);
  --skin-strap:        oklch(84% 0.03 250);
  --skin-chicken:      oklch(88% 0.15 98);
  --skin-comb:         oklch(60% 0.2 28);
  --skin-beak:         oklch(76% 0.15 60);
  --skin-ticket:       oklch(95% 0.006 250);
  --skin-p0:           oklch(60% 0.21 27);
  --skin-cord:         oklch(68% 0.01 250);
  --skin-sheet:        oklch(94% 0.01 95);
  --skin-ink-red:      oklch(58% 0.2 28);
  --skin-line:         oklch(70% 0.01 95);
  --skin-pasta:        oklch(87% 0.1 92);
  --skin-sauce:        oklch(54% 0.18 30);
  --skin-bone:         #EDE6D3;
  --skin-bone-edge:    #BDB29A;
  --skin-bone-dark:    #3A332C;
  --skin-bat:          #E4DCC6;

  --wm-stripe: rgba(255, 255, 255, 0.16);
  --wm-glow: linear-gradient(90deg, oklch(52% 0.09 52), oklch(76% 0.15 60), oklch(88% 0.13 96), oklch(95% 0.004 250), oklch(60% 0.21 27), oklch(88% 0.15 98), oklch(52% 0.09 52));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) {
    --color-paper:   #000000;
    --color-paper-2: #1d1d1f;
    --color-paper-3: #2c2c2e;
    --color-paper-4: #3a3a3c;
    --color-term:    #0e0e10;
    --color-rule:    rgba(255, 255, 255, 0.1);
    --color-rule-2:  rgba(255, 255, 255, 0.17);
    --color-ui:      #636366;
    --color-dim:     #86868b;
    --color-muted:   #a1a1a6;
    --color-ink:     #f5f5f7;
    --color-shadow:  #000000;
    --color-glass:   rgba(0, 0, 0, 0.72);
    --color-raised:  #2c2c2e;

    --color-blue:    #0a84ff;
    --color-blue-hi: #409cff;
    --color-blue-lo: rgba(10, 132, 255, 0.2);
    --color-on-blue: #ffffff;
    --color-link:    #2997ff;
    --color-focus:   #4ba3ff;

    --color-accent:    oklch(68% 0.2 37);
    --color-accent-hi: oklch(76% 0.17 48);
    --color-accent-lo: oklch(29% 0.08 37);
    --color-on-accent: oklch(17% 0.03 37);
    --color-spark:     oklch(94% 0.08 85);

    --color-cool:    #64b5ff;
    --color-cool-lo: rgba(10, 132, 255, 0.18);

    --color-term-dim: #8e8e93;
    --color-term-ok:  oklch(80% 0.12 150);

    --color-live:    oklch(80% 0.17 150);

    --glow-hero:   color-mix(in oklch, oklch(68% 0.2 37) 18%, transparent);
    --glow-card:   color-mix(in oklch, oklch(68% 0.2 37) 12%, transparent);
    --glow-desk:   color-mix(in oklch, oklch(68% 0.2 37) 9%, transparent);
    --desk-top:    #2c2c2e;
    --desk-bottom: #1d1d1f;
    --pcard-border: color-mix(in oklch, oklch(68% 0.2 37) 45%, rgba(255, 255, 255, 0.17));
    --whip-halo:   oklch(68% 0.2 37 / 0.55);
    --whip-halo-blur: 16;
    --skin-edge:   transparent;
    --slap-hand:   #f5f5f7;

    --skin-leather:      oklch(52% 0.09 52);
    --skin-leather-dark: oklch(34% 0.06 45);
    --skin-popper:       oklch(86% 0.04 75);
    --skin-noodle:       oklch(88% 0.13 96);
    --skin-noodle-hi:    oklch(97% 0.05 100);
    --skin-cable:        oklch(95% 0.004 250);
    --skin-cable-shade:  oklch(78% 0.006 250);
    --skin-metal:        oklch(76% 0.01 250);
    --skin-metal-dark:   oklch(45% 0.01 250);
    --skin-crust:        oklch(70% 0.12 68);
    --skin-crumb:        oklch(89% 0.07 88);
    --skin-sole:         oklch(66% 0.16 20);
    --skin-strap:        oklch(84% 0.03 250);
    --skin-chicken:      oklch(88% 0.15 98);
    --skin-comb:         oklch(60% 0.2 28);
    --skin-beak:         oklch(76% 0.15 60);
    --skin-ticket:       oklch(95% 0.006 250);
    --skin-p0:           oklch(60% 0.21 27);
    --skin-cord:         oklch(68% 0.01 250);
    --skin-sheet:        oklch(94% 0.01 95);
    --skin-ink-red:      oklch(58% 0.2 28);
    --skin-line:         oklch(70% 0.01 95);
    --skin-pasta:        oklch(87% 0.1 92);
    --skin-sauce:        oklch(54% 0.18 30);
    --skin-bone:         #EDE6D3;
    --skin-bone-edge:    #BDB29A;
    --skin-bone-dark:    #3A332C;
    --skin-bat:          #E4DCC6;

    --wm-stripe: rgba(255, 255, 255, 0.16);
    --wm-glow: linear-gradient(90deg, oklch(52% 0.09 52), oklch(76% 0.15 60), oklch(88% 0.13 96), oklch(95% 0.004 250), oklch(60% 0.21 27), oklch(88% 0.15 98), oklch(52% 0.09 52));
  }
}
/* While the theme switches, nothing animates its colours (one instant swap) */
.theme-switching, .theme-switching *, .theme-switching *::before, .theme-switching *::after { transition: none !important; }

@media (min-width: 40rem) { :root { --gutter: 24px; } }
@media (min-width: 64rem) { :root { --gutter: 32px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  background: var(--color-paper);
}
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--color-paper);
  color: var(--color-muted);
  font: 400 var(--text-base)/1.5 var(--font-sans);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
/* Korean is set with spaces between words: lines break at those spaces, never between two syllables of one
 * word (Chrome's default breaks anywhere in Hangul). Set on the root only and inherited, so an element's own
 * word-break (the license key box) still wins; a word longer than its line still wraps. */
html:lang(ko) { word-break: keep-all; overflow-wrap: break-word; }
[hidden] { display: none !important; }
img, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3 {
  margin: 0;
  color: var(--color-ink);
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 600;
  text-wrap: balance;
  overflow-wrap: break-word;
  min-width: 0;
}
h2 { font-size: var(--text-2xl); line-height: 1.1; letter-spacing: -0.026em; }
h3 { font-size: 1.1875rem; line-height: 1.3; letter-spacing: -0.014em; }
b, strong { font-weight: 600; }
p { margin: 0; }
a { color: var(--color-link); text-decoration-color: color-mix(in srgb, var(--color-link) 35%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--color-link); }
code, kbd { font-family: var(--font-mono); }
code { font-size: 0.92em; color: var(--color-ink); }
kbd {
  display: inline-block;
  padding: var(--space-2xs) var(--space-xs);
  border-radius: 6px;
  background: var(--color-paper-3);
  border: var(--rule-hair) solid var(--color-rule-2);
  color: var(--color-ink);
  font-size: 0.86em;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}
::selection { background: color-mix(in srgb, var(--color-blue) 26%, transparent); color: var(--color-ink); }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
[tabindex="-1"]:focus { outline: none; }

.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }
.sr {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip {
  position: absolute;
  left: var(--space-md);
  top: -60px;
  z-index: 50;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-pill);
  background: var(--color-ink);
  color: var(--color-paper);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: var(--space-sm); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  min-height: 44px;
  padding: 0 var(--space-lg);
  border-radius: var(--radius-pill);
  border: var(--rule-hair) solid transparent;
  font: 600 1rem/1.5 var(--font-sans);
  letter-spacing: normal;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  transition: transform var(--dur-micro) var(--ease-out), background-color var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out);
}
.btn--lg { min-height: 50px; padding: 0 var(--space-lg); font-size: 1rem; }
.btn--sm { min-height: 40px; padding: 0 var(--space-md); font-size: 0.875rem; }
.btn--primary { background: var(--color-blue); color: var(--color-on-blue); }
.btn--ghost { background: var(--color-paper-2); color: var(--color-ink); }
/* Inside a #f5f5f7 card, a secondary button sits one step up (white in light, #2c2c2e in dark) */
.pcard .btn--ghost, .keybox .btn--ghost, .extras .btn--ghost, .guide-cta .btn--ghost, .doc .summary .btn--ghost { background: var(--color-raised); border-color: var(--color-rule); }
@media (hover: hover) {
  .btn--primary:hover { background: var(--color-blue-hi); }
  .btn--ghost:hover { background: var(--color-paper-3); }
  .pcard .btn--ghost:hover, .keybox .btn--ghost:hover, .extras .btn--ghost:hover, .guide-cta .btn--ghost:hover { border-color: var(--color-rule-2); background: var(--color-raised); }
}
.btn:active { transform: translateY(0); }
.btn:disabled, .btn[aria-disabled="true"] {
  background: var(--color-paper-3);
  color: var(--color-dim);
  border-color: var(--color-rule-2);
  cursor: not-allowed;
  transform: none;
}
.btn svg { width: 16px; height: 16px; flex: none; }
/* Download buttons: the Apple logo (simple-icons "apple", currentColor) before the label */
.btn--dl { gap: 9px; }
.btn--dl .i-apple { width: 17px; height: 17px; margin-top: -3px; }
.btn--sm.btn--dl { gap: 7px; }
.btn--sm.btn--dl .i-apple { width: 14px; height: 14px; margin-top: -2px; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-2xs) var(--space-sm);
  border-radius: var(--radius-pill);
  font: 600 var(--text-xs)/1.25 var(--font-sans);
  letter-spacing: 0;
  white-space: nowrap;
}
.tag--free { background: var(--color-cool-lo); color: var(--color-cool); }
.tag--soon { background: var(--color-accent-lo); color: var(--color-accent-hi); }
.tag--drop { border: var(--rule-hair) dashed var(--color-ui); color: var(--color-muted); }
.tag--halloween { background: var(--color-halloween); color: var(--color-halloween-ink); }
.tag[hidden] { display: none; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--color-glass);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: var(--rule-hair) solid var(--color-rule);
}
.nav__in { display: flex; align-items: center; gap: var(--space-lg); height: 60px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--color-ink);
  font: 600 1.125rem/1 var(--font-display);
  letter-spacing: -0.022em;
  text-decoration: none;
  white-space: nowrap;
  flex: none;
}
.brand__mark { width: 28px; height: 28px; flex: none; }
.mark-handle { stroke: var(--color-ink); }
.mark-lash { stroke: var(--color-accent); }
.mark-spark { stroke: var(--color-accent-hi); }
.nav__links { display: none; align-items: center; gap: var(--space-2xs); }
.nav__links a {
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-pill);
  color: var(--color-dim);
  font-size: 0.84375rem;
  font-weight: 400;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--dur-micro) var(--ease-out), background-color var(--dur-micro) var(--ease-out);
}
.nav__links a:hover { color: var(--color-ink); background: var(--color-paper-3); }
.nav__end { margin-left: auto; display: flex; align-items: center; gap: var(--space-sm); }
/* Buy CTA, like a Mac app's site: an ember dot + "87 free licenses left, then $3" (only from GET /api/pricing,
 * hidden without it and on phones), then the blue Apple-logo pill "Get Whipback · Free", then the ◐ theme
 * button. Without a ladder from the API the pill reads "Get Whipback" and goes to /#pricing. */
.nav__left {
  display: none;
  align-items: center;
  gap: 7px;
  color: var(--color-dim);
  font-size: 0.78125rem;
  line-height: 1.3;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
}
.nav__left b { color: var(--color-accent-hi); font-weight: 600; }
a.nav__left:hover { color: var(--color-ink); }
@media (min-width: 48rem) { .nav__left { display: inline-flex; } }
/* No room on the row for the counter (site.js fitNav measures it: just above 64rem, in some languages) */
.nav__left.is-squeezed { display: none; }
.btn--buy {
  min-height: 36px;
  padding: 0 16px;
  gap: 6px;
  font-size: 0.8125rem;
  letter-spacing: -0.003em;
}
.btn--buy .i-apple { width: 14px; height: 14px; margin-top: -2px; }
.btn--buy[aria-busy="true"] { cursor: progress; opacity: 0.8; }
.theme-flip {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  margin-right: -6px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--color-dim);
  cursor: pointer;
  transition: color var(--dur-micro) var(--ease-out), background-color var(--dur-micro) var(--ease-out);
}
.theme-flip svg { width: 16px; height: 16px; }
.theme-flip:hover { color: var(--color-ink); background: var(--color-paper-2); }
/* Language menu (pages built by scripts/build-site.py): the globe opens a small card listing every language,
 * each link going to the same page in that language; the current one is bold with a tick. A <details>, so it
 * works with no script; site.js closes it on a click outside and on Escape. Phones keep the logo, the pill and
 * ◐ on one row, so the menu steps aside below 30rem (it needs about 56 px more than a 430 px phone has): the
 * footer's language row is there on every width. */
.langs { position: relative; flex: none; }
.langs__btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 32px;
  padding: 0 7px 0 8px;
  border-radius: var(--radius-pill);
  color: var(--color-dim);
  cursor: pointer;
  list-style: none;
  user-select: none;
  -webkit-user-select: none;
  transition: color var(--dur-micro) var(--ease-out), background-color var(--dur-micro) var(--ease-out);
}
.langs__btn::-webkit-details-marker { display: none; }
.langs__btn::marker { content: ""; }
.langs__btn svg { width: 16px; height: 16px; flex: none; }
.langs__btn .langs__chev { width: 10px; height: 10px; transition: transform var(--dur-micro) var(--ease-out); }
.langs[open] .langs__chev { transform: rotate(180deg); }
.langs__btn:hover, .langs[open] > .langs__btn { color: var(--color-ink); background: var(--color-paper-2); }
.langs__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  min-width: 13rem;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--color-raised);
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-md);
  box-shadow: 0 18px 40px -18px var(--color-shadow), 0 2px 8px -4px var(--color-shadow);
}
.langs__menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  color: var(--color-ink);
  font-size: var(--text-sm);
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
}
.langs__menu a:hover { background: var(--color-paper-2); }
.langs__menu a[aria-current] { font-weight: 600; }
.langs__menu a[aria-current]::after { content: "\2713"; color: var(--color-link); font-weight: 600; }
@media (max-width: 29.99rem) { .langs { display: none; } }
/* Phones: logo, pill and ◐ on one row down to 360 px (tighter gaps, then a smaller pill) */
@media (max-width: 26rem) {
  .nav__in { gap: var(--space-sm); }
  .nav__end { gap: var(--space-xs); }
  .btn--buy { padding: 0 14px; }
}
@media (max-width: 23.4rem) {
  .btn--buy { padding: 0 12px; font-size: 0.78125rem; }
  .brand { font-size: 1.0625rem; }
}
@media (min-width: 64rem) { .nav__links { display: flex; } }

/* ---------- Hero ----------
 * The hero is one screen tall (minus the nav). The text block sits on top and the whip
 * rests on the floor of .hero__floor, which always keeps at least clamp(…) of height, so
 * headline, buttons and whip share the first viewport down to 1280×720 and 360×740.
 * The JS also clamps the whip's floor to the visible part of the screen. */
.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--nav-h));
  min-height: min(calc(100svh - var(--nav-h)), 860px);
  padding-top: clamp(24px, 6vh, 72px);
  text-align: center;
}
.hero__glow {
  position: absolute;
  z-index: -1;
  left: 50%;
  top: -200px;
  width: min(1200px, 170%);
  height: 820px;
  margin-left: max(-600px, -85%);
  background: radial-gradient(closest-side, var(--glow-hero), transparent);
  pointer-events: none;
}
.hero__fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.hero__in { position: relative; z-index: 1; flex: none; }
.hero__floor { flex: 1 0 auto; min-height: clamp(112px, 19vh, 230px); }
.badge {
  display: inline-flex;
  margin: 0;
  align-items: center;
  gap: var(--space-xs);
  max-width: 100%;
  padding: var(--space-2xs) var(--space-sm) var(--space-2xs) var(--space-2xs);
  border-radius: var(--radius-pill);
  background: var(--color-paper);
  border: var(--rule-hair) solid var(--color-rule-2);
  color: var(--color-muted);
  font-size: var(--text-xs);
  font-weight: 500;
  line-height: 1.4;
}
/* The "New" line is plain text, not a link: its words come in one after another (site.js initBadge, motion.dev) */
.badge > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge b {
  padding: 2px var(--space-xs);
  border-radius: var(--radius-pill);
  background: var(--color-blue-lo);
  color: var(--color-link);
  font-size: var(--text-xs);
  font-weight: 600;
}
/* Halloween (until 1 Nov, site.js initHalloween): the badge becomes a link to the Bone Whip card */
a.badge { text-decoration: none; transition: border-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out); }
a.badge:hover { color: var(--color-ink); border-color: var(--color-halloween); }
.badge--halloween b { background: var(--color-halloween); color: var(--color-halloween-ink); }
/* Two short lines, so the hero headline can be a bit bigger than other H1s; it still follows the
 * viewport height, so headline, button and whip share the first screen of a 13" laptop. */
.hero__title {
  margin: clamp(14px, 2.6vh, 24px) auto 0;
  font-size: min(clamp(2.375rem, 5vw + 0.4rem, 4.5rem), 10.5vh);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.034em;
  text-wrap: balance;
}
.hero__title span { display: block; }
.hero__sub {
  max-width: 44rem;
  margin: clamp(12px, 2.2vh, 20px) auto 0;
  font-size: var(--text-lg);
  line-height: 1.45;
  color: var(--color-muted);
  text-wrap: balance;
}
/* The license block (home hero and /download/, partials/license-cta.html). The app needs a license, so the
 * big blue pill is the license ("Get your free license" / "Get Whipback · $3", from GET /api/pricing);
 * "Download for Mac" is the gray second button. Under them, the live badge "● 87 of 100 free left" with a
 * thin bar (filled = claimed), shown only with numbers from the API, and the checkout messages. */
.cta { position: relative; z-index: 3; display: grid; justify-items: center; gap: var(--space-sm); margin-top: clamp(18px, 3.4vh, 32px); }
.cta__row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--space-sm); }
.btn--xl { min-height: 58px; padding: 0 30px; font-size: 1.125rem; letter-spacing: -0.012em; }
.cta__buy {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  gap: 10px;
  padding-inline: 30px 34px;
  box-shadow: 0 16px 36px -16px color-mix(in srgb, var(--color-blue) 80%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.cta__buy .i-key { width: 21px; height: 21px; flex: none; }
.cta__buy .spin { display: none; flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.8s linear infinite; }
.cta__buy.is-busy .spin { display: block; }
.cta__buy.is-busy .i-key { display: none; }
.cta__buy[aria-busy="true"] { cursor: progress; }
/* A soft sheen crosses the pill once after the page lands, and again on hover */
.cta__buy::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
  transform: translateX(-120%);
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .cta__buy::after { animation: sheen 1.1s var(--ease-out) 1.4s both; }
  @media (hover: hover) { .cta__buy:hover::after { animation: sheen-again 0.9s var(--ease-out) both; } }
}
@keyframes sheen { to { transform: translateX(120%); } }
@keyframes sheen-again { from { transform: translateX(-120%); } to { transform: translateX(120%); } }
.cta__dl { box-shadow: inset 0 0 0 1px var(--color-rule); }
.cta__dl .i-apple { width: 18px; height: 18px; margin-top: -3px; }
.cta__left {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  margin: 2px 0 0;
  padding: 6px 14px 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--color-paper-2);
  border: var(--rule-hair) solid var(--color-rule);
  color: var(--color-muted);
  font-size: var(--text-sm);
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.cta__left b { color: var(--color-accent-hi); font-weight: 650; }
.cta__bar { position: relative; flex: none; width: 76px; height: 5px; margin-left: 4px; border-radius: var(--radius-pill); background: var(--color-paper-4); overflow: hidden; }
.cta__bar > span { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--color-accent), var(--color-accent-hi)); }
.cta__msg { max-width: 34rem; margin: 0; font-size: var(--text-sm); line-height: 1.45; color: var(--color-ink); text-wrap: balance; }
.cta__msg:empty { display: none; }
.cta__msg.is-error { padding: var(--space-sm) var(--space-md); border-radius: var(--radius-md); background: var(--color-accent-lo); border: var(--rule-hair) solid var(--color-accent); }
/* "See it whip" and the sound pill: one quiet row under the license block */
.hero__aux { position: relative; z-index: 3; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--space-2xs) var(--space-xs); margin-top: clamp(8px, 1.6vh, 14px); }
.hero__more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  color: var(--color-ink);
  font: 600 0.9375rem/1.5 var(--font-sans);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--dur-micro) var(--ease-out);
}
.hero__more svg { width: 12px; height: 12px; color: var(--color-dim); }
.hero__more:hover { background: var(--color-paper-2); }
.hero__aux .sound { font-size: 0.9375rem; }
/* The live counters (GET /api/stats): hidden and empty until the API answers */
.hero__proof {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2px 0;
  margin: var(--space-xs) auto 0;
  font-size: var(--text-sm);
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
  color: var(--color-dim);
}
.hero__proof b { color: var(--color-ink); font-weight: 600; }
.proof { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.proof:not([hidden]) ~ .proof:not([hidden])::before { content: "\00B7"; margin: 0 3px 0 9px; color: var(--color-ui); }
/* Founders wall (GET /api/wall): overlapping avatars + "Founders: @a @b @c and N more". Ships hidden and
 * empty; site.js (initFounders) fills it with textContent only, and shows it from FOUNDERS_MIN approved
 * founders. Every image has a fixed 28 px box, so nothing moves when the pictures arrive. */
.hero__founders {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px var(--space-sm);
  max-width: 48rem;
  margin: var(--space-sm) auto 0;
  font-size: var(--text-sm);
  line-height: 1.4;
  color: var(--color-dim);
}
.faces { display: inline-flex; flex: none; padding-left: 8px; }
.face {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  margin-left: -8px;
  border-radius: 50%;
  background: var(--color-paper-3);
  box-shadow: 0 0 0 2px var(--color-paper);
  overflow: hidden;
  color: var(--color-muted);
  font: 600 0.75rem/1 var(--font-sans);
  text-decoration: none;
  transition: transform var(--dur-micro) var(--ease-out);
}
.face img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.face:hover, .face:focus-visible { z-index: 1; transform: translateY(-2px); }
.founders__text { min-width: 0; text-wrap: balance; }
.founders__text b { color: var(--color-muted); font-weight: 500; }
.founders__text a { color: var(--color-ink); font-weight: 600; text-decoration: none; white-space: nowrap; }
.founders__text a:hover { text-decoration: underline; text-decoration-color: var(--color-link); }
.dot { position: relative; width: 7px; height: 7px; flex: none; border-radius: 50%; }
.dot--ember { background: var(--color-accent); box-shadow: 0 0 0 3px color-mix(in oklch, var(--color-accent) 22%, transparent); }
.dot--live { background: var(--color-live); }
.dot--live::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--color-live);
  animation: live 2s var(--ease-out) infinite;
}
@keyframes live { 0% { opacity: 0.7; transform: scale(1); } 80%, 100% { opacity: 0; transform: scale(2.8); } }
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2xs) var(--space-md);
  margin: clamp(12px, 2.2vh, 22px) auto 0;
  padding: 0;
  max-width: 48rem;
  list-style: none;
  font-size: var(--text-sm);
  line-height: 1.4;
  color: var(--color-dim);
}
.hero__meta li { display: inline-flex; align-items: center; gap: var(--space-xs); white-space: nowrap; }
.hero__meta li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--color-ui); }
/* Phones and tablets can't run a Mac app: one quiet line offers to send the link on (share sheet / AirDrop). */
.hero__phone { margin: var(--space-xs) auto 0; font-size: var(--text-sm); line-height: 1.4; color: var(--color-dim); }
.hero__send {
  min-height: 44px;
  padding: 0 2px;
  border: 0;
  background: none;
  color: var(--color-ink);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--color-ui);
  text-underline-offset: 3px;
  cursor: pointer;
}
.hero__send:hover { text-decoration-color: var(--color-link); }
.hero__sent:not(:empty) { margin-left: var(--space-xs); color: var(--color-muted); }
.hero__title.is-hit .hero__hit { animation: hit 340ms var(--ease-out); }
@keyframes hit {
  0% { transform: none; }
  25% { transform: translate(-6px, 2px) rotate(-0.8deg); }
  55% { transform: translate(3px, -1px); }
  100% { transform: none; }
}
/* Short screens (13" laptops with browser chrome, small phones): tighten everything */
@media (max-height: 820px) {
  .hero { padding-top: clamp(16px, 4vh, 40px); }
  .hero__sub { font-size: 1.125rem; }
  .hero__floor { min-height: clamp(104px, 18vh, 170px); }
}
/* Short windows: the license block and its badge come first; the meta line steps aside so the whip lies
 * under the founders row, not across it */
@media (max-height: 700px) {
  .hero__meta { display: none; }
  .hero__aux { margin-top: 4px; }
}
@media (max-width: 30rem) {
  .hero__sub { font-size: 1.0625rem; line-height: 1.45; }
  .cta { width: 100%; gap: var(--space-xs); }
  .cta__row { width: 100%; gap: var(--space-xs); }
  .cta__row .btn { flex: 1 1 100%; max-width: 24rem; }
  .cta__buy { min-height: 56px; }
  .cta__dl { min-height: 48px; font-size: 1rem; }
  .cta__left { font-size: 0.8125rem; }
  .hero__meta { gap: 0 var(--space-sm); font-size: var(--text-xs); }
  .hero__proof, .hero__founders { font-size: 0.8125rem; }
  .hero__founders { gap: 6px var(--space-xs); }
}
/* Small phones (360–384 px): the three counters still fit on one line */
@media (max-width: 24rem) {
  .hero__proof, .cta__left { font-size: 0.75rem; }
  .cta__bar { width: 56px; }
  .proof { gap: 4px; }
  .proof:not([hidden]) ~ .proof:not([hidden])::before { margin: 0 2px 0 6px; }
}
/* The smallest phones (320 px, e.g. an iPhone SE or mini with Display Zoom): the longest license labels
 * ("Ottieni la tua licenza gratuita", de, es, fr) fit on one line, and on anything narrower they wrap
 * inside the pill instead of pushing both buttons past the edge */
@media (max-width: 22rem) {
  .cta__row .btn { min-width: 0; padding-inline: 16px; font-size: 1rem; white-space: normal; text-align: center; line-height: 1.25; }
  .cta__buy { gap: 8px; }
}

/* ---------- Sound toggle (hero + demo, one shared state) ---------- */
.snd-wrap { position: relative; display: inline-flex; }
.sound {
  min-height: 44px;
  padding: 0 18px 0 14px;
  background: transparent;
  color: var(--color-ink);
  border-color: var(--color-rule-2);
}
.sound svg { width: 20px; height: 20px; }
.sound .snd-on { display: none; }
.sound[aria-pressed="true"] { background: var(--color-blue-lo); border-color: color-mix(in srgb, var(--color-blue) 55%, transparent); color: var(--color-ink); }
.sound[aria-pressed="true"] svg { color: var(--color-blue); }
.sound[aria-pressed="true"] .snd-on { display: block; }
.sound[aria-pressed="true"] .snd-off { display: none; }
/* Until the first click/tap/key, the browser keeps audio blocked: the pressed pill pulses to invite a click */
@media (prefers-reduced-motion: no-preference) {
  html:not(.sound-unlocked) .sound[aria-pressed="true"] { animation: sound-wait 1.6s ease-in-out infinite; }
}
@keyframes sound-wait {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--color-blue) 45%, transparent); }
  50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--color-blue) 0%, transparent); }
}
@media (hover: hover) {
  .sound:hover { background: var(--color-paper-2); border-color: var(--color-ui); }
}
.sound--lg { min-height: 50px; font-size: 1rem; }
@media (max-width: 30rem) { .sound--lg { min-height: 48px; font-size: 1rem; } }
.toast {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: max(20px, env(safe-area-inset-bottom));
  max-width: calc(100vw - 32px);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-pill);
  background: var(--color-ink);
  color: var(--color-paper);
  font: 600 var(--text-sm)/1.35 var(--font-sans);
  text-align: center;
  transform: translateX(-50%);
  box-shadow: 0 16px 36px -16px var(--color-shadow);
  pointer-events: none;
}
.toast:empty { display: none; }

/* ---------- Sections ---------- */
.sec { padding-block: var(--space-3xl); }
@media (min-width: 48rem) { .sec { padding-block: var(--space-section); } }
.lede { margin-top: var(--space-sm); max-width: 40rem; font-size: var(--text-base); line-height: 1.6; color: var(--color-muted); text-wrap: pretty; }

/* ---------- Demo ---------- */
.demo { padding-top: var(--space-xl); }
.demo__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
}
.seg {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs);
  padding: var(--space-2xs);
  border-radius: 16px;
  background: var(--color-paper-2);
  border: var(--rule-hair) solid var(--color-rule-2);
}
.seg button {
  min-height: 44px;
  padding: 0 var(--space-md);
  border: var(--rule-hair) solid transparent;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--color-dim);
  font: 500 var(--text-sm)/1 var(--font-sans);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out);
}
.seg button:hover { color: var(--color-ink); background: var(--color-paper-3); }
.seg button[aria-pressed="true"] { background: var(--color-raised); color: var(--color-ink); border-color: var(--color-rule); box-shadow: 0 1px 3px var(--color-shadow); }

.desk {
  position: relative;
  margin-top: var(--space-md);
  border-radius: var(--radius-lg);
  border: var(--rule-hair) solid var(--color-rule-2);
  background:
    radial-gradient(70% 60% at 85% 0%, var(--glow-desk), transparent),
    linear-gradient(180deg, var(--desk-top), var(--desk-bottom));
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.desk__menubar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  height: 30px;
  padding: 0 var(--space-sm);
  background: color-mix(in oklch, var(--color-paper) 72%, transparent);
  border-bottom: var(--rule-hair) solid var(--color-rule);
  font: 550 12px/1 var(--font-sans);
  color: var(--color-dim);
}
.desk__tray { display: inline-flex; align-items: center; gap: var(--space-xs); color: var(--color-muted); font-variant-numeric: tabular-nums; }
.tray-icon { position: relative; width: 16px; height: 16px; }
.tray-icon svg { width: 16px; height: 16px; }
.tray-icon::after {
  content: "";
  position: absolute;
  right: -2px; top: -1px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  opacity: 0;
}
.desk.is-waiting .tray-icon::after { opacity: 1; }
.desk__wins { display: grid; gap: var(--space-md); padding: var(--space-md) var(--space-md) var(--space-lg); }
@media (min-width: 48rem) {
  .desk__wins {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: var(--space-lg) var(--space-lg);
    padding: var(--space-xl) var(--space-xl) var(--space-xl);
  }
  .win--a { grid-row: span 2; }
}

.win {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: var(--radius-md);
  background: var(--color-term);
  border: var(--rule-hair) solid var(--color-rule-2);
  box-shadow: 0 22px 40px -26px var(--color-shadow);
  cursor: crosshair;
  outline-offset: 4px;
  transition: border-color var(--dur-micro) var(--ease-out);
}
.win:hover { border-color: var(--color-ui); }
.win::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  box-shadow: inset 0 0 0 2px var(--color-accent);
  opacity: 0;
  pointer-events: none;
}
.win.is-hit::after { animation: hitring 700ms var(--ease-out); }
@keyframes hitring { 0% { opacity: 1; } 100% { opacity: 0; } }
.win.is-dodge { animation: dodge 420ms var(--ease-out); }
@keyframes dodge {
  0% { transform: none; }
  30% { transform: translate(14px, -6px) rotate(1.2deg); }
  65% { transform: translate(-4px, 1px); }
  100% { transform: none; }
}
.desk.is-shake { animation: shake 460ms var(--ease-out); }
@keyframes shake {
  0%, 100% { transform: none; }
  15% { transform: translate(-7px, 3px); }
  35% { transform: translate(6px, -3px); }
  55% { transform: translate(-4px, 2px); }
  75% { transform: translate(2px, -1px); }
}
.win__bar {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  height: 32px;
  padding: 0 var(--space-sm) 0 var(--space-sm);
  border-bottom: var(--rule-hair) solid var(--color-rule);
  font: 500 12px/1 var(--font-mono);
  color: var(--color-dim);
}
.win__title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip {
  flex: none;
  padding: var(--space-2xs) var(--space-xs);
  border-radius: var(--radius-pill);
  font: 600 11px/1 var(--font-sans);
  white-space: nowrap;
  background: var(--color-paper-3);
  color: var(--color-dim);
}
.win[data-state="finished"] .chip { background: var(--color-accent-lo); color: var(--color-accent-hi); }
.win[data-state="permission"] .chip { background: var(--color-accent); color: var(--color-on-accent); }
.win__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: var(--space-xs);
  height: 150px;
  padding: var(--space-sm) var(--space-md) var(--space-md);
  font: 400 12.5px/1.55 var(--font-mono);
  color: var(--color-muted);
  overflow: hidden;
}
.win--a .win__body { height: 196px; }
.win--chat .win__body { height: 116px; }
@media (min-width: 48rem) {
  .win--a .win__body { height: 312px; }
  .win--b .win__body { height: 150px; }
  .win--chat .win__body { height: auto; min-height: 0; }
}
.win__body p { overflow-wrap: anywhere; }
.term__log, .term__live { display: grid; gap: var(--space-2xs); }
.t-p { color: var(--color-accent-hi); }
.t-ok { color: var(--color-term-ok); }
.t-dim { color: var(--color-term-dim); }
.t-hook { color: var(--color-accent-hi); }
.t-caret {
  display: inline-block;
  width: 0.6em;
  height: 1.05em;
  margin-left: var(--space-2xs);
  vertical-align: -0.18em;
  background: var(--color-muted);
}
.t-ask {
  margin-top: var(--space-2xs);
  padding: var(--space-xs) var(--space-sm);
  border: var(--rule-hair) solid var(--color-accent);
  border-radius: var(--radius-sm);
  color: var(--color-ink);
}
.t-ask .t-dim { display: block; margin-top: var(--space-2xs); }
.t-spin { display: inline-block; width: 1.2em; color: var(--color-accent-hi); }

.chat { gap: var(--space-xs); font-family: var(--font-sans); font-size: 13px; }
.msg {
  align-self: flex-start;
  max-width: 85%;
  padding: var(--space-xs) var(--space-sm);
  border-radius: 14px 14px 14px 4px;
  background: var(--color-paper-3);
  color: var(--color-muted);
}
.msg--me { align-self: flex-end; border-radius: 14px 14px 4px 14px; background: var(--color-blue); color: var(--color-on-blue); }

.desk__fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 5; pointer-events: none; }
.desk__banner {
  position: absolute;
  z-index: 6;
  top: 42px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  max-width: calc(100% - 24px);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  background: color-mix(in oklch, var(--color-paper) 88%, transparent);
  border: var(--rule-hair) solid var(--color-accent);
  box-shadow: 0 16px 34px -18px var(--color-shadow);
  color: var(--color-ink);
  font: 600 13px/1.35 var(--font-sans);
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity var(--dur-short) var(--ease-out);
  pointer-events: none;
}
.desk__banner.is-on { opacity: 1; }
.desk__banner svg { width: 18px; height: 18px; flex: none; }
.desk__say {
  position: absolute;
  z-index: 7;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-pill);
  background: var(--color-ink);
  color: var(--color-paper);
  font: 600 12.5px/1.2 var(--font-sans);
  white-space: nowrap;
  transform: translate(-50%, -210%);
  pointer-events: none;
  animation: say 2400ms var(--ease-out) forwards;
}
.desk__say--warn { background: var(--color-accent); color: var(--color-on-accent); }
@keyframes say {
  0% { opacity: 0; }
  8% { opacity: 1; }
  80% { opacity: 1; }
  100% { opacity: 0; }
}

.demo__foot {
  display: grid;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  align-items: center;
}
@media (min-width: 56rem) { .demo__foot { grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-xl); } }
.out {
  min-height: 3.2em;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  background: var(--color-paper-2);
  border: var(--rule-hair) solid var(--color-rule);
  color: var(--color-ink);
  font-size: var(--text-sm);
  line-height: 1.5;
}
.nag { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm) var(--space-md); }
.nag__meter { width: 96px; height: 4px; border-radius: 2px; background: var(--color-paper-4); overflow: hidden; }
.nag__meter span {
  display: block;
  height: 100%;
  background: var(--color-accent);
  transform-origin: left center;
  transform: scaleX(var(--p, 0));
}
.nag__text { font-size: var(--text-sm); color: var(--color-muted); font-variant-numeric: tabular-nums; }
.nag__text b { color: var(--color-ink); }
.demo__cap { margin-top: var(--space-md); font-size: var(--text-sm); color: var(--color-dim); }

/* ---------- It whips you back ---------- */
.ladder-wrap { position: relative; margin-top: var(--space-2xl); }
.ladder {
  position: relative;
  display: grid;
  gap: var(--space-lg);
  margin: 0;
  padding: 0;
  list-style: none;
}
.ladder li { display: grid; gap: var(--space-xs); align-content: start; position: relative; z-index: 2; padding-left: var(--space-3xl); }
.ladder__mark { position: absolute; left: 0; top: 0; width: 48px; height: 48px; display: grid; place-items: center; }
.crk { fill: var(--color-accent); }
.crk--1 { width: 26px; height: 26px; }
.crk--2 { width: 40px; height: 40px; }
.crk--3 { width: 22px; height: 22px; }
.crk-trio { display: flex; gap: var(--space-2xs); }
.crk-none { width: 30px; height: 2px; background: var(--color-ui); border-radius: 1px; }
.ladder__line { display: none; }
.ladder__t { font: 600 var(--text-sm)/1 var(--font-mono); color: var(--color-accent-hi); }
.ladder strong { color: var(--color-ink); font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.014em; }
.ladder li > span:last-child { font-size: var(--text-sm); color: var(--color-dim); }
@media (min-width: 52rem) {
  .ladder { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--space-xl); }
  .ladder::before {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 24px;
    border-top: var(--rule-hair) dashed var(--color-rule-2);
  }
  .ladder__line {
    display: block;
    position: absolute;
    left: 0; right: 0; top: 23px;
    height: 2px;
    border-radius: 1px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-hi) 70%, transparent);
    transform-origin: left center;
    pointer-events: none;
    z-index: 1;
  }
  .ladder li { padding-left: 0; padding-top: var(--space-3xl); }
  .ladder__mark { background: var(--color-paper); width: 56px; }
}
.quiet {
  display: grid;
  gap: var(--space-sm);
  margin-top: var(--space-2xl);
  padding-top: var(--space-lg);
  border-top: var(--rule-hair) solid var(--color-rule);
}
@media (min-width: 52rem) { .quiet { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: var(--space-lg); } }
.quiet h3 { font-size: 1rem; }
.quiet ul { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin: 0; padding: 0; list-style: none; }
.quiet li {
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-pill);
  background: var(--color-paper-2);
  border: var(--rule-hair) solid var(--color-rule);
  font-size: var(--text-sm);
  color: var(--color-muted);
}

/* ---------- Slap to whip ---------- */
.split { display: grid; gap: var(--space-2xl); align-items: center; }
@media (min-width: 56rem) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-3xl); } .split .slapfig { order: -1; } }
/* The slap figure: a MacBook deck from above, an open hand coming down flat on the trackpad,
 * motion lines and a small crack where it lands. It plays once when it scrolls in (the reveal
 * system removes .rv, which starts the CSS animations); its resting frame is the readable one,
 * so no script, no Motion or reduced motion all show the hand on the pad. */
.slapfig { margin: 0; }
.slap { width: 100%; height: auto; overflow: visible; }
.slap__deck { fill: var(--color-paper-2); stroke: var(--color-rule-2); stroke-width: 1.5; }
.slap__kb rect { fill: var(--color-paper-3); stroke: var(--color-rule); stroke-width: 1; }
.slap__kb .is-mod { fill: var(--color-paper-4); }
.slap__pad { fill: var(--color-paper-3); stroke: var(--color-ui); stroke-width: 1.5; }
.slap__ring { fill: none; stroke: var(--color-accent); }
.slap__shadow { fill: var(--color-shadow); opacity: 0.6; }
.slap__hand { fill: var(--slap-hand); }
.slap__hand line { stroke: var(--slap-hand); stroke-linecap: round; }
.slap__whoosh { fill: none; stroke: var(--color-dim); stroke-width: 3; stroke-linecap: round; }
.slap__crk { fill: var(--color-accent); }
.slapfig__cap { margin-top: var(--space-sm); color: var(--color-dim); font-size: var(--text-sm); text-align: center; }
.slapfig__cap kbd { font-size: var(--text-xs); }
.slap__drop, .slap__shadow, .slap__rings { transform-box: view-box; transform-origin: 262px 214px; }
.slap__crk { transform-box: fill-box; transform-origin: center; }
.slapfig:not(.rv) .slap__drop { animation: slap-drop 1.3s both; }
.slapfig:not(.rv) .slap__shadow { animation: slap-shadow 1.3s both; }
.slapfig:not(.rv) .slap__whoosh { animation: slap-whoosh 1.3s both; }
.slapfig:not(.rv) .slap__rings { animation: slap-rings 1.3s both; }
.slapfig:not(.rv) .slap__crk { animation: slap-crk 1.3s both; }
@keyframes slap-drop {
  0% { opacity: 0; transform: translate(16px, -22px) scale(1.32) rotate(6deg); animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
  40% { opacity: 1; transform: translate(12px, -16px) scale(1.26) rotate(5deg); animation-timing-function: cubic-bezier(0.55, 0, 1, 0.45); }
  70% { transform: translate(0, 0) scale(0.97) rotate(0deg); animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
  100% { opacity: 1; transform: none; }
}
@keyframes slap-shadow {
  0% { opacity: 0; transform: translate(40px, 30px) scale(1.3); animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
  40% { opacity: 0.3; transform: translate(32px, 24px) scale(1.24); animation-timing-function: cubic-bezier(0.55, 0, 1, 0.45); }
  70%, 100% { opacity: 0.6; transform: none; }
}
@keyframes slap-whoosh { 0% { opacity: 0; transform: translateY(-14px); } 45%, 100% { opacity: 1; transform: none; } }
@keyframes slap-rings { 0%, 68% { opacity: 0; transform: scale(0.7); } 100% { opacity: 1; transform: none; } }
@keyframes slap-crk {
  0%, 68% { opacity: 0; transform: scale(0.2) rotate(-30deg); }
  80% { opacity: 1; transform: scale(1.3) rotate(8deg); }
  100% { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .slapfig * { animation: none !important; } }
.slap__keys { display: flex; gap: var(--space-xs); margin-top: var(--space-md); }
.slap__keys kbd { min-width: 40px; text-align: center; padding: var(--space-xs) var(--space-sm); font-size: 1rem; }
.facts { margin: var(--space-lg) 0 0; padding: 0; list-style: none; display: grid; gap: var(--space-sm); }
.facts li { position: relative; padding-left: var(--space-lg); color: var(--color-muted); }
.facts li::before {
  content: "";
  position: absolute;
  left: 2px; top: 0.6em;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--color-accent);
  transform: rotate(45deg);
}
.rules {
  display: grid;
  margin: var(--space-xl) 0 0;
  border-top: var(--rule-hair) solid var(--color-rule);
}
.rules div {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-2xs);
  padding: var(--space-sm) 0;
  border-bottom: var(--rule-hair) solid var(--color-rule);
}
@media (min-width: 30rem) { .rules div { grid-template-columns: 11.5rem minmax(0, 1fr); gap: var(--space-md); } }
.rules dt { color: var(--color-dim); font-size: var(--text-sm); }
.rules dd { margin: 0; color: var(--color-ink); font-size: var(--text-sm); font-weight: 500; }

/* ---------- Safety ---------- */
.safety { display: grid; gap: var(--space-xl); }
@media (min-width: 56rem) {
  .safety { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3xl); }
  .safety__head { position: sticky; top: 100px; align-self: start; }
}
.never { margin: 0; padding: 0; list-style: none; border-top: var(--rule-hair) solid var(--color-rule); }
.never li { display: grid; gap: var(--space-2xs); padding: var(--space-md) 0; border-bottom: var(--rule-hair) solid var(--color-rule); }
.never strong { color: var(--color-ink); font-size: 1.1875rem; font-weight: 600; line-height: 1.35; letter-spacing: -0.014em; }
.never span { font-size: var(--text-sm); color: var(--color-dim); }

/* ---------- Skins ---------- */
.skins__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-md); }
.skins__sub {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin: var(--space-2xl) 0 var(--space-md);
  font-size: 1rem;
  color: var(--color-muted);
}
.skin-grid { display: grid; gap: var(--space-sm); margin: 0; padding: 0; list-style: none; grid-template-columns: minmax(0, 1fr); }
.skin-grid--soon { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 44rem) {
  .skin-grid--now { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .skin-grid--soon { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.skin {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-xs);
  width: 100%;
  height: 100%;
  padding: 0 0 var(--space-md);
  border-radius: var(--radius-lg);
  background: var(--color-paper-2);
  border: var(--rule-hair) solid var(--color-rule);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: background-color var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out), transform var(--dur-micro) var(--ease-out);
}
.skin:hover { background: var(--color-paper-3); border-color: var(--color-rule-2); }
.skin:active { transform: translateY(1px); }
.skin[aria-pressed="true"] { border-color: var(--color-blue); box-shadow: 0 0 0 1px var(--color-blue); }
.skin canvas { width: 100%; height: 168px; }
.skin-grid--soon .skin canvas { height: 124px; }
.skin__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs) var(--space-xs); padding: 0 var(--space-md); }
.skin__name { color: var(--color-ink); font-weight: 600; letter-spacing: -0.012em; }
.skin__note { padding: 0 var(--space-md); font-size: var(--text-sm); color: var(--color-dim); }

/* ---------- Works with ---------- */
.works {
  display: grid;
  gap: var(--space-lg);
  padding: var(--space-xl) var(--space-lg);
  border-radius: var(--radius-xl);
  background: var(--color-paper-2);
  border: var(--rule-hair) solid var(--color-rule);
}
@media (min-width: 56rem) { .works { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); padding: var(--space-2xl); gap: var(--space-2xl); } }
.works p { margin-top: var(--space-sm); color: var(--color-dim); font-size: var(--text-sm); }
.works dl { margin: 0; border-top: var(--rule-hair) solid var(--color-rule); }
.works dl div { display: grid; gap: var(--space-2xs); padding: var(--space-md) 0; border-bottom: var(--rule-hair) solid var(--color-rule); }
@media (min-width: 30rem) { .works dl div { grid-template-columns: 9rem minmax(0, 1fr); gap: var(--space-md); } }
.works dt { color: var(--color-ink); font-weight: 600; }
.works dd { margin: 0; color: var(--color-muted); }

/* ---------- Pricing: one card, the price ladder bar ----------
 * Headline, monospace subline, a dark rounded track with an ember fill up to the
 * current position, ticks at each batch boundary, price labels under the ticks.
 * Static (no JS / API down): the default ladder, no counts, no fill. */
#pricing {
  overflow-x: clip;
  /* A jump to #pricing (nav pill, Pricing links) lands the heading 32 px under the scroll padding,
   * not a whole section padding lower, so more of the card shows on a laptop screen */
  scroll-margin-top: calc(var(--space-xl) - var(--space-3xl));
}
@media (min-width: 48rem) { #pricing { scroll-margin-top: calc(var(--space-xl) - var(--space-section)); } }
/* Centred: heading and lede centred over a centred card, equal gaps on both sides */
#pricing .wrap > h2, #pricing .wrap > .lede { margin-inline: auto; text-align: center; }
#pricing .wrap > .lede { max-width: 42rem; }
.pcard {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-xl);
  max-width: 62rem;
  margin: var(--space-2xl) auto 0;
  padding: var(--space-xl) var(--space-lg);
  border-radius: var(--radius-xl);
  border: var(--rule-hair) solid var(--pcard-border);
  background:
    radial-gradient(110% 80% at 18% 0%, var(--glow-card), transparent 70%),
    var(--color-paper-2);
  box-shadow:
    0 0 0 4px var(--glow-card),
    0 0 70px -18px var(--glow-card);
}
.pcard::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -70px -50px;
  background: radial-gradient(closest-side, var(--glow-card), transparent);
  pointer-events: none;
}
@media (min-width: 40rem) { .pcard { padding: var(--space-2xl) var(--space-xl); } }
@media (min-width: 60rem) {
  .pcard { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--space-2xl); padding: var(--space-2xl); }
  .pcard__side { padding-left: var(--space-2xl); border-left: var(--rule-hair) solid var(--color-rule); }
}
.pcard__main { display: flex; flex-direction: column; gap: var(--space-md); min-width: 0; }
.pcard__head {
  font-size: clamp(1.625rem, 1.5vw + 1.2rem, 2.375rem);
  line-height: 1.12;
  letter-spacing: -0.032em;
  font-variant-numeric: tabular-nums;
}
.pcard__head b, .pcard__sub b { color: var(--color-accent-hi); font-weight: 650; white-space: nowrap; }
.pcard__fire { font-weight: 400; }
.pcard__sub {
  margin-top: calc(var(--space-xs) * -1);
  font: 500 var(--text-sm)/1.5 var(--font-mono);
  color: var(--color-dim);
  letter-spacing: 0;
}
.pcard__sub:empty { display: none; }
.pcard__sub b { font-weight: 700; }

/* The bar */
.pb { position: relative; margin-top: var(--space-md); padding-top: 6px; }
.pb__track {
  position: relative;
  height: 14px;
  border-radius: var(--radius-pill);
  background: var(--color-term);
  box-shadow: inset 0 0 0 1px var(--color-rule-2), inset 0 2px 4px var(--color-shadow);
}
.pb__fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, oklch(45% 0.13 33), var(--color-accent) 62%, var(--color-accent-hi) 92%, var(--color-spark));
  box-shadow: 0 0 16px -3px color-mix(in oklch, var(--color-accent) 60%, transparent);
}
.pb__fill:not(.is-on) { display: none; }
.pb__fill.is-on { min-width: 14px; }
.pb__tick {
  position: absolute;
  z-index: 1;
  top: -5px; bottom: -5px;
  width: 2px;
  margin-left: -1px;
  border-radius: 1px;
  background: var(--color-rule-2);
  box-shadow: 0 0 0 1px var(--color-paper-2);
}
/* Static ladder (100 / 100 / 100 / open end): the JS sets the real positions inline */
.pb__tick:nth-of-type(2) { left: 29.333%; }
.pb__tick:nth-of-type(3) { left: 58.667%; }
.pb__tick:nth-of-type(4) { left: 88%; }
.pb__steps {
  position: relative;
  height: 2.25rem;
  margin: var(--space-sm) 0 0;
  padding: 0;
  list-style: none;
  font-variant-numeric: tabular-nums;
}
.pb__steps li {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-dim);
}
.pb__steps li:first-child { transform: none; }
.pb__steps li:nth-child(2) { left: 29.333%; }
.pb__steps li:nth-child(3) { left: 58.667%; }
.pb__steps li:nth-child(4) { left: 88%; }
.pb__steps .is-past { color: var(--color-ui); }
.pb__steps .is-past .pb__price { text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: color-mix(in oklch, var(--color-accent) 60%, var(--color-ui)); }
.pb__steps .is-now { color: var(--color-accent-hi); font-weight: 700; }
.pb__steps .is-next { color: var(--color-muted); }
/* A label that would touch its neighbour on a narrow bar: hidden on screen, kept for screen readers */
.pb__steps li.is-crowded .pb__price { opacity: 0; }
/* A sale scheduled before the current step: one line under the bar, not a segment */
.pcard__soon { margin: calc(var(--space-xs) * -1) 0 0; font: 500 var(--text-sm)/1.5 var(--font-mono); color: var(--color-muted); }
.pcard__soon:empty { display: none; }

.pcard__cta { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-xs); }
.pcard__cta .btn { flex: 1 1 15rem; }
.pcard__note { font-size: var(--text-sm); color: var(--color-dim); }
.pcard__side { display: flex; flex-direction: column; gap: var(--space-md); min-width: 0; }
.pcard__label { margin: 0; color: var(--color-ink); font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; }
.buy { white-space: normal; text-align: center; line-height: 1.25; padding-block: var(--space-sm); }
.buy[aria-disabled="true"] { cursor: progress; opacity: 0.85; transform: none; }
.buy:disabled { cursor: default; opacity: 1; }
.buy .spin { display: none; }
.buy.is-busy .spin {
  display: block;
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.buy-msg { font-size: var(--text-sm); color: var(--color-ink); }
.buy-msg:empty { display: none; }
.buy-msg.is-error { padding: var(--space-sm) var(--space-md); border-radius: var(--radius-md); background: var(--color-accent-lo); border: var(--rule-hair) solid var(--color-accent); }
/* ---------- Free license by email (site.js initPricing: POST /api/claim, no Stripe) ----------
 * Opens in place of the license pill (hero, /download/) or the pricing card's button while the step is free:
 * the email and "Get my free license" on one line, stacked on phones; the note and the answer under them. */
.claim { position: relative; display: grid; gap: var(--space-xs); width: 100%; max-width: 34rem; margin: 0; text-align: left; }
.claim__label { color: var(--color-dim); font-size: var(--text-sm); font-weight: 500; }
.claim__row { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.claim__input {
  flex: 1 1 15rem;
  min-width: 0;
  min-height: 50px;
  padding: 0 20px;
  border-radius: var(--radius-pill);
  background: var(--color-term);
  border: var(--rule-hair) solid var(--color-rule-2);
  color: var(--color-ink);
  font: 500 1rem/1.4 var(--font-sans);
}
.claim__input--xl { min-height: 58px; font-size: 1.0625rem; padding: 0 22px; }
.claim__input::placeholder { color: var(--color-dim); opacity: 1; }
@media (hover: hover) { .claim__input:hover { border-color: var(--color-ui); } }
.claim__input[aria-invalid="true"] { border-color: var(--color-accent); }
.claim__input:read-only { color: var(--color-dim); }
.claim__go { flex: 0 1 auto; white-space: normal; text-align: center; line-height: 1.25; }
.claim__go .spin { display: none; flex: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.8s linear infinite; }
.claim__go.is-busy .spin { display: block; }
.claim__go.is-busy { cursor: progress; }
.claim__go:disabled.is-busy { background: var(--color-blue); color: var(--color-on-blue); border-color: transparent; opacity: 0.85; }
.claim__note { margin: 0; font-size: var(--text-sm); line-height: 1.45; color: var(--color-dim); }
.claim__msg { margin: 0; font-size: var(--text-sm); line-height: 1.45; color: var(--color-ink); }
.claim__msg:empty { display: none; }
.claim__msg.is-error { padding: var(--space-sm) var(--space-md); border-radius: var(--radius-md); background: var(--color-accent-lo); border: var(--rule-hair) solid var(--color-accent); }
.claim__msg a { color: var(--color-link); }
/* The honeypot: off screen, never shown, never focused (tabindex -1, aria-hidden) */
.claim__hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
/* In the hero the license block is centred: so are the note and the answer */
.claim--hero .claim__note, .claim--hero .claim__msg { text-align: center; }
.claim--hero .claim__msg.is-error { text-align: left; }
@media (max-width: 30rem) {
  .claim__row > * { flex: 1 1 100%; }
  .claim--hero { max-width: 24rem; }
}
.price__fine { font-size: var(--text-xs); color: var(--color-dim); }
.price__fine a { color: var(--color-muted); }
.ticks { display: grid; gap: var(--space-xs); margin: 0; padding: 0; list-style: none; }
.ticks li { position: relative; padding-left: var(--space-lg); color: var(--color-muted); }
.ticks li::before {
  content: "";
  position: absolute;
  left: 3px; top: 0.42em;
  width: 11px; height: 6px;
  border-left: 2px solid var(--color-blue);
  border-bottom: 2px solid var(--color-blue);
  transform: rotate(-45deg);
}

/* ---------- FAQ ---------- */
.faq { max-width: 50rem; margin-top: var(--space-xl); border-top: var(--rule-hair) solid var(--color-rule); }
.faq details { border-bottom: var(--rule-hair) solid var(--color-rule); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-2xs);
  color: var(--color-ink);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.012em;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 14px; height: 14px;
  background:
    linear-gradient(var(--color-dim), var(--color-dim)) center / 14px 2px no-repeat,
    linear-gradient(var(--color-dim), var(--color-dim)) center / 2px 14px no-repeat;
  transition: transform var(--dur-short) var(--ease-in-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--color-link); }
.faq .a { display: grid; gap: var(--space-sm); padding: 0 var(--space-2xs) var(--space-lg); max-width: 44rem; color: var(--color-muted); }

/* ---------- Footer ----------
 * Same on every page: an "Ask AI" row, the brand and three link columns, a hairline and the
 * bottom line, then a big striped "Whipback" wordmark that the page edge cuts off. Its glow
 * (skin colours) sweeps across on a 9 s loop and follows a fine pointer; static with reduced
 * motion. Everything is clipped to the footer, so it can never scroll the page sideways. */
.foot {
  margin-top: var(--space-2xl);
  padding-top: var(--space-lg);
  border-top: var(--rule-hair) solid var(--color-rule);
  font-size: var(--text-sm);
  overflow: clip;
}
.foot__ask { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2xs) var(--space-lg); }
.foot__kicker { color: var(--color-dim); font-size: 0.6875rem; font-weight: 600; line-height: 24px; letter-spacing: 0.12em; text-transform: uppercase; }
.foot__ai { display: flex; flex-wrap: wrap; align-items: center; margin: 0; padding: 0; list-style: none; font-size: var(--text-xs); }
.foot__ai li { display: inline-flex; align-items: center; }
.foot__ai li + li::before { content: "·"; padding-inline: var(--space-xs); color: var(--color-ui); }
/* Phones: the row wraps, so plain gaps instead of dots (a wrapped line never starts with "·") */
@media (max-width: 39.99rem) {
  .foot__ai { gap: 0 var(--space-sm); }
  .foot__ai li + li::before { content: none; }
}
.foot__ai a { display: inline-flex; align-items: center; gap: 3px; min-height: 24px; color: var(--color-dim); text-decoration: none; white-space: nowrap; }
.foot__ai a:hover { color: var(--color-ink); }
.foot__apps { margin-top: var(--space-2xs); }
.foot__badges { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs) var(--space-sm); margin-top: var(--space-sm); }
.foot__badges a { display: inline-flex; border-radius: 10px; opacity: 0.9; transition: opacity 0.15s; }
.foot__badges a:hover { opacity: 1; }
.foot__badges img { display: block; height: 40px; width: auto; }
.foot__ext { width: 9px; height: 9px; opacity: 0.75; }

.foot__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xl) var(--space-lg); margin-top: var(--space-2xl); }
.foot__brand { grid-column: 1 / -1; min-width: 0; }
@media (max-width: 21.99rem) { .foot__grid { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 40rem) { .foot__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2xl) var(--space-xl); } }
@media (min-width: 60rem) {
  .foot__grid { grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.9fr) minmax(0, 1.25fr) minmax(0, 0.9fr); gap: var(--space-xl) var(--space-2xl); }
  .foot__brand { grid-column: auto; }
}
.foot__logo { display: inline-flex; align-items: center; gap: var(--space-sm); color: var(--color-ink); font: 600 1.0625rem/1 var(--font-display); letter-spacing: -0.02em; text-decoration: none; }
.foot__logo img { width: 30px; height: 30px; border-radius: 7px; box-shadow: 0 0 0 1px var(--color-rule-2); }
.foot__brand p { max-width: 30ch; margin-top: var(--space-sm); color: var(--color-dim); line-height: 1.55; text-wrap: pretty; }
.foot__h { font-size: var(--text-sm); line-height: 1.4; letter-spacing: -0.006em; }
.foot__col ul { display: grid; gap: var(--space-2xs); margin: var(--space-sm) 0 0; padding: 0; list-style: none; }
.foot__col a { display: inline-block; padding-block: 3px; color: var(--color-dim); line-height: 1.4; text-decoration: none; text-wrap: pretty; }
.foot__col a:hover, .foot__logo:hover span { color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-ui); }

.foot__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-xs) var(--space-lg);
  margin-top: var(--space-2xl);
  padding-top: var(--space-lg);
  border-top: var(--rule-hair) solid var(--color-rule);
  color: var(--color-dim);
}
.foot__bottom a { color: var(--color-ink); text-decoration-color: var(--color-ui); }
.foot__bottom a:hover { text-decoration-color: var(--color-ink); }
.foot__legal { margin-top: var(--space-sm); font-size: var(--text-xs); color: var(--color-dim); max-width: 60rem; }

/* Appearance: Match your Mac / Light / Dark (site.js Theme). Ships hidden; the script shows it. */
.theme-pick {
  display: inline-flex;
  gap: 2px;
  margin-top: var(--space-md);
  padding: 3px;
  border-radius: var(--radius-pill);
  background: var(--color-paper-2);
  border: var(--rule-hair) solid var(--color-rule);
}
.theme-pick button {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--color-dim);
  cursor: pointer;
  transition: color var(--dur-micro) var(--ease-out), background-color var(--dur-micro) var(--ease-out);
}
.theme-pick svg { width: 15px; height: 15px; }
.theme-pick button:hover { color: var(--color-ink); }
.theme-pick button[aria-pressed="true"] { background: var(--color-raised); color: var(--color-ink); box-shadow: 0 1px 2px var(--color-shadow); }

/* Languages: a globe, then each language in its own name; the current one bold */
.foot__langs { display: flex; align-items: flex-start; gap: var(--space-xs); margin-top: var(--space-lg); font-size: var(--text-xs); line-height: 1.4; }
.foot__langs svg { width: 14px; height: 14px; flex: none; margin-top: 1px; color: var(--color-dim); }
.foot__langs ul { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; padding: 0; list-style: none; }
.foot__langs a { color: var(--color-dim); text-decoration: none; white-space: nowrap; }
.foot__langs a:hover { color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-ui); }
.foot__langs a[aria-current] { color: var(--color-ink); font-weight: 600; }

/* The wordmark. The box keeps a fixed ratio to its width and clips the word just under its
 * descender (the p keeps its tail), so the bottom edge of the page frames the word. Base layer: fine
 * vertical stripes in a quiet gray (background-clip: text). Glow layer: the same word and
 * stripes in the skin colours, shown only inside a soft round mask that moves. */
.wordmark {
  --wm-on: max(1.5px, 0.0125em);
  --wm-period: max(3.5px, 0.028em);
  --wm-spot: 1.15em;
  position: relative;
  container-type: inline-size;
  aspect-ratio: 100 / 25;
  margin-top: var(--space-2xl);
  overflow: hidden;
  -webkit-user-select: none;
  user-select: none;
}
.wordmark__word {
  position: absolute;
  inset: 0 0 auto;
  display: block;
  font: 700 19.5vw/0.9 var(--font-display);
  font-size: 23.4cqi;
  /* Room under the baseline so the p keeps its descender (the background must cover it for
   * background-clip: text to paint it). */
  padding-bottom: 0.3em;
  letter-spacing: -0.05em;
  text-align: center;
  white-space: nowrap;
  color: transparent;
  -webkit-text-fill-color: transparent;
  background: repeating-linear-gradient(90deg, var(--wm-stripe) 0 var(--wm-on), transparent var(--wm-on) var(--wm-period));
  -webkit-background-clip: text;
  background-clip: text;
}
.wordmark__glow {
  --wm-x: 50%;
  --wm-y: 40%;
  background:
    repeating-linear-gradient(90deg, transparent 0 var(--wm-on), var(--color-paper) var(--wm-on) var(--wm-period)),
    var(--wm-glow);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-mask: radial-gradient(closest-side, #000 22%, transparent) 0 40% / var(--wm-spot) var(--wm-spot) no-repeat;
  mask: radial-gradient(closest-side, #000 22%, transparent) 0 40% / var(--wm-spot) var(--wm-spot) no-repeat;
  animation: wm-sweep 9s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}
@keyframes wm-sweep {
  from { -webkit-mask-position: calc(0% - var(--wm-spot)) 40%; mask-position: calc(0% - var(--wm-spot)) 40%; }
  to { -webkit-mask-position: calc(100% + var(--wm-spot)) 40%; mask-position: calc(100% + var(--wm-spot)) 40%; }
}
/* With the script, the spot is driven per frame (--wm-x / --wm-y = its centre, in px): the same
 * 9 s sweep, eased toward a fine pointer while it hovers, and stopped while off screen. */
.wordmark.is-js .wordmark__glow {
  animation: none;
  -webkit-mask-position: calc(var(--wm-x) - var(--wm-spot) / 2) calc(var(--wm-y) - var(--wm-spot) / 2);
  mask-position: calc(var(--wm-x) - var(--wm-spot) / 2) calc(var(--wm-y) - var(--wm-spot) / 2);
}
@media (prefers-reduced-motion: reduce) {
  .wordmark__glow, .wordmark.is-js .wordmark__glow { animation: none !important; -webkit-mask-position: 32% 40%; mask-position: 32% 40%; }
}

/* ---------- Text pages (legal, privacy) ---------- */
.doc { padding-block: var(--space-3xl) var(--space-2xl); }
.doc__in { max-width: 46rem; }
.doc h1 { font-size: clamp(2.25rem, 2.6vw + 1.3rem, 3.5rem); font-weight: 600; letter-spacing: -0.045em; line-height: 1.04; }
.doc h2 { margin-top: var(--space-2xl); font-size: 1.5rem; letter-spacing: -0.022em; }
.doc h3 { margin-top: var(--space-lg); font-size: 1.0625rem; }
.doc p, .doc ul, .doc dl { margin-top: var(--space-sm); }
.doc ul { padding-left: 1.2em; }
.doc li + li { margin-top: var(--space-xs); }
.doc .muted { color: var(--color-dim); font-size: var(--text-sm); }
/* privacy.html#counters: the "Don't count me" switch (site.js initNoCount) */
.doc .nocount { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs) var(--space-md); margin-top: var(--space-md); }
.nocount__note { color: var(--color-dim); font-size: var(--text-sm); }
.doc dl div { display: grid; gap: var(--space-2xs); padding: var(--space-sm) 0; border-bottom: var(--rule-hair) solid var(--color-rule); }
@media (min-width: 36rem) { .doc dl div { grid-template-columns: 15rem minmax(0, 1fr); gap: var(--space-md); } }
.doc dt { color: var(--color-dim); }
.doc dd { margin: 0; color: var(--color-ink); }
.doc .summary {
  margin-top: var(--space-xl);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  background: var(--color-paper-2);
  border: var(--rule-hair) solid var(--color-rule);
}
.doc .summary h2 { margin-top: 0; }

/* ---------- 404 ---------- */
.miss { position: relative; isolation: isolate; overflow: clip; min-height: calc(100dvh - 61px); display: grid; align-items: center; text-align: center; padding: var(--space-3xl) 0 calc(var(--space-4xl) + var(--space-xl)); }
.miss::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%; top: 0;
  width: min(1000px, 160%); height: 640px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--glow-hero), transparent);
}
.miss__fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.miss__code { font: 600 clamp(5rem, 16vw, 11rem)/0.85 var(--font-display); letter-spacing: -0.06em; color: var(--color-ink); }
.miss h1 { margin-top: var(--space-lg); font-size: var(--text-2xl); font-weight: 600; letter-spacing: -0.03em; }
.miss p:not(.miss__code) { margin: var(--space-sm) auto 0; max-width: 32rem; }
.miss .btn { margin-top: var(--space-xl); }

/* ---------- Thanks page (license key) ----------
 * From 960 px, two columns: the key, "Download for Mac" and the next steps on the left; on the right, sticky,
 * the founders wall card and the email box. Narrower: one column, and the founders card becomes a bottom
 * sheet that never covers the key or the Copy button, or a pill at the bottom (site.js thanksArrival). */
.thx-page { padding-top: clamp(28px, 6vh, 56px); }
.thx { display: grid; gap: var(--space-2xl); align-items: start; max-width: calc(46rem + 2 * var(--gutter)); }
.thx__main { min-width: 0; }
.thx-page h1 { font-size: clamp(1.875rem, 2vw + 1.25rem, 3rem); }
.thx__side { display: grid; gap: var(--space-md); min-width: 0; }
@media (min-width: 60rem) {
  .thx { max-width: 1120px; grid-template-columns: minmax(0, 1fr) minmax(0, 25.5rem); gap: var(--space-2xl) clamp(40px, 5vw, 72px); }
  .thx.is-solo { max-width: calc(46rem + 2 * var(--gutter)); grid-template-columns: minmax(0, 1fr); }
  .thx__side { position: sticky; top: calc(var(--nav-h) + var(--space-lg)); }
  .thx__pill { display: none !important; }
}
.doc .thx__side .extras { margin-top: 0; }
.thx__dl { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs) var(--space-md); }
.doc .thx__dl { margin-top: var(--space-lg); }
.thx__dlnote { font-size: var(--text-sm); color: var(--color-dim); }
/* The step after the key: install the app. A solid Apple-style button (ink on paper, flips with the theme) so it reads as the next action */
.thx__dl { margin-top: var(--space-md); }
.thx__dl .btn--dl { background: var(--color-ink); color: var(--color-paper); border-color: transparent; min-height: 58px; padding: 0 30px; font-size: 1.0625rem; font-weight: 600; box-shadow: 0 6px 22px color-mix(in srgb, var(--color-ink) 22%, transparent); }
.thx__dl .btn--dl .i-apple { width: 19px; height: 19px; }
@media (hover: hover) { .thx__dl .btn--dl:hover { background: var(--color-ink); opacity: 0.88; transform: translateY(-1px); } }
@media (max-width: 47.99rem) { .thx__dl .btn--dl { width: 100%; } }
.doc .thx__steps { padding-left: 1.1em; }
.thx__steps strong { color: var(--color-ink); }
.doc .thx__back { margin-top: var(--space-xl); }
/* The founders card: an ember edge, and the hit when the whip cracks next to it (glow always, shake only
 * without reduced motion) */
.extras.extras--wall { position: relative; border-color: color-mix(in oklch, var(--color-accent) 32%, var(--color-rule)); transition: box-shadow 600ms var(--ease-out), border-color 600ms var(--ease-out); }
.extras--wall:focus { outline: none; }
.extras--wall.is-hit {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--color-accent) 30%, transparent), 0 18px 48px -18px color-mix(in oklch, var(--color-accent) 75%, transparent);
}
@media (prefers-reduced-motion: no-preference) { .extras--wall.is-hit { animation: card-hit 540ms var(--ease-out); } }
@keyframes card-hit {
  0% { transform: none; }
  16% { transform: translate3d(-8px, 0, 0) rotate(-0.7deg); }
  36% { transform: translate3d(6px, 0, 0) rotate(0.45deg); }
  56% { transform: translate3d(-3px, 0, 0); }
  76% { transform: translate3d(1px, 0, 0); }
  100% { transform: none; }
}
.extras__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); }
.extras__later {
  display: none;
  flex: none;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: var(--rule-hair) solid var(--color-rule-2);
  border-radius: var(--radius-pill);
  background: var(--color-raised);
  color: var(--color-ink);
  font: 600 var(--text-sm)/1 var(--font-sans);
  cursor: pointer;
}
.extras__later:hover { border-color: var(--color-ui); }
/* The whip's canvas: over the whole window, clicks pass through (site.js sets its top and height) */
.thx__fx { position: fixed; left: 0; top: 0; z-index: 45; width: 100%; height: 100vh; pointer-events: none; }
/* "Later": the founders card folded into a pill at the bottom; a tap opens it again */
.thx__pill {
  position: fixed;
  z-index: 40;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  max-width: calc(100vw - 32px);
  min-height: 48px;
  padding: 0 20px 0 14px;
  border: var(--rule-hair) solid color-mix(in oklch, var(--color-accent) 45%, transparent);
  border-radius: var(--radius-pill);
  background: var(--color-ink);
  color: var(--color-paper);
  font: 600 0.9375rem/1 var(--font-sans);
  white-space: nowrap;
  box-shadow: 0 16px 36px -14px var(--color-shadow);
  transform: translateX(-50%);
  cursor: pointer;
}
.thx__pill svg { width: 22px; height: 22px; flex: none; }
.thx__pill .mark-handle { stroke: var(--color-paper); }
@media (prefers-reduced-motion: no-preference) { .thx__pill { animation: pill-in 360ms var(--ease-out) both; } }
@keyframes pill-in { from { opacity: 0; transform: translate(-50%, 16px); } }
@media (max-width: 59.99rem) {
  .thx-page { padding-top: var(--space-lg); }
  .thx-page h1 { font-size: 1.875rem; }
  .thx-page .lede { font-size: 1rem; }
  .thx-page .keybox { margin-top: var(--space-lg); padding: var(--space-md); gap: var(--space-sm); }
  .thx-page .keybox textarea { min-height: 5.4em; }
  .thx-page .keybox__actions .btn { padding-inline: 16px; font-size: 0.9375rem; }
  /* The bottom sheet: off screen until site.js opens it, its height capped so its top stays under the key */
  .extras--wall:not([data-sheet="off"]) {
    position: fixed;
    z-index: 40;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: var(--sheet-max, 70vh);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 24px var(--gutter) calc(var(--space-md) + env(safe-area-inset-bottom));
    border-width: var(--rule-hair) 0 0;
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -18px 48px -22px var(--color-shadow);
    transform: translate3d(0, calc(100% + 32px), 0);
    visibility: hidden;
    transition: transform 420ms var(--ease-out), visibility 0s linear 420ms, box-shadow 600ms var(--ease-out), border-color 600ms var(--ease-out);
  }
  .extras--wall[data-sheet="open"] {
    transform: none;
    visibility: visible;
    transition: transform 420ms var(--ease-out), visibility 0s, box-shadow 600ms var(--ease-out), border-color 600ms var(--ease-out);
  }
  .extras--wall:not([data-sheet="off"])::before {
    content: "";
    position: absolute;
    top: 9px;
    left: 50%;
    width: 36px;
    height: 5px;
    margin-left: -18px;
    border-radius: var(--radius-pill);
    background: var(--color-paper-4);
  }
  .extras--wall:not([data-sheet="off"]) .extras__later { display: inline-flex; }
}
/* Tablets: the sheet keeps a readable width, centred */
@media (min-width: 40rem) and (max-width: 59.99rem) {
  .extras--wall:not([data-sheet="off"]) { max-width: 38rem; margin-inline: auto; border-width: var(--rule-hair) var(--rule-hair) 0; }
}
.keybox {
  display: grid;
  gap: var(--space-md);
  margin-top: var(--space-xl);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  background: var(--color-paper-2);
  border: var(--rule-hair) solid color-mix(in srgb, var(--color-blue) 45%, transparent);
}
.keybox__status { display: flex; gap: var(--space-sm); align-items: center; color: var(--color-ink); font-weight: 500; }
.keybox__status .spin { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--color-blue); border-right-color: transparent; animation: spin 0.8s linear infinite; }
.keybox.is-error { border-color: var(--color-rule-2); }
.keybox__status:not([data-kind="wait"]) .spin { display: none; }
.keybox__actions:not(:has(> :not([hidden]))) { display: none; }
.keybox label { display: block; margin-bottom: var(--space-xs); color: var(--color-dim); font-size: var(--text-sm); }
.keybox textarea {
  display: block;
  width: 100%;
  min-height: 7.5em;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  background: var(--color-term);
  border: var(--rule-hair) solid var(--color-rule-2);
  color: var(--color-ink);
  font: 500 0.9375rem/1.5 var(--font-mono);
  word-break: break-all;
  resize: vertical;
}
.keybox__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.doc .lede { margin-top: var(--space-md); }
/* Under the key: join the founders wall, and (its own control) the email opt-in. Ships hidden; site.js
 * (initExtras) shows it once a key is on screen. Both boxes start unticked, every time. */
.extras {
  display: grid;
  gap: var(--space-md);
  margin-top: var(--space-lg);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  background: var(--color-paper-2);
  border: var(--rule-hair) solid var(--color-rule);
}
.doc .extras h2 { margin-top: 0; font-size: 1.25rem; }
.doc .extras p { margin-top: 0; }
.extras form, .extras__part { display: grid; gap: var(--space-sm); justify-items: start; }
.extras form { width: 100%; }
.field { display: grid; gap: var(--space-xs); width: 100%; max-width: 22rem; }
.field label { color: var(--color-dim); font-size: var(--text-sm); }
.field input {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 0 var(--space-md);
  border-radius: var(--radius-md);
  background: var(--color-term);
  border: var(--rule-hair) solid var(--color-rule-2);
  color: var(--color-ink);
  font: 500 1rem/1.4 var(--font-sans);
}
.field input::placeholder { color: var(--color-dim); opacity: 1; }
.field input:hover { border-color: var(--color-ui); }
.field input[aria-invalid="true"] { border-color: var(--color-accent); }
.check { display: flex; gap: var(--space-sm); align-items: flex-start; color: var(--color-ink); line-height: 1.45; cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--color-blue); cursor: pointer; }
.check input:disabled, .check input:disabled + span { cursor: default; }
.extras__fine { font-size: var(--text-sm); color: var(--color-dim); }
.extras__msg { font-size: var(--text-sm); color: var(--color-ink); }
.extras__msg:empty { display: none; }
.extras__msg.is-error { padding: var(--space-sm) var(--space-md); border-radius: var(--radius-md); background: var(--color-accent-lo); border: var(--rule-hair) solid var(--color-accent); }
.extras__msg.is-ok { font-size: var(--text-base); font-weight: 500; }
.extras__sep { width: 100%; height: 0; margin: var(--space-2xs) 0; border: 0; border-top: var(--rule-hair) solid var(--color-rule); }
.linkbtn {
  min-height: 32px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-ink);
  font: inherit;
  font-size: var(--text-sm);
  text-decoration: underline;
  text-decoration-color: var(--color-ui);
  text-underline-offset: 3px;
  cursor: pointer;
}
.linkbtn:hover { text-decoration-color: var(--color-link); }
.linkbtn:disabled { color: var(--color-dim); cursor: default; }
/* After a wall application: the proof code to send from that X account, and "Change handle". */
.wallnext, .wallnext__proof { display: grid; gap: var(--space-sm); justify-items: start; }
.doc .wallnext__code code {
  display: inline-block;
  padding: var(--space-2xs) var(--space-sm);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  -webkit-user-select: all;
  user-select: all;
}
.wallnext__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); }

/* ---------- Guides (Claude Code / Codex notifications, whip safely) ---------- */
.crumbs ol { display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-xs); margin: 0 0 var(--space-lg); padding: 0; list-style: none; font-size: var(--text-sm); color: var(--color-dim); }
.doc .crumbs li + li { margin-top: 0; }
.crumbs li + li::before { content: "/"; margin-right: var(--space-xs); color: var(--color-ui); }
.crumbs a { color: var(--color-muted); }
.doc ol { margin-top: var(--space-sm); padding-left: 1.4em; }
.doc li::marker { color: var(--color-dim); }
.doc :not(pre) > code {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--color-paper-3);
  border: var(--rule-hair) solid var(--color-rule);
  overflow-wrap: anywhere;
}
.code {
  margin: var(--space-md) 0 0;
  border-radius: var(--radius-md);
  background: var(--color-term);
  border: var(--rule-hair) solid var(--color-rule-2);
  overflow: hidden;
}
.code__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  min-height: 44px;
  padding: var(--space-2xs) var(--space-xs) var(--space-2xs) var(--space-md);
  border-bottom: var(--rule-hair) solid var(--color-rule);
  font: 500 var(--text-xs)/1.4 var(--font-mono);
  color: var(--color-dim);
}
.code__bar span { min-width: 0; overflow-wrap: anywhere; }
.code pre { margin: 0; padding: var(--space-md); overflow-x: auto; font: 400 0.875rem/1.6 var(--font-mono); color: var(--color-ink); tab-size: 2; }
.code pre code { font-size: inherit; color: inherit; }
.copy-code {
  flex: none;
  min-height: 32px;
  padding: 0 var(--space-sm);
  border-radius: var(--radius-pill);
  background: var(--color-paper-3);
  border: var(--rule-hair) solid var(--color-rule-2);
  color: var(--color-ink);
  font: 600 var(--text-xs)/1 var(--font-sans);
  cursor: pointer;
}
.copy-code:hover { border-color: var(--color-ui); }
.table-wrap { margin-top: var(--space-md); overflow-x: auto; border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-md); }
.doc table { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: var(--text-sm); line-height: 1.45; }
.doc th, .doc td { padding: var(--space-sm) var(--space-md); text-align: left; vertical-align: top; border-bottom: var(--rule-hair) solid var(--color-rule); }
.doc thead th { background: var(--color-paper-2); color: var(--color-ink); font-weight: 600; }
.doc tbody th { color: var(--color-ink); font-weight: 600; }
.doc tbody tr:last-child > * { border-bottom: 0; }
.guide-cta {
  margin-top: var(--space-2xl);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  background: var(--color-paper-2);
  border: var(--rule-hair) solid color-mix(in srgb, var(--color-blue) 35%, transparent);
}
.doc .guide-cta h2 { margin-top: 0; }
.guide-cta__btns { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-lg); }
.doc .related { display: grid; gap: var(--space-sm); margin-top: var(--space-md); padding: 0; list-style: none; }
@media (min-width: 40rem) { .doc .related { grid-template-columns: 1fr 1fr; } }
.doc .related li + li { margin-top: 0; }
.related a { display: block; height: 100%; padding: var(--space-md); border-radius: var(--radius-md); background: var(--color-paper-2); border: var(--rule-hair) solid var(--color-rule); text-decoration: none; }
.related a:hover { border-color: var(--color-ui); }
.related strong { display: block; color: var(--color-ink); }
.related span { display: block; margin-top: var(--space-2xs); font-size: var(--text-sm); color: var(--color-dim); }
.doc .sources { font-size: var(--text-sm); }

/* ---------- Download page (/download/) ----------
 * The app icon, a big headline, the blue Apple pill (the same counted /api/download link as the home page),
 * the meta line; then the install steps as headed cards (no numbers) and three "good to know" answers. */
.dlhero { position: relative; isolation: isolate; overflow: clip; padding: clamp(40px, 8vh, 96px) 0 var(--space-2xl); text-align: center; }
.dlhero__glow {
  position: absolute;
  z-index: -1;
  left: 50%;
  top: -260px;
  width: min(1100px, 170%);
  height: 760px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--glow-hero), transparent);
  pointer-events: none;
}
.dlhero__icon { width: 104px; height: 104px; margin: 0 auto; border-radius: 23px; box-shadow: 0 0 0 1px var(--color-rule), 0 22px 44px -22px var(--color-shadow); }
.dlhero__title { margin-top: var(--space-lg); font-size: clamp(2.5rem, 3.6vw + 1.2rem, 4rem); line-height: 1.04; letter-spacing: -0.042em; }
.dlhero__sub { max-width: 34rem; margin: var(--space-md) auto 0; font-size: var(--text-lg); line-height: 1.45; color: var(--color-muted); text-wrap: balance; }
.dlhero .cta { margin-top: var(--space-xl); }
.dlhero__meta { margin-top: var(--space-lg); }
.hero__meta a { color: inherit; text-decoration: underline; text-decoration-color: var(--color-ui); }
.hero__meta a:hover { color: var(--color-ink); }
.dlsteps { padding-top: var(--space-xl); }
.steps { display: grid; gap: var(--space-md); margin: var(--space-xl) 0 0; padding: 0; list-style: none; }
@media (min-width: 44rem) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 72rem) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.step { display: flex; flex-direction: column; padding: var(--space-lg); border-radius: var(--radius-lg); background: var(--color-paper-2); }
.step__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--color-raised);
  box-shadow: 0 0 0 1px var(--color-rule);
  color: var(--color-blue);
}
.step__icon svg { width: 24px; height: 24px; }
.step h3 { margin-top: var(--space-md); font-size: 1.125rem; }
.step p { margin-top: var(--space-xs); font-size: var(--text-sm); line-height: 1.55; color: var(--color-muted); text-wrap: pretty; }
.know { display: grid; gap: var(--space-xl) var(--space-2xl); margin-top: var(--space-xl); }
@media (min-width: 56rem) { .know { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.know article { padding-top: var(--space-md); border-top: var(--rule-hair) solid var(--color-rule); }
.know h3 { font-size: 1.0625rem; line-height: 1.35; }
.know p { margin-top: var(--space-xs); font-size: var(--text-sm); line-height: 1.55; color: var(--color-muted); text-wrap: pretty; }

/* ---------- Home: "What is Whipback?" answers ---------- */
.about { display: grid; gap: var(--space-md); margin-top: var(--space-xl); }
@media (min-width: 48rem) { .about { grid-template-columns: 1fr 1fr; } }
.about article { padding: var(--space-lg); border-radius: var(--radius-lg); background: var(--color-paper-2); border: var(--rule-hair) solid var(--color-rule); }
.about p { margin-top: var(--space-sm); color: var(--color-muted); text-wrap: pretty; }
.updated { margin-top: var(--space-md); font-size: var(--text-sm); color: var(--color-dim); }

/* ---------- Motion (motion.dev) reveals ----------
 * Nothing is ever hidden. Content is fully visible without JS. With Motion loaded (html.mo),
 * the script marks only blocks that start BELOW the first screen with .rv: they wait slightly
 * dimmed and 16 px low, and rise to full when they scroll in. A fast scroll therefore never
 * shows an empty screen, and anything already on screen is never touched. */
.mo .rv { opacity: 0.5; transform: translate3d(0, 16px, 0); }
@media print { .mo .rv { opacity: 1 !important; transform: none !important; } }

/* Hero entrance: pure CSS, so it needs no script and starts with the first paint (no flash).
 * It only fades from 35 % and rises 12 px: the first screen is never empty. */
@keyframes rise { from { opacity: 0.35; transform: translate3d(0, 12px, 0); } }
@media (prefers-reduced-motion: no-preference) {
  .hero__in > .badge, .hero__title > span, .hero__sub, .hero__in > .cta, .hero__aux, .hero__meta, .hero__proof, .hero__founders { animation: rise 640ms var(--ease-out) both; }
  .hero__title > span:nth-child(1) { animation-delay: 60ms; }
  .hero__title > span:nth-child(2) { animation-delay: 110ms; }
  .hero__title > span:nth-child(3) { animation-delay: 160ms; }
  .hero__sub { animation-delay: 210ms; }
  .hero__in > .cta { animation-delay: 260ms; }
  .hero__aux { animation-delay: 290ms; }
  .hero__meta { animation-delay: 310ms; }
}
@media (prefers-reduced-motion: reduce) { .dot--live::after { display: none; } }

/* ---------- Reduced motion: no sweeps, no shakes, opacity only ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 120ms !important;
    animation-duration: 120ms !important;
    animation-iteration-count: 1 !important;
  }
  .hero__title.is-hit .hero__hit, .win.is-dodge, .desk.is-shake { animation: none !important; }
  .btn:hover, .btn:active, .skin:active { transform: none !important; }
  .desk__say { animation: say 2400ms linear forwards !important; }
  .mo .rv { opacity: 1 !important; transform: none !important; }
}

/* ---------- Quick answer (home #quick and the guides) ----------
 * The short plain-text summary that search engines and AI assistants quote: a quiet card, no motion. */
.quick { padding-top: var(--space-xl); }
.answer {
  max-width: 46rem;
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  background: var(--color-paper-2);
  border: var(--rule-hair) solid var(--color-rule);
}
.answer .answer__h { margin: 0; font-size: var(--text-sm); line-height: 1.4; letter-spacing: 0; color: var(--color-dim); }
.answer p { margin-top: var(--space-xs); color: var(--color-ink); line-height: 1.6; text-wrap: pretty; }
.answer .updated { margin-top: var(--space-sm); font-size: var(--text-sm); color: var(--color-dim); }
.doc .answer { margin-top: var(--space-lg); }
