/* Tap2bSafe website - opmaak volgens Brandbook v1.0 (22-10-2026).
   Groen = veilig en de hoofdactie, rood = alleen alarm. Tekst minimaal 17px, niets onder 13px.
   Knoppen minimaal 48px hoog. De namen van de kleuren gebruikt ook css/story.css. */

:root {
  --bg: #F6F7F5;          /* Papier */
  --surface: #FFFFFF;
  --border: #D8DDD9;      /* Lijn */
  --text: #111820;        /* Inkt */
  --muted: #5E6B68;       /* Grijs, 4,8:1 op Papier */
  --green: #176D4A;       /* Veilig */
  --green-dk: #0F5237;
  --green-soft: #E8F3ED;
  --red: #C62828;         /* Alarm */
  --red-dk: #8E1B1B;
  --red-soft: #FDEDED;
  --dark: #121A26;        /* Nacht */
  --mint: #7FD3A8;        /* Accent op donker */
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 2px 14px rgba(17, 24, 32, 0.07);
  --nav-h: 64px;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-dk); }
p { margin: 0 0 14px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.sr-only {
  position: absolute; 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: -60px; z-index: 200;
  background: var(--dark); color: #fff; padding: 12px 16px; border-radius: 10px; font-weight: 800;
}
.skip-link:focus { top: 12px; color: #fff; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
@media (max-width: 480px) { .wrap { padding: 0 16px; } }

/* ---- Knoppen ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px;
  border-radius: var(--radius); border: 2px solid transparent;
  font: inherit; font-weight: 800; font-size: 17px; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn-safe { background: var(--green); color: #fff; }
.btn-safe:hover { background: var(--green-dk); color: #fff; }
.btn-line { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-line:hover { border-color: var(--text); color: var(--text); }
.btn-line-light { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-line-light:hover { border-color: var(--text); color: var(--text); }
.section-dark .btn-line-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.section-dark .btn-line-light:hover { border-color: #fff; color: #fff; }
.btn-small { min-height: 44px; padding: 0 16px; font-size: 15px; }
.text-link { font-weight: 800; }

/* ---- Navigatie ---- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { height: var(--nav-h); display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); flex-shrink: 0; }
.brand img { width: 38px; height: 38px; }
.brand-name { display: block; font-size: 19px; font-weight: 900; letter-spacing: -0.02em; line-height: 1.1; }
.brand-sub { display: block; font-size: 13px; color: var(--muted); font-weight: 600; line-height: 1.2; }
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav-links a {
  display: block; padding: 10px 12px; border-radius: 10px;
  color: var(--text); text-decoration: none; font-weight: 700; font-size: 16px;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { background: var(--green-soft); color: var(--green-dk); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-link {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px;
  border-radius: 10px; color: var(--muted); font-weight: 800; font-size: 15px; text-decoration: none;
}
.lang-link:hover { color: var(--text); background: var(--bg); }
.nav-toggle {
  display: none; width: 48px; height: 48px; border: 0; border-radius: 12px;
  background: transparent; cursor: pointer; padding: 0; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 22px; height: 2.5px; border-radius: 2px; background: var(--text); position: relative; content: "";
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }
.nav-menu { display: none; border-top: 1px solid var(--border); background: var(--surface); }
.nav-menu.open { display: block; }
.nav-menu ul { list-style: none; margin: 0; padding: 8px 0 16px; }
.nav-menu a {
  display: block; padding: 14px 4px; font-size: 19px; font-weight: 800;
  color: var(--text); text-decoration: none; border-bottom: 1px solid var(--bg);
}
.nav-menu a[aria-current="page"] { color: var(--green); }
.nav-menu .btn { margin-top: 16px; width: 100%; color: #fff; border-bottom: 0; padding: 0 24px; justify-content: center; }
@media (max-width: 900px) {
  .nav-links, .nav-actions .nav-cta { display: none; }
  .nav-actions { margin-left: auto; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 380px) { .brand-sub { display: none; } }

/* ---- Kop van de homepage (licht; de situaties staan in css/scenes.css) ---- */
/* clip i.p.v. alleen hidden: anders schuift de kop opzij als je op een knop helemaal rechts tikt */
.hero { background: var(--bg); color: var(--text); overflow: hidden; overflow: clip; }
.hero-inner {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 80px;
}
.kicker {
  margin: 0 0 12px; font-size: 13px; font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--green);
}
.hero h1 {
  font-size: clamp(38px, 6vw, 62px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 900;
}
.hero .slogan { margin: 16px 0 0; font-size: clamp(20px, 2.6vw, 26px); font-weight: 700; color: var(--text); }
.hero .lead { margin: 18px 0 0; font-size: 19px; color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-note { margin: 16px 0 0; font-size: 15px; color: var(--muted); }
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); padding-top: 48px; padding-bottom: 56px; gap: 36px; }
}

