/* =========================================================================
   Taxatie Match — premium quiz funnel
   Design tokens → base → layout → components → animations → responsive
   ========================================================================= */

:root {
  /* Brand */
  --brand:        #0E7B63;
  --brand-600:    #0C6E58;
  --brand-700:    #0A5A48;
  --brand-tint:   #E9F6F1;
  --brand-tint-2: #F2FAF7;
  --brand-ring:   rgba(14, 123, 99, .22);

  /* Neutrals */
  --ink:    #0E1B24;   /* headings */
  --text:   #33434E;   /* body */
  --muted:  #6B7B86;   /* secondary */
  --faint:  #94A2AB;   /* tertiary */
  --line:   #E6ECEF;   /* borders */
  --line-2: #EFF3F5;
  --surface:#FFFFFF;

  /* Accents */
  --gold:   #E3A63A;   /* stars */
  --whatsapp:#25D366;
  --whatsapp-600:#1FB457;

  /* Background */
  --bg-1: #F4F8F8;
  --bg-2: #E8F0F1;

  /* Radii */
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;

  /* Shadows (soft, layered) */
  --sh-xs: 0 1px 2px rgba(16, 27, 36, .06);
  --sh-sm: 0 2px 8px rgba(16, 27, 36, .06), 0 1px 2px rgba(16, 27, 36, .04);
  --sh-md: 0 8px 24px rgba(16, 27, 36, .08), 0 2px 6px rgba(16, 27, 36, .05);
  --sh-lg: 0 22px 60px rgba(16, 27, 36, .12), 0 6px 18px rgba(16, 27, 36, .06);
  --sh-brand: 0 12px 28px rgba(14, 123, 99, .30);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur:  .42s;

  --maxw: 600px;
}

/* --------------------------------------------------------- reset / base */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(160deg, var(--bg-1) 0%, var(--bg-2) 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
  /* Lock the page: the funnel is an app, not a scrolling site */
  overflow: hidden;
  overscroll-behavior: none;
}

button { font-family: inherit; }
img { display: block; max-width: 100%; }
a { color: inherit; }

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* --------------------------------------------------------- background */
.bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.bg__glow {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: .55;
}
.bg__glow--a {
  width: 46vmax; height: 46vmax; top: -18vmax; right: -14vmax;
  background: radial-gradient(circle at 30% 30%, rgba(14,123,99,.30), transparent 70%);
}
.bg__glow--b {
  width: 40vmax; height: 40vmax; bottom: -16vmax; left: -14vmax;
  background: radial-gradient(circle at 60% 40%, rgba(59,165,142,.22), transparent 70%);
}
.bg__grid {
  position: absolute; inset: 0; opacity: .4;
  background-image:
    linear-gradient(rgba(16,27,36,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16,27,36,.035) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 40%, transparent 78%);
          mask-image: radial-gradient(120% 90% at 50% 0%, #000 40%, transparent 78%);
}

/* --------------------------------------------------------- app shell */
.app {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding:
    max(18px, env(safe-area-inset-top))
    max(16px, env(safe-area-inset-right))
    max(18px, env(safe-area-inset-bottom))
    max(16px, env(safe-area-inset-left));
}

/* --------------------------------------------------------- funnel panel */
.funnel {
  position: relative;
  width: 100%;
  max-width: var(--maxw);
  max-height: calc(100dvh - 32px);
  background: var(--surface);
  border: 1px solid rgba(255,255,255,.6);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-lg);
  padding: 22px 22px 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: panelIn .6s var(--ease) both;
}

.funnel__top {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 16px;
  flex: 0 0 auto;
}

/* Back button (appears from step 2) */
.backbtn {
  position: absolute;
  top: -2px; left: -4px;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: none; background: transparent;
  color: var(--muted); cursor: pointer;
  border-radius: 10px;
  transition: background .2s, color .2s, transform .2s;
}
.backbtn:hover { background: var(--line-2); color: var(--ink); }
.backbtn:active { transform: scale(.94); }
.backbtn[hidden] { display: none; }

/* Brand mark */
.brand {
  display: flex; align-items: center; gap: 9px;
  align-self: center;
  transition: opacity .3s;
}
.brand__logo {
  display: grid; place-items: center;
  filter: drop-shadow(0 3px 7px rgba(14,123,99,.26));
}
.brand__name { font-weight: 800; font-size: 16.5px; letter-spacing: -.02em; }
.brand__t1 { color: var(--ink); }
.brand__t2 { color: var(--brand); }

