/* Focus Spoofer site: shared tokens and components. */
:root {
  --paper: #f2eee6;
  --paper-2: #e9e4d9;
  --surface: #fbf9f4;
  --ink: #161411;
  --ink-2: #5c564c;
  --ink-3: #958d80;
  --line: rgba(22, 20, 17, 0.12);
  --line-strong: rgba(22, 20, 17, 0.22);
  --signal: #e2452b;
  --signal-ink: #b8321c;
  --ok: #2f7d4f;
  --serif: "Instrument Serif", ui-serif, Georgia, serif;
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #12110f;
    --paper-2: #1a1815;
    --surface: #1d1b18;
    --ink: #efe9dd;
    --ink-2: #aaa293;
    --ink-3: #6e675c;
    --line: rgba(239, 233, 221, 0.1);
    --line-strong: rgba(239, 233, 221, 0.2);
    --signal: #f05a3c;
    --signal-ink: #ff7a5c;
    --ok: #5cc68a;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--signal); color: #fff; }

a { color: inherit; }
img { max-width: 100%; display: block; }
code, .mono { font-family: var(--mono); font-size: 0.88em; }

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

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--ink); color: var(--paper); padding: 8px 12px; border-radius: 8px; z-index: 100;
}
.skip:focus { left: 8px; }

/* ── Nav ─────────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background-color .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.nav .wrap { display: flex; align-items: center; height: 64px; gap: 24px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; font-family: var(--serif); font-size: 22px; letter-spacing: -0.01em;
}
.brand svg { width: 26px; height: 26px; }
.brand .lid { transform-origin: 16px 16px; transition: transform .18s var(--ease); }
.brand:hover .lid { transform: scaleY(0.12); }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav-links a {
  text-decoration: none; font-size: 14px; color: var(--ink-2);
  padding: 8px 12px; border-radius: 999px; transition: color .2s, background-color .2s;
}
.nav-links a:hover { color: var(--ink); background: var(--line); }
.nav-links a.btn-ink { color: var(--paper); background: var(--ink); }
.nav-links a.btn-ink:hover { color: var(--paper); background: var(--ink); }
@media (max-width: 640px) { .nav-links .hide-sm { display: none; } }

/* ── Buttons ─────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  font: 500 15px var(--sans); text-decoration: none; cursor: pointer; border: 0;
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--ink) 60%, transparent); }
.btn-line { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); background: transparent; }
.btn-line:hover { background: var(--line); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.nav .btn { padding: 9px 16px; font-size: 14px; }

/* ── Type ────────────────────────────────────────── */
.eyebrow { font-size: 14px; color: var(--ink-3); }
h1.eyebrow { margin: 0; font-weight: 400; }
.kicker { margin: 0; font: 500 16px/1.4 var(--sans); color: var(--ink-2); }
.display {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(52px, 9.2vw, 148px); line-height: .92; letter-spacing: -0.035em; margin: 0;
}
.display em { font-style: italic; color: var(--signal); }
.h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(40px, 5.6vw, 84px); line-height: .98; letter-spacing: -0.03em; margin: 0;
}
.h2 em { font-style: italic; color: var(--ink-3); }
.lede { font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); max-width: 46ch; margin: 0; }

