/* ===== Tokens ===== */
:root {
  --bg: #f6f7f5;
  --surface: #fdfdfc;
  --tint: #eef1ee;
  --ink: #151816;
  --muted: #4f5752;
  --line: #dde2de;
  --line-strong: #b5bdb8;
  --accent: #0a7a4e;
  --accent-hover: #075c3a;
  --on-accent: #fdfdfc;
  --accent-soft: #e2f1e9;
  --accent-text: #075c3a;
  --shadow: 0 1px 2px rgb(21 40 30 / .06), 0 16px 40px rgb(21 40 30 / .10);

  /* Vormregel: knoppen en badges = pill, panelen = 16px */
  --radius: 16px;
  --pill: 999px;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1211;
    --surface: #161a18;
    --tint: #131715;
    --ink: #ebefec;
    --muted: #a2aba6;
    --line: #29302c;
    --line-strong: #46504a;
    --accent: #3fcf8e;
    --accent-hover: #6fe0ab;
    --on-accent: #0b120e;
    --accent-soft: #13271d;
    --accent-text: #6fe0ab;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 16px 40px rgb(0 0 0 / .4);
  }
}

/* ===== Basis ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.1; text-wrap: balance; }
h1 { font-size: clamp(2.375rem, 5.2vw, 3.875rem); font-weight: 750; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.875rem, 3.6vw, 2.625rem); font-weight: 720; letter-spacing: -0.03em; }
h3 { font-size: 1.25rem; font-weight: 680; letter-spacing: -0.015em; }
p, dl, dd { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 20px; }
.muted { color: var(--muted); }
.lead { font-size: 1.1875rem; color: var(--muted); max-width: 46ch; }

.section { padding-block: 96px; scroll-margin-top: 64px; }
.section-tint { background: var(--tint); }
.section-last { padding-bottom: 72px; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head p { margin-top: 14px; color: var(--muted); }

/* ===== Knoppen ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: var(--pill);
  border: 1px solid transparent;
  font: inherit;
  font-size: 1rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .2s cubic-bezier(.16, 1, .3, 1), background-color .2s ease, border-color .2s ease;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--ink); }
.btn-small { min-height: 42px; padding: 0 18px; font-size: .9375rem; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 64px; }
.wordmark { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.03em; text-decoration: none; white-space: nowrap; }
.wordmark span { color: var(--accent); }
.nav-links { display: flex; gap: 32px; margin: 0; padding: 0; list-style: none; }
.nav-links a { color: var(--muted); font-size: .96875rem; font-weight: 550; text-decoration: none; }
.nav-links a:hover { color: var(--ink); }
@media (max-width: 860px) { .nav-links { display: none; } }
@media (max-width: 420px) {
  .nav { gap: 12px; }
  .wordmark { font-size: 1.125rem; }
  .btn-small { min-height: 40px; padding: 0 14px; font-size: .875rem; }
}

/* ===== Hero ===== */
.hero { position: relative; isolation: isolate; overflow: clip; padding-block: 72px 96px; }
/* Achtergrond: stippenraster dat uitvloeit, plus een zachte groene gloed die langzaam beweegt */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(circle at 1px 1px, var(--line-strong) 1px, transparent 0);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 65% 75% at 78% 42%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse 65% 75% at 78% 42%, #000 0%, transparent 72%);
  opacity: .7;
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -8%;
  top: 4%;
  width: min(640px, 90vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 20%, transparent), transparent);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 56px; align-items: center; }
