/* UtilityWise — website stylesheet
   Tokens komen 1-op-1 uit het merkhandboek (tokens.json). Licht en donker zijn
   gelijkwaardig; de site volgt de systeemvoorkeur. */

/* ---------- Lettertypes (zelf gehost, SIL Open Font License) ---------- */
@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/bricolage-grotesque-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/bricolage-grotesque-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  color-scheme: light dark;

  --surface-100: #f6f3ec;
  --surface-200: #ffffff;
  --surface-300: #ebe6da;
  --ink: #10242b;
  --ink-muted: #4a5f66;
  --brand: #0e5a63;
  --brand-hover: #0b4a52;
  --on-brand: #ffffff;
  --brand-tint: #d3e8e8;
  --accent: #f2a900;
  --on-accent: #10242b;
  --positive: #16628f;
  --warning: #8a5a00;
  --negative: #b3261e;
  --hairline: #d5cfc0;
  --border-strong: #66797d;

  /* Donkere band ("Onafhankelijk"): in licht thema ink, in donker thema een verzonken vlak */
  --band-bg: #10242b;
  --band-ink: #eef2ef;
  --band-muted: #a9bcc0;
  --band-brand: #4fc0c8;

  --font-display: "Bricolage Grotesque", "IBM Plex Sans", system-ui, sans-serif;
  --font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-6: 24px; --space-8: 32px; --space-12: 48px; --space-16: 64px;

  --radius-sm: 4px; --radius-md: 8px; --radius-lg: 16px; --radius-xl: 24px;

  --container: 1200px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface-100: #0f1f24;
    --surface-200: #16292f;
    --surface-300: #0b171b;
    --ink: #eef2ef;
    --ink-muted: #a9bcc0;
    --brand: #4fc0c8;
    --brand-hover: #74d0d6;
    --on-brand: #0b171b;
    --brand-tint: #1f4a50;
    --accent: #f5b62b;
    --on-accent: #10242b;
    --positive: #6cb8e8;
    --warning: #f0b44c;
    --negative: #ff8f85;
    --hairline: #2b4249;
    --border-strong: #5b7a82;

    --band-bg: #0b171b;
  }
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--surface-100);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 24px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
p { margin: 0; }
h1, h2, h3 { margin: 0; }
:focus-visible { outline: 2px solid var(--border-strong); outline-offset: 2px; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--surface-200); color: var(--ink); padding: var(--space-2) var(--space-4); z-index: 100; }
.skip-link:focus { left: var(--space-4); top: var(--space-4); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--space-6); }
.mono { font-family: var(--font-mono); }

/* ---------- Typografie ---------- */
.eyebrow { color: var(--brand); font-weight: 600; font-size: 14px; line-height: 20px; margin-bottom: var(--space-4); }
.display { font-family: var(--font-display); font-weight: 800; font-size: 56px; line-height: 60px; letter-spacing: -0.02em; margin-bottom: var(--space-6); }
.h1 { font-family: var(--font-display); font-weight: 800; font-size: 44px; line-height: 50px; letter-spacing: -0.02em; margin-bottom: var(--space-6); max-width: 22em; }
.h2 { font-family: var(--font-display); font-weight: 700; font-size: 32px; line-height: 38px; letter-spacing: -0.01em; margin-bottom: var(--space-8); max-width: 28em; }
.h3 { font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 26px; margin-bottom: var(--space-2); }
.lead { color: var(--ink-muted); font-size: 18px; line-height: 28px; max-width: 34em; margin-bottom: var(--space-8); }
.muted { color: var(--ink-muted); }
.intro { color: var(--ink-muted); max-width: 40em; margin: calc(var(--space-4) * -1) 0 var(--space-8); }
.note { max-width: 44em; padding: var(--space-3) var(--space-4); background: var(--surface-200); border: 1px solid var(--hairline); border-radius: var(--radius-md); color: var(--ink-muted); font-size: 14px; line-height: 20px; }
.note strong { color: var(--ink); }
.data-label { font-family: var(--font-mono); font-size: 14px; line-height: 20px; color: var(--brand); margin-bottom: var(--space-4); }

