/* FLAi-website
   Huisstijl: ../../FLAi/LEESMIJ.md. Carbon-basis, gradient 105° met vier vaste stops, cyaan max 10%.
   Richting: "editorial manifesto": grote linkse koppen, weinig kaders, de snelheidslijnen uit het logo als beeldtaal.
   Radius: vlakken 20px · kleine vlakken 14px · knoppen 12px · velden 10px · rond voor knooppunten.
   Alle lettergroottes in rem (tekstgrootte van de bezoeker telt mee). */

@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --flai-violet: #7C3AED;
  --flai-indigo: #4F46E5;
  --flai-blue: #2563EB;
  --flai-cyan: #22D3EE;
  --flai-ink: #0A0B14;
  --flai-paper: #F6F7FB;
  --on-accent: #FFFFFF;   /* tekst op de gradient en op violet */
  --highlight: rgba(255, 255, 255, 0.16);
  --scrim: rgba(5, 6, 14, 0.6); /* binnenrand bovenaan de primaire knop */
  --fs-ui: 0.9375rem;      /* navigatie, chips, kleine knoppen, footer, veldlabels */
  --fs-label: 0.875rem;    /* labels en meta */
  --flai-gradient: linear-gradient(105deg, #7C3AED 0%, #4F46E5 34%, #2563EB 66%, #22D3EE 100%);

  --bg: #0A0B14;
  --bg-raised: #0D0F1A;
  --surface: #12141F;
  --surface-hover: #161826;
  --surface-press: #1A1D2C;
  --line: #232637;
  --line-strong: #33374D;
  --text: #E8EAF4;
  --dim: #9AA0BC;          /* 7,1:1 op Carbon */
  --text-soft: #CED1E0;    /* leads: iets zachter dan de tekst, geen doorzichtigheid */
  --control: #5D6280;      /* randen van velden: ≥ 3:1 */
  --ok: #6EE7B7;
  --bad: #FCA5A5;
  --focus: var(--flai-cyan);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --shadow-md: 0 12px 32px -8px rgba(5, 6, 14, 0.7);
  --shadow-lg: 0 30px 80px -10px rgba(5, 6, 14, 0.75);

  --r-lg: 20px;
  --r-md: 14px;
  --r-btn: 12px;
  --r-input: 10px;

  --wrap: 76rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(5rem, 4rem + 5vw, 8.5rem);   /* ruimte tussen secties */
  --header-h: 4.5rem;

  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-tap-highlight-color: transparent;
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  min-height: 100svh;
  background: var(--bg);
  color: var(--text);
  font-family: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
  font-feature-settings: "ss01", "cv11";
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: color-mix(in srgb, var(--flai-violet) 55%, transparent); color: var(--on-accent); }

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

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.25rem; height: 1.25rem; flex: none; fill: currentColor; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

.skip {
  position: fixed; left: 1rem; top: 1rem; z-index: 100;
  padding: 0.75rem 1rem; border-radius: var(--r-btn);
  background: var(--text); color: var(--bg); font-weight: 600; text-decoration: none;
  transform: translateY(-200%);
}
.skip:focus-visible { transform: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Typografie ----------
   Trap: hero 6 → pagina-h1 4.25 → h2 3.25 → h3 1.5 → lead 1.25 → tekst 1.0625 → meta 0.875 */
.display {
  font-size: clamp(2.625rem, min(1.2rem + 5.6vw, 0.25rem + 8.6svh), 5rem); /* breedte én hoogte: eerste scherm altijd af */
  line-height: 1.02;
  font-weight: 650;
  letter-spacing: -0.038em;
  text-wrap: balance;
}
.h1 {
  font-size: clamp(2.5rem, 1.7rem + 3.4vw, 4.25rem);
  line-height: 1.05;
  font-weight: 650;
  letter-spacing: -0.034em;
  text-wrap: balance;
}
.h2 {
  font-size: clamp(2rem, 1.35rem + 2.5vw, 3.25rem);
  line-height: 1.08;
  font-weight: 650;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.h3 { font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem); line-height: 1.25; font-weight: 620; letter-spacing: -0.018em; }
.lead { font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem); line-height: 1.55; color: var(--dim); max-width: 38em; }
.prose p + p { margin-top: 1em; }
.prose { max-width: 40em; }
.dim { color: var(--dim); }

/* ---------- Knoppen ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.875rem;
  min-height: 3.25rem;
  padding: 0.75rem 1.25rem;
  border: 0;
  border-radius: var(--r-btn);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.005em;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
  transition: transform 160ms var(--ease-out), background-position 420ms var(--ease-out), background-color 200ms ease, border-color 200ms ease;
}
.btn:active { transform: scale(0.97); transition-duration: 60ms, 420ms, 200ms, 200ms; }
.btn .icon { transition: transform 200ms var(--ease-out); }

/* Primair: de merkgradient (105°, vier stops) iets breder getrokken, zodat het label op
   violet-indigo-blauw staat (wit ≥ 4,5:1) en het cyaan achter de pijl zit.
   Hover: de gradient schuift een stukje door, als versnelling. */
.btn-primary {
  color: var(--on-accent);
  background-image: var(--flai-gradient);
  background-size: 150% 100%;
  background-position: 0% 0;
  box-shadow: inset 0 1px 0 var(--highlight);
}
.btn-quiet {
  background: var(--surface);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.btn-quiet:active { background: var(--surface-press); }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background-position: 30% 0; }
  .btn-primary:hover .icon, .btn-quiet:hover .icon { transform: translateX(3px); }
  .btn-quiet:hover { background: var(--surface-hover); }
}

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 600; text-decoration: none;
  padding-block: 0.5rem;
}
.link-arrow .icon { transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .link-arrow:hover .icon { transform: translateX(3px); } }
.link-arrow span { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 2px; }

/* ---------- Header ----------
   Vast bovenaan (position: fixed + ruimte in body), zodat krimpen de pagina niet laat verspringen.
   Bij scrollen: van open balk naar een zwevende, afgeronde balk met achtergrond (idee: "morphing navbar"). */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 0.5rem 0;
}
.header-bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 3.5rem;
  max-width: calc(var(--wrap) - 2 * var(--gutter) + 2rem);
  margin: 0 auto;
  padding: 0 1rem;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  transition: background-color 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}
.site-header.is-scrolled .header-bar {
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-color: var(--line);
  box-shadow: var(--shadow-md);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header.is-scrolled .header-bar { background: var(--surface); }
}
.brand { display: block; flex: none; padding: 0.25rem 0; border-radius: var(--r-input); }
.brand img { height: 40px; width: auto; } /* 40px hoog = 126px breed: boven het minimum van 120px (logoregel), nooit uitgerekt */
.nav { display: none; margin-left: auto; }
.nav ul { display: flex; gap: 0.25rem; }
.nav a {
  display: block;
  padding: 0.5rem 0.875rem;
  border-radius: 10px;
  font-size: var(--fs-ui);
  font-weight: 500;
  color: var(--dim);
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease;
}
.nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"]::after {
  content: ""; display: block; height: 2px; margin-top: 2px; border-radius: 2px;
  background: var(--flai-gradient);
}
@media (hover: hover) and (pointer: fine) { .nav a:hover { color: var(--text); background: var(--surface-hover); } }
.header-cta { display: none; min-height: 2.75rem; padding: 0.5rem 1rem; font-size: var(--fs-ui); }

