/* Does It Mattr? — tijdelijke landingspagina.
   Opzet: één sectie volgens het vijf-sectiespatroon: foto 70% / balk 30% / blauw vlak met twee formulieren, daaronder de footer.
   Alle kleuren en maten komen uit de tokens hieronder. */

/* FONTS-START — Spectral zelf gehost. Nu alleen Regular 400 aanwezig (WOFF); vet en cursief worden door de browser nagemaakt.
   Voeg je later spectral-300 / 500 / italic toe, zet dan hier extra @font-face regels bij. */
@font-face { font-family: 'Spectral'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/spectral-400.woff') format('woff'); }
/* FONTS-END */

:root {
  /* Blauw = de kleur van de onderstrook in hero-poster.jpg (gemeten in het geëxporteerde bestand).
     Wijzig je de poster, pas dan --blauw en --blauw-rgb aan; de rest volgt. */
  --blauw: #060e2b;
  --blauw-rgb: 6, 14, 43;
  --blauw-diep: #040a1e;
  --vlak: #0e1a3b;
  --wit: #ffffff;
  --tekst: #e6ebf3;
  --ondertitel: #dfe5f0;
  --label: #aab6cc;
  --lijn: rgba(255, 255, 255, .14);
  --lijn-kort: rgba(255, 255, 255, .35);
  --veldrand: rgba(255, 255, 255, .5);
  --fout: #ffb4a8;

  --font: 'Spectral', Georgia, 'Times New Roman', serif;

  /* Zijmarge: de grootste van 120px (of vloeiend op smal) en (schermbreedte - 1200px) / 2 */
  --zijmarge: clamp(28px, 8.4vw, 120px);
  --rand: max(var(--zijmarge), calc((100% - 1200px) / 2));

  /* Afmetingen van hero-poster.jpg (px). Wijzig je de poster, pas dan deze twee aan. */
  --poster-breed: 1184;
  --poster-hoog: 1300;

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--blauw);
  color: var(--tekst);
  font-family: var(--font);
  font-size: clamp(18px, 17px + .25vw, 20px);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a { color: var(--ondertitel); text-underline-offset: .18em; }
a:hover { color: var(--wit); }

:focus-visible { outline: 2px solid var(--wit); outline-offset: 3px; }

/* ---------- Hero: poster-top met geblurde zijkanten ---------- */
/* Hoogte = 70% van het scherm, maar nooit hoger dan de poster op volle breedte zou zijn.
   Op een telefoon wint de tweede waarde: de poster vult dan precies de breedte, zonder blur.
   Op een breed scherm wint de eerste: de poster staat in het midden, de zijkanten krijgen blur. */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--blauw);
  height: min(70vh, calc(100vw * var(--poster-hoog) / var(--poster-breed)));
  height: min(70svh, calc(100vw * var(--poster-hoog) / var(--poster-breed)));
  min-height: 280px;
}
.hero-bg {
  position: absolute;
  inset: -40px;                      /* ruimer dan het vlak, zodat de blur aan de randen niet uitloopt */
  width: calc(100% + 80px);
  height: calc(100% + 80px);
  max-width: none;
  object-fit: cover;
  object-position: 50% 55%;          /* lager = meer lucht, minder zand in de zijkanten */
  filter: blur(28px) saturate(1.15) brightness(1.05);
}
/* Lichte verdonkering + zachte overgang naar het blauw van de balk eronder */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to bottom, rgba(var(--blauw-rgb), 0) 78%, var(--blauw) 100%),
    rgba(var(--blauw-rgb), .08);
}
.hero picture { position: absolute; inset: 0; z-index: 2; display: flex; justify-content: center; }
.hero-poster {
  display: block;
  height: 100%;
  width: auto;
  max-width: 100%;
  box-shadow: 0 0 60px rgba(var(--blauw-rgb), .25);
}

