/* TMI: a cheeky case file. Paper sheets, highlighter marks on what we found,
   redaction bars over the masked examples, a rubber-stamp verdict.
   Browser edition: a quick frisk first, then the detective on request. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/BricolageGrotesque-normal-400-800.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/IBMPlexMono-normal-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/IBMPlexMono-normal-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/InstrumentSerif-italic-400.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #f1f5f9;
  --sheet: #ffffff;
  --ink: #0f172a;
  --ink-2: #475569;
  --rule: #cbd5e1;
  --rule-strong: #94a3b8;
  --marker: #2dd4bf;
  --marker-soft: #ccfbf1;
  --on-marker: #0f172a;
  --stamp: #e11d48;
  --clean: #7c3aed;
  --shadow: #0f172a;
  --redact: #020617;         /* redaction bars stay black in both themes */
  --redact-edge: transparent;

  --display: "Bricolage Grotesque", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --body: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f172a;
    --sheet: #1e293b;
    --ink: #f8fafc;
    --ink-2: #94a3b8;
    --rule: #334155;
    --rule-strong: #475569;
    --marker: #2dd4bf;
    --marker-soft: #134e4a;
    --on-marker: #0f172a;
    --stamp: #fb7185;
    --clean: #c4b5fd;
    --shadow: #2dd4bf;
    --redact: #020617;
    --redact-edge: #334155;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  font-optical-sizing: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter-r);
}

h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; }
p { margin: 0; }
button { font: inherit; color: inherit; }
q { quotes: "“" "”"; }

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

.label, .kicker, .sheet-head, .progress-meta, .facts dt, .tier, .hunt-tier, .howto-card dt {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- top bar ---------- */

.topbar {
  max-width: 1240px;
  margin: 0 auto;
  padding-block: 22px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.logo {
  font-family: var(--display);
  font-weight: 800;
  font-size: 30px;
  letter-spacing: -0.04em;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
}
.logo-mark {
  background: var(--marker);
  color: var(--on-marker);
  padding: 0 0.12em;
  display: inline-block;
  transform: rotate(-2deg);
}
.logo-dot { color: var(--stamp); }

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-2);
  border: 1.5px solid var(--rule-strong);
  border-radius: 999px;
  padding: 5px 12px;
}
.status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--clean);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--clean) 25%, transparent);
}
.status.is-remote .status-dot { background: var(--marker); box-shadow: 0 0 0 3px color-mix(in srgb, var(--marker) 30%, transparent); }

/* ---------- hero ---------- */

main { max-width: 1240px; margin: 0 auto; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 56px;
  align-items: start;
  padding-block: 56px 72px;
}

.kicker { color: var(--ink-2); margin-bottom: 18px; }

.hero h1 {
  font-size: clamp(46px, 7vw, 100px);
  line-height: 0.92;
  font-weight: 800;
  letter-spacing: -0.045em;
}

mark.swipe, .verdict-title mark {
  color: var(--on-marker);
  background-color: transparent;
  background-image: linear-gradient(100deg, transparent 0.6%, var(--marker) 1.6%, var(--marker) 97%, transparent 99%);
  background-repeat: no-repeat;
  background-size: 100% 74%;
  background-position: 0 62%;
  padding: 0 0.06em;
  margin: 0 -0.02em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.lede {
  margin-top: 28px;
  font-size: clamp(18px, 1.6vw, 21px);
  max-width: 34em;
  color: var(--ink-2);
}

.proof {
  list-style: none;
  margin: 40px 0 0;
  padding: 18px 0 0;
  border-top: 2px solid var(--ink);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 24px;
  max-width: 560px;
}
.proof li { display: grid; gap: 6px; align-content: start; }
.proof b {
  font-family: var(--display);
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.proof span { font-size: 14px; color: var(--ink-2); max-width: 11em; line-height: 1.3; }

/* ---------- sheets ---------- */

.sheet {
  background: var(--sheet);
  border: 2px solid var(--ink);
  border-radius: 6px;
  box-shadow: 8px 8px 0 var(--shadow);
}

.sheet-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  padding: 12px 20px;
  border-bottom: 2px dashed var(--rule-strong);
  color: var(--ink-2);
}

/* ---------- intake ---------- */

.intake-wrap { display: grid; gap: 18px; min-width: 0; }
.intake { display: grid; transform: rotate(0.6deg); }

.drop {
  margin: 20px;
  padding: 34px 22px 28px;
  border: 2.5px dashed var(--rule-strong);
  border-radius: 6px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}
.drop:hover { border-color: var(--ink); }
.drop.is-over { border-color: var(--ink); background: var(--marker-soft); }

.drop-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(28px, 3vw, 38px);
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.pii {
  display: inline-block;
  background: var(--redact);
  box-shadow: 0 0 0 1px var(--redact-edge);
  color: var(--marker);
  padding: 0 0.18em;
  transform: rotate(-3deg);
  border-radius: 3px;
}
.drop-hint { margin: 12px auto 0; color: var(--ink-2); font-size: 15px; max-width: 26em; }

.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }

