/* Mijn huis is slim — huisstijl en componenten.
   Tokens komen uit ontwerp/design-system/tokens.css; componenten volgen de prototypes. */

:root {
  --page: #f5f7fb;
  --surface: #ffffff;
  --surface-sunken: #edf2f7;
  --tint: #e5f6fd;
  --ink: #0e1116;
  --body: #5b6472;
  --muted: #6e7686;
  --brand: #18bcf2;
  --brand-soft: #7fd8f7;
  --on-brand: #050505;
  --brand-text: #086a94;
  --action: #0e1116;
  --on-action: #ffffff;
  --spark: #d8fd34;
  --border: #e3e8ee;
  --border-control: #8a93a3;
  --focus-ring: #086a94;
  --success: #127a3e;
  --warning: #a35200;
  --danger: #c81414;
  --chart-2: #4a52de;
  --dark-body: #a6a6a6;
  --dark-ink: #f6f6f6;

  --font-display: "Inter Tight", system-ui, sans-serif;
  --font-accent: "Instrument Serif", Georgia, serif;
  --font-body: "Outfit", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;

  --r-sm: 8px; --r-md: 12px; --r-lg: 20px; --r-xl: 28px; --r-2xl: 36px; --r-full: 999px;

  --shadow-card: 0 16px 40px rgba(43, 48, 80, .13), inset 0 0 0 1px var(--border);
  --shadow-card-hover: 0 18px 50px rgba(43, 48, 80, .18), inset 0 0 0 1px var(--border);
  --shadow-float: 0 18px 50px rgba(43, 48, 80, .13), inset 0 0 0 1px var(--border);
  --shadow-cta: 0 8px 24px -10px rgba(14, 17, 22, .5);
  --ring: inset 0 0 0 1px var(--border);

  --content-max: 1260px;
  --gutter: clamp(16px, 4vw, 48px);
  --section-y: clamp(48px, 8vw, 120px);
}

/* Basis ------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--body); font: 400 16px/24px var(--font-body); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.025em; color: var(--ink); hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
p { margin: 0; }
a { color: var(--brand-text); }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
img, svg { max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font-family: inherit; }
strong { color: var(--ink); font-weight: 600; }

.accent { font-family: var(--font-accent); font-style: italic; font-weight: 400; letter-spacing: 0; color: var(--brand-text); font-size: 1.05em; }
.eyebrow { margin: 0 0 12px; font-size: 14px; line-height: 18px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-text); }
.h2 { font-size: clamp(32px, 4.2vw, 48px); line-height: 1.06; margin: 0 0 16px; }
.lead { font-size: 20px; line-height: 30px; color: var(--body); }
.small { font-size: 14px; line-height: 20px; }
.hint { margin: 0; font-size: 13px; line-height: 18px; color: var(--muted); }
.ink { color: var(--ink); }
.nowrap { white-space: nowrap; }
.text-center { text-align: center; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 12px 20px; border-radius: var(--r-full); background: var(--ink); color: #fff; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 16px; color: #fff; }

.container { max-width: var(--content-max); margin-inline: auto; }

/* Knoppen ---------------------------------------------------------------- */

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: 48px; padding: 0 30px; border: 0; border-radius: var(--r-full);
  background: var(--action); color: var(--on-action); box-shadow: var(--shadow-cta); cursor: pointer; text-decoration: none; white-space: nowrap;
  font: 700 14px/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase; transition: transform .15s ease-out, background-color .15s ease-out, box-shadow .15s ease-out; }
