:root {
  --bg: #07111f;
  --panel: #101d33;
  --panel-soft: #172743;
  --text: #eff4ff;
  --muted: #b3c0d9;
  --line: rgba(255,255,255,0.1);
  --accent: #68d5ff;
  --accent-2: #8892ff;
  --good: #28c47a;
  --warn: #ff7e7e;
  --unknown: #ffb757;
  --shadow: 0 22px 55px rgba(0,0,0,0.3);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #163357 0%, var(--bg) 60%);
  color: var(--text);
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
.site-shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 24px 0 40px; }
.site-header, .site-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.site-header { margin-bottom: 28px; }
.site-footer { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.95rem; }
.site-nav, .footer-links { display: flex; gap: 16px; flex-wrap: wrap; color: var(--muted); }
.brand { font-size: 1.2rem; font-weight: 800; letter-spacing: 0.01em; }
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}
.inset { background: linear-gradient(180deg, rgba(12,22,41,0.88), rgba(19,39,67,0.88)); }
.hero-grid, .results-grid, .checks-grid, .info-grid, .double-grid, .triple-grid, .sources-grid { display: grid; gap: 20px; }
.hero-grid { grid-template-columns: 1.16fr 1fr; align-items: stretch; }
.results-grid { grid-template-columns: 0.9fr 1.1fr; margin-top: 22px; }
.checks-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 22px; }
.checks-grid.wide-grid .full-span { grid-column: 1 / -1; }
.info-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 22px; }
.double-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.triple-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sources-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 22px; }
.hero { padding: 28px; }
.eyebrow { display: inline-block; margin-bottom: 12px; color: #91efff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em; }
h1, h2 { margin: 0 0 12px; line-height: 1.08; }
h1 { font-size: clamp(2rem, 4vw, 3.8rem); max-width: 11ch; }
h2 { font-size: 1.25rem; }
p, li { color: var(--muted); line-height: 1.6; }
.lede { font-size: 1.05rem; max-width: 60ch; }
.hero-points { margin: 20px 0 0; padding-left: 18px; }
.alert-note {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(104, 213, 255, 0.08);
  border: 1px solid rgba(104, 213, 255, 0.18);
  color: #d7f7ff;
}
.checker-form { display: grid; gap: 16px; }
label span, .helper-box strong { display: inline-block; margin-bottom: 8px; font-weight: 600; }
input, select {
  width: 100%; padding: 14px 15px; border-radius: 14px; border: 1px solid var(--line); background: rgba(8,12,24,0.58); color: var(--text);
}
button {
  appearance: none; border: 0; border-radius: 14px; padding: 14px 18px; background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white; font-size: 1rem; font-weight: 700; cursor: pointer;
}
.helper-box {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
}
.hidden-field { display: none; }
.fine-print { margin: 0; font-size: 0.92rem; }
.score-line, .check-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.score { font-size: 3.6rem; font-weight: 800; line-height: 0.95; }
.score.small { font-size: clamp(1.7rem, 2.7vw, 2.7rem); }
.outof { color: var(--muted); margin-top: 6px; }
.subhead { margin: -4px 0 0; color: #dbe3ff; }
.pill { display: inline-flex; align-items: center; justify-content: center; padding: 8px 12px; border-radius: 999px; font-size: 0.9rem; font-weight: 700; background: rgba(255,255,255,0.07); color: white; }
.pill.good { background: rgba(40,196,122,0.16); color: #9bf4c5; }
.pill.warn { background: rgba(255,126,126,0.16); color: #ffb5b5; }
.pill.unknown { background: rgba(255,183,87,0.16); color: #ffd69f; }
.status-banner { margin-top: 22px; }
.status-banner.warn { border-color: rgba(255,183,87,0.35); }
.summary { color: var(--text); font-weight: 650; }
.summary-list, .facts, .prose ul, .prose ol { padding-left: 18px; }
.note { color: #dbe5ff; }
.source-line { font-size: 0.92rem; margin-top: 12px; }
.prose h1 { max-width: none; }
.prose h2 { margin-top: 28px; }
.prose code {
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
}
@media (max-width: 860px) {
  .hero-grid, .results-grid, .checks-grid, .info-grid, .double-grid, .triple-grid, .sources-grid { grid-template-columns: 1fr; }
  .checks-grid.wide-grid .full-span { grid-column: auto; }
  .site-shell { width: min(100% - 20px, 1120px); }
  .card, .hero { padding: 20px; }
  h1 { max-width: none; }
}