.menu-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-left: auto;
  min-height: 2.75rem; padding: 0 0.875rem;
  border: 0; border-radius: 10px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong);
  font-weight: 600; font-size: var(--fs-ui); cursor: pointer;
  touch-action: manipulation;
  transition: transform 160ms var(--ease-out);
}
.menu-btn:active { transform: scale(0.96); transition-duration: 60ms; }
.menu-btn .icon-close { display: none; }
.menu-open .menu-btn .icon-open { display: none; }
.menu-open .menu-btn .icon-close { display: block; }

/* Mobiel menu: paneel onder de header. Openen 260ms, sluiten 180ms (Emil), clip-path + fade. */
.menu {
  position: fixed;
  inset: calc(4.5rem + 0.25rem) 0.75rem auto 0.75rem;
  z-index: 49;
  padding: 0.75rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  clip-path: inset(0 0 100% 0 round var(--r-lg));
  pointer-events: none;
  transition: opacity 160ms ease, clip-path 180ms var(--ease-out);
}
.menu-open .menu {
  opacity: 1;
  clip-path: inset(0 0 0 0 round var(--r-lg));
  pointer-events: auto;
  transition: opacity 200ms ease, clip-path 260ms var(--ease-out);
}
.menu ul { display: grid; }
.menu a:not(.btn) {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 3.5rem; padding: 0 0.75rem;
  border-radius: 12px;
  font-size: 1.25rem; font-weight: 600; letter-spacing: -0.015em; text-decoration: none;
}
.menu a:not(.btn):active { background: var(--surface-press); }
.menu a[aria-current="page"] { color: var(--text); background: var(--surface-hover); }
.menu .btn { width: 100%; margin-top: 0.75rem; }
.menu-scrim {
  position: fixed; inset: 0; z-index: 48;
  background: var(--scrim);
  opacity: 0; pointer-events: none;
  transition: opacity 200ms ease;
}
.menu-open .menu-scrim { opacity: 1; pointer-events: auto; }

@media (min-width: 60em) {
  .nav, .header-cta { display: flex; }
  .menu-btn, .menu, .menu-scrim { display: none; }
}

main { padding-top: var(--header-h); }

/* ---------- Snelheidslijnen (beeldtaal uit het logo) ----------
   Getekend met pathLength=1, zodat elke lijn met één dash-waarde van links naar rechts kan tekenen. */
.lanes { pointer-events: none; }
.lanes path, .lanes circle { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.lanes .who path, .lanes .who circle { fill: var(--text); stroke: none; } /* de mens in het controlepunt */

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 2rem + 5vw, 6rem) 0 clamp(4rem, 3rem + 5vw, 7rem);
  isolation: isolate;
}
.hero-lanes {
  position: absolute;
  z-index: -1;
  right: -8%;
  bottom: 4%;
  width: min(78rem, 120%);
  max-width: none;
  height: auto;
  opacity: 0.55;
}
.hero-copy { max-width: 58rem; }
.hero .display { max-width: 11.5em; }
.hero .lead { margin-top: 1.5rem; color: var(--text-soft); font-size: clamp(1.125rem, min(0.95rem + 0.5vw, 0.55rem + 1.6svh), 1.375rem); max-width: 26em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.5rem; }
@media (max-width: 37.5em) {
  .hero-actions .btn { flex: 1 1 100%; }
  /* lijnen onder de knoppen, niet erachter */
  .hero { padding-bottom: 10rem; }
  .hero-lanes { opacity: 1; bottom: 0; width: 115%; right: -22%; }
}
@media (min-width: 60em) {
  .hero { padding-top: clamp(4rem, 3rem + 4vw, 6rem); min-height: min(52rem, calc(100svh - var(--header-h))); display: flex; align-items: center; }
  /* De lijnen zijn het beeld: rechterhelft, fast lane op hoogte van de onderste kopregel */
  .hero-lanes { opacity: 1; right: -8%; bottom: auto; top: 50%; transform: translateY(-47%); width: min(62vw, 64rem); }
}

/* ---------- Secties ---------- */
.section { padding: var(--section) 0; position: relative; }
.section + .section { padding-top: 0; }
.section-head { margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); max-width: 48rem; }
.section-head .lead { margin-top: 1.125rem; }
.section.rule-top { border-top: 1px solid var(--line); padding-top: var(--section); }

/* Probleem: uitspraak links, herkenbare situaties rechts */
.problem { display: grid; gap: 3rem; }
.problem .h2 { max-width: 13em; }
.problem-statement { margin-top: 1.25rem; font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); line-height: 1.45; color: var(--dim); max-width: 26em; }
.problem-list { display: grid; }
.problem-list li {
  display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); gap: 0.75rem; align-items: start;
  padding: 1.25rem 0;
  font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  line-height: 1.5;
}
.problem-list li + li { border-top: 1px solid var(--line); }
.problem-list .tick { /* een klein snelheidsspoor: node + lijn, zoals in het logo */
  width: 2.25rem; height: 1.5rem; margin-top: 0.05rem;
}
.problem-close { margin-top: 1.75rem; font-weight: 600; font-size: 1.1875rem; }
@media (min-width: 60em) {
  .problem { grid-template-columns: 1.05fr 1fr; gap: 5rem; align-items: start; }
  .problem-list { margin-top: 0.5rem; }
}

/* Diensten als indexlijst (geen zes gelijke kaarten) */
.index { border-bottom: 1px solid var(--line); }
.index-row {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) auto;
  gap: 0.25rem 1.25rem;
  align-items: center;
  padding: 1.5rem 0.75rem;
  margin: 0 -0.75rem;
  border-top: 1px solid var(--line);
  border-radius: 0;
  text-decoration: none;
  transition: background-color 200ms ease;
}
.index-ico {
  grid-row: 1 / span 2;
  display: grid; place-items: center;
  width: 3rem; height: 3rem; border-radius: 12px;
  background: color-mix(in srgb, var(--flai-violet) 16%, transparent);
  align-self: start;
}
.index-name { font-size: clamp(1.375rem, 1.1rem + 1.1vw, 2.125rem); font-weight: 620; letter-spacing: -0.025em; line-height: 1.15; }
.index-text { grid-column: 2; color: var(--dim); max-width: 40em; }
.index-go {
  grid-column: 3; grid-row: 1 / span 2;
  display: grid; place-items: center;
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: transform 220ms var(--ease-out), background-color 200ms ease, box-shadow 200ms ease;
}
.index-row:active { background: var(--surface-press); }
@media (hover: hover) and (pointer: fine) {
  .index-row:hover { background: var(--surface); }
  .index-row:hover .index-go { transform: translateX(4px); background: var(--flai-indigo); box-shadow: none; }
}
@media (min-width: 60em) {
  .index-row { grid-template-columns: 3.5rem minmax(0, 1.1fr) minmax(0, 1fr) auto; padding: 2rem 1rem; margin: 0 -1rem; }
  .index-ico { grid-row: 1; width: 3.5rem; height: 3.5rem; }
  .index-text { grid-column: 3; }
  .index-go { grid-column: 4; grid-row: 1; }
}

