/* VerifyCitations | Web Asset House */
:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --fg: #0f1b2d;
  --muted: #4b5870;
  --line: #dde3ee;
  --line-strong: #c4cddc;
  --panel: #eef2f8;
  --navy-900: #0a1628;
  --navy-800: #0f2240;
  --navy-700: #16325c;
  --accent: #1d5fd1;
  --accent-hover: #164db0;
  --accent-soft: #e8f0fe;
  --accent-fg: #ffffff;
  --gold: #d4a64a;
  --focus: #f2a900;
  --found-bg: #e3f5ea;
  --found-fg: #126236;
  --nf-bg: #fde8e6;
  --nf-fg: #9a1f15;
  --unv-bg: #edf0f5;
  --unv-fg: #3a4558;
  --mis-bg: #fff3d6;
  --mis-fg: #6b4a00;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(15, 27, 45, 0.06), 0 1px 3px rgba(15, 27, 45, 0.08);
  --shadow-lg: 0 18px 40px -12px rgba(10, 22, 40, 0.28), 0 4px 12px rgba(10, 22, 40, 0.08);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --max: 70rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b111b;
    --surface: #121a27;
    --fg: #e8edf5;
    --muted: #a9b4c6;
    --line: #253147;
    --line-strong: #34425c;
    --panel: #172131;
    --accent: #6ea4ff;
    --accent-hover: #8db8ff;
    --accent-soft: #1a2a44;
    --accent-fg: #07101f;
    --found-bg: #133524;
    --found-fg: #9fe0b5;
    --nf-bg: #3d1a17;
    --nf-fg: #ffb3ab;
    --unv-bg: #222c3c;
    --unv-fg: #d0d8e4;
    --mis-bg: #3a2f12;
    --mis-fg: #ffd98a;
    --shadow-lg: 0 18px 40px -12px rgba(0, 0, 0, 0.6);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 10;
  background: var(--accent); color: var(--accent-fg); padding: 0.5rem 1rem;
}
.skip-link:focus { left: 1rem; }

.site-header, .page, .site-footer { max-width: var(--max); margin: 0 auto; padding-left: 1.25rem; padding-right: 1.25rem; }

/* Full-bleed backgrounds without horizontal overflow. */
.site-header, .site-footer { clip-path: inset(0 -100vmax); }
.hero, .page > h1:first-child { position: relative; isolation: isolate; }
.hero::before, .page > h1:first-child::before {
  content: ""; position: absolute; z-index: -1; top: 0; bottom: 0;
  left: 50%; width: 100vw; transform: translateX(-50%);
}

/* Header */
.site-header {
  position: relative;
  z-index: 2;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 0.9rem; padding-bottom: 0.9rem;
  background: var(--navy-900);
  box-shadow: 0 0 0 100vmax var(--navy-900);
  color: #fff;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--serif); font-weight: 700; font-size: 1.3rem; letter-spacing: 0.01em;
  color: #fff; text-decoration: none;
}
.brand::before {
  content: ""; width: 1.85rem; height: 1.85rem; flex: none; border-radius: 8px;
  background: url("/favicon.svg") center / cover no-repeat;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}
.brand:hover { color: #fff; }
.site-nav { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.site-nav a {
  color: #c9d5ea; text-decoration: none; font-weight: 500; font-size: 0.95rem;
  padding: 0.4rem 0.75rem; border-radius: 999px; transition: background 0.15s, color 0.15s;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, 0.1); }

.page { padding-top: 0; padding-bottom: 3.5rem; }

h1, h2, h3 { font-family: var(--serif); color: var(--fg); letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); line-height: 1.12; margin: 0 0 1rem; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); line-height: 1.25; margin: 2.5rem 0 0.75rem; }
h3 { font-size: 1.15rem; margin: 0 0 0.4rem; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 46rem; }

/* Interior page title band */
.page > h1:first-child {
  margin: 0 0 2rem;
  padding: 2.75rem 0 2.5rem;
  color: #fff;
}
.page > h1:first-child::before {
  background:
    radial-gradient(40rem 14rem at 90% 0%, rgba(29, 95, 209, 0.35), transparent 70%),
    linear-gradient(135deg, var(--navy-900), var(--navy-700));
}
.page > h1:first-child + .lede { margin-top: -0.5rem; }

