/* ============================================================
   Why Is Pain — marketing site
   Fonts vendored locally (Geist + Instrument Serif, the app's
   real typefaces). Colours are the app's real brand tokens.
   ============================================================ */

/* ---------- fonts ---------- */
@font-face {
  font-family: 'Instrument Serif';
  src: url('assets/fonts/InstrumentSerif_400Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('assets/fonts/InstrumentSerif_400Regular_Italic.ttf')
    format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('assets/fonts/Geist_400Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('assets/fonts/Geist_500Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('assets/fonts/Geist_600SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- tokens (from packages/theme) ---------- */
:root {
  --bg: #faf7f2;
  --bg-deep: #f1eadc;
  --bg-frame: #e9e2d4;
  --surface: #ffffff;
  --border: #e8e0d2;

  --ink: #2a2620;
  --ink-soft: #6b6357;
  --ink-faint: #a39b8e;

  --mild: #e8c16a;
  --mild-ink: #7a5a07;
  --mild-tint: #f6e7bb;
  --mild-border: #e1c988;
  --medium: #d8884a;
  --medium-ink: #7a3f05;
  --medium-tint: #f0cdb0;
  --medium-border: #dda985;
  --severe: #c25342;
  --severe-ink: #7a1a0e;
  --severe-tint: #e8b6ab;
  --severe-border: #ce8c7e;

  --shadow: rgba(28, 24, 18, 0.18);
  --shadow-soft: rgba(28, 24, 18, 0.08);

  --serif:
    'Instrument Serif', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans:
    'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Helvetica,
    Arial, sans-serif;

  --maxw: 1180px;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1e1a15;
    --bg-deep: #262019;
    --bg-frame: #2e2820;
    --surface: #2a241d;
    --border: #3b342a;

    --ink: #f3ecdf;
    --ink-soft: #c3b9a8;
    --ink-faint: #8a8072;

    --mild-tint: #423613;
    --medium-tint: #4a2f16;
    --severe-tint: #4a241c;

    --shadow: rgba(0, 0, 0, 0.5);
    --shadow-soft: rgba(0, 0, 0, 0.28);
  }
}

/* ---------- reset-ish ---------- */
*,
*::before,
*::after {
  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(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.96rem + 0.3vw, 1.125rem);
  line-height: 1.62;
  font-feature-settings: 'ss01', 'cv01';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 400;
}
p {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
em {
  font-style: italic;
}
b {
  font-weight: 600;
}
i {
  font-style: italic;
}

/* ---------- paper grain overlay ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.5;
  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='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.055'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
  .grain {
    mix-blend-mode: screen;
    opacity: 0.6;
  }
}

/* ---------- shared type ---------- */
.display {
  font-family: var(--serif);
  line-height: 0.98;
  letter-spacing: -0.01em;
  font-size: clamp(2.9rem, 1.9rem + 5.2vw, 6.2rem);
}
.display em {
  color: var(--ink);
}
.display--md {
  font-size: clamp(2.3rem, 1.6rem + 3.4vw, 4.1rem);
}
.display--lg {
  font-size: clamp(3rem, 1.9rem + 5.6vw, 6.6rem);
}

.statement {
  font-family: var(--serif);
  font-size: clamp(2rem, 1.4rem + 3vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  max-width: 18ch;
}
.statement em {
  color: var(--severe);
}
.statement--center {
  margin-inline: auto;
  text-align: center;
  max-width: 20ch;
}
.statement__accent {
  position: relative;
  white-space: nowrap;
  color: var(--medium-ink);
}
.statement__accent::after {
  content: '';
  position: absolute;
  left: -0.05em;
  right: -0.05em;
  bottom: 0.08em;
  height: 0.34em;
  background: var(--medium-tint);
  z-index: -1;
  border-radius: 2px;
  transform: rotate(-0.6deg);
}

.eyebrow {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1.4rem;
}
.eyebrow--light {
  color: var(--ink-faint);
}

.section-index {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 1.5rem;
}

/* ---------- layout primitives ---------- */
main {
  position: relative;
  z-index: 2;
}
section {
  padding-inline: var(--gutter);
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.9rem var(--gutter);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
}
.nav__mark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-right: auto;
}
.nav__dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--severe);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--severe) 22%, transparent);
}
.nav__name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
}
.nav__links {
  display: flex;
  gap: 1.6rem;
}
.nav__links a {
  font-size: 0.92rem;
  color: var(--ink-soft);
  position: relative;
  padding: 0.2rem 0;
  transition: color 0.25s var(--ease);
}
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 1.5px;
  width: 0;
  background: var(--ink);
  transition: width 0.3s var(--ease);
}
.nav__links a:hover {
  color: var(--ink);
}
.nav__links a:hover::after {
  width: 100%;
}
.nav__cta {
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  transition:
    transform 0.2s var(--ease),
    background 0.2s var(--ease);
}
.nav__cta:hover {
  transform: translateY(-1px);
}
@media (max-width: 640px) {
  .nav__links {
    display: none;
  }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.98rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition:
    transform 0.2s var(--ease),
    box-shadow 0.25s var(--ease),
    background 0.2s var(--ease);
}
.btn--solid {
  background: var(--ink);
  color: var(--bg);
  box-shadow: 0 8px 22px -12px var(--shadow);
}
.btn--solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -12px var(--shadow);
}
.btn--ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--ink);
}
.btn--ghost:hover {
  background: var(--bg-deep);
  transform: translateY(-1px);
}
.btn--lg {
  padding: 1.05rem 2.1rem;
  font-size: 1.08rem;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding-top: clamp(2.5rem, 4vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 7rem);
}
.hero__grid {
  max-width: var(--maxw);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 2.75rem;
  }
}

