/* Stijl van de informatiepagina's (home, over, hoe we rekenen, privacy, …). Kleuren en lettertypes gelijk aan de
   rekentool in check/index.html: pas ze daar ook aan als je hier iets verandert. */
@font-face { font-family: "Bricolage Grotesque"; src: url("/fonts/bricolage-grotesque.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/figtree.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }

:root {
  --bg: #f3f6f2; --surface: #ffffff; --surface-2: #e9eee7; --ink: #17231d; --muted: #5a6a61; --line: #d6ded6;
  --brand: #165c45; --brand-ink: #ffffff; --sun: #f2b42f; --sun-soft: #fbe6b0; --save: #1f8a5b; --cost: #c04a2c;
  --display: "Bricolage Grotesque", ui-rounded, "Segoe UI", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r: 14px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #101613; --surface: #171f1b; --surface-2: #1f2a24; --ink: #e8efe9; --muted: #9aaba1; --line: #2c3a33;
  --brand: #46b88d; --brand-ink: #08130e; --sun: #f5bf45; --sun-soft: #4a3c17; --save: #52c995; --cost: #ee8466;
  color-scheme: dark;
} }
:root[data-theme="dark"] {
  --bg: #101613; --surface: #171f1b; --surface-2: #1f2a24; --ink: #e8efe9; --muted: #9aaba1; --line: #2c3a33;
  --brand: #46b88d; --brand-ink: #08130e; --sun: #f5bf45; --sun-soft: #4a3c17; --save: #52c995; --cost: #ee8466;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--body); }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.015em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(34px, 5.4vw, 54px); font-weight: 800; line-height: 1.06; }
h2 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 800; line-height: 1.15; }
h3 { font-size: 19px; font-weight: 700; line-height: 1.3; }
p { margin: 0; }
a { color: var(--brand); font-weight: 600; }
:focus-visible { outline: 2.5px solid var(--brand); outline-offset: 2px; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow > * { max-width: 780px; }

/* Kop en menu */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 21px; color: var(--ink); text-decoration: none; }
.logo svg { width: 32px; height: 32px; flex: none; }
.menu { display: flex; align-items: center; gap: 22px; }
.menu a { color: var(--ink); text-decoration: none; font-size: 15px; }
.menu a:hover, .menu a[aria-current="page"] { color: var(--brand); }
.menu a.btn { color: var(--brand-ink); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 10px; padding: 13px 22px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; background: var(--brand); color: var(--brand-ink); }
.btn:hover { filter: brightness(1.07); }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn.big { font-size: 18px; padding: 16px 26px; }
.menu .btn { padding: 10px 16px; font-size: 15px; }

/* Blokken */
section { padding: 64px 0; }
.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow { display: inline-block; background: var(--sun); color: #3a2a05; font-weight: 700; font-size: 14px; padding: 4px 11px; border-radius: 999px; }
.lead { font-size: 20px; color: var(--muted); max-width: 34em; }
.sechead { display: grid; gap: 10px; max-width: 46em; margin-bottom: 32px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.alt .card { background: var(--bg); }
.card p { color: var(--muted); }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.ico { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; background: var(--sun-soft); color: var(--ink); }
.ico svg { width: 24px; height: 24px; }
.card .more { margin-top: auto; padding-top: 6px; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: 40px 0 72px; }
.hero h1 { margin: 16px 0 18px; }
.hero .lead { margin-bottom: 28px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.ticks { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 0; margin: 24px 0 0; color: var(--muted); font-size: 15px; }
.ticks li::before { content: "✓ "; color: var(--save); font-weight: 800; }

/* Snelle rekenhulp */
.calc { box-shadow: 0 1px 2px rgba(20, 30, 25, .05), 0 10px 30px rgba(20, 30, 25, .07); }
.calc h2 { font-size: 22px; }
.field { display: grid; gap: 6px; }
.field label, .field .lab { display: flex; justify-content: space-between; font-weight: 600; font-size: 15px; }
.field output { font-variant-numeric: tabular-nums; color: var(--brand); font-weight: 700; }
input[type=range] { width: 100%; accent-color: var(--brand); height: 28px; margin: 0; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; background: var(--surface-2); padding: 4px; border-radius: 10px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { justify-content: center; padding: 8px 4px; border-radius: 7px; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--muted); text-align: center; }
.seg input:checked + label { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.seg input:focus-visible + label { outline: 2.5px solid var(--brand); outline-offset: 2px; }
.result { padding: 18px; border-radius: 12px; background: var(--surface-2); display: grid; gap: 6px; }
.result .big { font-family: var(--display); font-size: 42px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--cost); line-height: 1.05; }
.result .big.zero { color: var(--muted); }
.result p { color: var(--muted); font-size: 15px; }
.bars { display: grid; grid-template-columns: auto 1fr auto; gap: 6px 10px; align-items: center; font-size: 14px; margin-top: 6px; }
.bar { height: 10px; border-radius: 6px; background: var(--line); overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; background: var(--brand); border-radius: 6px; transition: width .25s; }
.bar.y27 span { background: var(--cost); }
.bars .v { font-variant-numeric: tabular-nums; text-align: right; color: var(--muted); }
.fine { font-size: 13px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .bar span { transition: none; } }

/* Stappen */
.steps { counter-reset: stap; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: stap; display: grid; gap: 8px; align-content: start; }
.steps li::before { content: counter(stap); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--brand-ink); font-weight: 800; }
.steps p { color: var(--muted); font-size: 16px; }

/* Voorbeeld */
.example { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.facts.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fact { background: var(--surface-2); border-radius: 10px; padding: 12px 14px; }
.fact b { display: block; font-family: var(--display); font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.2; }
.fact span { font-size: 13px; color: var(--muted); }
.fact.bad b { color: var(--cost); }
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; background: var(--surface-2); }
td.r, th.r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pill { display: inline-block; border-radius: 999px; padding: 2px 9px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.pill.g { background: color-mix(in srgb, var(--save) 15%, transparent); color: var(--save); }
.pill.o { background: var(--sun-soft); color: var(--ink); }
td .pill { white-space: normal; }
.pill.r { background: color-mix(in srgb, var(--cost) 14%, transparent); color: var(--cost); }

/* Gratis of rapport */
.compare td:nth-child(2), .compare td:nth-child(3), .compare th:nth-child(2), .compare th:nth-child(3) { text-align: center; width: 110px; }
.yes { color: var(--save); font-weight: 800; }
.no { color: var(--muted); }

/* Verhaal */
.story { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.story p + p { margin-top: 14px; }

/* Vragen */
.faq { max-width: 780px; }
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
details summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 24px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin-top: 10px; }

/* Slotoproep */
.final { text-align: center; display: grid; gap: 16px; justify-items: center; }
.final .lead { margin: 0 auto; }

/* Lange tekstpagina's */
.page { padding: 32px 0 72px; }
.page h1 { font-size: clamp(32px, 4.6vw, 46px); margin-bottom: 14px; }
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(23px, 2.8vw, 28px); margin: 44px 0 12px; }
.prose h3 { margin: 28px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 14px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose .tablewrap { margin: 18px 0 22px; }
.answer { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: var(--r); padding: 18px 20px; margin: 22px 0; }
.note { background: var(--sun-soft); border-radius: var(--r); padding: 16px 18px; margin: 22px 0; }
.updated { font-size: 14px; color: var(--muted); }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 20px; margin: 24px 0; }
.toc ol { margin: 6px 0 0; padding-left: 20px; }
.verkoper { font-style: normal; }

/* Voet */
.foot { border-top: 1px solid var(--line); padding: 40px 0 48px; color: var(--muted); font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 28px; }
.foot h3 { font-family: var(--body); font-size: 13px; text-transform: uppercase; letter-spacing: .07em; color: var(--ink); margin-bottom: 10px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.foot a { color: var(--muted); font-weight: 500; }
.foot a:hover { color: var(--brand); }
.foot .fine { margin-top: 28px; }

@media (max-width: 900px) {
  .facts.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero, .story { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-top: 12px; gap: 32px; }
  .grid3 { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .menu a:not(.btn) { display: none; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  section { padding: 48px 0; }
  .grid2, .steps { grid-template-columns: minmax(0, 1fr); }
  .facts.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid > :first-child { grid-column: 1 / -1; }
  .card { padding: 20px; }
  .result .big { font-size: 36px; }
  .lead { font-size: 18px; }
  .menu .btn { padding: 9px 12px; font-size: 14px; }
  th, td { padding: 9px 10px; }
}
.foot .logo { color: var(--ink); font-weight: 800; }
