:root {
  --navy: #052552; --steel: #7388aa; --ink: #0a0b0d; --ink2: #3c424b; --dim: #7c828d; --line: #e3e6ea;
  --bg: #f3f4f6; --card: #ffffff; --accent: #1f5fbf; --green: #16a34a; --red: #dc2626; --amber: #f59e0b;
  --bob-ink: #1f2937; --bob-yellow: #fbbf24; --bob-amber: #f59e0b; --surface: #fff; --border: #e3e6ea; --text: #0a0b0d; --text-dim: #7c828d;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 15px/1.55 Inter, system-ui, -apple-system, Segoe UI, sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--accent); }
h1, h2 { font-family: Montserrat, Inter, sans-serif; color: var(--navy); letter-spacing: -.01em; }
h1 { font-size: 1.7rem; margin: 0 0 4px; }
h2 { font-size: 1.15rem; margin: 22px 0 10px; }
.top { padding: 18px 24px; }
.brand img { height: 34px; display: block; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px 40px; }
.wrap.wide { max-width: 1320px; }
.foot { text-align: center; color: var(--dim); font-size: .8rem; padding: 24px 16px 40px; }
.foot a { color: var(--dim); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 26px; box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.card.narrow { max-width: 640px; margin: 0 auto; }
.muted { color: var(--dim); }
.small { font-size: .82rem; }
.err { color: var(--red); font-weight: 500; }
.between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

.hero { display: flex; align-items: flex-end; gap: 16px; margin: 4px 0 18px; }
.hero-bob { flex: none; position: relative; }
.hero-bob .bob-sound { position: absolute; top: -6px; right: -16px; }
.bubble { position: relative; flex: 1; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; margin-bottom: 26px; font-size: 1.02rem; box-shadow: 0 8px 28px rgba(5,37,82,.08); }
.bubble::before { content: ''; position: absolute; left: -9px; bottom: 26px; width: 16px; height: 16px; background: #fff; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); transform: rotate(45deg); }
.bubble p { margin: 0 0 6px; } .bubble p:last-child { margin: 0; }

.grid2 { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 18px; align-items: start; }
form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .88rem; margin: 14px 0 0; color: var(--ink2); }
.opt { font-weight: 400; color: var(--dim); }
input[type=text], input[type=email], input[type=password], input:not([type]), textarea {
  font: inherit; font-weight: 400; padding: 11px 13px; border: 1px solid #c8ccd3; border-radius: 10px; background: #fff; color: var(--ink); width: 100%;
}
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
fieldset { border: 0; padding: 0; margin: 16px 0 0; }
legend { font-weight: 600; font-size: .88rem; color: var(--ink2); margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { margin: 0 !important; flex-direction: row !important; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { padding: 7px 12px; border: 1px solid #c8ccd3; border-radius: 999px; font-weight: 500; font-size: .86rem; transition: all .15s; }
.chip input:checked + span { background: var(--navy); color: #fff; border-color: var(--navy); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); }
label.check { flex-direction: row; align-items: flex-start; gap: 8px; font-weight: 400; }
label.check input { margin-top: 4px; }
.hp { position: absolute; left: -9999px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; padding: 10px 16px; border-radius: 10px; border: 1px solid #c8ccd3; background: #fff; color: var(--ink); cursor: pointer; text-decoration: none; }
.btn:hover { border-color: var(--navy); }
.btn.primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.primary:hover { background: #0b3576; }
.btn.danger { color: var(--red); border-color: #f3b4b4; }
.btn.big { width: 100%; padding: 14px 18px; font-size: 1.02rem; margin-top: 18px; }
.btn:disabled { opacity: .6; cursor: wait; }

.how h2 { margin-top: 0; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 16px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; }
.steps li::before { content: counter(s); grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; background: #e8eef8; color: var(--navy); display: grid; place-items: center; font-weight: 700; }
.steps strong { color: var(--navy); }
.steps span { color: var(--ink2); font-size: .92rem; }

.progress { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 8px; }
.progress li { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; }
.progress .dot { width: 12px; height: 12px; border-radius: 50%; background: #d0d5dd; flex: none; }
.progress .lbl { flex: 1; font-weight: 500; }
.progress .st { color: var(--dim); font-size: .84rem; text-align: right; }
.progress li.bezig { border-color: var(--accent); }
.progress li.bezig .dot { background: var(--accent); animation: pulse 1s ease-in-out infinite; }
.progress li.klaar .dot { background: var(--green); }
.progress li.klaar .st { color: var(--green); }
.progress li.fout { border-color: #f3b4b4; }
.progress li.fout .dot { background: var(--red); }
.progress li.fout .st { color: var(--red); }
@keyframes pulse { 50% { transform: scale(1.4); opacity: .6; } }

.tablewrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tbl th { text-align: left; color: var(--dim); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; padding: 8px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.kv td { padding: 6px 12px 6px 0; vertical-align: top; }
.kv td:first-child { color: var(--dim); white-space: nowrap; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .75rem; font-weight: 600; background: #eef2f6; color: var(--ink2); }
.pill.klaar, .pill.on { background: #dcfce7; color: #166534; }
.pill.bezig, .pill.nieuw { background: #dbeafe; color: #1e40af; }
.pill.fout { background: #fee2e2; color: #991b1b; }
.err-t { color: var(--red); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0; }
.actions form { margin: 0; }
.events { list-style: none; padding: 0; font-size: .85rem; display: grid; gap: 6px; }
code { font-size: .8rem; background: #f3f4f6; padding: 1px 5px; border-radius: 4px; word-break: break-all; }

@media (max-width: 860px) {
  .grid2 { grid-template-columns: 1fr; }
  .row2 { grid-template-columns: 1fr; }
  .hero { flex-direction: column; align-items: center; }
  .bubble { margin-bottom: 0; }
  .bubble::before { left: 50%; top: -9px; bottom: auto; transform: translateX(-50%) rotate(135deg); }
  .card { padding: 18px; }
}