/* Waarom FLAi: asymmetrisch raster, 5 vakken (1 groot) */
.value {
  position: relative;
  padding: clamp(1.5rem, 1.2rem + 1vw, 2.25rem);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
}
.value .h3 { margin-top: 1.25rem; }
.value p { margin-top: 0.75rem; color: var(--dim); max-width: 34em; }
.value-ico { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 12px; background: color-mix(in srgb, var(--flai-violet) 16%, transparent); }
.value-big {
  border-color: transparent;
  background:
    radial-gradient(90% 80% at 0% 0%, rgba(124, 58, 237, 0.18), transparent 60%) padding-box,
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--flai-gradient) border-box;
}
.value-big .h3 { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); letter-spacing: -0.028em; }
.value-big p { color: var(--text); font-size: 1.125rem; }
.value-big .checkpoint { margin-top: 2rem; width: 100%; max-width: 30rem; height: auto; }

/* Werkwijze als één "fast lane" met zes knooppunten */
.lane { position: relative; display: grid; gap: 0; counter-reset: step; }
.lane-step { position: relative; display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 0 1.25rem; padding-bottom: 2rem; }
.lane-step:last-child { padding-bottom: 0; }
.lane-node {
  position: relative; z-index: 1;
  display: grid; place-items: center;
  width: 3rem; height: 3rem; border-radius: 50%;
  background: var(--bg);
  box-shadow: inset 0 0 0 2px var(--line-strong);
  font-weight: 650; font-size: var(--fs-ui); font-variant-numeric: tabular-nums;
  transition: box-shadow 400ms ease, color 400ms ease;
}
.lane-step h3 { font-size: 1.25rem; font-weight: 620; letter-spacing: -0.015em; padding-top: 0.625rem; }
.lane-step p { grid-column: 2; margin-top: 0.375rem; color: var(--dim); max-width: 30em; }
/* verticale lijn (mobiel) */
.lane::before, .lane::after {
  content: ""; position: absolute; left: calc(1.5rem - 1px); top: 1.5rem; bottom: 1.5rem; width: 2px; border-radius: 2px;
  background: var(--line);
}
.lane::after { background: linear-gradient(180deg, #7C3AED, #4F46E5 34%, #2563EB 66%, #22D3EE); transform-origin: top; transform: scaleY(var(--lane-fill, 1)); }
.lane.is-in .lane-node { box-shadow: inset 0 0 0 2px var(--flai-indigo); }
.lane .lane-step:first-child .lane-node { background: var(--flai-violet); box-shadow: none; color: var(--on-accent); }
@media (min-width: 64em) {
  .lane { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.5rem; }
  .lane-step { grid-template-columns: 1fr; padding-bottom: 0; }
  .lane-step p { grid-column: 1; }
  .lane-step h3 { padding-top: 1.5rem; }
  .lane::before, .lane::after { left: 1.5rem; right: 1.5rem; top: calc(1.5rem - 1px); bottom: auto; width: auto; height: 2px; }
  .lane::after { background: var(--flai-gradient); transform-origin: left; transform: scaleX(var(--lane-fill, 1)); }
}

/* Over ons kort: portretten + tekst */
.about { display: grid; gap: 2.5rem; align-items: center; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 0.875rem; max-width: 34rem; }
.person { margin: 0; }
.person-photo {
  position: relative; aspect-ratio: 1; border-radius: var(--r-lg); overflow: hidden;
  background: var(--surface);
}
.person-photo img { width: 100%; height: 100%; object-fit: cover; }
.person figcaption { margin-top: 0.875rem; }
.person-name { display: block; font-weight: 620; font-size: 1.0625rem; }
.person-role { display: block; font-size: var(--fs-label); color: var(--dim); }
.duo .person:nth-child(2) { margin-top: 2.5rem; }
.about .prose { margin-top: 1.25rem; }
.about .link-arrow { margin-top: 1.5rem; }
@media (min-width: 60em) { .about { grid-template-columns: 1fr 1fr; gap: 5rem; } }

/* FAQ */
.faq { display: grid; gap: 0; max-width: 52rem; border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.5rem 0;
  font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem); font-weight: 600; letter-spacing: -0.015em;
  cursor: pointer; list-style: none;
  touch-action: manipulation;
}
.faq summary::-webkit-details-marker { display: none; }
.faq .plus {
  display: grid; place-items: center; flex: none;
  width: 2.25rem; height: 2.25rem; border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: transform 240ms var(--ease-out), background-color 200ms ease;
}
.faq details[open] .plus { transform: rotate(45deg); background: var(--surface); }
.faq .answer { padding: 0 min(3.75rem, 12%) 1.75rem 0; color: var(--dim); max-width: 44em; }
@media (hover: hover) and (pointer: fine) { .faq summary:hover .plus { background: var(--surface-hover); } }
:root { interpolate-size: allow-keywords; }
.faq details::details-content { block-size: 0; overflow: clip; transition: block-size 180ms var(--ease-out), content-visibility 180ms allow-discrete; }
.faq details[open]::details-content { block-size: auto; transition-duration: 260ms; }

/* Slot-CTA: brede band met snelheidslijnen */
.closing { padding: 0 0 var(--section); }
.closing-band {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(2.5rem, 2rem + 4vw, 5.5rem) clamp(1.5rem, 1rem + 4vw, 5rem);
  border-radius: calc(var(--r-lg) + 8px);
  background:
    radial-gradient(70% 120% at 100% 100%, rgba(37, 99, 235, 0.2), transparent 60%),
    radial-gradient(60% 100% at 0% 0%, rgba(124, 58, 237, 0.22), transparent 60%),
    var(--surface);
  border: 1px solid var(--line);
}
.closing-band .h2 { max-width: 12em; }
.closing-band .lead { margin-top: 1.125rem; color: var(--text-soft); }
.closing-band .btn { margin-top: 2rem; }
.closing-lanes { position: absolute; z-index: -1; right: -12%; bottom: -8%; width: 46rem; max-width: none; opacity: 0.55; }
@media (max-width: 37.5em) { .closing-band .btn { width: 100%; } }
@media (max-width: 47.99em) { .closing-lanes { width: 34rem; right: -40%; opacity: 0.35; } }

/* ---------- Paginakop (binnenpagina's) ---------- */
.page-head { position: relative; overflow: hidden; isolation: isolate; padding: clamp(3rem, 2rem + 4vw, 5.5rem) 0 clamp(3rem, 2rem + 3vw, 4.5rem); border-bottom: 1px solid var(--line); }
.page-head .lead { margin-top: 1.25rem; }
.page-head .lanes { position: absolute; z-index: -1; right: -10%; bottom: -30%; width: 52rem; max-width: none; opacity: 0.45; }
@media (max-width: 47.99em) { .page-head .lanes { width: 34rem; right: -55%; bottom: -25%; opacity: 0.3; } }

/* ---------- Diensten (detail) ---------- */
.services-layout { display: grid; gap: 3rem; }
.toc { display: none; }
.service { padding: clamp(3rem, 2.5rem + 2vw, 4.5rem) 0; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 1rem); }
.service:first-child { border-top: 0; padding-top: 0; }
.service-head { display: flex; align-items: center; gap: 1rem; }
.service-head .index-ico { width: 3.25rem; height: 3.25rem; }
.service-what { margin-top: 1.5rem; font-size: 1.1875rem; line-height: 1.6; max-width: 38em; }
.service-grid { display: grid; gap: 1.5rem 3rem; margin-top: 2rem; }
.label { display: block; font-size: var(--fs-label); font-weight: 600; color: var(--dim); margin-bottom: 0.5rem; }
.checks li { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); gap: 0.625rem; padding: 0.375rem 0; }
.checks .icon { width: 1.25rem; height: 1.25rem; margin-top: 0.2rem; color: var(--flai-cyan); }
.ai-note {
  margin-top: 2rem; padding: 1.5rem 1.75rem; border-radius: var(--r-md);
  border: 1px solid transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--flai-gradient) border-box;
  max-width: 44rem;
}
.ai-note strong { display: block; font-size: 1.125rem; margin-bottom: 0.375rem; }
.ai-note p { color: var(--dim); }
@media (min-width: 48em) { .service-grid { grid-template-columns: 1fr 1.3fr; } }
@media (min-width: 64em) {
  .services-layout { grid-template-columns: 15rem minmax(0, 1fr); gap: 5rem; align-items: start; }
  .toc { display: block; position: sticky; top: calc(var(--header-h) + 2rem); }
  .toc a {
    display: block; padding: 0.5rem 0 0.5rem 1rem; border-left: 2px solid var(--line);
    font-size: var(--fs-ui); color: var(--dim); text-decoration: none;
    transition: color 160ms ease, border-color 200ms ease;
  }
  .toc a.is-active { color: var(--text); border-left-color: var(--flai-indigo); }
  @media (hover: hover) and (pointer: fine) { .toc a:hover { color: var(--text); } }
}

