/* GLP REALITY CHECK — shared styles
   Aesthetic: a fact-checker's marked-up document. Clinical paper, ink type,
   highlighter-yellow annotation, mono verdict stamps. */

:root {
  --paper: #FAFAF6;
  --paper-deep: #F1F1EA;
  --ink: #141D2B;
  --ink-soft: #455062;
  --rule: #D8D8CD;
  --highlight: #FFE45C;
  --verdict: #1E6B4F;
  --flag: #C0392B;
  --display: "Archivo", system-ui, sans-serif;
  --body: "Source Serif 4", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
}

a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
.topbar { border-bottom: 2px solid var(--ink); background: var(--paper); }
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0; gap: 16px; flex-wrap: wrap;
}
.logo {
  font-family: var(--display); font-weight: 900; font-size: 1.25rem;
  letter-spacing: -0.02em; text-decoration: none; text-transform: uppercase;
  display: flex; align-items: baseline; gap: 8px;
}
.logo .check { background: var(--highlight); padding: 0 6px; }
.logo .tm { font-family: var(--mono); font-size: 0.6rem; font-weight: 400; color: var(--ink-soft); }
nav.main { display: flex; gap: 22px; flex-wrap: wrap; }
nav.main a {
  font-family: var(--mono); font-size: 0.78rem; text-transform: uppercase;
  letter-spacing: 0.08em; text-decoration: none; color: var(--ink-soft);
  padding-bottom: 2px; border-bottom: 2px solid transparent;
}
nav.main a:hover, nav.main a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--highlight); }

/* FTC ribbon */
.ftc {
  background: var(--ink); color: var(--paper);
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.02em;
  padding: 8px 0; text-align: center;
}
.ftc a { color: var(--highlight); }

/* ---------- hero ---------- */
.hero { padding: 84px 0 64px; border-bottom: 1px solid var(--rule); }
.kicker {
  font-family: var(--mono); font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--ink-soft); margin-bottom: 20px;
}
.kicker::before { content: "▸ "; color: var(--flag); }
h1 {
  font-family: var(--display); font-weight: 900; letter-spacing: -0.03em;
  font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1.02; max-width: 18ch;
}
h1 .struck {
  position: relative; white-space: nowrap; color: var(--ink-soft);
}
h1 .struck::after {
  content: ""; position: absolute; left: -2%; right: -2%; top: 52%;
  height: 0.09em; background: var(--flag); transform: rotate(-1.5deg);
}
h1 .real { background: var(--highlight); padding: 0 0.12em; }
.hero p.lede {
  max-width: 56ch; margin-top: 26px; font-size: 1.15rem; color: var(--ink-soft);
}
.hero-actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  font-family: var(--mono); font-size: 0.82rem; text-transform: uppercase;
  letter-spacing: 0.08em; text-decoration: none; cursor: pointer;
  padding: 14px 22px; border: 2px solid var(--ink); background: var(--ink);
  color: var(--paper); display: inline-block; transition: transform 0.12s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--highlight); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.verdict { background: var(--verdict); border-color: var(--verdict); }

/* stamp */
.stamp {
  display: inline-block; font-family: var(--mono); font-size: 0.68rem;
  text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600;
  border: 1.5px solid currentColor; padding: 3px 8px; border-radius: 2px;
  transform: rotate(-2deg);
}
.stamp.pass { color: var(--verdict); }
.stamp.flag { color: var(--flag); }

/* ---------- sections ---------- */
section { padding: 72px 0; }
.section-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head h2 {
  font-family: var(--display); font-weight: 900; letter-spacing: -0.02em;
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
}
.section-head .file-no { font-family: var(--mono); font-size: 0.72rem; color: var(--ink-soft); letter-spacing: 0.1em; }