/* ---------- Knoppen ---------- */
.btn { display: inline-block; padding: 12px 20px; border-radius: var(--radius-md); font-weight: 600; font-size: 16px; line-height: 24px; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: var(--font-sans); }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-hover); }
.btn-secondary { background: transparent; color: var(--brand); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--brand-tint); }
/* Accent is uitsluitend voor "vastzetten" */
.btn-accent { background: var(--accent); color: var(--on-accent); padding: 8px 16px; font-size: 14px; line-height: 20px; white-space: nowrap; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.btn-row.center { justify-content: center; }

/* ---------- Navigatie ---------- */
.site-nav { position: sticky; top: 0; z-index: 10; background: var(--surface-100); border-bottom: 1px solid var(--hairline); }
.site-nav .container { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); padding-top: var(--space-4); padding-bottom: var(--space-4); }
.logo-link { display: inline-block; line-height: 0; }
.logo-link img { height: 32px; width: auto; }
.nav-links { display: flex; gap: var(--space-8); align-items: center; }
.nav-links a { color: var(--ink); text-decoration: none; font-weight: 500; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--brand); }
.nav-links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.nav-menu { display: none; }
.nav-menu summary { list-style: none; cursor: pointer; padding: 8px 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-md); font-weight: 600; }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu-panel { position: absolute; right: var(--space-6); top: 100%; margin-top: var(--space-2); background: var(--surface-200); border: 1px solid var(--hairline); border-radius: var(--radius-md); padding: var(--space-2); display: flex; flex-direction: column; min-width: 220px; }
.nav-menu-panel a { color: var(--ink); text-decoration: none; padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm); }
.nav-menu-panel a:hover { background: var(--brand-tint); }

/* ---------- Secties ---------- */
.section { padding: var(--space-16) 0; }
.section-alt { background: var(--surface-300); }
.section-band { background: var(--band-bg); color: var(--band-ink); }
.page-hero { padding: var(--space-16) 0 var(--space-12); border-bottom: 1px solid var(--hairline); }
.page-hero .lead { margin-bottom: var(--space-6); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-12); align-items: start; }
.split-1-2 { display: grid; grid-template-columns: 1fr 2fr; gap: var(--space-12); align-items: start; }

.card { background: var(--surface-200); border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: var(--space-6); }
.card p { color: var(--ink-muted); }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-4); }

.step { border-top: 2px solid var(--brand); padding-top: var(--space-6); }
.step p { color: var(--ink-muted); }

.list { border-bottom: 1px solid var(--hairline); }
.list-row { display: grid; grid-template-columns: 1fr 2fr auto; gap: var(--space-6); padding: 20px 0; border-top: 1px solid var(--hairline); align-items: start; }
.list-row.two { grid-template-columns: 1fr 1.5fr; }
.list-row p { color: var(--ink-muted); }
.checks p { padding: var(--space-3) 0; border-top: 1px solid var(--hairline); }

.badge { display: inline-block; border-radius: var(--radius-sm); padding: 2px 8px; font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0.02em; white-space: nowrap; background: var(--brand-tint); color: var(--ink); }
.badge-muted { background: var(--surface-300); color: var(--ink-muted); border: 1px solid var(--hairline); padding: 1px 7px; }

.band-eyebrow { color: var(--band-brand); font-weight: 600; font-size: 14px; line-height: 20px; margin-bottom: var(--space-4); }
.band-title { font-family: var(--font-display); font-weight: 700; font-size: 40px; line-height: 44px; letter-spacing: -0.01em; }
.band-text { font-size: 20px; line-height: 30px; margin-bottom: var(--space-4); }
.band-muted { color: var(--band-muted); }

.promo { background: var(--brand-tint); border-radius: var(--radius-xl); padding: var(--space-12); display: flex; justify-content: space-between; align-items: center; gap: var(--space-8); }
.promo .h2 { font-size: 28px; line-height: 34px; margin-bottom: var(--space-3); max-width: 22em; }
.promo p { color: var(--ink); }

.cta { text-align: center; border-top: 1px solid var(--hairline); }
.cta .container { max-width: 720px; }
.cta .h2 { font-weight: 800; font-size: 40px; line-height: 44px; margin: 0 auto var(--space-4); }
.cta .lead { margin: 0 auto var(--space-8); }