/* Keurmerken-balk — onderaan, onder de trustbar ("geheel vrijblijvend"); van stap 1 t/m resultaat */
.keurmerkbar {
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 3px 12px;
  margin: 0;
  padding: 18px 6px 2px;
}
.keurmerkbar__label { font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); }
.keurmerkbar__logos { display: inline-flex; align-items: center; gap: 15px; }
.keurmerkbar__logos img { height: 18px; width: auto; }
/* Op het resultaat verzorgen de kaarten zelf de keurmerken (home: onder de bullets op Frank's
   kaart; quiz: in de kaart-tekst) → verberg de onderbalk daar, ook i.v.m. de scroll-fade/CTA. */
.app[data-view="result"] .keurmerkbar { display: none; }

/* Keurmerken op de match-kaart (maakt duidelijk dat Frank zelf erkend/gecertificeerd is) */
.card__keurmerk {
  display: flex; align-items: center; justify-content: center; gap: 6px 14px; flex-wrap: wrap;
  padding: 12px 16px;
  border-top: 1px solid var(--line-2);
}
.card__keurmerk-label { font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); }
.card__keurmerk-logos { display: inline-flex; align-items: center; gap: 16px; }
.card__keurmerk-logos img { height: 21px; width: auto; }

/* Progress */
.progress { display: flex; flex-direction: column; gap: 8px; transition: opacity .3s; }
.progress__row { display: flex; justify-content: space-between; align-items: baseline; }
.progress__label { font-size: 13px; font-weight: 600; color: var(--muted); }
.progress__pct { font-size: 12.5px; font-weight: 700; color: var(--brand); font-variant-numeric: tabular-nums; }
.progress__track {
  height: 7px; border-radius: 99px;
  background: var(--line);
  overflow: hidden;
}
.progress__fill {
  height: 100%; width: 25%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--brand), #34B08F);
  box-shadow: 0 1px 4px rgba(14,123,99,.4);
  transition: width .6s var(--ease);
}
.progress__fill.is-pulsing { animation: barPulse 1.1s ease-in-out infinite; }

/* --------------------------------------------------------- stage / steps */
.stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.stage::-webkit-scrollbar { width: 0; height: 0; }

.step { display: flex; flex-direction: column; }
.step.is-entering { animation: stepIn var(--dur) var(--ease) both; }
.step.is-leaving  { animation: stepOut .26s var(--ease) both; }

/* Hero (step 1 only) */
.hero { margin-bottom: 20px; }
.hero__title {
  margin: 2px 0 8px;
  font-size: clamp(22px, 5.4vw, 27px);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
}
.hero__sub {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
  max-width: 42ch;
}
.hero__proof {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  margin-top: 15px;
  font-size: 13.5px; color: var(--muted); font-weight: 600;
}
.hero__proof b { color: var(--ink); font-weight: 800; }

/* Step question head */
.step__eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 10px;
}
.step__title {
  margin: 0 0 6px;
  font-size: clamp(20px, 5vw, 24px);
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: -.015em;
  color: var(--ink);
}
.step__hint { margin: 0 0 18px; font-size: 14px; color: var(--muted); }
.step__title + .options,
.step__title + .field { margin-top: 18px; }

/* --------------------------------------------------------- text field */
.field { position: relative; }
.field__input {
  width: 100%;
  height: 60px;
  padding: 0 18px 0 50px;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  background: var(--brand-tint-2);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field__input::placeholder { color: var(--faint); font-weight: 400; }
.field__input:focus {
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 4px var(--brand-ring);
}
.field__icon {
  /* 30px = halve inputhoogte (60px); centreert op de input, niet op het hele veld */
  position: absolute; left: 17px; top: 30px; transform: translateY(-50%);
  color: var(--brand); pointer-events: none;
}
.field.is-invalid .field__input { border-color: #E4574C; background: #FEF4F3; animation: shake .4s; }
.field__error {
  display: none;
  margin: 9px 2px 0; font-size: 13px; color: #D6483C; font-weight: 500;
}
.field.is-invalid .field__error { display: block; }
.field__help {
  display: flex; align-items: center; gap: 7px;
  margin: 12px 2px 0; font-size: 13px; color: var(--muted);
}
.field__help svg { color: var(--brand); flex: 0 0 auto; }

/* --------------------------------------------------------- option cards */
.options { display: flex; flex-direction: column; gap: 10px; }

.option {
  display: flex; align-items: center; gap: 14px;
  width: 100%;
  padding: 15px 16px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  text-align: left;
  cursor: pointer;
  color: var(--ink);
  transition: border-color .18s, box-shadow .22s, transform .18s, background .18s;
  animation: optionIn .4s var(--ease) both;
}
.option:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--sh-md); }
.option:active { transform: translateY(0) scale(.995); }
.option.is-selected {
  border-color: var(--brand);
  background: var(--brand-tint);
  box-shadow: 0 0 0 3px var(--brand-ring);
}
.option:focus-visible { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-ring); }

