:root {
  --pine-950: #0b1f12;
  --pine-900: #12301b;
  --pine-800: #1a4026;
  --pine-700: #245535;
  --grass-600: #3d7a1a;
  --grass-500: #7ec832;
  --grass-300: #b6e86c;
  --grass-100: #eef7dc;
  --good: #0f7a6b;
  --good-bg: #e3f5f2;
  --warn: #8a5a00;
  --warn-bg: #fdf0d8;
  --bad: #a3261e;
  --bad-bg: #fbe9e8;
  --bg: #f4f8f5;
  --surface: #ffffff;
  --border: #dbe6dd;
  --text: #162018;
  --text-muted: #5c6b60;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans); background: var(--bg); color: var(--text);
  line-height: 1.55; font-size: 15px;
}
a { color: var(--grass-600); }
.site-header {
  background: linear-gradient(180deg, var(--pine-950), var(--pine-900));
  color: #eef7ef; border-bottom: 3px solid var(--grass-500);
}
.site-header .bar {
  max-width: 1080px; margin: 0 auto; padding: 0.9rem 1.25rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.brand { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.brand .name { font-weight: 800; font-size: 1.35rem; letter-spacing: 0.02em; color: #fff; }
.brand .tagline { font-size: 0.68rem; color: var(--grass-300); letter-spacing: 0.03em; text-transform: uppercase; }
.site-header nav { display: flex; align-items: center; gap: 1.1rem; }
.site-header nav a {
  color: #d9edb0; text-decoration: none; font-size: 0.88rem; font-weight: 600;
  padding: 0.35rem 0; border-bottom: 2px solid transparent;
}
.site-header nav a:hover, .site-header nav a.active { color: #fff; border-bottom-color: var(--grass-500); }
.surface-strip {
  background: var(--pine-800); color: #d9edb0; font-size: 0.78rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.surface-strip .bar {
  max-width: 1080px; margin: 0 auto; padding: 0.45rem 1.25rem;
  display: flex; gap: 1.5rem; flex-wrap: wrap; font-family: var(--mono);
}
.surface-strip strong { color: #fff; }
main.container { max-width: 1080px; margin: 0 auto; padding: 1.75rem 1.25rem 3rem; }
h1 { font-size: 1.6rem; margin: 0 0 0.9rem; letter-spacing: -0.01em; }
h2 { font-size: 1.15rem; margin-top: 2.2rem; margin-bottom: 0.6rem; padding-bottom: 0.35rem;
     border-bottom: 1px solid var(--border); }
h3 { font-size: 1.02rem; }
table { border-collapse: collapse; width: 100%; margin: 0.75rem 0; background: var(--surface); }
th, td { border: 1px solid var(--border); padding: 0.5rem 0.7rem; text-align: left; font-size: 0.88rem; }
th { background: #eaf3ec; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--text-muted); }
code {
  background: #eaf3ec; padding: 0.15rem 0.45rem; border-radius: 4px; font-size: 0.85rem;
  font-family: var(--mono); color: #1a4026;
}
.muted { color: var(--text-muted); font-size: 0.85rem; }
.badge {
  display: inline-block; padding: 0.15rem 0.6rem; border-radius: 99px; font-size: 0.72rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em;
}
.badge.dangerous { background: var(--bad-bg); color: var(--bad); }
.badge.unknown { background: var(--warn-bg); color: var(--warn); }
.badge.safe { background: var(--good-bg); color: var(--good); }
.badge.none, .badge.fail { background: #eaf3ec; color: var(--text-muted); }
.site-footer {
  border-top: 1px solid var(--border); margin-top: 3rem; padding: 1.5rem 1.25rem;
  color: var(--text-muted); font-size: 0.8rem;
}
.site-footer .bar { max-width: 1080px; margin: 0 auto; display: flex; justify-content: space-between;
                     flex-wrap: wrap; gap: 0.5rem; }
.site-footer a { color: var(--text-muted); }

.hero { padding: 0.5rem 0 1.5rem; }
.hero h1 { font-size: 1.9rem; max-width: 36rem; }
.hero p.lead { color: var(--text-muted); max-width: 40rem; font-size: 1rem; }

.stat-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem; margin-top: 1.75rem;
}
.stat-strip div {
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 0.9rem 1.1rem;
}
.stat-strip .num { font-family: var(--mono); font-weight: 700; font-size: 1.15rem; color: var(--pine-900); }
.stat-strip .label { color: var(--text-muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.02em; }

.callout {
  margin-top: 2rem; padding: 1.25rem 1.4rem; border-radius: 10px;
  background: linear-gradient(135deg, var(--pine-950), var(--pine-700));
  color: #e7f3e8; border: 1px solid var(--pine-700);
}
.callout .kind { color: var(--grass-300); font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.03em; }
.callout h2 { margin: 0.4rem 0 0.5rem; border-bottom: none; padding-bottom: 0; color: #fff; }
.callout > p { margin: 0.4rem 0 0; color: #d9edb0; font-size: 0.92rem; max-width: 46rem; }
.callout a { color: var(--grass-300); font-weight: 600; }
.callout-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem; margin-top: 1.25rem;
}
.callout-grid > div {
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px; padding: 0.9rem 1rem;
}
.callout-grid h3 { margin: 0 0 0.3rem; font-size: 0.95rem; color: #fff; }
.callout-grid p { margin: 0; color: #d9edb0; font-size: 0.87rem; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin-top: 1rem; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 1.1rem 1.25rem;
}
.card h3 { margin: 0 0 0.3rem; font-family: var(--mono); }
.card p { color: var(--text-muted); font-size: 0.87rem; margin: 0.3rem 0 0; }
.card .kind { display: inline-block; font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.03em; color: var(--grass-600); margin-bottom: 0.35rem; }

.pipeline {
  display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: stretch; margin: 1rem 0 1.5rem;
  font-family: var(--mono); font-size: 0.82rem;
}
.pipeline .step {
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  padding: 0.7rem 0.9rem; flex: 1 1 140px; min-width: 140px;
}
.pipeline .step .t { color: var(--text-muted); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.02em; }
.pipeline .arrow { align-self: center; color: var(--text-muted); font-size: 1.1rem; }

.rule-table td.rule { font-family: var(--mono); font-weight: 700; color: var(--pine-900); white-space: nowrap; }
.rule-table td.corroborates { color: var(--text-muted); font-size: 0.82rem; }

.how-it-works ol, .how-it-works ul { padding-left: 1.2rem; color: var(--text-muted); font-size: 0.9rem; }
.how-it-works li { margin-bottom: 0.4rem; }
