/* ═══════════════════════════════════════════════════════════════
   Brickl SMS — Splashpage  ·  Variant A (geometrisch)
   Mobile-first. Breakpoints: 640 / 960 / 1280.
   ═══════════════════════════════════════════════════════════════ */

/* ─── Self-hosted fonts (woff2, latin-subset incl. €) ─────────── */
@font-face{
  font-family:'Instrument Serif'; font-style:normal; font-weight:400; font-display:swap;
  src:url('assets/fonts/instrument-serif-latin-400-normal.woff2') format('woff2');
}
@font-face{
  font-family:'Instrument Serif'; font-style:italic; font-weight:400; font-display:swap;
  src:url('assets/fonts/instrument-serif-latin-400-italic.woff2') format('woff2');
}
@font-face{
  font-family:'Space Grotesk'; font-style:normal; font-weight:400 500; font-display:swap;
  src:url('assets/fonts/space-grotesk-latin.woff2') format('woff2');
}
@font-face{
  font-family:'JetBrains Mono'; font-style:normal; font-weight:400 500; font-display:swap;
  src:url('assets/fonts/jetbrains-mono-latin.woff2') format('woff2');
}

/* ─── Tokens ──────────────────────────────────────────────────── */
:root{
  --cream:    #FFF8EE;
  --cream-2:  #FBF1DF;
  --ink:      #1B1A17;
  --ink-90:   rgba(27,26,23,.90);
  --ink-70:   rgba(27,26,23,.70);
  --muted:    rgba(27,26,23,.62); /* 4.5:1 op cream (WCAG AA, brief §4.5) */
  --line:     rgba(27,26,23,.12);
  --line-2:   rgba(27,26,23,.22);

  --prikkel:  #E94B2E;
  --diepblauw:#2B3A97;
  --geel:     #F8D848;

  --font-display: "Instrument Serif", "Times New Roman", serif;
  --font-body:    "Space Grotesk", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;

  --maxw:       1240px;
  --gutter:     clamp(20px, 4vw, 56px);
  --section-y:  clamp(64px, 11vw, 144px);
}

