/* MIJNQRCODE.eu, volgens de huisstijlgids versie 1 (november 2026).
   Alle maten komen uit de tokens hieronder. Een losse px-waarde in een regel is een ontbrekend token. */

/* Space Grotesk, zelf gehost (SIL Open Font License, zie assets/fonts). Geen verbinding met Google nodig. */
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/space-grotesk-latin-400.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/space-grotesk-latin-500.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/space-grotesk-latin-700.woff2") format("woff2"); }

:root {
  /* kleur: merk */
  --marine: #0B1B3F;
  --blue: #2747D8;
  --yellow: #F5C400;
  --white: #FFFFFF;
  --mist: #EEF0F5;

  /* kleur: rollen (koel grijs, dezelfde temperatuur als mist) */
  --ink: var(--marine);
  --marine-hover: #1A2C5C;
  --blue-hover: #1F3BB8;
  --muted: #5A6480;          /* 5,9:1 op wit, 5,2:1 op mist */
  --placeholder: #6B7590;    /* 4,6:1 op wit */
  --field-line: #8A92A6;     /* 3,1:1 op wit: rand van een veld */
  --line: #D8DCE6;
  --line-soft: #E7EAF1;
  --on-dark-muted: #C9CFE0;  /* 10,7:1 op marine */
  --blue-soft: #E3E8FB;
  --blue-glow: rgba(39, 71, 216, .18);
  --green: #1D7A47;
  --green-ink: #145533;
  --green-soft: #E3F3EA;
  --red: #C0352B;
  --red-ink: #8A2219;
  --red-soft: #FBE9E7;

  /* letters: de schaal uit de gids */
  --font: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-display: 64px; --lh-display: 68px;
  --fs-h1: 40px;      --lh-h1: 44px;
  --fs-h2: 28px;      --lh-h2: 34px;
  --fs-h3: 20px;      --lh-h3: 28px;
  --fs-body: 16px;    --lh-body: 24px;
  --fs-small: 14px;   --lh-small: 20px;
  --fs-label: 12px;   --lh-label: 16px;

  /* afstand: stappen van 8, met 4 en 12 voor binnen een groep */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;

  /* hoeken */
  --r-field: 12px;   /* knoppen, velden, kleine vlakken */
  --r-card: 20px;    /* kaarten */
  --r-inner: 8px;    /* binnen een vlak van 12 met 4 rand */
  --r-pill: 99px;

  --focus: 2px solid var(--marine);
  --target: 40px;    /* kleinste klikvlak */
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font: 400 var(--fs-body)/var(--lh-body) var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: var(--focus); outline-offset: 2px; border-radius: 2px; }
img, svg { display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--s4) var(--s8); }

/* ---------- letterschaal ---------- */
h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); font-weight: 700; letter-spacing: -.8px; margin: var(--s2) 0; text-wrap: balance; }
h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); font-weight: 700; letter-spacing: -.4px; margin: 0 0 var(--s4); }
h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: 500; margin: 0 0 var(--s2); }
.card > h2, .card h2.card-title { font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: 500; letter-spacing: 0; margin: 0 0 var(--s4); }
.sub { color: var(--muted); margin: 0 0 var(--s6); word-break: break-word; }
.small:not(button):not(.btn) { font-size: var(--fs-small); line-height: var(--lh-small); color: var(--muted); }
.label {
  font-size: var(--fs-label); line-height: var(--lh-label); font-weight: 500;
  text-transform: uppercase; letter-spacing: .8px; color: var(--muted);
}
.nowrap { white-space: nowrap; }
.num, .tnum { font-variant-numeric: tabular-nums; }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: var(--s3); text-decoration: none; color: var(--marine); }
.logo .mark { width: 30px; height: 30px; flex: none; }
.wordmark { font-weight: 700; font-size: var(--fs-h3); letter-spacing: .2px; line-height: 1; white-space: nowrap; }
.wordmark .tld { color: var(--blue); }
.on-dark, .on-dark .wordmark { color: var(--white); }
.on-dark .wordmark .tld { color: var(--yellow); }

/* ---------- header ---------- */
/* zwevende balk: blijft bovenaan staan terwijl je scrolt */
html { scroll-padding-top: 104px; }
header.top {
  position: sticky; top: var(--s3); z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
  margin: var(--s3) 0 var(--s5); padding: var(--s3) var(--s3) var(--s3) var(--s5); min-height: 64px;
  background: rgba(255, 255, 255, .88); border: 1px solid rgba(11, 27, 63, .06); border-radius: var(--r-card);
  box-shadow: 0 8px 24px rgba(11, 27, 63, .06);
  -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
}
@media (prefers-reduced-motion: no-preference) { header.top { transition: box-shadow .2s; } }
header.top.scrolled { box-shadow: 0 12px 32px rgba(11, 27, 63, .14); }
.menu-btn { display: none; }
nav.top { display: flex; align-items: center; gap: 0 var(--s5); flex-wrap: wrap; justify-content: flex-end; }
nav.top a { color: var(--marine); text-decoration: none; font-size: var(--fs-body); display: inline-flex; align-items: center; min-height: var(--target); }
nav.top a:not(.btn):hover { color: var(--blue); }
nav.top a.on { font-weight: 700; }
nav.top a.btn { color: var(--white); }

