/* Puntum, puntum.nl — volgt design/DESIGN.md (wit overheerst, zwart + groen, minimaal geel).
   Geen inline styles: de CSP in vercel.json staat alleen eigen stylesheets toe. */

@font-face {
  font-family: 'Geist';
  src: url('assets/fonts/geist.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('assets/fonts/geistmono.woff2') format('woff2');
  font-weight: 400 500;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --ink: #111311;
  --ink-2: #5a5f58;
  --ink-3: #8a8f86;
  --line: #e4e6e1;
  --line-2: #d9dcd5;
  --vlak: #f3f4f1;
  --balk: #fafbf9;
  --groen: #2f6a53;
  --groen-ink: #ffffff;
  --geel-zacht: #fdf3c4;
  --geel-ink: #5c4a00;
  --markeer: #fdf6d8;
  --slot: #111311;
  --slot-ink: #ffffff;
  --r: 8px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f110f;
    --ink: #eceeea;
    --ink-2: #a3a89f;
    --ink-3: #7d8279;
    --line: #262a25;
    --line-2: #333832;
    --vlak: #181b18;
    --balk: #151815;
    --groen: #6fb894;
    --groen-ink: #0c1512;
    --geel-zacht: #3a3112;
    --geel-ink: #f2d675;
    --markeer: #2f2a12;
    --slot: #000000;
    --slot-ink: #eceeea;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
.mono { font-family: 'Geist Mono', ui-monospace, Menlo, monospace; }
:focus-visible { outline: 2px solid var(--groen); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--bg); padding: 8px 12px; z-index: 10; }

.wrap { max-width: 1160px; margin: 0 auto; padding-inline: 24px; }

/* knoppen */
.knop {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--groen); color: var(--groen-ink);
  text-decoration: none; font-weight: 600; font-size: 16px;
  padding: 14px 24px; border-radius: var(--r); border: 0; white-space: nowrap;
}
.knop:hover { filter: brightness(1.08); }
.knop-klein { font-size: 15px; padding: 11px 18px; }
.knop-tweede { background: transparent; color: var(--ink); border: 1px solid var(--line-2); font-weight: 500; padding: 14px 20px; }
.knop-tweede:hover { background: var(--vlak); filter: none; }
.knop-uit { background: var(--vlak); color: var(--ink-2); cursor: default; }
.knop-uit:hover { filter: none; }

