/* Wachtmaatje — sitebrede stijl. Systeemfonts, geen externe bronnen. */

:root {
  color-scheme: light dark;
  --bg: #fbf8f3;
  --bg-alt: #f3eee5;
  --surface: #ffffff;
  --text: #1b2330;
  --muted: #4b5767;
  --line: #e3dccf;
  --brand: #0e7c6b;
  --brand-strong: #0a5e52;
  --brand-soft: #dff2ec;
  --on-brand: #ffffff;
  --accent: #c2482c;
  --accent-soft: #fde6df;
  --ok: #1f8a4c;
  --focus: #0b63ce;
  --shadow: 0 1px 2px rgba(27, 35, 48, .06), 0 8px 24px rgba(27, 35, 48, .08);
  --radius: 18px;
  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-round: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  /* telefoon-mockup */
  --phone-frame: #1b2330;
  --phone-screen: #ffffff;
  --phone-text: #1b2330;
  --phone-muted: #5d6877;
  --phone-chip: #eef1f4;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1720;
    --bg-alt: #131e29;
    --surface: #182431;
    --text: #edf2f7;
    --muted: #a9b6c4;
    --line: #263545;
    --brand: #4fd1b5;
    --brand-strong: #7fe0ca;
    --brand-soft: #143a35;
    --on-brand: #06201b;
    --accent: #ff9a80;
    --accent-soft: #3a2420;
    --ok: #5ad48d;
    --focus: #8ab8ff;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);

    --phone-frame: #05080c;
    --phone-screen: #121a24;
    --phone-text: #edf2f7;
    --phone-muted: #a9b6c4;
    --phone-chip: #1f2c3a;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }

a { color: var(--brand-strong); text-underline-offset: .18em; }
@media (prefers-color-scheme: light) { a { color: var(--brand-strong); } }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3 {
  font-family: var(--font-round);
  line-height: 1.15;
  letter-spacing: -.015em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

.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: 12px; top: -200px;
  background: var(--surface); color: var(--text);
  padding: 10px 16px; border-radius: 10px; z-index: 100;
  font-weight: 600;
}
.skip-link:focus { top: 12px; box-shadow: var(--shadow); }

/* ---------- Kop ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 64px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none;
  font-family: var(--font-round); font-weight: 800; font-size: 1.25rem; letter-spacing: -.01em;
}
.brand svg { width: 34px; height: 34px; flex: none; }
.brand .wm-maatje { color: var(--brand); }
.nav { display: flex; gap: 6px; align-items: center; }
.nav a {
  color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem;
  padding: 8px 12px; border-radius: 999px;
}
.nav a:hover { color: var(--text); background: var(--bg-alt); }
.nav a[aria-current="page"] { color: var(--text); }
.nav .nav-hide-sm { display: inline-block; }
@media (max-width: 640px) { .nav .nav-hide-sm { display: none; } }

/* ---------- Knoppen en labels ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent;
  cursor: pointer; font-family: inherit;
}
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-strong); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); }

.badge-soon {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px 10px 12px; border-radius: 999px;
  background: var(--surface); border: 1px dashed var(--brand);
  color: var(--text); font-weight: 700;
}
.badge-soon .dot {
  width: 10px; height: 10px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.eyebrow {
  display: inline-block; font-weight: 700; font-size: .85rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent); margin-bottom: .6em;
}

/* ---------- Hero ---------- */
.hero { padding: 56px 0 72px; position: relative; }
.hero-grid {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
}
.hero .lead { font-size: 1.22rem; color: var(--muted); max-width: 34em; }
.hero h1 .hl { color: var(--brand); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 28px 0 14px; }
.hero-note { font-size: .95rem; color: var(--muted); }

@media (max-width: 880px) {
  .hero { padding: 36px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- Telefoon-mockup ---------- */
.phone-figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; position: relative; }
.phone-figure .notes { position: absolute; inset: 0; pointer-events: none; }
.notes span {
  position: absolute; font-size: 1.6rem; color: var(--accent); opacity: .55;
  animation: float 6s ease-in-out infinite;
}
.notes span:nth-child(1) { left: 6%; top: 18%; }
.notes span:nth-child(2) { right: 8%; top: 8%; animation-delay: -2s; font-size: 1.2rem; }
.notes span:nth-child(3) { right: 2%; top: 56%; animation-delay: -4s; }
.notes span:nth-child(4) { left: 2%; top: 64%; animation-delay: -1s; font-size: 1.1rem; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-12px) rotate(6deg); } }