/* Home hero */
.hero {
  position: relative;
  padding: 3.75rem 0 7.5rem;
  color: #fff;
}
.hero::before {
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(29, 95, 209, 0.45), transparent 60%),
    radial-gradient(40rem 24rem at 0% 110%, rgba(212, 166, 74, 0.18), transparent 60%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
}
.hero h1 { color: #fff; max-width: 22ch; }
.hero .lede { color: #c9d5ea; font-size: 1.2rem; max-width: 40rem; }
.eyebrow {
  display: inline-block; margin: 0 0 1.1rem;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold);
}
.trust { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.75rem 0 0; padding: 0; list-style: none; }
.trust li {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.9rem; color: #e3eaf6;
  padding: 0.4rem 0.85rem; border-radius: 999px;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14);
}
.trust li::before {
  content: ""; width: 0.95rem; height: 0.95rem; border-radius: 50%; flex: none;
  background: #3fb27f url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4l2.6 2.6L12 5.4' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

/* Cards */
.card, .results, .signup, .prose-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.checker {
  position: relative; z-index: 1;
  margin-top: -5rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--shadow-lg);
}

.banner {
  display: block;
  margin: 0 0 1.5rem;
  padding: 0.9rem 1.1rem 0.9rem 3rem;
  position: relative;
  font-size: 0.95rem;
  color: var(--fg);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  border-radius: 10px;
}
.banner::before {
  content: "i"; position: absolute; left: 1rem; top: 0.95rem;
  width: 1.3rem; height: 1.3rem; border-radius: 50%;
  display: grid; place-items: center;
  font: 700 0.85rem/1 var(--serif); font-style: italic;
  background: var(--accent); color: var(--accent-fg);
}
.page > .banner { max-width: 52rem; }

label { font-weight: 600; display: inline-block; margin-bottom: 0.4rem; }

textarea, input[type="email"] {
  width: 100%;
  font: inherit;
  color: var(--fg);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
textarea:hover, input[type="email"]:hover { border-color: #8f9bb0; }
textarea:focus, input[type="email"]:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent);
}
textarea {
  min-height: 17rem; resize: vertical;
  font-family: var(--mono); font-size: 0.92rem; line-height: 1.55;
  background: color-mix(in srgb, var(--panel) 45%, var(--surface));
}
::placeholder { color: #8a95a8; }

.hint { color: var(--muted); font-size: 0.88rem; margin: 0.45rem 0 0; }

.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: center; margin-top: 1.1rem; }

button {
  font: inherit; font-weight: 650;
  border-radius: 10px;
  padding: 0.72rem 1.3rem;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-fg);
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 27, 45, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: background 0.15s, border-color 0.15s, transform 0.05s, box-shadow 0.15s;
}
button:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
button:active { transform: translateY(1px); }
#check-button { padding-left: 1.6rem; padding-right: 1.6rem; font-size: 1.02rem; }
button.secondary { background: var(--surface); color: var(--accent); border-color: var(--line-strong); box-shadow: none; }
button.secondary:hover { background: var(--accent-soft); border-color: var(--accent); }
button.ghost { border-color: transparent; color: var(--muted); }
button.ghost:hover { color: var(--fg); background: var(--panel); border-color: transparent; }
button[disabled] { opacity: 0.6; cursor: progress; }

.turnstile-slot { margin-top: 1rem; min-height: 0; }
.status { margin: 0.9rem 0 0; min-height: 1.5rem; color: var(--muted); }
.status.error { color: var(--nf-fg); font-weight: 600; }

/* Results */
.results { margin-top: 2rem; padding: clamp(1.25rem, 3vw, 2rem); }
.results h2 { margin-top: 0; }
.summary { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.25rem 0 1.25rem; padding: 0; list-style: none; }
.summary li { font-size: 0.9rem; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
table { border-collapse: collapse; width: 100%; min-width: 40rem; background: var(--surface); }
th, td { text-align: left; vertical-align: top; padding: 0.75rem 0.9rem; border-bottom: 1px solid var(--line); }
th {
  background: var(--panel); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
}
tbody tr:hover td { background: color-mix(in srgb, var(--panel) 55%, transparent); }
tr:last-child td { border-bottom: 0; }
td.cite { font-family: var(--mono); font-size: 0.9rem; white-space: nowrap; }
td .note { display: block; margin-top: 0.35rem; color: var(--mis-fg); font-size: 0.88rem; }
td .label { display: block; font-size: 0.88rem; color: var(--muted); }

.badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.01em;
  padding: 0.22rem 0.65rem; border-radius: 999px; white-space: nowrap;
}
.badge::before { content: ""; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: currentColor; }
.badge.found, .badge.verified { background: var(--found-bg); color: var(--found-fg); }
.badge.not-found { background: var(--nf-bg); color: var(--nf-fg); }
.badge.unverifiable { background: var(--unv-bg); color: var(--unv-fg); }
.badge.mismatch { background: var(--mis-bg); color: var(--mis-fg); }

