/* Haffer, self-hosted under the Displaay Web licence (We Design Brand Agency). The files come from
   the private wdlp-fonts host through the /fonts rewrite in vercel.json; they are never committed
   here. Each weight is its own file and font-synthesis is off, so nothing fakes a bold.
   Light for reading, Regular for headings, Medium at most: no Bold anywhere (his call). */
@font-face { font-family: "Haffer"; src: url("/fonts/haffer/Haffer-Light.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Haffer"; src: url("/fonts/haffer/Haffer-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Haffer"; src: url("/fonts/haffer/Haffer-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Haffer Mono"; src: url("/fonts/haffer/HafferMono-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

/* Layout: one 1160px column. Every demo is a live HTML sheet coloured from data.js (the engine's
   own output), framed by a 1px line; the moon yellow is the only accent and goes big once. */
:root {
  --bg: #111111;
  --surface: #171717;
  --raised: #1e1e1e;
  --line: #2a2a2a;
  --line-2: #3a3a3a;
  --text: #ededed;
  --text-2: #a9a9a9;
  --text-3: #8c8c8c;
  --accent: #f2c14e;      /* the moon in the icon */
  --accent-hi: #f6cf6e;
  --accent-ink: #171200;
  --radius: 4px;
  --sans: "Haffer", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Haffer Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sheet: Arial, Helvetica, sans-serif; /* what Google Sheets draws cells in by default */
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: dark;
  font-synthesis: none;
  interpolate-size: allow-keywords;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 300 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--text); text-decoration-color: var(--line-2); text-underline-offset: 3px; transition: text-decoration-color .2s, color .2s; }
a:hover { text-decoration-color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.ic { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }
code, kbd { font: 400 0.86em var(--mono); }
b, strong { font-weight: 500; }
code { background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 1px 6px; white-space: nowrap; }
h1, h2, h3 { text-wrap: balance; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 10px 14px; background: var(--accent); color: var(--accent-ink); border-radius: var(--radius); font-weight: 500; }
.skip:focus { top: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 20px;
  border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface);
  color: var(--text); font: 400 16px/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color .2s, border-color .2s, transform .2s var(--ease);
}
.btn .ic { width: 20px; height: 20px; }
.btn:hover { border-color: var(--text-3); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: var(--accent-hi); border-color: var(--accent-hi); }
.btn.ghost { background: transparent; }
.btn.small { padding: 8px 14px; font-size: 15px; gap: 8px; }
.btn.small .ic { width: 17px; height: 17px; }

/* ---------- header ---------- */
.nav { position: sticky; top: 0; z-index: 30; background: var(--bg); border-bottom: 1px solid transparent; transition: border-color .25s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 18px; letter-spacing: -0.01em; text-decoration: none; }
.brand img { margin: -2px; } /* 32 px pixel mark with 2 px clear edge: lays out as the old 28 px icon */
@media (max-width: 480px) {
  .brand-name { display: flex; flex-direction: column; line-height: 1.15; }
  .brand-for { font-size: 13px; font-weight: 400; letter-spacing: 0; color: var(--text-2); }
}
.links { display: flex; gap: 24px; margin-left: 8px; font-size: 15px; }
.links a, .gh { color: var(--text-2); text-decoration: none; transition: color .2s; }
.links a:hover, .gh:hover { color: var(--text); }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.gh { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; }
.menu-btn { display: none; width: 40px; height: 40px; place-items: center; background: none; border: 1px solid var(--line-2); border-radius: var(--radius); color: var(--text); cursor: pointer; }
.menu-btn .ic { width: 22px; height: 22px; }
.mnav { border-top: 1px solid var(--line); background: var(--bg); }
.mnav .wrap { display: grid; padding-block: 8px 16px; }
.mnav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 18px; text-decoration: none; }
.mnav:not([hidden]) { animation: drop .28s var(--ease); }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- hero ---------- */
.hero { padding-block: 72px 36px; }
.hero h1 { max-width: 1000px; }
.kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 24px; color: var(--text-2); font-size: 15px; }
.kicker .ic { color: var(--accent); width: 18px; height: 18px; }
h1 { margin: 0; font-size: clamp(40px, 6.4vw, 78px); line-height: 1.04; letter-spacing: -0.03em; font-weight: 400; }
h1 .ln { display: block; }
h1 .dim { color: var(--text-2); }
.lede { margin: 28px 0 0; font-size: 19px; line-height: 1.55; color: var(--text-2); max-width: 680px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.fine { margin: 16px 0 0; color: var(--text-3); font-size: 14px; }

/* ---------- section scaffolding ---------- */
section { position: relative; }
h2 { font-size: clamp(28px, 3.8vw, 46px); line-height: 1.1; letter-spacing: -0.02em; font-weight: 400; margin: 0 0 14px; }
.sub { color: var(--text-2); max-width: 660px; margin: 0 0 30px; font-size: 18px; }
.compare, .duel-sec, .proof, .font-sec, .keys-sec, .private, .install, .faq { padding-block: 104px 0; }

/* ---------- the demo sheet (built by site.js) ---------- */
.app {
  --L-app: #f9fbfd; --L-bar: #edf2fa; --L-txt: #1f1f1f;
  --D-app: #181818; --D-bar: #242424; --D-txt: #e4e4e4;
  position: relative; background: var(--L-app); color: var(--L-txt);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: background-color .45s var(--ease), color .45s var(--ease);
}
.app.is-dark { background: var(--D-app); color: var(--D-txt); }
.app-top { display: flex; align-items: center; gap: 12px; padding: 12px 14px 4px; font-family: var(--sheet); }
.app-logo { width: 18px; height: 24px; border-radius: 2px; background: #0f9d58; flex: none; }
.app-title { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-menus { display: flex; gap: 14px; padding: 0 14px 0 44px; font: 13px var(--sheet); opacity: .8; white-space: nowrap; overflow: hidden; }
.app-bar {
  display: flex; align-items: center; gap: 10px; height: 34px; margin: 8px 10px 10px; padding: 0 14px;
  border-radius: 17px; background: var(--L-bar); transition: background-color .45s var(--ease);
}
.is-dark .app-bar { background: var(--D-bar); }
.app-bar i { width: 18px; height: 8px; border-radius: 2px; background: currentColor; opacity: .22; }
.app-bar i:nth-child(4n) { width: 34px; }
.grid {
  position: relative; display: grid; grid-template-columns: 36px repeat(var(--cols, 5), minmax(0, 1fr));
  gap: 1px; background: var(--L-line); border-top: 1px solid var(--L-line);
  font: 13px/1 var(--sheet-font, var(--sheet));
  transition: background-color .35s var(--ease), border-color .35s var(--ease);
}
.is-dark .grid { background: var(--D-line); border-top-color: var(--D-line); }
.c {
  display: flex; align-items: center; height: 30px; padding: 0 9px; white-space: nowrap; overflow: hidden;
  background: var(--lb); color: var(--lt);
  transition: background-color .35s var(--ease), color .35s var(--ease), opacity .2s;
}
.is-dark .c { background: var(--db); color: var(--dt); }
.c.r { justify-content: flex-end; font-variant-numeric: tabular-nums; }
.c.b { font-weight: 700; }
.c.ax { justify-content: center; font-size: 11px; }
.c.mono { font-family: "Courier New", Courier, monospace; }
.sweep .c, .sweep .grid, .sweep .app-bar { transition-delay: calc(var(--r, 0) * 70ms); }
.no-tr, .no-tr * { transition: none !important; }
.scan { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--accent); opacity: 0; pointer-events: none; }
.scanning .scan { animation: scan var(--scan-ms, 900ms) steps(var(--rows, 8), jump-none) forwards; }
@keyframes scan { 0% { top: 0; opacity: 1; } 99% { opacity: 1; } 100% { top: calc(100% - 2px); opacity: 0; } }
.app.mini .grid { grid-template-columns: 30px repeat(var(--cols, 4), minmax(0, 1fr)); font-size: 12px; }
.app.mini .c { height: 27px; padding: 0 7px; }
.app.mini .app-bar { height: 26px; margin: 6px 8px 8px; }
.app.invert { filter: invert(var(--inv, 1)); transition: filter .9s var(--ease); }

/* ---------- hero stage ---------- */
.stage { padding-block: 24px 0; }
.frame { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 14px; transform-origin: 50% 0; }
.frame-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 4px 2px; }
.frame-note { margin: 0; color: var(--text-3); font-size: 14px; max-width: 640px; }

/* ---------- compare slider ---------- */
.slider { position: relative; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; aspect-ratio: 1389 / 868; user-select: none; touch-action: pan-y; }
.slider img { width: 100%; height: 100%; object-fit: cover; }
.slider .over { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.slider .handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--accent); pointer-events: none; }
.slider .handle span { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; display: grid; place-items: center; border-radius: var(--radius); background: var(--accent); color: var(--accent-ink); }
.slider .handle .ic { width: 24px; height: 24px; }
.slider input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.slider .tag { position: absolute; bottom: 14px; padding: 6px 12px; border-radius: var(--radius); font-size: 14px; font-weight: 400; pointer-events: none; }
.slider .tag.left { left: 14px; background: #1f1f1f; color: #f0f0f0; }
.slider .tag.right { right: 14px; background: #e4e4e4; color: #181818; }

/* ---------- invert vs Nightcell ---------- */
.duel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.duel-side { margin: 0; display: grid; gap: 14px; align-content: start; }
.duel-side figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--text-2); font-size: 15px; }
.pill { display: inline-block; padding: 3px 10px; border: 1px solid var(--line-2); border-radius: var(--radius); color: var(--text); font-size: 13px; font-weight: 500; }
.pill.accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.c.ring { outline: 2px solid var(--accent); outline-offset: -2px; }

/* ---------- contrast proof ---------- */
.proof-head { max-width: 780px; }
.mins { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: -8px 0 28px; color: var(--text-2); font: 400 15px var(--mono); }
.mins b { color: var(--text); font-family: var(--sans); font-weight: 400; margin-right: 6px; }
.pairs { display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); gap: 3px; }
.pairs i { aspect-ratio: 1.3; display: grid; place-items: center; border-radius: 2px; font: 400 clamp(9px, 1vw, 13px)/1 var(--sheet); font-style: normal; }
.motion .pairs i { opacity: 0; transform: scale(.6); }
.motion .pairs.in i { opacity: 1; transform: none; transition: opacity .4s var(--ease), transform .45s var(--ease); transition-delay: calc(var(--d) * 1ms); }
.odo { display: inline-flex; height: 1em; overflow: hidden; line-height: 1; vertical-align: -0.08em; font-variant-numeric: tabular-nums; }
.odo .col { display: flex; flex-direction: column; transition: transform 1.1s cubic-bezier(.16, 1, .3, 1); transition-delay: calc(var(--i, 0) * 40ms); }
.odo .col span { display: block; height: 1em; }

/* ---------- themes (the one place the accent goes big) ---------- */
.themes { padding-block: 104px; }
.theme-stage { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.35fr); gap: 56px; align-items: center; }
.theme-list { display: grid; gap: 4px; margin-top: 8px; }
.theme-list button {
  display: grid; grid-template-columns: 22px 1fr; column-gap: 14px; align-items: center; text-align: left;
  padding: 12px 14px; background: none; border: 0; border-left: 2px solid var(--line); color: var(--text-2);
  font: 400 20px/1.2 var(--sans); cursor: pointer; transition: color .25s, border-color .25s, background-color .25s;
}
.theme-list button i { grid-row: span 2; width: 22px; height: 22px; border-radius: 3px; border: 1px solid var(--line-2); }
.theme-list button small { grid-column: 2; color: var(--text-3); font-size: 14px; font-weight: 300; margin-top: 3px; }
.theme-list button:hover { color: var(--text); }
.theme-list button[aria-selected="true"] { color: var(--text); border-left-color: var(--accent); background: var(--surface); }
.theme-box { background: var(--accent); padding: clamp(16px, 3vw, 36px); border-radius: var(--radius); }
.theme-box .app { border-color: rgba(0, 0, 0, .25); }

