/* ============================================================
   FUNDAMENT — "De Blauwdruk"
   Upscale Consultancy Financial Services B.V.
   Huisstijl: Space Grotesk + IBM Plex Sans · petrol/mint/amber
   No gradients. No shadow soup. Hairlines and flat planes.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --petrol-700: #0E5560;
  --petrol-900: #072E34;
  --mint-300: #7FD1C0;
  --mint-200: #AEE3D8;
  --amber-600: #A85E04;
  --wa-600: #12836B;
  --ink: #141A1C;
  --gray-700: #3E4A4C;
  --gray-600: #5E6E71;
  --border: #DEE6E6;
  --surface: #F5F8F8;
  --white: #FFFFFF;

  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;

  /* Authored easing */
  --ease-draw: cubic-bezier(0.55, 0.06, 0.28, 0.99);
  --ease-out: cubic-bezier(0.19, 0.91, 0.38, 1);
  --ease-swap: cubic-bezier(0.83, 0, 0.17, 1);
  --ease-fold: cubic-bezier(0.16, 1, 0.3, 1);

  --maxw: 1160px;
  --gutter: 24px;

  /* Blueprint grid tile: 64px, petrol at 4% */
  --grid-tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cpath d='M64 .5H0M.5 64V0' fill='none' stroke='%230E5560' stroke-opacity='.08'/%3E%3C/svg%3E");
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; }
/* anchor targets: keep the heading visible below the sticky header (76px + marge) */
[id] { scroll-margin-top: 92px; }
html:has(dialog[open]) { overflow: hidden; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  position: relative;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.12;
  color: var(--ink);
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 { font-size: 48px; }
h2 { font-size: 36px; }
h3 { font-size: 22px; line-height: 1.3; }
h4 { font-size: 18px; line-height: 1.4; }

@media (min-width: 960px) {
  /* Meeschalend tussen de breekpunten: bij een vaste 64px past
     "administratie doen." niet op een regel en valt er een los woord op
     regel vier. Met deze schaal blijft de kop overal drie regels. */
  .hero h1 { font-size: clamp(44px, calc(6.03vw - 13.9px), 56px); }
}
@media (max-width: 700px) {
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
}

p { max-width: 68ch; }
.lead { font-size: 18px; color: var(--gray-700); }
.small { font-size: 14px; }
.micro { font-size: 13px; }
.muted { color: var(--gray-600); }

a { color: var(--petrol-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

::selection { background: var(--mint-200); color: var(--petrol-900); }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--petrol-700); color: #fff; padding: 12px 20px;
  font-family: var(--font-head); font-weight: 500; text-decoration: none;
}
.skip-link:focus-visible { left: 8px; top: 8px; }

/* Tabular numerals wherever numbers align */
.tnum, table, .price, .stat-num, .jp-diagram text {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: 96px; position: relative; }
.section--tight { padding-block: 64px; }
.section--surface { background: var(--surface) var(--grid-tile); }
.section--dark {
  background: var(--petrol-900);
  color: #E8F1F0;
}
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: #C9DBD8; }
.section--dark a:not(.btn) { color: var(--mint-300); }
.section--cta {
  background: var(--surface) var(--grid-tile);
  border-top: 1px solid var(--border);
}
/* CTA-achtergrond moet contrasteren met de sectie erboven:
   volgt de CTA op een surface-sectie, dan wordt hij wit (zonder raster). */
.section--surface + .section--cta { background: var(--white); }
.cta-panel {
  border-radius: 12px;
  padding: 72px 48px;
}

@media (max-width: 700px) {
  .section { padding-block: 48px; }
  .section--tight { padding-block: 36px; }
  .cta-panel { padding: 48px 24px; }
}

/* Sheet-style section header: index number + rule + title */
.sheet-head { margin-bottom: 48px; }
.overline {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-head);
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--petrol-700);
  margin-bottom: 16px;
}
.overline::after {
  content: ""; flex: 0 0 48px; height: 1px; background: var(--petrol-700); opacity: .5;
}
.section--dark .overline { color: var(--mint-300); }
.section--dark .overline::after { background: var(--mint-300); }

.sheet-head p.lead { margin-top: 16px; }

/* Coordinate micro-details (technical drawing margins) */
.coord {
  position: absolute;
  font-family: var(--font-head);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--petrol-700);
  opacity: .38;
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
}
.coord--tr { top: 20px; right: 24px; }
.coord--br { bottom: 20px; right: 24px; }
.coord--bl { bottom: 20px; left: 24px; }
@media (max-width: 700px) { .coord { display: none; } }

