/* Mirrortown site. An atlas of a synthetic town: paper by day, a lit city by night. */

:root {
  --bg: #f3efe6;
  --bg-2: #ebe5d8;
  --surface: #fbf9f4;
  --surface-2: #f6f2ea;
  --ink: #14171e;
  --ink-2: #353a46;
  --muted: #646976;
  --line: rgba(20, 23, 30, 0.12);
  --line-strong: rgba(20, 23, 30, 0.24);
  --stop: #c97c0c;
  --stop-soft: rgba(217, 138, 22, 0.16);
  --like: #11805f;
  --like-soft: rgba(17, 128, 95, 0.13);
  --annoy: #c8442a;
  --annoy-soft: rgba(200, 68, 42, 0.12);
  --idle: #cdc6b7;
  --past: #b2ab9d;
  --btn-bg: #14171e;
  --btn-ink: #f4f0e8;
  --focus: #c97c0c;
  --shadow: 0 1px 0 rgba(20, 23, 30, 0.04), 0 18px 40px -24px rgba(20, 23, 30, 0.28);
  --grain-opacity: 0.35;

  --f-display: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --f-ui: 'Schibsted Grotesk', 'Segoe UI', system-ui, sans-serif;
  --f-mono: 'Martian Mono', ui-monospace, 'Cascadia Mono', Menlo, monospace;

  --wrap: 1200px;
  --gutter: 16px;
  --radius: 14px;
  --radius-sm: 9px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0c0f15;
    --bg-2: #10141c;
    --surface: #141924;
    --surface-2: #181e2a;
    --ink: #ece7dc;
    --ink-2: #c6c2b8;
    --muted: #9198a6;
    --line: rgba(236, 231, 220, 0.1);
    --line-strong: rgba(236, 231, 220, 0.2);
    --stop: #f2a93b;
    --stop-soft: rgba(242, 169, 59, 0.14);
    --like: #3ccb9c;
    --like-soft: rgba(60, 203, 156, 0.13);
    --annoy: #f0674a;
    --annoy-soft: rgba(240, 103, 74, 0.13);
    --idle: #2b3242;
    --past: #475064;
    --btn-bg: #f2a93b;
    --btn-ink: #14171e;
    --focus: #f2a93b;
    --shadow: 0 1px 0 rgba(0, 0, 0, 0.2), 0 24px 50px -28px rgba(0, 0, 0, 0.7);
    --grain-opacity: 0.18;
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --bg: #0c0f15;
  --bg-2: #10141c;
  --surface: #141924;
  --surface-2: #181e2a;
  --ink: #ece7dc;
  --ink-2: #c6c2b8;
  --muted: #9198a6;
  --line: rgba(236, 231, 220, 0.1);
  --line-strong: rgba(236, 231, 220, 0.2);
  --stop: #f2a93b;
  --stop-soft: rgba(242, 169, 59, 0.14);
  --like: #3ccb9c;
  --like-soft: rgba(60, 203, 156, 0.13);
  --annoy: #f0674a;
  --annoy-soft: rgba(240, 103, 74, 0.13);
  --idle: #2b3242;
  --past: #475064;
  --btn-bg: #f2a93b;
  --btn-ink: #14171e;
  --focus: #f2a93b;
  --shadow: 0 1px 0 rgba(0, 0, 0, 0.2), 0 24px 50px -28px rgba(0, 0, 0, 0.7);
  --grain-opacity: 0.18;
  color-scheme: dark;
}

@media (min-width: 720px) {
  :root {
    --gutter: 32px;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-ui);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* Paper grain */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: var(--grain-opacity);
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.45 0 0 0 0 0.4 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
:root[data-theme='dark'] body::before {
  mix-blend-mode: screen;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) body::before {
    mix-blend-mode: screen;
  }
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover {
  text-decoration-color: var(--stop);
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}
::selection {
  background: var(--stop);
  color: #14171e;
}
p {
  margin: 0 0 1em;
}
h1,
h2,
h3,
h4 {
  font-family: var(--f-display);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 0;
  font-optical-sizing: auto;
}
em {
  font-style: italic;
}
code,
kbd {
  font-family: var(--f-mono);
  font-size: 0.82em;
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 0.08em 0.4em;
  border-radius: 5px;
}
.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 14px;
  border-radius: 8px;
}
.skip:focus {
  top: 12px;
}

