:root {
  --ink: #16201b; --ink-2: #2a362f; --paper: #fff; --sage: #f3f5f2; --line: #e2e7e1; --line-2: #cfd7d0;
  --muted: #66726a; --green: #128a55; --green-d: #0d6b42; --live: #1fbf72; --mint: #e5f3ea;
  --amber: #9a6512; --amber-bg: #fbf2e1; --red: #b23a2a; --red-bg: #fbe9e6;
  --r-lg: 14px; --r: 10px; --r-sm: 7px;
  --font: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); color: var(--ink); background: var(--sage); font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; }
a { color: var(--green-d); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: 26px; font-weight: 700; } h2 { font-size: 18px; font-weight: 650; } h3 { font-size: 15px; font-weight: 650; }
p { margin: 0 0 .8em; }
small, .muted { color: var(--muted); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--green) 45%, transparent); outline-offset: 2px; }

/* ---------- Shell (personeel) ---------- */
.shell { display: grid; grid-template-columns: 228px 1fr; min-height: 100vh; }
.side { background: var(--ink); color: #fff; padding: 22px 14px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; }
.wordmark { font-weight: 800; font-size: 25px; letter-spacing: -.04em; color: #fff; text-decoration: none; padding: 0 10px 22px; display: block; }
.side nav a { display: flex; align-items: center; gap: 10px; color: #c9d2cc; text-decoration: none; padding: 9px 10px; border-radius: var(--r-sm); font-weight: 500; }
.side nav a:hover { background: var(--ink-2); color: #fff; }
.side nav a.on { background: var(--ink-2); color: #fff; }
.side nav a.primary { background: var(--green); color: #fff; margin-bottom: 14px; font-weight: 650; justify-content: center; }
.side nav a.primary:hover { background: var(--green-d); }
.side .foot { margin-top: auto; font-size: 13px; color: #9aa59e; padding: 0 10px; }
.side .foot a { color: #c9d2cc; }
.lang-switch { display: flex; gap: 4px; margin: 10px 0; }
.lang-switch a { padding: 3px 8px; border-radius: 6px; text-decoration: none; color: #9aa59e; border: 1px solid var(--ink-2); font-size: 12px; }
.lang-switch a.on { color: #fff; border-color: #fff; }
.main { padding: 28px 32px 60px; min-width: 0; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h1 { margin: 0; }

/* ---------- Bouwstenen ---------- */
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.panel + .panel { margin-top: 16px; }
.panel h2 { margin-bottom: 12px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.stat b { display: block; font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.stat span { color: var(--muted); font-size: 13px; }

label { display: block; font-weight: 550; font-size: 13.5px; margin: 0 0 5px; }
.field { margin-bottom: 13px; }
input[type=text], input[type=email], input[type=tel], input[type=url], input[type=number], input[type=password], select, textarea {
  width: 100%; font: inherit; color: inherit; padding: 9px 11px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: #fff; }
textarea { min-height: 92px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 3px var(--mint); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row > .grow { flex: 1; min-width: 140px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 650; cursor: pointer;
  border: 1px solid var(--ink); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); text-decoration: none; }
.btn:hover { background: var(--ink-2); }
.btn.green { background: var(--green); border-color: var(--green); } .btn.green:hover { background: var(--green-d); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-2); } .btn.ghost:hover { background: var(--sage); }
.btn.sm { padding: 6px 11px; font-size: 13.5px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

.tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--sage); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap; }
.tag.green { background: var(--mint); color: var(--green-d); border-color: #c6e6d2; }
.tag.amber { background: var(--amber-bg); color: var(--amber); border-color: #f0dcb4; }
.tag.red { background: var(--red-bg); color: var(--red); border-color: #f1c9c2; }
.tag.dark { background: var(--ink); color: #fff; border-color: var(--ink); }

table.list { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
table.list th, table.list td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: middle; }
table.list th { font-size: 12.5px; color: var(--muted); font-weight: 600; background: #fafbf9; }
table.list tr:last-child td { border-bottom: 0; }
table.list td.num, table.list th.num { text-align: right; }
table.list a.rowlink { color: inherit; text-decoration: none; font-weight: 600; }
.empty { padding: 34px; text-align: center; color: var(--muted); }

.notice { padding: 11px 14px; border-radius: var(--r); background: var(--mint); color: var(--green-d); margin-bottom: 16px; font-weight: 500; }
.notice.amber { background: var(--amber-bg); color: var(--amber); }
.notice.red { background: var(--red-bg); color: var(--red); }

/* ---------- Gesprekspaneel ---------- */
.call { display: grid; grid-template-columns: minmax(260px, .9fr) minmax(320px, 1.25fr) 360px; gap: 16px; align-items: start; }
.call .panel { padding: 18px; }
.needs { display: flex; flex-direction: column; gap: 2px; }
.need { display: grid; grid-template-columns: 22px 1fr; gap: 8px; padding: 9px 8px; border-radius: var(--r-sm); cursor: pointer; }
.need:hover { background: var(--sage); }
.need input { margin-top: 3px; accent-color: var(--green); width: 16px; height: 16px; }
.need .lbl { font-weight: 600; font-size: 14px; }
.need .qq { font-size: 13px; color: var(--muted); }
.need.on { background: var(--mint); }
.mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.mods h3 { margin: 16px 0 6px; font-size: 13px; color: var(--muted); font-weight: 600; }
.mods h3:first-child { margin-top: 0; }
.mod { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: start; padding: 11px 10px; border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 7px; background: #fff; }
.mod.on { border-color: var(--green); box-shadow: inset 3px 0 0 var(--green); }
.mod.rec:not(.on) { border-style: dashed; border-color: var(--green); }
.mod input[type=checkbox] { accent-color: var(--green); width: 17px; height: 17px; margin-top: 2px; }
.mod .t { font-weight: 650; font-size: 14.5px; }
.mod .d { font-size: 13px; color: var(--muted); }
.mod .p { text-align: right; font-weight: 650; white-space: nowrap; font-size: 14px; }
.mod .p small { display: block; font-weight: 500; }
.mod .extra { grid-column: 2 / 4; display: none; gap: 8px; margin-top: 6px; }
.mod.on .extra { display: flex; }
.mod .extra input { width: 110px; padding: 6px 8px; }
.rec-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: var(--r); background: var(--mint); margin-bottom: 12px; font-size: 14px; }
.included { margin: 0; padding: 0; list-style: none; font-size: 13.5px; }
.included li { padding: 3px 0 3px 22px; position: relative; }
.included li::before { content: ''; position: absolute; left: 3px; top: 9px; width: 9px; height: 5px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }

/* De bon: het ene opvallende element */
.receipt { position: sticky; top: 20px; background: var(--ink); color: #fff; border-radius: 16px; padding: 22px 22px 20px; }
.receipt .lines { border-bottom: 1px dashed #4a5750; padding-bottom: 12px; margin-bottom: 14px; }
.receipt .ln { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; padding: 3px 0; color: #d6ddd8; }
.receipt .ln b { color: #fff; font-weight: 600; white-space: nowrap; }
.receipt .ln.sub { color: #9aa59e; font-size: 12.5px; padding-top: 0; }
.receipt .ln.disc b { color: var(--live); }
.receipt .today-label { color: #9aa59e; font-size: 13px; }
.receipt .today { font-size: 46px; font-weight: 750; letter-spacing: -.035em; line-height: 1.05; margin: 2px 0 2px; }
.receipt .then { color: #d6ddd8; font-size: 14.5px; margin-bottom: 14px; }
.receipt .then b { color: #fff; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--ink-2); border-radius: 9px; padding: 3px; margin-bottom: 12px; }
.seg button { font: inherit; font-size: 13px; font-weight: 600; border: 0; background: transparent; color: #c9d2cc; padding: 7px 6px; border-radius: 7px; cursor: pointer; }
.seg button.on { background: #fff; color: var(--ink); }
.receipt .ctrl { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; font-size: 13px; color: #c9d2cc; }
.receipt .ctrl input[type=number] { width: 70px; background: var(--ink-2); border-color: #3c4943; color: #fff; padding: 6px 8px; }
.receipt .ctrl input[type=checkbox] { accent-color: var(--live); }
.receipt .warn { background: #3a2f17; color: #f3d48e; font-size: 12.5px; padding: 7px 10px; border-radius: 8px; margin-bottom: 10px; }
.receipt .roi { background: var(--ink-2); border-radius: 10px; padding: 10px 12px; font-size: 13px; color: #d6ddd8; margin-bottom: 12px; }
.receipt .roi b { color: var(--live); }
.receipt .btn.green { width: 100%; padding: 13px; font-size: 15.5px; }
.receipt .linkbox { margin-top: 14px; background: #fff; color: var(--ink); border-radius: 12px; padding: 14px; text-align: center; }
.receipt .linkbox svg { width: 168px; height: 168px; }
.receipt .linkbox input { font-size: 12.5px; text-align: center; margin: 8px 0; }
.receipt .vat { color: #9aa59e; font-size: 12px; }

/* ---------- Publieke pagina's (offerte, login, portaal) ---------- */
.topbar { background: var(--ink); color: #fff; }
.topbar .in { max-width: 1040px; margin: 0 auto; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar .wordmark { padding: 0; font-size: 23px; }
.topbar nav { display: flex; gap: 4px; flex-wrap: wrap; }
.topbar nav a { color: #c9d2cc; text-decoration: none; padding: 7px 11px; border-radius: 7px; font-size: 14.5px; font-weight: 500; }
.topbar nav a.on, .topbar nav a:hover { background: var(--ink-2); color: #fff; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 30px 20px 70px; }
.narrow { max-width: 640px; }
.offer-grid { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; }
.offer-hero { margin-bottom: 22px; }
.offer-hero h1 { font-size: 32px; letter-spacing: -.025em; }
.oline { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.oline:last-child { border-bottom: 0; }
.oline .n { font-weight: 600; }
.oline .n small { display: block; font-weight: 400; }
.oline .a { text-align: right; white-space: nowrap; font-weight: 600; }
.oline .a small { display: block; font-weight: 400; }
.paybox { position: sticky; top: 20px; background: var(--ink); color: #fff; border-radius: 16px; padding: 22px; }
.paybox .today { font-size: 40px; font-weight: 750; letter-spacing: -.03em; line-height: 1.05; }
.paybox .muted, .paybox small { color: #9aa59e; }
.paybox .check { display: grid; grid-template-columns: 20px 1fr; gap: 8px; font-size: 13.5px; color: #d6ddd8; margin: 16px 0; }
.paybox .check input { accent-color: var(--live); width: 16px; height: 16px; margin-top: 2px; }
.paybox .check a { color: #fff; }
.paybox .btn.green { width: 100%; padding: 14px; font-size: 16px; }
.paymethods { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; justify-content: center; }
.paymethods span { font-size: 11.5px; border: 1px solid #3c4943; color: #c9d2cc; padding: 3px 8px; border-radius: 6px; }

.auth { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.auth .box { width: 100%; max-width: 400px; }
.auth .wordmark { color: var(--ink); text-align: center; font-size: 32px; padding-bottom: 18px; }

/* Onboarding: echte volgorde, dus genummerd */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.step { display: grid; grid-template-columns: 38px 1fr auto; gap: 14px; align-items: center; padding: 15px 16px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; margin-bottom: 8px; text-decoration: none; color: inherit; }
.step:hover { border-color: var(--line-2); }
.step .num { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; font-weight: 700; font-size: 14px; color: var(--muted); }
.step.done .num { background: var(--green); border-color: var(--green); color: #fff; }
.step.next { border-color: var(--ink); box-shadow: inset 3px 0 0 var(--ink); }
.step.next .num { border-color: var(--ink); color: var(--ink); }
.step .t { font-weight: 650; }
.step .d { font-size: 13.5px; color: var(--muted); }
.progress { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; margin: 8px 0 20px; }
.progress span { display: block; height: 100%; background: var(--green); border-radius: 99px; }
.meter { height: 10px; background: var(--line); border-radius: 99px; overflow: hidden; margin: 8px 0 6px; }
.meter span { display: block; height: 100%; background: var(--green); }
.meter span.hot { background: var(--amber); }
pre.code { background: var(--ink); color: #d7f5e4; padding: 14px; border-radius: var(--r); overflow-x: auto; font-size: 13px; white-space: pre-wrap; word-break: break-all; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 10px; }
.tabs button { font: inherit; font-size: 13.5px; border: 1px solid var(--line-2); background: #fff; padding: 6px 11px; border-radius: 7px; cursor: pointer; }
.tabs button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.tabpane { display: none; } .tabpane.on { display: block; }
ol.howto { padding-left: 20px; margin: 0 0 12px; } ol.howto li { margin-bottom: 5px; }
.kv { display: grid; grid-template-columns: 170px 1fr; gap: 6px 14px; font-size: 14px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; word-break: break-word; }
.timeline { list-style: none; margin: 0; padding: 0; font-size: 13.5px; }
.timeline li { padding: 6px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 10px; }

@media (max-width: 1180px) {
  .call { grid-template-columns: 1fr 1fr; }
  .call .receipt-col { grid-column: 1 / -1; }
  .receipt { position: static; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px; padding: 12px 16px; }
  .side .wordmark { padding: 0 10px 0 0; }
  .side nav { display: flex; gap: 4px; flex-wrap: wrap; } .side nav a.primary { margin: 0; }
  .side .foot { display: none; }
  .main { padding: 20px 16px 50px; }
  .call, .offer-grid, .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .paybox { position: static; }
  .kv { grid-template-columns: 1fr; }
  .kv dt { margin-top: 6px; }
  table.list { display: block; overflow-x: auto; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