/* ---------- Aanpak (detail) ---------- */
.steps-long { display: grid; gap: 0; }
.step-long { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 0 1.25rem; padding-bottom: 2.5rem; position: relative; }
.step-long:last-child { padding-bottom: 0; }
.step-long::before { content: ""; position: absolute; left: calc(1.5rem - 1px); top: 3rem; bottom: 0; width: 2px; background: var(--line); }
.step-long:last-child::before { display: none; }
.step-long .lane-node { box-shadow: inset 0 0 0 2px var(--flai-indigo); }
.step-long h3 { padding-top: 0.5rem; }
.step-long p { grid-column: 2; margin-top: 0.5rem; color: var(--dim); max-width: 38em; }
.pillars { display: grid; gap: clamp(3rem, 2.5rem + 2vw, 5rem); }
.pillar { display: grid; gap: 1.5rem 4rem; }
.pillar .h2 { margin-top: 1rem; }
.pillar .lead { margin-top: 1rem; color: var(--text-soft); }
.pillar .checks li { padding: 0.75rem 0; border-top: 1px solid var(--line); }
.pillar .checks li:first-child { border-top: 0; }
@media (min-width: 60em) { .pillar { grid-template-columns: 1fr 1fr; align-items: start; } .pillar .checks { margin-top: 3.25rem; } }

/* ---------- Over ons (detail) ---------- */
.story { font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem); line-height: 1.55; max-width: 34em; }
.story p + p { margin-top: 1.1em; }
.story p:first-child { color: var(--text); }
.story p:not(:first-child) { color: var(--dim); }
.founders { display: grid; gap: 1.5rem; }
.founder { display: grid; gap: 1.5rem; padding: clamp(1.25rem, 1rem + 1vw, 2rem); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.founder .person-photo { max-width: 16rem; }
.founder-role { color: var(--dim); margin-top: 0.25rem; }
.founder .prose { margin-top: 1rem; color: var(--dim); }
.founder-links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; }
.btn-sm { min-height: 2.75rem; padding: 0.5rem 0.875rem; font-size: var(--fs-ui); gap: 0.5rem; }
@media (min-width: 48em) { .founder { grid-template-columns: 13rem minmax(0, 1fr); align-items: start; } }
@media (min-width: 72em) { .founders { grid-template-columns: 1fr 1fr; } .founder { grid-template-columns: 1fr; } .founder .person-photo { max-width: 13rem; } }
.value-list { display: grid; gap: 0; }
.value-list li { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); gap: 0.25rem 1.25rem; padding: 1.5rem 0; border-top: 1px solid var(--line); }
.value-list .value-ico { grid-row: 1 / span 2; }
.value-list strong { font-size: 1.1875rem; }
.value-list p { color: var(--dim); max-width: 40em; }
@media (min-width: 60em) { .value-list { grid-template-columns: 1fr 1fr; column-gap: 4rem; } }