/* ---------- your font ---------- */
.font-sec { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button {
  padding: 8px 14px; border: 1px solid var(--line-2); border-radius: var(--radius); background: transparent;
  color: var(--text-2); font: 400 15px var(--sans); cursor: pointer; transition: color .2s, border-color .2s, background-color .2s;
}
.chips button:hover { color: var(--text); border-color: var(--text-3); }
.chips button[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
.chips button[data-font="Georgia"] { font-family: Georgia, serif; }
.chips button[data-font="Verdana"] { font-family: Verdana, sans-serif; }
.chips button[data-font=""] { font-family: var(--sheet); }
.font-demo { display: grid; gap: 14px; }
.pm { width: min(340px, 100%); padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #161616; font-size: 13px; line-height: 1.4; }
.pm-head { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 14px; margin-bottom: 12px; }
.pm-head .ic { color: var(--accent); width: 16px; height: 16px; }
.pm-label { display: flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 12px; margin-bottom: 6px; }
.pm-label .ic { width: 15px; height: 15px; }
.pm-input { display: flex; align-items: center; height: 34px; padding: 0 10px; border: 1px solid var(--accent); border-radius: var(--radius); background: #1f1f1f; }
.caret { width: 1px; height: 16px; margin-left: 1px; background: var(--text); animation: blink 1.05s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.pm-status { margin: 8px 0 0; color: var(--text-2); font-size: 12px; min-height: 2.8em; }
.font-swap .c:not(.mono):not(.ax) { opacity: .15; }

/* ---------- shortcut ---------- */
.keys-sec { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.keys-demo { display: grid; gap: 18px; justify-items: start; }
.caps { display: flex; align-items: center; gap: 10px; color: var(--text-3); font-size: 22px; }
.caps kbd {
  display: inline-grid; place-items: center; min-width: 64px; height: 56px; padding: 0 16px;
  border: 1px solid var(--line-2); border-bottom-width: 4px; border-radius: var(--radius);
  background: var(--raised); color: var(--text); font: 400 20px var(--sans);
  transition: transform .12s var(--ease), border-color .12s, border-bottom-width .12s, color .12s;
}
.caps kbd.down { transform: translateY(3px); border-bottom-width: 1px; border-color: var(--accent); color: var(--accent); }
.keys-demo .app { width: 100%; }
.keys-state { margin: 0; color: var(--text-2); font: 400 14px var(--mono); }

/* ---------- privacy ---------- */
.private { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 10px 0 28px; }
.stat { display: grid; gap: 6px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); }
.stat b { font-weight: 400; font-size: clamp(40px, 5vw, 60px); line-height: 1; letter-spacing: -0.03em; color: var(--accent); }
.stat > span { color: var(--text-2); font-size: 15px; line-height: 1.35; }
.net { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.net-bar { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--text-2); }
.net-filter { padding: 2px 8px; border: 1px solid var(--line-2); border-radius: var(--radius); font: 400 13px var(--mono); color: var(--text); }
.net-count { margin-left: auto; font: 400 13px var(--mono); }
.net-manifest { margin: 0; padding: 16px; min-height: 196px; font: 400 13px/1.75 var(--mono); color: var(--text-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.net-manifest span { display: block; }
.net-manifest span:first-child { color: var(--text-3); }
.net-manifest span:nth-child(4) { color: var(--accent); }
.motion .net-manifest.typing span { opacity: 0; }
.motion .net-manifest.typing span.on { opacity: 1; }

/* ---------- install ---------- */
.steps { --p: 1; position: relative; list-style: none; margin: 34px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.steps::before, .steps::after { content: ""; position: absolute; left: 16px; right: 16px; top: 16px; height: 2px; background: var(--line); }
.steps::after { background: var(--accent); transform: scaleX(var(--p)); transform-origin: left center; }
.steps li { position: relative; z-index: 1; display: grid; gap: 14px; align-content: start; color: var(--text-2); }
.steps .n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: var(--radius); background: var(--raised); border: 1px solid var(--line-2); color: var(--text); font: 400 15px var(--mono); transition: background-color .3s, color .3s, border-color .3s; }
.steps li.lit .n, .steps:not([data-scrub]) .n { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.steps b { color: var(--text); font-weight: 400; }
.steps a { display: block; margin-top: 10px; font-weight: 400; }

/* ---------- FAQ ---------- */
.faq > h2, .faq details { max-width: 860px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; cursor: pointer; list-style: none; font-weight: 400; font-size: 19px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--text-3); font: 400 22px/1 var(--mono); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details::details-content { block-size: 0; overflow: hidden; transition: block-size .32s var(--ease), content-visibility .32s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
.faq details p { margin: 0 0 22px; color: var(--text-2); max-width: 720px; }

/* ---------- footer: CTA box, link columns, a wordmark that fills the column ---------- */
.foot { border-top: 1px solid var(--line); margin-top: 120px; }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.85fr); gap: 48px; padding-block: 64px 56px; }
.foot-cta { display: grid; gap: 18px; justify-items: start; align-content: start; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.foot-line { margin: 0; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; letter-spacing: -0.02em; font-weight: 400; text-wrap: balance; }
.foot-note { margin: 0; color: var(--text-3); font-size: 14px; }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.foot-cols h3 { margin: 0 0 14px; font: 400 13px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.foot-cols a { display: block; padding: 6px 0; color: var(--text-2); text-decoration: none; font-size: 16px; overflow-wrap: break-word; transition: color .2s; }
.foot-cols a:hover { color: var(--text); }
.foot-mark { overflow: hidden; }
.foot-mark .fit { display: block; width: max-content; font-weight: 300; font-size: 19vw; line-height: 1.2; letter-spacing: -0.055em; white-space: nowrap; color: var(--text); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; padding-block: 20px 36px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 13px; }
.foot-bottom p { margin: 0; max-width: 620px; }

/* ---------- reveal (opacity only, in reading order) ---------- */
.motion .reveal { opacity: 0; transition: opacity .55s var(--ease); }
.motion .reveal.in { opacity: 1; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .links, .gh { display: none; }
  .menu-btn { display: grid; }
  .theme-stage, .font-sec, .keys-sec, .private, .foot-top { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps::before, .steps::after { display: none; }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  .hero { padding-block: 44px 28px; }
  .lede { font-size: 17px; }
  .sub { font-size: 16px; }
  .compare, .duel-sec, .proof, .font-sec, .keys-sec, .private, .install, .faq, .themes { padding-block: 80px 0; }
  .themes { padding-bottom: 0; }
  .duel { grid-template-columns: minmax(0, 1fr); }
  .pairs { grid-template-columns: repeat(10, minmax(0, 1fr)); }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stat { grid-template-columns: auto 1fr; align-items: center; gap: 16px; padding: 14px 16px; }
  .frame { padding: 8px; }
  .frame-bar { flex-direction: column; align-items: flex-start; }
  .grid { font-size: 11px; grid-template-columns: 26px repeat(var(--cols, 5), minmax(0, 1fr)); }
  .c { height: 26px; padding: 0 5px; }
  .app.mini .grid { font-size: 11px; grid-template-columns: 24px repeat(var(--cols, 4), minmax(0, 1fr)); }
  .app-menus { padding-left: 14px; gap: 10px; font-size: 12px; }
  .slider .tag { font-size: 12px; bottom: 8px; padding: 4px 8px; }
  .caps kbd { min-width: 52px; height: 48px; font-size: 17px; padding: 0 12px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .foot { margin-top: 96px; }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-cols > div:last-child { grid-column: 1 / -1; }
  .foot-cta { padding: 22px; }
}
@media (max-width: 380px) {
  .nav-cta { display: none; }
  .theme-list button { font-size: 18px; padding: 10px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- privacy page + 404 ---------- */
.doc { max-width: 760px; padding-block: 56px 104px; }
.doc h1 { font-size: clamp(36px, 5vw, 52px); }
.doc h2 { font-size: 24px; margin: 44px 0 10px; }
.doc p, .doc li { color: var(--text-2); }
.doc .updated { color: var(--text-3); margin-top: 14px; }
.doc code { white-space: normal; overflow-wrap: anywhere; }
.lost { padding-block: 96px 120px; max-width: 760px; }
.lost .err { font: 400 clamp(64px, 12vw, 132px)/1 var(--mono); color: var(--accent); letter-spacing: -0.04em; margin: 0 0 18px; }
.lost .ctas { margin-top: 28px; }