/* Bladverwijzing: leest als margenotitie op de tekening, maar is een link */
.sheet-ref {
  position: absolute;
  font-family: var(--font-head);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--petrol-700);
  opacity: .55;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity .2s var(--ease-out);
}
.sheet-ref:hover, .sheet-ref:focus-visible { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.sheet-ref .arr { display: inline-block; transition: transform .25s var(--ease-out); }
.sheet-ref:hover .arr { transform: translateX(4px); }
.sheet-ref--br { bottom: 20px; right: 24px; }
.sheet-ref--bl { bottom: 20px; left: 24px; }
@media (max-width: 700px) { .sheet-ref { display: none; } }

/* Revisievakje: decoratieve tekening-annotatie, waarde komt uit main.js */
.rev {
  font-family: var(--font-head);
  font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.14em;
  border: 1px solid currentColor;
  border-radius: 3px;
  padding: 2px 8px;
  white-space: nowrap;
  user-select: none;
}
.rev:empty { display: none; }
.section > .rev {
  position: absolute; bottom: 20px; right: 24px;
  color: var(--petrol-700); opacity: .38;
}
@media (max-width: 700px) { .section > .rev { display: none; } }
.footer-bottom .rev { color: #9DB8B4; opacity: .7; }

/* ---------- Leader line (draws down the margin as you scroll) ---------- */
.leader {
  position: absolute;
  top: 0; bottom: 0;
  left: max(16px, calc((100vw - var(--maxw)) / 2 - 56px));
  width: 2.5px;
  pointer-events: none;
  z-index: 1;
}
.leader::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--petrol-700);
  opacity: .28;
  transform-origin: top;
  transform: scaleY(var(--leader-p, 0));
}
@supports (animation-timeline: scroll()) {
  .leader::before {
    animation: leader-grow linear both;
    animation-timeline: scroll(root);
  }
}
@keyframes leader-grow {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}
@media (max-width: 1279px) { .leader { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 11px 26px;
  border-radius: 8px; border: 1.5px solid transparent;
  font-family: var(--font-head); font-weight: 500; font-size: 16px;
  line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .22s var(--ease-out), border-color .22s var(--ease-out), color .22s var(--ease-out), transform .22s var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn svg { flex: 0 0 auto; }

.btn-primary { background: var(--petrol-700); color: #fff; }
.btn-primary:hover { background: var(--petrol-900); }

.btn-outline { background: transparent; color: var(--petrol-700); border-color: var(--petrol-700); }
.btn-outline:hover { background: rgba(14, 85, 96, 0.07); }
.section--dark .btn-outline { color: #fff; border-color: rgba(255,255,255,.65); }
.section--dark .btn-outline:hover { background: rgba(255,255,255,.09); border-color: #fff; }

.btn-cta { background: var(--amber-600); color: #fff; }
.btn-cta:hover { background: #8C4E03; }

.btn-wa { background: var(--wa-600); color: #fff; }
.btn-wa:hover { background: #0D6B57; }

/* Knop met subregel: hoofdtekst plus het antwoord op de eerste vervolgvraag.
   Alleen op de home-hero en de grote kennismaak-blokken. */
.btn--stack { padding-block: 9px; }
.btn--stack .bt-text { display: flex; flex-direction: column; align-items: center; }
.btn--stack .bt-main { line-height: 1.2; }
.btn--stack .bt-sub {
  margin-top: 3px;
  font-size: 12px; font-weight: 400; line-height: 1.2;
  opacity: .8;
}

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* Link with underline-draw hover */
.link-draw {
  position: relative; text-decoration: none;
  font-family: var(--font-head); font-weight: 500;
  color: var(--petrol-700);
  padding-bottom: 2px;
}
.link-draw::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform .32s var(--ease-fold);
}
.link-draw:hover::after, .link-draw:focus-visible::after { transform: scaleX(1); }
.link-draw .arr { display: inline-block; transition: transform .32s var(--ease-fold); }
.link-draw:hover .arr { transform: translateX(4px); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-bar {
  display: flex; align-items: center; gap: 24px;
  min-height: 76px;
}
.brand {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none; color: var(--ink);
  margin-right: auto;
}
.brand-mark { width: 42px; height: 42px; flex: 0 0 auto; }
/* Wordmark per huisstijl-lockup (560×128): naam 38u op icoon 88u (≈ 0.43×),
   regelafstand 1.0, descriptor 14u (0.37× de naam) met 0.23em spatiëring —
   zo blijft CONSULTANCY breder dan FINANCIAL SERVICES, net als in de lockup */
.brand-text { line-height: 1.04; }
.brand-name {
  font-family: var(--font-head); font-weight: 700; font-size: 17px;
  letter-spacing: 0.026em; text-transform: uppercase;
  color: var(--ink); display: block;
}
.brand-name--light { font-weight: 400; }
.brand-desc {
  font-family: var(--font-head); font-weight: 500; font-size: 7px;
  letter-spacing: 0.23em; text-transform: uppercase;
  color: var(--petrol-700);
  display: block; margin-top: 4px;
}

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; padding: 0; }
.nav-links a {
  position: relative;
  display: inline-block; padding: 10px 12px;
  font-family: var(--font-head); font-weight: 500; font-size: 15.5px;
  color: var(--gray-700); text-decoration: none;
  border-radius: 6px;
}
.nav-links a::after {
  content: "";
  position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px;
  background: var(--petrol-700);
  transform: scaleX(0); transform-origin: left;
  transition: transform .28s var(--ease-fold);
}
.nav-links a:hover { color: var(--petrol-700); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--petrol-700); }
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }

/* Language toggle */
.lang-toggle {
  display: inline-flex; align-items: center;
  border: 1.5px solid var(--border); border-radius: 8px;
  overflow: hidden;
  font-family: var(--font-head); font-size: 13.5px; font-weight: 500;
}
.lang-toggle a, .lang-toggle span {
  padding: 7px 12px; text-decoration: none; color: var(--gray-600);
  line-height: 1;
}
.lang-toggle .is-active {
  background: var(--petrol-700); color: #fff;
}
.lang-toggle a:hover { color: var(--petrol-700); background: var(--surface); }

/* Mobile menu */
.menu-btn {
  display: none;
  width: 48px; height: 48px;
  border: 1.5px solid var(--border); border-radius: 8px;
  background: #fff; cursor: pointer;
  align-items: center; justify-content: center;
  padding: 0;
}
.menu-btn .bars { position: relative; width: 20px; height: 14px; display: block; }
.menu-btn .bars span {
  position: absolute; left: 0; width: 100%; height: 2px;
  background: var(--petrol-700);
  transition: transform .3s var(--ease-fold), opacity .2s;
}
.menu-btn .bars span:nth-child(1) { top: 0; }
.menu-btn .bars span:nth-child(2) { top: 6px; }
.menu-btn .bars span:nth-child(3) { top: 12px; }
.menu-btn[aria-expanded="true"] .bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .bars span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] .bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: absolute; top: 100%; left: 0; right: 0;
  height: calc(100dvh - 76px);
  z-index: 49;
  background: var(--surface) var(--grid-tile);
  border-top: 1px solid var(--border);
  padding: 32px 24px 40px;
  overflow-y: auto;
}
.mobile-menu.is-open { display: block; }
.mobile-menu ul { list-style: none; padding: 0; display: grid; gap: 4px; }
.mobile-menu li {
  opacity: 0; transform: translateY(10px);
}
.mobile-menu.is-open li { animation: mm-in .45s var(--ease-out) forwards; }
.mobile-menu.is-open li:nth-child(2) { animation-delay: .04s; }
.mobile-menu.is-open li:nth-child(3) { animation-delay: .08s; }
.mobile-menu.is-open li:nth-child(4) { animation-delay: .12s; }
.mobile-menu.is-open li:nth-child(5) { animation-delay: .16s; }
.mobile-menu.is-open li:nth-child(6) { animation-delay: .2s; }
.mobile-menu.is-open li:nth-child(7) { animation-delay: .24s; }
@keyframes mm-in { to { opacity: 1; transform: none; } }
.mobile-menu a {
  display: flex; align-items: baseline; gap: 14px;
  font-family: var(--font-head); font-weight: 700; font-size: 28px;
  color: var(--ink); text-decoration: none;
  padding: 12px 4px;
  border-bottom: 1px solid var(--border);
}
.mobile-menu a .idx {
  font-size: 13px; font-weight: 500; color: var(--petrol-700);
  letter-spacing: .1em;
}
.mobile-menu a[aria-current="page"] { color: var(--petrol-700); }
.mobile-menu .mm-actions { margin-top: 28px; display: grid; gap: 12px; }

@media (max-width: 1080px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }
  .brand-desc { display: none; }
  .nav-bar { gap: 12px; }
  .brand { gap: 10px; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-name { font-size: 13.5px; white-space: nowrap; }
  .lang-toggle a, .lang-toggle span { padding: 7px 9px; }
}
@media (min-width: 1081px) {
  .mobile-menu { display: none !important; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--white) var(--grid-tile);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.hero-inner {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6.5fr);
  gap: 48px; align-items: center;
  padding-block: 88px;
}
.hero-copy .lead { margin-top: 22px; margin-bottom: 34px; }
/* Keep the three hero CTAs on a single row at desk width (no fixed button
   widths — huisstijl: EN labels run ~30% longer, so we only trim gap/padding) */
.hero .btn-row { gap: 12px; }
.hero .btn { padding-inline: 20px; }
/* Smallere tweekolomsbreedtes: knoppen iets krapper zodat de rij één regel
   blijft, ook als de hero-kolom richting 415px zakt */
@media (min-width: 960px) and (max-width: 1120px) {
  .hero .btn-row { gap: 6px; }
  .hero .btn { padding-inline: 12px; }
}
/* Voetnoot bij de knoppenrij: leest als terzijde, niet als doorlopende tekst */
.hero-note { margin-top: 26px; margin-bottom: 8px; font-size: 15px; color: var(--gray-700); }
.hero-note a { color: var(--petrol-700); font-weight: 500; text-underline-offset: 3px; }
.hero-note a:hover { color: var(--petrol-900); }
.hero-note .arr { display: inline-block; transition: transform .25s var(--ease-out); }
.hero-note a:hover .arr { transform: translateX(4px); }
.hero-ill { position: relative; }
.hero-ill svg { width: 100%; height: auto; }

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; padding-block: 56px; gap: 40px; }
  .hero-ill { max-width: 560px; }
}

/* ---------- Stats strip ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border); border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.stat {
  padding: 28px 24px;
  border-left: 1px solid var(--border);
}
.stat:first-child { border-left: 0; }
.stat-num {
  font-family: var(--font-head); font-weight: 700; font-size: 36px;
  color: var(--petrol-700); line-height: 1.1;
  letter-spacing: -0.01em;
}
.stat-label { font-size: 14px; color: var(--gray-600); margin-top: 6px; }
@media (max-width: 800px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--border); }
}

/* ---------- Split feature rows ---------- */
.feature-row {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 64px; align-items: center;
}
.feature-row + .feature-row { margin-top: 88px; }
.feature-row--flip { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
.feature-row--flip .feature-ill { order: -1; }
.feature-ill { max-width: 340px; margin-inline: auto; width: 100%; }
.feature-ill svg { width: 100%; height: auto; }
.feature-copy h2, .feature-copy h3 { margin-bottom: 16px; }
.feature-copy p + p { margin-top: 14px; }
.feature-copy .link-draw { display: inline-block; margin-top: 22px; }
@media (max-width: 860px) {
  .feature-row, .feature-row--flip { grid-template-columns: 1fr; gap: 32px; }
  .feature-row--flip .feature-ill { order: 0; }
  .feature-ill { max-width: 240px; margin-inline: 0; }
  .feature-row + .feature-row { margin-top: 64px; }
}

/* Sector tags */
.tag-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; max-width: 60ch; }
.tag {
  font-family: var(--font-head); font-size: 14px; font-weight: 500;
  color: var(--petrol-700);
  border: 1px solid var(--border); border-radius: 6px;
  padding: 6px 14px; background: #fff;
}

/* ---------- Cards (diensten / tips) ---------- */
.card-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .card-grid, .card-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .card-grid, .card-grid--2, .card-grid--4 { grid-template-columns: 1fr; } }

.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 28px;
  display: flex; flex-direction: column; gap: 14px;
  transition: border-color .25s var(--ease-out), transform .25s var(--ease-out);
}
.card:hover { border-color: var(--petrol-700); }
.card .card-ill { width: 96px; height: 96px; margin-bottom: 4px; }
.card .card-ill svg { width: 100%; height: 100%; }
.card h3 { font-size: 20px; }
.card p { font-size: 15.5px; color: var(--gray-700); }
.card .card-idx {
  position: absolute; top: 20px; right: 22px;
  font-family: var(--font-head); font-size: 12px; font-weight: 500;
  letter-spacing: .12em; color: var(--gray-600); opacity: .7;
}