/* ---------- Contact ---------- */
.contact { display: grid; gap: 3rem; }
.form-card { padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.form-card .h3 { margin-bottom: 1.5rem; }
.form { display: grid; gap: 1.25rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field { display: grid; gap: 0.5rem; }
.field label { font-size: var(--fs-ui); font-weight: 550; }
.field .opt { color: var(--dim); font-weight: 400; }
.field input, .field textarea {
  width: 100%; min-height: 3.25rem; padding: 0.8rem 1rem;
  border: 1px solid var(--control); border-radius: var(--r-input);
  background: var(--bg); color: var(--text);
  font-size: 1rem; /* voorkomt inzoomen op iOS */
  transition: border-color 200ms ease;
}
.field textarea { min-height: 8.5rem; resize: vertical; line-height: 1.5; }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.field input:-webkit-autofill { -webkit-text-fill-color: var(--text); -webkit-box-shadow: 0 0 0 1000px var(--bg) inset; caret-color: var(--text); }
.field [aria-invalid="true"] { border-color: var(--bad); }
.err { font-size: var(--fs-label); color: var(--bad); }
.err:empty { display: none; }
.form-note { font-size: var(--fs-label); color: var(--dim); }
.form-note a { color: var(--text); }
.btn-submit { width: 100%; }
.btn-submit .icon-spin { display: none; }
.btn-submit.is-loading { pointer-events: none; }
.btn-submit.is-loading .icon:not(.icon-spin) { display: none; }
.btn-submit.is-loading .icon-spin { display: block; animation: spin 700ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-status { font-size: var(--fs-ui); }
.form-status:empty { display: none; }
.form-status.is-bad { color: var(--bad); }
.form-status.is-ok { color: var(--ok); }
.form-status a { color: inherit; }
.form-done { display: none; text-align: left; }
.form-done .done-ico { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); margin-bottom: 1rem; }
.form-done p { margin-top: 0.5rem; color: var(--dim); }
.form-done .btn { margin-top: 1.5rem; }
.is-sent .form { display: none; }
.is-sent .form-done { display: block; }
.form-done:focus { outline: none; }
.direct { display: grid; gap: 2.5rem; align-content: start; }
.direct .h3 { margin-bottom: 0.5rem; }
.contact-person { display: grid; grid-template-columns: 4rem minmax(0, 1fr); gap: 0 1rem; align-items: center; padding: 1.25rem 0; border-top: 1px solid var(--line); }
.contact-person img { width: 4rem; height: 4rem; border-radius: 50%; object-fit: cover; }
.contact-person .founder-links { grid-column: 1 / -1; margin-top: 1rem; }

@media (min-width: 60em) { .contact { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 5rem; align-items: start; } }

/* ---------- Juridisch ---------- */
.legal { max-width: 46rem; }
.legal h2 { font-size: 1.5rem; font-weight: 620; letter-spacing: -0.018em; margin: 3rem 0 0.75rem; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--dim); }
.legal p + p { margin-top: 0.875rem; }
.legal ul { display: grid; gap: 0.5rem; margin-top: 0.75rem; }
.legal li { padding-left: 1.25rem; position: relative; }
.legal li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 0.5rem; height: 2px; border-radius: 2px; background: var(--flai-indigo); }
.legal a { color: var(--text); }
.facts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.25rem 1.5rem; margin-top: 1rem; }
.facts dd + dt { margin-top: 0.75rem; }
@media (min-width: 40em) { .facts { grid-template-columns: minmax(0, 14em) minmax(0, 1fr); gap: 0.625rem 1.5rem; } .facts dd + dt { margin-top: 0; } }
.facts dt { color: var(--dim); }
.todo { color: var(--dim); font-style: italic; }

/* ---------- 404 ---------- */
.nf { min-height: calc(70svh - var(--header-h)); display: flex; align-items: center; }
.nf .btn { margin-top: 2rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 4rem 0 2.5rem; background: var(--bg-raised); }
.footer-grid { display: grid; gap: 2.5rem; }
.footer-brand img { height: 44px; width: auto; }
.footer-brand p { margin-top: 1rem; color: var(--dim); max-width: 22rem; font-size: var(--fs-ui); }
.footer-col h2 { font-size: var(--fs-label); font-weight: 600; color: var(--dim); margin-bottom: 0.75rem; }
.footer-col ul { display: grid; gap: 0.125rem; }
.footer-col a { display: inline-block; padding: 0.375rem 0; text-decoration: none; font-size: var(--fs-ui); }
@media (hover: hover) and (pointer: fine) { .footer-col a:hover { text-decoration: underline; text-underline-offset: 3px; } }
.footer-col p { font-size: var(--fs-ui); color: var(--dim); }
.footer-legal { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; justify-content: space-between; font-size: var(--fs-label); color: var(--dim); }
@media (min-width: 48em) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }

/* ---------- Beweging ----------
   Eén gemaakt moment: de snelheidslijnen tekenen zich bij het laden van links naar rechts.
   Verder: rustige reveals bij scrollen, de werkwijze-lijn die zich vult, snelle feedback op knoppen. */
@media (prefers-reduced-motion: no-preference) {
  .draw path, .draw circle { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1100ms var(--ease-out) forwards; animation-delay: calc(150ms + var(--i, 0) * 70ms); }
  .draw circle { animation-duration: 500ms; }
  @keyframes draw { to { stroke-dashoffset: 0; } }

  .hero-copy > * { animation: rise 560ms var(--ease-out) both; }
  .hero-copy > :nth-child(2) { animation-delay: 70ms; }
  .hero-copy > :nth-child(3) { animation-delay: 140ms; }
  @keyframes rise { from { opacity: 0; transform: translateY(12px); } }

  .js .reveal:not(.is-in) { opacity: 0; transform: translateY(14px); }
  .js .reveal { transition: opacity 420ms var(--ease-out), transform 480ms var(--ease-out); }
  .js .reveal .stagger > * { transition: opacity 380ms var(--ease-out), transform 440ms var(--ease-out); transition-delay: calc(80ms + var(--n, 0) * 50ms); }
  .js .reveal:not(.is-in) .stagger > * { opacity: 0; transform: translateY(10px); }

  .js .lane { --lane-fill: 0; }
  .js .lane.is-in { --lane-fill: 1; }
  .js .lane::after { transition: transform 1200ms var(--ease-in-out) 200ms; }
}
@media (prefers-reduced-motion: reduce) {
  .btn:active, .menu-btn:active { transform: none; }
  .menu, .menu-open .menu { clip-path: none; transition: opacity 160ms ease; }
  .faq details::details-content { transition: none; }
  .faq .plus, .btn .icon, .index-go, .link-arrow .icon { transition: none; }
  .btn-submit.is-loading .icon-spin { animation: pulse 1200ms ease-in-out infinite; }
  @keyframes pulse { 50% { opacity: 0.35; } }
  .site-header, .header-bar { transition: background-color 200ms ease, border-color 200ms ease; }
}

/* ---------- Hulpklassen (CSP laat geen inline style toe) ---------- */
.top-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 24px; pointer-events: none; }
.draw .l1 { --i: 1; } .draw .l2 { --i: 2; } .draw .l3 { --i: 3; } .draw .l4 { --i: 4; }
.n1 { --n: 1; } .n2 { --n: 2; } .n3 { --n: 3; } .n4 { --n: 4; } .n5 { --n: 5; } .n6 { --n: 6; }
.person-photo .initials { display: grid; place-items: center; width: 100%; height: 100%; background: var(--flai-gradient); color: var(--on-accent); font-size: 2.5rem; font-weight: 650; }

.display, .h1, .h2, .h3, .index-name, h2, h3 { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: anywhere; }
.service-head > * { min-width: 0; }

/* Rasters krimpen altijd mee (lage specificiteit, zodat de brede layouts hierboven gewoon winnen):
   nodig bij grote tekst, anders duwt één lang woord de hele kolom buiten beeld. */
:where(.faq, .contact, .direct, .services-layout, .pillar, .pillars, .service-grid, .about, .problem, .founders, .founder, .footer-grid, .values, .form, .lane, .steps-long) { grid-template-columns: minmax(0, 1fr); }
/* Header bij grote tekst op een smal scherm: enkel het menu-icoon (label blijft voor schermlezers) */
.header-bar { container-type: inline-size; }
@container (max-width: 20em) { .menu-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } .menu-btn { padding: 0 0.75rem; } }