.option__icon {
  flex: 0 0 auto;
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--brand-tint); color: var(--brand);
  transition: background .18s, color .18s, transform .18s;
}
.option.is-selected .option__icon { background: var(--brand); color: #fff; transform: scale(1.04); }

.option__label { flex: 1 1 auto; font-size: 15.5px; font-weight: 600; }
.option__sub   { display: block; font-size: 13px; font-weight: 500; color: var(--muted); margin-top: 1px; }

/* radio / check mark */
.option__mark {
  flex: 0 0 auto;
  width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid var(--line);
  display: grid; place-items: center;
  transition: border-color .18s, background .18s;
}
.option--multi .option__mark { border-radius: 8px; }
.option__mark svg { opacity: 0; transform: scale(.5); transition: opacity .18s, transform .22s var(--ease); }
.option.is-selected .option__mark { border-color: var(--brand); background: var(--brand); }
.option.is-selected .option__mark svg { opacity: 1; transform: scale(1); color: #fff; }

/* --------------------------------------------------------- buttons */
.actions { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }

.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%;
  height: 58px;
  padding: 0 22px;
  font-size: 16px; font-weight: 700; letter-spacing: -.01em;
  border: none; border-radius: var(--r-md);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .22s, background .2s, opacity .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn svg { flex: 0 0 auto; }

.btn--primary {
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-600) 100%);
  color: #fff;
  box-shadow: var(--sh-brand);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(14,123,99,.36); }
.btn--primary::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,.18), transparent 42%);
  pointer-events: none;
}

.btn--outline {
  background: #fff; color: var(--brand-700);
  box-shadow: inset 0 0 0 1.5px var(--line), var(--sh-xs);
}
.btn--outline:hover { box-shadow: inset 0 0 0 1.5px var(--brand), var(--sh-sm); transform: translateY(-2px); }

.btn--whatsapp { background: var(--whatsapp); color: #fff; box-shadow: 0 10px 24px rgba(37,211,102,.30); }
.btn--whatsapp:hover { background: var(--whatsapp-600); transform: translateY(-2px); }

.btn--sm { height: 54px; font-size: 15px; padding: 0 14px; gap: 8px; }

.btn__hint { display: block; text-align: center; margin-top: 2px; font-size: 12.5px; color: var(--faint); }
.btn-spin {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,.45); border-top-color: #fff;
  display: inline-block; vertical-align: -3px;
  animation: spin .7s linear infinite;
}

/* --------------------------------------------------------- trustbar */
.trustbar {
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 8px 18px;
  padding-top: 14px; margin-top: 4px;
  border-top: 1px solid var(--line-2);
}
.trustbar__item {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 600; color: var(--muted);
}
.trustbar__item svg { color: var(--brand); }

/* --------------------------------------------------------- sticky result CTA */
.result-cta {
  position: relative;
  flex: 0 0 auto;
  display: flex; flex-direction: column; gap: 9px;
  padding-top: 12px; margin-top: 2px;
  border-top: 1px solid var(--line-2);
}
.result-cta[hidden] { display: none; }

/* Scroll-affordance: fade + stuiterend pijltje boven de sticky CTA */
.stage-fade {
  position: absolute; left: 0; right: 0; top: -52px;
  height: 52px; z-index: 2; pointer-events: none;
  background: linear-gradient(to top, #fff 12%, rgba(255,255,255,0));
  transition: opacity .3s;
}
.scrollcue {
  position: absolute; left: 50%; top: -54px; transform: translateX(-50%);
  z-index: 3;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; color: var(--brand);
  box-shadow: var(--sh-md);
  display: grid; place-items: center; cursor: pointer;
  animation: cueBounce 1.5s ease-in-out infinite;
  transition: opacity .3s;
}
.scrollcue[hidden] { display: none; }
@keyframes cueBounce { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 5px); } }
.result-cta__main { width: 100%; }
.result-cta__call { height: 62px; }
.result-cta__call--nonum { height: 56px; }
/* Vast nummer: op mobiel geen nummer in de knop (mensen tikken 'm gewoon aan) */
.result-cta__call--nonum .cta-call__num { display: none; }