/* ---------- knoppen ---------- */
button, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 48px; padding: var(--s3) var(--s5); border-radius: var(--r-field);
  border: 2px solid var(--blue); background: var(--blue); color: var(--white);
  font: 500 var(--fs-body)/20px var(--font); cursor: pointer; text-decoration: none; white-space: nowrap;
}
@media (prefers-reduced-motion: no-preference) {
  button, .btn, .code-card { transition: background .15s, border-color .15s, color .15s, box-shadow .15s; }
}
button:hover, .btn:hover { background: var(--blue-hover); border-color: var(--blue-hover); text-decoration: none; }
button.dark, .btn.dark { background: var(--marine); border-color: var(--marine); }
button.dark:hover, .btn.dark:hover { background: var(--marine-hover); border-color: var(--marine-hover); }
button.ghost, .btn.ghost { background: var(--white); color: var(--marine); border-color: var(--marine); }
button.ghost:hover, .btn.ghost:hover { background: var(--mist); }
button.text, .btn.text {
  background: none; border-color: transparent; color: var(--blue); padding: var(--s3) var(--s2);
  text-decoration: underline; text-underline-offset: 3px;
}
button.text:hover, .btn.text:hover { background: none; border-color: transparent; text-decoration-thickness: 2px; }
button.danger { background: var(--white); color: var(--red); border-color: var(--line); }
button.danger:hover { border-color: var(--red); background: var(--red-soft); }
button.small, .btn.small { min-height: var(--target); padding: var(--s2) var(--s4); font-size: var(--fs-small); }
button:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- velden ---------- */
label { display: block; font-size: var(--fs-small); line-height: var(--lh-small); font-weight: 500; color: var(--marine); margin: 0 0 var(--s2); }
input[type=text], input[type=url], input[type=email], input[type=password], input[type=date], input[type=datetime-local], input[type=tel], select, textarea {
  width: 100%; min-height: 48px; padding: var(--s3) var(--s4);
  border: 1px solid var(--field-line); border-radius: var(--r-field);
  background: var(--white); color: var(--marine); font: 400 var(--fs-body)/22px var(--font);
}
input::placeholder { color: var(--placeholder); }
/* gids: actief veld = blauwe rand met lichtblauwe gloed */
textarea { min-height: 0; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue), 0 0 0 4px var(--blue-glow); }
.field { margin-bottom: var(--s4); }
.field .small { margin: var(--s2) 0 0; }
.row { display: flex; gap: var(--s4); flex-wrap: wrap; align-items: flex-end; }
.row .field { flex: 1 1 200px; margin-bottom: 0; }
label.check { display: flex; gap: var(--s2); align-items: flex-start; font-weight: 400; }
label.check input { margin-top: 2px; width: 18px; height: 18px; flex: none; accent-color: var(--blue); }
form.inline { display: inline; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- kaarten en raster ---------- */
.card { background: var(--white); border-radius: var(--r-card); padding: var(--s6); margin-bottom: var(--s5); }
.grid { display: grid; gap: var(--s5); margin-bottom: var(--s5); }
.grid > .card { margin-bottom: 0; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-qr { grid-template-columns: 360px minmax(0, 1fr); align-items: start; }
.g-qr > div > .card:last-child { margin-bottom: 0; }
@media (max-width: 900px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g2, .g3, .g-qr { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .card { padding: var(--s5); margin-bottom: var(--s4); }
  .grid { gap: var(--s4); margin-bottom: var(--s4); }
}

/* ---------- cijfers: 1 hoofdgetal per scherm, de rest stapt terug ---------- */
.headline { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s5) var(--s6); flex-wrap: wrap; margin-bottom: var(--s5); }
.hero-num .value { font-size: var(--fs-h1); line-height: var(--lh-h1); font-weight: 700; letter-spacing: -.8px; margin-top: var(--s1); font-variant-numeric: tabular-nums; }
.hero-num .hint { font-size: var(--fs-small); line-height: var(--lh-small); color: var(--muted); margin-top: var(--s1); }
.hint.up { color: var(--green); }
.hint.down { color: var(--red); }
.facts { display: flex; gap: var(--s2) var(--s6); flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.facts li { font-size: var(--fs-small); line-height: var(--lh-small); color: var(--muted); }
.facts strong { display: block; font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
/* oude tegels (beheer) */
.stat { padding: var(--s5); }
.stat .value { font-size: var(--fs-h1); line-height: var(--lh-h1); font-weight: 700; letter-spacing: -.8px; margin-top: var(--s2); font-variant-numeric: tabular-nums; }
.stat .hint { font-size: var(--fs-small); line-height: var(--lh-small); color: var(--muted); margin-top: var(--s1); }
@media (max-width: 600px) { .stat .value, .hero-num .value { font-size: var(--fs-h2); line-height: var(--lh-h2); } }

/* ---------- badges ---------- */
.pill {
  display: inline-block; padding: var(--s1) var(--s3); border-radius: var(--r-pill); vertical-align: middle;
  font-size: var(--fs-label); line-height: var(--lh-label); font-weight: 500; letter-spacing: 0;
  background: var(--line-soft); color: var(--muted);
}
.pill.on { background: var(--blue-soft); color: var(--blue); }
.pill.ok { background: var(--green-soft); color: var(--green-ink); }
.pill.new { background: var(--yellow); color: var(--marine); }
.pill.bad { background: var(--red-soft); color: var(--red-ink); }
.bad-text { color: var(--red-ink); }
h1 .pill { position: relative; top: -6px; margin-left: var(--s2); }

/* ---------- meldingen ---------- */
.flash { padding: var(--s4) var(--s5); border-radius: var(--r-field); margin-bottom: var(--s5); background: var(--red-soft); color: var(--red-ink); }
.flash.ok { background: var(--green-soft); color: var(--green-ink); }

/* ---------- codekaarten: rechtstreeks op de achtergrond, geen kaart in een kaart ---------- */
.code-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); margin-bottom: var(--s5); }
@media (max-width: 900px) { .code-list { grid-template-columns: minmax(0, 1fr); } }
.code-card {
  display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: var(--s4); align-items: center;
  padding: var(--s4); background: var(--white); border-radius: var(--r-card); color: inherit; text-decoration: none;
}
.code-card:hover { box-shadow: 0 0 0 2px var(--blue); }
.code-card .thumb { width: 72px; height: 72px; border-radius: var(--r-field); background: var(--mist); padding: var(--s2); }
.code-card .thumb canvas { width: 100%; height: 100%; }
.code-card .name { font-weight: 500; font-size: var(--fs-body); line-height: var(--lh-body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.code-card .meta { font-size: var(--fs-small); line-height: var(--lh-small); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.code-card .count { font-size: var(--fs-small); line-height: var(--lh-small); margin-top: var(--s1); color: var(--muted); }
.code-card .count strong { font-size: var(--fs-body); font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.code-card .side { display: flex; flex-direction: column; align-items: flex-end; gap: var(--s2); }
.list-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s4); flex-wrap: wrap; margin: var(--s7) 0 var(--s4); }
.list-head h2 { margin: 0; }

/* ---------- tabellen ---------- */
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: var(--s3) var(--s2); border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
th { font-size: var(--fs-label); line-height: var(--lh-label); font-weight: 500; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; }
.trunc { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; vertical-align: bottom; }
@media (max-width: 600px) {
  .hide-m { display: none; }
  th, td { padding: var(--s3) var(--s1); font-size: var(--fs-small); }
}

/* ---------- periodeknoppen ---------- */
.tabs { display: inline-flex; gap: var(--s1); padding: var(--s1); background: var(--white); border-radius: var(--r-field); flex-wrap: wrap; }
.tabs a { text-decoration: none; padding: var(--s2) var(--s4); border-radius: var(--r-inner); font-size: var(--fs-small); color: var(--marine); white-space: nowrap; }
.tabs a:hover { background: var(--mist); }
.tabs a.on { background: var(--marine); color: var(--white); }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); flex-wrap: wrap; margin-bottom: var(--s5); }

/* ---------- grafieken: labels in html, altijd 12 px, op elke breedte ---------- */
.bars { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: 160px auto; column-gap: var(--s2); }
.bars .y { display: flex; flex-direction: column-reverse; justify-content: space-between; text-align: right; }
.bars .y span, .bars .x span { font-size: var(--fs-label); line-height: var(--lh-label); color: var(--muted); font-variant-numeric: tabular-nums; }
.bars .y span:first-child { transform: translateY(50%); }
.bars .y span:last-child { transform: translateY(-50%); }
.bars svg { width: 100%; height: 160px; overflow: visible; }
.bars .x { grid-column: 2; position: relative; height: var(--lh-label); margin-top: var(--s2); }
.bars .x span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.bars .x span.first { transform: none; }
.bars .x span.last { transform: translateX(-100%); }
@media (max-width: 600px) { .bars .x span.minor:not(.last) { display: none; } }
.bars .bar { fill: var(--marine); }
.bars .bar.now { fill: var(--blue); }
.bars .bar:hover { fill: var(--blue-hover); }
.bars .grid-line { stroke: var(--line-soft); vector-effect: non-scaling-stroke; }
.chart-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s4); flex-wrap: wrap; margin-bottom: var(--s4); }
.chart-head h2, .chart-head h3 { margin: 0; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s1) var(--s3); align-items: center; margin-bottom: var(--s4); font-size: var(--fs-small); line-height: var(--lh-small); }
.split > span:first-child { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 600px) { .splits { grid-template-columns: minmax(0, 1fr); } .tabs a { padding: var(--s2) var(--s2); } }
.split .n { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.split .track { grid-column: 1 / -1; height: 8px; border-radius: var(--r-pill); background: var(--mist); overflow: hidden; }
.split .fill { height: 100%; background: var(--blue); border-radius: var(--r-pill); }

/* ---------- QR-paneel ---------- */
.qr-panel { text-align: center; }
.qr-preview { background: var(--mist); border-radius: var(--r-field); padding: var(--s5); display: grid; place-items: center; }
.qr-preview canvas { width: 100%; max-width: 240px; height: auto; }
.qr-styles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); margin: var(--s4) 0; }
.qr-styles button {
  min-height: var(--target); padding: var(--s2); font-size: var(--fs-small); background: var(--white); color: var(--marine); border: 1px solid var(--line);
  gap: var(--s1); white-space: nowrap;
}
.qr-styles button:hover { background: var(--mist); border-color: var(--line); }
.qr-styles button.on { border: 2px solid var(--blue); color: var(--blue); background: var(--blue-soft); }
.qr-colors { display: flex; justify-content: center; align-items: center; gap: var(--s3); margin-bottom: var(--s4); font-size: var(--fs-small); color: var(--muted); }
.swatch { width: 28px; height: 28px; min-height: 0; padding: 0; border-radius: 50%; border: 3px solid var(--white); box-shadow: 0 0 0 1px var(--line); }
.swatch:hover { box-shadow: 0 0 0 2px var(--line); }
.swatch.on { box-shadow: 0 0 0 2px var(--blue); }
.qr-frame-text { margin-bottom: var(--s4); text-align: left; }
.qr-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2); }
.copy-line { display: flex; gap: var(--s2); margin-top: var(--s4); align-items: center; }
.copy-line input { font-size: var(--fs-small); min-height: 44px; min-width: 0; }
.qr-panel > .small { margin: var(--s3) 0 0; }