/* Waarom FLAi: "De mens beslist" uitgelicht, de andere vier als rijen met het knooppunt uit het logo */
.values { display: grid; gap: 2.5rem; }
.value-rows li { padding: 1.5rem 0; border-top: 1px solid var(--line); }
.value-rows li:last-child { border-bottom: 1px solid var(--line); }
.value-rows h3 { display: flex; align-items: center; gap: 0.75rem; font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem); font-weight: 620; letter-spacing: -0.018em; line-height: 1.25; }
.value-rows h3::before { content: ""; flex: none; width: 0.75rem; height: 0.75rem; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--flai-indigo); }
.value-rows p { margin-top: 0.5rem; padding-left: 1.5rem; color: var(--dim); max-width: 34em; }
@media (min-width: 64em) {
  /* uitgelicht blok niet uitrekken tot de hoogte van de rijen: geen lege strook */
  .values { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 4rem; align-items: start; }
  .value-big .checkpoint { margin-top: 2.5rem; }
}
/* 4. Werkwijze: alle stapnamen op één lijn */
.lane-step { align-content: start; }

/* Contact: wat er na je bericht gebeurt (zonder privénummers) */
.next { display: grid; gap: 1rem; margin-top: 1.25rem; }
.next li { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 1rem; align-items: center; }
.next .lane-node { box-shadow: inset 0 0 0 2px var(--flai-indigo); }
.next p { color: var(--dim); }
.team-mini { margin-top: 2rem; }
.booking { margin-bottom: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--line); }
.booking .btn { margin-top: 1rem; }

/* ---------- Bouwstenen: diensten zijn los te kiezen ----------
   Home: voorbeeldcombinaties als chips. Diensten: dezelfde voorbeelden als matrix (kolom = dienst).
   Smal (of grote tekst): de matrix valt terug op rijen met enkel de gekozen bouwstenen. */
.combos { margin-top: clamp(2rem, 1.5rem + 1.5vw, 3rem); }
.combos ul { display: grid; gap: 0; margin-top: 0.25rem; }
.combos li { display: grid; gap: 0.625rem 1.5rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.combos li:last-child { border-bottom: 1px solid var(--line); }
.combo-name { font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 2.25rem; padding: 0.25rem 0.75rem 0.25rem 0.5rem;
  border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong);
  font-size: var(--fs-ui); font-weight: 550;
}
.chip .icon { width: 1.125rem; height: 1.125rem; color: var(--text-soft); }
.plus-sep { color: var(--dim); font-weight: 600; }
.combos-note { margin-top: 1rem; font-size: var(--fs-ui); color: var(--dim); }
.combos-note a { color: var(--text); text-underline-offset: 3px; }
@media (min-width: 48em) { .combos li { grid-template-columns: minmax(0, 16rem) minmax(0, 1fr); align-items: center; } }

.matrix-wrap { container-type: inline-size; }
.matrix { width: 100%; border-collapse: collapse; table-layout: fixed; }
.matrix th, .matrix td { padding: 0; font-weight: inherit; }
.matrix thead th { vertical-align: bottom; padding: 0 0.25rem 1.25rem; text-align: center; font-size: var(--fs-label); color: var(--dim); }
.matrix thead th:first-child { width: 28%; }
.matrix thead a { display: grid; justify-items: center; gap: 0.625rem; text-decoration: none; border-radius: 10px; padding: 0.25rem; }
.matrix thead a .index-ico { width: 2.75rem; height: 2.75rem; color: var(--text); }
@media (hover: hover) and (pointer: fine) { .matrix thead a:hover { color: var(--text); } }
.m-label { display: block; line-height: 1.3; hyphens: auto; -webkit-hyphens: auto; }
.matrix tbody th { text-align: left; font-weight: 600; padding: 1.125rem 1rem 1.125rem 0; }
.matrix tbody tr { border-top: 1px solid var(--line); }
.matrix tbody tr:last-child { border-bottom: 1px solid var(--line); }
.matrix td { text-align: center; }
/* de lijn door de rij: een spoor met knooppunten, gekozen bouwstenen lichten op */
.matrix .cell {
  display: inline-grid; place-items: center; vertical-align: middle;
  width: 0.875rem; height: 0.875rem; border-radius: 50%;
  box-shadow: inset 0 0 0 2px var(--line-strong);
}
.matrix .cell .icon { display: none; }
.matrix .on .cell { width: 2.5rem; height: 2.5rem; background: var(--flai-gradient); box-shadow: none; color: var(--on-accent); }
.matrix .on .cell .icon { display: block; width: 1.125rem; height: 1.125rem; }
.matrix .cell-txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.matrix .cell-num { display: none; }

/* Meeschalen: volledig = gevulde stip, kort = halve (open) stip */
.matrix.scale thead th:first-child { width: 34%; }
.matrix.scale thead th { font-size: var(--fs-label); }
.matrix.scale thead .lane-node { width: 2rem; height: 2rem; margin: 0 auto 0.5rem; font-size: var(--fs-label); box-shadow: inset 0 0 0 2px var(--flai-indigo); }
.matrix.scale tbody th { font-size: var(--fs-ui); }
.lv2 .cell, .cell.lv2 { width: 1.125rem; height: 1.125rem; background: var(--flai-gradient); box-shadow: none; }
.lv1 .cell, .cell.lv1 { width: 1.125rem; height: 1.125rem; box-shadow: inset 0 0 0 2px var(--flai-indigo); background: linear-gradient(90deg, var(--flai-indigo) 50%, transparent 50%); }
.legend { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 1rem; font-size: var(--fs-label); color: var(--dim); }
.legend > span { display: inline-flex; align-items: center; gap: 0.5rem; }
.legend .cell { display: inline-block; border-radius: 50%; }

@container (max-width: 40em) {
  .matrix, .matrix tbody, .matrix tr, .matrix th, .matrix td { display: block; }
  .matrix thead { display: none; }
  .matrix tbody tr { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; padding: 1rem 0; }
  .matrix tbody th { flex: 1 1 100%; padding: 0 0 0.25rem; }
  .matrix td:not(.on):not([class*="lv"]) { display: none; }
  .matrix .on { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.25rem; padding: 0.25rem 0.75rem 0.25rem 0.25rem; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); font-size: var(--fs-ui); font-weight: 550; }
  .matrix .on .cell { width: 1.75rem; height: 1.75rem; }
  .matrix .on .cell .icon { width: 1rem; height: 1rem; }
  .matrix .cell-txt { position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal; }
  .matrix.scale td { display: inline-grid; justify-items: center; gap: 0.375rem; width: 2.25rem; }
  .matrix.scale .cell-num { display: block; font-size: var(--fs-label); color: var(--dim); font-variant-numeric: tabular-nums; }
}