/* ── Hero ────────────────────────────────────────── */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 96px 0 48px; }
.hero-grid {
  display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: clamp(24px, 4vw, 64px);
}
.hero > .wrap { position: relative; z-index: 2; }
.hero-copy { position: relative; }
/* SplitText line masks: leave room for descenders (y, g) and italics. */
[data-split] > * { padding: 0 .06em .14em 0; margin-bottom: -.14em; }
.hero-copy .display { margin: 22px 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-fine { margin: 18px 0 0; font-size: 14px; color: var(--ink-3); }

.watch-col { display: grid; justify-items: center; gap: clamp(20px, 3vw, 36px); }
.stage { position: relative; aspect-ratio: 368 / 232; width: 100%; max-width: 480px; }
.eye { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.eye .sclera { fill: var(--surface); stroke: var(--ink); stroke-width: 2.5; }
.eye .iris { fill: var(--signal); }
.eye .pupil { fill: #161411; }
.eye .glint { fill: #fff; opacity: .85; }
.eye .lash { stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; fill: none; }

/* The stopwatch under the eye: this page times every time you leave it. */
.watch { width: 100%; max-width: 420px; text-align: center; }
.watch-label { font-size: 14px; color: var(--ink-3); }
.watch-time {
  margin: 2px 0 6px; font: 400 clamp(72px, 8.5vw, 128px)/1 var(--serif); letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums; color: var(--ink-3); transition: color .3s;
}
.watch-time small { font-size: .4em; margin-left: .06em; letter-spacing: 0; }
.watch.away .watch-time, .watch.caught .watch-time { color: var(--signal); }
.watch-note { margin: 0 auto; max-width: 36ch; font-size: 15px; color: var(--ink-2); }
.watch-note b { display: block; color: var(--ink); font-weight: 500; }
.watch-log {
  list-style: none; margin: 18px auto 0; padding: 12px 0 0; border-top: 1px solid var(--line);
  font: 12.5px/1.9 var(--mono); color: var(--ink-3); text-align: left; max-width: 300px;
}
.watch-log li { display: flex; gap: 14px; }
.watch-log li span:last-child { margin-left: auto; color: var(--signal-ink); }
.watch-log li:first-child { color: var(--ink-2); }
.watch-log:empty { display: none; }
/* Desktop: reserve room for the message and log so the hero doesn't jump. */
@media (min-width: 861px) {
  .watch-note { min-height: calc(3 * 1.55em); }
  .watch-log:empty { display: block; visibility: hidden; }
  .watch-log { min-height: calc(3 * 1.9em + 13px); }
}

/* Browser mock that the eye lands in (pinned transition) */
.mock {
  position: absolute; left: 50%; top: 50%; width: min(980px, 92vw);
  transform: translate(-50%, -50%) scale(.92); opacity: 0; z-index: 1; pointer-events: none;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 14px;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .35);
  overflow: hidden;
}
.mock-bar { display: flex; align-items: flex-end; gap: 2px; padding: 10px 12px 0; background: var(--paper-2); }
.mock-dots { display: flex; gap: 6px; padding: 0 10px 12px 2px; }
.mock-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.mock-tab {
  font: 12px var(--mono); color: var(--ink-3); padding: 9px 16px; border-radius: 10px 10px 0 0;
  display: flex; align-items: center; gap: 8px; white-space: nowrap;
}
.mock-tab.on { background: var(--surface); color: var(--ink); }
.mock-tab .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.mock-body { position: relative; height: min(52vh, 480px); display: grid; place-items: center; }
.mock-caption {
  position: absolute; left: 24px; bottom: 20px; right: 24px;
  display: flex; justify-content: space-between; gap: 16px; font: 12px var(--mono); color: var(--ink-3);
}
.mock-popup {
  position: absolute; right: 18px; top: 14px; width: 220px;
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: 12px; padding: 12px 14px;
  font-size: 13px; box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .4);
}
.mock-popup .row { display: flex; align-items: center; justify-content: space-between; }
.mock-popup .state { font-family: var(--serif); font-size: 22px; }
/* --k: 0 = off, 1 = on; the hero timeline flips it as the popup lands */
.mock-popup .sw { --k: 1; width: 36px; height: 21px; border-radius: 99px; background: var(--ok); position: relative; }
.mock-popup .sw::after { content: ""; position: absolute; left: calc(3px + var(--k) * 15px); top: 3px; width: 15px; height: 15px; border-radius: 50%; background: #fff; }
.mock-popup small { display: block; font: 11px var(--mono); color: var(--ink-3); margin-top: 2px; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .watch-col { order: -1; margin-top: 8px; gap: 12px; }
  .stage { max-width: 300px; }
  .watch-time { font-size: 64px; }
  .mock { display: none; }
}

/* ── Sections ────────────────────────────────────── */
.section { padding: clamp(96px, 14vw, 180px) 0; position: relative; }
#signals { padding-bottom: clamp(48px, 7vw, 96px); }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: end; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head .lede { justify-self: end; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } .section-head .lede { justify-self: start; } }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* Signal stack (sticky cards) */
.stack { position: relative; }
.signal {
  position: sticky; top: calc(88px + var(--i) * 14px);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 22px;
  padding: clamp(24px, 4vw, 56px);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 64px);
  margin-bottom: 28px; transform-origin: 50% 0;
  box-shadow: 0 -20px 50px -40px rgba(0, 0, 0, .35);
}
.signal h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4.2vw, 60px); line-height: 1; letter-spacing: -0.02em; margin: 0 0 22px; }
.signal-cols { display: grid; gap: 22px; align-content: start; }
.signal-cols p { margin: 4px 0 0; color: var(--ink-2); }
.signal-cols .k { font-size: 13px; font-weight: 500; color: var(--ink-3); }
.signal-cols .k.fix { color: var(--ok); }
.signal-viz { grid-column: 2; align-self: stretch; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); position: relative; overflow: hidden; min-height: 220px; }
.signal-body { grid-column: 1; }
@media (max-width: 960px) {
  .signal { grid-template-columns: 1fr; min-height: 0; }
  .signal-body, .signal-viz { grid-column: 1; }
  .signal-viz { min-height: 160px; }
  .signal-cols { padding-top: 0; }
}