/* ---------- inloggen en lege staten ---------- */
.login { max-width: 440px; margin: var(--s7) auto; }
.login h1 { font-size: var(--fs-h2); line-height: var(--lh-h2); }
.login form button { width: 100%; }
.empty { color: var(--muted); text-align: center; padding: var(--s6) var(--s4); }

/* ---------- homepage ---------- */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--s7); align-items: center; padding: var(--s7) 0 var(--s6); }
.display { font-size: var(--fs-display); line-height: var(--lh-display); font-weight: 700; letter-spacing: -1.6px; margin: 0 0 var(--s5); text-wrap: balance; }
.hero-sub { font-size: var(--fs-h3); line-height: var(--lh-h3); color: var(--muted); margin: 0 0 var(--s6); max-width: 30em; }
.hero-form { display: flex; gap: var(--s2); max-width: 500px; }
.hero-form input { flex: 1; }
.hero-art { background: var(--marine); border-radius: var(--r-card); aspect-ratio: 4 / 3; display: grid; place-items: center; }
.hero-art .mark { width: 40%; height: auto; }
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: var(--s6); padding: var(--s5) 0 var(--s4); }
  .display { font-size: var(--fs-h1); line-height: var(--lh-h1); letter-spacing: -1px; }
  .hero-art { display: none; }
}
@media (max-width: 480px) { .hero-form { flex-direction: column; } }