.btn:hover { transform: translateY(-1px); color: var(--on-action); }
.btn--secondary { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--border-control); }
.btn--secondary:hover { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--brand { background: var(--brand); color: var(--on-brand); box-shadow: 0 0 27px -2px rgba(24, 188, 242, .31), inset 0 1.5px 0 rgba(255, 255, 255, .5); }
.btn--brand:hover { background: var(--brand-soft); color: var(--on-brand); }
.btn--ghost-dark { background: transparent; color: var(--dark-ink); box-shadow: inset 0 0 0 1.5px #6b6b6b; }
.btn--ghost-dark:hover { color: #fff; box-shadow: inset 0 0 0 1.5px var(--dark-ink); }
.btn--md { height: 44px; padding: 0 24px; gap: 10px; }
.btn--sm { height: 40px; padding: 0 20px; }
.btn--xs { height: 40px; padding: 0 16px; }
.btn--block { align-self: stretch; width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.btn-row--start { justify-content: flex-start; }
.btn--start { align-self: flex-start; }
.detail-title { margin-bottom: 8px; }
.detail-text { font-size: 15px; line-height: 22px; }
.mt-4 { margin-top: 4px; margin-bottom: 12px; }
.panel__head h1 { margin-bottom: 8px; }
.btn-stack { display: flex; flex-direction: column; gap: 8px; }
.link-button { padding: 0; border: 0; background: none; color: var(--brand-text); font: inherit; text-decoration: underline; cursor: pointer; }
.link-button:hover { color: var(--ink); }

/* Pillen, labels en status ------------------------------------------------ */

.pill { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px; border-radius: var(--r-full); background: var(--surface); color: var(--ink);
  box-shadow: var(--ring); font-size: 14px; font-weight: 500; line-height: 1; white-space: nowrap; }
.pill--tint { background: var(--tint); color: var(--brand-text); box-shadow: none; }
.pill--warning { color: var(--warning); }
.pill__dot { width: 8px; height: 8px; flex: none; border-radius: var(--r-full); background: var(--spark); box-shadow: 0 0 0 3px var(--surface), 0 0 0 4px var(--border-control); }
.pill--warning .pill__dot { background: var(--warning); box-shadow: none; }
.label-stop { display: inline-flex; align-items: center; align-self: flex-start; gap: 8px; height: 28px; padding: 0 12px; border-radius: var(--r-full); background: var(--spark); color: var(--on-brand);
  font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.badge { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: var(--r-full); font-size: 13px; font-weight: 600; white-space: nowrap; }
.badge--tint { background: var(--tint); color: var(--brand-text); }
.badge--ink { background: var(--ink); color: #fff; }
.tag-chip { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: var(--r-full); background: var(--tint); color: var(--brand-text); font-size: 13px; font-weight: 500; text-decoration: none; }
.tag-chip:hover { color: var(--ink); }

.status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; line-height: 18px; color: var(--status-fg, var(--body)); white-space: nowrap; }
.status::before { content: ""; width: 8px; height: 8px; flex: none; border-radius: var(--r-full); background: var(--status-dot, currentColor); }
.status--success { --status-fg: var(--success); --status-dot: var(--success); }
.status--info { --status-fg: var(--brand-text); --status-dot: var(--brand); }
.status--warning { --status-fg: var(--warning); --status-dot: var(--warning); }
.status--danger { --status-fg: var(--danger); --status-dot: var(--danger); }
.status--muted { --status-fg: var(--muted); --status-dot: var(--border-control); }
.status--lg { font-size: 14px; }
.state-pill { height: 44px; padding: 0 18px; border-radius: var(--r-full); background: var(--surface); font-size: 14px; font-weight: 600; gap: 8px; }
.chip-status { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px; align-self: flex-start; border-radius: var(--r-full); background: var(--surface-sunken); font-size: 13px; font-weight: 500; }

/* Logo ------------------------------------------------------------------- */

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; min-width: 0; }
.logo svg { flex: none; }
.wordmark { font-family: var(--font-display); font-size: 18px; font-weight: 500; letter-spacing: -0.02em; color: var(--body); white-space: nowrap; }
.wordmark b { font-weight: 700; color: var(--ink); }
.wordmark i { font-family: var(--font-accent); font-style: italic; font-weight: 400; letter-spacing: 0; color: var(--brand-text); font-size: 1.22em; }

/* Klantenstopbanner ------------------------------------------------------ */

.stopbanner { background: var(--ink); color: var(--dark-ink); padding: 14px var(--gutter); }
.stopbanner__inner { max-width: var(--content-max); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: center; text-align: center; font-size: 15px; line-height: 22px; }
.stopbanner__datum { color: var(--dark-body); }
.stopbanner .label-stop { align-self: center; }

/* Publieke navigatie ----------------------------------------------------- */

.site-header { position: relative; z-index: 20; padding: 24px var(--gutter) 0; display: flex; justify-content: center; }
.nav { position: relative; width: 100%; max-width: var(--content-max); display: flex; align-items: center; gap: 24px; height: 76px; padding: 0 14px 0 28px; border-radius: var(--r-full); background: var(--surface); box-shadow: var(--shadow-float); }
.nav__links { display: flex; gap: 32px; margin: 0 auto; padding: 0; list-style: none; }
.nav__links a { font-size: 15px; font-weight: 500; color: var(--muted); text-decoration: none; }
.nav__links a:hover, .nav__links a[aria-current] { color: var(--ink); }
.nav__actions { display: flex; gap: 8px; margin-left: auto; align-items: center; }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--r-full); background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--border-control); cursor: pointer; place-items: center; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }
.mobile-menu { position: absolute; top: calc(100% + 8px); left: var(--gutter); right: var(--gutter); padding: 12px; border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-float); }
.mobile-menu[hidden] { display: none; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mobile-menu a:not(.btn) { display: flex; align-items: center; height: 48px; padding: 0 16px; border-radius: var(--r-full); color: var(--ink); font-weight: 500; text-decoration: none; }
.mobile-menu a:not(.btn):hover, .mobile-menu a[aria-current] { background: var(--tint); }
.mobile-menu .btn-stack { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--border); }

