/*
 * erp-cloud.nl — stijl volgens het design system van ERP Cloud.
 * Kleuren en maten komen uit src/brand/tokens.json; lettertypen staan op de
 * eigen server, niet bij Google.
 */

@font-face { font-family: 'IBM Plex Sans'; src: url('/fonts/IBMPlexSans-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans'; src: url('/fonts/IBMPlexSans-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans'; src: url('/fonts/IBMPlexSans-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('/fonts/IBMPlexMono-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('/fonts/IBMPlexMono-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }

:root {
  --surface: #f6f6f3;
  --surface-raised: #ffffff;
  --surface-sunken: #ecede8;
  --line: #dcded9;
  --line-strong: #7d868c;
  --ink: #1b1f23;
  --ink-muted: #5a6168;
  --steel: #1d4f6e;
  --steel-deep: #14364c;
  --steel-soft: #e1ebf1;
  --on-steel: #ffffff;
  --signal: #e8641b;
  --signal-ink: #b04a0e;
  --signal-soft: #fbe7da;
  --ok: #276b42;
  --ok-soft: #dff0e5;
  --danger: #b8322a;
  --danger-soft: #f7e0de;
  --focus-ring: #1f78b4;
  --nav-ink: #dfe8ee;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --gutter: 96px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--surface); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--steel); }
a:hover { color: var(--steel-deep); }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
img { display: block; }
.mono { font-family: var(--mono); }
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }
.overline { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 13px; line-height: 16px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.overline::before { content: ''; width: 24px; height: 3px; background: var(--signal); }
.overline--plain::before { display: none; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.02em; }
h1 { font-size: 48px; line-height: 52px; }
h2 { font-size: 36px; line-height: 44px; }
h3 { font-size: 20px; line-height: 28px; letter-spacing: -.01em; }
.lead { margin: 0; font-size: 20px; line-height: 30px; color: var(--ink-muted); max-width: 640px; }
.muted { color: var(--ink-muted); }
p { margin: 0; }

/* Knoppen: hoeken radius-md, nooit pilvormig */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 24px; border-radius: 6px; border: 1px solid var(--line-strong); background: var(--surface-raised); color: var(--ink); font: 500 15px/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--surface-sunken); color: var(--ink); }
.btn--primary { background: var(--steel); border-color: var(--steel); color: var(--on-steel); }
.btn--primary:hover { background: var(--steel-deep); border-color: var(--steel-deep); color: var(--nav-ink); }
.btn--quiet { background: transparent; border-color: transparent; color: var(--steel); }
.btn--quiet:hover { background: var(--steel-soft); color: var(--steel); }
.btn--licht { background: var(--surface-raised); border-color: var(--surface-raised); color: var(--steel); }

/* Kop */
.kop { background: var(--surface-raised); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.kop .wrap { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.merk { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 20px; letter-spacing: -.01em; }
.merk:hover { color: var(--ink); }
.kop nav { display: flex; gap: 28px; font-weight: 500; font-size: 16px; }
.kop nav a { color: var(--ink); text-decoration: none; }
.kop nav a:hover { color: var(--steel); }
.kop__acties { display: flex; gap: 8px; }

/* Hero */
.hero { padding: 88px 0 0; }
.hero__tekst { display: grid; grid-template-columns: 7fr 5fr; gap: 24px 48px; align-items: end; }
.hero__tekst > div:first-child { display: flex; flex-direction: column; gap: 24px; }
.hero__cta { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.hero figure { margin: 56px 0 0; }
.hero__inlog { font-size: 15px; color: var(--ink-muted); }
.hero__inlog .mono { color: var(--ink); }
.hero figcaption { margin-top: 12px; font-size: 13px; color: var(--ink-muted); }

/* Voorbeeldscherm */
.app { display: flex; height: 560px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); box-shadow: 0 8px 24px rgba(20, 32, 44, .14); }
.app__nav { width: 232px; flex: none; background: var(--steel-deep); color: var(--nav-ink); padding: 16px 12px; display: flex; flex-direction: column; gap: 16px; }
.app__merk { display: flex; align-items: center; gap: 8px; padding: 0 8px; color: #fff; font-weight: 600; font-size: 16px; letter-spacing: -.01em; }
.app__omgeving { font-family: var(--mono); font-size: 12px; padding: 6px 8px; border-radius: 3px; background: rgba(255, 255, 255, .08); }
.app__groep { font-size: 11px; line-height: 16px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; opacity: .72; padding: 0 8px 4px; }
.app__nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.app__nav li { height: 34px; display: flex; align-items: center; padding: 0 8px; border-radius: 6px; font-size: 14px; }
.app__nav li.actief { background: rgba(255, 255, 255, .12); color: #fff; font-weight: 500; box-shadow: inset 3px 0 0 var(--signal); }
.app__main { flex: 1; min-width: 0; padding: 24px 32px; display: flex; flex-direction: column; gap: 20px; }
.app__kop { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.app__kruimel { font-size: 13px; color: var(--ink-muted); }
.app__titel { font-size: 28px; line-height: 36px; font-weight: 600; letter-spacing: -.01em; }
.app__knoppen { display: flex; gap: 8px; }
.app__knoppen .btn { min-height: 36px; padding: 0 16px; font-size: 13px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kpi { background: var(--surface-raised); border: 1px solid var(--line); border-radius: 6px; padding: 16px; }
.kpi__label { font-size: 11px; line-height: 16px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.kpi__waarde { font-family: var(--mono); font-size: 28px; line-height: 32px; font-weight: 500; margin-top: 8px; }
.kpi__eenheid { font-size: 15px; color: var(--ink-muted); margin-left: 4px; }
.tabel { background: var(--surface-raised); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.tabel table { width: 100%; border-collapse: collapse; font-size: 13px; }
.tabel th { background: var(--surface-sunken); text-align: left; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); padding: 8px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tabel td { height: 40px; padding: 0 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tabel tr:last-child td { border-bottom: 0; }
.tabel tr.sel td { background: var(--steel-soft); }
.tabel tr.sel td:first-child { box-shadow: inset 3px 0 0 var(--steel); }
.r { text-align: right !important; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; line-height: 20px; font-weight: 500; padding: 0 8px; border-radius: 3px; background: var(--surface-sunken); }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--steel { background: var(--steel-soft); color: var(--steel); }
.badge--signal { background: var(--signal-soft); color: var(--signal-ink); }
.badge--ok { background: var(--ok-soft); color: var(--ok); }
.badge--danger { background: var(--danger-soft); color: var(--danger); }

/* Secties */
.sectie { padding: 96px 0; }
.sectie--wit { background: var(--surface-raised); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sectie--diep { background: var(--steel-deep); color: var(--nav-ink); }
.sectie--diep h2, .sectie--diep h3 { color: #fff; }
.sectie__kop { display: flex; flex-direction: column; gap: 12px; max-width: 780px; margin-bottom: 48px; }
.sectie__kop--los { margin-bottom: 0; }
.sectie__kop p { font-size: 18px; line-height: 28px; color: var(--ink-muted); }
.sectie--diep .sectie__kop p, .sectie--diep .overline { color: var(--nav-ink); }
.raster { display: grid; gap: 24px; }
.raster--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.raster--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kaart { background: var(--surface-raised); border: 1px solid var(--line); border-radius: 10px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.kaart p { color: var(--ink-muted); }
.kaart--grond { background: var(--surface); }
.kaart--diep { background: transparent; border-color: #2b5470; }
.kaart--diep p { color: var(--nav-ink); }
.icoon { width: 40px; height: 40px; border-radius: 6px; background: var(--steel-soft); color: var(--steel); display: flex; align-items: center; justify-content: center; }
.kaart ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 15px; line-height: 22px; }
.kaart .waarde { font-size: 15px; line-height: 22px; }

.twee { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px; align-items: center; }
.twee > div:first-child { display: flex; flex-direction: column; gap: 20px; }
.twee > div:first-child p:not(.overline) { font-size: 18px; line-height: 28px; color: var(--ink-muted); }
.vink { display: flex; gap: 16px; align-items: flex-start; background: var(--surface-raised); border: 1px solid var(--line); border-radius: 10px; padding: 20px 24px; }
.vink + .vink { margin-top: 12px; }
.vink svg { flex: none; margin-top: 2px; color: var(--ok); }
.vink strong { display: block; font-weight: 600; }
.vink span { color: var(--ink-muted); }

.feiten { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 48px; }
.feiten div { border-top: 2px solid var(--steel); padding-top: 20px; display: flex; flex-direction: column; gap: 6px; }
.feiten strong { font-size: 18px; font-weight: 600; }
.feiten span { color: var(--ink-muted); }

.nieuw { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; }
.nieuw__lijst div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.nieuw__lijst .mono { font-size: 14px; color: var(--ink-muted); }

.stap__nr { font-family: var(--mono); font-weight: 500; font-size: 28px; line-height: 32px; color: var(--steel); }
.band { margin-top: 48px; border-radius: 10px; background: var(--steel); color: #fff; padding: 48px 56px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.band h2 { font-size: 32px; line-height: 40px; }
.band p { color: var(--steel-soft); font-size: 18px; margin-top: 8px; }

/* Contact */
.contact { display: grid; grid-template-columns: 5fr 6fr; gap: 48px 96px; }
.contact > div { display: flex; flex-direction: column; gap: 16px; }
.contact > div p { font-size: 18px; line-height: 28px; color: var(--ink-muted); }
form { display: flex; flex-direction: column; gap: 16px; }
.velden { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; line-height: 18px; font-weight: 500; }
input, textarea { width: 100%; font: 400 15px/22px var(--sans); color: var(--ink); background: var(--surface-raised); border: 1px solid var(--line-strong); border-radius: 6px; padding: 8px 12px; }
input { height: 40px; }
textarea { resize: vertical; min-height: 132px; }
.honing { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formvoet { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.formvoet span { font-size: 13px; color: var(--ink-muted); }
.melding { border-radius: 6px; padding: 12px 16px; font-size: 15px; }
.melding--ok { background: var(--ok-soft); color: var(--ok); }
.melding--fout { background: var(--danger-soft); color: var(--danger); }
[hidden] { display: none !important; }

/* Voet */
.voet { background: var(--steel-deep); color: var(--nav-ink); padding: 56px 0; font-size: 15px; }
.voet .wrap { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.voet a { color: var(--nav-ink); }
.voet .merk { color: #fff; }
.voet nav { display: flex; gap: 24px; flex-wrap: wrap; }

/* Smaller */
@media (max-width: 1100px) {
  :root { --gutter: 40px; }
  .kop nav { display: none; }
  .raster--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app__nav { display: none; }
}

@media (max-width: 760px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  h1 { font-size: 36px; line-height: 40px; }
  h2 { font-size: 28px; line-height: 34px; }
  .lead { font-size: 18px; line-height: 28px; }
  .kop .wrap { height: 60px; }
  .kop__acties .btn--quiet { display: none; }
  .hero { padding-top: 48px; }
  .hero__tekst, .twee, .nieuw, .contact, .velden { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .raster--3, .raster--4, .feiten { grid-template-columns: minmax(0, 1fr); }
  .sectie { padding: 64px 0; }
  .app { height: auto; }
  .app__main { padding: 16px; }
  .app__knoppen { display: none; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tabel { overflow-x: auto; }
  .band { flex-direction: column; align-items: flex-start; padding: 32px 24px; }
  .nieuw__lijst div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .formvoet { flex-direction: column; align-items: stretch; }
}