.section { margin-top: var(--s8); }
.section > h2 { margin-bottom: var(--s5); }
.step-n {
  display: inline-grid; place-items: center; width: var(--target); height: var(--target); border-radius: var(--r-field);
  background: var(--marine); color: var(--yellow); font-weight: 700; font-size: var(--fs-body); margin-bottom: var(--s4);
}
.step p, .feat p { margin: 0; color: var(--muted); }
.feat h3, .step h3 { font-weight: 500; }

/* proberen: lichte uitleg naast de code, geen tweede donker vlak */
.try-upsell { margin-top: var(--s5); padding: var(--s5); border-radius: var(--r-field); background: var(--mist); text-align: left; }
.try-upsell h3 { font-weight: 500; }
.try-upsell ul { margin: var(--s2) 0 var(--s5); padding-left: var(--s5); color: var(--muted); }
.try-upsell li { margin-bottom: var(--s1); }

.faq details { border-bottom: 1px solid var(--line-soft); padding: var(--s4) 0; }
.faq details:first-child { padding-top: 0; }
.faq details:last-child { border-bottom: 0; padding-bottom: 0; }
.faq summary { cursor: pointer; font-weight: 500; font-size: var(--fs-body); list-style: none; display: flex; justify-content: space-between; gap: var(--s4); min-height: 24px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--blue); font-size: var(--fs-h3); line-height: var(--lh-body); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); margin: var(--s2) 0 0; }

.terms p { color: var(--muted); }
.terms strong { color: var(--marine); font-weight: 500; }

.cta-band { background: var(--blue); color: var(--white); border-radius: var(--r-card); padding: var(--s7); margin-top: var(--s8); display: flex; justify-content: space-between; align-items: center; gap: var(--s5); flex-wrap: wrap; }
.cta-band h2 { color: var(--white); margin: 0; }
.cta-band .hl { color: var(--yellow); }
.cta-band .btn { background: var(--white); color: var(--blue); border-color: var(--white); }
.cta-band .btn:hover { background: var(--mist); border-color: var(--mist); }
.cta-band :focus-visible { outline-color: var(--white); }
@media (max-width: 600px) { .cta-band { padding: var(--s6) var(--s5); } }

.site-foot {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--s4);
  padding: var(--s6) 0 0; margin-top: var(--s8); border-top: 1px solid var(--line);
  font-size: var(--fs-small); color: var(--muted);
}
.site-foot .logo .mark { width: 22px; height: 22px; }
.site-foot .wordmark { font-size: var(--fs-body); }
.site-foot a:not(.logo) { color: var(--muted); }

@media (max-width: 600px) {
  header.top { padding: var(--s2) var(--s2) var(--s2) var(--s4); }
  .logo .mark { width: 26px; height: 26px; }
  .wordmark { font-size: var(--fs-body); }
  nav.top { gap: 0 var(--s4); }
  nav.top a { font-size: var(--fs-small); }
  nav.top a.btn { padding: var(--s2) var(--s4); }
  h1 { font-size: var(--fs-h2); line-height: var(--lh-h2); }
}

.btn .pill, nav.top .pill { padding: 0 var(--s2); }