@media (max-width: 900px) {
  .nav__links, .hide-sm { display: none !important; }
  .menu-toggle { display: grid; }
}
@media (min-width: 901px) {
  .mobile-menu { display: none !important; }
}
@media (max-width: 600px) {
  .nav { padding: 0 10px 0 18px; gap: 12px; height: 68px; }
  .hide-xs { display: none !important; }
  .wordmark { font-size: 16px; }
}

/* Hero ------------------------------------------------------------------- */

.hero { position: relative; padding: clamp(64px, 9vw, 120px) var(--gutter) clamp(48px, 7vw, 96px); text-align: center;
  background: radial-gradient(ellipse 60% 55% at 50% 30%, rgba(24, 188, 242, .16) 0%, rgba(24, 188, 242, 0) 70%); }
.hero__inner { max-width: 880px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.hero h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1.04; }
.hero__lead { max-width: 640px; }
.hero__cta { display: flex; flex-direction: column; align-items: center; gap: 24px; margin-top: 8px; }
.hero--blog { padding: clamp(56px, 8vw, 104px) var(--gutter) clamp(40px, 5vw, 64px); }
.hero--blog .hero__inner { max-width: 800px; }
.hero--blog h1 { font-size: clamp(40px, 6vw, 68px); }
.hero--blog .hero__lead { max-width: 600px; }

/* Entity-tegels ---------------------------------------------------------- */

.tiles { max-width: var(--content-max); margin: clamp(48px, 6vw, 80px) auto 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 20px; text-align: left; }
.entity { background: var(--surface); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow-card); display: grid; gap: 12px; align-content: start; }
.entity__top { display: flex; justify-content: space-between; align-items: center; }
.entity__name { font-size: 14px; line-height: 20px; color: var(--muted); }
.entity__value { font-family: var(--font-display); font-size: 36px; line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.entity__value--lg { font-size: 40px; }
.entity__value small, .stat__value small { font-size: 18px; font-weight: 600; color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.entity__sub { font-size: 15px; line-height: 22px; }
.entity__id { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.icon-disc { width: 40px; height: 40px; flex: none; border-radius: var(--r-full); background: var(--tint); color: var(--brand-text); display: grid; place-items: center; }
.icon-disc--on { background: var(--brand); color: var(--on-brand); }
.icon-disc--lg { width: 44px; height: 44px; }
.icon-disc--warn { width: 36px; height: 36px; background: var(--surface-sunken); color: var(--warning); }

/* Secties ---------------------------------------------------------------- */

.section { padding: var(--section-y) var(--gutter); }
.section--top-only { padding-bottom: 0; }
.section--x-only { padding-block: 0; }
.section--flush-top { padding-top: 0; }
.h2--flush { margin: 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }

.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.card { background: var(--surface); border-radius: var(--r-xl); padding: 32px; box-shadow: var(--shadow-card); }
.card h3 { margin: 0 0 12px; font-size: 22px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }
.card > .icon-disc { margin-bottom: 20px; }
.ticks { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li, .bullets li { display: flex; gap: 12px; }
.ticks li { font-size: 15px; line-height: 22px; }
.ticks li::before, .bullets li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: var(--r-full); background: var(--tint);
  box-shadow: inset 0 0 0 5px var(--tint), inset 0 0 0 9px var(--brand); }
.bullets { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 12px; }
.bullets li::before { margin-top: 3px; }

.slab { max-width: var(--content-max); margin: 0 auto; background: var(--tint); border-radius: var(--r-2xl); padding: clamp(48px, 7vw, 80px) clamp(20px, 4vw, 48px); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 20px; }
.step { display: flex; flex-direction: column; }
.step__num { display: block; margin-bottom: 16px; font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--brand-text); letter-spacing: .04em; }
.step__spacer { flex: 1 1 auto; min-height: 20px; }
.techpills { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 40px; }

.split { max-width: var(--content-max); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.split__intro { flex: 1 1 340px; min-width: 0; }
.split__body { flex: 999 1 560px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 20px; }
.limit { background: var(--surface); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--ring); display: flex; gap: 16px; }
.limit__title { margin: 0 0 4px; font-weight: 600; color: var(--ink); }
.limit__text { font-size: 15px; line-height: 22px; }

.promo { max-width: var(--content-max); margin: 0 auto; display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 64px); align-items: center; }
.promo__text { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.promo__text .eyebrow, .promo__text .h2 { margin: 0; }
.promo__actions { margin-top: 16px; }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 8px; }
.feature__title { margin: 0 0 4px; font-weight: 600; color: var(--ink); }
.feature__text { font-size: 15px; line-height: 22px; }
.promo__visual { flex: 1 1 460px; min-width: 0; background: var(--tint); border-radius: var(--r-2xl); padding: clamp(20px, 3vw, 40px); }
.mock { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-float); overflow: hidden; }
.mock__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px 24px; border-bottom: 1px solid var(--border); }
.mock__title { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--ink); }
.mock__row { display: flex; justify-content: space-between; gap: 16px; padding: 16px 24px; border-bottom: 1px solid var(--border); align-items: center; }
.mock__row:last-child { border-bottom: 0; }
.mock__meta { font-size: 14px; line-height: 20px; color: var(--muted); }
@media (max-width: 520px) { .feature-grid { grid-template-columns: 1fr; } }