/* ---------- Hero met productvoorbeeld ---------- */
.hero { padding: var(--space-16) 0; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--space-12); align-items: center; }
.shot { background: var(--surface-200); border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: var(--space-6); }
.shot-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-4); font-size: 14px; }
.shot-bar strong { font-weight: 600; }
.shot-note { font-size: 12px; line-height: 16px; letter-spacing: 0.02em; color: var(--ink-muted); }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); margin-bottom: var(--space-4); }
.kpi { background: var(--surface-100); border-radius: var(--radius-md); padding: var(--space-3); }
.kpi-label, .kpi-sub { font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.kpi-label { font-weight: 500; }
.kpi-value { font-family: var(--font-mono); font-size: 28px; line-height: 32px; font-weight: 500; margin-top: var(--space-1); }
.table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--hairline); border-radius: var(--radius-md); overflow: hidden; font-size: 13px; line-height: 20px; margin-bottom: var(--space-4); }
.table th, .table td { padding: var(--space-2) 10px; text-align: left; border-top: 1px solid var(--hairline); }
.table thead th { background: var(--surface-300); border-top: 0; color: var(--ink-muted); font-weight: 600; font-size: 12px; }
.table .num { text-align: right; }
.st-pos { color: var(--positive); font-weight: 600; }
.st-warn { color: var(--warning); font-weight: 600; }
.st-open { color: var(--ink-muted); font-weight: 600; }
.clickbar { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); background: var(--brand-tint); border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); font-size: 14px; line-height: 20px; }

/* ---------- Formulier ---------- */
.form-card { background: var(--surface-200); border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: var(--space-8); }
.form { display: flex; flex-direction: column; }
.form label { margin: var(--space-4) 0 6px; font-size: 14px; line-height: 20px; font-weight: 600; }
.form label:first-child { margin-top: 0; }
.form input, .form select, .form textarea { width: 100%; min-height: 44px; padding: 10px 12px; background: var(--surface-200); color: var(--ink); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); font: inherit; }
.form textarea { min-height: 120px; resize: vertical; }
.form .hint { font-size: 12px; line-height: 16px; color: var(--ink-muted); margin: var(--space-4) 0; }
.form .btn { align-self: flex-start; }
.hp { position: absolute; left: -9999px; }

/* ---------- Lopende tekst ---------- */
.prose { max-width: 760px; }
.prose p { margin-bottom: var(--space-8); }
.prose .h3 { margin-top: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface-300); border-top: 1px solid var(--hairline); padding: var(--space-12) 0; }
.site-footer .container { display: flex; justify-content: space-between; gap: var(--space-8); flex-wrap: wrap; }
.site-footer img { height: 28px; width: auto; margin-bottom: var(--space-3); }
.site-footer p { color: var(--ink-muted); font-size: 14px; line-height: 20px; margin-bottom: var(--space-1); }
.footer-meta { text-align: right; }
.footer-meta a { font-size: 14px; line-height: 20px; }

/* ---------- Breakpoints (tablet 991, mobiel 767 / 479) ---------- */
@media (max-width: 991px) {
  .hero-grid, .split, .split-1-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .display { font-size: 44px; line-height: 48px; }
  .nav-links { display: none; }
  .nav-menu { display: block; }
  .site-nav .container { position: relative; }
}
@media (max-width: 767px) {
  .grid-2 { grid-template-columns: 1fr; }
  .list-row, .list-row.two { grid-template-columns: 1fr; gap: var(--space-2); }
  .h1 { font-size: 32px; line-height: 38px; }
  .h2 { font-size: 28px; line-height: 34px; }
  .band-title { font-size: 32px; line-height: 36px; }
  .cta .h2 { font-size: 30px; line-height: 34px; }
  .promo { flex-direction: column; align-items: flex-start; padding: var(--space-8); }
  .footer-meta { text-align: left; }
  .section { padding: var(--space-12) 0; }
  .container { padding: 0 var(--space-4); }
}
@media (max-width: 479px) {
  .display { font-size: 34px; line-height: 38px; }
  .logo-link img { height: 24px; }
  .kpis { grid-template-columns: 1fr; }
  .table .hide-sm { display: none; }
  .clickbar { flex-direction: column; align-items: flex-start; }
  .nav-cta { display: none; }
}

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

.band-link { color: var(--band-brand); }
.cta-plain { border-top: 0; }
.cta .h1 { margin-left: auto; margin-right: auto; }
.table-wrap { overflow-x: auto; margin-bottom: var(--space-4); }
.table-wrap .table { margin-bottom: 0; }
.table td { white-space: nowrap; }
.shot { min-width: 0; }
.hero-grid > * { min-width: 0; }
.section-band { border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
@media (max-width: 479px) {
  .table { font-size: 12px; }
  .table th, .table td { padding: 6px 8px; }
}