/* Tip cards are buttons */
.tip-card {
  text-align: left; cursor: pointer; width: 100%;
  font: inherit; color: inherit;
}
.tip-card .tip-title {
  font-family: var(--font-head); font-weight: 700; font-size: 20px;
  line-height: 1.3; color: var(--ink); letter-spacing: -0.015em;
  display: block;
}
.tip-card .tip-line { font-size: 15.5px; color: var(--gray-700); display: block; }
.tip-card .tip-open {
  margin-top: auto; padding-top: 6px;
  font-family: var(--font-head); font-weight: 500; font-size: 14.5px;
  color: var(--petrol-700);
  display: inline-flex; align-items: center; gap: 8px;
}
.tip-card .tip-open::after { content: "→"; transition: transform .3s var(--ease-fold); }
.tip-card:hover .tip-open::after { transform: translateX(4px); }

/* Highlight panel (fiscale optimalisatie) */
.highlight-panel {
  border: 1.5px solid var(--petrol-700);
  border-radius: 12px;
  background: #fff;
  padding: 44px 40px;
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 40px; align-items: center;
}
.highlight-panel .hp-badge {
  position: absolute; top: -13px; left: 32px;
  background: var(--amber-600); color: #fff;
  font-family: var(--font-head); font-size: 13px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 14px; border-radius: 4px;
}
@media (max-width: 800px) {
  .highlight-panel { grid-template-columns: 1fr; padding: 36px 24px; }
  .highlight-panel .feature-ill { max-width: 200px; margin: 0; }
}

/* ---------- Werkwijze steps ---------- */
.step-list { display: grid; gap: 0; counter-reset: step; }
.step {
  position: relative;
  display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 24px;
  padding: 36px 0;
}
.step + .step { border-top: 1px solid var(--border); }
.step-no {
  font-family: var(--font-head); font-weight: 700; font-size: 15px;
  color: var(--petrol-700);
  width: 48px; height: 48px; border: 1.5px solid var(--petrol-700); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: #fff;
}
.step h3 { margin-bottom: 10px; }
.step p + p { margin-top: 12px; }
@media (max-width: 640px) {
  .step { grid-template-columns: 1fr; gap: 12px; padding: 28px 0; }
}

/* ---------- EZ ↔ BV segment toggle ---------- */
.seg-toggle {
  position: relative;
  display: inline-grid; grid-template-columns: 1fr 1fr;
  border: 1.5px solid var(--petrol-700);
  border-radius: 10px;
  background: #fff;
  padding: 4px;
  gap: 0;
  isolation: isolate;
}
.seg-toggle::before {
  content: "";
  position: absolute; z-index: 0;
  top: 4px; bottom: 4px; left: 4px;
  width: calc(50% - 4px);
  background: var(--petrol-700);
  border-radius: 7px;
  transition: transform .38s var(--ease-swap);
}
.seg-toggle[data-active="bv"]::before { transform: translateX(100%); }
.seg-toggle button {
  position: relative; z-index: 1;
  font-family: var(--font-head); font-weight: 500; font-size: 15.5px;
  padding: 10px 26px; min-height: 44px;
  background: none; border: 0; cursor: pointer;
  color: var(--petrol-700);
  border-radius: 7px;
  transition: color .3s var(--ease-swap);
  white-space: nowrap;
}
.seg-toggle button[aria-pressed="true"] { color: #fff; }
.seg-wrap { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-block: 8px 44px; }
.seg-note { font-size: 13px; color: var(--gray-600); }
@media (max-width: 480px) {
  .seg-toggle button { padding: 10px 14px; font-size: 14px; }
}

/* Principe-regel tussen toggle en pakketkaarten */
.grid-principle {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  max-width: none; text-align: center;
  font-family: var(--font-head); font-weight: 500; font-size: 17.5px;
  color: var(--petrol-700);
  margin: -18px 0 40px;
}
.grid-principle::before, .grid-principle::after {
  content: ""; flex: 0 0 48px; height: 1px; background: var(--petrol-700); opacity: .5;
}
@media (max-width: 560px) {
  .grid-principle { font-size: 16px; gap: 12px; }
  .grid-principle::before, .grid-principle::after { flex-basis: 24px; }
}

/* Toggle-driven visibility */
[data-mode] .only-bv { display: none; }
[data-mode="bv"] .only-bv { display: block; }
/* kaarten halen hun interne witruimte uit flex-gap; block zou die slopen */
[data-mode="bv"] .card.only-bv { display: flex; }
[data-mode="bv"] .only-ez { display: none; }
li.only-bv, [data-mode="bv"] li.only-bv { display: none; }
[data-mode="bv"] li.only-bv { display: list-item; }
li.only-ez { display: list-item; }
[data-mode="bv"] li.only-ez { display: none; }

.swap-anim { animation: swap-in .45s var(--ease-out); }
@keyframes swap-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* Simple vertical stack */
.stack-20 { display: grid; gap: 20px; }

/* ---------- Jaarplanning diagram ---------- */
.jp-diagram { margin-block: 40px 12px; }
.jp-diagram svg { width: 100%; height: auto; }
@media (max-width: 719px) { .jp-diagram, .jp-legend { display: none; } }
.jp-legend {
  display: flex; gap: 24px; flex-wrap: wrap;
  font-size: 13.5px; color: var(--gray-600); margin-bottom: 40px;
}
.jp-legend span { display: inline-flex; align-items: center; gap: 8px; }
.jp-legend i { width: 14px; height: 2.5px; display: inline-block; }
.jp-legend .l-btw i { background: var(--amber-600); }
.jp-legend .l-reg i { background: var(--petrol-700); }

.jp-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 32px; padding: 0; list-style: none; }
.jp-list li {
  border: 1px solid var(--border); border-radius: 10px;
  background: #fff; padding: 20px 22px;
  font-size: 15px; color: var(--gray-700);
}
.jp-list .jp-month {
  display: block;
  font-family: var(--font-head); font-weight: 700; font-size: 15px;
  color: var(--petrol-700); margin-bottom: 4px;
}
.jp-list li.is-btw { border-left: 3px solid var(--amber-600); }
@media (max-width: 720px) { .jp-list { grid-template-columns: 1fr; } }