.cta { max-width: var(--content-max); margin: 0 auto; background: var(--ink); border-radius: var(--r-2xl); padding: clamp(48px, 7vw, 96px) clamp(20px, 4vw, 48px); text-align: center; }
.cta h2 { margin: 0 0 16px; font-size: clamp(32px, 4.2vw, 48px); line-height: 1.06; color: var(--dark-ink); }
.cta .accent { color: var(--brand); }
.cta p { margin: 0 auto 32px; max-width: 540px; font-size: 20px; line-height: 30px; color: var(--dark-body); }
.cta :focus-visible { outline-color: var(--brand); }

/* Footer ----------------------------------------------------------------- */

.site-footer { padding: 0 var(--gutter) 48px; }
.site-footer__inner { max-width: var(--content-max); margin: 0 auto; padding-top: 32px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
.site-footer__brand { display: flex; flex-direction: column; gap: 8px; max-width: 520px; }
.site-footer__brand .wordmark { font-size: 16px; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 12px 24px; font-size: 14px; line-height: 20px; }

/* Blog ------------------------------------------------------------------- */

.section-bar { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: flex-end; justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 24px; }
.tagfilter { display: flex; flex-wrap: wrap; gap: 8px; }
.tagfilter a { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: var(--r-full); background: var(--surface); color: var(--ink);
  box-shadow: var(--ring); font-size: 14px; font-weight: 500; text-decoration: none; }
.tagfilter a:hover { box-shadow: inset 0 0 0 1px var(--border-control); }
.tagfilter a[aria-current] { background: var(--ink); color: #fff; box-shadow: none; }
.tagfilter__count { font-size: 13px; opacity: .7; }
.postgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 20px; }
.postcard { background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--shadow-card); overflow: hidden; display: flex; flex-direction: column; transition: transform .15s ease-out, box-shadow .15s ease-out; }
.postcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-card-hover); }
.media-placeholder { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; background: var(--tint); text-decoration: none; overflow: hidden; }
.media-placeholder img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media-placeholder__disc { width: 72px; height: 72px; border-radius: var(--r-full); background: var(--brand); color: var(--on-brand); display: grid; place-items: center; }
.media-placeholder__entity { position: absolute; left: 16px; bottom: 14px; font-family: var(--font-mono); font-size: 12px; color: var(--brand-text); }
.postcard__body { padding: 24px 28px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.postcard__meta { font-size: 14px; line-height: 20px; color: var(--muted); }
.postcard h3 { font-size: 21px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }
.title-link { color: var(--ink); text-decoration: none; }
.title-link:hover { color: var(--brand-text); }
.postcard__intro { font-size: 15px; line-height: 22px; }
.postcard__foot { padding: 16px 28px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.more { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--brand-text); transition: gap .15s ease-out; }
.more:hover { gap: 10px; color: var(--ink); }
.empty { padding: 32px; border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--ring); text-align: center; }

.post { padding: clamp(40px, 6vw, 80px) var(--gutter) 0; }
.post__column { max-width: 720px; margin: 0 auto; }
.post__back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 32px; font-size: 15px; font-weight: 500; text-decoration: none; }
.post__head { display: flex; flex-direction: column; gap: 20px; }
.post__head h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.06; }
.post__meta { font-size: 15px; line-height: 22px; color: var(--muted); }
.post__media { margin: 40px 0; border-radius: var(--r-xl); box-shadow: var(--ring); }
.post__media .media-placeholder__disc { width: 88px; height: 88px; }
.post__body { margin-top: 40px; }
.post-end { height: var(--section-y); }
.post__tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); }