.hero__lede {
  max-width: 34rem;
}
.hero h1 {
  margin-bottom: 1.75rem;
}
.hero h1 em {
  color: var(--severe);
}
.hero__sub {
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 30rem;
  line-height: 1.55;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.1rem;
}
.hero__fineprint {
  margin-top: 1.35rem;
  font-size: 0.9rem;
  color: var(--ink-faint);
}

/* the ledger card */
.ledger {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.5rem 1.6rem 1.4rem;
  box-shadow:
    0 30px 60px -34px var(--shadow),
    0 2px 0 var(--bg-frame);
  transform: rotate(1.1deg);
  transition: transform 0.4s var(--ease);
}
.ledger:hover {
  transform: rotate(0deg);
}
.ledger::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--bg-deep) 40%, transparent),
    transparent 30%
  );
}
.ledger__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 0.9rem;
  margin-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}
.ledger__date {
  font-family: var(--serif);
  font-size: 1.5rem;
}
.ledger__date em {
  color: var(--severe);
}
.ledger__meta {
  font-size: 0.78rem;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
}
.ledger__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ledger__row {
  display: flex;
  gap: 0.9rem;
  align-items: baseline;
  padding: 0.62rem 0;
  border-bottom: 1px dashed color-mix(in srgb, var(--border) 80%, transparent);
  font-size: 0.96rem;
}
.ledger__row:last-child {
  border-bottom: 0;
}
.ledger__time {
  font-variant-numeric: tabular-nums;
  color: var(--ink-faint);
  font-size: 0.85rem;
  min-width: 3.1rem;
}
.ledger__what {
  color: var(--ink);
}
.ledger__row--suspect .ledger__what {
  color: var(--ink);
}
.tag {
  display: inline-block;
  font-style: normal;
  font-size: 0.7rem;
  padding: 0.05rem 0.4rem;
  margin-left: 0.3rem;
  border-radius: 999px;
  background: var(--bg-deep);
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  vertical-align: middle;
}
.painchip {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  margin-right: 0.35rem;
}
.painchip--medium {
  background: var(--medium-tint);
  color: var(--medium-ink);
  border: 1px solid var(--medium-border);
}
/* The tint darkens in dark mode, so the ink shade would sit on top of itself. */
@media (prefers-color-scheme: dark) {
  .painchip--medium {
    color: var(--medium);
    border-color: color-mix(in srgb, var(--medium) 55%, transparent);
  }
}
.ledger__row--pain {
  padding-top: 0.75rem;
}

.ledger__window {
  margin-top: 1rem;
  position: relative;
}
.ledger__window-line {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--medium) 0 6px,
    transparent 6px 12px
  );
  opacity: 0.7;
}
.ledger__window-label {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--medium-ink);
  font-style: italic;
  font-family: var(--serif);
  font-size: 0.95rem;
}
@media (prefers-color-scheme: dark) {
  .ledger__window-label {
    color: var(--medium);
  }
}