/* Tiny diagrams inside signal cards */
.viz-log { position: absolute; inset: 18px; font: 12px/1.9 var(--mono); color: var(--ink-3); }
.viz-log .hit { color: var(--signal-ink); text-decoration: line-through; text-decoration-color: var(--ink-3); }
.viz-log .ok { color: var(--ok); }
.viz-noise { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; }
.viz-noise canvas { width: 100%; height: 100%; image-rendering: pixelated; }
.viz-noise span { position: absolute; bottom: 14px; font: 11px var(--mono); color: var(--ink-3); }

/* Previews */
.previews { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(20px, 3vw, 40px); align-items: start; }
.shot { position: relative; border-radius: 18px; overflow: hidden; background: var(--paper-2); border: 1px solid var(--line); }
.shot img { width: 100%; height: auto; transform-origin: 50% 50%; }
.shot-pad { padding: clamp(28px, 5vw, 64px); display: grid; place-items: center; }
.shot-pad img { border-radius: 14px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .35); max-width: 360px; }
.shot-wrap figcaption, .caption { font-size: 14px; color: var(--ink-3); margin-top: 14px; }
.previews .tall { margin-top: clamp(40px, 10vw, 140px); }
@media (max-width: 860px) { .previews { grid-template-columns: 1fr; } .previews .tall { margin-top: 0; } }

/* Honest limits */
.limits { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.limits > div { padding: 28px 28px 28px 0; border-right: 1px solid var(--line); }
.limits > div + div { padding-left: 28px; }
.limits > div:last-child { border-right: 0; }
.limits h3 { font: 400 26px/1.1 var(--serif); margin: 0 0 10px; letter-spacing: -0.01em; }
.limits p { margin: 0; color: var(--ink-2); font-size: 15px; }
@media (max-width: 860px) {
  .limits { grid-template-columns: 1fr; }
  .limits > div, .limits > div + div { padding: 24px 0; border-right: 0; border-bottom: 1px solid var(--line); }
}

/* FAQ */
.faq { border-top: 1px solid var(--line); max-width: 920px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 24px 40px 24px 0; position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font: 300 28px/1 var(--sans); color: var(--ink-3); transition: transform .25s var(--ease);
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item h3 { margin: 0; font: 400 clamp(22px, 2.4vw, 30px)/1.2 var(--serif); letter-spacing: -0.01em; }
.faq-item p { margin: 0 0 26px; max-width: 70ch; color: var(--ink-2); }
.faq-item a { color: var(--ink); }

/* Final CTA */
.outro { padding: clamp(120px, 18vw, 240px) 0 clamp(80px, 10vw, 140px); text-align: center; overflow: hidden; }
.outro .display { font-size: clamp(64px, 14vw, 220px); }
.outro .hero-actions { justify-content: center; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 14px; color: var(--ink-3); }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
.footer nav { margin-left: auto; display: flex; gap: 20px; }
.footer a { color: var(--ink-2); text-decoration: none; }
.footer a:hover { color: var(--ink); }

/* Reveal helpers (JS adds .js to <html>; without JS everything is visible) */
.js [data-reveal] { opacity: 0; transform: translateY(24px); }
.js [data-clip] { clip-path: inset(100% 0 0 0 round 18px); }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; }
  .js [data-clip] { clip-path: none; }
  * { scroll-behavior: auto !important; }
}

