/* ------------------------------------------------------------------
   Bespaarcheck landingspagina — design systeem
   Eén stylesheet, geen build-stap. Varianten wijzigen de tokens
   hieronder of de markup in index.html.
   ------------------------------------------------------------------ */

:root {
  color-scheme: light only;

  /* Merk */
  --green: #1d9e75;
  --green-mid: #0f6e56;
  --green-dark: #085041;
  --green-light: #e1f5ee;
  --green-pale: #f0faf6;
  --gold: #e8a33d;
  --red: #e0564f;

  /* Tekst en vlakken */
  --text: #1a2b26;
  --text-muted: #4a5a54;
  --subtle: #8a9691;
  --bg: #f7f9f8;
  --white: #ffffff;
  --border: #e2e8e5;

  /* Diepte */
  --shadow: 0 4px 24px rgba(8, 80, 65, 0.08);
  --shadow-lg: 0 12px 40px rgba(8, 80, 65, 0.12);
  --glow-cta: 0 6px 18px rgba(29, 158, 117, 0.28);

  /* Vorm */
  --radius: 16px;
  --radius-sm: 11px;
  --radius-lg: 18px;

  /* Type */
  --font-display: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  /* Ritme */
  --maxw: 1080px;
  --section-y: 56px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}

/* ---------------------------------------------------------------- topbar */

.topbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}
.topbar-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.logo-img { height: 38px; width: auto; display: block; }
.topbar-phone a {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  color: var(--green); text-decoration: none;
  background: var(--green-light); padding: 8px 16px; border-radius: 50px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.topbar-phone a:hover { background: var(--green); color: var(--white); }

/* ------------------------------------------------------------------ hero */

.hero {
  background: linear-gradient(180deg, var(--white), var(--green-pale));
  border-bottom: 1px solid var(--border);
  padding: 24px 20px 40px;
}
.hero-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: #fff6e8; border: 1px solid #f3dcae; color: #9a6c1a;
  border-radius: 99px; padding: 6px 14px;
  font-size: 13px; font-weight: 700; margin-bottom: 16px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900; letter-spacing: -1px; line-height: 1.12;
  margin-bottom: 18px;
}
.hero h1 em { font-style: normal; color: var(--green-dark); }
.hero-bullets { list-style: none; margin: 0 0 16px; display: grid; gap: 9px; }
.hero-bullets li { position: relative; padding-left: 28px; font-size: 15.5px; }
.hero-bullets li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--green); font-weight: 800;
}
.hero-lead { font-size: 15px; color: var(--text-muted); line-height: 1.6; }
.hero-cta-mobile { display: none; }

/* -------------------------------------------------------------- formcard */

.form-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 26px 22px; position: sticky; top: 80px;
}
.form-card-title {
  font-family: var(--font-display); font-size: 20px; font-weight: 800; margin-bottom: 4px;
}
.quiz-intro { text-align: center; font-size: 13.5px; color: var(--text-muted); margin-bottom: 4px; }
.quiz-counter { text-align: center; font-size: 13px; font-weight: 800; color: var(--gold); margin-bottom: 14px; }
.quiz-divider { height: 1px; background: var(--border); margin: 0 0 18px; }
.quiz-q { font-family: var(--font-display); font-size: 18px; font-weight: 800; text-align: center; margin: 6px 0 18px; }

