:root {
  --bg: #fbfaf8;
  --ink: #2b2825;
  --muted: #5c554e;
  --muted-2: #6b635a;
  --green: #1f6f4a;
  --green-dark: #175537;
  --green-pale: #eaf2ed;
  --green-wash: #f4f9f6;
  --line: #e6e1d9;
  --line-soft: #ece8e1;
  --line-softer: #f2efe9;
  --field: #ded9d1;
  --field-hover: #bdb5aa;
  --wash: #f6f4f0;
  --max: 1140px;
  --serif: Newsreader, Georgia, "Times New Roman", serif;
  --sans: "Public Sans", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

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

html { scroll-behavior: smooth; }

/* Wie in zijn systeem heeft aangegeven bewegingen te willen beperken, krijgt
   de sprong zonder animatie. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .to-top { transition: none; }
}

section[id], header[id] { scroll-margin-top: 24px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dark); text-decoration: underline; }

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

h1, h2, h3 { text-wrap: balance; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.wrap-narrow { max-width: 820px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

.band {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: var(--wash);
}

.section { padding-top: 80px; padding-bottom: 80px; }
.section-tight { padding-top: 72px; padding-bottom: 72px; }

.title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0;
}

.intro {
  color: var(--muted);
  margin: 18px 0 0;
  max-width: 58ch;
}

/* Kop */

.site-header {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}

.site-header .logo { display: block; line-height: 0; }
.site-header .logo img { height: 72px; width: auto; display: block; }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  font-size: 15px;
}
/* :not(.btn) omdat deze selector anders specifieker is dan .btn-primary en
   de knop in de kop zijn witte tekst zou afnemen. */
.site-nav a:not(.btn) { color: var(--muted); }
.site-nav a:not(.btn):hover { color: var(--green-dark); }

/* Knoppen */

.btn {
  display: inline-block;
  padding: 13px 22px;
  border-radius: 7px;
  font-size: 16px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); color: #fff; text-decoration: none; }

.btn-secondary { background: #fff; color: var(--ink); border-color: var(--field); font-weight: 500; }
.btn-secondary:hover { border-color: var(--field-hover); color: var(--ink); text-decoration: none; }

.btn-small { padding: 9px 16px; border-radius: 6px; font-size: 15px; font-weight: 500; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* Hero */

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 48px;
  align-items: center;
  padding-top: 52px;
  padding-bottom: 76px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--green-pale);
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 500;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(33px, 4vw, 50px);
  line-height: 1.07;
  letter-spacing: -0.02em;
  margin: 20px 0 0;
}

.hero .lead {
  font-size: 19px;
  color: var(--muted);
  margin: 20px 0 0;
  max-width: 34em;
}

.note { font-size: 15px; color: var(--muted-2); margin: 18px 0 0; }

/* Plaatshouders voor schermafbeeldingen */

.shot {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 10px;
  box-shadow: 0 1px 2px rgba(43, 40, 37, 0.04), 0 12px 32px -18px rgba(43, 40, 37, 0.18);
}
.shot-flat { border-radius: 10px; box-shadow: none; }

.shot-inner {
  border-radius: 7px;
  display: flex;
  align-items: flex-end;
  padding: 14px;
  background-image: repeating-linear-gradient(135deg, #f0ede8 0 10px, #f8f6f2 10px 20px);
}
.shot-inner span {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted-2);
  background: var(--bg);
  padding: 5px 8px;
  border-radius: 4px;
}

/* Stappen */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  margin-top: 44px;
}
.steps .num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--green);
  letter-spacing: 0.08em;
}
.steps h3 { font-size: 20px; font-weight: 600; margin: 12px 0 8px; font-family: var(--sans); }
.steps p { color: var(--muted); margin: 0; }

/* Kaarten met rijen */

.pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 40px;
  align-items: start;
}

.card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}
.card-accent {
  border-color: var(--green);
  box-shadow: 0 12px 30px -22px rgba(43, 40, 37, 0.35);
}

.card-head {
  padding: 14px 20px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.card-accent .card-head { color: var(--green-dark); background: var(--green-wash); }

.row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line-softer);
}
.row:last-child { border-bottom: 0; }
.row-total { font-weight: 600; }

.num { font-variant-numeric: tabular-nums; }

.lines { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px 14px; padding: 14px 20px; border-bottom: 1px solid var(--line-softer); }
.lines:last-child { border-bottom: 0; }
.lines-head { font-size: 13px; color: var(--muted-2); }
.lines .rate { color: var(--green-dark); font-weight: 500; }
.lines .amount { text-align: right; font-variant-numeric: tabular-nums; }
.lines-sub { color: var(--muted); }
.lines-total { font-weight: 600; }

/* Tabellen met twee kolommen */

.duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 6px 20px; padding: 16px 20px; border-bottom: 1px solid var(--line-softer); }
.duo:last-child { border-bottom: 0; }
.duo-head { gap: 10px 20px; padding: 14px 20px; border-bottom: 1px solid var(--line-soft); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-2); }
.duo span + span { color: var(--muted); }
.duo-head span + span { color: var(--muted-2); }