.hero h1 { max-width: 20ch; font-size: clamp(2.375rem, 4.6vw, 3.5rem); }
.hero .lead { margin-top: 22px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
@media (min-width: 900px) {
  .hero { padding-block: 88px 112px; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; }
}
@media (max-width: 480px) {
  .hero { padding-top: 48px; }
  .hero-ctas .btn { flex: 1 1 100%; }
}

/* ===== Aanbod (bento) ===== */
.bento { display: grid; grid-template-columns: 1fr; gap: 16px; }
.cell {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.cell p { color: var(--muted); max-width: 46ch; }
.cell-a { background: var(--accent-soft); border-color: transparent; justify-content: flex-end; }
.cell-a h3 { font-size: clamp(1.625rem, 3vw, 2.25rem); letter-spacing: -0.03em; }
.cell-a p { color: var(--ink); opacity: .8; font-size: 1.125rem; }
.cell-e { background: var(--accent); border-color: transparent; color: var(--on-accent); }
.cell-e p { color: var(--on-accent); opacity: .88; }
@media (min-width: 768px) {
  .bento { grid-template-columns: repeat(6, 1fr); }
  .cell { min-height: 220px; }
  .cell-a { grid-column: span 4; min-height: 280px; }
  .cell-b { grid-column: span 2; }
  .cell-e, .cell-d { grid-column: span 3; }
}

/* ===== Werkwijze ===== */
.steps { display: grid; grid-template-columns: 1fr; gap: 32px; margin: 0; padding: 0; list-style: none; }
.steps li { display: flex; flex-direction: column; gap: 10px; padding-top: 22px; border-top: 2px solid var(--line-strong); }
.steps li:first-child { border-top-color: var(--accent); }
.steps p { color: var(--muted); }
.step-meta { margin-top: auto; padding-top: 6px; color: var(--accent-text); font-size: .9375rem; font-weight: 600; }
@media (min-width: 600px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 28px; } }

/* ===== Prijzen ===== */
.plans { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 768px) { .plans { grid-template-columns: repeat(2, 1fr); } }
.plan {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 32px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.plan-featured { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.plan-head { display: grid; gap: 6px; }
.plan-head h3 { display: flex; align-items: center; gap: 10px; font-size: 1.5rem; }
.badge {
  padding: 3px 10px;
  border-radius: var(--pill);
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: .8125rem;
  font-weight: 650;
  letter-spacing: 0;
}
.price { display: flex; align-items: baseline; gap: 8px; }
.amount { font-size: 3rem; font-weight: 780; letter-spacing: -0.04em; line-height: 1; }
.per { color: var(--muted); }
.checks { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: .45em;
  width: 13px;
  height: 7px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.plan .btn { margin-top: auto; align-self: flex-start; }

/* Prijscalculator */
.calc { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 20px; }
@media (min-width: 860px) { .calc { grid-template-columns: 1.5fr 1fr; } }
.calc-form {
  padding: 32px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.calc-form h3 { margin-bottom: 24px; font-size: 1.5rem; }
.calc fieldset { margin: 0 0 24px; padding: 0; border: 0; min-width: 0; }
.calc fieldset:last-child { margin-bottom: 0; }
.calc legend { margin-bottom: 10px; padding: 0; font-weight: 680; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; display: inline-flex; }
.opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.opt span {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  min-height: 44px;
  padding: 8px 18px;
  border-radius: 22px;
  border: 1px solid var(--line-strong);
  font-size: .9375rem;
  font-weight: 620;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.opt small { font-size: .8125rem; font-weight: 500; opacity: .75; }
.opt input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.opt input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 3px; }
.stepper { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.stepper button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1.25rem;
  cursor: pointer;
  transition: border-color .2s ease, transform .2s var(--ease);
}
.stepper button:hover:not(:disabled) { border-color: var(--ink); }
.stepper button:active:not(:disabled) { transform: scale(.94); }
.stepper button:disabled { opacity: .4; cursor: not-allowed; }
.stepper output { min-width: 2ch; font-size: 1.375rem; font-weight: 750; text-align: center; font-variant-numeric: tabular-nums; }
.hint { color: var(--muted); font-size: .9375rem; }

.calc-out {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--on-accent);
}
.calc-label { font-weight: 680; }
.calc-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.calc-row span { opacity: .88; }
.calc-row strong { font-size: 2.5rem; font-weight: 780; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.calc-out .btn { margin-top: auto; }
.calc-note { font-size: .875rem; opacity: .88; }
.btn-inverse { background: var(--on-accent); color: var(--accent-text); }
.btn-inverse:hover { background: var(--bg); }
.fineprint { margin-top: 20px; color: var(--muted); font-size: .9375rem; }

@media (max-width: 480px) {
  .plan, .calc-form, .calc-out { padding: 24px; }
}

/* ===== Feitenlijst (case) ===== */
.facts { display: grid; gap: 20px; margin-top: 32px; }
.facts dt { font-weight: 680; }
.facts dd { color: var(--muted); }

/* ===== Vragen ===== */
.faq-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 900px) { .faq-grid { grid-template-columns: 1fr 1.6fr; gap: 72px; } }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  color: var(--accent-text);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding-bottom: 22px; color: var(--muted); max-width: 62ch; }

/* ===== Contact ===== */
.cta-band {
  padding: 64px 56px;
  border-radius: var(--radius);
  background: var(--accent-soft);
}
.cta-band .lead { margin-top: 14px; color: var(--ink); opacity: .8; }
@media (max-width: 600px) { .cta-band { padding: 40px 24px; } }

/* ===== Footer ===== */
.site-footer { padding-block: 40px 48px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; gap: 20px; }
.footer-grid .wordmark { display: inline-block; margin-bottom: 6px; }
.footer-meta { display: grid; gap: 4px; font-size: .9375rem; }
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1fr auto; align-items: end; }
  .footer-meta { text-align: right; }
}

/* ===== Lopende band met branches ===== */
.marquee-band { padding-block: 22px; border-block: 1px solid var(--line); }
.marquee {
  display: flex;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  flex: none;
  gap: 56px;
  margin: 0;
  padding: 0 56px 0 0;
  list-style: none;
  color: var(--muted);
  font-size: 1.125rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* ===== Aanbod: lichtvlek die de muis volgt ===== */
.cell::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%);
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}
.cell-e::after {
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--on-accent) 22%, transparent), transparent 70%);
}
@media (hover: hover) { .cell:hover::after { opacity: 1; } }
.cell > * { position: relative; z-index: 1; }