/* scroll cue */
.scrollcue {
  display: grid;
  place-items: center;
  width: 26px;
  height: 42px;
  margin: clamp(2rem, 5vw, 4rem) auto 0;
  border: 1.5px solid var(--ink-faint);
  border-radius: 999px;
}
.scrollcue span {
  width: 4px;
  height: 8px;
  border-radius: 4px;
  background: var(--ink-faint);
  animation: cue 1.8s var(--ease) infinite;
}
@keyframes cue {
  0%,
  100% {
    transform: translateY(-4px);
    opacity: 0.2;
  }
  50% {
    transform: translateY(5px);
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .scrollcue span {
    animation: none;
  }
}

/* ============================================================
   PROBLEM
   ============================================================ */
.problem {
  max-width: var(--maxw);
  margin: clamp(3rem, 7vw, 7rem) auto 0;
  padding-top: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(2rem, 5vw, 4rem);
  border-top: 1px solid var(--border);
}
.problem .statement {
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
  max-width: 22ch;
}
.problem__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  max-width: 52rem;
  margin-left: auto;
}
.problem__cols p {
  color: var(--ink-soft);
  font-size: 1.08rem;
}
@media (max-width: 720px) {
  .problem__cols {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* ============================================================
   LOOP
   ============================================================ */
.loop {
  max-width: var(--maxw);
  margin: clamp(3rem, 8vw, 8rem) auto 0;
  padding-block: clamp(2.5rem, 5vw, 5rem);
}
.loop__intro {
  max-width: 40rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.loop h2 em {
  color: var(--severe);
}
.loop__note {
  margin-top: 1.5rem;
  color: var(--ink-soft);
  font-size: 1.08rem;
  max-width: 38rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}
@media (max-width: 820px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.6rem 1.5rem 1.5rem;
  box-shadow: 0 18px 40px -30px var(--shadow);
  display: flex;
  flex-direction: column;
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}
.step:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 48px -28px var(--shadow);
}
.step__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 2.4rem;
  color: var(--ink-faint);
  line-height: 1;
  margin-bottom: 0.9rem;
}
.step:nth-child(1) .step__num {
  color: var(--mild);
}
.step:nth-child(2) .step__num {
  color: var(--medium);
}
.step:nth-child(3) .step__num {
  color: var(--severe);
}
.step__title {
  font-family: var(--serif);
  font-size: 1.7rem;
  margin-bottom: 0.7rem;
}
.step__body {
  color: var(--ink-soft);
  font-size: 0.98rem;
  flex: 1;
}
.step__stat {
  margin-top: 1.3rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border);
  font-size: 0.85rem;
  color: var(--ink-faint);
  letter-spacing: 0.03em;
}
.step__stat b {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.sev {
  font-weight: 500;
  padding: 0.02rem 0.35rem;
  border-radius: 5px;
}
.sev--mild {
  background: var(--mild-tint);
  color: var(--mild-ink);
}
.sev--medium {
  background: var(--medium-tint);
  color: var(--medium-ink);
}
.sev--severe {
  background: var(--severe-tint);
  color: var(--severe-ink);
}
@media (prefers-color-scheme: dark) {
  .sev--mild {
    color: var(--mild);
  }
  .sev--medium {
    color: var(--medium);
  }
  .sev--severe {
    color: var(--severe);
  }
}

/* timeline */
.timeline {
  margin: clamp(3rem, 6vw, 5rem) 0 0;
  padding: clamp(1.75rem, 3vw, 2.75rem);
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 22px;
}
.timeline__cap {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1rem + 0.7vw, 1.5rem);
  line-height: 1.35;
  color: var(--ink-soft);
  max-width: 46rem;
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}
.timeline__cap em {
  color: var(--ink);
}
.timeline__track {
  position: relative;
  height: 120px;
}
.timeline__line {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--ink-faint) 8%,
    var(--ink-faint) 92%,
    transparent
  );
  opacity: 0.5;
}
.timeline__window {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: var(--w-start);
  width: calc(var(--w-end) - var(--w-start));
  height: 78px;
  background: color-mix(in srgb, var(--medium) 14%, transparent);
  border-left: 1.5px dashed var(--medium-border);
  border-right: 1.5px dashed var(--medium-border);
  border-radius: 6px;
}
.timeline__window-tag {
  position: absolute;
  top: -1.55rem;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--medium-ink);
  font-weight: 500;
}
@media (prefers-color-scheme: dark) {
  .timeline__window-tag {
    color: var(--medium);
  }
}