/* ---------- Labels, buttons ---------- */
.mono {
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.plate {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.plate b {
  color: var(--ink);
  font-weight: 500;
}
.plate::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line-strong);
}
.btn {
  --b: var(--btn-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid var(--b);
  background: var(--b);
  color: var(--btn-ink);
  font: 600 16px/1.1 var(--f-ui);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -14px var(--b);
}
.btn:active {
  transform: translateY(0);
}
.btn small {
  font-weight: 500;
  opacity: 0.7;
  font-size: 13px;
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  border-color: var(--ink);
  box-shadow: none;
}
.btn-sm {
  min-height: 38px;
  padding: 8px 14px;
  font-size: 14px;
}
.btn[disabled] {
  opacity: 0.55;
  cursor: progress;
  transform: none;
}
.arrow {
  transition: transform 0.2s ease;
}
.btn:hover .arrow {
  transform: translateX(3px);
}

/* ---------- Header ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.head-row {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font: 700 20px/1 var(--f-ui);
  letter-spacing: -0.025em;
  margin-right: auto;
}
.brand svg {
  width: 30px;
  height: 30px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  padding: 8px 10px;
  border-radius: 8px;
}
.nav a:hover,
.nav a[aria-current='page'] {
  color: var(--ink);
  background: var(--bg-2);
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.icon-btn svg {
  width: 18px;
  height: 18px;
}
.icon-btn:hover {
  border-color: var(--ink);
}
.menu-btn {
  display: none;
}
.theme-btn .moon {
  display: none;
}
:root[data-theme='dark'] .theme-btn .sun {
  display: none;
}
:root[data-theme='dark'] .theme-btn .moon {
  display: block;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .theme-btn .sun {
    display: none;
  }
  :root:not([data-theme='light']) .theme-btn .moon {
    display: block;
  }
}
@media (max-width: 900px) {
  .menu-btn {
    display: inline-grid;
  }
  .nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav a {
    padding: 14px 6px;
    font-size: 17px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }
  .site-head.open .nav {
    display: flex;
  }
  .head-cta {
    display: none;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 40px 0 28px;
}
.hero-grid {
  display: grid;
  gap: 32px;
  align-items: center;
}
@media (min-width: 980px) {
  .hero {
    padding: 64px 0 40px;
  }
  .hero-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 48px;
  }
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  color: var(--muted);
}
.eyebrow .pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  background: var(--surface);
}
.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--like);
  box-shadow: 0 0 0 0 var(--like);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--like) 60%, transparent);
  }
  80%,
  100% {
    box-shadow: 0 0 0 9px transparent;
  }
}
.hero h1 {
  font-size: clamp(44px, 7.4vw, 86px);
  line-height: 0.98;
  letter-spacing: -0.028em;
  font-weight: 400;
}
.hero h1 em {
  color: var(--stop);
  font-weight: 400;
}
.hero .lead {
  font-size: clamp(17px, 1.6vw, 19.5px);
  color: var(--ink-2);
  max-width: 34em;
  margin: 24px 0 28px;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.fine {
  font-size: 14px;
  color: var(--muted);
  margin-top: 16px;
}
.fine span + span::before {
  content: '·';
  margin: 0 8px;
  opacity: 0.6;
}

/* The live run card */
.run {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.run-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.run-top .live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}
.run-top .live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--annoy);
  animation: blink 1.4s steps(2) infinite;
}
@keyframes blink {
  50% {
    opacity: 0.2;
  }
}
.run-canvas-wrap {
  position: relative;
  aspect-ratio: 16 / 11;
  min-height: 260px;
  background:
    radial-gradient(ellipse at 50% 45%, color-mix(in srgb, var(--stop) 7%, transparent), transparent 70%),
    var(--surface);
}
.run-canvas-wrap canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: crosshair;
}
.compass {
  position: absolute;
  right: 14px;
  top: 12px;
  color: var(--muted);
  pointer-events: none;
}
.run-content {
  position: absolute;
  left: 14px;
  top: 12px;
  max-width: 64%;
  padding: 8px 11px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border: 1px solid var(--line);
  backdrop-filter: blur(6px);
  pointer-events: none;
}
.run-content .mono {
  color: var(--muted);
  font-size: 10px;
}
.run-content strong {
  display: block;
  font: 500 15px/1.3 var(--f-display);
  font-style: italic;
  margin-top: 2px;
}
.tip {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  min-width: 190px;
  max-width: 250px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--bg);
  font-size: 13px;
  line-height: 1.4;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.15s, transform 0.15s;
}
.tip.show {
  opacity: 1;
  transform: none;
}
.tip b {
  font-weight: 600;
}
.tip .r {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 3px 0 4px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.tip .r i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.tip q {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 14px;
}
.run-hud {
  padding: 14px 16px 16px;
  border-top: 1px solid var(--line);
}
.hud-progress {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  margin-bottom: 10px;
}
.hud-progress b {
  color: var(--ink);
  font-weight: 500;
}
.stack {
  display: flex;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--bg-2);
}
.stack span {
  height: 100%;
  transition: width 0.25s linear;
}
.legend {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.legend div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.legend .k {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12.5px;
}
.legend .k i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: none;
}
.legend .v {
  font: 500 22px/1 var(--f-display);
  font-variant-numeric: tabular-nums;
}
.verdict {
  margin: 14px 0 0;
  min-height: 2.8em;
  font: 400 17px/1.4 var(--f-display);
  font-style: italic;
  color: var(--ink-2);
  transition: opacity 0.4s;
}
.verdict b {
  font-style: normal;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
  margin-right: 8px;
}
@media (max-width: 520px) {
  .legend {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .run-content {
    max-width: 78%;
  }
  .compass {
    display: none;
  }
}

/* ---------- Ledger strip ---------- */
.ledger {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  margin-top: 40px;
}
.ledger div {
  padding: 20px 18px 20px 0;
}
.ledger div + div {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}
.ledger div:nth-child(3) {
  border-left: 0;
  padding-left: 0;
  border-top: 1px solid var(--line);
}
.ledger div:nth-child(4) {
  border-top: 1px solid var(--line);
}
.ledger strong {
  display: block;
  font: 400 clamp(34px, 4.6vw, 52px) / 1 var(--f-display);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.ledger span {
  display: block;
  color: var(--muted);
  font-size: 14.5px;
  margin-top: 8px;
  max-width: 18em;
}
@media (min-width: 820px) {
  .ledger {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .ledger div:nth-child(3),
  .ledger div:nth-child(4) {
    border-top: 0;
  }
  .ledger div:nth-child(3) {
    border-left: 1px solid var(--line);
    padding-left: 18px;
  }
}

/* ---------- Sections ---------- */
.section {
  padding: 76px 0;
}
@media (min-width: 980px) {
  .section {
    padding: 112px 0;
  }
}
.section-head {
  display: grid;
  gap: 18px;
  margin-bottom: 44px;
}
@media (min-width: 980px) {
  .section-head {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: end;
    gap: 48px;
  }
}
.section-head h2 {
  font-size: clamp(36px, 5vw, 62px);
  letter-spacing: -0.025em;
  font-weight: 400;
}
.section-head h2 em {
  color: var(--stop);
}
.section-head p {
  color: var(--ink-2);
  font-size: 18px;
  margin: 0;
}
.band {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* Steps */
.steps {
  display: grid;
  gap: 16px;
  counter-reset: step;
}
@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.step {
  position: relative;
  padding: 26px 24px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}
.step .n {
  font: italic 400 64px/0.8 var(--f-display);
  color: var(--stop);
  margin-bottom: 18px;
}
.step h3 {
  font-size: 27px;
  margin-bottom: 10px;
}
.step p {
  color: var(--ink-2);
  font-size: 16px;
}
.step .mini {
  margin-top: 18px;
  padding: 12px;
  border-radius: 10px;
  background: var(--bg-2);
  border: 1px dashed var(--line-strong);
  font-size: 13.5px;
  color: var(--ink-2);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-size: 13px;
  white-space: nowrap;
}
.chip.on {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.mini .row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid var(--line);
}
.mini .row:last-child {
  border-bottom: 0;
}
.mini q {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 16px;
  color: var(--ink);
}

/* Content types index */
.index {
  display: grid;
  border-top: 1px solid var(--line-strong);
}
@media (min-width: 720px) {
  .index {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 40px;
  }
}
@media (min-width: 1080px) {
  .index {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.index li {
  list-style: none;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 4px 10px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.index .no {
  grid-column: 1;
  grid-row: 1 / span 2;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--muted);
  padding-top: 6px;
}
.index b {
  font: 500 21px/1.2 var(--f-display);
}
.index span:not(.no) {
  grid-column: 2;
  color: var(--muted);
  font-size: 14.5px;
}
.tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  font: 500 10px/1.7 var(--f-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  vertical-align: 3px;
  background: var(--stop-soft);
  color: var(--stop);
}
ul.index {
  margin: 0;
  padding: 0;
}

/* Results report */
.report {
  display: grid;
  gap: 16px;
}
@media (min-width: 980px) {
  .report {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }
}
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 22px;
}
.card h3 {
  font-size: 24px;
  margin-bottom: 8px;
}
.card .mono {
  color: var(--muted);
}
.report-verdict {
  font: 400 clamp(24px, 2.6vw, 32px) / 1.2 var(--f-display);
  letter-spacing: -0.01em;
  margin: 10px 0 20px;
}
.report-verdict mark {
  background: linear-gradient(transparent 58%, var(--stop-soft) 58%);
  color: inherit;
}
.bars {
  display: grid;
  gap: 10px;
}
.bar {
  display: grid;
  grid-template-columns: 110px 1fr 46px;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
}
.bar .track {
  height: 8px;
  border-radius: 999px;
  background: var(--bg-2);
  overflow: hidden;
}
.bar .fill {
  height: 100%;
  border-radius: 999px;
  width: var(--w);
}
.bar .pct {
  text-align: right;
  font-family: var(--f-mono);
  font-size: 12.5px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 22px;
}
.metrics div {
  background: var(--surface);
  padding: 12px;
}
.metrics strong {
  display: block;
  font: 400 26px/1 var(--f-display);
  font-variant-numeric: tabular-nums;
}
.metrics span {
  font-size: 12.5px;
  color: var(--muted);
}
.heat {
  position: relative;
  aspect-ratio: 4 / 3;
  margin: 10px 0 12px;
}
.heat canvas {
  width: 100%;
  height: 100%;
}
.heat-scale {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
.heat-scale i {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--idle), var(--stop));
}
.segs {
  list-style: none;
  margin: 0;
  padding: 0;
}
.segs li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.segs li:last-child {
  border-bottom: 0;
}
.segs .d {
  font-family: var(--f-mono);
  font-size: 12px;
  white-space: nowrap;
}
.up {
  color: var(--like);
}
.down {
  color: var(--annoy);
}
.voices {
  display: grid;
  gap: 12px;
}
@media (min-width: 720px) {
  .voices {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.voice {
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  border-top: 3px solid var(--c);
}
.voice q {
  display: block;
  font: italic 400 19px/1.35 var(--f-display);
  margin-bottom: 12px;
}
.voice q::before,
.voice q::after {
  content: none;
}
.voice small {
  color: var(--muted);
  font-size: 13px;
}
.extras {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 16px;
}
@media (min-width: 720px) {
  .extras {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1080px) {
  .extras {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.extras div {
  background: var(--surface);
  padding: 20px;
}
.extras h4 {
  font-size: 20px;
  margin-bottom: 6px;
}
.extras p {
  color: var(--muted);
  font-size: 14.5px;
  margin: 0;
}
.sample-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 14px;
}

/* Templates */
.tpl-grid {
  display: grid;
  gap: 16px;
}
@media (min-width: 980px) {
  .tpl-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }
}
.pop-list {
  display: grid;
  gap: 10px;
}
@media (min-width: 620px) {
  .pop-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.pop {
  position: relative;
  padding: 16px 16px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
}
.pop .mono {
  font-size: 10px;
  color: var(--muted);
}
.pop h4 {
  font-size: 20px;
  margin: 6px 0 4px;
}
.pop p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}
.pop.featured {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.pop.featured p,
.pop.featured .mono {
  color: color-mix(in srgb, var(--bg) 70%, transparent);
}
@media (min-width: 620px) {
  .pop.featured {
    grid-template-columns: 1fr 160px;
    align-items: center;
  }
}
.pop .dots {
  width: 100%;
  height: 90px;
}
.sub-h {
  font: 500 13px/1 var(--f-mono);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 26px 0 12px;
}
.sub-h:first-child {
  margin-top: 0;
}
.starter {
  display: grid;
  gap: 8px;
}
.starter a,
.starter div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  text-decoration: none;
  font-weight: 500;
}
.starter .mono {
  color: var(--muted);
  font-size: 10px;
}
.funnel {
  display: grid;
  gap: 4px;
}
.funnel div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
  width: var(--w);
  padding: 9px 14px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--stop) var(--a), var(--surface));
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 500;
}
.funnel div span {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-2);
}

/* Modes */
.modes {
  display: grid;
  gap: 12px;
}
@media (min-width: 680px) {
  .modes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1080px) {
  .modes {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.mode {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 16px;
  display: flex;
  flex-direction: column;
}
.mode .viz {
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  background: var(--bg-2);
  margin-bottom: 14px;
  overflow: hidden;
}
.mode .viz svg {
  width: 100%;
  height: 100%;
}
.mode h4 {
  font-size: 21px;
  margin-bottom: 4px;
}
.mode p {
  color: var(--muted);
  font-size: 14.5px;
  margin: 0;
}
.mode.wide {
  justify-content: center;
  background: transparent;
  border-style: dashed;
}
.mode.wide p {
  color: var(--ink-2);
  font-size: 15.5px;
}

/* BYOK */
.byok {
  display: grid;
  gap: 16px;
}
@media (min-width: 980px) {
  .byok {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  }
}
.flow {
  display: grid;
  gap: 10px;
}
.flow-node {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}
.flow-node .ic {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--bg-2);
  font: 500 12px/1 var(--f-mono);
}
.flow-node h4 {
  font-size: 21px;
  margin-bottom: 4px;
}
.flow-node p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
.flow-arrow {
  height: 20px;
  margin-left: 39px;
  border-left: 1px dashed var(--line-strong);
}
.calc {
  position: relative;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.calc .mono {
  color: color-mix(in srgb, var(--bg) 62%, transparent);
}
.calc label {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  margin-bottom: 8px;
}
.calc output {
  font-family: var(--f-mono);
  font-size: 14px;
}
.calc input[type='range'] {
  width: 100%;
  accent-color: var(--stop);
}
.calc .total {
  font: 400 clamp(54px, 7vw, 76px) / 1 var(--f-display);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.calc .total small {
  font-size: 0.32em;
  letter-spacing: 0;
  margin-left: 8px;
  opacity: 0.7;
}
.calc p {
  margin: 0;
  font-size: 13.5px;
  color: color-mix(in srgb, var(--bg) 70%, transparent);
}
.calc hr {
  border: 0;
  border-top: 1px solid color-mix(in srgb, var(--bg) 18%, transparent);
  margin: 0;
  width: 100%;
}

/* Pricing */
.deal-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.deal-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--stop);
  color: #14171e;
  font: 600 13px/1 var(--f-ui);
}
.tiers {
  display: grid;
  gap: 14px;
}
@media (min-width: 940px) {
  .tiers {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }
}
.tier {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 24px 24px;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
}
.tier.mid {
  border: 2px solid var(--ink);
  box-shadow: var(--shadow);
}
.tier .codes {
  display: flex;
  gap: 5px;
  margin-bottom: 18px;
}
.tier .codes i {
  width: 30px;
  height: 18px;
  border-radius: 4px;
  border: 1.5px solid var(--ink);
  position: relative;
}
.tier .codes i::after {
  content: '';
  position: absolute;
  left: 50%;
  top: -2px;
  bottom: -2px;
  border-left: 1.5px dashed var(--line-strong);
}
.tier .codes i.on {
  background: var(--stop);
  border-color: var(--stop);
}
.tier h3 {
  font-size: 30px;
  margin-bottom: 4px;
}
.tier .who {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 16px;
}
.price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 4px;
}
.price strong {
  font: 400 60px/1 var(--f-display);
  letter-spacing: -0.03em;
}
.price s {
  color: var(--muted);
  font-size: 19px;
}
.price-note {
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 20px;
}
.tier ul {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 9px;
  font-size: 15.5px;
}
.tier li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 8px;
}
.tier li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--like);
  margin: 7px 0 0 4px;
}
.tier li.plus::before {
  background: var(--stop);
}
.tier .btn {
  margin-top: auto;
  width: 100%;
}
.ribbon {
  position: absolute;
  top: -12px;
  right: 18px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font: 500 10.5px/1.4 var(--f-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.all-tiers {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px dashed var(--line-strong);
  font-size: 15px;
}
@media (min-width: 820px) {
  .all-tiers {
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 24px;
  }
}
.all-tiers .chips .chip {
  background: transparent;
}

/* Honesty note */
.honest {
  display: grid;
  gap: 18px;
  padding: 28px;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  background:
    repeating-linear-gradient(-45deg, transparent 0 10px, color-mix(in srgb, var(--ink) 3%, transparent) 10px 11px),
    var(--surface);
}
@media (min-width: 900px) {
  .honest {
    grid-template-columns: 220px 1fr;
    gap: 36px;
    padding: 36px;
  }
}
.honest h3 {
  font-size: 30px;
}
.honest p {
  color: var(--ink-2);
  font-size: 17px;
}
.honest p:last-child {
  margin: 0;
}

/* FAQ */
.faq {
  border-top: 1px solid var(--line-strong);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr 28px;
  gap: 16px;
  align-items: center;
  padding: 22px 0;
  font: 400 clamp(21px, 2.3vw, 26px) / 1.25 var(--f-display);
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  font: 300 26px/1 var(--f-ui);
  text-align: center;
  color: var(--muted);
  transition: transform 0.2s;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
  color: var(--stop);
}
.faq .a {
  padding: 0 0 24px;
  max-width: 46em;
  color: var(--ink-2);
}
.faq .a p:last-child {
  margin: 0;
}

/* Closing CTA */
.closing {
  text-align: center;
  padding: 90px 0 100px;
}
.closing h2 {
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 400;
  letter-spacing: -0.03em;
  max-width: 14em;
  margin: 0 auto 26px;
}
.closing h2 em {
  color: var(--stop);
}
.closing .cta-row {
  justify-content: center;
}

/* ---------- Footer ---------- */
.site-foot {
  border-top: 1px solid var(--line-strong);
  padding: 44px 0 36px;
  font-size: 15px;
  color: var(--ink-2);
}
.foot-grid {
  display: grid;
  gap: 28px;
}
@media (min-width: 820px) {
  .foot-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}
.site-foot h4 {
  font: 500 11.5px/1 var(--f-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.site-foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.site-foot a {
  text-decoration: none;
}
.site-foot a:hover {
  text-decoration: underline;
}
.foot-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--muted);
}

/* ---------- Inner pages ---------- */
.page-hero {
  padding: 56px 0 30px;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 400;
  letter-spacing: -0.028em;
  max-width: 13em;
}
.page-hero h1 em {
  color: var(--stop);
}
.page-hero p {
  font-size: 19px;
  color: var(--ink-2);
  max-width: 36em;
  margin: 18px 0 0;
}
.prose {
  max-width: 44em;
}
.prose h2 {
  font-size: clamp(28px, 3.4vw, 38px);
  margin: 52px 0 14px;
  letter-spacing: -0.02em;
}
.prose h3 {
  font-size: 23px;
  margin: 30px 0 10px;
}
.prose p,
.prose li {
  color: var(--ink-2);
}
.prose ul,
.prose ol {
  padding-left: 1.25em;
  margin: 0 0 1em;
}
.prose li {
  margin-bottom: 6px;
}
.prose li::marker {
  color: var(--stop);
}
.callout {
  margin: 20px 0;
  padding: 16px 18px;
  border-left: 3px solid var(--stop);
  background: var(--surface);
  border-radius: 0 10px 10px 0;
  font-size: 15.5px;
  color: var(--ink-2);
}
.callout strong {
  color: var(--ink);
}

/* Docs layout */
.docs {
  display: grid;
  gap: 32px;
  padding-top: 40px;
  padding-bottom: 90px;
}
@media (min-width: 980px) {
  .docs {
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 64px;
  }
}
.toc {
  font-size: 15px;
}
@media (min-width: 980px) {
  .toc {
    position: sticky;
    top: 90px;
    align-self: start;
  }
}
.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: toc;
  border-left: 1px solid var(--line-strong);
}
.toc li {
  counter-increment: toc;
}
.toc a {
  display: block;
  padding: 6px 0 6px 16px;
  margin-left: -1px;
  border-left: 2px solid transparent;
  text-decoration: none;
  color: var(--ink-2);
}
.toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--f-mono);
  font-size: 10.5px;
  color: var(--muted);
  margin-right: 10px;
}
.toc a:hover,
.toc a.active {
  color: var(--ink);
  border-left-color: var(--stop);
}
.docs .prose h2:first-child {
  margin-top: 0;
}
.docs .prose h2 {
  padding-top: 8px;
}
.kbd-path {
  font-family: var(--f-mono);
  font-size: 0.82em;
  white-space: nowrap;
  padding: 0.12em 0.45em;
  border-radius: 5px;
  background: var(--stop-soft);
  color: var(--ink);
}

