:root {
  --ink: #13213a;
  --ink-soft: #46546c;
  --muted: #6b7890;
  --line: #dfe4ec;
  --bg: #f6f8fb;
  --card: #ffffff;
  --brand: #0b5cad;
  --brand-dark: #08447f;
  --brand-tint: #e8f1fb;
  --ok: #128a55;
  --ok-tint: #e5f5ed;
  --no: #b4bccb;
  --warn-tint: #fff6e0;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(19, 33, 58, .06), 0 4px 16px rgba(19, 33, 58, .06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: 2px; }
a:hover { color: var(--brand-dark); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.7rem); margin-top: 1.8em; }
h3 { font-size: 1.15rem; margin-top: 1.4em; }
p, ul, ol { margin: 0 0 1em; }
li { margin-bottom: .35em; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.narrow { max-width: 760px; }

/* Header */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.logo { font-weight: 800; font-size: 1.1rem; color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 8px; }
.logo-mark {
  width: 28px; height: 28px; border-radius: 8px; background: var(--brand);
  display: inline-grid; place-items: center; color: #fff; font-size: .95rem;
}
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { color: var(--ink-soft); text-decoration: none; padding: 8px 10px; border-radius: 8px; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--brand-tint); color: var(--brand-dark); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font: inherit; color: var(--ink); }

/* Hero */
.hero { background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); padding: 44px 0 20px; }
.hero .lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 720px; }
.stamp { display: inline-flex; gap: 8px; align-items: center; font-size: .9rem; color: var(--muted); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; margin-bottom: 14px; }
.stamp::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--muted); }