.tl-event {
  position: absolute;
  top: 50%;
  left: var(--at);
  transform: translate(-50%, -50%);
}
.tl-dot {
  display: block;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--ink-faint);
  border: 3px solid var(--bg-deep);
  box-shadow: 0 0 0 1px var(--ink-faint);
}
.tl-dot--food {
  background: var(--ink-soft);
  box-shadow: 0 0 0 1px var(--ink-soft);
}
.tl-dot--flag {
  background: var(--severe);
  box-shadow:
    0 0 0 1px var(--severe),
    0 0 0 6px color-mix(in srgb, var(--severe) 20%, transparent);
}
.tl-dot--pain {
  width: 19px;
  height: 19px;
  background: var(--medium);
  box-shadow:
    0 0 0 1px var(--medium-border),
    0 0 0 7px color-mix(in srgb, var(--medium) 22%, transparent);
}
.tl-lab {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.76rem;
  text-align: center;
  color: var(--ink-soft);
  line-height: 1.25;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.tl-lab i {
  color: var(--ink-faint);
  font-size: 0.72rem;
}
.tl-lab--up {
  bottom: 1.5rem;
}
.tl-lab--down {
  top: 1.6rem;
}
.tl-lab--pain {
  color: var(--medium-ink);
  font-weight: 500;
}
.tl-lab--pain i {
  color: var(--medium-ink);
}
@media (prefers-color-scheme: dark) {
  .tl-lab--pain,
  .tl-lab--pain i {
    color: var(--medium);
  }
}

/* ============================================================
   PAYOFF
   ============================================================ */
.payoff {
  max-width: var(--maxw);
  margin: clamp(3rem, 8vw, 8rem) auto 0;
  padding-block: clamp(2.5rem, 5vw, 5rem);
}
.payoff__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
@media (max-width: 900px) {
  .payoff__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}
.payoff__copy {
  position: sticky;
  top: 6rem;
}
@media (max-width: 900px) {
  .payoff__copy {
    position: static;
  }
}
.payoff__copy h2 {
  margin-bottom: 1.3rem;
}
.payoff__copy h2 em {
  color: var(--severe);
}
.payoff__copy p {
  color: var(--ink-soft);
  margin-bottom: 1rem;
}
.payoff__caveat {
  font-size: 0.92rem;
  color: var(--ink-faint);
  border-left: 2px solid var(--border);
  padding-left: 1rem;
  margin-top: 1.3rem;
}

/* suspects list */
.suspects {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.4rem clamp(1rem, 2vw, 1.6rem) 1rem;
  box-shadow: 0 26px 56px -36px var(--shadow);
}
.suspects__head {
  display: flex;
  justify-content: space-between;
  padding: 1.1rem 0.2rem 0.9rem;
  margin-bottom: 0.2rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.suspect {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1.15rem 0.2rem;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}
.suspect:last-child {
  border-bottom: 0;
}
.suspect__rank {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--ink-faint);
  min-width: 1.6rem;
  line-height: 1;
}
.suspect--severe .suspect__rank {
  color: var(--severe);
}
.suspect--medium .suspect__rank {
  color: var(--medium);
}
.suspect--mild .suspect__rank {
  color: var(--mild);
}
.suspect__name {
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.1;
  margin-bottom: 0.6rem;
}
.suspect__note {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
  margin-left: 0.4rem;
}
.suspect__bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.suspect__fill {
  display: block;
  height: 12px;
  border-radius: 999px;
  min-width: 4px;
  width: var(--pct);
  background: var(--ink-faint);
  transform-origin: left;
}
.js .suspect__fill {
  transform: scaleX(0);
  transition: transform 1s var(--ease);
}
.js .is-in .suspect__fill {
  transform: scaleX(1);
}
.suspect--severe .suspect__fill {
  background: linear-gradient(90deg, var(--severe-border), var(--severe));
}
.suspect--medium .suspect__fill {
  background: linear-gradient(90deg, var(--medium-border), var(--medium));
}
.suspect--mild .suspect__fill {
  background: linear-gradient(90deg, var(--mild-border), var(--mild));
}
.suspect--clear .suspect__fill {
  background: color-mix(in srgb, var(--ink-faint) 45%, transparent);
}
.suspect__count {
  font-size: 0.82rem;
  color: var(--ink-soft);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.suspect--clear .suspect__name {
  color: var(--ink-faint);
}
.suspect--clear .suspect__name .suspect__note {
  font-style: italic;
}

/* ============================================================
   PRIVATE
   ============================================================ */
.private {
  max-width: var(--maxw);
  margin: clamp(3rem, 8vw, 8rem) auto 0;
  padding-block: clamp(3rem, 6vw, 6rem);
  border-top: 1px solid var(--border);
  text-align: center;
}
.private .statement {
  margin: 1rem auto clamp(2.5rem, 5vw, 4rem);
}
.private .statement em {
  color: var(--ink);
}
.private .section-index {
  text-align: center;
}
.private__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  text-align: left;
  max-width: 60rem;
  margin-inline: auto;
}
@media (max-width: 760px) {
  .private__cols {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    text-align: center;
  }
}
.private__cols h3 {
  font-family: var(--serif);
  font-size: 1.45rem;
  margin-bottom: 0.5rem;
}
.private__cols > div {
  position: relative;
  padding-top: 1.4rem;
}
.private__cols > div::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 2.2rem;
  height: 3px;
  border-radius: 3px;
}
@media (max-width: 760px) {
  .private__cols > div::before {
    left: 50%;
    transform: translateX(-50%);
  }
}
.private__cols > div:nth-child(1)::before {
  background: var(--mild);
}
.private__cols > div:nth-child(2)::before {
  background: var(--medium);
}
.private__cols > div:nth-child(3)::before {
  background: var(--severe);
}
.private__cols p {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* ============================================================
   CLOSING
   ============================================================ */
.closing {
  margin-top: clamp(3rem, 8vw, 8rem);
  padding-block: clamp(4rem, 10vw, 9rem);
  background:
    radial-gradient(
      120% 80% at 50% -10%,
      color-mix(in srgb, var(--severe) 8%, transparent),
      transparent 60%
    ),
    var(--bg-deep);
  border-top: 1px solid var(--border);
  text-align: center;
}
.closing__inner {
  max-width: 44rem;
  margin-inline: auto;
}
.closing h2 {
  margin: 1rem 0 1.75rem;
}
.closing h2 em {
  color: var(--severe);
}
.closing__sub {
  color: var(--ink-soft);
  font-size: 1.12rem;
  max-width: 34rem;
  margin-inline: auto;
}
.closing__actions {
  margin-top: 2.25rem;
}
.closing__soon {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
}

/* ============================================================
   FOOTER
   ============================================================ */
.foot {
  padding: clamp(2.5rem, 5vw, 3.5rem) var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 2rem;
  border-top: 1px solid var(--border);
}
.foot__mark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
}
.foot__line {
  flex: 1 1 20rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.foot__meta {
  font-size: 0.8rem;
  color: var(--ink-faint);
}
.foot__meta span {
  color: var(--ink-soft);
}

/* ============================================================
   REVEAL animations
   ============================================================ */
/* Content is visible by default (no-JS friendly). Only the JS-enabled page
   hides it for the entrance animation, so a stalled observer can never leave
   the page blank. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.js .reveal.is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .suspect__fill {
    transition: none;
    transform: scaleX(1);
  }
}

/* ============================================================
   LEGAL pages (privacy.html, terms.html)
   Same tokens, same chrome, no grade colours — these are documents,
   not marketing. One readable measure, generous leading, nothing that
   moves. Play requires the privacy policy to be reachable at a stable
   public URL, so these pages have to survive being read on a phone by
   a reviewer in a hurry.
   ============================================================ */
.legal {
  max-width: 46rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 5rem) var(--gutter) clamp(4rem, 9vw, 7rem);
}
.legal__title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin-bottom: 0.6rem;
}
.legal__updated {
  font-size: 0.85rem;
  color: var(--ink-faint);
  margin-bottom: 2.4rem;
}
.legal__lede {
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 1.1rem;
  padding: 1.4rem 1.5rem;
  margin-bottom: 2.8rem;
}
.legal__lede p {
  color: var(--ink);
  font-size: 1.02rem;
}
.legal__lede p + p {
  margin-top: 0.75rem;
}
.legal h2 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: 0.005em;
  margin: 2.6rem 0 0.85rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--border);
}
.legal h2:first-of-type {
  border-top: 0;
  padding-top: 0;
}
.legal p,
.legal li {
  font-size: 0.97rem;
  line-height: 1.72;
  color: var(--ink-soft);
}
.legal p + p {
  margin-top: 0.9rem;
}
.legal ul {
  margin: 0.9rem 0 0;
  padding-left: 1.15rem;
}
.legal li {
  margin-bottom: 0.45rem;
}
.legal li::marker {
  color: var(--ink-faint);
}
.legal strong {
  color: var(--ink);
  font-weight: 600;
}
.legal a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}
.legal a:hover {
  text-decoration-thickness: 2px;
}
.legal__disclaimer {
  margin-top: 3rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--ink-faint);
}
.legal__back {
  display: inline-block;
  margin-bottom: 2rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
  text-decoration: none;
}
.legal__back:hover {
  color: var(--ink);
}
.foot__meta a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}
.foot__meta a:hover {
  color: var(--ink);
  border-bottom-color: currentColor;
}
.legal code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 0.3rem;
  padding: 0.08em 0.34em;
}