.attribution { color: var(--muted); font-size: 0.88rem; margin-top: 1rem; }

/* Steps */
.steps { margin-top: 3.5rem; }
.steps > h2 { text-align: center; margin-bottom: 1.5rem; }
.step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.step {
  position: relative;
  padding: 1.5rem 1.4rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.step p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.step-num {
  display: grid; place-items: center;
  width: 2.3rem; height: 2.3rem; margin-bottom: 0.9rem; border-radius: 10px;
  font: 700 1.05rem/1 var(--serif);
  background: linear-gradient(135deg, var(--navy-800), var(--accent)); color: #fff;
}
.more { text-align: center; margin-top: 1.25rem; font-weight: 600; }
.more a { text-decoration: none; }
.more a:hover { text-decoration: underline; }

/* Signup */
.signup {
  margin-top: 3.5rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  max-width: none;
  color: #e3eaf6;
  background:
    radial-gradient(30rem 16rem at 100% 0%, rgba(29, 95, 209, 0.4), transparent 60%),
    linear-gradient(150deg, var(--navy-900), var(--navy-700));
  border: 0;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  grid-template-rows: auto auto 1fr;
  gap: 0.25rem 2.5rem;
  align-items: start;
}
.signup > h2 { grid-column: 1; margin: 0 0 0.5rem; color: #fff; }
.signup > h2::before {
  content: "Monthly brief"; display: block; margin-bottom: 0.5rem;
  font: 700 0.75rem/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold);
}
.signup > p { grid-column: 1; margin: 0; color: #c9d5ea; }
.signup > p.hint { margin-top: 0.75rem; font-size: 0.85rem; color: #9fb0cc; }
.signup > p.hint a, .signup a { color: #a9c8ff; }
.signup > form {
  grid-column: 2; grid-row: 1 / span 3;
  padding: 1.4rem; border-radius: 12px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14);
}
.signup label { color: #fff; }
.signup input[type="email"] { background: #fff; color: #0f1b2d; border-color: transparent; }
.signup .status { color: #c9d5ea; }
.signup .status.error { color: #ffb3ab; }
.signup button[type="submit"] { width: 100%; }
.check-row { display: flex; gap: 0.6rem; align-items: flex-start; margin-top: 0.9rem; }
.check-row input { margin-top: 0.3rem; width: 1.05rem; height: 1.05rem; accent-color: var(--accent); flex: none; }
.check-row label { font-weight: 400; font-size: 0.9rem; line-height: 1.5; }
.signup .check-row label { color: #d6e0f0; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Interior pages */
.prose { max-width: 46rem; }
.prose table { min-width: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; border-collapse: separate; border-spacing: 0; }
.prose h2:first-child { margin-top: 0.5rem; }
.prose li { margin: 0.35rem 0; }
.page > p, .page > ul, .page > ol { max-width: 46rem; }

/* Footer */
.site-footer {
  padding-top: 2.25rem; padding-bottom: 2.5rem;
  background: var(--navy-900);
  box-shadow: 0 0 0 100vmax var(--navy-900);
  color: #9fb0cc;
  font-size: 0.9rem;
}
.site-footer p { margin: 0.35rem 0; }
.site-footer p:first-child { color: #c9d5ea; }
.site-footer a { color: #d6e2f5; }
.site-footer a:hover { color: #fff; }

@media (max-width: 52rem) {
  .step-grid { grid-template-columns: 1fr; }
  .signup { grid-template-columns: 1fr; grid-template-rows: none; }
  .signup > form { grid-column: 1; grid-row: auto; margin-top: 1rem; }
  .signup > p.hint { order: 5; }
}

@media (max-width: 40rem) {
  .hero { padding: 2.5rem 0 6rem; }
  .site-nav { width: 100%; margin-left: -0.75rem; }
  table { min-width: 0; }
  thead { display: none; }
  tr { display: block; border-bottom: 1px solid var(--line); padding: 0.6rem 0; }
  td { display: block; border: 0; padding: 0.25rem 0.9rem; }
  td.cite { white-space: normal; font-weight: 700; }
  td[data-label]::before { content: attr(data-label) ": "; font-weight: 600; color: var(--muted); }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