/* ===== Knoppen: klein liftje bij hover ===== */
@media (hover: hover) {
  .btn-primary:hover, .btn-inverse:hover { transform: translateY(-1px); }
}

/* ===== Beweging (alleen als de bezoeker dat niet heeft uitgezet) ===== */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }
@keyframes marquee { to { transform: translateX(-100%); } }
@keyframes drift { to { transform: translate(-6%, 8%) scale(1.08); } }

@media (prefers-reduced-motion: no-preference) {
  .load { animation: rise .9s var(--ease) both; animation-delay: calc(var(--d, 0) * 110ms + 80ms); }
  .hero::after { animation: drift 14s ease-in-out infinite alternate; }
  .js .marquee-track { animation: marquee 38s linear infinite; }
  .marquee:hover .marquee-track { animation-play-state: paused; }

  /* Scroll-animatie: script.js zet .in zodra een blok in beeld komt */
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
    transition-delay: calc(var(--i, 0) * 80ms);
  }
  .js [data-reveal].in { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { flex: 1; flex-wrap: wrap; justify-content: center; gap: 12px 32px; padding: 0; white-space: normal; }
  .marquee-track[aria-hidden="true"] { display: none; }
}

/* ===== Prijzen: kleine toevoegingen ===== */
.price-note { margin-top: 6px; color: var(--muted); font-size: .9375rem; }
.hint-block { margin-top: 10px; }
.footer-meta a { color: inherit; }

/* ===== Tekstpagina's (privacyverklaring, 404) ===== */
.prose { max-width: 760px; }
.prose h1 { margin-bottom: 12px; }
.prose h2 { margin: 40px 0 12px; font-size: 1.5rem; }
.prose p, .prose ul, .prose ol { margin: 0 0 1em; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose a:not(.btn) { color: var(--accent-text); }

/* ===== Hero: een echte site op een telefoon ===== */
.phone { justify-self: center; width: min(100%, 300px); margin: 0; }
.phone img {
  display: block;
  width: 100%;
  height: auto;
  border: 10px solid #0b0c0c;
  border-radius: 44px;
  box-shadow: 0 0 0 1px var(--line-strong), 0 2px 4px rgb(0 0 0 / .12), 0 28px 60px -12px rgb(21 40 30 / .35);
}
.phone figcaption { margin-top: 16px; color: var(--muted); font-size: .875rem; text-align: center; }
.phone figcaption a { color: var(--ink); font-weight: 650; text-underline-offset: 3px; }
@media (max-width: 899px) { .phone { width: min(100%, 260px); } }

/* ===== Case: drie feiten en een link ===== */
.case-facts { margin: 0 0 32px; }
@media (min-width: 768px) { .case-facts { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.text-link {
  color: var(--accent-text);
  font-weight: 650;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.text-link:hover { color: var(--ink); }

/* ===== Prijzen: wat in het maandbedrag zit, en extra's die al in het pakket zitten ===== */
.included { margin-top: 20px; max-width: 70ch; }
.opt input:disabled + span { opacity: .5; cursor: not-allowed; }

/* ===== Browseronderdelen in de huisstijl ===== */
::selection { background: var(--accent); color: var(--on-accent); }
input, select { caret-color: var(--accent); }