.quiz-choices { display: grid; gap: 10px; }
.quiz-choices.cols-2 { grid-template-columns: 1fr 1fr; }
.choice-card {
  border: 1.5px solid var(--border); border-radius: 12px;
  padding: 16px 10px; text-align: center; cursor: pointer;
  background: var(--white);
  /* WHY: knoppen erven font en line-height niet van body. Zonder deze regel
     wijken de kaarthoogtes af van de rest van het formulier. */
  font: inherit; color: var(--text);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.choice-card:hover { border-color: var(--green); }
.choice-card.selected { border-color: var(--green); box-shadow: 0 0 0 3px rgba(29, 158, 117, 0.13); }
.cc-ico { width: 40px; height: 40px; color: var(--green-dark); }
.cc-ico svg { width: 100%; height: 100%; }
.cc-label { font-size: 13.5px; font-weight: 700; line-height: 1.2; color: var(--text); }
.choice-yn { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice-yn .choice-card { padding: 22px 10px; }
.yn-ico { font-size: 30px; line-height: 1; }

.secure-note {
  display: flex; align-items: flex-start; gap: 9px;
  background: var(--green-pale); border-radius: 10px; padding: 11px 13px;
  font-size: 12.5px; color: var(--green-dark); line-height: 1.4; margin: 4px 0 14px;
}

.form-step { display: none; }
.form-step.active { display: block; }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block; font-size: 13px; font-weight: 700;
  margin-bottom: 5px; font-family: var(--font-display);
}
.form-group label .req { color: var(--red); }
.form-group input,
.form-group select {
  width: 100%; padding: 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 16px; color: var(--text);
  background: var(--white); appearance: none; -webkit-appearance: none; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(29, 158, 117, 0.13); }
.form-group input.invalid { border-color: var(--red); }
.field-hint { display: block; font-size: 12px; color: var(--text-muted); margin-top: 5px; }
.field-error { display: block; font-size: 12px; font-weight: 600; color: #c0392f; margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.form-row-3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 9px; }
.select-wrapper { position: relative; }
.select-wrapper::after {
  content: "▾"; position: absolute; right: 12px; top: 50%;
  transform: translateY(-50%); color: var(--text-muted); pointer-events: none; font-size: 12px;
}
.select-wrapper select { padding-right: 32px; }

.consent { font-size: 9.5px; color: #b0b0b0; margin: 12px 0 0; line-height: 1.4; }
.link-inline {
  background: none; border: none; padding: 0;
  font: inherit; color: var(--green-dark); text-decoration: underline; cursor: pointer;
}
.consent .link-inline { color: #b8b8b8; }

.btn-primary {
  display: block; width: 100%;
  background: var(--green); color: var(--white); border: none;
  border-radius: var(--radius-sm); padding: 16px;
  font-family: var(--font-display); font-size: 16.5px; font-weight: 800;
  cursor: pointer; box-shadow: var(--glow-cta); text-align: center; margin-top: 4px;
  transition: background 0.2s;
}
.btn-primary:hover { background: var(--green-mid); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.form-nav { display: flex; gap: 10px; margin-top: 4px; }
.btn-back {
  background: none; border: none; color: var(--subtle);
  font-family: var(--font-display); font-size: 14px; cursor: pointer; padding: 12px;
}
.btn-back:hover { color: var(--text); }
.form-error { font-size: 13px; color: #d92d20; font-weight: 600; margin-top: 12px; text-align: center; }

/* OTP */
.otp-step { text-align: center; }
.otp-title { font-family: var(--font-display); font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.otp-sub { font-size: 13.5px; color: var(--text-muted); margin-bottom: 4px; }
.otp-number { font-family: var(--font-display); font-size: 15px; font-weight: 800; margin-bottom: 14px; white-space: nowrap; }
.otp-inputs { display: flex; justify-content: center; gap: 9px; margin: 6px 0 14px; }
.otp-digit {
  width: 54px; height: 62px; border: 1.5px solid var(--border); border-radius: 12px;
  background: var(--white); font-family: var(--font-display); font-size: 26px; font-weight: 800;
  color: var(--text); text-align: center; padding: 0; outline: none;
  appearance: none; -webkit-appearance: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.otp-digit:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(29, 158, 117, 0.13); }
.otp-digit.filled { border-color: var(--green); background: var(--green-light); }
.otp-message { font-size: 13.5px; font-weight: 600; color: var(--text-muted); margin-bottom: 10px; min-height: 20px; }
.otp-message.success { color: var(--green-dark); }
.otp-message.error { color: var(--red); }
.otp-timer { font-size: 13px; color: var(--text-muted); margin-bottom: 6px; }
.otp-resend-row { font-size: 13px; color: var(--text-muted); margin: 0 0 4px; }
.otp-resend { background: none; border: none; padding: 0; font: inherit; font-weight: 700; color: var(--green-dark); cursor: pointer; text-decoration: underline; }
.otp-resend[disabled] { color: var(--subtle); cursor: not-allowed; text-decoration: none; }

/* Bedankstap */
.done-step { text-align: center; padding: 10px 0; }
.done-ico {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--green-light); color: var(--green-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; margin: 0 auto 14px;
}
.done-title { font-family: var(--font-display); font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.done-text { font-size: 15px; color: var(--text-muted); }

/* ------------------------------------------------------------ logo strip */

.logo-strip {
  background: var(--white); padding: 28px 24px;
  border-bottom: 1px solid var(--border);
  overflow: hidden; position: relative;
}
.logo-strip::before,
.logo-strip::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2; pointer-events: none;
}
.logo-strip::before { left: 0; background: linear-gradient(90deg, #fff, transparent); }
.logo-strip::after { right: 0; background: linear-gradient(-90deg, #fff, transparent); }
.logo-strip-label {
  text-align: center; font-size: 12px; font-weight: 600; color: var(--text-muted);
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 18px;
}
.logo-scroll-wrap { overflow: hidden; }
.logo-scroll {
  display: flex; width: max-content; align-items: center;
  animation: scroll-logos 36s linear infinite;
}
.logo-scroll img {
  height: 28px; width: auto; margin-right: 40px;
  filter: grayscale(1) opacity(0.55); object-fit: contain; transition: filter 0.2s;
}
.logo-scroll img:hover { filter: grayscale(0) opacity(1); }
@keyframes scroll-logos {
  from { transform: translateX(0); }
  to { transform: translateX(-33.3333%); }
}

/* --------------------------------------------------------- sectie-basics */

.section { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section-tag {
  text-align: center; font-size: 12px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--green); margin-bottom: 8px;
}
.section-title {
  font-family: var(--font-display); font-size: clamp(23px, 3.4vw, 30px);
  font-weight: 800; letter-spacing: -0.4px; text-align: center; margin-bottom: 12px;
}
.section-lead {
  text-align: center; color: var(--text-muted); font-size: 15.5px;
  max-width: 560px; margin: 0 auto 30px;
}

/* ----------------------------------------------------------------- waarom */

.why-section { padding: var(--section-y) 0; background: var(--bg); }
.why-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.why-text-block { max-width: 720px; margin: 0 auto 32px; text-align: center; }
.why-text-block p { font-size: 15.5px; color: var(--text-muted); margin-bottom: 14px; line-height: 1.65; }
.why-cta {
  display: inline-block; margin-top: 6px; color: var(--green-dark);
  font-weight: 800; text-decoration: none; font-size: 15.5px;
}
.why-cta:hover { text-decoration: underline; }
.why-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.why-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px 18px; text-align: center;
}
.why-icon { font-size: 30px; margin-bottom: 10px; }
.why-card-title { font-family: var(--font-display); font-size: 15.5px; font-weight: 800; margin-bottom: 6px; line-height: 1.25; }
.why-card-text { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* ----------------------------------------------------------- zo werkt het */

.how-section {
  padding: var(--section-y) 0; background: var(--white);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.how-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 900px; margin: 0 auto; }
.how-step { text-align: center; padding: 10px; }
.how-number {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--green-dark); color: var(--white);
  font-family: var(--font-display); font-weight: 900; font-size: 19px;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 14px;
}
.how-step-title { font-family: var(--font-display); font-size: 17px; font-weight: 800; margin-bottom: 6px; }
.how-step-text { font-size: 14px; color: var(--text-muted); line-height: 1.5; }
.how-cta-wrap { text-align: center; margin-top: 32px; }

.btn-cta {
  display: inline-block; padding: 16px 34px;
  background: var(--green); color: var(--white);
  font-family: var(--font-display); font-size: 16.5px; font-weight: 800;
  border: none; border-radius: var(--radius-sm); cursor: pointer;
  box-shadow: var(--glow-cta); text-decoration: none; transition: background 0.2s;
}
.btn-cta:hover { background: var(--green-mid); }

/* --------------------------------------------------------------- reviews */

.reviews-section { padding: var(--section-y) 0; background: var(--bg); }
.rating-bar { text-align: center; margin-bottom: 30px; }
.rating-score { font-family: var(--font-display); font-size: 44px; font-weight: 900; color: var(--green-dark); line-height: 1; }
.rating-stars { color: #00b67a; font-size: 22px; letter-spacing: 2px; margin: 4px 0; }
.rating-label { font-size: 13.5px; color: var(--text-muted); }
.tp-badge { font-size: 12.5px; color: var(--text-muted); margin-top: 4px; }
.reviews-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: var(--maxw); margin: 0 auto; }
.review-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.review-stars { color: #00b67a; font-size: 12px; margin-bottom: 8px; }
.review-text { font-size: 13.5px; font-style: italic; line-height: 1.5; margin-bottom: 10px; }
.review-author { font-size: 13px; font-weight: 700; }
.reviews-disclaim { font-size: 11.5px; color: var(--subtle); text-align: center; margin-top: 16px; }
.reviews-cta { text-align: center; margin-top: 28px; }

/* ------------------------------------------------------------------- faq */

.faq-section { padding: var(--section-y) 0; background: var(--white); border-top: 1px solid var(--border); }
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 10px; overflow: hidden; background: var(--white); }
.faq-question {
  width: 100%; background: none; border: none; cursor: pointer; padding: 16px 18px;
  font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--text);
  line-height: 1.65;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: left;
}
.faq-chevron { color: var(--green); transition: transform 0.25s; flex-shrink: 0; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.25s ease; }
.faq-item.open .faq-answer { grid-template-rows: 1fr; }
.faq-answer-inner { overflow: hidden; padding: 0 18px; font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.faq-item.open .faq-answer-inner { padding-bottom: 16px; }

/* ---------------------------------------------------------------- footer */

.footer { background: var(--white); border-top: 1px solid var(--border); padding: 32px 20px; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; text-align: center; }
.footer-logo img { display: block; height: 24px; width: auto; margin: 0 auto 12px; }
.footer-address { font-size: 13px; color: var(--subtle); line-height: 1.7; margin-bottom: 10px; }
.footer-address a { color: var(--subtle); text-decoration: none; }
.footer-address a:hover { color: var(--green-dark); }
.footer-links { font-size: 13px; margin-bottom: 10px; }
.footer-links button, .footer-links a {
  background: none; border: none; color: var(--text-muted); text-decoration: none;
  cursor: pointer; font-family: var(--font-body); font-size: 13px; padding: 0 4px;
  line-height: 1.65;
}
.footer-links button:hover, .footer-links a:hover { color: var(--green-dark); }
.footer-links span { color: var(--border); }
.footer-copy { font-size: 12px; color: var(--subtle); }

/* ---------------------------------------------------------------- modals */

.modal-overlay {
  position: fixed; inset: 0; background: rgba(8, 40, 33, 0.6);
  display: none; align-items: flex-start; justify-content: center;
  z-index: 200; padding: 20px; overflow-y: auto;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--white); border-radius: var(--radius);
  max-width: 640px; width: 100%; padding: 28px 26px; margin: auto; position: relative;
}
.modal-close {
  position: absolute; top: 14px; right: 18px; font-size: 26px; line-height: 1;
  color: var(--subtle); cursor: pointer; background: none; border: none; padding: 0;
}
.modal-close:hover { color: var(--text); }
.modal-title { font-family: var(--font-display); font-size: 22px; font-weight: 800; margin-bottom: 16px; }
.modal-box h3 { font-family: var(--font-display); font-size: 16px; font-weight: 800; margin: 16px 0 6px; }
.modal-box p, .modal-box li { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-bottom: 8px; }
.modal-box ul { padding-left: 20px; }

/* ------------------------------------------------------------ responsive */

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; gap: 24px; }
  .form-card { position: static; }
  .hero-cta-mobile {
    display: block; width: 100%; margin-top: 20px; padding: 17px;
    background: var(--green); color: var(--white);
    font-family: var(--font-display); font-size: 17px; font-weight: 800;
    border: none; border-radius: var(--radius-sm); cursor: pointer;
    box-shadow: 0 8px 22px rgba(29, 158, 117, 0.32);
    animation: heroPulse 2.4s ease-in-out infinite;
  }
  .why-cards { grid-template-columns: 1fr 1fr; }
  .how-steps { grid-template-columns: 1fr; gap: 12px; }
  .reviews-grid { grid-template-columns: 1fr 1fr; }
}

@keyframes heroPulse {
  0%, 100% { box-shadow: 0 8px 22px rgba(29, 158, 117, 0.32); }
  50% { box-shadow: 0 8px 32px rgba(29, 158, 117, 0.5); }
}

@media (max-width: 520px) {
  .why-cards, .reviews-grid { grid-template-columns: 1fr; }
  .form-row-3 { grid-template-columns: 1fr 1fr; }
  .otp-digit { width: 48px; height: 56px; font-size: 23px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .logo-scroll, .hero-cta-mobile { animation: none; }
  * { transition-duration: 0.01ms !important; }
}

/* WHY: de pagina is bewust light-only. Het donkere schema van de browser
   mag het conversieontwerp niet omkleuren (groen op donkergrijs verliest
   contrast en de CTA valt weg). */
@media (prefers-color-scheme: dark) {
  html:not(.theme-zakelijk), html:not(.theme-zakelijk) body { background: var(--bg) !important; color: var(--text) !important; }
  html:not(.theme-zakelijk) :is(.topbar, .form-card, .why-card, .how-section, .review-card,
  .faq-item, .footer, .logo-strip, .modal-box, .hero) { background: var(--white) !important; }
  html:not(.theme-zakelijk) .hero-badge { background: #fff6e8 !important; }
  html:not(.theme-zakelijk) :is(.why-section, .reviews-section) { background: var(--bg) !important; }
  html:not(.theme-zakelijk) :is(h1, h2, h3, .section-title, .hero-lead, .why-card-text, .how-step-text,
  .review-text, label, .form-card-title) { color: var(--text) !important; }
  html:not(.theme-zakelijk) :is(input, select) { background: var(--white) !important; color: var(--text) !important; }
  html:not(.theme-zakelijk) :is(.btn-primary, .btn-cta, .hero-cta-mobile) { color: var(--white) !important; }
}