/* ---------- Titelbalk ---------- */
.balk {
  background: var(--blauw);
  min-height: 30vh;
  min-height: 30svh;
  min-height: max(30svh, 220px);
  padding: 40px var(--rand);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 28px;
}
.soon {
  margin: 0;
  color: var(--wit);
  font-weight: 400;
  font-size: clamp(34px, 27.4px + 2.72vw, 60px);
  line-height: 1.05;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.visueel-verborgen {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Verdieping met twee formulieren ---------- */
.verdieping {
  background: var(--blauw);
  padding: clamp(56px, 36.7px + 4.94vw, 96px) var(--rand) clamp(72px, 48.9px + 5.93vw, 120px);
}
.streep {
  display: block;
  width: 64px;
  height: 1px;
  margin-bottom: clamp(40px, 24px + 4vw, 64px);
  background: var(--lijn-kort);
}
.formulieren {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 80px;
  row-gap: 56px;
}
.formulier { min-width: 0; }
.formulieren { scroll-margin-top: 48px; }
.formulieren:focus { outline: none; }

.vraag {
  margin: 0 0 16px;
  color: var(--wit);
  font-weight: 400;
  font-size: clamp(24px, 21.1px + .74vw, 30px);
  line-height: 1.25;
  text-wrap: balance;
}
.toelichting { margin: 0 0 32px; max-width: 34em; }

.veld { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; max-width: 34em; }
.veld label { font-size: 15px; line-height: 1.3; color: var(--label); }
.veld input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid var(--veldrand);
  border-radius: 0;
  background: transparent;
  color: var(--wit);
  font: inherit;
  font-size: 18px;
}
.veld input[aria-invalid="true"] { border-color: var(--fout); }
.veld input:-webkit-autofill {
  -webkit-text-fill-color: var(--wit);
  box-shadow: 0 0 0 1000px var(--blauw) inset;
  caret-color: var(--wit);
}
.fout { margin: 0; color: var(--fout); font-size: 16px; line-height: 1.4; }

.knop, button[type="submit"] {
  height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: 0;
  background: var(--wit);
  color: var(--blauw);
  font: inherit;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
}
.knop { display: inline-flex; align-items: center; text-decoration: none; }
.knop:hover { color: var(--blauw); }
.knop:hover, button[type="submit"]:hover { background: var(--ondertitel); }
button[type="submit"]:disabled { opacity: .6; cursor: progress; }
@media (prefers-reduced-motion: no-preference) {
  .knop, button[type="submit"] { transition: background-color .15s ease; }
}

.doel { margin: 20px 0 0; max-width: 34em; font-size: 15px; line-height: 1.6; color: var(--label); }

.status { max-width: 34em; }
.status:empty { display: none; }
.status:focus { outline: none; }
.bevestiging { margin: 0; color: var(--wit); font-size: 22px; font-weight: 300; font-style: italic; line-height: 1.4; }
.serverfout { margin: 20px 0 0; color: var(--fout); font-size: 16px; line-height: 1.5; max-width: 34em; }

/* Honeypot: voor mensen onzichtbaar, voor spambots een gewoon veld */
.verborgen { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.voet {
  background: var(--blauw-diep);
  padding: 56px var(--rand);
  font-size: 16px;
  line-height: 1.6;
  color: var(--label);
}
.voet-kolommen { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.voet-kolommen > div { min-width: 0; }
.voet p { margin: 0; }
.voet .naam { color: var(--wit); font-size: 22px; font-weight: 400; line-height: 1.2; margin-bottom: 8px; }
.voet .kopje { font-size: 14px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 8px; }

/* ---------- Tekstpagina (privacyverklaring) ---------- */
.tekstpagina { padding: clamp(56px, 36.7px + 4.94vw, 96px) var(--rand) clamp(72px, 48.9px + 5.93vw, 120px); }
.tekstpagina > * { max-width: 42em; }
.tekstpagina h1 { margin: 0 0 8px; color: var(--wit); font-weight: 400; font-size: clamp(34px, 27px + 1.8vw, 48px); line-height: 1.1; }
.tekstpagina .bijgewerkt { margin: 0 0 48px; color: var(--label); font-size: 15px; }
.tekstpagina h2 { margin: 44px 0 12px; color: var(--wit); font-weight: 400; font-size: clamp(24px, 21.1px + .74vw, 30px); line-height: 1.25; }
.tekstpagina p, .tekstpagina li { margin: 0 0 14px; }
.tekstpagina ul { margin: 0 0 14px; padding-left: 1.2em; }
.terug { display: inline-block; margin-bottom: 40px; font-size: 16px; }

/* ---------- Smal scherm ---------- */
@media (max-width: 860px) {
  .formulieren { grid-template-columns: 1fr; }
  .formulier + .formulier { border-top: 1px solid var(--lijn); padding-top: 56px; }
  .voet-kolommen { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 700px) {
  .balk { padding-block: 32px; }
  .streep { width: 48px; }
  .toelichting, .veld input, button[type="submit"] { font-size: 18px; }
  .bevestiging { font-size: 20px; }
  .voet { padding-block: 48px; }
}