/* ---------- hulpklassen (in plaats van style="" in de html) ---------- */
p.small { margin-block: var(--s4); }
.small.intro { margin-top: calc(-1 * var(--s2)); }
.small.chart-cap { margin: 0 0 var(--s2); }
.m-0 { margin: 0; }
.mb-0 { margin-bottom: 0; }
.mt-0 { margin-top: 0; } .mt-2 { margin-top: var(--s2); } .mt-3 { margin-top: var(--s3); } .mt-4 { margin-top: var(--s4); } .mt-5 { margin-top: var(--s5); } .mt-6 { margin-top: var(--s6); }
.mb-6 { margin-bottom: var(--s6); }
.gap-2 { gap: var(--s2); }
.w-full { width: 100%; }
.w-xs { max-width: 112px; }
.fs-h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); }
.row .field.f-wide { flex: 1 1 320px; }
.row .field.f-mid { flex: 1 1 260px; }
.col-wide { min-width: 260px; }
.row .field.f-narrow { flex: 0 1 200px; }
.row .field.f-xs { flex: 0 1 144px; }
.brand-row { display: flex; align-items: center; gap: var(--s3); }

/* smalle telefoons: de 3 stijlen onder elkaar, zodat "Met afzender" niet wordt afgeknipt */
@media (max-width: 400px) {
  .qr-styles { grid-template-columns: minmax(0, 1fr); }
}


/* ---------- versie 2: codeformulier, mappen, vergelijken, beheer ---------- */
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.code-form fieldset, .code-form .row { margin-bottom: var(--s4); }
.code-form fieldset .row { margin-bottom: var(--s4); }
.code-form fieldset .row:last-child { margin-bottom: 0; }
.code-form > button { margin-top: var(--s2); }
.small.note { margin: 0; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; background: var(--mist); padding: 0 var(--s1); border-radius: 4px; overflow-wrap: anywhere; }

/* soort code: gesegmenteerde keuze, zelfde vorm als de QR-stijlen */
.seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s2); margin-bottom: var(--s5); }
.seg label {
  display: flex; align-items: center; justify-content: center; min-height: var(--target); margin: 0; padding: var(--s2);
  border: 1px solid var(--line); border-radius: var(--r-field); background: var(--white); color: var(--marine);
  font-weight: 500; cursor: pointer; text-align: center;
}
.seg label:hover { background: var(--mist); }
.seg label.on { border: 2px solid var(--blue); color: var(--blue); background: var(--blue-soft); }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg label:has(input:focus-visible) { outline: var(--focus); outline-offset: 2px; }
@media (max-width: 600px) { .seg { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

details.more { border-top: 1px solid var(--line-soft); padding: var(--s4) 0; margin-bottom: var(--s2); }
details.more > summary { cursor: pointer; color: var(--blue); font-weight: 500; min-height: 24px; }
details.more[open] > summary { margin-bottom: var(--s4); }
.fs-body { font-size: var(--fs-body); line-height: var(--lh-body); font-weight: 500; margin: var(--s5) 0 var(--s3); }
.w-md { max-width: 320px; }

/* mappen en ankers: kleine knoppen naast elkaar */
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); margin: 0 0 var(--s5); }
.chips a {
  display: inline-flex; align-items: center; min-height: 36px; padding: var(--s1) var(--s4); border-radius: var(--r-pill);
  background: var(--white); color: var(--marine); text-decoration: none; font-size: var(--fs-small);
}
.chips a:hover { box-shadow: 0 0 0 1px var(--line); }
.chips a.on { background: var(--marine); color: var(--white); }

/* vergelijken */
.pick-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--s2) var(--s5); }
.pick-list label { margin: 0; }
.legend { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); list-style: none; margin: 0 0 var(--s4); padding: 0; font-size: var(--fs-small); }
.key { display: inline-block; width: 24px; height: 0; border-top: 3px solid var(--c); vertical-align: middle; margin-right: var(--s2); }
.key.k1 { border-top-style: dashed; }
.key.k2 { border-top-style: dotted; }
.key.k3 { border-top-style: double; border-top-width: 4px; }
.bars.lines { grid-template-rows: 200px auto; }
.bars.lines svg { height: 200px; }
.bars .line { stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }

/* beheer */
pre.log {
  background: var(--mist); border-radius: var(--r-field); padding: var(--s3) var(--s4); margin: var(--s4) 0 0;
  font-size: var(--fs-small); line-height: var(--lh-small); white-space: pre-wrap; overflow-wrap: anywhere;
}
pre.recovery { font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: 1px; columns: 2; margin-bottom: var(--s5); }
.totp-setup { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: var(--s5); align-items: start; }
.totp-setup .qr-preview canvas { max-width: 180px; }
.secret { font-size: var(--fs-body); letter-spacing: 1px; }
@media (max-width: 600px) { .totp-setup { grid-template-columns: minmax(0, 1fr); } }
.card.flagged { box-shadow: inset 0 0 0 2px var(--red); }
.card.verify { box-shadow: inset 0 0 0 2px var(--yellow); }
.copy-line + .copy-line { margin-top: var(--s2); }