/* ---------- Aanpak: stappen + meeschalen naast elkaar ---------- */
.steps-split { display: grid; gap: 3rem; }
.step-long .scale-note { display: flex; gap: 0.625rem; align-items: baseline; font-size: var(--fs-ui); margin-top: 0.75rem; padding: 0.625rem 0.875rem; border-radius: var(--r-input); background: var(--surface); color: var(--text-soft); }
.scale-note::before { content: ""; flex: none; width: 0.75rem; height: 0.75rem; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--flai-indigo); background: linear-gradient(90deg, var(--flai-indigo) 50%, transparent 50%); transform: translateY(0.1em); }
.scale-note strong { color: var(--text); font-weight: 600; }
.scale-card { padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.scale-card > .dim { margin: 0.5rem 0 1.75rem; }
.scale-card .matrix .on, .scale-card .matrix tbody tr { background: none; }
@media (min-width: 64em) {
  .steps-split { grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); gap: 4rem; align-items: start; }
  .scale-card { position: sticky; top: calc(var(--header-h) + 2rem); }
}
:where(.steps-split) { grid-template-columns: minmax(0, 1fr); }

/* Pijlers: visual onder de intro */
.pillar .checkpoint, .pillar .sandbox { margin-top: 2rem; width: 100%; max-width: 28rem; height: auto; }
.sandbox .box { fill: none; stroke: var(--line-strong); stroke-width: 1.5; }
.sandbox .box.solid { stroke: var(--control); }
.sandbox .ok { fill: none; stroke: var(--text); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.sandbox text { fill: var(--dim); font: 500 13px Geist, ui-sans-serif, system-ui, sans-serif; }

/* Over ons */
.value-list + .more { margin-top: 1.5rem; }

.sandbox .sys path { fill: none; stroke: var(--line-strong); stroke-width: 3; stroke-linecap: round; }

/* Portretten op home: kolommen mogen krimpen; lange rollen breken netjes af (200% tekst) */
.duo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.person-role, .person-name { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: anywhere; }

.scale-note > span { min-width: 0; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: anywhere; }

/* ---------- Eindcontrole 27/09: hero zegt wat en voor wie, met gezichten ---------- */
.kicker { font-size: var(--fs-ui); font-weight: 600; color: var(--text-soft); margin-bottom: 1.25rem; letter-spacing: 0; }
.hero .lead { max-width: 34em; }
.hero-team { display: inline-flex; align-items: center; gap: 0.875rem; margin-top: 2rem; padding: 0.375rem 0; font-size: var(--fs-ui); color: var(--dim); text-decoration: none; border-radius: var(--r-input); }
.hero-team .faces { display: flex; }
.hero-team img { width: 2.5rem; height: 2.5rem; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--bg); }
.hero-team img + img { margin-left: -0.625rem; }
@media (hover: hover) and (pointer: fine) { .hero-team:hover { color: var(--text); } }
.hero-copy > :nth-child(4) { animation-delay: 210ms; }
.hero-copy > :nth-child(5) { animation-delay: 280ms; }
/* subpagina's: kortere intro, navigeren mag niet traag voelen (Emil) */
.page-head .hero-copy > * { animation-duration: 320ms; }
@media (min-width: 60em) {
  /* minder lege ruimte: de probleemsectie piept onder het eerste scherm uit */
  .hero { min-height: min(46rem, calc(100svh - var(--header-h) - 4rem)); }
}
/* lijnen nooit door de tekst van een paginakop */
@media (max-width: 47.99em) { .page-head { padding-bottom: 5rem; } .page-head .lanes { bottom: -58%; right: -45%; opacity: 0.35; } }
@media (min-width: 48em) { .page-head .lanes { right: -18%; bottom: -46%; } }
.page-head.compact { padding: clamp(2rem, 1.5rem + 2.5vw, 3.5rem) 0 clamp(2rem, 1.5rem + 2vw, 3rem); }
@media (max-width: 47.99em) { .page-head.compact { padding-bottom: 4.5rem; } }
.combos-note a { display: inline-block; padding-block: 0.5rem; }

@media (min-width: 60em) { .hero .lead { max-width: 27em; } }

/* na een paginakop: minder lege ruimte (formulier op contact hoger in beeld) */
.page-head + .section { padding-top: clamp(3rem, 2rem + 3vw, 5rem); }
.page-head.compact + .section { padding-top: clamp(2rem, 1.5rem + 2vw, 3rem); }

/* ---------- Laatste ronde 27/09 ---------- */
/* Zonder JavaScript: de menuknop wordt een link naar de navigatie in de footer */
.menu-nojs { display: none; }
html:not(.js) .menu-btn { display: none; }
html:not(.js) .menu-nojs {
  display: inline-flex; align-items: center; margin-left: auto;
  min-height: 2.75rem; padding: 0 0.875rem; border-radius: var(--r-input);
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong);
  font-weight: 600; font-size: var(--fs-ui); text-decoration: none;
}
@media (min-width: 60em) { html:not(.js) .menu-nojs { display: none; } }
/* Liggende gsm: het menu past altijd in beeld */
.menu { max-height: calc(100dvh - 5.5rem); overflow-y: auto; overscroll-behavior: contain; }

/* Geen weeskinderen: koppen gebalanceerd, lopende tekst "pretty" */
.h3, h3, .index-name, .lead, .problem-statement, .faq summary, legend { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }

/* Contactformulier: keuzechips */
.topics { border: 0; margin: 0; padding: 0; min-width: 0; }
.topics legend { padding: 0; font-size: var(--fs-ui); font-weight: 550; }
.hint { font-size: var(--fs-label); color: var(--dim); margin-top: 0.25rem; }
.topic-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.topic {
  position: relative; display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 2.75rem; padding: 0.375rem 0.875rem 0.375rem 0.625rem;
  border-radius: 999px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--control);
  font-size: var(--fs-ui); font-weight: 550; cursor: pointer; user-select: none; -webkit-user-select: none;
  touch-action: manipulation;
  transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms var(--ease-out);
}
.topic input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.topic .icon { width: 1.125rem; height: 1.125rem; color: var(--dim); transition: color 160ms ease; }
.topic:active { transform: scale(0.97); transition-duration: 60ms; }
.topic:has(input:checked) { background: color-mix(in srgb, var(--flai-indigo) 22%, var(--bg)); box-shadow: inset 0 0 0 2px var(--flai-indigo); }
.topic:has(input:checked) .icon { color: var(--text); }
.topic:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .topic:hover { background: var(--surface-hover); } .topic:has(input:checked):hover { background: color-mix(in srgb, var(--flai-indigo) 28%, var(--bg)); } }
@media (prefers-reduced-motion: reduce) { .topic:active { transform: none; } }

/* Diensten: kennismaking over deze dienst */
.service-ask { margin-top: 1.5rem; }

/* Cases en inzichten (verborgen tot er inhoud is) */
.teasers { display: grid; gap: 1rem; }
@media (min-width: 48em) { .teasers { grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); } }
.teaser { display: grid; gap: 0.5rem; height: 100%; padding: clamp(1.25rem, 1rem + 1vw, 1.75rem); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: background-color 200ms ease, border-color 200ms ease; }
.teaser p { color: var(--dim); }
.teaser .label { margin: 0; }
@media (hover: hover) and (pointer: fine) { .teaser:hover { background: var(--surface-hover); border-color: var(--line-strong); } }
.teasers + p { margin-top: 1.5rem; }
.article p { color: var(--text-soft); }
.article p + p { margin-top: 1em; }
.article .chips { margin-top: 1rem; }
.quote { margin: 2.5rem 0 0; padding: 1.5rem 1.75rem; border-radius: var(--r-md); background: var(--surface); }
.quote p { color: var(--text); font-size: 1.1875rem; }
.quote footer { margin-top: 0.75rem; color: var(--dim); font-size: var(--fs-ui); }