/* ── Inner pages (test, privacy) ─────────────────── */
.page { padding: 120px 0 96px; }
.page-head { display: grid; gap: 18px; margin-bottom: 48px; max-width: 760px; }
.page-head .h2 { font-size: clamp(44px, 6vw, 88px); }
.prose { max-width: 680px; }
.prose h2 { font: 400 30px/1.15 var(--serif); letter-spacing: -0.01em; margin: 48px 0 12px; }
.prose p, .prose li { color: var(--ink-2); }
.prose strong { color: var(--ink); font-weight: 500; }
.prose ul { padding-left: 20px; }
.prose .tldr {
  border-left: 2px solid var(--signal); padding: 4px 0 4px 20px; margin: 0 0 32px;
  font: 400 24px/1.35 var(--serif); color: var(--ink);
}
.meta-line { font: 12px var(--mono); color: var(--ink-3); }
.welcome {
  max-width: 760px; margin: 0 0 40px; padding: 18px 22px;
  background: var(--surface); border: 1px solid var(--line-strong); border-left: 3px solid var(--ok); border-radius: 14px;
}
.welcome p { margin: 0; color: var(--ink-2); }
.welcome .welcome-title { font: 400 26px/1.2 var(--serif); color: var(--ink); margin-bottom: 6px; }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line-strong); border-radius: 18px; overflow: hidden; background: var(--surface); }
.tile { padding: 22px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tile:nth-child(3n) { border-right: 0; }
.tile:nth-last-child(-n+3) { border-bottom: 0; }
.tile .k { font: 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.tile .k.code { text-transform: none; letter-spacing: 0; font-size: 12px; }
.tile .v { font: 400 34px/1.1 var(--serif); margin-top: 10px; display: flex; align-items: center; gap: 10px; }
.tile .v.hash { font: 500 18px var(--mono); margin-top: 14px; }
.tile .v .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-3); flex: none; }
.tile.ok .v { color: var(--ok); }
.tile.ok .dot { background: var(--ok); }
.tile.warn .v { color: var(--signal-ink); }
.tile.warn .dot { background: var(--signal); }
@media (max-width: 720px) {
  .tiles { grid-template-columns: 1fr 1fr; }
  .tile:nth-child(3n) { border-right: 1px solid var(--line); }
  .tile:nth-child(2n) { border-right: 0; }
  .tile:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .tile:nth-last-child(-n+2) { border-bottom: 0; }
}

@media (max-width: 520px) { .log-entry { grid-template-columns: 64px 1fr; } .log-msg { grid-column: 1 / -1; } }
.panel { border: 1px solid var(--line-strong); border-radius: 18px; background: var(--surface); overflow: hidden; }
.panel-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.panel-head .k { font: 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.panel-body { padding: 18px; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.log { height: 340px; overflow-y: auto; font: 12.5px/1.5 var(--mono); padding: 8px 18px; }
.log-entry { display: grid; grid-template-columns: 70px 84px 1fr; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.log-time { color: var(--ink-3); }
.log-type { color: var(--signal-ink); }
.log-entry.system .log-type { color: var(--ink-3); }
.log-msg { color: var(--ink); }

/* Test page: expected results table */
.checks { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: 14.5px; }
.checks th, .checks td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); }
.checks th { font: 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 400; }
.checks td { color: var(--ink-2); }
.checks em { font-style: normal; color: var(--ink); }
@media (max-width: 640px) { .checks th:nth-child(2), .checks td:nth-child(2) { display: none; } }

/* ── Live test: one screen. The result replaces the intro; the eye sits in
   a drawn browser window where a pin marks the spot the cursor left. ── */
.page:has(> .wrap > .arena) { padding-top: 0; }
.page:has(> .wrap > .arena) .welcome:not([hidden]) { margin: 84px 0 0; }
.welcome:not([hidden]) ~ .arena { min-height: calc(100svh - 160px); padding-top: 3vh; }
.arena {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 5vw, 72px); align-items: center;
  min-height: 100svh; padding: calc(64px + 2vh) 0 3vh; box-sizing: border-box;
}
.arena-copy { display: grid; gap: clamp(12px, 2.2vh, 20px); align-content: center; }
.arena .h2 { font-size: clamp(40px, min(6vw, 9vh), 88px); }
.intro { display: grid; gap: clamp(12px, 2.2vh, 18px); }
.arena.has-result .intro { display: none; }
.arena-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.arena-actions .btn:disabled { opacity: .45; cursor: default; box-shadow: none; }
.arena-hint { font-size: 14px; color: var(--ink-3); }