.phone {
  width: 290px; max-width: 82vw; aspect-ratio: 9 / 19;
  background: var(--phone-frame); border-radius: 46px; padding: 11px;
  box-shadow: var(--shadow), 0 30px 60px -20px rgba(14, 124, 107, .35);
  position: relative;
}
@media (prefers-color-scheme: dark) {
  .phone { box-shadow: 0 0 0 1.5px #33465a, 0 30px 60px -20px rgba(79, 209, 181, .25); }
}
.phone-screen {
  background: var(--phone-screen); color: var(--phone-text);
  border-radius: 36px; height: 100%; overflow: hidden; position: relative;
  display: flex; flex-direction: column;
  font-size: 13px; line-height: 1.4;
}
.phone-island {
  position: absolute; top: 9px; left: 50%; transform: translateX(-50%);
  width: 86px; height: 24px; background: #000; border-radius: 999px; z-index: 2;
}
.phone-status {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 22px 0 26px; font-weight: 700; font-size: 12px; height: 38px;
}
.phone-status .sig { display: inline-flex; gap: 4px; align-items: center; }
.phone-status .sig i { display: block; width: 3px; background: currentColor; border-radius: 1px; }
.phone-status .sig i:nth-child(1) { height: 4px; }
.phone-status .sig i:nth-child(2) { height: 6px; }
.phone-status .sig i:nth-child(3) { height: 8px; }
.phone-status .sig i:nth-child(4) { height: 10px; }
.phone-status .bat { width: 20px; height: 10px; border: 1.5px solid currentColor; border-radius: 3px; margin-left: 6px; position: relative; }
.phone-status .bat::after { content: ""; position: absolute; inset: 1.5px 5px 1.5px 1.5px; background: currentColor; border-radius: 1px; }

.app-head { padding: 10px 18px 4px; }
.app-head .co { font-weight: 800; font-size: 17px; font-family: var(--font-round); }
.app-head .sub { color: var(--phone-muted); font-size: 12px; }

.steps-bar {
  display: flex; align-items: center; gap: 3px; margin: 6px 0 2px; padding: 7px 8px;
  background: var(--phone-chip); border-radius: 12px; font-size: 10px; font-weight: 700; letter-spacing: -.01em;
  color: var(--phone-muted); justify-content: space-between;
}
.steps-bar .st { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.steps-bar .st b {
  width: 11px; height: 11px; border-radius: 50%; border: 2px solid currentColor; display: inline-block; flex: none;
  font-size: 0;
}
.steps-bar .arr { opacity: .6; }
.steps-bar .st.done { color: var(--ok); }
.steps-bar .st.done b { background: var(--ok); border-color: var(--ok); position: relative; }
.steps-bar .st.done b::after {
  content: ""; position: absolute; left: 2.5px; top: -.5px; width: 3px; height: 6px;
  border: solid var(--phone-screen); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.steps-bar .st.now { color: var(--brand); }
.steps-bar .st.now b { background: var(--brand); border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent); }
.steps-bar .st.alert { color: var(--accent); }
.steps-bar .st.alert b { background: var(--accent); border-color: var(--accent); }

.screens { position: relative; flex: 1; }
.screen {
  position: absolute; inset: 0; padding: 8px 16px 18px;
  display: flex; flex-direction: column; gap: 10px;
  opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility .45s;
}
.screen.is-active { opacity: 1; visibility: visible; }
@media (prefers-reduced-motion: reduce) { .screen { transition: none; } .notes span { animation: none; } }

.hear { color: var(--phone-muted); font-size: 12px; }
.hear strong { color: var(--phone-text); }

.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin: 4px 6px; }
.keypad span {
  aspect-ratio: 1.15; display: grid; place-items: center; border-radius: 12px;
  background: var(--phone-chip); font-weight: 600; font-size: 16px;
}
.keypad span.press { background: var(--brand-soft); color: var(--brand-strong); }

.p-btn {
  border-radius: 14px; padding: 11px 10px; text-align: center; font-weight: 800; font-size: 13.5px;
}
.p-btn.main { background: var(--brand); color: var(--on-brand); }
.p-btn.soft { background: var(--phone-chip); color: var(--phone-text); font-weight: 600; }
.p-btn.red { color: #d23b30; background: transparent; font-weight: 700; padding: 4px; }
@media (prefers-color-scheme: dark) { .p-btn.red { color: #ff7b70; } }
.p-btn.green { background: #157a40; color: #fff; font-size: 16px; padding: 14px; }
.p-spacer { flex: 1; }

.wait-clock {
  text-align: center; font-family: var(--font-round); font-weight: 800; font-size: 44px;
  letter-spacing: -.02em; margin-top: 18px; font-variant-numeric: tabular-nums;
}
.wait-title { text-align: center; font-weight: 800; font-size: 16px; }
.wait-text { text-align: center; color: var(--phone-muted); font-size: 12.5px; padding: 0 6px; }
.eq { display: flex; gap: 4px; justify-content: center; align-items: flex-end; height: 26px; margin: 2px 0; }
.eq i { width: 5px; border-radius: 3px; background: var(--brand); animation: eq 1.1s ease-in-out infinite; }
.eq i:nth-child(1) { height: 40%; }
.eq i:nth-child(2) { height: 90%; animation-delay: -.3s; }
.eq i:nth-child(3) { height: 60%; animation-delay: -.6s; }
.eq i:nth-child(4) { height: 100%; animation-delay: -.2s; }
.eq i:nth-child(5) { height: 50%; animation-delay: -.8s; }
@keyframes eq { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
.eq i { transform-origin: bottom; }
@media (prefers-reduced-motion: reduce) { .eq i { animation: none; } }

.ring {
  width: 86px; height: 86px; margin: 22px auto 4px; border-radius: 50%;
  background: color-mix(in srgb, #1f9d55 16%, transparent);
  display: grid; place-items: center; position: relative;
}
.ring::before {
  content: ""; position: absolute; inset: -10px; border-radius: 50%;
  border: 2px solid color-mix(in srgb, #1f9d55 40%, transparent);
  animation: pulse 1.6s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(.85); opacity: 1; } 100% { transform: scale(1.25); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ring::before { animation: none; } }
.ring svg { width: 40px; height: 40px; }
.alert-title { text-align: center; font-weight: 800; font-size: 18px; font-family: var(--font-round); }
.quote {
  font-size: 12px; color: var(--phone-muted); text-align: center; background: var(--phone-chip);
  border-radius: 12px; padding: 8px 10px;
}

.mock-controls { display: flex; align-items: center; gap: 10px; }
.mock-dots { display: flex; gap: 8px; }
.mock-dots button {
  width: auto; min-height: 36px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--muted); font: inherit; font-size: .85rem; font-weight: 600;
  padding: 4px 12px; cursor: pointer;
}
.mock-dots button[aria-pressed="true"] { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.mock-pause {
  min-height: 36px; min-width: 36px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); cursor: pointer; display: grid; place-items: center;
}
.mock-pause svg { width: 14px; height: 14px; }
.no-js .mock-controls { display: none; }

/* ---------- Secties ---------- */
section { scroll-margin-top: 80px; }
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: stap; }
.steps li {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px; position: relative; counter-increment: stap;
}
.steps li::before {
  content: counter(stap); display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 12px; margin-bottom: 14px;
  background: var(--brand-soft); color: var(--brand-strong);
  font-family: var(--font-round); font-weight: 800; font-size: 1.2rem;
}
.steps li p { color: var(--muted); margin: 0; font-size: 1rem; }
.steps li:last-child::before { background: var(--accent-soft); color: var(--accent); }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  padding: 26px 24px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--line);
}
.feature .ic {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand-strong); margin-bottom: 14px;
}
.feature .ic svg { width: 24px; height: 24px; }
.feature p { color: var(--muted); margin: 0; font-size: 1rem; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

.privacy-block {
  display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 40px;
  box-shadow: var(--shadow);
}
.privacy-block .shield {
  width: 88px; height: 88px; border-radius: 24px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand-strong);
}
.privacy-block .shield svg { width: 46px; height: 46px; }
.checklist { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: 10px; }
.checklist li { padding-left: 34px; position: relative; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%;
  background: var(--brand-soft);
}
.checklist li::after {
  content: ""; position: absolute; left: 8px; top: calc(.2em + 5px); width: 5px; height: 10px;
  border: solid var(--brand-strong); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}
@media (max-width: 700px) {
  .privacy-block { grid-template-columns: 1fr; padding: 28px 22px; gap: 18px; }
  .privacy-block .shield { width: 64px; height: 64px; border-radius: 18px; }
  .privacy-block .shield svg { width: 34px; height: 34px; }
}

.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 0 22px;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 36px 18px 0; font-weight: 700; position: relative;
  font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details > div { padding: 0 0 18px; color: var(--muted); }
.faq details > div p:last-child { margin-bottom: 0; }

.cta {
  text-align: center; border-radius: 28px; padding: 56px 28px;
  background: linear-gradient(135deg, var(--brand-soft), var(--accent-soft));
  border: 1px solid var(--line);
}
.cta p { color: var(--muted); font-size: 1.12rem; max-width: 36em; margin-left: auto; margin-right: auto; }
.cta .badge-soon { margin-top: 10px; }

/* ---------- Voet ---------- */
.site-footer { padding: 40px 0 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: .95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }

/* ---------- Tekstpagina's (privacy) ---------- */
.doc { padding: 56px 0 80px; }
.doc h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); }
.doc h2 { font-size: 1.5rem; margin-top: 2em; }
.doc h3 { margin-top: 1.4em; }
.doc .meta { color: var(--muted); }
.doc ul { padding-left: 1.3em; }
.doc li { margin-bottom: .4em; }
.doc .summary-box {
  background: var(--brand-soft); border-radius: var(--radius); padding: 22px 24px; margin: 28px 0;
}
.doc .summary-box h2 { margin-top: 0; font-size: 1.2rem; }
.doc .summary-box ul { margin: 0; }
.doc .note {
  border-left: 4px solid var(--accent); background: var(--surface); padding: 14px 18px; border-radius: 0 12px 12px 0;
  margin: 20px 0;
}
.table-wrap { overflow-x: auto; margin: 16px 0 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.doc table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .97rem; }
.doc th, .doc td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { background: var(--bg-alt); font-weight: 700; }
.doc tr:last-child td { border-bottom: 0; }
.todo { color: var(--accent); font-weight: 700; }

/* ---------- 404 ---------- */
.notfound { min-height: 64vh; display: grid; place-items: center; text-align: center; padding: 64px 0; }
.notfound .code {
  font-family: var(--font-round); font-weight: 900; font-size: clamp(4.5rem, 16vw, 8rem); line-height: 1;
  color: var(--brand); letter-spacing: -.04em; margin-bottom: 8px;
}
.notfound p { color: var(--muted); font-size: 1.15rem; max-width: 32em; margin-left: auto; margin-right: auto; }
.notfound .eq { height: 40px; margin: 18px 0 26px; }
.notfound .eq i { width: 8px; }
.notfound .hero-ctas { justify-content: center; }

@media (max-width: 640px) {
  .table-wrap { border: 0; background: transparent; overflow: visible; }
  .doc table { min-width: 0; }
  .doc thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .doc table, .doc tbody, .doc tr, .doc td { display: block; width: 100%; }
  .doc tr {
    background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
    padding: 6px 16px; margin-bottom: 12px;
  }
  .doc td { padding: 10px 0; }
  .doc td::before {
    content: attr(data-label); display: block; font-size: .8rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 2px;
  }
  .doc td:first-child { font-weight: 700; }
  .doc tr:last-child td { border-bottom: 1px solid var(--line); }
  .doc tr td:last-child { border-bottom: 0; }
}