.btn {
  appearance: none;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 11px 22px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s;
}
.btn-primary { background: var(--ink); color: var(--sheet); }
.btn-primary:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--marker); }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--marker); color: var(--on-marker); border-color: var(--on-marker); }
.btn:active { transform: translate(0, 0); box-shadow: none; }

.paste { margin: 20px; display: grid; gap: 12px; }
.paste .label { color: var(--ink-2); text-transform: none; letter-spacing: 0.02em; font-size: 13px; line-height: 1.5; }
.paste textarea {
  width: 100%;
  min-height: 190px;
  resize: vertical;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--rule-strong);
  border-radius: 6px;
  padding: 14px;
}
.paste textarea:focus { border-color: var(--ink); outline: none; }
.paste .actions { justify-content: flex-start; margin-top: 4px; }

.scanning { margin: 20px; padding: 26px 22px; display: grid; gap: 14px; }
.scanning .label { color: var(--stamp); }
.scan-line {
  font-family: var(--display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.02em;
  line-height: 1.15;
  min-height: 2.3em;
}
.progress {
  height: 22px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  overflow: hidden;
  background: var(--sheet);
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: repeating-linear-gradient(-45deg, var(--marker) 0 12px, color-mix(in srgb, var(--marker) 70%, var(--ink)) 12px 24px);
  background-size: 34px 34px;
  transition: width 0.3s ease;
  animation: stripes 0.8s linear infinite;
}
@keyframes stripes { to { background-position: 34px 0; } }
.progress-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--ink-2); }
#progress-pct { font-variant-numeric: tabular-nums; }

.error {
  margin: 0 20px 4px;
  padding: 12px 14px;
  border-left: 4px solid var(--stamp);
  background: color-mix(in srgb, var(--stamp) 10%, var(--sheet));
  font-size: 15px;
}

.sample {
  justify-self: center;
  margin: 2px 20px 20px;
  background: none;
  border: 0;
  padding: 6px 4px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  text-decoration-color: var(--marker);
}
.sample:hover { color: var(--ink); }

.privacy {
  font-family: var(--serif);
  font-style: italic;
  font-size: 21px;
  line-height: 1.35;
  color: var(--ink-2);
  padding-inline: 4px;
}

/* ---------- results ---------- */

.results { display: grid; gap: 28px; padding-block: 8px 72px; scroll-margin-top: 16px; }

.verdict { padding: 0 0 26px; }
.verdict-body { padding: 28px 28px 0; display: grid; gap: 22px; }
.verdict-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; }

.verdict-title {
  flex: 1 1 26rem;
  min-width: 0;
  font-size: clamp(36px, 5.4vw, 74px);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -0.04em;
  max-width: 12em;
}
.verdict-top .stamp { flex: 0 0 auto; margin: 10px 14px 0 0; }
.verdict-quip { font-family: var(--serif); font-style: italic; font-size: clamp(21px, 2vw, 27px); line-height: 1.3; color: var(--ink-2); max-width: 30em; }