.result { display: grid; gap: clamp(10px, 1.8vh, 16px); animation: verdict-in .5s var(--ease); }
.result[hidden], .result [hidden] { display: none; }
@keyframes verdict-in { from { opacity: 0; transform: translateY(10px); } }
.verdict-title { margin: 0; font: 400 clamp(40px, min(5.5vw, 9vh), 80px)/1 var(--serif); letter-spacing: -0.02em; }
.result.clear .verdict-title { color: var(--ok); }
.facts { display: grid; gap: clamp(8px, 1.6vh, 14px); }
.fact { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: baseline; }
.fact .k, .trail .k { font: 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.fact-v { font-size: clamp(16px, 2.3vh, 19px); color: var(--ink); }
.verdict-signals { margin: 0; font: 12px/1.5 var(--mono); color: var(--signal-ink); }
.verdict-note { margin: 0; color: var(--ink-2); max-width: 40ch; }

/* The browser drawing */
.browser {
  position: relative; justify-self: center; width: min(100%, calc((100svh - 64px - 8vh) * 1.3), 640px); aspect-ratio: 13 / 10;
  display: grid; grid-template-rows: 9% auto 1fr; border: 1px solid var(--line-strong); border-radius: 14px;
  background: var(--paper-2); box-shadow: 0 30px 80px -40px color-mix(in srgb, var(--ink) 45%, transparent);
}
.mm-tabs { display: flex; align-items: flex-end; gap: 4px; padding: 0 10px; border-bottom: 1px solid var(--line); }
.mm-tabs i { width: 9px; height: 9px; margin: 0 2px; align-self: center; border-radius: 50%; background: var(--line-strong); flex: none; }
.mm-tabs i:nth-child(3) { margin-right: 10px; }
.mm-tabs b { flex: 1; height: 70%; border-radius: 6px 6px 0 0; background: color-mix(in srgb, var(--ink) 6%, transparent); transition: background .3s, box-shadow .3s; }
.mm-tabs b.on { background: var(--paper); }
.mm-tabs b.hit { background: color-mix(in srgb, var(--signal) 22%, transparent); box-shadow: inset 0 2px 0 var(--signal); }
.mm-url { height: clamp(14px, 2.6vh, 22px); margin: 2.2% 12px; border-radius: 99px; background: color-mix(in srgb, var(--ink) 7%, transparent); }
.mm-page { margin: 0 10px 10px; border-radius: 8px; background: var(--paper); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(4px, 1.4vh, 14px); padding: 4% 6%; min-height: 0; }
.arena .stage { width: min(72%, 380px); max-width: none; flex: none; }
.arena .eye #lid { transform-box: fill-box; transform-origin: 50% 50%; transition: transform .35s var(--ease); }
.arena .eye .iris { transition: fill .4s var(--ease); }
.arena[data-state="away"] .eye #lid { transform: scaleY(.1); }
.arena[data-state="armed"] .eye #lid { transform: scaleY(.82); }
.arena[data-state="caught"] .eye #lid { animation: eye-pop .5s var(--ease); }
.arena[data-state="clear"] .eye .iris { fill: var(--ok); }
.arena .eye.blink #lid { animation: eye-blink .26s ease-in-out; }
@keyframes eye-blink { 40% { transform: scaleY(.06); } }
@keyframes eye-pop { 0% { transform: scaleY(.1); } 55% { transform: scaleY(1.12); } 100% { transform: scaleY(1); } }

.readout { width: min(100%, 300px); text-align: center; display: grid; gap: 4px; }
.readout-k { margin: 0; font-size: 14px; color: var(--ink-2); min-height: 1.4em; }
.readout-k:empty { display: none; }
.readout-big { margin: 0; min-height: 1em; font: 400 clamp(40px, 8vh, 80px)/1 var(--serif); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--ink); }
.readout-big:empty { display: none; }
.readout-big.tick { animation: count-tick .8s var(--ease); }
@keyframes count-tick { 0% { transform: scale(1.5); opacity: 0; } 30% { transform: scale(1); opacity: 1; } 100% { opacity: .9; } }
.arena:is([data-state="away"], [data-state="caught"]) .readout-big { color: var(--signal); }
.readout-bar { height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.arena:not([data-state="armed"]) .readout-bar { visibility: hidden; }
.readout-bar i { display: block; height: 100%; background: var(--signal); transform: scaleX(0); transform-origin: left; }

.mm-mark {
  position: absolute; z-index: 2; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%;
  background: var(--signal); border: 3px solid var(--paper); animation: mm-ping 1.6s ease-out infinite;
}
.mm-mark[hidden] { display: none; }
@keyframes mm-ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--signal) 55%, transparent); } 100% { box-shadow: 0 0 0 22px transparent; } }