/* ---------- Maatlijn met genummerde stappen (werkwijze + overstaproute) ---------- */
/* Wit vlak eronder: op het rasterpatroon valt de dunne maatlijn anders weg,
   terwijl de jaarplanning juist zo goed leest doordat die op wit staat. */
.gauge {
  margin-top: 56px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 34px 36px 38px;
}
.gauge:not(:last-child) { margin-bottom: 48px; }
@media (max-width: 620px) { .gauge { padding: 26px 20px 30px; } }
.gauge-title { font-size: 22px; margin-bottom: 6px; }
.gauge-intro { font-size: 15.5px; color: var(--gray-700); margin-bottom: 26px; max-width: 72ch; }
.gauge-line { height: 1px; background: rgba(14, 85, 96, .32); }
/* zonder introzin ertussen staat de maatlijn anders tegen de kop aan */
.gauge-title + .gauge-line { margin-top: 22px; }
/* tekent zich van links naar rechts, net als de jaarplanning-tijdlijn */
.gauge-line.reveal {
  opacity: 1; transform: scaleX(0); transform-origin: left;
  transition: transform 1.05s var(--ease-draw);
}
.gauge-line.reveal.is-in { transform: scaleX(1); }
.gauge-steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px;
}
.gauge-steps--4 { grid-template-columns: repeat(4, 1fr); }
.gauge-step { position: relative; padding-top: 26px; }
.gauge-step::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 1px; height: 14px; background: var(--petrol-700); opacity: .5;
}
.gauge-step .gs-no {
  display: block; margin-bottom: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: 13px;
  letter-spacing: .12em; color: var(--petrol-700);
  font-variant-numeric: tabular-nums;
}
/* ruimte voor twee regels kop (2 x line-height 1.3), zodat de bodyteksten
   van alle stappen op dezelfde hoogte beginnen */
.gauge-step h3 { font-size: 17px; margin-bottom: 6px; min-height: 2.6em; }
.gauge-step p { font-size: 14.5px; color: var(--gray-700); }
.gauge-step.reveal:nth-child(1) { transition-delay: .05s; }
.gauge-step.reveal:nth-child(2) { transition-delay: .17s; }
.gauge-step.reveal:nth-child(3) { transition-delay: .29s; }
.gauge-step.reveal:nth-child(4) { transition-delay: .41s; }
.gauge-step.reveal:nth-child(5) { transition-delay: .53s; }
.gauge-close { margin-top: 26px; font-family: var(--font-head); font-weight: 500; color: var(--petrol-700); }
/* bescheiden afsluiter onder de kaart: leest als onderschrift, niet als bodytekst */

/* Overstap-regel op de home, direct onder blok 01 */
.switch-note {
  margin-top: 36px; max-width: none;
  background: #fff;
  border: 1px solid var(--border); border-left: 3px solid var(--amber-600);
  border-radius: 10px;
  padding: 18px 22px;
  font-size: 15.5px; color: var(--gray-700);
}
.switch-note a { margin-left: 4px; }
@media (max-width: 1000px) { .gauge-steps, .gauge-steps--4 { grid-template-columns: repeat(2, 1fr); gap: 28px 24px; } }
@media (max-width: 620px) { .gauge-steps, .gauge-steps--4 { grid-template-columns: 1fr; } }

/* Verwijzing van de ene tipkaart naar de andere */
.modal-link {
  border: 0; background: none; padding: 0;
  font: inherit; color: var(--petrol-700); font-weight: 600;
  cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.modal-link:hover { color: var(--petrol-900); }

/* ---------- FAQ-accordeon (contactpagina) ---------- */
/* Wit vlak eronder, net als bij de maatlat: de vragen zijn dunne regels met
   hairlines, en die verdwijnen tegen het rasterpatroon. */
.faq {
  max-width: 880px; margin-inline: auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 32px;
}
@media (max-width: 620px) { .faq { padding: 4px 20px; } }
.faq-item { border-bottom: 1px solid var(--border); }
/* de paneelrand doet de buitenste lijnen; binnen scheiden hairlines de vragen */
.faq-item:last-of-type { border-bottom: 0; }
.faq-item > summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: 34px minmax(0, 1fr) 24px; align-items: start; gap: 12px;
  padding: 20px 0;
  font-family: var(--font-head); font-weight: 500; font-size: 17px; line-height: 1.35;
  color: var(--ink);
  transition: color .2s var(--ease-out);
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary:hover { color: var(--petrol-700); }
.faq-item > summary:focus-visible { outline: 2px solid var(--petrol-700); outline-offset: 3px; border-radius: 4px; }
.faq-no {
  font-size: 12.5px; font-weight: 500; letter-spacing: .1em; color: var(--petrol-700);
  padding-top: 4px; font-variant-numeric: tabular-nums;
}
/* plus dat een min wordt: past bij de hairline-taal van de tekening */
.faq-sign { position: relative; width: 16px; height: 16px; margin-top: 5px; justify-self: end; }
.faq-sign::before, .faq-sign::after {
  content: ""; position: absolute; background: var(--petrol-700);
  transition: transform .28s var(--ease-out), opacity .28s var(--ease-out);
}
.faq-sign::before { top: 7px; left: 0; width: 16px; height: 1.5px; }
.faq-sign::after { left: 7px; top: 0; width: 1.5px; height: 16px; }
.faq-item[open] .faq-sign::after { transform: rotate(90deg); opacity: 0; }
.faq-answer { padding: 0 24px 24px 46px; font-size: 15.5px; color: var(--gray-700); }
.faq-answer p + p { margin-top: 12px; }
@media (max-width: 620px) {
  .faq-item > summary { grid-template-columns: 28px minmax(0, 1fr) 20px; font-size: 16px; }
  .faq-answer { padding-left: 40px; padding-right: 0; }
}

/* ---------- Pricing tiles ---------- */
.price-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  align-items: stretch;
}
@media (max-width: 1080px) { .price-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .price-grid { grid-template-columns: 1fr; } }

