@font-face { font-family: 'Plex Sans'; src: url('../fonts/plex-sans-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Plex Sans'; src: url('../fonts/plex-sans-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Plex Serif'; src: url('../fonts/plex-serif-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Plex Mono'; src: url('../fonts/plex-mono-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Plex Mono'; src: url('../fonts/plex-mono-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }

:root {
  --paper: #FBFAF7;
  --ink: #1B1F24;
  --ink-2: #4B535C;
  --ink-3: #6B737C;
  --rule: #E3E0D8;
  --tint: #F3F1EB;
  --amber: #9A6400;
  --over: #C2410C;
  --sans: 'Plex Sans', system-ui, -apple-system, sans-serif;
  --serif: 'Plex Serif', Georgia, serif;
  --mono: 'Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #15181C;
    --ink: #ECE9E2;
    --ink-2: #B4BAC1;
    --ink-3: #8A929B;
    --rule: #2B3036;
    --tint: #1C2025;
    --amber: #FFC233;
    --over: #E0662A;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.55 var(--sans); }
a { color: inherit; }
[hidden] { display: none !important; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; }
h2 { font-size: 26px; line-height: 1.2; margin: 0 0 12px; }
.fine { color: var(--ink-3); font-size: 14px; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  max-width: 1040px; margin: 0 auto; padding: 18px 24px 0;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; }
.by { color: var(--ink-2); font-size: 14px; text-underline-offset: 3px; }

main { max-width: 1040px; margin: 0 auto; padding: 0 24px 72px; }
.intro { padding: 44px 0 28px; max-width: 760px; }
h1 { font-size: clamp(34px, 5.4vw, 54px); line-height: 1.07; margin: 0 0 16px; }
.lede { font-size: 19px; color: var(--ink-2); margin: 0; }

/* The panel looks like the marking tool: dark in both themes, so the frame reads the same. */
.rig { background: #12161A; color: #ECE9E2; border-radius: 16px; overflow: hidden; }
.rig-head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 20px; flex-wrap: wrap; padding: 16px 18px; }
.rig-head h2 { font-size: 20px; margin: 0; }
.rig-head p { margin: 0; color: #A7ADB4; font-size: 14px; }
.viewer { position: relative; background: #0B0D10; }
#tr-scene { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.hud { position: absolute; left: 10px; right: 10px; top: 10px; display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; pointer-events: none; }
.hud > * { pointer-events: auto; }
.chip {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 18px;
  background: rgb(11 13 16 / 0.78); color: #ECE9E2; border: 1px solid rgb(255 255 255 / 0.16);
  font: 600 14px var(--sans);
}
.chip.mono { font-family: var(--mono); }
button.chip { cursor: pointer; }
.dock { display: grid; gap: 10px; padding: 12px 18px 18px; border-top: 1px solid #252B31; }
.hint { margin: 0; min-height: 3em; color: #D5D8DA; font-size: 16px; line-height: 1.5; }
.scrub { width: 100%; height: 36px; margin: 0; accent-color: #FFC233; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.marks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.steps button, .marks button {
  min-height: 52px; border-radius: 12px; border: 1px solid #2D343B; background: #1B2026; color: #ECE9E2;
  font: 600 17px var(--mono); cursor: pointer; touch-action: manipulation;
}
.steps button:hover, .marks button:hover { background: #232930; }
.steps button:active, .marks button:active { background: #2B323A; }
.marks button { font: 600 16px var(--sans); display: grid; justify-items: center; line-height: 1.2; }
.marks small { font: 400 12px var(--mono); color: #9AA3AC; }
.marks .ma { border-color: #1F6E75; }
.marks .mb { border-color: #7A5A12; }
.marks .ma.set { background: #0F3C40; }
.marks .mb.set { background: #3D2E0A; }

.result { padding: 18px; background: #191E23; border-top: 1px solid #252B31; }
.tr-speed { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.tr-speed b { font-size: 56px; line-height: 1; font-weight: 600; letter-spacing: -0.02em; }
.tr-speed small { font-size: 20px; color: #FFC233; font-weight: 600; }
.tr-speed span { font: 400 18px var(--mono); color: #A7ADB4; }
.tr-line { font: 14px/1.5 var(--mono); color: #A7ADB4; margin: 8px 0 0; }
.tr-truth { margin: 12px 0 14px; max-width: 68ch; }
.tr-next {
  min-height: 46px; padding: 0 18px; border-radius: 12px; border: 1px solid #FFC233; background: #FFC233; color: #15191E;
  font: 600 16px var(--sans); cursor: pointer;
}

.get { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: start; padding: 64px 0 0; }
.still { margin: 0; }
.still img { display: block; width: 100%; height: auto; border-radius: 8px; }
.still figcaption { color: var(--ink-3); font-size: 14px; margin-top: 8px; }
.plain { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 12px; }
.plain b { font-weight: 600; }
.sample-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 22px; }
.sample-stats div { border-left: 2px solid var(--rule); padding-left: 12px; }
.sample-stats dt { color: var(--ink-2); font-size: 14px; }
.sample-stats dd { margin: 2px 0 0; font-size: 22px; font-weight: 600; }
.cta {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border-radius: 10px;
  background: var(--ink); color: var(--paper); font-weight: 600; text-decoration: none;
}
.get-copy .fine { margin: 10px 0 0; }

.proof { padding: 64px 0 0; }
.checks { display: grid; gap: 16px; }
.check { background: var(--tint); border-radius: 12px; padding: 20px 22px; }
.what { margin: 0 0 10px; color: var(--ink-2); font-size: 15px; }
.vs { margin: 0; }
.vs b { font-size: 34px; line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.vs span { color: var(--ink-2); font-size: 15px; }
.vs.dim b { font-size: 22px; font-weight: 400; color: var(--ink-2); }
.honest { margin: 18px 0 0; max-width: 72ch; color: var(--ink-2); font-size: 15px; }

.who { padding: 64px 0 0; max-width: 680px; }
.who p { margin: 0 0 16px; }
.reach { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.reach > a:not(.cta) { color: var(--ink-2); text-underline-offset: 3px; }
.case-link { margin-left: auto; color: var(--ink-2); font-size: 14px; text-underline-offset: 3px; }

.prose { max-width: 680px; padding-top: 36px; }
.prose h1 { font-size: clamp(30px, 4.5vw, 40px); margin-bottom: 24px; }
.prose h2 { margin: 36px 0 10px; }
.prose p { margin: 0 0 16px; }
.prose ul { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose .reach { margin-top: 32px; }

.foot {
  display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap;
  max-width: 1040px; margin: 0 auto; padding: 18px 24px 28px; border-top: 1px solid var(--rule);
  color: var(--ink-3); font-size: 14px;
}
.foot a { color: var(--ink-2); text-underline-offset: 3px; }

/* Wide screens: frame and controls side by side, so the controls show without scrolling. */
@media (min-width: 900px) {
  .intro { padding: 22px 0 18px; max-width: 860px; }
  h1 { font-size: 40px; margin-bottom: 10px; }
  .lede { font-size: 17px; }
  .rig { display: grid; grid-template-columns: minmax(0, 1fr) 300px; }
  .rig-head { grid-column: 1 / -1; padding: 12px 18px; }
  .dock { align-content: start; border-top: 0; border-left: 1px solid #252B31; padding: 14px 16px; }
  .hint { min-height: 6em; }
  .result { grid-column: 1 / -1; }
}

@media (max-width: 780px) {
  body { font-size: 16px; }
  .top { padding: 14px 16px 0; }
  main { padding: 0 16px 40px; }
  .foot { padding: 16px 16px 24px; }
  .intro { padding: 14px 0 14px; }
  h1 { font-size: 29px; margin-bottom: 8px; }
  .lede { font-size: 15px; line-height: 1.45; }
  .rig-head { padding: 10px 18px; }
  .rig-head p { font-size: 13px; line-height: 1.35; }
  .dock { gap: 8px; padding: 10px 18px 14px; }
  .hint { font-size: 15px; line-height: 1.35; }
  .steps button, .marks button { min-height: 46px; }
  .rig { margin: 0 -16px; border-radius: 0; }
  .get { grid-template-columns: 1fr; gap: 26px; padding-top: 48px; }
  .proof, .who { padding-top: 48px; }
  .tr-speed b { font-size: 48px; }
}
