
:root {
  --bg: #f5f5f3;
  --surface: #ffffff;
  --ink: #16161a;
  --ink-2: #3f4045;
  --muted: #78797f;
  --faint: #9b9ca1;
  --rule: #e2e2de;
  --rule-2: #ededea;
  --link: #3a5a8c;
  --sev-high: #a32b22;
  --sev-medium: #b0742a;
  --sev-low: #7a7d84;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --measure: 720px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 56px 24px 96px;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
}

h1, h2, h3 { font-weight: 600; }

.display {
  font-family: var(--serif);
  font-size: clamp(30px, 6.4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  font-weight: 600;
  margin: 0 0 20px;
  color: var(--ink);
}

.teaser-biggest {
  font-size: 20px;
  line-height: 1.4;
  color: var(--ink);
  font-weight: 600;
  margin: -8px 0 26px;
  max-width: 32em;
}
.teaser-label {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  display: block;
  margin-bottom: 4px;
}

.lede {
  font-size: 17.5px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0 0 34px;
  max-width: 34em;
}

.section-label {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
  margin: 56px 0 22px;
}

/* --- stat grid --- */
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--rule);
  background: var(--surface);
  margin: 32px 0 8px;
}
.stat { padding: 18px 20px 20px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.stat:nth-child(2n) { border-right: 0; }
.stat:nth-last-child(-n+2) { border-bottom: 0; }
.stat-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.stat-value { font-size: 28px; font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; }

/* --- plans --- */
.plan-row { padding: 9px 0; border-bottom: 1px solid var(--rule-2); }
.plan-row:last-child { border-bottom: 0; }
.plan-name { font-weight: 650; }
.plan-detail { color: var(--ink-2); }
.plan-tag {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-left: 6px;
}

/* --- findings --- */
.finding { margin: 0 0 52px; }
.finding-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.finding-number { color: var(--ink-2); }
.sev { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; }
.sev::before { content: ""; width: 9px; height: 9px; background: currentColor; display: inline-block; }
.sev-high { color: var(--sev-high); }
.sev-medium { color: var(--sev-medium); }
.sev-low { color: var(--sev-low); }
.finding-headline {
  font-family: var(--serif);
  font-size: clamp(23px, 4.6vw, 29px);
  line-height: 1.18;
  letter-spacing: -0.012em;
  font-weight: 600;
  margin: 0 0 20px;
}
.claim-card { border: 1px solid var(--rule); background: var(--surface); }
.claim { padding: 20px; border-bottom: 1px solid var(--rule); }
.claim:last-child { border-bottom: 0; }
.claim-source {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.claim-title { font-weight: 650; font-size: 17px; line-height: 1.35; margin-bottom: 12px; }
.quote {
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.62;
  color: var(--ink-2);
  border-left: 2px solid var(--rule);
  padding: 2px 0 2px 14px;
  margin: 0 0 12px;
}
.claim-link { font-family: var(--mono); font-size: 13px; word-break: break-word; }
.note-rows { margin-top: 18px; display: grid; grid-template-columns: 84px 1fr; gap: 6px 16px; }
.note-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 4px;
}
.note-body { color: var(--ink-2); }

/* --- sources --- */
.sources { width: 100%; border-collapse: collapse; font-size: 15px; }
.sources td { padding: 12px 10px 12px 0; border-bottom: 1px solid var(--rule-2); vertical-align: top; }
.sources tr:last-child td { border-bottom: 0; }
.sources .src-purpose { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.sources .src-chars { font-family: var(--mono); font-size: 12px; color: var(--faint); text-align: right; white-space: nowrap; }

.sources .src-unread td { color: var(--faint); }
.sources .src-unread a { color: var(--faint); }
.src-note { font-size: 13.5px; color: var(--faint); margin: 12px 0 0; }
.definitions { display: grid; gap: 2px; }
.definition { display: grid; grid-template-columns: 200px 1fr; gap: 6px 16px; padding: 8px 0; border-bottom: 1px solid var(--rule-2); }
.definition:last-child { border-bottom: 0; }
.definition-term {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 3px;
}
.definition-body { color: var(--ink-2); font-size: 15.5px; }

/* --- closing question --- */
.closer { margin-top: 72px; border-top: 2px solid var(--ink); padding-top: 34px; }
.closer-question {
  font-family: var(--serif);
  font-size: clamp(24px, 5vw, 32px);
  line-height: 1.18;
  letter-spacing: -0.012em;
  font-weight: 600;
  margin: 0 0 20px;
}
.closer-body { color: var(--ink-2); margin: 0; max-width: 36em; }
.lead-form { margin: 26px 0 0; }
.lead-form .field-row { gap: 10px; }
.lead-note { font-size: 13.5px; color: var(--faint); margin: 10px 0 0; }
.lead-note a { color: var(--muted); text-decoration: underline; }
.linklike {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--link);
  text-decoration: underline;
  cursor: pointer;
}
.lead-done {
  margin: 26px 0 0;
  padding: 16px 18px;
  border-left: 2px solid var(--ink);
  background: var(--surface);
  font-size: 16.5px;
  font-weight: 600;
  color: var(--ink);
}

.fineprint {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  color: var(--faint);
  font-size: 14px;
  line-height: 1.55;
}

/* --- landing --- */
.hero { padding-top: 12px; }
.audit-form { margin: 34px 0 14px; }
.field-row { display: flex; gap: 10px; flex-wrap: wrap; }
.url-input {
  flex: 1 1 300px;
  min-width: 0;
  font-family: var(--sans);
  font-size: 16.5px;
  padding: 14px 16px;
  border: 1px solid var(--ink);
  background: var(--surface);
  color: var(--ink);
  border-radius: 0;
  outline-offset: 2px;
}
.url-input::placeholder { color: var(--faint); }
.url-input:focus { outline: 2px solid var(--link); }
.btn {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  padding: 14px 22px;
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
  cursor: pointer;
  border-radius: 0;
  white-space: nowrap;
}
.btn:hover { background: #000; }
.btn:disabled { opacity: 0.55; cursor: progress; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.reassure { font-size: 14.5px; color: var(--muted); margin: 0; }
.form-error {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-left: 2px solid var(--sev-high);
  background: var(--surface);
  color: var(--sev-high);
  font-size: 15px;
}
.how { margin-top: 8px; }
.how-item { padding: 14px 0; border-bottom: 1px solid var(--rule-2); display: grid; grid-template-columns: 26px 1fr; gap: 14px; }
.how-item:last-child { border-bottom: 0; }
.how-num { font-family: var(--mono); font-size: 12px; color: var(--faint); padding-top: 4px; }
.how-text { color: var(--ink-2); }
.example-list { display: grid; gap: 10px; }
.example {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 15px 18px;
  border: 1px solid var(--rule);
  background: var(--surface);
}
.example:hover { border-color: var(--ink); text-decoration: none; }
.example-name { font-weight: 650; color: var(--ink); }
.example-domain { font-family: var(--mono); font-size: 12.5px; color: var(--muted); display: block; margin-top: 2px; }
.example-count { font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; }

/* --- progress --- */
.progress-stage { font-size: 19px; font-weight: 600; margin: 0 0 8px; }
.progress-detail { font-family: var(--mono); font-size: 13px; color: var(--muted); min-height: 20px; margin: 0 0 22px; }
.bar { height: 3px; background: var(--rule); overflow: hidden; }
.bar-fill { height: 100%; width: 0%; background: var(--ink); transition: width 700ms ease; }
.steps { margin-top: 32px; }
.step {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  padding: 9px 0;
  font-size: 15.5px;
  color: var(--faint);
  border-bottom: 1px solid var(--rule-2);
}
.step:last-child { border-bottom: 0; }
.step-mark { font-family: var(--mono); font-size: 13px; }
.step.active { color: var(--ink); font-weight: 600; }
.step.complete { color: var(--ink-2); }

/* --- actions --- */
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 40px 0 0; }
.report-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.meta-line { font-family: var(--mono); font-size: 12px; color: var(--faint); margin: 0 0 26px; }
.empty-state { border: 1px solid var(--rule); background: var(--surface); padding: 26px 22px; }
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  padding: 10px 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease, transform 200ms ease;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.site-foot { margin-top: 72px; padding-top: 20px; border-top: 1px solid var(--rule); font-size: 13.5px; color: var(--faint); }

@media (max-width: 560px) {
  .wrap { padding: 34px 18px 72px; }
  body { font-size: 16.5px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .note-rows { grid-template-columns: 1fr; gap: 2px 0; }
  .note-label { padding-top: 10px; }
  .teaser-biggest { font-size: 18.5px; }
  .field-row { flex-direction: column; }
  /* flex-basis becomes height once the row stacks, so pin the input back. */
  .url-input { flex: 0 0 auto; width: 100%; }
  .btn { width: 100%; }
  .sources .src-chars { display: none; }
  .definition { grid-template-columns: 1fr; gap: 2px; }
  .sources td { display: block; padding: 0; border-bottom: 0; font-size: 15px; }
  .sources tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--rule-2); }
  .sources tr:last-child { border-bottom: 0; }
  .sources .src-purpose { margin-top: 3px; }
}

@media print {
  :root { --bg: #fff; }
  body { font-size: 11pt; background: #fff; }
  .wrap { max-width: none; padding: 0; }
  .actions, .site-foot, .toast, form, .btn { display: none !important; }
  a { color: #000; text-decoration: none; }
  .finding { break-inside: avoid; page-break-inside: avoid; }
  .claim-card, .stats { break-inside: avoid; }
  .closer { break-before: auto; }
}