.price-tile {
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 30px 26px;
  display: flex; flex-direction: column;
  transition: border-color .25s var(--ease-out);
}
.price-tile:hover { border-color: var(--petrol-700); }
.price-tile--featured { border: 1.5px solid var(--petrol-700); position: relative; }
.price-tile--featured .pt-flag {
  position: absolute; top: -12px; left: 22px;
  background: var(--petrol-700); color: #fff;
  font-family: var(--font-head); font-size: 12px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 3px 12px; border-radius: 4px;
}
.pt-name { font-family: var(--font-head); font-weight: 700; font-size: 20px; }
.pt-name .pt-suffix {
  display: inline-block; color: var(--petrol-700);
  opacity: 0; transform: translateY(4px);
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-out);
}
[data-mode="bv"] .pt-name .pt-suffix { opacity: 1; transform: none; }
.pt-desc { font-size: 14.5px; color: var(--gray-600); margin-top: 10px; min-height: 88px; }
.price { margin-top: 18px; display: flex; align-items: baseline; gap: 6px; min-height: 52px; }
.price .cur { font-family: var(--font-head); font-size: 18px; font-weight: 500; color: var(--petrol-700); }
.price .amt { font-family: var(--font-head); font-size: 40px; font-weight: 700; color: var(--petrol-700); letter-spacing: -0.01em; }
.price .per { font-size: 14px; color: var(--gray-600); }
.price .offerte { font-family: var(--font-head); font-size: 26px; font-weight: 700; color: var(--petrol-700); }
.pt-check-head {
  margin: 24px 0 0;
  font-family: var(--font-head); font-weight: 500;
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--petrol-700);
  max-width: none;
  overflow: hidden;
}
/* hairline vult de rest van de laatste tekstregel, ook als de tekst afbreekt.
   De negatieve marge maakt de opschuif-breedte exact 0, zodat de lijn nooit
   naar een eigen regel kan springen; hij loopt door tot de kaartrand en wordt
   daar door overflow:hidden afgeknipt. */
.pt-check-head::after {
  content: ""; display: inline-block;
  width: 100%; height: 1px;
  margin-left: 10px; margin-right: calc(-100% - 10px);
  background: var(--border);
  vertical-align: .32em;
}
.pt-check { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 9px; font-size: 14px; color: var(--gray-700); }
.pt-check-head + .pt-check { margin-top: 10px; }
.pt-check li { display: grid; grid-template-columns: 18px 1fr; gap: 9px; align-items: start; }
.pt-check li::before {
  content: "";
  width: 16px; height: 16px; margin-top: 3px;
  background: none;
  border-radius: 50%;
  display: inline-block;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='7.25' fill='%23AEE3D8'/%3E%3Cpath d='M4.8 8.2l2.2 2.2 4.2-4.6' fill='none' stroke='%230E5560' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: contain;
}
.pt-check li.only-bv { display: none; }
[data-mode="bv"] .pt-check li.only-bv { display: grid; }
[data-mode="bv"] .pt-check li.only-ez { display: none; }
.price-tile .btn { margin-top: auto; }

/* Pass 2: row-align name / description / price / checklist across tiles.
   Subgrid tracks the tallest cell per row, so NL and EN copy lengths both
   align; the min-heights above remain as the non-subgrid fallback. */
@supports (grid-template-rows: subgrid) {
  .price-tile {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 6;
    row-gap: 0;
    align-content: start;
  }
  .pt-desc, .price { min-height: 0; }
  .price-tile .btn { margin-top: 0; align-self: end; }
}

.price-note { margin-top: 28px; font-size: 13.5px; color: var(--gray-600); max-width: none; }
/* voetnoot bij het sterretje in de vinkjeslijst: kleiner dan de algemene zin.
   Geen eigen max-width, zodat hij op hetzelfde punt afbreekt als de zin
   eronder; het sterretje hangt in de marge zodat vervolgregels uitlijnen. */
.price-footnote {
  margin-top: 24px; max-width: none;
  font-size: 12.5px; color: var(--gray-600);
  padding-left: 1.1em; text-indent: -1.1em;
}
.price-footnote + .price-note { margin-top: 10px; }

/* Extra pricing blocks (salaris / DGA / HR) */
.subprice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 960px) { .subprice-grid { grid-template-columns: 1fr; } }
.subprice {
  background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 30px 28px;
}
.subprice h3 { font-size: 19px; margin-bottom: 12px; }
.subprice p { font-size: 15px; color: var(--gray-700); }
.subprice p + p { margin-top: 10px; }
.subprice ul { margin: 12px 0; padding-left: 0; list-style: none; display: grid; gap: 8px; font-size: 15px; color: var(--gray-700); }
.subprice ul li { position: relative; padding-left: 26px; }
.subprice ul li::before { content: ""; position: absolute; left: 0; top: 11px; width: 14px; height: 1.5px; background: var(--petrol-700); }
.subprice .sp-amount { font-family: var(--font-head); font-weight: 700; color: var(--petrol-700); }
/* € en bedrag zijn één geheel: nooit afbreken tussen symbool en getal */
.sp-amount, .stat-num span { white-space: nowrap; }

/* ---------- Modals (unfolding drawings) ---------- */
dialog.tip-modal {
  border: 1.5px solid var(--petrol-700);
  border-radius: 12px;
  padding: 0;
  width: min(680px, calc(100vw - 32px));
  max-height: min(84vh, 820px);
  background: #fff;
  color: var(--ink);
  margin: auto;
}
dialog.tip-modal::backdrop {
  background: rgba(7, 46, 52, 0.55);
}
dialog.tip-modal[open] {
  animation: modal-unfold .5s var(--ease-fold);
}
dialog.tip-modal[open]::backdrop { animation: backdrop-in .4s ease-out; }
@keyframes modal-unfold {
  0% { opacity: 0; transform: translateY(26px) perspective(1200px) rotateX(-7deg); }
  60% { opacity: 1; }
  100% { opacity: 1; transform: none; }
}
@keyframes backdrop-in { from { opacity: 0; } to { opacity: 1; } }