/* Sections */
main { padding-bottom: 48px; }
.section { padding: 8px 0 8px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid-2 .card h3 { margin-top: 0; font-size: 1rem; color: var(--ink-soft); }
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 14px; }
.proscons h3 { margin-top: 0; font-size: 1rem; }
.proscons ul { padding-left: 20px; margin: 0; }
.pros { border-top: 4px solid var(--ok); }
.cons { border-top: 4px solid #c94a4a; }
.facts-list li { margin-bottom: .6em; }

/* Uitleg dropdown */
.dropdown { position: relative; }
.dd-btn { background: none; border: 0; font: inherit; font-size: .95rem; color: var(--ink-soft); padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.dd-btn:hover, .dropdown.active .dd-btn { background: var(--brand-tint); color: var(--brand-dark); }
.dd-menu { display: none; position: absolute; right: 0; top: 100%; min-width: 250px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); padding: 6px; z-index: 20; }
.dd-menu a { display: block; padding: 8px 10px; border-radius: 6px; }
.dropdown:hover .dd-menu, .dropdown:focus-within .dd-menu, .dropdown.open .dd-menu { display: block; }
.grid-3 .card h3 { margin-top: 0; }
.note { background: var(--warn-tint); border-radius: var(--radius); padding: 14px 18px; font-size: .95rem; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 18px 0 14px; }
.chip { border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; padding: 7px 14px; font: inherit; font-size: .95rem; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.filters label { font-size: .95rem; display: inline-flex; gap: 6px; align-items: center; }
.filters select { font: inherit; font-size: .95rem; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); }
.filters .spacer { flex: 1; }
.count { font-size: .9rem; color: var(--muted); }

/* Comparison table */
.table-wrap { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow-x: auto; }
table.compare { width: 100%; border-collapse: collapse; font-size: .95rem; }
.compare th, .compare td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare thead th { background: #f0f3f8; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); white-space: nowrap; }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare tbody tr:hover { background: #fafcff; }
.prov { font-weight: 700; min-width: 130px; }
.prov a { color: var(--ink); text-decoration: none; }
.prov a:hover { text-decoration: underline; }
.prod { display: block; font-weight: 400; color: var(--muted); font-size: .88rem; }
.via { display: block; font-weight: 600; font-size: .8rem; color: var(--ink-soft); margin-top: 4px; }
.via::before { content: "\2192\00a0"; color: var(--brand); }
.tag { display: inline-block; margin-top: 4px; font-size: .74rem; font-weight: 600; background: var(--warn-tint); color: #8a5a00; border-radius: 6px; padding: 1px 7px; }
.price { font-weight: 700; white-space: nowrap; }
.price small { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; white-space: normal; max-width: 180px; }
.badges { display: flex; flex-wrap: wrap; gap: 4px; }
.badge { font-size: .78rem; background: var(--brand-tint); color: var(--brand-dark); border-radius: 6px; padding: 2px 7px; white-space: nowrap; }
.cov { display: flex; flex-direction: column; gap: 3px; min-width: 170px; max-width: 240px; }
.cov-score { font-weight: 600; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.dots { display: inline-flex; gap: 2px; }
.dots i { width: 8px; height: 14px; border-radius: 2px; background: #e3e7ee; }
.dots i.y { background: var(--ok); }
.dots i.n { background: #c94a4a; }
.cov-miss { font-size: .8rem; color: #a33c3c; }
.cov-unk { font-size: .8rem; color: var(--muted); }
.btn { display: inline-block; background: var(--brand); color: #fff; text-decoration: none; font-weight: 600; border-radius: 8px; padding: 9px 14px; white-space: nowrap; font-size: .92rem; }
.btn:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--brand); border: 1px solid var(--brand); }
.btn-ghost:hover { background: var(--brand-tint); color: var(--brand-dark); }
.row-actions { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.row-actions a.more { font-size: .85rem; }
tr[hidden] { display: none; }

/* Coverage matrix */
.matrix-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
table.matrix { border-collapse: collapse; font-size: .9rem; min-width: 760px; width: 100%; }
.matrix th, .matrix td { padding: 10px 10px; border-bottom: 1px solid var(--line); text-align: center; }
.matrix th:first-child, .matrix td:first-child { text-align: left; position: sticky; left: 0; background: var(--card); }
.matrix thead th { font-size: .78rem; color: var(--ink-soft); background: #f0f3f8; vertical-align: bottom; }
.matrix thead th:first-child { background: #f0f3f8; }
.m-y { color: var(--ok); font-weight: 700; }
.m-n { color: var(--no); }
.m-u { color: var(--no); font-size: .8rem; }

/* Provider page */
dl.facts { display: grid; grid-template-columns: 220px 1fr; gap: 0; margin: 0; }
dl.facts dt, dl.facts dd { padding: 12px 0; border-bottom: 1px solid var(--line); margin: 0; }
dl.facts dt { font-weight: 600; color: var(--ink-soft); padding-right: 16px; }
.sources { font-size: .9rem; word-break: break-word; }

/* FAQ */
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 0 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--brand); font-weight: 700; }
.faq details[open] summary::after { content: "\2212"; }
.faq details > *:not(summary) { margin-top: 0; }

/* Footer */
.site-footer { background: var(--ink); color: #c9d2e1; padding: 36px 0; font-size: .92rem; }
.site-footer a { color: #fff; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
table.doclist { width: 100%; border-collapse: collapse; font-size: .95rem; }
.doclist th, .doclist td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.doclist thead th { background: #f0f3f8; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); }
.doclist td.docs a, .doclist td.docs span { display: inline-block; margin: 0 14px 4px 0; }
.site-footer h4 { color: #fff; margin: 0 0 8px; font-size: .95rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer .legal { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 24px; padding-top: 16px; color: #9aa7bd; }

/* Mobile */
@media (max-width: 860px) {
  .grid-3, .grid-2, .proscons { grid-template-columns: 1fr; }
  .dropdown { width: 100%; }
  .dd-btn { display: none; }
  .dd-menu { display: block; position: static; box-shadow: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 6px 0 0; margin-top: 6px; min-width: 0; }
  .dd-menu a { padding: 8px 10px; }
  .site-footer .cols { grid-template-columns: 1fr; }
  dl.facts { grid-template-columns: 1fr; }
  dl.facts dt { border-bottom: 0; padding-bottom: 0; }
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--card); border-bottom: 1px solid var(--line); padding: 8px 12px 12px; flex-direction: column; }
  .nav.open { display: flex; }

  table.compare thead { display: none; }
  table.compare, .compare tbody, .compare tr, .compare td { display: block; width: 100%; }
  .compare tr { border-bottom: 8px solid var(--bg); padding: 6px 0; }
  .compare td { border-bottom: 0; padding: 6px 16px; }
  .compare td[data-label]::before { content: attr(data-label); display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 2px; }
  .compare td.prov-cell { padding-top: 12px; font-size: 1.05rem; }
  .compare td.prov-cell::before { display: none; }
  .row-actions { flex-direction: row; align-items: center; gap: 14px; padding-bottom: 8px; }
  .cov { max-width: none; }
  .price small { max-width: none; }
}