/* ---------- homepage, versie 2 ---------- */
.eyebrow { display: inline-block; margin: 0 0 var(--s4); padding: var(--s1) var(--s3); border-radius: var(--r-pill); background: var(--yellow); color: var(--marine); font-size: var(--fs-label); line-height: var(--lh-label); font-weight: 700; letter-spacing: .8px; text-transform: uppercase; }
.hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); padding-top: var(--s7); }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--s3); margin-bottom: var(--s6); }
.hero-types { display: flex; flex-wrap: wrap; gap: var(--s2); list-style: none; margin: 0; padding: 0; }
.hero-types a {
  display: inline-flex; align-items: center; gap: var(--s2); min-height: var(--target); padding: var(--s2) var(--s4);
  border-radius: var(--r-pill); background: var(--white); color: var(--marine); text-decoration: none; font-size: var(--fs-small); font-weight: 500;
}
.hero-types a:hover { box-shadow: 0 0 0 2px var(--blue); }
.hero-types .icon { width: 18px; height: 18px; color: var(--blue); }
.icon { width: 24px; height: 24px; flex: none; }

/* hero: een echte QR-code met kader naast een voorbeeld van het dashboard */
.hero-visual {
  position: relative; background: var(--marine); border-radius: var(--r-card); aspect-ratio: 1 / 1;
  overflow: hidden; display: grid; place-items: center;
}
.hero-visual::before {
  content: ""; position: absolute; inset: auto -20% -35% auto; width: 75%; aspect-ratio: 1; border-radius: 50%;
  background: var(--blue); opacity: .55;
}
.hv-qr { position: absolute; left: 7%; top: 7%; width: 46%; transform: rotate(-4deg); filter: drop-shadow(0 24px 32px rgba(0, 0, 0, .35)); }
.hv-qr canvas { width: 100%; height: auto; }
.hv-card {
  position: absolute; right: 6%; bottom: 6%; width: 46%; padding: var(--s5); border-radius: var(--r-card);
  background: var(--white); box-shadow: 0 24px 48px rgba(11, 27, 63, .35);
}
.hv-head { display: flex; justify-content: space-between; align-items: center; gap: var(--s2); font-weight: 500; font-size: var(--fs-small); margin-bottom: var(--s3); }
.hv-num { font-size: var(--fs-h1); line-height: var(--lh-h1); font-weight: 700; letter-spacing: -.8px; font-variant-numeric: tabular-nums; }
.hv-num .hint { font-size: var(--fs-small); font-weight: 500; letter-spacing: 0; color: var(--green); }
.hv-bars { display: flex; align-items: flex-end; gap: var(--s1); height: 64px; margin-top: var(--s3); }
.hv-bars span { flex: 1; background: var(--marine); border-radius: 3px 3px 0 0; }
.hv-bars span.now { background: var(--blue); }
.hv-days { display: flex; gap: var(--s1); margin-top: var(--s1); }
.hv-days span { flex: 1; text-align: center; font-size: var(--fs-label); line-height: var(--lh-label); color: var(--muted); }
.hv-split { list-style: none; margin: var(--s4) 0 0; padding: 0; display: grid; gap: var(--s2); }
.hv-split li { display: grid; grid-template-columns: 80px minmax(0, 1fr) 36px; align-items: center; gap: var(--s2); font-size: var(--fs-label); line-height: var(--lh-label); }
.hv-split li > span:last-child { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.hv-split .track { height: 6px; border-radius: var(--r-pill); background: var(--mist); overflow: hidden; }
.hv-split .track span { display: block; height: 100%; background: var(--blue); border-radius: var(--r-pill); }
.hv-foot { margin-top: var(--s3); font-size: var(--fs-label); line-height: var(--lh-label); color: var(--placeholder); text-transform: uppercase; letter-spacing: .8px; }
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { display: grid; aspect-ratio: 16 / 10; }
  .hv-qr { width: 32%; left: 8%; top: 9%; }
  .hv-card { width: 46%; right: 6%; bottom: 8%; }
}
@media (max-width: 600px) {
  .hero-visual { display: flex; flex-direction: column; align-items: center; aspect-ratio: auto; padding: var(--s5) var(--s4) var(--s4); }
  .hv-qr { position: relative; left: auto; top: auto; width: 58%; }
  .hv-card { position: relative; right: auto; bottom: auto; width: 100%; margin-top: calc(-1 * var(--s2)); padding: var(--s4); }
  .hv-num { font-size: var(--fs-h2); line-height: var(--lh-h2); }
  .hv-bars { height: 44px; }
  .hero-cta .btn { flex: 1 1 100%; }
}

.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s2) var(--s5); flex-wrap: wrap; margin-bottom: var(--s5); }
.section-head h2 { margin: 0; }