/* hype vs reality cards */
.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.check-card { border: 1.5px solid var(--ink); background: #fff; padding: 26px; position: relative; }
.check-card .stamp { position: absolute; top: -12px; right: 14px; background: var(--paper); }
.hype {
  font-family: var(--body); font-style: italic; color: var(--ink-soft);
  text-decoration: line-through; text-decoration-color: var(--flag);
  text-decoration-thickness: 2px; margin-bottom: 14px; display: block;
}
.reality { font-size: 0.98rem; }
.reality strong { background: var(--highlight); padding: 0 3px; font-weight: 600; }

/* ---------- comparison table ---------- */
.table-scroll { overflow-x: auto; border: 2px solid var(--ink); background: #fff; }
table { border-collapse: collapse; width: 100%; min-width: 760px; }
caption { text-align: left; font-family: var(--mono); font-size: 0.72rem; color: var(--ink-soft); padding: 10px 14px; }
th {
  font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.08em; text-align: left; padding: 14px;
  background: var(--ink); color: var(--paper); font-weight: 500;
}
td { padding: 16px 14px; border-bottom: 1px solid var(--rule); vertical-align: top; font-size: 0.95rem; }
tr:last-child td { border-bottom: none; }
td .prog { font-family: var(--display); font-weight: 700; font-size: 1.05rem; display: block; }
td .tag { font-family: var(--mono); font-size: 0.68rem; color: var(--ink-soft); }
td .btn { padding: 10px 14px; font-size: 0.72rem; white-space: nowrap; }
.note {
  font-family: var(--mono); font-size: 0.72rem; color: var(--ink-soft);
  margin-top: 14px; max-width: 72ch;
}

/* ---------- criteria ---------- */
.criteria { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1px; background: var(--ink); border: 2px solid var(--ink); }
.crit { background: var(--paper); padding: 26px; }
.crit .num { font-family: var(--mono); font-size: 0.72rem; color: var(--flag); }
.crit h3 { font-family: var(--display); font-weight: 800; margin: 8px 0 8px; font-size: 1.05rem; }
.crit p { font-size: 0.92rem; color: var(--ink-soft); }

/* ---------- quiz ---------- */
.quiz-band { background: var(--ink); color: var(--paper); }
.quiz-band .section-head h2 { color: var(--paper); }
.quiz-box { background: var(--paper); color: var(--ink); border: 2px solid var(--ink); padding: 34px; max-width: 640px; }
.q-step { display: none; }
.q-step.active { display: block; }
.q-step p.q { font-family: var(--display); font-weight: 800; font-size: 1.2rem; margin-bottom: 18px; }
.q-opts { display: grid; gap: 10px; }
.q-opts button {
  font-family: var(--body); font-size: 1rem; text-align: left; cursor: pointer;
  padding: 13px 16px; background: #fff; border: 1.5px solid var(--ink);
}
.q-opts button:hover { background: var(--highlight); }
.q-progress { font-family: var(--mono); font-size: 0.7rem; color: var(--ink-soft); margin-bottom: 14px; letter-spacing: 0.1em; }
.q-email { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.q-email input {
  flex: 1; min-width: 220px; padding: 13px 14px; font-family: var(--mono);
  font-size: 0.9rem; border: 1.5px solid var(--ink); background: #fff;
}
.q-result-stamp { margin-bottom: 12px; }
.q-fine { font-family: var(--mono); font-size: 0.68rem; color: var(--ink-soft); margin-top: 12px; }

/* ---------- prose pages ---------- */
.prose { max-width: 70ch; padding: 64px 0 90px; }
.prose h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 28px; }
.prose h2 { font-family: var(--display); font-weight: 800; font-size: 1.4rem; margin: 40px 0 14px; }
.prose p, .prose ul, .prose ol { margin-bottom: 18px; color: var(--ink); }
.prose ul, .prose ol { padding-left: 22px; }
.prose .updated { font-family: var(--mono); font-size: 0.72rem; color: var(--ink-soft); margin-bottom: 30px; }

/* ---------- footer ---------- */
footer { border-top: 2px solid var(--ink); padding: 44px 0 60px; background: var(--paper-deep); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
footer .logo { font-size: 1rem; margin-bottom: 14px; }
footer p, footer a { font-size: 0.82rem; color: var(--ink-soft); }
footer h4 { font-family: var(--mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 12px; }
footer ul { list-style: none; }
footer li { margin-bottom: 8px; }
.foot-legal { margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--rule); font-size: 0.75rem; color: var(--ink-soft); font-family: var(--mono); line-height: 1.7; }

@media (max-width: 720px) {
  .foot-grid { grid-template-columns: 1fr; }
  section { padding: 52px 0; }
  .hero { padding: 56px 0 44px; }
}