/* kop */
.kop { display: flex; align-items: center; gap: 28px; padding-block: 22px; }
.logo { height: 28px; width: auto; display: block; }
.logo-donker { display: none; }
@media (prefers-color-scheme: dark) { .logo-licht { display: none; } .logo-donker { display: block; } }
.menu { display: flex; gap: 24px; font-size: 15px; }
.menu a { text-decoration: none; color: var(--ink-2); }
.menu a:hover { color: var(--ink); }
.kop-acties { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.kop-acties .inloggen { font-size: 15px; text-decoration: none; padding: 10px 12px; }

/* hero */
.hero { padding-block: 72px 40px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.label { font-size: 13px; font-weight: 600; letter-spacing: .02em; background: var(--geel-zacht); color: var(--geel-ink); padding: 5px 11px; border-radius: 6px; }
.hero h1 { font-size: 72px; line-height: 1.02; font-weight: 700; letter-spacing: -.04em; }
.lead { font-size: 20px; line-height: 1.5; color: var(--ink-2); max-width: 34em; }
.acties { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }

/* app-venster (bewegend beeld) */
.venster {
  position: relative; border: 1px solid var(--ink); border-radius: 12px; overflow: hidden;
  background: var(--bg); min-height: 520px; box-shadow: 0 30px 60px -40px rgba(17,19,17,.45);
}
.venster-balk { height: 40px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 8px; padding: 0 16px; background: var(--balk); }
.stip { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.venster-adres { margin-left: 14px; font-size: 13px; color: var(--ink-2); display: flex; align-items: center; white-space: nowrap; overflow: hidden; }
.caret { display: inline-block; width: 1.5px; height: 15px; background: var(--ink); margin-left: 1px; }
.scherm { position: absolute; inset: 40px 0 0 0; padding: 32px 40px; display: flex; flex-direction: column; gap: 18px; }
.scherm-kop { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.scherm-kop strong { font-size: 20px; }
.groen { color: var(--groen); }
.klein { font-size: 13px; }
.dim { color: var(--ink-2); }
.velden { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.veld { display: flex; flex-direction: column; gap: 6px; }
.veld > span { font-size: 12px; color: var(--ink-2); }
.invoer { border: 1px solid var(--line-2); border-radius: var(--r); padding: 11px 12px; font-size: 15px; display: flex; justify-content: space-between; }
.invoer.opgehaald { border: 1.5px solid var(--groen); }
.invoer.actief { border: 1.5px solid var(--ink); justify-content: flex-start; align-items: center; white-space: nowrap; overflow: hidden; }
.invoer .caret { height: 17px; }
.tabel { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; font-size: 14px; }
.tabel.sterk { border-color: var(--ink); font-size: 15px; }
.tr { display: grid; padding: 11px 14px; border-top: 1px solid var(--line); }
.tr:first-child { border-top: 0; }
.th { background: var(--balk); color: var(--ink-2); font-size: 12px; }
.k4 { grid-template-columns: 2fr 1fr 1fr 2fr; }
.k3 { grid-template-columns: 2fr 1fr 1fr; }
.k3 > :not(:first-child) { text-align: right; }
.v4 { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
.v4 > :not(:first-child) { text-align: center; }
.th.v4 { font-weight: 600; color: var(--ink); font-size: 14px; }
.totalen { display: flex; gap: 16px; }
.totaal { flex: 1; border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.totaal span { font-size: 13px; color: var(--ink-2); }
.totaal strong { font-size: 36px; letter-spacing: -.02em; }
.voortgang { height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; margin-top: auto; }
.voortgang div { height: 4px; background: var(--groen); width: 100%; }
.roi { font-weight: 600; }
.bijschrift { margin-top: 14px; font-size: 13px; color: var(--ink-3); }

/* animatie: 12 s per ronde, drie schermen */
@keyframes f1 { 0%,30% { opacity: 1 } 33.3%,97% { opacity: 0 } 100% { opacity: 1 } }
@keyframes f2 { 0%,30% { opacity: 0 } 33.3%,63.3% { opacity: 1 } 66.6%,100% { opacity: 0 } }
@keyframes f3 { 0%,63.3% { opacity: 0 } 66.6%,97% { opacity: 1 } 100% { opacity: 0 } }
@keyframes vul { 0%,8% { width: 0 } 22%,100% { width: 100% } }
@keyframes rij { 0%,72% { background: transparent } 78%,96% { background: var(--markeer) } 100% { background: transparent } }
@keyframes typ { 0%,3% { max-width: 0 } 15%,97% { max-width: 12ch } 100% { max-width: 0 } }
@keyframes knipper { 0%,49% { opacity: 1 } 50%,100% { opacity: 0 } }
.f1 { animation: f1 12s infinite; }
.f2 { animation: f2 12s infinite; opacity: 0; }
.f3 { animation: f3 12s infinite; opacity: 0; }
.voortgang div { animation: vul 12s infinite; }
.roi { animation: rij 12s infinite; }
.typ { display: inline-block; overflow: hidden; white-space: nowrap; max-width: 12ch; vertical-align: bottom; animation: typ 12s steps(12, end) infinite; }
.caret { animation: knipper 1s infinite; }
@media (prefers-reduced-motion: reduce) {
  .f1, .f2, .f3, .voortgang div, .roi, .typ, .caret { animation: none; }
  .f1, .f2 { opacity: 0; }
  .f3 { opacity: 1; }
}

/* secties */
.sectie { padding-top: 120px; }
.sectie h2 { font-size: 40px; line-height: 1.1; letter-spacing: -.03em; font-weight: 700; max-width: 18em; }

/* tegels */
.tegels { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; margin-top: 44px; }
.tegel { grid-column: span 2; background: var(--vlak); border-radius: 14px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.tegel.breed { grid-column: span 4; }
.tegel h3 { font-size: 21px; letter-spacing: -.02em; }
.tegel p { color: var(--ink-2); }
.mini { margin-top: 8px; display: flex; flex-direction: column; font-size: 14px; }
.mini .r { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; padding: 9px 0; border-top: 1px solid var(--line); }
.mini .r:first-child { border-top: 0; padding-top: 8px; color: var(--ink-2); font-size: 12px; }
.mini .r > :not(:first-child) { text-align: right; }
.mini .top { color: var(--groen); font-weight: 600; }
.chips { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; font-size: 12.5px; }
.chips span { background: var(--bg); padding: 6px 10px; border-radius: 6px; }

/* stappen */
.stappen { display: flex; gap: 28px; margin-top: 44px; }
.stap { flex: 1; border-top: 2px solid var(--ink); padding-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.stap .n { font-size: 13px; color: var(--groen); }
.stap h3 { font-size: 22px; letter-spacing: -.02em; }
.stap p { color: var(--ink-2); }

/* vragen */
.vragen { margin-top: 28px; max-width: 820px; border-top: 1px solid var(--line); }
.vragen details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.vragen summary { cursor: pointer; font-size: 17px; font-weight: 600; padding: 16px 0; }
.vragen details p { margin: 0 0 18px; color: var(--ink-2); }

/* slot */
.slot-wrap { padding-block: 80px 100px; }
.slot { background: var(--slot); color: var(--slot-ink); border-radius: 12px; padding: 56px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.slot h2 { font-size: 40px; line-height: 1.08; letter-spacing: -.03em; font-weight: 700; max-width: 14em; }

/* voet */
.voet { padding-bottom: 48px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--ink-2); }
.voet a { color: var(--ink-2); }

/* smal scherm */
@media (max-width: 900px) {
  .tegels { grid-template-columns: minmax(0, 1fr); }
  .tegel, .tegel.breed { grid-column: auto; }
}
@media (max-width: 720px) {
  .menu { display: none; }
  .kop-acties .inloggen { display: none; }
  .hero { padding-top: 48px; }
  .hero h1 { font-size: 44px; }
  .lead { font-size: 18px; }
  .venster { min-height: 600px; }
  .scherm { padding: 20px; }
  .velden { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .totalen { flex-direction: column; }
  .totaal strong { font-size: 28px; }
  .tr { padding: 10px; }
  .k4 { grid-template-columns: 1.5fr 1fr 1fr; }
  .k4 > :last-child { display: none; }
  .v4 { font-size: 13px; }
  .stappen { flex-direction: column; }
  .sectie { padding-top: 80px; }
  .sectie h2, .slot h2 { font-size: 30px; }
  .slot { padding: 32px; }
  .mini { font-size: 12.5px; overflow-x: auto; }
}
.scherm-titel { font-size: 20px; }