.trail { margin-top: 8px; padding: 18px clamp(20px, 3vw, 36px); border: 1px solid var(--line); border-radius: 18px; }
.trail-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.trail-sum { font: 12px var(--mono); color: var(--ink-3); }
.trail-list { list-style: none; margin: 0; padding: 0; font: 13px/1.5 var(--mono); }
.trail-list li { display: grid; grid-template-columns: 110px 1fr auto; gap: 14px; padding: 8px 0; border-top: 1px dashed var(--line); color: var(--ink-3); }
.trail-list li span:nth-child(2) { color: var(--ink-2); font-family: var(--sans); }
.trail-list li span:last-child { color: var(--signal-ink); }
.trail-list li:first-child span:nth-child(2) { color: var(--ink); }
.trail[hidden] { display: none; }

.raw { margin-top: 40px; border-top: 1px solid var(--line); padding-top: 18px; }
.raw summary { cursor: pointer; font-size: 15px; color: var(--ink-2); width: fit-content; }
.raw summary:hover { color: var(--ink); }
.raw-body { display: grid; gap: 20px; margin-top: 20px; }
.raw .log { height: 260px; }

.fp { display: grid; grid-template-columns: 1fr 1.4fr; gap: 32px; align-items: center; margin-top: 56px; }
.fp-title { margin: 0 0 10px; font: 400 30px/1.15 var(--serif); letter-spacing: -0.01em; }
.fp-copy p { margin: 0; color: var(--ink-2); max-width: 46ch; }