/* ---- Kop van de andere pagina's ---- */
.page-hero { background: var(--bg); color: var(--text); border-bottom: 1px solid var(--border); }
.page-hero .wrap { padding-top: 56px; padding-bottom: 56px; }
.page-hero h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 900; max-width: 20em; }
.page-hero .lead { margin: 16px 0 0; font-size: 19px; color: var(--muted); max-width: 38em; }
.page-hero .hero-actions { margin-top: 26px; }

/* ---- Secties ---- */
.section { padding: 80px 0; }
.section-white { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-dark { background: var(--dark); color: #fff; }
@media (max-width: 700px) { .section { padding: 56px 0; } }
.label {
  margin: 0 0 10px; font-size: 13px; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--green);
}
.section-dark .label { color: var(--mint); }
.section h2, .h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.12; letter-spacing: -0.025em; font-weight: 900; }
.section .lead { margin: 14px 0 36px; font-size: 19px; color: var(--muted); max-width: 40em; }
.section-dark .lead { color: rgba(255, 255, 255, 0.75); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

.grid-2, .grid-3, .grid-4 { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 24px; min-width: 0;
}
.section-white .card { background: var(--bg); }
.card h3 { font-size: 20px; line-height: 1.3; font-weight: 800; margin-bottom: 8px; }
.card p { color: var(--muted); }
.card p:last-child { margin-bottom: 0; }
.card-icon {
  width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: var(--green-soft); color: var(--green); margin-bottom: 16px;
}
.card-icon svg { width: 26px; height: 26px; }
.card-icon--alarm { background: var(--red-soft); color: var(--red); }
.card .tag {
  display: inline-block; margin-bottom: 10px; padding: 3px 10px; border-radius: 999px;
  background: var(--green-soft); color: var(--green-dk); font-size: 13px; font-weight: 800;
}

/* Doelgroepen met foto */
.audience {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: var(--text);
  transition: box-shadow 0.15s, transform 0.15s;
}
.audience:hover { box-shadow: var(--shadow); transform: translateY(-2px); color: var(--text); }
.audience-photo { aspect-ratio: 4 / 3; background: var(--dark); overflow: hidden; }
.audience-photo img { width: 100%; height: 100%; object-fit: cover; }
.audience-photo--mark { display: flex; align-items: center; justify-content: center; background: var(--green-soft); }
.audience-photo--mark img { width: 42%; height: auto; object-fit: contain; }
.audience-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.audience-body h3 { font-size: 21px; font-weight: 800; margin-bottom: 6px; }
.audience-body p { color: var(--muted); flex: 1; }
.audience-body .more { font-weight: 800; color: var(--green); margin: 0; }

/* Stappen */
.steps { counter-reset: step; display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }
.steps li::before {
  content: counter(step); display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 900; margin-bottom: 14px;
}
.steps h3 { font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.steps p { color: var(--muted); margin: 0; }
@media (max-width: 800px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* Lijst met vinkjes */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 34px; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--green); color: #fff; font-size: 14px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
}
.section-dark .checklist li::before { background: var(--mint); color: var(--dark); }

/* Twee kolommen: tekst en kader */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

/* Bericht-voorbeeld (zoals contacten het ontvangen) */
.message {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow);
}
.message-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-weight: 800; }
.message-head img { width: 32px; height: 32px; }
.message-head small { display: block; font-size: 13px; color: var(--muted); font-weight: 600; }
.message-body { background: var(--bg); border-radius: 12px; padding: 14px 16px; white-space: pre-line; }
.message-body a { word-break: break-all; }
.message + .message { margin-top: 14px; }

/* Let op 112 */
.notice {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--red-soft); border: 1px solid #F3C6C6; border-radius: var(--radius); padding: 18px 20px;
}
.notice strong { color: var(--red-dk); }
.notice p { margin: 0; }
.notice-icon { flex-shrink: 0; width: 28px; height: 28px; color: var(--red); }