.duo-narrow { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 6px 16px; }
.duo-narrow.duo-head { gap: 10px 16px; }

.subhead { font-size: 20px; font-weight: 600; margin: 0 0 6px; }

/* Twee kolommen tekst + tabel */

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 44px;
  align-items: start;
}
.split .title + p { color: var(--muted); margin: 18px 0 0; }

/* Controlepunten */

.points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px 40px;
  margin-top: 40px;
}
.points h3 { font-size: 19px; font-weight: 600; margin: 0 0 8px; font-family: var(--sans); }
.points p { color: var(--muted); margin: 0; }

/* Routekaart */

.roadmap { display: grid; gap: 12px; }
.roadmap div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.roadmap .name { font-weight: 500; }
.roadmap .state { font-size: 14px; color: var(--muted-2); }
.roadmap .state-live { color: var(--green-dark); font-weight: 500; }

/* Vragen */

.faq { margin-top: 36px; }

.faq details { border-top: 1px solid var(--line-soft); }
.faq details:last-of-type { border-bottom: 1px solid var(--line-soft); }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--mono);
  font-weight: 400;
  color: var(--muted-2);
  flex: none;
}
.faq details[open] summary::after { content: "\2212"; }

.faq p { margin: 0 0 22px; color: var(--muted); max-width: 62ch; }

/* Slot-oproep */

.closing { text-align: center; padding-top: 84px; padding-bottom: 84px; }
.closing h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
}
.closing p { color: var(--muted); font-size: 19px; margin: 18px auto 0; max-width: 46ch; }
.closing .btn-row { justify-content: center; }

/* Contact */

.contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 48px;
  align-items: start;
  border-top: 1px solid var(--line-soft);
}
.contact .title + p { color: var(--muted); margin: 18px 0 0; max-width: 40ch; }

.facts { margin-top: 28px; display: grid; gap: 10px; font-size: 16px; }
.facts div { display: flex; gap: 10px; color: var(--muted); }
.facts dt, .facts .label { color: var(--muted-2); min-width: 6.5em; }

.form-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 28px;
  box-shadow: 0 1px 2px rgba(43, 40, 37, 0.04), 0 12px 32px -22px rgba(43, 40, 37, 0.16);
}

.form-card form { display: grid; gap: 18px; }
.form-card label { display: grid; gap: 7px; }
.form-card label > span { font-size: 14px; font-weight: 500; }
.form-card label .optional { font-weight: 400; color: var(--muted-2); }

.form-card input,
.form-card select,
.form-card textarea {
  padding: 12px 14px;
  border: 1px solid var(--field);
  border-radius: 7px;
  background: var(--bg);
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  width: 100%;
}
.form-card textarea { resize: vertical; }
.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus {
  outline: none;
  border-color: var(--green);
  background: #fff;
  box-shadow: 0 0 0 3px var(--green-pale);
}

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.form-actions span { font-size: 14px; color: var(--muted-2); }

.errors {
  margin: 0 0 20px;
  padding: 14px 18px 14px 34px;
  background: #fdf3f2;
  border: 1px solid #f0d5d1;
  border-radius: 8px;
  color: #8a281f;
  font-size: 15px;
}
.errors li + li { margin-top: 4px; }

.done { display: grid; gap: 12px; padding: 12px 0; }
.done .check {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--green-pale);
  color: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.done h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; margin: 0; }
.done p { color: var(--muted); margin: 0; }

/* Honeypot: buiten beeld, maar niet display:none — sommige bots slaan
   verborgen velden over en vullen de rest wel in. */
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Terug naar boven. Verborgen tot je een eind naar beneden bent; zonder
   JavaScript verschijnt hij niet, en dat mag — de pagina werkt er ook zonder. */

.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 10;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(43, 40, 37, 0.06), 0 10px 24px -14px rgba(43, 40, 37, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

.to-top:hover {
  border-color: var(--field-hover);
  color: var(--green-dark);
  text-decoration: none;
}

.to-top svg { width: 18px; height: 18px; display: block; }

@media (max-width: 640px) {
  .to-top { right: 16px; bottom: 16px; }
}

/* Voet */

.site-footer { border-top: 1px solid var(--line-soft); }
.site-footer .inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  color: var(--muted-2);
}
.site-footer .mark { display: flex; align-items: center; gap: 10px; }
.site-footer .mark img { height: 26px; width: auto; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 22px; }
.site-footer nav a { color: var(--muted-2); }

@media (max-width: 640px) {
  .site-header { padding-top: 18px; padding-bottom: 18px; }
  .site-header .logo img { height: 56px; }
  .section { padding-top: 60px; padding-bottom: 60px; }
  .section-tight { padding-top: 56px; padding-bottom: 56px; }
  .closing { padding-top: 64px; padding-bottom: 64px; }
  .form-card { padding: 22px; }
}