.topic { max-width: 100%; }
.topic span { min-width: 0; overflow-wrap: anywhere; hyphens: auto; -webkit-hyphens: auto; }

/* Zeer brede schermen: de lijnen blijven bij de inhoud in plaats van tegen de rand */
@media (min-width: 110em) { .hero-lanes { right: calc((100vw - var(--wrap)) / 2 - 14rem); width: 64rem; } }

.article .chip { text-decoration: none; color: var(--text); }
/* Knoppen op gsm: label op één regel (slotband iets minder binnenruimte) */
@media (max-width: 37.5em) { .closing-band { padding-inline: 1rem; } .closing-band .btn, .hero-actions .btn { padding-inline: 1rem; gap: 0.625rem; } }

.nf .lead { margin-top: 1.25rem; }

/* =====================================================================================
   Pixel-ronde 27/09 (gemeten met build/audit.mjs). Overschrijft oudere regels hierboven.
   ===================================================================================== */

/* Header: de balk (met 1rem binnenruimte) valt precies op de inhoudslijn, ook op gsm */
.header-bar { width: calc(100% - 2 * var(--gutter) + 2rem); }
/* Het logobestand heeft 2px lucht links van het beeldmerk: optisch op de lijn */
.brand img { margin-left: -2px; }
/* Actieve link: streep eronder zonder de hoogte te veranderen (anders 2px uit het midden) */
.nav a { position: relative; }
.nav a[aria-current="page"]::after { position: absolute; left: 0.875rem; right: 0.875rem; bottom: 0.25rem; margin: 0; }

/* ---------- Hero: tekst links, lijnen rechts en verticaal bij de tekst ---------- */
.hero { display: block; min-height: 0; padding: clamp(1.75rem, 0.75rem + 3.5svh, 3.5rem) 0 clamp(2.5rem, 1.5rem + 4svh, 4.5rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; }
.hero-copy { max-width: none; }
.hero .kicker { margin-bottom: 1rem; }
/* Kop en lead schalen mee met breedte én hoogte, zodat het eerste scherm op elk gangbaar scherm af is */
.hero .display { font-size: clamp(2.625rem, min(1.2rem + 5.6vw, 0.25rem + 8.6svh), 5rem); line-height: 1.02; max-width: 9.5em; }
.hero .lead { margin-top: 1.25rem; max-width: 30em; font-size: clamp(1.125rem, min(0.95rem + 0.5vw, 0.55rem + 1.6svh), 1.375rem); line-height: 1.5; }
.hero-actions { margin-top: clamp(1.5rem, 1rem + 1.5svh, 2.25rem); }
.hero-team { margin-top: clamp(1rem, 0.5rem + 1.5svh, 1.75rem); }
.hero-lanes { position: relative; inset: auto; transform: none; z-index: -1; opacity: 1; height: auto; max-width: none;
  width: 135%; margin: 1.5rem 0 -1rem -12%; }
@media (min-width: 37.5em) { .hero { padding-bottom: clamp(2.5rem, 1.5rem + 4svh, 4.5rem); } }
@media (min-width: 60em) {
  .hero { min-height: 0; display: block; }
  .hero-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); column-gap: clamp(1.5rem, 3vw, 3rem); }
  /* Lijnen in de rechterkolom, gecentreerd op het tekstblok, eindigen op de rechterlijn van de inhoud */
  .hero-lanes { width: 100%; margin: 0; right: auto; top: auto; bottom: auto; align-self: center; transform: translateY(-4%); }
}
@media (min-width: 110em) { .hero-lanes { right: auto; width: 100%; } }

/* ---------- Slotband: tekst links, lijnen rechts (nooit over de tekst) ---------- */
.closing-band { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; }
.closing-copy { position: relative; }
.closing-band .h2 { max-width: 12em; }
.closing-lanes { position: relative; right: auto; bottom: auto; z-index: -1; width: 130%; max-width: none; opacity: 0.6;
  margin: 1.5rem 0 calc(-1 * clamp(2.5rem, 2rem + 4vw, 5.5rem)) -8%; }
@media (max-width: 47.99em) { .closing-lanes { width: 150%; right: auto; opacity: 0.45; } }
@media (min-width: 60em) {
  .closing-band { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); column-gap: 2rem; }
  .closing-lanes { width: 125%; margin: 0 calc(-1 * clamp(1.5rem, 1rem + 4vw, 5rem)) 0 0; justify-self: start; }
}

/* ---------- Regellengte: lopende tekst max. ±70 tekens ---------- */
.lead { max-width: 33em; }
.section-head .lead, .page-head .lead, .closing-band .lead { max-width: 33em; }
.prose, .founder .prose { max-width: 37em; }
.story { max-width: 31em; }
.service-what { max-width: 33em; }
.ai-note p { max-width: 38em; }
.faq .answer { max-width: 37em; }
.legal { max-width: 40rem; }
.step-long p { max-width: 35em; }
.pillar .lead { max-width: 30em; }
.form-note { max-width: 36em; }

@media (max-width: 59.99em) { .hero-lanes { width: 100%; margin: 2rem 0 0; } }
@media (min-width: 60em) { .hero { padding-bottom: clamp(1rem, 0.25rem + 2svh, 2rem); } }
.hero-team span:last-child { text-wrap: balance; }

/* Paginakoppen: zelfde compositie als de hero (tekst links, lijnen rechts), rustiger */
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; }
.page-head .lanes { position: relative; inset: auto; right: auto; bottom: auto; z-index: -1; width: 62%; max-width: 22rem; margin: 1.5rem 0 0 auto; opacity: 0.5; }
@media (max-width: 47.99em) { .page-head, .page-head.compact { padding-bottom: clamp(2rem, 1.5rem + 2vw, 3rem); } .page-head .lanes { width: 62%; right: auto; bottom: auto; opacity: 0.45; } }
@media (min-width: 48em) { .page-head .lanes { right: auto; bottom: auto; } }
@media (min-width: 60em) {
  .page-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); column-gap: clamp(1.5rem, 3vw, 3rem); }
  .page-head .lanes { width: 100%; max-width: none; margin: 0; opacity: 0.6; }
}

/* Scheidingslijn tussen secties: niet dubbel zoveel lucht rond de lijn */
.section:has(+ .section.rule-top) { padding-bottom: calc(var(--section) * 0.6); }
.section.rule-top { padding-top: calc(var(--section) * 0.6); }

/* Regellengte lopende tekst (±32em ≈ 70 tekens) */
.ai-note p, .step-long p, .value-list p, .index-text { max-width: 32em; }
.form-note { max-width: 32em; }

.pillar .checks { max-width: 32em; }

.pillar .checks { max-width: 29em; }