/* ─── Reset ───────────────────────────────────────────────────── */
*,*::before,*::after{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
html{ scroll-behavior:smooth; }
body{
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink-90);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img{ max-width:100%; display:block; }
@media (min-width: 640px){ body{ font-size:17px; } }

/* ─── Skip-link & focus ───────────────────────────────────────── */
.skip{
  position:absolute; left:-9999px; top:0; z-index:100;
  background:var(--ink); color:var(--cream);
  padding:10px 16px; border-radius:0 0 8px 0;
  font-family:var(--font-mono); font-size:12px;
}
.skip:focus{ left:0; }
a:focus-visible, button:focus-visible, input:focus-visible{
  outline:2px solid var(--prikkel); outline-offset:2px;
}

/* ─── Header ──────────────────────────────────────────────────── */
.bar{
  position:sticky; top:0; z-index:50;
  background:var(--cream);
  border-bottom:1px solid var(--line);
}
.bar-inner{
  max-width:var(--maxw); margin:0 auto;
  padding:12px var(--gutter);
  display:flex; align-items:center; justify-content:space-between; gap:16px;
}
.brand{
  display:flex; align-items:center; gap:10px;
  font-family:var(--font-mono); font-size:12px;
  letter-spacing:.08em; text-transform:uppercase; color:var(--ink);
}
.brand .tri-logo{
  width:12px; height:12px; background:var(--prikkel);
  clip-path:polygon(50% 0,100% 100%,0 100%); flex:0 0 auto;
}
.brand b{ font-weight:500; }
.brand span{ color:var(--muted); font-weight:400; }
.bar-meta{
  font-family:var(--font-mono); font-size:10px;
  letter-spacing:.08em; text-transform:uppercase; color:var(--muted);
}
@media (min-width: 640px){
  .bar-inner{ padding:14px var(--gutter); }
  .bar-meta{ font-size:11px; }
}

/* ─── Container, kicker, headings ─────────────────────────────── */
.wrap{ max-width:var(--maxw); margin:0 auto; padding:0 var(--gutter); }

.kicker{
  font-family:var(--font-mono); font-size:12px;
  letter-spacing:.14em; text-transform:uppercase; color:var(--muted);
  display:inline-flex; align-items:center; gap:10px; margin-bottom:24px;
}
.kicker.kicker-center{ display:flex; justify-content:center; }
.kicker .tri-dot{
  width:9px; height:9px; background:var(--prikkel);
  clip-path:polygon(50% 0,100% 100%,0 100%); flex:0 0 auto; transform:translateY(-1px);
}
@media (min-width: 960px){ .kicker{ margin-bottom:28px; } }

h1.display, h2.display{
  font-family:var(--font-display); font-weight:400; color:var(--ink);
  letter-spacing:-.005em; margin:0; text-wrap:balance;
}
h1.display{ font-size:clamp(40px, 11vw, 64px); line-height:1.05; }
h2.display{ font-size:clamp(32px, 7vw, 48px); line-height:1.06; }
h1.display em, h2.display em{ font-style:italic; color:var(--prikkel); }
.display.center{ text-align:center; }
@media (min-width: 960px){
  h1.display{ font-size:clamp(56px, 9vw, 168px); line-height:.92; }
  h2.display{ font-size:clamp(40px, 6vw, 82px); line-height:.98; }
}

.lead{
  font-family:var(--font-body); font-size:clamp(17px, 1.6vw, 22px);
  line-height:1.5; color:var(--ink-70); max-width:56ch;
  margin:24px 0 0; text-wrap:pretty;
}
@media (min-width: 960px){ .lead{ margin:28px 0 0; } }

/* ─── Buttons ─────────────────────────────────────────────────── */
.btn{
  appearance:none;
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  font-family:var(--font-body); font-weight:500; font-size:15px; letter-spacing:.01em;
  padding:13px 22px; min-height:48px;
  border-radius:999px; border:1px solid var(--ink);
  background:var(--ink); color:var(--cream);
  cursor:pointer; text-decoration:none;
  transition:background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:hover{ background:var(--prikkel); border-color:var(--prikkel); }
.btn.ghost{ background:transparent; color:var(--ink); }
.btn.ghost:hover{ background:var(--ink); color:var(--cream); }
.btn .arr{ display:inline-block; transition:transform .18s ease; }
.btn:hover .arr{ transform:translateX(3px); }

.cta-pair{ display:flex; flex-direction:column; gap:12px; margin-top:32px; }
.cta-pair .btn{ width:100%; }
@media (min-width: 640px){
  .cta-pair{ flex-direction:row; flex-wrap:wrap; margin-top:40px; }
  .cta-pair .btn{ width:auto; }
}

/* ─── Section spacing ─────────────────────────────────────────── */
section.s{ padding:var(--section-y) 0; border-top:1px solid var(--line); }
section.hero{
  padding:clamp(48px, 8vw, 112px) 0 clamp(56px, 9vw, 128px);
  border-top:0; position:relative; overflow:hidden;
}
.hero-inner{ position:relative; z-index:2; }
.hero-meta{
  margin-top:24px;
  font-family:var(--font-mono); font-size:11px;
  letter-spacing:.12em; text-transform:uppercase; color:var(--muted); line-height:1.6;
}
@media (min-width: 960px){
  .hero-meta{ position:absolute; right:0; bottom:0; text-align:right; margin-top:0; }
}

/* ─── Driehoek-scatter ────────────────────────────────────────── */
.tri-scatter{ position:absolute; inset:0; z-index:1; pointer-events:none; overflow:hidden; visibility:visible; }
/* Met JS: verberg tot de posities gerandomiseerd zijn (geen flits). Zonder JS: zichtbaar. */
.js .tri-scatter{ visibility:hidden; }
.js .tri-scatter.ready{ visibility:visible; }

.tri-wrap{
  position:absolute;
  top:var(--top, 50%);
  left:var(--left, 50%);
  --float-dist:9px;
  will-change:transform;
}
.tri{
  display:block;
  clip-path:polygon(50% 0,100% 100%,0 100%);
  transform-origin:50% 50%;
  will-change:transform;
}
.tri.red   { background:var(--prikkel);  }
.tri.blue  { background:var(--diepblauw);}
.tri.yellow{ background:var(--geel);     }
.tri.sm{ width:18px; height:18px; }
.tri.md{ width:28px; height:28px; }
.tri.lg{ width:36px; height:36px; }

/* fallback-posities = midden van elke safe-zone (no-JS / reduced-motion / pre-idle) */
.tw1{ --top:12%; --left:8%;  }
.tw2{ --top:14%; --left:84%; }
.tw3{ --top:34%; --left:5%;  }
.tw4{ --top:32%; --left:90%; }
.tw5{ --top:78%; --left:12%; }
.tw6{ --top:80%; --left:82%; }

/* mobiel: toon 4 driehoeken (verberg #3 en #4) */
.tw3, .tw4{ display:none; }
@media (min-width: 640px){
  .tw3, .tw4{ display:block; }
}
@media (min-width: 960px){
  .tri.sm{ width:22px; height:22px; }
  .tri.md{ width:44px; height:44px; }
  .tri.lg{ width:72px; height:72px; }
}

/* Animaties — wrapper floatt, inner draait. Beide transform-only (GPU). */
@keyframes spin-cw  { from{ transform:rotate(0deg);   } to{ transform:rotate(360deg);  } }
@keyframes spin-ccw { from{ transform:rotate(0deg);   } to{ transform:rotate(-360deg); } }
@keyframes float-y{
  0%,100%{ transform:translateY(calc(var(--float-dist) * -1)); }
  50%    { transform:translateY(var(--float-dist)); }
}
@keyframes float-x{
  0%,100%{ transform:translateX(calc(var(--float-dist) * -1)); }
  50%    { transform:translateX(var(--float-dist)); }
}
/* rotatie (inner) */
.rot-cw-12 { animation:spin-cw  12s linear infinite; }
.rot-ccw-18{ animation:spin-ccw 18s linear infinite; }
.rot-cw-22 { animation:spin-cw  22s linear infinite; }
.rot-ccw-22{ animation:spin-ccw 22s linear infinite; }
/* float (wrapper) */
.fl-y6{ animation:float-y 6s ease-in-out infinite; }
.fl-y8{ animation:float-y 8s ease-in-out infinite; }
.fl-y9{ animation:float-y 9s ease-in-out infinite; }
.fl-x6{ animation:float-x 6s ease-in-out infinite; }
.fl-x7{ animation:float-x 7s ease-in-out infinite; }

/* corner-driehoek voor kaarten */
.corner-tri{
  position:absolute; top:14px; right:14px;
  width:10px; height:10px; background:var(--prikkel);
  clip-path:polygon(50% 0,100% 100%,0 100%);
}

/* ─── Sectie 2 — Stats ────────────────────────────────────────── */
.stats{
  display:grid; grid-template-columns:repeat(2,1fr);
  margin-top:40px; border-top:1px solid var(--line);
}
.stats .cell{
  padding:26px 18px 22px;
  border-right:1px solid var(--line); border-bottom:1px solid var(--line);
  position:relative;
}
.stats .cell:nth-child(2n){ border-right:0; }
.stats .num{
  font-family:var(--font-display); font-size:clamp(46px, 13vw, 72px);
  line-height:1; color:var(--ink); letter-spacing:-.01em;
}
.stats .num em{ font-style:italic; color:var(--prikkel); }
.stats .lbl{
  margin-top:14px; font-family:var(--font-mono); font-size:11px;
  letter-spacing:.1em; text-transform:uppercase; color:var(--muted);
  max-width:22ch; line-height:1.45;
}
.stats-note{
  margin-top:24px; font-family:var(--font-mono); font-size:11.5px;
  letter-spacing:.04em; color:var(--muted); max-width:80ch; line-height:1.6;
}
@media (min-width: 640px){ .stats{ margin-top:56px; } }
@media (min-width: 960px){
  .stats{ grid-template-columns:repeat(4,1fr); }
  .stats .cell{ padding:36px 28px 32px; border-right:1px solid var(--line); }
  .stats .cell:nth-child(2n){ border-right:1px solid var(--line); }
  .stats .cell:last-child{ border-right:0; }
  .stats .num{ font-size:clamp(56px, 7vw, 96px); }
  .stats .lbl{ margin-top:18px; font-size:11.5px; }
}

/* ─── Sectie 3 — Diagnose ─────────────────────────────────────── */
.diag{ display:grid; grid-template-columns:1fr; gap:28px; margin-top:32px; }
.diag .narr p{ font-size:18px; line-height:1.55; color:var(--ink-90); margin:0 0 18px; max-width:42ch; }
.diag .list{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; }
.diag .list li{
  display:grid; grid-template-columns:48px 1fr; gap:8px;
  padding:18px 0; border-top:1px solid var(--line); align-items:baseline;
}
.diag .list li:last-child{ border-bottom:1px solid var(--line); }
.diag .list .n{ font-family:var(--font-mono); font-size:12px; letter-spacing:.1em; color:var(--prikkel); }
.diag .list .q{ font-family:var(--font-display); font-size:22px; line-height:1.25; color:var(--ink); }
.diag-slot{
  margin-top:40px; text-align:center;
  font-family:var(--font-display); font-style:italic; color:var(--prikkel);
  font-size:clamp(20px, 2.2vw, 28px); line-height:1.4;
  max-width:56ch; margin-left:auto; margin-right:auto; text-wrap:balance;
}
@media (min-width: 960px){
  .diag{ grid-template-columns:1.05fr 1fr; gap:64px; margin-top:56px; }
  .diag .narr p{ font-size:19px; max-width:38ch; }
  .diag .list li{ grid-template-columns:56px 1fr; padding:22px 0; }
  .diag .list .q{ font-size:24px; }
  .diag-slot{ margin-top:64px; }
}

/* ─── Sectie 4 — Wat ik bouw ──────────────────────────────────── */
.bouw{ display:grid; grid-template-columns:1fr; gap:24px; margin-top:32px; align-items:start; }
.bouw .heading{ position:static; }
.bouw .body p{ font-size:18px; line-height:1.6; color:var(--ink-90); margin:0 0 22px; max-width:44ch; }
.bouw .body p strong{ color:var(--ink); font-weight:500; }
@media (min-width: 960px){
  .bouw{ grid-template-columns:1fr 1.15fr; gap:64px; margin-top:48px; }
  .bouw .heading{ position:sticky; top:96px; }
  .bouw .body p{ font-size:19px; }
}

/* ─── Sectie 5 — Goedkeurview ─────────────────────────────────── */
.goed-wrap{ display:flex; justify-content:center; margin-top:40px; position:relative; }
.goed-caption{
  margin-top:24px; text-align:center;
  font-family:var(--font-mono); font-size:11px;
  letter-spacing:.1em; text-transform:uppercase; color:var(--muted);
}
@media (min-width: 640px){
  .goed-wrap{ margin-top:64px; }
  .goed-caption{ margin-top:28px; font-size:11.5px; }
}

/* E-mail-mockup (Variant C) */
.email{
  width:min(420px, 100%); background:#fff;
  border:1px solid var(--line-2); border-radius:14px;
  box-shadow:0 30px 60px -30px rgba(27,26,23,.22);
  overflow:hidden; font-size:14px;
}
.email .top{
  padding:14px 18px; border-bottom:1px solid var(--line);
  display:flex; align-items:center; gap:10px;
  font-family:var(--font-mono); font-size:11px; color:var(--muted);
  letter-spacing:.08em; text-transform:uppercase;
}
.email .top .d{ width:7px; height:7px; border-radius:50%; background:var(--prikkel); opacity:.7; }
.email .top .d.b{ background:#F8D848; }
.email .top .d.g{ background:#7DBA8A; }
.email .body{ padding:24px 22px 26px; color:var(--ink-90); }
.email .from{
  font-family:var(--font-mono); font-size:11.5px; color:var(--muted);
  letter-spacing:.06em; text-transform:uppercase; margin-bottom:8px;
}
.email h4{ font-family:var(--font-display); font-weight:400; font-size:26px; line-height:1.15; color:var(--ink); margin:0 0 16px; }
.email h4 em{ color:var(--prikkel); font-style:italic; }
.email p{ margin:0 0 14px; line-height:1.55; }
.email .magic{
  display:inline-flex; align-items:center; gap:8px; margin-top:8px;
  padding:14px 22px; min-height:48px; border-radius:999px;
  background:var(--ink); color:var(--cream); font-weight:500; font-size:14px;
}
.email .foot{ margin-top:22px; font-family:var(--font-mono); font-size:10.5px; letter-spacing:.08em; color:var(--muted); }
@media (min-width: 640px){
  .email{ width:min(540px, 100%); }
  .email .body{ padding:26px 28px 28px; }
  .email h4{ font-size:28px; }
}

/* ─── Sectie 6 — Voor wie ─────────────────────────────────────── */
.voor{
  display:grid; grid-template-columns:1fr; margin-top:32px;
  border-top:1px solid var(--line); border-bottom:1px solid var(--line);
}
.voor .col{ padding:28px 24px; border-bottom:1px solid var(--line); position:relative; }
.voor .col:last-child{ border-bottom:0; }
.voor .n{ font-family:var(--font-mono); font-size:12px; letter-spacing:.1em; color:var(--prikkel); }
.voor h4{ font-family:var(--font-display); font-weight:400; font-size:28px; line-height:1.15; color:var(--ink); margin:12px 0; max-width:16ch; }
.voor p{ margin:0; color:var(--ink-90); font-size:16px; line-height:1.55; max-width:38ch; }
@media (min-width: 960px){
  .voor{ grid-template-columns:repeat(3,1fr); }
  .voor .col{ padding:36px 32px 36px 28px; border-right:1px solid var(--line); border-bottom:0; }
  .voor .col:last-child{ border-right:0; }
  .voor h4{ font-size:30px; margin:14px 0; }
}

/* ─── Sectie 7 — Indicatie ────────────────────────────────────── */
.prijs{ margin-top:28px; max-width:60ch; }
.prijs p{ font-size:17px; line-height:1.6; color:var(--ink-90); margin:0 0 18px; }
@media (min-width: 640px){ .prijs{ margin-top:40px; } .prijs p{ font-size:18px; } }
@media (min-width: 640px){ .br-prijs{ display:none; } }

/* ─── Sectie 8 — Aanmelden ────────────────────────────────────── */
.signup{ display:grid; grid-template-columns:1fr; gap:24px; margin-top:32px; align-items:start; }
.signup .form{ background:var(--cream); border:1px solid var(--line); border-radius:18px; padding:24px; }
.field{ display:flex; flex-direction:column; margin-bottom:16px; }
.field label{
  font-family:var(--font-mono); font-size:11px; letter-spacing:.1em;
  text-transform:uppercase; color:var(--muted); margin-bottom:8px;
}
.field label .opt{ text-transform:none; opacity:.7; }
.field input{
  font-family:var(--font-body); font-size:16px; color:var(--ink);
  background:var(--cream); border:1px solid var(--line-2); border-radius:10px;
  padding:13px 14px; min-height:48px; outline:none;
  transition:border-color .18s ease, background .18s ease;
}
.field input::placeholder{ color:rgba(27,26,23,.35); }
.field input:focus{ border-color:var(--ink); background:var(--cream-2); }
.form .btn{ width:100%; margin-top:6px; }
.form-note{
  margin-top:14px; font-family:var(--font-mono); font-size:10.5px;
  letter-spacing:.06em; color:var(--muted); text-align:center;
}
/* form-states (actief in fase d) */
.form-error{
  margin-bottom:16px; padding:12px 14px;
  border:1px solid var(--prikkel); border-radius:10px;
  color:var(--prikkel); font-size:14px; line-height:1.45;
}
/* success-state: form wordt vervangen door dank-blok, zelfde kaart */
.form.is-done{ text-align:center; display:flex; flex-direction:column; justify-content:center; min-height:200px; }
.done-title{
  font-family:var(--font-display); font-weight:400;
  font-size:clamp(28px, 5vw, 40px); line-height:1.05;
  color:var(--ink); margin:0 0 12px;
}
.done-note{ margin-top:0; }
.honeypot{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }
@media (min-width: 960px){
  .signup{ grid-template-columns:1fr 1.1fr; gap:64px; margin-top:48px; }
  .signup .form{ padding:28px; }
}

/* ─── Privacy / legal-pagina ──────────────────────────────────── */
.legal-body{ max-width:68ch; margin-top:28px; }
.legal-body h2{
  font-family:var(--font-display); font-weight:400;
  font-size:clamp(22px, 3vw, 30px); line-height:1.15; color:var(--ink);
  margin:32px 0 10px;
}
.legal-body p{ font-size:17px; line-height:1.6; color:var(--ink-90); margin:0 0 14px; }
.legal-body ul{ margin:0 0 14px; padding-left:1.2em; }
.legal-body li{ font-size:17px; line-height:1.6; color:var(--ink-90); margin:0 0 6px; }
.legal-body a{ color:var(--prikkel); text-underline-offset:2px; }
.legal-back{ margin-top:36px; }

/* ─── Footer ──────────────────────────────────────────────────── */
footer{
  margin-top:40px; padding:48px 0 64px;
  border-top:1px solid var(--line); text-align:center;
  font-family:var(--font-mono); font-size:11px;
  letter-spacing:.1em; text-transform:uppercase; color:var(--muted); line-height:2;
}
footer a{ color:var(--muted); text-decoration:underline; text-underline-offset:2px; }
footer a:hover{ color:var(--ink); }

/* ─── Reduced motion ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce){
  *{ animation:none !important; transition:none !important; scroll-behavior:auto !important; }
}
