/* Invulpagina */
body.survey { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }

.topbar {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
}
.topbar-inner { max-width: 680px; margin: 0 auto; padding: 14px 16px 10px; display: flex; align-items: center; gap: 14px; }
.brand { font-weight: 600; font-size: 15px; white-space: nowrap; }
.brand .wordmark { font-size: 15px; }
.brand span { color: var(--ink-3); font-weight: 400; }
.progress { flex: 1; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.progress > div { height: 100%; width: 0; background: var(--accent); border-radius: 4px; transition: width 0.35s ease; }
.progress-label { font-size: 13px; color: var(--ink-3); min-width: 3.5em; text-align: right; font-variant-numeric: tabular-nums; }
.topbar.is-hidden .progress, .topbar.is-hidden .progress-label { visibility: hidden; }

main.stage { flex: 1; width: 100%; max-width: 680px; margin: 0 auto; padding: 24px 16px 40px; display: flex; flex-direction: column; }

.screen { animation: enter 0.32s ease both; }
.screen.back { animation-name: enter-back; }
@keyframes enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes enter-back { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .screen { animation: none; } .progress > div { transition: none; } }

/* Intro */
.intro { padding-top: 2vh; }
.intro h1 { font-family: var(--font-display); font-weight: 850; font-stretch: 108%; font-size: clamp(32px, 6.4vw, 50px); line-height: 1.02; letter-spacing: -0.025em; text-transform: uppercase; margin-bottom: 20px; }
.done h1 { font-family: var(--font-display); font-weight: 850; text-transform: uppercase; }
/* Hoekaccent linksboven de introtekst */
.intro-text { position: relative; padding-left: 22px; }
.intro-text::before {
  content: ''; position: absolute; left: 0; top: -6px; width: 28px; height: 28px;
  border-left: 4px solid var(--accent); border-top: 4px solid var(--accent);
}
/* Beeld van het gebouw: dag in licht thema, avond in donker thema. */
.intro { display: grid; gap: 30px; }
.hero {
  position: relative; margin: 0 8px 8px 0; aspect-ratio: 3 / 2; overflow: hidden;
  background: var(--surface-2); box-shadow: 8px 8px 0 var(--accent);
}
.hero img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-night { position: absolute; inset: 0; opacity: 0; transition: opacity 0.8s ease; }
:root[data-theme='dark'] .hero-night { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .hero-night { transition: none; } }
@media (min-width: 900px) {
  main.stage.is-intro { max-width: 1160px; }
  body:has(main.stage.is-intro) .topbar-inner { max-width: 1160px; }
  .intro { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
  .hero { order: 2; margin: 0 12px 12px 0; box-shadow: 12px 12px 0 var(--accent); }
}
/* Gekozen optie: hoekje rechtsonder */
.option[aria-checked='true']::after {
  content: ''; position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px;
  border-right: 3px solid var(--accent); border-bottom: 3px solid var(--accent);
}
.meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.meta-row .pill::before { display: none; }
.intro p.lead { font-size: 18px; color: var(--ink-2); margin-bottom: 14px; max-width: 34em; }
.intro p.small { font-size: 14px; color: var(--ink-3); margin-bottom: 32px; }

/* Vraag */
.q-side { display: none; } /* alleen in de v2-stijl (survey-v2.css) zichtbaar */
.q-section { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--olive); margin-bottom: 8px; }
.q-title { font-size: clamp(23px, 4.8vw, 30px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 6px; }
.q-section { font-weight: 800; }
.option .label { font-weight: 550; }
.q-hint { font-size: 14px; color: var(--ink-3); margin-bottom: 22px; min-height: 1.5em; }

.options { display: grid; gap: 10px; }
.option {
  position: relative; display: flex; align-items: center; gap: 14px;
  width: 100%; min-height: 56px; padding: 12px 16px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); text-align: left; cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.option:hover { border-color: var(--line-strong); }
.option[aria-checked='true'] { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.option .mark {
  flex: none; width: 22px; height: 22px; border: 1.5px solid var(--line-strong); border-radius: 50%;
  display: grid; place-items: center; background: var(--surface);
}
.option.multi .mark { border-radius: 6px; }
.option[aria-checked='true'] .mark { border-color: var(--accent); background: var(--accent); }
.option[aria-checked='true'] .mark::after { content: ''; width: 8px; height: 8px; background: var(--accent-ink); }
.option.multi[aria-checked='true'] .mark::after {
  width: 10px; height: 6px; border-radius: 0; background: none;
  border-left: 2px solid var(--accent-ink); border-bottom: 2px solid var(--accent-ink);
  transform: translateY(-1px) rotate(-45deg);
}
.option .label { flex: 1; }
.option .key {
  flex: none; font-size: 12px; color: var(--ink-3); border: 1px solid var(--line); border-radius: 6px;
  min-width: 22px; height: 22px; display: grid; place-items: center; font-variant-numeric: tabular-nums;
}
@media (hover: none) { .option .key { display: none; } }

.other-input, textarea.open {
  width: 100%; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--surface); padding: 12px 14px; resize: vertical;
}
.other-input { margin-top: -2px; }
.other-input:focus, textarea.open:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea.open { min-height: 140px; font-size: 16px; }
.char-count { font-size: 12px; color: var(--ink-3); text-align: right; margin-top: 6px; }

.nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 28px; }
.nav .hint { font-size: 13px; color: var(--ink-3); }
@media (hover: none) { .nav .hint { display: none; } }
.error { color: var(--bad); font-size: 14px; margin-top: 12px; min-height: 1.4em; }

/* Bedankt */
.done { padding-top: 10vh; text-align: center; }
.done .check {
  width: 64px; height: 64px; margin: 0 auto 22px;
  display: grid; place-items: center; background: var(--olive); color: var(--surface);
}
.done h1 { font-size: 30px; margin-bottom: 10px; }
.done p { color: var(--ink-2); max-width: 28em; margin: 0 auto; }

.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

footer.foot { text-align: center; font-size: 12px; color: var(--ink-3); padding: 16px; }
footer.foot a { color: inherit; }

/* Telefoon: lager beeld, zodat de startknop zonder scrollen in beeld staat. */
@media (max-width: 899px) {
  .intro { gap: 22px; padding-top: 0; }
  .hero { aspect-ratio: 16 / 9; }
  .intro p.small { margin-bottom: 22px; }
}
@media (max-width: 480px) {
  .brand span:not(.wordmark) { display: none; }
  .theme-toggle { padding: 0 9px; }
  .theme-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .nav .btn { flex: 1; }
}