.modal-head {
  display: flex; align-items: center; gap: 18px;
  padding: 26px 30px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface) var(--grid-tile);
  border-radius: 12px 12px 0 0;
}
.modal-head .mh-ill { width: 64px; height: 64px; flex: 0 0 auto; }
.modal-head .mh-ill svg { width: 100%; height: 100%; }
.modal-head h3 { font-size: 22px; }
.modal-head .mh-sub { font-size: 13.5px; color: var(--gray-600); margin-top: 2px; }
.modal-close {
  margin-left: auto; flex: 0 0 auto;
  width: 44px; height: 44px;
  border: 1.5px solid var(--border); border-radius: 8px; background: #fff;
  cursor: pointer; color: var(--petrol-700);
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color .2s, background-color .2s;
}
.modal-close:hover { border-color: var(--petrol-700); background: var(--surface); }
.modal-copylink { position: relative; }
.modal-copylink + .modal-close { margin-left: 0; }
.modal-copylink.is-copied { border-color: var(--wa-600); color: var(--wa-600); }
.modal-copylink.is-copied::after {
  content: attr(data-done);
  position: absolute; right: 0; top: calc(100% + 8px);
  background: var(--petrol-900); color: #fff;
  font-family: var(--font-head); font-size: 12.5px; font-weight: 500;
  padding: 5px 12px; border-radius: 6px; white-space: nowrap;
  pointer-events: none; z-index: 1;
}
.modal-body {
  padding: 26px 30px 32px;
  overflow-y: auto;
  max-height: calc(84vh - 118px);
  font-size: 15.5px; color: var(--gray-700);
}
.modal-body p + p, .modal-body ul + p, .modal-body p + ul { margin-top: 14px; }
.modal-body ul { padding-left: 0; list-style: none; display: grid; gap: 10px; }
.modal-body ul li { position: relative; padding-left: 26px; }
.modal-body ul li::before { content: ""; position: absolute; left: 0; top: 12px; width: 14px; height: 1.5px; background: var(--petrol-700); }
.modal-body strong { color: var(--ink); }

/* Speech balloon (kostenstructuur) */
.balloon-zone { margin-top: 26px; perspective: 900px; }
.balloon {
  position: relative;
  display: block; width: 100%;
  text-align: left; cursor: pointer;
  border: 0; padding: 0; background: none; font: inherit;
  transform-style: preserve-3d;
  transition: transform .6s var(--ease-fold);
  min-height: 132px;
}
.balloon.is-flipped { transform: rotateX(180deg); }
.balloon .face {
  position: absolute; inset: 0;
  backface-visibility: hidden;
  border-radius: 12px;
  padding: 20px 24px;
  display: flex; flex-direction: column; justify-content: center; gap: 10px;
}
.balloon .face::after {
  content: "";
  position: absolute; left: 34px; bottom: -10px;
  width: 18px; height: 18px;
  transform: rotate(45deg);
  border-radius: 0 0 4px 0;
}
.balloon .face-front { background: var(--mint-200); color: var(--petrol-900); border: 1.5px solid var(--petrol-700); }
.balloon .face-front::after { background: var(--mint-200); border-right: 1.5px solid var(--petrol-700); border-bottom: 1.5px solid var(--petrol-700); }
.balloon .face-back {
  background: var(--petrol-700); color: #fff;
  transform: rotateX(180deg);
}
.balloon .face-back::after { background: var(--petrol-700); }
.balloon .face q { font-family: var(--font-head); font-weight: 500; font-size: 17px; quotes: "‘" "’"; }
.balloon .face .who { font-size: 13px; opacity: .75; }
.balloon .face-back .bb-cta {
  display: inline-flex; align-items: center; gap: 8px;
  align-self: flex-start;
  background: #fff; color: var(--petrol-700);
  font-family: var(--font-head); font-weight: 500; font-size: 14.5px;
  padding: 8px 16px; border-radius: 8px; text-decoration: none;
}
.balloon-hint { font-size: 12.5px; color: var(--gray-600); margin-top: 16px; }

/* ---------- Lead form ---------- */
.form-panel {
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 40px;
}
@media (max-width: 640px) { .form-panel { padding: 28px 20px; } }
.lead-form { display: grid; gap: 20px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .form-grid-2 { grid-template-columns: 1fr; } }
.field { display: grid; gap: 7px; }
.field label {
  font-family: var(--font-head); font-weight: 500; font-size: 14.5px;
  color: var(--ink);
}
.field .optional { color: var(--gray-600); font-weight: 400; font-family: var(--font-body); font-size: 13px; }
/* required marker: amber asterisk on every required field, via CSS only */
.field:has([required]) > label::after {
  content: " *" / "";
  color: var(--amber-600); font-weight: 600;
}
.req-hint { font-size: 13px; color: var(--gray-600); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 16px;
  color: var(--ink);
  border: 1.5px solid var(--border); border-radius: 8px;
  padding: 12px 14px; background: #fff;
  min-height: 48px;
  width: 100%;
  transition: border-color .2s var(--ease-out);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--gray-600); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--petrol-700); outline-offset: 2px; border-color: var(--petrol-700);
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230E5560' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
  padding-right: 40px;
}
.form-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 4px; }
.form-note { font-size: 13px; color: var(--gray-600); }

.pkg-chip {
  display: none;
  align-items: center; gap: 10px;
  border: 1.5px solid var(--petrol-700); border-radius: 8px;
  background: var(--surface);
  font-family: var(--font-head); font-weight: 500; font-size: 14.5px;
  color: var(--petrol-700);
  padding: 9px 14px;
  justify-self: start;
}
.pkg-chip.is-visible { display: inline-flex; }
.pkg-chip button {
  border: 0; background: none; cursor: pointer; color: inherit;
  font-size: 16px; line-height: 1; padding: 2px;
}

/* Success state */
.form-success { display: none; text-align: center; padding: 24px 0 8px; }
.form-success.is-visible { display: block; }
.form-success .fs-ill { width: 96px; margin: 0 auto 18px; }
.form-success h3 { font-size: 24px; margin-bottom: 10px; }
.form-success p { margin-inline: auto; color: var(--gray-700); }
.form-success .fs-status { max-width: 46ch; }
.fs-recap {
  margin: 26px auto 0; max-width: 480px;
  text-align: left;
  background: var(--surface) var(--grid-tile);
  border: 1px solid var(--border); border-radius: 12px;
  padding: 22px 26px;
}
.fs-recap h4 {
  font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--petrol-700); margin-bottom: 14px;
}
.fs-recap dl { margin: 0; display: grid; gap: 12px; }
.fs-recap dt {
  font-family: var(--font-head); font-size: 11.5px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; color: var(--gray-600);
}
.fs-recap dd { margin: 1px 0 0; font-size: 15px; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.fs-recap .fs-note {
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border);
  font-size: 13px; color: var(--gray-600);
}
.lead-form.is-hidden { display: none; }

/* ---------- Aanmeldformulier (blad 09) ---------- */
.signup-wrap { max-width: 760px; margin-inline: auto; }
.signup-form { display: grid; gap: 20px; }
.signup-form.is-hidden { display: none; }
.field-hint { font-size: 13px; color: var(--gray-600); }
.field .ta-2 { min-height: 76px; }
/* zelfde amber-ster als bij [required], voor velden die JS valideert */
.field.is-required > label::after {
  content: " *" / "";
  color: var(--amber-600); font-weight: 600;
}

.check-field { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; align-items: start; }
.check-field input[type="checkbox"] {
  width: 22px; height: 22px; min-height: 0; margin-top: 2px;
  accent-color: var(--petrol-700);
  cursor: pointer;
}
.check-field label {
  font-family: var(--font-body); font-weight: 400; font-size: 15px;
  line-height: 1.55; color: var(--gray-700); cursor: pointer;
}
.check-field label a { color: var(--petrol-700); }
.check-field .field-error { grid-column: 2; }