.prose { font-size: 18px; line-height: 30px; color: var(--body); }
.prose > * + * { margin-top: 20px; }
.prose h2 { margin-top: 48px; font-size: 30px; line-height: 1.15; }
.prose h3 { margin-top: 36px; font-size: 22px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }
.prose h2 + *, .prose h3 + * { margin-top: 12px; }
.prose ul, .prose ol { padding-left: 24px; }
.prose li + li { margin-top: 6px; }
.prose a { text-underline-offset: 3px; }
.prose em { color: var(--ink); }
.prose code { font-family: var(--font-mono); font-size: .85em; padding: 2px 6px; border-radius: 6px; background: var(--surface-sunken); color: var(--ink); }
.prose pre, .code { margin: 0; padding: 20px 24px; border-radius: var(--r-md); background: var(--surface-sunken); box-shadow: var(--ring); color: var(--ink);
  font-family: var(--font-mono); font-size: 13px; line-height: 20px; overflow-x: auto; white-space: pre; }
.prose :not(pre) > code { overflow-wrap: anywhere; }
.prose pre code { padding: 0; background: none; font-size: inherit; }
.prose blockquote { margin-left: 0; padding-left: 20px; border-left: 3px solid var(--brand); color: var(--ink); }
.prose img { border-radius: var(--r-lg); }
.prose figure { margin: 32px 0; }
.prose figure img { display: block; width: 100%; box-shadow: var(--shadow-card); }
.prose figcaption { margin-top: 12px; font-size: 14px; line-height: 20px; color: var(--muted); text-align: center; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; }
.prose hr { border: 0; border-top: 1px solid var(--border); }

/* Formulieren ------------------------------------------------------------ */

.form { display: flex; flex-direction: column; gap: 20px; }
.form--tight { gap: 16px; }
.form-row-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 20px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 16px; }
.form-grid--sm { grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr)); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .field__label { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink); }
.field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 0 16px; border-radius: var(--r-md); border: 1.5px solid var(--border-control); background: var(--surface);
  font: 16px var(--font-body); color: var(--ink); }