/* Sticky-knoppen: mobiel alleen bellen; desktop bellen + terugbellen naast elkaar */
.result-cta__buttons { display: flex; flex-direction: column; gap: 9px; }
.result-cta__cb {
  display: none;                 /* op mobiel niet in de sticky (staat in de content) */
  background: var(--brand-tint); color: var(--brand-700);
  box-shadow: inset 0 0 0 1.5px rgba(14,123,99,.28), var(--sh-xs);
  font-weight: 700;
}
.result-cta__cb:hover { background: #ddf0e9; box-shadow: inset 0 0 0 1.5px var(--brand), var(--sh-sm); transform: translateY(-2px); }
@media (min-width: 560px) {
  .result-cta__buttons { display: grid; grid-template-columns: 1.5fr 1fr; gap: 10px; }
  .result-cta__buttons .btn { height: 60px; }
  .result-cta__cb { display: inline-flex; }                     /* op desktop tonen */
  .result-cta__call--nonum .cta-call__num { display: block; }   /* desktop: nummer altijd zichtbaar (overtypen) */
  .result-actions .result-actions__row { display: none; }       /* desktop: geen WhatsApp-rij (staat in sticky) */
}
/* Secundaire acties (WhatsApp / terugbellen) — in de scrollende content */
.result-actions { margin-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.result-actions__row { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.cta-call__txt { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.12; }
.cta-call__txt b { font-size: 16px; font-weight: 800; }
.cta-call__txt small { font-size: 12.5px; font-weight: 600; opacity: .92; }
.reassure--slim { margin: 0 0 1px; gap: 5px 12px; }
.reassure--slim span { font-size: 11.5px; }

/* --------------------------------------------------------- loading view */
.loader { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 8px 0 4px; }
.loader__ring {
  position: relative;
  width: 92px; height: 92px; margin: 6px 0 22px;
  border-radius: 50%;
  background:
    conic-gradient(from 0deg, var(--brand) 0deg, rgba(14,123,99,.08) 210deg 360deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 9px), #000 calc(100% - 8px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 9px), #000 calc(100% - 8px));
  animation: spin 1s linear infinite;
}
.loader__core {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--brand);
}
.loader__core svg { animation: pop .5s var(--ease) both; }
.loader__title { margin: 0 0 4px; font-size: 19px; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }
.loader__sub { margin: 0 0 22px; font-size: 14px; color: var(--muted); }

.checklist { width: 100%; max-width: 340px; display: flex; flex-direction: column; gap: 12px; text-align: left; }
.check {
  display: flex; align-items: center; gap: 13px;
  font-size: 14.5px; font-weight: 600; color: var(--faint);
  opacity: .5; transition: opacity .35s, color .35s;
}
.check__box {
  width: 26px; height: 26px; border-radius: 50%;
  flex: 0 0 auto;
  display: grid; place-items: center;
  border: 2px solid var(--line);
  color: var(--brand);
  position: relative;
}
.check__box .spinner {
  width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid var(--brand-ring); border-top-color: var(--brand);
  animation: spin .7s linear infinite; opacity: 0;
  transition: opacity .3s;
}
.check__box .tick { position: absolute; opacity: 0; transform: scale(.4); transition: opacity .3s, transform .3s var(--ease); }
.check.is-active { opacity: 1; color: var(--text); }
.check.is-active .check__box .spinner { opacity: 1; }
.check.is-done { opacity: 1; color: var(--ink); }
.check.is-done .check__box { background: var(--brand); border-color: var(--brand); }
.check.is-done .check__box .spinner { opacity: 0; }
.check.is-done .check__box .tick { opacity: 1; transform: scale(1); color: #fff; }

/* --------------------------------------------------------- result view */
.result { display: flex; flex-direction: column; }
.result__eyebrow {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px; border-radius: 99px;
  background: var(--brand-tint); color: var(--brand-700);
  font-size: 12.5px; font-weight: 700; letter-spacing: .01em;
  margin-bottom: 12px;
  animation: fadeUp .5s var(--ease) both;
}
.result__title {
  margin: 0 0 8px;
  font-size: clamp(20px, 4.8vw, 24px);
  line-height: 1.22; font-weight: 800; letter-spacing: -.015em; color: var(--ink);
  animation: fadeUp .5s var(--ease) .05s both;
}
.result__personal {
  margin: 0 0 18px; font-size: 14.5px; color: var(--muted);
  animation: fadeUp .5s var(--ease) .1s both;
}
.result__personal strong { color: var(--text); font-weight: 700; }

/* Match card */
.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--sh-md);
  overflow: hidden;
  animation: cardIn .6s var(--ease) .12s both;
}
.card__media {
  position: relative;
  display: flex; align-items: center; gap: 16px;
  padding: 18px;
  background:
    radial-gradient(120% 140% at 0% 0%, var(--brand-tint) 0%, transparent 55%),
    linear-gradient(180deg, #fff, #fff);
  border-bottom: 1px solid var(--line-2);
}
.avatar {
  position: relative;
  width: 84px; height: 84px; flex: 0 0 auto;
  border-radius: 18px;
  overflow: visible;   /* badge mag over de rand vallen i.p.v. weggeknipt worden */
  background: linear-gradient(150deg, var(--brand) 0%, var(--brand-700) 100%);
  box-shadow: var(--sh-sm), inset 0 0 0 1px rgba(255,255,255,.14);
  display: grid; place-items: center;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.avatar__initials {
  font-size: 30px; font-weight: 800; color: rgba(255,255,255,.95);
  font-family: "Inter", serif; letter-spacing: .01em;
}
.avatar__badge {
  position: absolute; right: -6px; bottom: -6px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--brand); color: #fff;
  display: grid; place-items: center;
  border: 3px solid #fff;
  box-shadow: var(--sh-xs);
}
.person { flex: 1 1 auto; min-width: 0; }
.person__name { margin: 0; font-size: 20px; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }
.person__role { margin: 2px 0 0; font-size: 13.5px; font-weight: 600; color: var(--brand-700); }
.person__meta { margin: 9px 0 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }

/* Keurmerken-strip (NVM / NWWI / NRVT) */
.keurmerken {
  margin-top: 16px;
  display: flex; flex-direction: column; align-items: center; gap: 11px;
  padding: 14px 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: var(--brand-tint-2);
}
.keurmerken__label { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.keurmerken__logos { display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap; }
.keurmerken__logos img { height: 25px; width: auto; max-width: 120px; }
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 10px; border-radius: 8px;
  background: var(--brand-tint-2); color: var(--brand-700);
  font-size: 11.5px; font-weight: 700; white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(14,123,99,.10);
}
.chip svg { flex: 0 0 auto; }
/* Meta-chips (Actief in {plaats} + Beëdigd · Register-taxateur) op volle kaartbreedte, gestapeld onder de avatar-rij */
.card__creds { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; padding: 14px 18px 4px; }
.chip__txt { display: inline; white-space: nowrap; }
.chip__dot { display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .5; margin: 0 7px; vertical-align: middle; }
.card__ribbon {
  position: absolute; top: 14px; right: 14px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px; border-radius: 99px;
  background: rgba(14,27,36,.85); color: #fff;
  font-size: 11.5px; font-weight: 700; letter-spacing: .02em;
  backdrop-filter: blur(6px);
}
.card__ribbon .dot { width: 7px; height: 7px; border-radius: 50%; background: #4FD1A6; box-shadow: 0 0 0 0 rgba(79,209,166,.6); animation: livePulse 1.8s ease-out infinite; }

.usps { list-style: none; margin: 0; padding: 16px 18px; display: grid; gap: 11px; }
.usps li { display: flex; align-items: flex-start; gap: 11px; font-size: 14.5px; font-weight: 500; color: var(--text); }
.usps li svg { flex: 0 0 auto; margin-top: 2px; color: var(--brand); }

/* Social proof */
.social {
  margin-top: 16px; text-align: center;
  animation: fadeUp .5s var(--ease) .2s both;
}
.stars { display: inline-flex; gap: 3px; color: var(--gold); }
.social__line { margin: 8px 0 2px; font-size: 15px; font-weight: 700; color: var(--ink); }
.social__meta { margin: 0; font-size: 13px; color: var(--muted); }
/* Round avatar (photo or coloured initials) */
.avatar-sm {
  flex: 0 0 auto;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; overflow: hidden;
  font-weight: 800; font-size: 15px; color: #fff;
  box-shadow: var(--sh-xs), inset 0 0 0 1px rgba(255,255,255,.25);
}
.avatar-sm img { width: 100%; height: 100%; object-fit: cover; }

/* Social-proof counter (klanten geholpen) */
.proofstat {
  display: flex; align-items: center; gap: 14px;
  padding: 15px 17px; margin-bottom: 16px;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--brand-tint), var(--brand-tint-2));
  border: 1px solid rgba(14,123,99,.14);
  animation: fadeUp .5s var(--ease) .16s both;
}
.avatarstack { display: flex; flex: 0 0 auto; }
.avatarstack .avatar-sm { width: 40px; height: 40px; margin-left: -12px; border: 2.5px solid #fff; font-size: 13px; }
.avatarstack .avatar-sm:first-child { margin-left: 0; }
.proofstat__body { text-align: left; min-width: 0; }
.proofstat__num {
  font-size: 23px; font-weight: 800; color: var(--brand-700);
  letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums;
}
.proofstat__label { font-size: 12.5px; color: var(--text); font-weight: 600; margin-top: 1px; }

.reviews { margin-top: 14px; display: grid; gap: 10px; }
.review {
  text-align: left;
  padding: 14px 15px; border-radius: var(--r-md);
  background: var(--brand-tint-2);
  border: 1px solid var(--line-2);
}
.review__head { display: flex; align-items: center; gap: 11px; margin-bottom: 9px; }
.review__meta { min-width: 0; }
.review__by { font-size: 13.5px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.review__by .vf { display: inline-flex; align-items: center; gap: 4px; color: var(--brand); font-weight: 700; font-size: 12px; }
.review__stars { margin-top: 3px; }
.review__text { margin: 0; font-size: 13.5px; color: var(--text); font-style: italic; }

/* Result CTAs */
.result .actions { margin-top: 20px; }
.actions__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.reassure {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 6px 14px; margin-top: 14px;
}
.reassure span { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.reassure svg { color: var(--brand); }

/* Contact block */
.contact {
  margin-top: 18px; padding-top: 16px;
  border-top: 1px solid var(--line-2);
  display: grid; gap: 10px;
  animation: fadeUp .5s var(--ease) .28s both;
}
.contact__row { display: flex; align-items: center; gap: 12px; }
.contact__ic {
  width: 38px; height: 38px; border-radius: 11px; flex: 0 0 auto;
  display: grid; place-items: center;
  background: var(--brand-tint); color: var(--brand);
}
.contact__label { font-size: 12px; color: var(--faint); font-weight: 600; }
.contact__value { font-size: 15px; color: var(--ink); font-weight: 700; text-decoration: none; }
a.contact__value:hover { color: var(--brand); }

/* --------------------------------------------------------- FAQ-chat (alleen /2-variant) */
/* Launcher: klein "Vragen?"-knopje rechtsboven in de header (spiegelt de terug-knop). */
.faqfab {
  position: absolute; top: -4px; right: -4px; z-index: 5;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; border: none; cursor: pointer;
  background: linear-gradient(150deg, var(--brand), var(--brand-700)); color: #fff;
  box-shadow: var(--sh-sm), inset 0 0 0 1px rgba(255,255,255,.16);
  transition: transform .15s, box-shadow .2s;
}
.faqfab::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(14,123,99,.5);
  animation: faqPulse 2.4s ease-out 3;
}
@keyframes faqPulse { to { box-shadow: 0 0 0 12px rgba(14,123,99,0); } }
.faqfab:hover { box-shadow: var(--sh-md); }
.faqfab:active { transform: scale(.94); }
.faqfab svg { color: #fff; }
/* Coach-ballon: legt kort uit dat de knop aangetikt kan worden (verschijnt bij binnenkomst). */
.faqcoach {
  position: absolute; top: 64px; right: 12px; z-index: 6;
  max-width: 224px; text-align: left;
  display: flex; align-items: center; gap: 8px;
  padding: 9px 10px 9px 13px; border-radius: 13px; border: none; cursor: pointer;
  background: #fff; color: var(--ink);
  font-family: inherit; font-size: 12.5px; font-weight: 600; line-height: 1.35;
  box-shadow: var(--sh-md);
  opacity: 0; transform: translateY(-6px) scale(.96); transform-origin: top right;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
  pointer-events: none;
}
.faqcoach.is-in { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.faqcoach strong { color: var(--brand-700); white-space: nowrap; }
.faqcoach__txt { flex: 1 1 auto; }
.faqcoach__x {
  flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; border: none; cursor: pointer;
  background: var(--line-2); color: var(--muted);
  transition: background .15s, color .15s;
}
.faqcoach__x:hover { background: var(--line); color: var(--ink); }
.faqcoach::after {
  content: ""; position: absolute; top: -5px; right: 15px;
  width: 11px; height: 11px; background: #fff; border-radius: 2px 0 0 0; transform: rotate(45deg);
}

/* Chat-paneel (bottom sheet, zelfde patroon als .sheet). */
.faqchat {
  position: fixed; inset: 0; z-index: 60;
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.faqchat.is-open { opacity: 1; visibility: visible; }
.faqchat__backdrop { position: absolute; inset: 0; background: rgba(14,27,36,.5); backdrop-filter: blur(3px); }
.faqchat__panel {
  position: relative; width: 100%; max-width: var(--maxw);
  background: var(--surface);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  box-shadow: var(--sh-lg);
  display: flex; flex-direction: column; max-height: 88dvh;
  transform: translateY(16px); transition: transform .34s var(--ease);
  padding-bottom: env(safe-area-inset-bottom);
}
.faqchat.is-open .faqchat__panel { transform: translateY(0); }
.faqchat__head { display: flex; align-items: center; gap: 11px; padding: 16px 18px 14px; border-bottom: 1px solid var(--line-2); }
.faqchat__ic {
  width: 38px; height: 38px; flex: 0 0 auto; border-radius: 11px;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(150deg, var(--brand), var(--brand-700)); box-shadow: var(--sh-xs);
}
.faqchat__titles { display: flex; flex-direction: column; line-height: 1.25; flex: 1 1 auto; min-width: 0; }
.faqchat__titles strong { font-size: 15px; font-weight: 800; color: var(--ink); }
.faqchat__titles span { font-size: 12.5px; color: var(--muted); }
.faqchat__close {
  width: 34px; height: 34px; flex: 0 0 auto; border-radius: 10px; border: none;
  background: var(--line-2); color: var(--muted); cursor: pointer;
  display: grid; place-items: center; transition: background .2s;
}
.faqchat__close:hover { background: var(--line); color: var(--ink); }
.faqchat__body {
  padding: 16px 16px 8px; overflow-y: auto; flex: 1 1 auto;
  display: flex; flex-direction: column; gap: 9px; background: var(--brand-tint-2);
}
.faqchat__msg { max-width: 84%; padding: 10px 13px; font-size: 13.5px; line-height: 1.5; border-radius: 15px; animation: fadeUp .3s var(--ease) both; }
.faqchat__msg--bot  { align-self: flex-start; background: #fff; color: var(--text); border-bottom-left-radius: 5px; box-shadow: var(--sh-xs); }
.faqchat__msg--user { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 5px; font-weight: 600; }
.faqchat__typing { display: inline-flex; gap: 4px; padding: 13px 14px; }
.faqchat__typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); animation: typing 1s infinite; }
.faqchat__typing span:nth-child(2) { animation-delay: .15s; }
.faqchat__typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%,60%,100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.faqchat__chips { display: flex; flex-wrap: wrap; gap: 7px; padding: 12px 16px; border-top: 1px solid var(--line-2); }
.faqchat__chip {
  font-family: inherit; font-size: 12.5px; font-weight: 600;
  padding: 8px 13px; border-radius: 99px; cursor: pointer;
  border: 1px solid rgba(14,123,99,.28); background: var(--brand-tint); color: var(--brand-700);
  transition: background .18s, transform .12s;
}
.faqchat__chip:hover { background: var(--brand-tint-2); }
.faqchat__chip:active { transform: scale(.96); }
.faqchat__done { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.faqchat__done svg { color: var(--brand); }
.faqchat__note {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 12px 16px; font-size: 12.5px; line-height: 1.45; font-weight: 500;
  color: var(--muted); border-top: 1px solid var(--line-2); background: #fff;
}
.faqchat__note strong { color: var(--ink); font-weight: 700; }
.faqchat__note svg { color: var(--brand); flex: 0 0 auto; margin-top: 1px; }
/* Desktop: chat als gecentreerde dialog i.p.v. bottom-sheet (plakt anders raar onderaan). */
@media (min-width: 600px) {
  .faqchat { align-items: center; padding: 24px; }
  .faqchat__panel {
    max-width: 430px; max-height: min(560px, 82dvh);
    border-radius: var(--r-xl);
    transform: translateY(0) scale(.96);
  }
  .faqchat.is-open .faqchat__panel { transform: translateY(0) scale(1); }
}

/* --------------------------------------------------------- quiz: top 3 makelaars */
.top3 { display: grid; gap: 14px; margin-top: 4px; }
.mcard {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--sh-sm);
  padding: 16px 15px 15px;
  animation: cardIn .5s var(--ease) both;
}
.mcard--top {
  border-color: transparent;
  box-shadow: 0 0 0 2px var(--brand), var(--sh-md);
  background: linear-gradient(180deg, var(--brand-tint-2), #fff 55%);
}
.mcard__rank {
  position: absolute; top: -11px; left: 14px;
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 800; color: #fff;
  background: var(--faint); box-shadow: var(--sh-xs);
}
.mcard__rank--top { background: var(--brand); }
.mcard__best {
  position: absolute; top: -11px; right: 14px;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 99px;
  background: var(--brand); color: #fff;
  font-size: 11.5px; font-weight: 700; box-shadow: var(--sh-xs);
}
.mcard__head { display: flex; align-items: center; gap: 13px; }
.avatar--mc { width: 58px; height: 58px; border-radius: 15px; }
.avatar--mc .avatar__badge { width: 22px; height: 22px; right: -5px; bottom: -5px; border-width: 2.5px; }
.mcard__id { flex: 1 1 auto; min-width: 0; }
.mcard__name { margin: 0; font-size: 16.5px; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }
.mcard__role { margin: 1px 0 6px; font-size: 12.5px; font-weight: 600; color: var(--brand-700); }
.mcard__score { flex: 0 0 auto; text-align: center; min-width: 50px; }
.mcard__pct { font-size: 22px; font-weight: 800; color: var(--brand-700); line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.mcard__pctlab { font-size: 10px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-top: 2px; }
.mcard__bar { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; margin: 13px 0 12px; }
.mcard__bar span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--brand), #34B08F); }
.mcard--top .mcard__bar { background: rgba(14,123,99,.15); }
.mcard__reason { margin: 0 0 13px; font-size: 13.5px; line-height: 1.5; color: var(--text); }
.mcard__cta { width: 100%; }

/* --------------------------------------------------------- booking sheet */
.sheet {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.sheet.is-open { opacity: 1; visibility: visible; }
.sheet__backdrop { position: absolute; inset: 0; background: rgba(14,27,36,.5); backdrop-filter: blur(3px); }
.sheet__panel {
  position: relative;
  width: 100%; max-width: var(--maxw);
  background: #fff;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  box-shadow: var(--sh-lg);
  padding: 10px 22px calc(22px + env(safe-area-inset-bottom));
  transform: translateY(16px);
  transition: transform .34s var(--ease);
  max-height: 92dvh; overflow-y: auto;
}
.sheet.is-open .sheet__panel { transform: translateY(0); }
.sheet__grab { width: 40px; height: 5px; border-radius: 99px; background: var(--line); margin: 4px auto 14px; }
.sheet__title { margin: 0 0 4px; font-size: 20px; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }
.sheet__sub { margin: 0 0 18px; font-size: 14px; color: var(--muted); }
.sheet__close {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px; border-radius: 10px; border: none;
  background: var(--line-2); color: var(--muted); cursor: pointer;
  display: grid; place-items: center; transition: background .2s;
}
.sheet__close:hover { background: var(--line); color: var(--ink); }

.form { display: grid; gap: 13px; }
.form__group { display: grid; gap: 6px; }
.form__label { font-size: 13px; font-weight: 700; color: var(--ink); }
.form__label .opt { font-weight: 500; color: var(--faint); }
.form__control {
  height: 54px; padding: 0 15px;
  font-size: 16px; font-family: inherit; color: var(--ink);
  background: var(--brand-tint-2);
  border: 1.5px solid var(--line); border-radius: var(--r-sm);
  outline: none; transition: border-color .2s, box-shadow .2s, background .2s;
}
textarea.form__control { height: auto; padding: 13px 15px; resize: vertical; min-height: 76px; }
.form__control:focus { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px var(--brand-ring); }
.form__control.is-invalid { border-color: #E4574C; background: #FEF4F3; }
.form__privacy { display: flex; align-items: center; gap: 8px; margin: 2px 0 4px; font-size: 12.5px; color: var(--muted); }
.form__privacy svg { color: var(--brand); flex: 0 0 auto; }

.form__success { text-align: center; padding: 18px 6px 8px; animation: fadeUp .45s var(--ease) both; }
.form__success .ok {
  width: 62px; height: 62px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--brand-tint); color: var(--brand);
  display: grid; place-items: center;
}
.form__success .ok svg { animation: pop .5s var(--ease) both; }
.form__success h3 { margin: 0 0 6px; font-size: 20px; font-weight: 800; color: var(--ink); }
.form__success p { margin: 0 auto; font-size: 14.5px; color: var(--muted); max-width: 34ch; }

/* --------------------------------------------------------- view states */
.app[data-view="loading"] #progress,
.app[data-view="result"]  #progress { opacity: 1; }
.app[data-view="loading"] .brand,
.app[data-view="result"] .brand { opacity: 1; }
.app[data-view="loading"] #trustbar,
.app[data-view="result"]  #trustbar { display: none; }
.app[data-view="result"] .funnel { padding-bottom: 22px; }

/* --------------------------------------------------------- keyframes */
@keyframes panelIn { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes stepIn  { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes stepOut { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-10px); } }
@keyframes optionIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes cardIn { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { 0% { opacity: 0; transform: scale(.4); } 60% { transform: scale(1.12); } 100% { opacity: 1; transform: scale(1); } }
@keyframes shake { 10%,90%{transform:translateX(-1px)} 20%,80%{transform:translateX(2px)} 30%,50%,70%{transform:translateX(-4px)} 40%,60%{transform:translateX(4px)} }
@keyframes barPulse { 0%,100%{ filter: brightness(1);} 50%{ filter: brightness(1.15);} }
@keyframes livePulse { 0%{ box-shadow: 0 0 0 0 rgba(79,209,166,.55);} 70%{ box-shadow: 0 0 0 7px rgba(79,209,166,0);} 100%{ box-shadow: 0 0 0 0 rgba(79,209,166,0);} }

/* --------------------------------------------------------- responsive */
@media (min-width: 560px) {
  .funnel { padding: 26px 30px 20px; }
  .card__media { padding: 20px 22px; }
  .usps { padding: 18px 22px; }
}

/* Short screens: tighten the vertical rhythm so steps still fit */
@media (max-height: 720px) {
  .hero { margin-bottom: 14px; }
  .funnel { padding-top: 16px; }
  .loader__ring { width: 78px; height: 78px; margin: 2px 0 16px; }
}

@media (max-width: 380px) {
  .btn { height: 56px; font-size: 15px; }
  .avatar { width: 72px; height: 72px; }
  .person__name { font-size: 18px; }
}