/* vier soorten codes */
.type-card { display: flex; flex-direction: column; }
.type-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: var(--r-field); background: var(--blue-soft); color: var(--blue); margin-bottom: var(--s4); }
.type-card h3 { font-weight: 700; }
.type-card p { margin: 0 0 var(--s3); color: var(--muted); }
.type-card .scan-line { color: var(--ink); padding-top: var(--s3); border-top: 1px solid var(--line-soft); }
.type-foot { margin-top: auto; padding-top: var(--s2); display: flex; justify-content: space-between; align-items: center; gap: var(--s2); }
.try-link { font-weight: 500; display: inline-flex; align-items: center; min-height: var(--target); }
@media (max-width: 900px) { .types { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .types { grid-template-columns: minmax(0, 1fr); } }

/* proberen */
.try-types label { gap: var(--s2); }
.try-types .icon { width: 18px; height: 18px; }
.try .g-qr { grid-template-rows: auto 1fr; }
.try #qrPanel { grid-row: 1 / span 2; }
.try .try-upsell { margin-top: 0; align-self: start; }
@media (max-width: 900px) {
  .try #qrPanel { grid-row: auto; }
  .try .try-fields { order: -1; }
}

/* functies in 3 groepen */
.feature-groups h3 { font-weight: 700; margin-bottom: var(--s4); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s4); }
.ticks li { position: relative; padding-left: var(--s6); color: var(--muted); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 6px;
  background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5.5 10.5 3 3 6-7' fill='none' stroke='%232747D8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.ticks strong { color: var(--ink); font-weight: 500; }

/* privacy */
.privacy-band { background: var(--marine); color: var(--white); border-radius: var(--r-card); padding: var(--s7); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: var(--s6); align-items: start; }
.privacy-band h2 { color: var(--white); margin-bottom: var(--s2); }
.privacy-band p { color: var(--on-dark-muted); margin: 0; }
.privacy-band ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5); }
.privacy-band li { color: var(--on-dark-muted); font-size: var(--fs-small); line-height: var(--lh-small); border-top: 2px solid var(--yellow); padding-top: var(--s3); }
.privacy-band li strong { display: block; color: var(--white); font-size: var(--fs-body); line-height: var(--lh-body); font-weight: 500; margin-bottom: var(--s1); }
@media (max-width: 900px) { .privacy-band { grid-template-columns: minmax(0, 1fr); padding: var(--s6) var(--s5); } }
@media (max-width: 600px) { .privacy-band ul { grid-template-columns: minmax(0, 1fr); } }