.field textarea { padding: 12px 16px; line-height: 24px; resize: vertical; }
.field select { padding-right: 12px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand-text); }
.field [aria-invalid="true"] { border-color: var(--danger) !important; }
.field input[readonly], .field input[disabled] { background: var(--surface-sunken); color: var(--body); }
.field--compact input:not([type="checkbox"]), .field--compact select { min-height: 44px; padding: 0 14px; }
.field__error { margin: 0; font-size: 13px; line-height: 18px; color: var(--danger); }
.check { display: flex; gap: 12px; align-items: flex-start; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--brand-text); }
.check label, .check__label { font-size: 15px; line-height: 22px; }
.check-row { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.check-row input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--brand-text); }
.check-row__title { display: block; color: var(--ink); font-weight: 500; }
.honeypot { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.captcha { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: var(--r-md); background: var(--surface-sunken); box-shadow: var(--ring); }
.captcha__text { flex: 1; min-width: 0; }
.captcha__title { font-weight: 600; color: var(--ink); }

.alert { padding: 14px 18px; border-radius: var(--r-md); background: var(--surface-sunken); box-shadow: inset 3px 0 0 var(--danger), var(--ring); color: var(--ink); font-size: 15px; line-height: 22px; }
.alert--success { box-shadow: inset 3px 0 0 var(--success), var(--ring); }
.alert--info { box-shadow: inset 3px 0 0 var(--brand), var(--ring); }
.alert ul { margin: 0; padding-left: 18px; }
.flash { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.inline-msg { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }

.notice { display: flex; flex-direction: column; gap: 16px; padding: 24px; border-radius: var(--r-lg); background: var(--surface-sunken); box-shadow: var(--ring); }
.notice__title { font-weight: 600; color: var(--ink); }

/* Account-pagina's (registreren, inloggen) ------------------------------- */

.auth-page { min-height: 100vh; display: flex; flex-direction: column; }
.auth-header { padding: 24px var(--gutter); display: flex; justify-content: space-between; align-items: center; max-width: var(--content-max); width: 100%; margin: 0 auto; gap: 16px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.auth-main { flex: 1; padding: 24px var(--gutter) 64px; display: flex; justify-content: center; }
.auth-grid { width: 100%; max-width: var(--content-max); display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; }
.auth-panel { flex: 1 1 420px; min-width: 0; background: var(--tint); border-radius: var(--r-2xl); padding: clamp(32px, 5vw, 64px); display: flex; flex-direction: column; gap: 20px; }
.auth-panel h1 { font-size: clamp(36px, 4.4vw, 56px); line-height: 1.04; }
.auth-panel .eyebrow { margin: 0; }
.auth-panel .entity { margin-top: auto; max-width: 320px; }
.auth-card { flex: 1 1 420px; min-width: 0; background: var(--surface); border-radius: var(--r-xl); padding: clamp(32px, 5vw, 64px); box-shadow: var(--shadow-card); }
.auth-card h2 { margin: 0 0 8px; font-size: 32px; line-height: 1.1; }
.auth-card__sub { margin: 0 0 32px; }
.auth-footer { padding: 0 var(--gutter) 32px; text-align: center; font-size: 14px; line-height: 20px; }
.qr { display: inline-block; padding: 8px; border-radius: var(--r-md); background: #fff; box-shadow: var(--ring); line-height: 0; }
.secret { font-family: var(--font-mono); font-size: 15px; letter-spacing: .04em; color: var(--ink); word-break: break-all; }

/* App-schil (portaal en beheer) ------------------------------------------ */

.app-header { padding: 24px var(--gutter) 0; }
.app-bar { max-width: var(--content-max); margin: 0 auto; display: flex; align-items: center; gap: 16px; height: 72px; padding: 0 14px 0 24px; border-radius: var(--r-full); background: var(--surface); box-shadow: var(--shadow-float); }
.app-bar .wordmark { font-size: 17px; }
.app-user { margin-left: auto; display: flex; align-items: center; gap: 12px; min-width: 0; }
.app-user__name { font-size: 15px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avatar { width: 40px; height: 40px; flex: none; border-radius: var(--r-full); background: var(--tint); color: var(--brand-text); display: grid; place-items: center; font-weight: 600; }
.avatar--lg { width: 48px; height: 48px; font-size: 18px; font-weight: 700; }
@media (max-width: 640px) {
  .app-bar { padding: 0 10px 0 16px; gap: 10px; height: 64px; }
  .app-bar .wordmark, .app-user__name { display: none; }
}

.app-body { padding: 32px var(--gutter) 64px; }
.app-grid { max-width: var(--content-max); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.sidenav { flex: 1 1 240px; max-width: 100%; background: var(--surface); border-radius: var(--r-xl); padding: 16px; box-shadow: var(--ring); display: flex; flex-direction: column; gap: 4px; }
.sidenav__item { display: flex; align-items: center; gap: 12px; width: 100%; height: 48px; padding: 0 16px; border: 0; border-radius: var(--r-full); background: transparent; cursor: pointer;
  text-align: left; text-decoration: none; font-size: 15px; font-weight: 500; color: var(--body); }
.sidenav__item:hover { color: var(--ink); background: var(--page); }
.sidenav__item[aria-current="page"] { background: var(--tint); color: var(--ink); }
.sidenav__dot { width: 8px; height: 8px; flex: none; border-radius: var(--r-full); background: var(--border); }
.sidenav__item[aria-current="page"] .sidenav__dot { background: var(--brand); }
.sidenav__label { flex: 1; }
.sidenav__count { margin-left: auto; font-size: 13px; color: var(--muted); }
.sidenav hr { width: auto; margin: 8px 4px; border: 0; border-top: 1px solid var(--border); }
.app-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 860px) {
  .sidenav { flex-direction: row; flex-wrap: wrap; gap: 4px; padding: 8px; }
  .sidenav__item { width: auto; height: 40px; padding: 0 14px; }
  .sidenav hr { display: none; }
  .sidenav form { display: contents; }
}

.page-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between; }
.page-head .eyebrow { margin: 0 0 8px; }
.page-title { font-size: clamp(32px, 3.6vw, 44px); line-height: 1.06; }
.page-title--sm { font-size: 36px; }
.page-intro { margin-top: 8px; }

.segmented { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px; align-self: flex-start; background: var(--surface); border-radius: var(--r-full); box-shadow: var(--ring); }
.segmented a { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: var(--r-full); font-size: 14px; font-weight: 500; color: var(--body); text-decoration: none; }
.segmented a:hover { color: var(--ink); }
.segmented a[aria-current] { background: var(--ink); color: #fff; }

.callout { background: var(--tint); border-radius: var(--r-xl); padding: 24px 28px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.callout__main { display: flex; gap: 16px; align-items: center; min-width: 0; }
.callout__title { font-weight: 600; color: var(--ink); }
.callout__text { font-size: 15px; line-height: 22px; }
.callout--sm { border-radius: var(--r-lg); padding: 16px 20px; gap: 12px 20px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 20px; }
.stats--sm { grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); }
.stat { background: var(--surface); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow-card); }
.stat--flat { box-shadow: var(--ring); }
.stat__label { margin: 0 0 8px; font-size: 14px; line-height: 20px; color: var(--muted); }
.stat__value { font-family: var(--font-display); font-size: 40px; line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.stat--flat .stat__value { font-size: 36px; }
.stat--brand { background: var(--brand); color: var(--on-brand); box-shadow: none; }
.stat--brand .stat__label, .stat--brand .stat__value { color: var(--on-brand); }
.stat--brand .stat__value { font-size: 28px; line-height: 1.15; }
.stat__sub { margin-top: 4px; font-size: 14px; line-height: 20px; }

.panel { background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--shadow-card); overflow: hidden; }
.panel--flat { box-shadow: var(--ring); }
.panel--pad { padding: 32px; display: flex; flex-direction: column; gap: 16px; overflow: visible; }
.panel--pad-sm { padding: 24px 28px; }
.panel h2 { font-size: 22px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }
.panel__head { padding: 32px 32px 16px; }
.panel--tint { background: var(--tint); box-shadow: none; }
@media (max-width: 520px) { .panel--pad { padding: 24px 20px; } }

.cards-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 20px; align-items: start; }
.cards-auto--lg { grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); }
.row-between { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.flex-panels { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.flex-panels > * { flex: 1 1 360px; min-width: 0; }

/* Tabellen (grid) -------------------------------------------------------- */

.table-scroll { overflow-x: auto; }
.table { min-width: var(--min, 720px); }
.table__head, .table__row, .table__item > summary { display: grid; grid-template-columns: var(--cols); gap: var(--gap, 16px); align-items: center; padding: 16px 24px; border-bottom: 1px solid var(--border); }
.table__head { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.table__row { font-size: 15px; color: var(--body); text-decoration: none; }
.table--wide-pad .table__head, .table--wide-pad .table__row { padding-inline: 32px; }
.table--tight .table__row { padding-block: 14px; }
a.table__row:hover, .table__item > summary:hover { background: var(--page); color: var(--body); }
a.table__row[aria-current] { background: var(--tint); }
.table__item > summary { list-style: none; cursor: pointer; font-size: 15px; border-bottom: 0; }
.table__item > summary::-webkit-details-marker { display: none; }
.table__item { border-bottom: 1px solid var(--border); }
.table__detail { padding: 0 24px 24px 190px; display: flex; flex-wrap: wrap; gap: 20px; }
.table__detail > * { flex: 1 1 280px; min-width: 0; }
.table__empty { padding: 24px; }
@media (max-width: 760px) { .table__detail { padding-left: 24px; } }
.cell-strong { font-weight: 600; color: var(--ink); }
.table__row:target, .table__item:target > summary { background: var(--tint); }
.table__row, .table__item { scroll-margin-top: 24px; }
.factuur-link { text-decoration: underline; text-underline-offset: 3px; color: var(--brand-text); }
.factuur-link:hover { color: var(--ink); }
.factuur-regels { padding: 4px 32px 24px; }
.regels { list-style: none; margin: 0; padding: 0; border-radius: var(--r-md); background: var(--page); box-shadow: var(--ring); }
.regel { display: grid; grid-template-columns: 110px minmax(0, 1fr) 120px 70px 100px; gap: 16px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--border); font-size: 15px; }
.regel:last-child { border-bottom: 0; }
.regel__titel { font-weight: 600; text-decoration: none; }
.regel__titel:hover { text-decoration: underline; }
.regel__bedrag { text-align: right; }
.regel--totaal { font-weight: 600; color: var(--ink); background: var(--surface); border-radius: 0 0 var(--r-md) var(--r-md); }
.cell-mono { font-family: var(--font-mono); font-size: 13px; color: var(--ink); }
.cell-sub { display: block; font-size: 13px; line-height: 18px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.cell-end { display: flex; justify-content: flex-end; gap: 8px; }
.chev { display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--r-full); background: var(--surface-sunken); color: var(--ink); transition: transform .15s ease-out; }
details[open] > summary .chev { transform: rotate(180deg); }
.download { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; text-decoration: none; }

/* Uitklapblokken (gegevens) ---------------------------------------------- */

.accordion { border-top: 1px solid var(--border); }
.accordion details { border-bottom: 1px solid var(--border); }
.accordion summary { cursor: pointer; padding: 12px 0; font-weight: 600; color: var(--ink); }
.accordion ol, .accordion ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 15px; line-height: 22px; }
.accordion .after { margin: 8px 0 12px; font-size: 15px; line-height: 22px; }
.accordion .after.hint { font-size: 13px; line-height: 18px; }

/* To-do's ---------------------------------------------------------------- */

.todo-form { background: var(--tint); border-radius: var(--r-xl); padding: 28px; display: flex; flex-wrap: wrap; gap: 24px; }
.todo-form__main { flex: 999 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.tipbox { flex: 1 1 260px; align-self: flex-start; background: var(--surface); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--ring); }
.tipbox ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 15px; line-height: 22px; }
.todo { padding: 20px 24px; border-radius: var(--r-lg); box-shadow: var(--ring); display: flex; flex-direction: column; gap: 12px; }
.todo__head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.todo__title { color: var(--ink); font-weight: 600; }
.todo__meta { font-size: 14px; line-height: 20px; color: var(--muted); }
.todo__desc { font-size: 15px; line-height: 22px; white-space: pre-line; }
.todo__keuze { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; padding-top: 4px; }
.todo__keuze .detail-text { flex: 1 1 300px; }
.todo { scroll-margin-top: 24px; }
.todo:target { box-shadow: inset 0 0 0 2px var(--brand); }
.schatting { margin: 4px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 12px; }
.schatting__deel { padding: 14px 18px; border-radius: var(--r-md); background: var(--tint); }
.schatting dt { font-size: 13px; line-height: 18px; color: var(--brand-text); font-weight: 600; }
.schatting dd { margin: 4px 0 0; font-family: var(--font-display); font-size: 24px; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.schatting dd small { margin-left: 4px; font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.schatting dd.schatting__sub { margin-top: 2px; font-family: var(--font-body); font-size: 13px; line-height: 18px; font-weight: 400; letter-spacing: 0; color: var(--body); }

.expand { background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--shadow-card); overflow: hidden; }
.expand > summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; padding: 20px 28px; }
.expand > summary::-webkit-details-marker { display: none; }
.expand__title { display: block; font-family: var(--font-display); font-size: 19px; line-height: 1.3; font-weight: 600; color: var(--ink); }
.expand__meta { display: block; font-size: 14px; line-height: 20px; color: var(--muted); }
.expand__body { padding: 0 28px 24px; display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }

/* Beheer ----------------------------------------------------------------- */

.dl { margin: 0; display: grid; gap: 10px; font-size: 15px; line-height: 22px; }
.dl > div { display: flex; justify-content: space-between; gap: 12px; }
.dl dd { margin: 0; color: var(--ink); text-align: right; }
.form-inline { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.switch { appearance: none; -webkit-appearance: none; position: relative; flex: none; width: 76px; height: 44px; margin: 0; border-radius: var(--r-full); cursor: pointer;
  background: var(--surface-sunken); box-shadow: inset 0 0 0 1.5px var(--border-control); transition: background-color .15s ease-out; }
.switch::before { content: ""; position: absolute; top: 4px; left: 4px; width: 36px; height: 36px; border-radius: var(--r-full); background: #fff; box-shadow: 0 2px 6px rgba(14, 17, 22, .25); transition: transform .15s ease-out; }
.switch:checked { background: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.switch:checked::before { transform: translateX(32px); background: var(--spark); }
.preview-banner { background: var(--ink); color: var(--dark-ink); border-radius: var(--r-lg); padding: 16px 20px; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; font-size: 15px; line-height: 22px; }
.preview-banner .label-stop { align-self: center; }
.preview-banner__datum { color: var(--dark-body); }
.list { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 15px; line-height: 22px; }
.secret-box { display: grid; gap: 12px; padding: 20px; border-radius: var(--r-md); background: var(--surface-sunken); box-shadow: var(--ring); }
.secret-box dd { margin: 0; font-family: var(--font-mono); font-size: 14px; color: var(--ink); word-break: break-all; }
.secret-box dt { font-size: 13px; color: var(--muted); }

/* Dialoog ---------------------------------------------------------------- */

.modal { width: min(480px, calc(100% - 32px)); padding: 32px; border: 0; border-radius: var(--r-xl); background: var(--surface); color: var(--body); box-shadow: var(--shadow-float); }
.modal::backdrop { background: rgba(14, 17, 22, .45); }
.modal h2 { font-size: 24px; line-height: 1.2; margin-bottom: 8px; }

/* Hulpklassen */
.block { display: block; }
.min-0 { min-width: 0; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.nowrap-row { flex-wrap: nowrap; }
.grow { flex: 999 1 320px; min-width: 0; }
.side { flex: 1 1 220px; }
.search { flex: 0 1 300px; }
.panel--narrow { max-width: 560px; }
.flex-panels > .panel--grow { flex: 999 1 520px; }
.flex-panels > .klantkaart { flex: 1 1 300px; padding: 28px; }
.switch-label { display: block; font-family: var(--font-display); font-size: 22px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