/* Download */
.dl-grid {
  display: grid;
  gap: 14px;
  padding: 40px 0 20px;
}
@media (min-width: 900px) {
  .dl-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.dl {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
}
.dl.yours {
  border: 2px solid var(--stop);
}
.dl .os {
  display: flex;
  align-items: center;
  gap: 12px;
}
.dl .os svg {
  width: 30px;
  height: 30px;
}
.dl h3 {
  font-size: 28px;
}
.dl p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
.dl .btn {
  margin-top: auto;
}
.dl .yours-tag {
  display: none;
  color: var(--stop);
}
.dl.yours .yours-tag {
  display: inline;
}

/* Redeem */
.redeem {
  display: grid;
  gap: 28px;
  padding-top: 40px;
  padding-bottom: 90px;
}
@media (min-width: 980px) {
  .redeem {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: 56px;
    align-items: start;
  }
}
.form-card {
  padding: 26px;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.field {
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
}
.field label {
  font-weight: 600;
  font-size: 15px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.field label span {
  font-weight: 400;
  color: var(--muted);
}
.input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.2 var(--f-ui);
}
.input:focus {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
  border-color: transparent;
}
.input.code {
  font-family: var(--f-mono);
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.input.code::placeholder {
  letter-spacing: 0.04em;
}
.input[aria-invalid='true'] {
  border-color: var(--annoy);
}
.code-row {
  position: relative;
}
.code-row .ok {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--idle);
  transition: background 0.2s;
}
.code-row.valid .ok {
  background: var(--like);
}
.tier-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  margin: 4px 0 18px;
  border-radius: 10px;
  background: var(--bg-2);
  font-size: 15px;
}
.tier-preview .codes {
  display: flex;
  gap: 4px;
}
.tier-preview .codes i {
  width: 18px;
  height: 11px;
  border-radius: 3px;
  border: 1.5px solid var(--line-strong);
}
.tier-preview .codes i.on {
  background: var(--stop);
  border-color: var(--stop);
}
.form-error {
  min-height: 1.4em;
  margin: 0 0 12px;
  color: var(--annoy);
  font-weight: 500;
  font-size: 15px;
}
.result {
  margin-top: 4px;
}
.result[hidden] {
  display: none;
}
.license-box {
  position: relative;
  margin: 14px 0;
}
.license-box textarea {
  width: 100%;
  min-height: 130px;
  resize: vertical;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--ink);
  font: 400 12.5px/1.55 var(--f-mono);
  word-break: break-all;
}
.success-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}
.success-head .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--like);
  box-shadow: 0 0 0 6px var(--like-soft);
}
.success-head h2 {
  font-size: 32px;
}
.unlocked {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
  font-size: 15px;
  color: var(--ink-2);
}
.unlocked li::before {
  content: '— ';
  color: var(--stop);
}
.dl-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 0;
}
.activate {
  list-style: none;
  counter-reset: a;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.activate li {
  counter-increment: a;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.activate li::before {
  content: counter(a);
  font: italic 400 46px/0.9 var(--f-display);
  color: var(--stop);
}
.activate h3 {
  font-size: 22px;
  margin-bottom: 4px;
}
.activate p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
.stack-note {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--stop-soft);
  font-size: 15px;
}

/* Reveal on scroll (only when JS is on) */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Load choreography for the hero */
.hero .rise {
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero .rise:nth-child(2) {
  animation-delay: 0.08s;
}
.hero .rise:nth-child(3) {
  animation-delay: 0.16s;
}
.hero .rise:nth-child(4) {
  animation-delay: 0.24s;
}
.hero .rise:nth-child(5) {
  animation-delay: 0.32s;
}
.hero .run.rise {
  animation-delay: 0.2s;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 20px);
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 120;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Mode diagrams */
.viz .i {
  fill: var(--idle);
}
.viz .s {
  fill: var(--stop);
}
.viz .l {
  fill: var(--like);
}
.viz .a {
  fill: var(--annoy);
}
.viz .p {
  fill: var(--past);
}
.viz .big {
  stroke: var(--ink);
  stroke-width: 2;
}
.viz .div {
  stroke: var(--line-strong);
  stroke-dasharray: 3 4;
}
.viz .edge {
  stroke: var(--stop);
  stroke-opacity: 0.55;
  stroke-width: 1.2;
}
.viz .seg {
  fill: var(--stop-soft);
  stroke: var(--stop);
  stroke-dasharray: 4 4;
}
.viz .curve {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.5;
  stroke-dasharray: 2 4;
}
.viz text {
  fill: var(--muted);
  font: 500 9px var(--f-mono);
  letter-spacing: 0.04em;
}
.viz .lbl {
  fill: var(--surface);
  stroke: var(--line);
}
.viz .badge {
  fill: var(--ink);
}
.viz .bt {
  fill: var(--bg);
  font-size: 11px;
}

.run-top > span {
  white-space: nowrap;
}
@media (max-width: 520px) {
  .run-top {
    font-size: 10px;
    padding: 10px 12px;
  }
  .hero h1 {
    font-size: clamp(40px, 11vw, 52px);
  }
}
.hud-progress {
  flex-wrap: wrap;
  gap: 4px 12px;
}
@media (max-width: 520px) {
  .run-content strong {
    font-size: 13px;
  }
  .hud-progress span:last-child {
    display: none;
  }
}