.stamp {
  display: inline-block;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(18px, 2.2vw, 26px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--stamp);
  border: 4px solid var(--stamp);
  outline: 2px solid var(--stamp);
  outline-offset: 3px;
  border-radius: 6px;
  padding: 6px 14px;
  line-height: 1.1;
  transform: rotate(-7deg);
  text-align: center;
  max-width: 13em;
  animation: stamp-in 0.45s cubic-bezier(0.3, 1.5, 0.5, 1) both;
}
@keyframes stamp-in {
  from { opacity: 0; transform: scale(2.2) rotate(-16deg); }
  to { opacity: 1; transform: scale(1) rotate(-7deg); }
}

.meter { display: grid; gap: 10px; }
.meter-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.meter-value { font-family: var(--display); font-weight: 800; font-size: 34px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.meter-value small { font-size: 18px; color: var(--ink-2); font-weight: 600; }
.meter-bar { display: grid; grid-template-columns: repeat(20, 1fr); gap: 4px; }
.meter-bar i { height: 18px; border-radius: 2px; background: var(--rule); }
.meter-bar i.on { background: var(--ink); }
.meter-bar.is-hot i.on { background: var(--stamp); }


.readouts-sheet .readouts-body,
.findings-sheet .findings-body { padding: 24px 28px 28px; display: grid; gap: 18px; }
.readouts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.readout-card {
  border: 1.5px solid var(--rule-strong); border-radius: 6px; padding: 14px 16px 16px;
  background: var(--sheet); display: grid; gap: 8px;
}
.readout-card.legacy-score { opacity: 0.88; }
.readout-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.readout-title { margin: 0; font-size: 18px; font-weight: 800; }
.readout-sub, .readout-note { margin: 0; font-size: 13px; color: var(--ink-2); line-height: 1.35; }
.readout-conf { margin: 0; font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.coverage-footnote { margin: 0; padding-top: 12px; border-top: 2px dashed var(--rule); font-size: 14px; color: var(--ink-2); }
.finding-group { display: grid; gap: 8px; }
.finding-group h3 { margin: 0; font-size: 20px; font-weight: 800; }
.finding-sub, .finding-empty { margin: 0; font-size: 14px; color: var(--ink-2); }
.finding-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.finding-chip {
  display: grid; grid-template-columns: auto 1fr auto; gap: 8px 12px; align-items: baseline;
  padding: 10px 12px; border: 1.5px solid var(--rule-strong); border-radius: 6px; background: var(--sheet);
}
.finding-label { font-weight: 700; font-size: 14px; }
.finding-mask { font-family: var(--mono); font-size: 13px; word-break: break-all; }
.finding-meta { grid-column: 1 / -1; font-size: 12px; color: var(--ink-2); font-family: var(--mono); }
.combo-line { margin: 0; padding: 10px 12px; border: 2px solid var(--stamp); border-radius: 6px; font-weight: 700; }
.finding-details { border: 1.5px solid var(--rule-strong); border-radius: 6px; background: var(--sheet); }
.finding-details summary { cursor: pointer; padding: 12px 14px; font-weight: 800; }
.finding-details-body { padding: 0 14px 14px; display: grid; gap: 10px; }
.corpus-detail { border: 1.5px solid var(--rule-strong); }
.corpus-summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px;
  padding: 16px 28px; font-weight: 800; font-size: 18px;
}
.corpus-summary::-webkit-details-marker { display: none; }
.corpus-hint { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.corpus-detail-body { padding: 0 28px 24px; display: grid; gap: 20px; }

.facts {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 30px;
  padding-top: 18px;
  border-top: 2px dashed var(--rule-strong);
}
.facts div { display: grid; gap: 2px; }
.facts dt { color: var(--ink-2); font-size: 11px; }
.facts dd { margin: 0; font-weight: 700; font-size: 18px; font-variant-numeric: tabular-nums; }

.group { display: grid; gap: 14px; }
.group-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.group-head h2 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.03em; font-weight: 800; }
.group-head p { color: var(--ink-2); font-size: 15px; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }

.card {
  background: var(--sheet);
  border: 1.5px solid var(--rule-strong);
  border-radius: 6px;
  padding: 18px 18px 20px;
  display: grid;
  gap: 8px;
  align-content: start;
  min-width: 0;
}
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.card-label { font-weight: 700; font-size: 16px; }
.tier { font-size: 10.5px; padding: 3px 7px; border-radius: 3px; border: 1.5px solid currentColor; white-space: nowrap; }
.tier-direct { color: var(--stamp); }
.tier-context { color: var(--ink-2); }
.card-num {
  font-family: var(--display);
  font-weight: 800;
  font-size: 58px;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.card-num small { font-size: 16px; letter-spacing: 0; font-weight: 600; color: var(--ink-2); margin-left: 6px; }
.card-sub { font-size: 14px; color: var(--ink-2); }
.card-quip { font-size: 15px; line-height: 1.4; }
.card.is-zero { background: transparent; border-style: dashed; }
.card.is-zero .card-num { color: var(--clean); font-size: 34px; }

.chips { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  max-width: 100%;
  background: var(--redact);
  box-shadow: 0 0 0 1px var(--redact-edge);
  color: var(--marker);
  font-family: var(--mono);
  font-size: 13px;
  padding: 4px 9px;
  border-radius: 3px;
}
.chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip b { color: #ffffff; font-weight: 500; opacity: 0.7; }

.next { padding: 0 0 6px; }
.next-body { padding: 24px 28px 18px; display: grid; gap: 16px; }
.next h2 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.03em; font-weight: 800; }
.next ol { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px 28px; counter-reset: tip; }
.next li { counter-increment: tip; display: grid; gap: 4px; align-content: start; font-size: 15px; color: var(--ink-2); }
.next li b { color: var(--ink); font-size: 17px; }
.next li::before { content: "0" counter(tip); font-family: var(--mono); font-size: 12px; color: var(--stamp); letter-spacing: 0.1em; }

.result-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.result-actions .note { font-size: 14px; color: var(--ink-2); }
.caveat { font-size: 14px; color: var(--ink-2); max-width: 60em; }

/* ---------- how-to & hunt ---------- */

.howto, .hunt { padding-block: 40px; border-top: 2px solid var(--ink); display: grid; gap: 26px; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px 48px; align-items: end; }
.section-head h2 { font-size: clamp(34px, 4.6vw, 60px); line-height: 0.95; letter-spacing: -0.04em; font-weight: 800; }
.section-head p { color: var(--ink-2); font-size: 18px; max-width: 34em; }

.howto-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.howto-card {
  background: var(--sheet);
  border: 1.5px solid var(--rule-strong);
  border-radius: 6px;
  padding: 20px;
  display: grid;
  gap: 14px;
  align-content: start;
}
.howto-card h3 { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; }
.howto-card dl { margin: 0; display: grid; gap: 6px; }
.howto-card dt { color: var(--stamp); font-size: 11px; margin-top: 8px; }
.howto-card dt:first-child { margin-top: 0; }
.howto-card dd { margin: 0; font-size: 15px; line-height: 1.5; }
.howto-any { background: var(--marker); color: var(--on-marker); border-color: var(--on-marker); }
.howto-any dt { color: var(--on-marker); }

.hunt-rows { display: grid; gap: 14px; }
.hunt-row { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; align-items: center; }
.hunt-tier { justify-self: start; padding: 4px 9px; border: 1.5px solid currentColor; border-radius: 3px; }
.hunt-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hunt-list li {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(18px, 2vw, 24px);
  letter-spacing: -0.02em;
  padding: 2px 12px;
  border-radius: 4px;
  background: var(--sheet);
  border: 1.5px solid var(--rule-strong);
}
.tier-direct + .hunt-list li { background: var(--redact); color: var(--marker); border-color: var(--redact-edge); }

/* ---------- footer ---------- */

.footer {
  max-width: 1240px;
  margin: 0 auto;
  padding-block: 28px max(36px, env(safe-area-inset-bottom, 0px));
  border-top: 2px solid var(--ink);
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: var(--ink-2);
}

/* ---------- responsive ---------- */

@media (max-width: 1020px) {
  .howto-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-block: 32px 56px; }
  .intake { transform: none; }
  .section-head { grid-template-columns: minmax(0, 1fr); }
  .hunt-row { grid-template-columns: minmax(0, 1fr); gap: 10px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .sheet { box-shadow: 5px 5px 0 var(--shadow); }
  .howto-grid { grid-template-columns: minmax(0, 1fr); }
  .drop { margin: 14px; padding: 26px 14px 22px; }
  .paste, .scanning { margin: 14px; }
  .verdict-body, .next-body { padding: 22px 18px 0; }
  .next-body { padding-bottom: 16px; }
  .meter-bar { gap: 3px; }
  .proof b { font-size: 32px; }
  .sheet-head { padding: 10px 14px; }
}

/* ---------- two-stage investigation ---------- */

.stamp.is-open { color: var(--ink-2); border-color: var(--ink-2); outline-color: var(--ink-2); transform: rotate(-4deg); }
@keyframes stamp-in-open {
  from { opacity: 0; transform: scale(2.2) rotate(-12deg); }
  to { opacity: 1; transform: scale(1) rotate(-4deg); }
}
.stamp.is-open { animation-name: stamp-in-open; }

.reveal {
  justify-self: start;
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.02em;
  background: var(--marker);
  color: var(--on-marker);
  padding: 6px 12px;
  border-radius: 3px;
}

.detective { border-color: var(--stamp); box-shadow: 8px 8px 0 var(--stamp); }
.detective .sheet-head { color: var(--stamp); }
.detective-body { padding: 24px 28px 26px; }
.detective-idle { display: grid; gap: 14px; }
.detective-idle h2 { font-size: clamp(28px, 3.4vw, 42px); letter-spacing: -0.035em; font-weight: 800; line-height: 1; }
.detective-pitch { font-size: 18px; color: var(--ink-2); max-width: 40em; }
.detective-pitch mark { background: var(--marker); color: var(--on-marker); padding: 0 3px; border-radius: 2px; }
.detective-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 4px; }
.btn-detective { font-size: 18px; padding-inline: 22px; }
.detective-fine { font-size: 14px; color: var(--ink-2); max-width: 30em; }
.detective-working { display: grid; gap: 14px; }
.detective-working .label { color: var(--stamp); }
.detective-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 16px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.detective-error { display: grid; gap: 12px; justify-items: start; }
.detective-error p {
  padding: 12px 14px;
  border-left: 4px solid var(--stamp);
  background: color-mix(in srgb, var(--stamp) 10%, var(--sheet));
}

.method { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.method-step {
  background: var(--sheet);
  border: 1.5px solid var(--rule-strong);
  border-radius: 6px;
  padding: 20px;
  display: grid;
  gap: 8px;
  align-content: start;
}
.method-num { font-family: var(--mono); font-size: 12px; color: var(--stamp); letter-spacing: 0.1em; }
.method-step h3 { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; }
.method-step p { color: var(--ink-2); }

.footer a { color: inherit; }
.linkish {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.linkish:disabled { text-decoration: none; cursor: default; }

@media (max-width: 760px) {
  .method { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .detective { box-shadow: 5px 5px 0 var(--stamp); }
  .detective-body { padding: 20px 18px 22px; }
  .btn-detective { width: 100%; }
}

/* ---------- motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  mark.swipe { animation: swipe 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.25s both; }
  .verdict-title mark { animation: swipe 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 0.35s both; }
  .card { animation: rise 0.4s ease both; animation-delay: calc(var(--i, 0) * 45ms); }
}
@media (prefers-reduced-motion: reduce) {
  .stamp, .progress-fill { animation: none; }
  .btn, .progress-fill { transition: none; }
}
@keyframes swipe {
  from { background-size: 0% 74%; color: var(--ink); }
  to { background-size: 100% 74%; color: var(--on-marker); }
}
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

[hidden] { display: none !important; }
.visually-hidden { position: fixed; left: -9999px; top: 0; width: 1px; height: 1px; opacity: 0; }
