/* =====================================================================
   ObjectCheck | Proland Vastgoed Media, versie 2
   Huisstijl: Ubuntu (koppen bold, -4% letterspacing), merkkleur #255EAD,
   zwart #020617. ObjectCheck heeft een warme papierkleur die aansluit op
   het logo. Grafisch motief: het huisje met vinkje uit het logo, als lijn,
   in een zoeker (de hoeken van een camerabeeld).
   ===================================================================== */

@font-face { font-family: "Ubuntu"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/ubuntu-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Ubuntu"; font-style: normal; font-weight: 500; font-display: swap; src: url("../assets/fonts/ubuntu-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Ubuntu"; font-style: normal; font-weight: 700; font-display: swap; src: url("../assets/fonts/ubuntu-latin-700-normal.woff2") format("woff2"); }

:root {
  --paper: #FAF8F5;
  --paper-2: #F2EEE8;
  --white: #FFFFFF;
  --ink: #020617;
  --text: #1E293B;
  --muted: #586274;
  --line: #E6E1D9;
  --line-2: #D3CCC2;
  --control: #8A93A2;
  --brand: #255EAD;
  --brand-hover: #1E4E92;
  --brand-ink: #1B4A8C;
  --tint: #EDF2FA;
  --tint-2: #D9E4F5;
  --danger: #B42318;
  --danger-line: #E9A9A2;
  --font: "Ubuntu", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 8px;
  --r-lg: 12px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t: 150ms;
  --ring: 0 0 0 3px rgba(37, 94, 173, .28);
  --wide: 1080px;
  --narrow: 880px;
  --gutter: 20px;
  --bar: 72px;
}
@media (min-width: 768px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; scroll-padding-bottom: calc(var(--bar) + 16px); }
body { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; font-family: var(--font); font-size: 16px; line-height: 1.5; color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, dl, dd, ol, figure { margin: 0; }
ol { padding: 0; list-style: none; }
h1, h2 { font-weight: 700; color: var(--ink); letter-spacing: -.04em; line-height: 1.08; }
img, svg { display: block; }
button, input, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
h1:focus-visible { outline: none; }
.ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 20; padding: 10px 16px; border-radius: var(--r); background: var(--ink); color: #fff; text-decoration: none; }
.skip:focus { top: 12px; }

.linkbtn { padding: 4px 0; border: 0; background: none; color: var(--brand); font-size: 15px; font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; cursor: pointer; }
.linkbtn:hover { color: var(--brand-hover); text-decoration-thickness: 2px; }
.linkbtn:disabled { opacity: .5; cursor: default; }
.linkbtn--small { font-size: 14px; }
.tag { display: inline-block; margin-left: 8px; font-size: 13px; font-weight: 400; letter-spacing: 0; color: var(--muted); white-space: nowrap; }
.tag::before { content: "("; }
.tag::after { content: ")"; }

/* ---------- huisje met vinkje (afgeleid van het logo) ---------- */
.oc-house { overflow: visible; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.oc-house__body { stroke: var(--ink); stroke-width: 7; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 900ms var(--ease) 150ms forwards; }
.oc-house__check { stroke: var(--brand); stroke-width: 8; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 450ms var(--ease) 900ms forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* zoekerhoeken, zoals in een camerabeeld */
.frame__corner { position: absolute; width: 22px; height: 22px; border: 0 solid var(--ink); }
.frame__corner--tl { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.frame__corner--tr { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
.frame__corner--bl { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; }
.frame__corner--br { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }

/* ---------- kop ---------- */
/* testmodus: dunne strook boven de kop, alleen in testmodus */
.testbar { margin: 0; padding: 5px var(--gutter); border-bottom: 1px dashed #C58A1A; background: #FFF6E3; font-size: 13px; color: #6B4A06; text-align: center; }
.testbar strong { font-weight: 500; }

.top { border-bottom: 1px solid var(--line); background: var(--paper); }
.top__inner { display: flex; align-items: center; gap: 40px; max-width: var(--wide); height: 64px; margin: 0 auto; padding: 0 var(--gutter); }
.top__brand { display: inline-flex; align-items: center; flex: none; height: 44px; border-radius: 6px; }
.top__logo { height: 24px; width: auto; }
.mainnav__list { display: flex; gap: 28px; margin: 0; padding: 0; list-style: none; }
.mainnav__link { position: relative; display: inline-flex; align-items: center; height: 64px; font-size: 15px; font-weight: 500; color: var(--muted); text-decoration: none; transition: color var(--t); }
.mainnav__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: var(--brand); transform: scaleX(0); transition: transform 200ms var(--ease); }
.mainnav__link:hover { color: var(--ink); }
.mainnav__link[aria-current="page"] { color: var(--ink); }
.mainnav__link[aria-current="page"]::after { transform: none; }
.mainnav__link:focus-visible { outline-offset: -4px; }
.top__contact { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; min-height: 40px; padding: 6px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: transparent; font-size: 15px; font-weight: 500; color: var(--ink); cursor: pointer; transition: border-color var(--t), background var(--t); }
.top__contact .ico { width: 16px; height: 16px; color: var(--brand); }
.top__contact:hover { border-color: var(--control); background: var(--white); }
@media (max-width: 719px) {
  /* mobiel: logo en Contact op de eerste regel, de twee pagina's eronder als tabs */
  .top__inner { flex-wrap: wrap; height: auto; gap: 0 12px; padding-top: 8px; }
  .top__logo { height: 20px; }
  .top__contact { padding: 4px 12px; font-size: 14px; min-height: 36px; }
  .mainnav { order: 3; flex-basis: 100%; }
  .mainnav__list { gap: 0; }
  .mainnav__list li { flex: 1; }
  .mainnav__link { justify-content: center; width: 100%; height: 44px; font-size: 14px; }
}

/* objectcontext bij de vragenflow: rustig, boven de stappen */
/* De context (adres, order, stappen) is een eigen laag: duidelijk los van de navbar, compact boven de vraag. */
.flow__ctx { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; padding-top: clamp(24px, 4.2dvh, 44px); font-size: 14px; color: var(--muted); }
.flow__address { min-width: 0; color: var(--text); overflow-wrap: anywhere; }
.flow__nr { font-variant-numeric: tabular-nums; }

.main { flex: 1; display: flex; flex-direction: column; width: 100%; max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }

.view.is-entering, .step.is-entering, .panel.is-entering { animation: enter 240ms var(--ease); }
.view.is-entering-back, .step.is-entering-back { animation: enterBack 240ms var(--ease); }
@keyframes enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes enterBack { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- welkom ---------- */
.intro { display: grid; gap: 32px; padding: 28px 0 40px; }
.intro__hello { font-size: 18px; font-weight: 500; color: var(--text); }
.intro__title { margin-top: 8px; font-size: clamp(36px, 9vw, 60px); line-height: 1.02; text-wrap: balance; }
.intro__lead { margin-top: 16px; max-width: 31em; font-size: 18px; line-height: 1.55; }
.intro__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 28px; }
/* Contextformulier: alleen wat ontbreekt, of alles bij "Gegevens aanpassen" */
.ctxform { max-width: 30em; margin-top: 24px; padding: 18px 20px 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); }
.ctxform__title { font-size: 17px; font-weight: 700; color: var(--ink); }
.ctxform__hint { margin-top: 2px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.ctxform__fields { display: grid; gap: 14px; margin-top: 14px; }
.ctxform .field__label { margin-bottom: 5px; }
.ctxform .field__hint { margin: 6px 0 0; }
.ctxform .error:empty { display: none; }
.ctxform .error { margin-top: 6px; }
.ctxform .field.is-invalid .input { border-color: var(--danger-line); }
.ctxform__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 18px; }
.ctxform:not([hidden]) + .intro__actions { margin-top: 20px; }
/* rustige bewaarmelding onder de actiegroep, apart van de knop */
.intro .notice { margin-top: 20px; max-width: 34em; }
@media (max-width: 559px) { .intro__actions .btn { width: 100%; } }
@media (min-width: 900px) {
  .intro { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 72px; align-items: center; min-height: calc(100dvh - 65px - 64px); padding: 40px 0; }
}

.frame { display: grid; gap: 18px; }
.frame__view { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; max-height: 46vh; padding: 28px; background: var(--paper-2); border-radius: 2px; }
@media (max-width: 899px) { .frame { order: -1; grid-template-columns: 132px minmax(0, 1fr); align-items: center; gap: 18px; } .frame__view { padding: 16px; } }
.frame__grid { position: absolute; inset: 22px; background:
  linear-gradient(var(--line-2), var(--line-2)) 33.33% 0 / 1px 100% no-repeat,
  linear-gradient(var(--line-2), var(--line-2)) 66.66% 0 / 1px 100% no-repeat,
  linear-gradient(var(--line-2), var(--line-2)) 0 33.33% / 100% 1px no-repeat,
  linear-gradient(var(--line-2), var(--line-2)) 0 66.66% / 100% 1px no-repeat; opacity: .55; }
.frame__house { position: relative; width: 44%; height: auto; aspect-ratio: 1; }
.frame__rec { position: absolute; left: 16px; bottom: 14px; display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); font-variant-numeric: tabular-nums; }
.frame__rec::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
@media (max-width: 899px) { .frame__rec { display: none; } .frame__house { width: 62%; } .frame__grid { inset: 12px; } .frame__corner { width: 14px; height: 14px; } }
.frame__caption { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.frame__label { font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.frame__address { margin-top: 4px; font-size: 19px; font-weight: 500; line-height: 1.3; color: var(--ink); overflow-wrap: anywhere; }
.frame__fix { margin-top: 4px; }
@media (max-width: 899px) { .frame__address { font-size: 17px; } }

/* ---------- vragenflow ---------- */
/* de flow vult de hoogte onder de kop, zodat het generatiescherm zich in die ruimte kan centreren */
.flow { flex: 1; display: flex; flex-direction: column; width: 100%; max-width: var(--narrow); margin: 0 auto; }

/* stappen: één lichte lijn met namen */
.steps { padding: 14px 0 0; }
.steps__list { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.steps__item { position: relative; min-width: 0; padding-top: 10px; border-top: 3px solid var(--line); transition: border-color 300ms var(--ease); }
.steps__item.is-done, .steps__item.is-current { border-top-color: var(--brand); }
.steps__link { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; min-height: 32px; padding: 0; border: 0; background: none; font-size: 14px; color: var(--muted); text-align: left; }
button.steps__link { cursor: pointer; }
button.steps__link:hover .steps__name { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.steps__nr { display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-2); font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
.steps__nr .ico { width: 12px; height: 12px; stroke-width: 3; }
.steps__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.steps__item.is-done .steps__link { color: var(--text); }
.steps__item.is-done .steps__nr { border-color: var(--brand); background: var(--brand); color: #fff; }
.steps__item.is-current .steps__link { color: var(--ink); font-weight: 500; }
.steps__item.is-current .steps__nr { border-color: var(--ink); background: var(--ink); color: #fff; }
@media (max-width: 599px) {
  .steps { padding-top: 12px; }
  .steps__list { display: flex; gap: 6px; }
  .steps__item { flex: 1 1 0; }
  .steps__item.is-current { flex: 3.2 1 0; }
  .steps__item:not(.is-current) .steps__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
.only-sm { display: none; }
@media (max-width: 599px) { .only-sm { display: inline; } .not-sm { display: none; } }

.panel {
  /* Ruimte tussen stapnavigatie en paneel groeit mee met de vensterhoogte:
     op lage schermen compact, op ruime schermen staat het paneel lager en
     optisch in balans. Elke stap begint op dezelfde hoogte. */
  padding-top: clamp(32px, calc(32px + (100dvh - 740px) * .17), 64px);
}
/* het controlescherm heeft vaak lange inhoud: hoger verankerd, de briefing krijgt ruimte naar beneden */
#panel-review { padding-top: clamp(28px, calc(28px + (100dvh - 740px) * .1), 48px); }
.panel__head { margin-bottom: 20px; }
.panel__title { font-size: 28px; text-wrap: balance; }
.panel__intro { margin-top: 8px; font-size: 17px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }
@media (min-width: 768px) { .panel__title { font-size: 32px; } }

/* vragen als rijen: vraag links, antwoord rechts */
.rows { border-top: 1px solid var(--line-2); }
/* De laatste zichtbare vraag krijgt geen eigen onderlijn: de lijn van de knoppenbalk sluit de vragen af. */
.rows > .row:not([hidden]):not(:has(~ .row:not([hidden]))) { border-bottom: 0; }
.row { padding: 14px 0 16px; border-bottom: 1px solid var(--line); }
.row__label { margin-bottom: 10px; }
.q__label { display: block; font-size: 17px; font-weight: 500; line-height: 1.35; letter-spacing: -.005em; color: var(--ink); }
.q__hint { margin-top: 3px; font-size: 14px; font-weight: 400; line-height: 1.45; color: var(--muted); }
.row__control { min-width: 0; }
.row__stack { display: grid; gap: 0; }
@media (min-width: 720px) {
  .row { display: grid; grid-template-columns: 216px minmax(0, 1fr); gap: 24px; align-items: start; padding: 13px 0; }
  .row__label { margin-bottom: 0; padding-top: 7px; }
  .row--text .row__label { padding-top: 10px; }
}
.error { display: none; margin-top: 8px; font-size: 14px; font-weight: 500; color: var(--danger); }
.error:not(:empty) { display: block; }

/* labels (één of meer keuzes) */
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { position: relative; display: inline-flex; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip__face { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 7px 13px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--white); font-size: 15px; font-weight: 400; line-height: 1.2; color: var(--ink); transition: border-color var(--t), background var(--t), color var(--t), box-shadow var(--t); }
/* Keuzes veranderen nooit van afmeting: gewicht, rand, padding en de ruimte voor het
   vinkje zijn in elke staat gelijk. Alleen kleur, achtergrond en schaduw wisselen. */
.chip__face .ico { display: none; }
.chips--multi .chip__face { padding-left: 10px; }
.chips--multi .chip__face .ico { display: block; width: 16px; height: 16px; padding: 2px; border-radius: 4px; box-shadow: inset 0 0 0 1.5px var(--control); color: transparent; stroke-width: 3; transition: background var(--t), color var(--t), box-shadow var(--t); }
.chips--multi .chip:hover .chip__face .ico { box-shadow: inset 0 0 0 1.5px var(--text); }
.chips--multi .chip input:checked + .chip__face .ico { background: var(--brand); box-shadow: none; color: var(--white); }
.chip:hover .chip__face { border-color: var(--control); }
.chip input:focus-visible + .chip__face { box-shadow: var(--ring); border-color: var(--brand); }
.chip input:checked + .chip__face { border-color: var(--brand); background: var(--brand); color: #fff; }
.chips--multi .chip input:checked + .chip__face { background: var(--tint); color: var(--brand-ink); box-shadow: inset 0 0 0 1px var(--brand); }
.chips--multi .chip input:checked:focus-visible + .chip__face { box-shadow: inset 0 0 0 1px var(--brand), var(--ring); }
.q.is-invalid .chip__face { border-color: var(--danger-line); }
.q.is-invalid .chips--multi .chip__face .ico { box-shadow: inset 0 0 0 1.5px var(--danger-line); }

/* rustige lijst met vinkjes */
.checks { margin-top: -6px; }
.checks__item + .checks__item { border-top: 1px solid var(--line); }
.check { position: relative; display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 8px 4px; cursor: pointer; }
.check input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.check__box { display: grid; place-items: center; flex: none; width: 20px; height: 20px; border: 1.5px solid var(--control); border-radius: 5px; background: var(--white); color: transparent; transition: background var(--t), border-color var(--t); }
.check__box .ico { width: 14px; height: 14px; stroke-width: 3; }
.check__text { font-size: 16px; color: var(--ink); }
.check:hover .check__box { border-color: var(--text); }
.check input:checked ~ .check__box { background: var(--brand); border-color: var(--brand); color: #fff; }
.check input:focus-visible ~ .check__box { box-shadow: var(--ring); }
.q.is-invalid .check__box { border-color: var(--danger); }
.checks__item .follow { margin: 0 0 14px 32px; }

/* schaal 1 t/m 5 */
.rating { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.rating__cells { display: inline-grid; grid-template-columns: repeat(5, 44px); border: 1px solid var(--line-2); border-radius: var(--r); background: var(--white); overflow: hidden; }
.rating__cell { position: relative; display: grid; place-items: center; height: 40px; cursor: pointer; }
.rating__cell + .rating__cell { border-left: 1px solid var(--line); }
.rating__cell input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.rating__num { font-size: 15px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; transition: color var(--t); }
.rating__cell::before { content: ""; position: absolute; inset: 0; background: var(--tint-2); transform: scaleY(0); transform-origin: bottom; transition: transform 200ms var(--ease); }
.rating__cell.is-filled::before { transform: none; }
.rating__cell.is-filled .rating__num { color: var(--brand-ink); position: relative; }
.rating__cell:has(input:checked)::before { background: var(--brand); }
.rating__cell:has(input:checked) .rating__num { color: #fff; position: relative; }
.rating__cell:hover .rating__num { color: var(--ink); }
.rating__cell:has(input:focus-visible) { box-shadow: inset 0 0 0 3px var(--brand); z-index: 1; }
.rating__num { position: relative; }
.rating__caption { font-size: 14px; color: var(--muted); }
.rating__caption strong { font-size: 15px; font-weight: 500; color: var(--ink); }
.q.is-invalid .rating__cells { border-color: var(--danger); }

/* vervolgvelden */
.follow { margin-top: 12px; padding-left: 14px; border-left: 2px solid var(--tint-2); animation: enter 200ms var(--ease); }
.follow__intro { margin-bottom: 8px; font-size: 14px; color: var(--muted); }
.follow__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { grid-column: 1 / -1; }
.field--half { grid-column: auto; }
@media (max-width: 479px) { .field--half { grid-column: 1 / -1; } }
.field__label { display: block; margin-bottom: 6px; font-size: 15px; font-weight: 500; color: var(--ink); }
.field__hint { margin: -2px 0 6px; font-size: 14px; line-height: 1.4; color: var(--muted); }
.input { display: block; width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--control); border-radius: var(--r); background: var(--white); font-size: 16px; line-height: 1.45; color: var(--ink); transition: border-color var(--t), box-shadow var(--t); }
textarea.input { min-height: 68px; resize: vertical; }
.row--text textarea.input { min-height: 68px; }
.input::placeholder { color: #7B8494; opacity: 1; }
.input:hover { border-color: var(--text); }
.input:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
.field.is-invalid .input { border-color: var(--danger); }

/* ---------- knoppen ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 10px 22px; border: 1px solid transparent; border-radius: var(--r); font-size: 16px; font-weight: 500; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer; transition: background var(--t), border-color var(--t), color var(--t); -webkit-tap-highlight-color: transparent; }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-hover); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--control); background: var(--white); }
.btn--quiet { background: transparent; color: var(--brand); padding-left: 10px; padding-right: 10px; }
.btn--quiet:hover { background: var(--tint); }
.btn--lg { min-height: 56px; padding: 14px 28px; font-size: 17px; }
.btn--small { min-height: 38px; padding: 6px 14px; font-size: 15px; }
.btn--quiet.btn--small { padding: 6px 10px; }
.btn:disabled { opacity: .5; cursor: default; }
.btn__spinner { display: none; width: 18px; height: 18px; flex: none; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: spin .8s linear infinite; }
.btn.is-loading { cursor: progress; }
.btn.is-loading .btn__spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* knoppenbalk: altijd op dezelfde plek onderaan het venster, zonder iets af te snijden */
.actions { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; gap: 12px; margin-top: 0; padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); background: var(--paper); box-shadow: 0 -1px 0 var(--line-2); }
.actions .btn--primary { margin-left: auto; min-width: 180px; }
.actions--plain { position: static; box-shadow: none; padding-bottom: 0; margin-top: 24px; }
body.kb-open .actions { position: static; }
/* heel lage vensters (bijvoorbeeld sterk ingezoomd): de balk schuift gewoon mee */
@media (max-height: 480px) { .actions { position: static; } }
@media (max-width: 599px) {
  .actions { margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); }
  .actions .btn--primary { flex: 1; min-width: 0; }
  .actions .btn--ghost { padding-left: 14px; padding-right: 14px; }
  .actions--plain { flex-direction: column-reverse; align-items: stretch; margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
}

/* ---------- meldingen ---------- */
.notice { margin-top: 16px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--white); font-size: 15px; color: var(--text); }
.notice p + .btn { margin-top: 10px; }
.notice--warn { border-color: #E5C987; background: #FFF9EC; color: #513B06; }
.notice--info { border-color: var(--tint-2); background: var(--tint); color: var(--brand-ink); }
.notice--error { border-color: var(--danger-line); background: #FEF4F2; color: #7A1A10; }
.notice--test { border-style: dashed; font-size: 14px; }

/* ---------- briefing maken ---------- */
.panel--center {
  /* gecentreerde statusgroep in de ruimte onder de stapnavigatie, iets boven het midden */
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  flex: 1;
  padding: 32px 0 max(48px, 10dvh);
  text-align: center;
}
.gen { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 30rem; }
.gen .panel__title { font-size: 28px; }
.gen .panel__intro { max-width: 26rem; }
.gen__house { width: 72px; height: 72px; margin-bottom: 24px; }
.gen .gen__house--still .oc-house__body, .gen .gen__house--still .oc-house__check { animation: none; stroke-dashoffset: 0; }
.gen .gen__house--still .oc-house__check { stroke: var(--control); }
.gen__house .oc-house__body { animation: draw 900ms var(--ease) forwards; }
.gen__house .oc-house__check { animation: drawLoop 1.6s var(--ease) 700ms infinite; }
@keyframes drawLoop { 0% { stroke-dashoffset: 1; } 45%, 75% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -1; } }
.gen__kept { margin-top: 12px; font-size: 16px; font-weight: 500; color: var(--ink); }
.gen__detail { margin-top: 16px; text-align: left; padding: 10px 12px; border: 1px dashed var(--line-2); border-radius: var(--r); font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }

/* ---------- controleren ---------- */
.brief { position: relative; margin-top: 4px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); transition: border-color var(--t), box-shadow var(--t); }
.brief::before { content: ""; position: absolute; left: -1px; top: 18px; bottom: 18px; width: 3px; border-radius: 0 3px 3px 0; background: var(--brand); }
.brief__head { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 24px; border-bottom: 1px solid var(--line); }
.brief__label { font-size: 13px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); }
.brief__count { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.brief__head .btn { margin-left: auto; }
.brief__body { padding: 18px 28px 6px 24px; }
.brief__body p { max-width: 64ch; margin-bottom: 12px; font-size: 17px; line-height: 1.6; color: var(--ink); }
.brief__edit { padding: 12px 16px 4px; }
.brief__text { display: block; width: 100%; min-height: 200px; padding: 8px 10px; border: 0; border-radius: var(--r); background: var(--tint); font-size: 17px; line-height: 1.6; color: var(--ink); resize: none; overflow: hidden; }
.brief__text:focus { outline: none; box-shadow: var(--ring); }
.brief.is-editing { border-color: var(--brand); }
.brief .error { margin: 0 24px 8px; }
.brief__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; padding: 6px 24px 12px; }
.brief__edited { font-size: 13px; font-weight: 500; color: var(--brand-ink); }
.brief.is-stale .brief__body { opacity: .45; }
.brief__private { margin-top: 10px; font-size: 14px; color: var(--muted); }
#panel-review .notice--warn { margin: 0 0 14px; }
@media (max-width: 599px) {
  .brief__head { flex-wrap: wrap; padding-left: 18px; }
  .brief__body { padding: 14px 16px 4px 18px; }
  .brief__body p, .brief__text { font-size: 16px; }
  .brief__foot { padding-left: 18px; }
}

/* ---------- bedankt ---------- */
/* Gecentreerde compositie: een lage beeldbalk met het huisje, de bevestiging,
   het object, en drie korte onderdelen. Geen tijdlijn: dit is uitleg, geen status. */
.done { width: 100%; max-width: var(--narrow); margin: 0 auto; padding: clamp(28px, 5dvh, 56px) 0 48px; text-align: center; }
.done__band { position: relative; display: grid; place-items: center; height: clamp(112px, 17dvh, 168px); background: var(--paper-2); }
.done__band .frame__corner { width: 18px; height: 18px; }
.done__grid { position: absolute; inset: 14px 22px; opacity: .5; background:
  linear-gradient(var(--line-2), var(--line-2)) 33.33% 0 / 1px 100% no-repeat,
  linear-gradient(var(--line-2), var(--line-2)) 66.66% 0 / 1px 100% no-repeat,
  linear-gradient(var(--line-2), var(--line-2)) 0 50% / 100% 1px no-repeat; }
.done__house { position: relative; width: clamp(76px, 11.5dvh, 120px); height: auto; aspect-ratio: 1; }
.done__house .oc-house__check { stroke-width: 9; animation-delay: 750ms; }
.done__head { margin-top: clamp(24px, 4dvh, 36px); }
.done__eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.done__eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.done__title { max-width: 16em; margin: 10px auto 0; font-size: clamp(30px, 5.6vw, 46px); text-wrap: balance; }
.done__object { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 12px; max-width: 100%; margin-top: 16px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font-size: 15px; color: var(--ink); }
.done__object .ico { width: 16px; height: 16px; color: var(--brand); }
.done__sep { width: 1px; height: 14px; background: var(--line-2); }
.done__nr { color: var(--muted); font-variant-numeric: tabular-nums; }
.done__next { display: grid; gap: 0; margin: clamp(28px, 4.5dvh, 44px) 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); text-align: left; }
.done__item { display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 14px; align-content: start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.done__ico { grid-row: span 3; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--tint); color: var(--brand); }
.done__ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.done__item--ok .done__ico { background: var(--brand); color: var(--white); }
.done__item--ok .done__ico svg { stroke-width: 2.6; }
.done__h { font-size: 17px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; color: var(--ink); }
.done__p { margin-top: 4px; font-size: 15px; line-height: 1.5; color: var(--text); }
.done__link { justify-self: start; margin-top: 6px; }
.done__test { max-width: 40em; margin: 24px auto 0; text-align: left; }
@media (max-width: 559px) {
  .done__object { flex-direction: column; gap: 2px; padding: 10px 16px; border-radius: 12px; }
  .done__object .ico, .done__sep { display: none; }
}
@media (min-width: 768px) {
  .done__next { grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
  .done__item { grid-template-columns: 1fr; padding: 24px 24px 26px; border-bottom: 0; }
  .done__item + .done__item { border-left: 1px solid var(--line); }
  .done__item:first-child { padding-left: 4px; }
  .done__item:last-child { padding-right: 4px; }
  .done__ico { grid-row: auto; margin-bottom: 14px; }
}

/* ---------- status: ordercontext laden of niet beschikbaar ---------- */
.status { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 1; width: 100%; max-width: 560px; margin: 0 auto; padding: 48px 0 max(48px, 10dvh); text-align: center; }
.status__mark { position: relative; display: grid; place-items: center; width: 112px; aspect-ratio: 1; margin-bottom: 26px; background: var(--paper-2); }
.status__mark .frame__corner { width: 14px; height: 14px; }
.status__house { width: 62%; height: auto; aspect-ratio: 1; }
.status__house .oc-house__body, .status__house .oc-house__check { animation: none; stroke-dashoffset: 0; }
.status[data-state="loading"] .status__house .oc-house__check { stroke: var(--line-2); }
.status:not([data-state="loading"]) .status__house .oc-house__check { stroke: var(--control); }
.status__spinner { width: 22px; height: 22px; margin-bottom: 14px; border: 2px solid var(--tint-2); border-top-color: var(--brand); border-radius: 50%; animation: spin 900ms linear infinite; }
.status__title { font-size: clamp(24px, 4vw, 30px); line-height: 1.2; text-wrap: balance; }
.status__title:focus { outline: none; }
.status__text { max-width: 30em; margin-top: 10px; font-size: 17px; line-height: 1.55; color: var(--text); text-wrap: pretty; }
.status__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.status__actions:not(:has(:not([hidden]))) { display: none; }
.status__detail { max-width: 34em; margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.5; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .status__spinner { animation-duration: 2.4s !important; animation-iteration-count: infinite !important; } }

/* ---------- voet (alleen welkom en bedankt) ---------- */
.footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; width: 100%; max-width: var(--wide); margin: 0 auto; padding: 18px var(--gutter) calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.footer__brand { display: flex; align-items: center; gap: 10px; }
.footer__brand img { height: 15px; width: auto; }

/* ---------- dialoog ---------- */
.dialog { width: min(500px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 14px; background: var(--white); color: var(--text); box-shadow: 0 24px 60px -20px rgba(2, 6, 23, .35); }
.dialog::backdrop { background: rgba(2, 6, 23, .4); }
.dialog__inner { padding: 26px; }
.dialog__title { font-size: 22px; }
.dialog__text { margin-top: 10px; font-size: 16px; }
.dialog__actions { display: flex; flex-direction: column-reverse; gap: 10px; margin-top: 22px; }
.dialog__actions .btn { padding-left: 18px; padding-right: 18px; }
@media (min-width: 540px) { .dialog__actions { flex-direction: row; justify-content: flex-end; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .oc-house__body, .oc-house__check { stroke-dashoffset: 0; }
  .gen__house .oc-house__check { animation: none !important; stroke-dashoffset: 0; }
  .btn__spinner { animation: none !important; }
}

/* foutstatus van het generatiescherm in dezelfde gecentreerde opbouw */
.gen .actions--plain { justify-content: center; width: 100%; }
.gen .actions--plain .btn--primary { margin-left: 0; min-width: 0; }
@media (max-width: 599px) { .gen .panel__title { font-size: 24px; } }


/* ---------- goed voorbereid ---------- */
/* Eén doorlopende pagina: brede compositie voor beeld en interactie, smallere maat voor lopende tekst. */
.about { padding: 32px 0 64px; }
.about__eyebrow { font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.about__title { margin-top: 12px; font-size: clamp(36px, 6.4vw, 68px); line-height: 1.02; letter-spacing: -.035em; }
.about__title .nb + .nb { white-space: nowrap; }
@media (min-width: 720px) { .about__title .nb { white-space: nowrap; } }

/* hoekmarkeringen: hetzelfde merkdetail als het kader op het welkomstscherm */
.corner { position: absolute; z-index: 1; width: 22px; height: 22px; border: 0 solid var(--ink); pointer-events: none; }
.corner--tl { top: -8px; left: -8px; border-top-width: 2px; border-left-width: 2px; }
.corner--tr { top: -8px; right: -8px; border-top-width: 2px; border-right-width: 2px; }
.corner--bl { bottom: -8px; left: -8px; border-bottom-width: 2px; border-left-width: 2px; }
.corner--br { bottom: -8px; right: -8px; border-bottom-width: 2px; border-right-width: 2px; }

/* beeldsectie: foto en kernboodschap in één vlak */
.about__intro { position: relative; display: grid; margin-top: 32px; background: var(--paper-2); }
.about__photo { position: static; margin: 0; }
.about__photo .corner { display: none; }
.about__photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 24%; }
.about__lead::before { content: ""; display: block; width: 32px; height: 3px; margin-bottom: 18px; border-radius: 2px; background: var(--brand); }
.about__lead { order: 2; padding: 24px 22px 28px; font-size: 20px; font-weight: 500; line-height: 1.45; letter-spacing: -.01em; color: var(--ink); text-wrap: pretty; }
@media (min-width: 720px) {
  .about__intro { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; }
  .about__photo .corner { display: block; }
  .about__photo img { aspect-ratio: 4 / 5; object-position: 50% 30%; }
  .about__lead { order: 0; grid-column: 2; grid-row: 1; max-width: 22em; padding: 40px clamp(32px, 6vw, 72px); font-size: clamp(21px, 2.2vw, 26px); }
}
@media (min-width: 900px) { .about__intro { grid-template-columns: 400px minmax(0, 1fr); } }

/* secties */
.about__sec { padding-top: clamp(56px, 8vw, 96px); }
.about__head { max-width: 760px; margin-bottom: 28px; }
.about__head .about__p { max-width: 36em; }
.about__h { font-size: clamp(26px, 3.4vw, 34px); line-height: 1.12; letter-spacing: -.025em; text-wrap: balance; }
.about__p { margin-top: 10px; font-size: 17px; line-height: 1.6; color: var(--text); }

/* rollen: keuzebalk + uitleg */
.roles__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 6px; border-radius: var(--r-lg); background: var(--paper-2); }
.roles__tab { display: grid; align-content: start; justify-items: center; gap: 6px; min-height: 76px; padding: 12px 6px; border: 1px solid transparent; border-radius: var(--r); background: transparent; font: inherit; font-size: 14px; font-weight: 500; color: var(--muted); text-align: center; cursor: pointer; transition: background var(--t), color var(--t), border-color var(--t), box-shadow var(--t); }
.roles__tab:hover { color: var(--ink); }
.roles__tab[aria-selected="true"] { border-color: var(--line); background: var(--white); color: var(--ink); box-shadow: 0 1px 2px rgba(2, 6, 23, .06); }
.roles__ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.roles__tab[aria-selected="true"] .roles__ico { color: var(--brand); }
.roles__name { display: grid; gap: 1px; line-height: 1.2; }
.roles__cond { font-size: 12px; font-weight: 400; color: var(--muted); }
.roles__panels { display: grid; gap: 16px; }
.roles__panel { padding: 24px 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); }
.roles__title { font-size: 20px; letter-spacing: -.015em; }
.roles__title .roles__cond { margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--paper-2); font-size: 13px; font-weight: 500; vertical-align: 2px; }
.roles__text { margin-top: 10px; max-width: 34em; font-size: 18px; line-height: 1.55; color: var(--ink); }
.roles__kicker { margin-top: 20px; font-size: 13px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ticks { display: grid; gap: 10px; margin: 10px 0 0; padding: 0; list-style: none; }
.ticks li { display: flex; align-items: flex-start; gap: 12px; font-size: 16px; line-height: 1.45; }
.ticks .ico { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--tint); color: var(--brand); stroke-width: 3; }
/* met JavaScript: de panelen liggen op dezelfde plek, dus de hoogte springt niet bij wisselen */
.roles.is-tabs .roles__panels { gap: 0; margin-top: 12px; }
.roles.is-tabs .roles__panel { grid-area: 1 / 1; visibility: hidden; }
.roles.is-tabs .roles__panel.is-active { visibility: visible; animation: enter 200ms var(--ease); }
.roles.is-tabs .roles__title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.roles.is-tabs .roles__panel { position: relative; }
.roles__panel:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
@media (min-width: 720px) {
  .roles.is-tabs .roles__box { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 16px; align-items: stretch; }
  .roles__list { grid-template-columns: 1fr; align-content: start; }
  .roles__tab { grid-template-columns: 24px minmax(0, 1fr); justify-items: start; align-items: center; gap: 14px; min-height: 64px; padding: 12px 16px; font-size: 16px; text-align: left; }
  .roles__name .roles__cond { font-size: 13px; }
  .roles.is-tabs .roles__panels { margin-top: 0; }
  .roles__panel { padding: 36px 40px; }
}

/* route: drie momenten, bewust zonder nummers zodat het geen tweede voortgangsbalk wordt */
.route__list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.route__item { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); grid-auto-rows: min-content; align-content: start; column-gap: 18px; padding-bottom: 28px; }
.route__item:last-child { padding-bottom: 0; }
.route__ico { grid-row: span 2; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--tint); color: var(--brand); }
.route__item:last-child .route__ico { background: var(--brand); color: var(--white); }
.route__ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.route__item:not(:last-child)::before { content: ""; position: absolute; top: 56px; bottom: 8px; left: 23px; border-left: 2px dotted var(--line-2); }
.route__title { padding-top: 12px; font-size: 18px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; color: var(--ink); }
.route__text { margin-top: 4px; font-size: 16px; line-height: 1.5; color: var(--muted); }
@media (min-width: 720px) {
  .route__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
  .route__item { grid-template-columns: 1fr; row-gap: 0; padding: 0; }
  .route__ico { grid-row: auto; margin-bottom: 18px; }
  .route__item:not(:last-child)::before { top: 23px; bottom: auto; left: 64px; right: -24px; border-left: 0; border-top: 2px dotted var(--line-2); }
  .route__title { padding-top: 0; }
  .route__text { max-width: 22em; }
}
.route__item.will-reveal { opacity: 0; transform: translateY(10px); transition: opacity 420ms var(--ease), transform 420ms var(--ease); }
.route__item.will-reveal:nth-child(2) { transition-delay: 90ms; }
.route__item.will-reveal:nth-child(3) { transition-delay: 180ms; }
.route__item.will-reveal.is-in { opacity: 1; transform: none; }

/* afsluiting met de actie */
.about__close { position: relative; margin-top: clamp(64px, 9vw, 104px); padding: 44px 24px; background: var(--tint); text-align: center; }
.about__close .corner { border-color: var(--brand); }
.about__close-title { max-width: 18em; margin: 0 auto; font-size: clamp(24px, 3vw, 30px); line-height: 1.2; letter-spacing: -.02em; text-wrap: balance; }
.about__close-p { max-width: 30em; margin: 10px auto 0; font-size: 17px; line-height: 1.55; color: var(--text); text-wrap: balance; }
.about__cta { margin-top: 26px; }
.about__done { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-size: 17px; color: var(--brand-ink); }
.about__done .ico { width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: var(--brand); color: var(--white); stroke-width: 3; }
@media (min-width: 720px) { .about__close { padding: 56px 40px; } }
@media (max-width: 559px) { .about__cta .btn { width: 100%; } }

@media (prefers-reduced-motion: reduce) {
  .route__item.will-reveal { opacity: 1; transform: none; transition: none; }
  .roles.is-tabs .roles__panel.is-active { animation: none; }
}

/* ---------- contact ---------- */
.dialog--contact { width: min(440px, calc(100vw - 32px)); }
.dialog--contact .dialog__inner { position: relative; padding: 28px; }
.dialog__close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.dialog__close:hover { background: var(--paper-2); color: var(--ink); }
.dialog--contact .dialog__title { padding-right: 40px; }
.contact__list { display: grid; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.contact__link { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r); font-size: 17px; font-weight: 500; color: var(--ink); text-decoration: none; transition: border-color var(--t), background var(--t); }
.contact__link .ico { color: var(--brand); }
.contact__link:hover { border-color: var(--brand); background: var(--tint); }
.dialog[open] { animation: enter 200ms var(--ease); }
.roles__hint { display: none; }
.roles.is-tabs .roles__hint { display: inline; }