/* Prijzen */
.prices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 760px; }
.center .prices { margin: 0 auto; }
@media (max-width: 600px) { .prices { grid-template-columns: minmax(0, 1fr); } }
.price-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; text-align: left; }
.price-card--best { border: 2px solid var(--green); }
.price-card h3 { font-size: 20px; font-weight: 800; }
.price { margin: 10px 0 4px; font-size: 42px; font-weight: 900; letter-spacing: -0.03em; line-height: 1; }
.price small { font-size: 17px; font-weight: 700; color: var(--muted); letter-spacing: 0; }
.price-note { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.price-badge {
  display: inline-block; margin-bottom: 8px; padding: 3px 10px; border-radius: 999px;
  background: var(--green); color: #fff; font-size: 13px; font-weight: 800;
}

/* Veelgestelde vragen */
.faq { max-width: 780px; display: grid; gap: 10px; }
.center .faq { margin: 0 auto; text-align: left; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.section-white .faq details { background: var(--bg); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 52px 18px 20px; font-weight: 800; font-size: 18px; position: relative; min-height: 48px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: 26px; font-weight: 400; color: var(--green);
}
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 20px 18px; color: var(--muted); }
.faq details > div p:last-child { margin-bottom: 0; }

/* Wachtlijst */
.waitlist { background: var(--green-soft); color: var(--text); padding: 80px 0; border-top: 1px solid var(--border); }
.waitlist-inner { max-width: 640px; margin: 0 auto; text-align: center; }
.waitlist .label { color: var(--green); }
.waitlist h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.12; letter-spacing: -0.025em; font-weight: 900; }
.waitlist .lead { margin: 14px 0 28px; font-size: 19px; color: var(--muted); }
.waitlist-form { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.waitlist-form label.sr-only + input { flex: 1 1 260px; }
.waitlist-input {
  flex: 1 1 260px; min-height: 52px; padding: 0 18px; border-radius: var(--radius);
  border: 2px solid var(--border); background: var(--surface); color: var(--text);
  font: inherit; font-size: 17px;
}
.waitlist-input::placeholder { color: var(--muted); }
.waitlist-input:focus { outline: none; border-color: var(--green); }
.waitlist .btn-safe:focus-visible { outline-color: var(--green); }
.waitlist-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.waitlist-note { margin: 16px 0 0; font-size: 15px; color: var(--muted); }
.waitlist-note a { color: var(--green-dk); }
.waitlist-status { margin: 18px 0 0; font-weight: 700; min-height: 1.6em; }
.waitlist-status[data-state="ok"] { color: var(--green-dk); }
.waitlist-status[data-state="error"] { color: var(--red); }
.waitlist-done {
  background: var(--surface); border: 1px solid var(--green);
  border-radius: var(--radius); padding: 20px; color: var(--green-dk); font-weight: 700;
}
[hidden] { display: none !important; }

/* Lopende tekst (privacy, support) */
.prose { max-width: 760px; }
.prose h2 { font-size: 28px; font-weight: 900; letter-spacing: -0.02em; margin: 44px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 20px; font-weight: 800; margin: 28px 0 8px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 14px; }
.prose li { margin-bottom: 6px; }
.prose .table-scroll { overflow-x: auto; margin: 0 0 18px; }
.prose table { border-collapse: collapse; width: 100%; min-width: 560px; background: var(--surface); font-size: 16px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px; border: 1px solid var(--border); }
.prose th { background: var(--bg); font-weight: 800; }
.updated { color: var(--muted); font-size: 15px; }

/* Voettekst */
.footer { background: var(--dark); color: rgba(255, 255, 255, 0.72); padding: 48px 0 32px; font-size: 16px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 40px; height: 40px; background: #fff; border-radius: 10px; padding: 3px; }
.footer-brand strong { display: block; color: #fff; font-size: 19px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: rgba(255, 255, 255, 0.82); text-decoration: none; font-weight: 700; display: inline-block; padding: 10px 0; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 15px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
.footer-bottom a { color: rgba(255, 255, 255, 0.82); }

/* 404 */
.not-found { text-align: center; padding: 120px 0; }
.not-found h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 900; letter-spacing: -0.03em; margin-bottom: 12px; }

/* Pagina's voor ouderen: grotere tekst (brandbook: 19px) */
.large-text { font-size: 19px; }
.large-text .card p, .large-text .checklist li, .large-text .faq details > div { font-size: 19px; }
.large-text .lead { font-size: 21px; }

/* Kleine hulpjes voor afstand */
.mt-m { margin-top: 20px; }
.mt-l { margin-top: 28px; }
.mb-l { margin-bottom: 28px; }
.steps--single { grid-template-columns: minmax(0, 1fr); }
.notice--narrow { max-width: 780px; }
.notice--faq { max-width: 780px; margin-top: 32px; }
.center .notice--faq { margin-left: auto; margin-right: auto; }
.small-note { color: var(--muted); margin-top: 20px; font-size: 15px; }
.card .tag--muted { background: var(--bg); color: var(--muted); }

/* Uitnodiging uit de app (/k/CODE) */
.invite { text-align: center; padding: 96px 0; }
.invite h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 900; letter-spacing: -0.03em; margin-bottom: 16px; }
.invite .lead { max-width: 560px; margin: 0 auto 24px; }
.invite p { max-width: 560px; margin-left: auto; margin-right: auto; }
.invite-code-label { margin-bottom: 4px; font-weight: 700; }
.invite-code { font-size: clamp(28px, 7vw, 40px); font-weight: 900; letter-spacing: 0.12em; font-variant-numeric: tabular-nums; margin-bottom: 24px; overflow-wrap: anywhere; }

/* Filmpjes uit de app (functiepagina). Pas laden na een tik op afspelen. */
.demo-video { margin: 40px auto 0; text-align: center; }
.demo-video video { display: block; width: 100%; height: auto; margin: 0 auto; border-radius: var(--radius-lg); background: #121A26; box-shadow: var(--shadow); }
.demo-video-wide { max-width: 620px; }
.demo-video-tall { max-width: 340px; }
.demo-video figcaption { margin-top: 14px; color: var(--muted); font-size: 16px; line-height: 1.5; }