/* ---------- privacy en voorwaarden ---------- */
.legal { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: var(--s6); align-items: start; margin-top: var(--s5); }
.legal-toc { position: sticky; top: var(--s5); }
.legal-toc ol { list-style: none; margin: var(--s3) 0 0; padding: 0; display: grid; gap: var(--s1); counter-reset: toc; }
.legal-toc li { counter-increment: toc; }
.legal-toc a { display: flex; gap: var(--s2); padding: var(--s1) 0; color: var(--marine); text-decoration: none; font-size: var(--fs-small); line-height: var(--lh-small); }
.legal-toc a::before { content: counter(toc) "."; color: var(--muted); min-width: 20px; font-variant-numeric: tabular-nums; }
.legal-toc a:hover { color: var(--blue); }
.legal-body { padding: var(--s7); max-width: 780px; }
.legal-body h1 { margin: var(--s2) 0 var(--s4); }
.legal-body .lead { font-size: var(--fs-h3); line-height: var(--lh-h3); color: var(--muted); margin: 0 0 var(--s6); }
.legal-body h2 { font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: 700; letter-spacing: 0; margin: var(--s7) 0 var(--s3); scroll-margin-top: var(--s5); }
.legal-body p, .legal-body li { color: var(--ink); }
.legal-body p { margin: 0 0 var(--s4); }
.legal-body ul { margin: 0 0 var(--s4); padding-left: var(--s5); display: grid; gap: var(--s2); }
.legal-table { margin: var(--s2) 0 var(--s5); font-size: var(--fs-small); line-height: var(--lh-small); }
.legal-table td { vertical-align: top; }
.legal-table td:first-child { font-weight: 500; }
.facts-list { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: var(--s2) var(--s5); margin: 0 0 var(--s4); padding: var(--s4) var(--s5); background: var(--mist); border-radius: var(--r-field); }
.facts-list dt { color: var(--muted); }
.facts-list dd { margin: 0; overflow-wrap: anywhere; }
.todo { background: var(--yellow); color: var(--marine); padding: 0 var(--s2); border-radius: 4px; font-size: var(--fs-small); }
@media (max-width: 900px) {
  .legal { grid-template-columns: minmax(0, 1fr); }
  .legal-toc { position: static; background: var(--white); border-radius: var(--r-card); padding: var(--s5); }
  .legal-toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s4); }
}
@media (max-width: 600px) {
  .legal-body { padding: var(--s5); }
  .legal-toc ol { grid-template-columns: minmax(0, 1fr); }
  .facts-list { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .facts-list dd { margin-bottom: var(--s2); }
}

/* homepage: voor wie, privacy-link, voettekst */
.uses .use { border-top: 2px solid var(--marine); padding-top: var(--s4); }
.uses h3 { font-weight: 700; }
.uses p { margin: 0; color: var(--muted); }
@media (max-width: 900px) { .uses { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .uses { grid-template-columns: minmax(0, 1fr); } }
.privacy-more { grid-column: 1 / -1; margin: 0; }
.privacy-more a { color: var(--yellow); font-weight: 500; }
.foot-links { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s5); }

/* privacy: tabellen op smalle schermen per rij onder elkaar */
@media (max-width: 600px) {
  .legal-table, .legal-table tbody, .legal-table tr, .legal-table td { display: block; width: 100%; }
  .legal-table tr:first-child { display: none; }
  .legal-table tr { padding: var(--s3) 0; border-bottom: 1px solid var(--line-soft); }
  .legal-table td { border: 0; padding: var(--s1) 0; }
  .legal-table td + td { color: var(--muted); }
}

/* menu op smalle schermen: een knop die het menu openklapt onder de balk */
.menu-btn { min-height: var(--target); padding: var(--s2) var(--s4); gap: var(--s2); background: var(--white); color: var(--marine); border: 1px solid var(--line); font-size: var(--fs-small); }
.menu-btn:hover { background: var(--mist); border-color: var(--line); }
.bars-icon, .bars-icon::before, .bars-icon::after { display: block; width: 16px; height: 2px; background: currentColor; border-radius: 2px; position: relative; }
.bars-icon::before, .bars-icon::after { content: ""; position: absolute; left: 0; }
.bars-icon::before { top: -5px; } .bars-icon::after { top: 5px; }
.open .bars-icon { background: transparent; }
.open .bars-icon::before { top: 0; transform: rotate(45deg); }
.open .bars-icon::after { top: 0; transform: rotate(-45deg); }
@media (max-width: 820px) {
  header.top .menu-btn { display: inline-flex; }
  header.top nav.top {
    display: none; position: absolute; left: 0; right: 0; top: calc(100% + var(--s2));
    flex-direction: column; align-items: stretch; gap: 0; padding: var(--s2);
    background: var(--white); border-radius: var(--r-card); box-shadow: 0 16px 40px rgba(11, 27, 63, .18);
  }
  header.top.open nav.top { display: flex; }
  header.top nav.top a { padding: var(--s3) var(--s4); border-radius: var(--r-field); font-size: var(--fs-body); }
  header.top nav.top a:not(.btn):hover { background: var(--mist); }
  header.top nav.top a.btn { margin-top: var(--s2); }
}
@media (max-width: 1120px) {
  header.top.wide-menu .menu-btn { display: inline-flex; }
  header.top.wide-menu nav.top {
    display: none; position: absolute; left: 0; right: 0; top: calc(100% + var(--s2));
    flex-direction: column; align-items: stretch; gap: 0; padding: var(--s2);
    background: var(--white); border-radius: var(--r-card); box-shadow: 0 16px 40px rgba(11, 27, 63, .18);
  }
  header.top.wide-menu.open nav.top { display: flex; }
  header.top.wide-menu nav.top a { padding: var(--s3) var(--s4); border-radius: var(--r-field); }
  header.top.wide-menu nav.top a:hover { background: var(--mist); }
}

/* tabbladen in het beheer */
.admin-tabs { display: flex; flex-wrap: wrap; gap: var(--s1); padding: var(--s1); margin-bottom: var(--s5); background: var(--white); border-radius: var(--r-field); }
.admin-tabs a { padding: var(--s2) var(--s4); border-radius: var(--r-inner); color: var(--marine); text-decoration: none; font-size: var(--fs-small); min-height: 36px; display: inline-flex; align-items: center; }
.admin-tabs a:hover { background: var(--mist); }
.admin-tabs a.on { background: var(--marine); color: var(--white); }
@media (max-width: 600px) { .admin-tabs { flex-wrap: nowrap; overflow-x: auto; } .admin-tabs a { white-space: nowrap; } }

/* ---------- aparte pagina's: intro, stappen, soorten, teasers ---------- */
.page-intro { padding: var(--s7) 0 var(--s4); max-width: 760px; }
.page-intro h1 { font-size: var(--fs-display); line-height: var(--lh-display); letter-spacing: -1.6px; margin: 0 0 var(--s4); }
.page-intro .hero-sub { margin-bottom: var(--s5); }
@media (max-width: 900px) { .page-intro h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); letter-spacing: -1px; } }
.more-link { font-weight: 500; white-space: nowrap; }
a.type-link { color: inherit; text-decoration: none; }
a.type-link:hover { box-shadow: 0 0 0 2px var(--blue); }
a.type-link p { color: var(--muted); }
.steps-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); }
.steps-strip li { display: flex; gap: var(--s4); align-items: flex-start; }
.steps-strip .step-n { flex: none; margin: 0; }
.steps-strip h3 { font-weight: 700; margin-bottom: var(--s1); }
.steps-strip p { margin: 0; color: var(--muted); }
@media (max-width: 900px) { .steps-strip { grid-template-columns: minmax(0, 1fr); } }
.split-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5); }
.split-2 > .card { margin: 0; }
.teaser h2 { margin-bottom: var(--s3); }
.teaser p:not(.label) { color: var(--muted); margin: 0 0 var(--s5); }
.teaser .ticks a { color: var(--ink); }
@media (max-width: 900px) { .split-2 { grid-template-columns: minmax(0, 1fr); } }
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5); }
.how-steps .card { margin: 0; }
.how-steps h2 { font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: 0; margin: 0 0 var(--s2); }
.how-steps p { margin: 0; color: var(--muted); }
@media (max-width: 700px) { .how-steps { grid-template-columns: minmax(0, 1fr); } }
.type-rows { display: grid; gap: var(--s4); margin-bottom: var(--s4); }
.type-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s5); align-items: start; margin: 0; }
.type-row .type-icon { margin: 0; }
.type-row h3 { font-weight: 700; }
.type-row h3 .pill { margin-left: var(--s2); }
.type-row p { margin: 0 0 var(--s2); color: var(--ink); }
.center-cta { display: flex; flex-wrap: wrap; gap: var(--s3); justify-content: center; }

.faq-page .chips { margin: 0; }

[hidden] { display: none !important; }