@media (max-width: 860px) {
  .arena { grid-template-columns: 1fr; min-height: 0; padding-top: 88px; gap: 24px; align-items: start; }
  .browser { order: -1; width: 100%; max-width: 480px; }
  .fp { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .trail-list li { grid-template-columns: 1fr auto; }
  .trail-list li span:first-child { display: none; }
  .fp-tiles { grid-template-columns: 1fr; }
  .fp-tiles .tile { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .fp-tiles .tile:last-child { border-bottom: 0 !important; }
}
@media (prefers-reduced-motion: reduce) {
  .arena .eye #lid, .readout-big.tick, .result, .mm-mark { animation: none !important; transition: none !important; }
}

/* ── Language menu ───────────────────────────────── */
.lang-menu { position: relative; }
.lang-menu summary {
  list-style: none; cursor: pointer; font: 12px/1 var(--mono); letter-spacing: .06em; color: var(--ink-2);
  padding: 9px 12px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px;
  transition: color .2s, background-color .2s;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary::after { content: ""; width: 5px; height: 5px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); }
.lang-menu summary:hover, .lang-menu[open] summary { color: var(--ink); background: var(--line); }
.lang-menu ul {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; margin: 0; padding: 6px; list-style: none;
  min-width: 210px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 14px;
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .35);
}
.lang-menu ul a { display: block; padding: 8px 12px; border-radius: 8px; font: 14px var(--sans); color: var(--ink-2); text-decoration: none; }
.lang-menu ul a:hover { background: var(--line); color: var(--ink); }
.lang-menu ul a[aria-current] { color: var(--ink); font-weight: 500; }
.lang-menu ul a[aria-current]::after { content: " ●"; color: var(--signal); font-size: 9px; vertical-align: 2px; }

/* ── Scripts the brand fonts don't cover ─────────── */
/* Instrument Serif and Geist are Latin-only; each language page loads a Noto
   family (see the <!-- i18n --> head block) and gets sizes to match. */
html[lang="bn"] { --serif: "Noto Serif Bengali", Georgia, serif; --sans: "Geist", "Noto Sans Bengali", -apple-system, sans-serif; }
html[lang="hi"] { --serif: "Noto Serif Devanagari", Georgia, serif; --sans: "Geist", "Noto Sans Devanagari", -apple-system, sans-serif; }
html[lang="kn"] { --serif: "Noto Serif Kannada", Georgia, serif; --sans: "Geist", "Noto Sans Kannada", -apple-system, sans-serif; }
html[lang="ml"] { --serif: "Noto Serif Malayalam", Georgia, serif; --sans: "Geist", "Noto Sans Malayalam", -apple-system, sans-serif; }
html[lang="vi"] { --serif: "Noto Serif Display", Georgia, serif; --sans: "Noto Sans", -apple-system, sans-serif; }
html[lang="uk"], html[lang="ru"] { --serif: "Noto Serif Display", Georgia, serif; --sans: "Geist", "Noto Sans", -apple-system, sans-serif; }

html:is([lang="bn"], [lang="hi"], [lang="kn"], [lang="ml"]) .display { font-size: clamp(38px, 6.4vw, 100px); line-height: 1.14; letter-spacing: 0; }
html:is([lang="bn"], [lang="hi"], [lang="kn"], [lang="ml"]) :is(.h2, .page-head .h2) { font-size: clamp(30px, 4.2vw, 60px); line-height: 1.18; letter-spacing: 0; }
html:is([lang="bn"], [lang="hi"], [lang="kn"], [lang="ml"]) :is(.signal h3, .limits h3, .faq-item h3, .prose h2) { line-height: 1.3; letter-spacing: 0; }
html:is([lang="bn"], [lang="hi"], [lang="kn"], [lang="ml"]) em { font-style: normal; }
html:is([lang="bn"], [lang="hi"], [lang="kn"], [lang="ml"]) :is(.eyebrow, .k, .tile .k) { letter-spacing: 0; text-transform: none; }
html:is([lang="vi"], [lang="uk"], [lang="ru"]) .display { font-size: clamp(42px, 7vw, 112px); line-height: 1; letter-spacing: -0.02em; }
html:is([lang="vi"], [lang="uk"], [lang="ru"]) :is(.h2, .page-head .h2) { font-size: clamp(32px, 4.6vw, 66px); line-height: 1.05; letter-spacing: -0.015em; }
html[lang="vi"] [data-split] > * { padding-top: .12em; }
/* Long single words (Malayalam, Kannada) must wrap on phones rather than overflow. */
html:is([lang="bn"], [lang="hi"], [lang="kn"], [lang="ml"], [lang="ru"], [lang="uk"]) :is(.display, .h2, h3) { overflow-wrap: anywhere; }
/* Keep the nav on one line when the button text is long. */
.brand, .nav .btn { white-space: nowrap; }
@media (max-width: 480px) {
  /* The hero's own button sits right below; the nav keeps the language menu. */
  .nav-links .btn { display: none; }
}

/* Chinese and Japanese */
html[lang="zh-CN"] { --serif: "Noto Serif SC", Georgia, serif; --sans: "Geist", "Noto Sans SC", "PingFang SC", sans-serif; }
html[lang="zh-TW"] { --serif: "Noto Serif TC", Georgia, serif; --sans: "Geist", "Noto Sans TC", "PingFang TC", sans-serif; }
html[lang="ja"] { --serif: "Noto Serif JP", Georgia, serif; --sans: "Geist", "Noto Sans JP", "Hiragino Sans", sans-serif; }
html:is([lang="zh-CN"], [lang="zh-TW"], [lang="ja"]) .display { font-size: clamp(36px, 6vw, 96px); line-height: 1.15; letter-spacing: 0; }
html:is([lang="zh-CN"], [lang="zh-TW"], [lang="ja"]) :is(.h2, .page-head .h2) { font-size: clamp(28px, 4vw, 56px); line-height: 1.2; letter-spacing: 0; }
html:is([lang="zh-CN"], [lang="zh-TW"], [lang="ja"]) :is(.signal h3, .limits h3, .faq-item h3, .prose h2) { line-height: 1.35; letter-spacing: 0; }
html:is([lang="zh-CN"], [lang="zh-TW"], [lang="ja"]) em { font-style: normal; }
html:is([lang="zh-CN"], [lang="zh-TW"], [lang="ja"]) :is(.eyebrow, .k, .tile .k) { letter-spacing: 0; text-transform: none; }
/* Japanese display lines run a few characters longer than Chinese; keep each on one line. */
html[lang="ja"] .display { font-size: clamp(30px, 4.5vw, 76px); }