.sig-box { position: relative; }
.sig-canvas {
  width: 100%; height: 190px; display: block;
  background: #fff;
  border: 1.5px dashed var(--gray-600); border-radius: 8px;
  touch-action: none; cursor: crosshair;
}
.sig-box.is-signed .sig-canvas { border-style: solid; border-color: var(--petrol-700); }
/* schrijflijn, puur visueel (ligt óver het canvas, tekent dus niet mee) */
.sig-box::after {
  content: ""; position: absolute; left: 26px; right: 26px; bottom: 46px;
  height: 1px; background: var(--border); pointer-events: none;
}
.sig-clear {
  position: absolute; top: 10px; right: 10px;
  border: 1px solid var(--border); border-radius: 6px; background: #fff;
  font: 500 13px var(--font-head); color: var(--gray-700);
  padding: 7px 13px; cursor: pointer;
  transition: border-color .2s var(--ease-out), color .2s var(--ease-out);
}
.sig-clear:hover { border-color: var(--gray-600); color: var(--ink); }

/* foutmeldingen */
.field-error { display: none; font-size: 13.5px; color: #A6252C; }
.field.has-error .field-error { display: block; }
.field.has-error input, .field.has-error textarea { border-color: #A6252C; }
.field.has-error .sig-canvas { border-color: #A6252C; }
.form-error {
  display: none;
  border: 1px solid #A6252C; border-left-width: 3px; border-radius: 8px;
  background: #FAF0F0; color: #7C1D22;
  padding: 13px 16px; font-size: 14.5px;
}
.form-error.is-visible { display: block; }

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px;
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.info-panel {
  background: var(--petrol-900);
  color: #E8F1F0;
  border-radius: 12px;
  padding: 40px 36px;
}
.info-panel h3 { color: #fff; margin-bottom: 20px; }
.info-panel dl { display: grid; gap: 14px; margin: 0; }
.info-panel dt {
  font-family: var(--font-head); font-size: 12.5px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .12em; color: var(--mint-300);
}
.info-panel dd { margin: 2px 0 0; font-size: 15.5px; color: #E8F1F0; }
.info-panel a { color: #fff; }
.info-panel .ip-rule { height: 1px; background: rgba(255,255,255,.16); margin-block: 22px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--petrol-900);
  color: #C9DBD8;
  padding: 72px 0 0;
  position: relative;
}
.footer-grid {
  display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 3fr));
  gap: 48px 40px;
  padding-bottom: 56px;
}
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 {
  color: var(--mint-300);
  font-size: 13px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  margin-bottom: 18px;
}
.site-footer ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: #E8F1F0; text-decoration: none; font-size: 15px; }
.site-footer a:hover { color: var(--mint-300); text-decoration: underline; text-underline-offset: 3px; }
.footer-brand .brand-name { color: #F5F8F8; }
.footer-brand .brand-desc { color: var(--mint-300); }
.footer-brand p { font-size: 14.5px; color: #9DB8B4; margin-top: 16px; max-width: 34ch; }
.footer-meta { font-size: 14.5px; display: grid; gap: 8px; color: #C9DBD8; }
.footer-meta strong { color: #fff; font-weight: 600; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14);
  padding: 22px 0;
  font-size: 13.5px; color: #9DB8B4;
}
.footer-bottom .container {
  display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between;
}
.footer-bottom a { color: #C9DBD8; font-size: 13.5px; text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom a:hover { color: var(--mint-300); }

/* ---------- Legal document layout ---------- */
.doc-hero {
  background: var(--surface) var(--grid-tile);
  border-bottom: 1px solid var(--border);
  padding-block: 72px 56px;
  position: relative;
}
.doc-note {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--border); border-radius: 8px; background: #fff;
  font-size: 13.5px; color: var(--gray-600);
  padding: 8px 16px; margin-top: 24px;
}
.doc-note::before { content: ""; width: 8px; height: 8px; background: var(--amber-600); border-radius: 2px; flex: 0 0 auto; }
.doc-layout {
  display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 72px;
  padding-block: 64px 96px;
}
@media (max-width: 900px) { .doc-layout { grid-template-columns: 1fr; gap: 40px; } }
.doc-toc { position: sticky; top: 108px; align-self: start; }
@media (max-width: 900px) { .doc-toc { position: static; } }
.doc-toc h2 {
  font-size: 13px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  color: var(--petrol-700); margin-bottom: 16px;
}
.doc-toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; font-size: 14px; }
.doc-toc a {
  display: flex; gap: 10px; text-decoration: none; color: var(--gray-600);
  padding: 5px 10px; border-left: 2px solid var(--border); border-radius: 0 6px 6px 0;
}
.doc-toc a:hover { color: var(--petrol-700); border-left-color: var(--petrol-700); background: var(--surface); }
.doc-toc .t-no { font-family: var(--font-head); font-weight: 500; color: var(--petrol-700); min-width: 20px; font-size: 13px; }
.doc-body { max-width: 72ch; }
.doc-body > p { color: var(--gray-700); }
.doc-body h2 {
  font-size: 24px; margin: 52px 0 18px;
  padding-top: 28px; border-top: 1px solid var(--border);
  display: flex; gap: 16px; align-items: baseline;
}
.doc-body h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 40px; }
.doc-body h2 .art-no {
  font-size: 14px; font-weight: 500; color: var(--petrol-700);
  letter-spacing: .1em; white-space: nowrap;
}
.doc-body ol.legal { padding-left: 0; counter-reset: lid; list-style: none; display: grid; gap: 12px; }
.doc-body ol.legal > li {
  counter-increment: lid;
  position: relative; padding-left: 44px;
  color: var(--gray-700); font-size: 15.5px;
}
.doc-body ol.legal > li::before {
  content: counter(lid) ".";
  position: absolute; left: 0; top: 2px;
  font-family: var(--font-head); font-weight: 500; color: var(--petrol-700);
  font-size: 14px;
}
.doc-body ul { color: var(--gray-700); font-size: 15.5px; padding-left: 22px; display: grid; gap: 8px; }
.doc-body p + p { margin-top: 14px; }
.doc-updated { font-size: 13.5px; color: var(--gray-600); margin-top: 12px; }

/* ---------- Guide page ---------- */
.swatch-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
@media (max-width: 900px) { .swatch-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .swatch-grid { grid-template-columns: repeat(2, 1fr); } }
.swatch { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: #fff; }
.swatch .sw-color { height: 84px; }
.swatch .sw-meta { padding: 12px 14px; }
.swatch .sw-name { font-family: var(--font-head); font-weight: 500; font-size: 13.5px; }
.swatch .sw-hex { font-size: 12.5px; color: var(--gray-600); font-variant-numeric: tabular-nums; }

.specimen { border: 1px solid var(--border); border-radius: 12px; background: #fff; padding: 36px; display: grid; gap: 24px; }
.specimen .sp-row { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 24px; align-items: baseline; border-top: 1px solid var(--border); padding-top: 20px; }
.specimen .sp-row:first-child { border-top: 0; padding-top: 0; }
.specimen .sp-label { font-size: 12.5px; color: var(--gray-600); letter-spacing: .08em; text-transform: uppercase; }
@media (max-width: 640px) { .specimen .sp-row { grid-template-columns: 1fr; gap: 6px; } }

.tech-list { display: grid; gap: 24px; counter-reset: tech; padding: 0; list-style: none; }
.tech-list > li {
  counter-increment: tech;
  border: 1px solid var(--border); border-radius: 12px; background: #fff;
  padding: 30px 32px;
  display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 22px;
}
.tech-list > li::before {
  content: "0" counter(tech);
  font-family: var(--font-head); font-weight: 700; font-size: 22px;
  color: var(--petrol-700);
  border: 1.5px solid var(--petrol-700); border-radius: 8px;
  width: 52px; height: 52px; display: flex; align-items: center; justify-content: center;
}
.tech-list h3 { margin-bottom: 8px; }
.tech-list p { font-size: 15.5px; color: var(--gray-700); }
.tech-list code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 13.5px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 4px; padding: 1px 6px;
  color: var(--petrol-700);
}
@media (max-width: 560px) { .tech-list > li { grid-template-columns: 1fr; gap: 12px; } }

.site-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .site-links { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .site-links { grid-template-columns: 1fr; } }
.site-link-card {
  border: 1px solid rgba(255,255,255,.22); border-radius: 10px;
  padding: 22px 20px; text-decoration: none;
  display: block;
  transition: border-color .25s var(--ease-out), background-color .25s var(--ease-out);
}
.site-link-card:hover { border-color: var(--mint-300); background: rgba(255,255,255,.05); text-decoration: none; }
.site-link-card .slc-name { font-family: var(--font-head); font-weight: 700; font-size: 18px; color: #fff; display: block; }
.site-link-card .slc-desc { font-size: 13.5px; color: #9DB8B4; margin-top: 6px; display: block; }

/* ---------- Illustration draw-in ---------- */
.ill svg .stroke, .ill svg .plane, .ill svg .amber, .ill svg .label, .ill svg .gdot {
  vector-effect: non-scaling-stroke;
}
.ill svg .stroke {
  fill: none; stroke: var(--petrol-700); stroke-width: 2.5;
  stroke-linecap: round; stroke-linejoin: round;
}
.ill svg .stroke--thin { stroke-width: 1.25; }
.ill svg .plane { fill: var(--mint-200); stroke: none; }
.ill svg .amber { stroke: var(--amber-600); fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.ill svg .amber--fill { fill: var(--amber-600); stroke: none; }
.ill svg .label {
  font-family: var(--font-head); font-weight: 500; font-size: 12px;
  letter-spacing: .12em; text-transform: uppercase;
  fill: var(--petrol-700);
}
.ill svg .gdot { fill: var(--petrol-700); opacity: .22; stroke: none; }
.ill svg .dot { fill: var(--petrol-700); stroke: none; }

/* Logo mark (gefacetteerde driehoek; uitsparingen zijn echte transparantie via mask) */
.brand-mark .lg-a { fill: #0A3F47; }
.brand-mark .lg-b { fill: #17646F; }
.brand-mark .lg-c { fill: #4C99A6; }
.brand--dark .brand-mark .lg-a { fill: var(--mint-300); }
.brand--dark .brand-mark .lg-b { fill: #4C99A6; }
.brand--dark .brand-mark .lg-c { fill: #17646F; }
.section--dark .brand-name { color: #fff; }

/* voorbereiding: tijdens het klaarzetten van de verborgen beginstand staan
   alle transities uit, anders 'ont-tekent' een al zichtbare illustratie
   zich eerst (zichtbaar bij ankerbezoek, waar de tekening al in beeld is
   voordat het script draait) */
.ill.no-anim svg * { transition: none !important; }

/* draw states: JS sets dasharray/offset; .is-drawn transitions to 0 */
.ill.draw svg .stroke, .ill.draw svg .amber {
  transition: stroke-dashoffset 1.1s var(--ease-draw);
}
.ill.draw svg .plane { opacity: 0; transition: opacity .7s var(--ease-out) .75s; }
.ill.draw svg .label { opacity: 0; transition: opacity .5s var(--ease-out) .95s; }
.ill.draw svg .gdot { opacity: 0; transition: opacity .8s var(--ease-out); }
.ill.draw.is-drawn svg .plane { opacity: 1; }
.ill.draw.is-drawn svg .label { opacity: 1; }
.ill.draw.is-drawn svg .gdot { opacity: .22; }

/* Scroll reveal for text blocks */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Mobile rhythm (Pass 2): compress inter-section stretches ---------- */
@media (max-width: 700px) {
  .hero-inner { padding-block: 44px 48px; gap: 32px; }
  .feature-row, .feature-row--flip { gap: 24px; }
  .feature-row + .feature-row { margin-top: 48px; }
  .site-footer { padding-top: 52px; }
  .footer-grid { padding-bottom: 44px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .leader::before { transform: scaleY(1); animation: none; }
}
html.reduced-motion .reveal { opacity: 1; transform: none; }
html.reduced-motion .leader::before { transform: scaleY(1); animation: none; }

/* ---------- Portretten (blad 06 · over ons) ---------- */
.portrait-duo {
  display: grid; grid-template-columns: 1fr 1fr; gap: 44px;
  margin-top: 52px;
}
@media (max-width: 620px) { .portrait-duo { gap: 18px; margin-top: 40px; } }
.portrait-fig { margin: 0; position: relative; }
.portrait-frame { position: relative; }
.portrait-img { display: block; width: 100%; height: auto; }

/* annotaties in maatlijn-stijl: FIG-label + maatstreepje langs de schouderlijn */
.portrait-note {
  margin-top: 12px;
  font-family: var(--font-head); font-size: 11.5px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--petrol-700);
}
.portrait-mark {
  position: absolute; width: 12px; height: 60px; bottom: 9%;
  color: var(--petrol-700); opacity: .55;
}
.portrait-mark path { stroke: currentColor; stroke-width: 1.2; fill: none; }
.portrait-mark--l { left: 2.5%; }
.portrait-mark--r { right: 2.5%; }

/* opbouw: dezelfde rustige fade als elk ander blok (het reveal-patroon);
   de annotaties tekenen zich daarna pas in. JS zet .portraits-anim en
   .is-revealed; zonder animatie (reduced motion) staat alles er direct. */
.portraits-anim .portrait-fig {
  opacity: 0; transform: translateY(22px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.portraits-anim .portrait-fig:nth-child(2) { transition-delay: .12s; }
.portraits-anim.is-revealed .portrait-fig { opacity: 1; transform: none; }
.portraits-anim .portrait-note {
  opacity: 0; transform: translateY(6px);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
}
.portraits-anim .portrait-mark {
  opacity: 0; transform: scaleY(0); transform-origin: top;
  transition: opacity .4s var(--ease-out), transform .6s var(--ease-draw);
}
.portraits-anim.is-revealed .portrait-note { opacity: 1; transform: none; transition-delay: .65s; }
.portraits-anim.is-revealed .portrait-mark { opacity: .55; transform: scaleY(1); transition-delay: .75s; }
.portraits-anim.is-revealed .portrait-fig:nth-child(2) .portrait-note { transition-delay: .8s; }
.portraits-anim.is-revealed .portrait-fig:nth-child(2) .portrait-mark { transition-delay: .9s; }
.portrait-frame picture { display: block; }

/* telefoonnummers nooit afbreken (020 - 369 29 61 blijft een geheel) */
a[href^="tel:"] { white-space: nowrap; }
