/* Naarhuis – gedeelde stijl voor alle openbare pagina's.
   Kleuren komen uit Naarhuis/Design/Theme.swift.
   Geen externe lettertypes: op iPhone is de ronde koptekst SF Rounded. */

:root {
  --ink: #1F1B45; --night: #1C1A47; --night2: #2A2766; --dusk: #7A55B8;
  --cream: #FFF7EE; --paper: #FFFDF9; --lamp: #FFC94A; --coral: #FF6B57;
  --mint: #23B88F; --amber: #FFA22B; --alarm: #E8392F; --muted: #6E6A8E; --line: #EDE4D8;
  /* Donkerder tinten voor tekst en knoppen, zodat het contrast klopt */
  --coral-deep: #DF4A36; --coral-ink: #C23A26; --alarm-ink: #C42A21; --amber-ink: #8A5200; --mint-ink: #0F7A5C;
  --r: 22px;
  --font-body: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: Nunito, ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 17px/1.55 var(--font-body); overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 900; line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(28px, 6vw, 40px); text-wrap: balance; }
h3 { font-size: 21px; font-weight: 800; }
p { margin: 0; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
:focus-visible { outline: 3px solid var(--lamp); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 10; background: var(--paper); color: var(--ink); padding: 12px 16px; border-radius: 12px; font-weight: 700; }
.skip:focus { top: 12px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Knoppen */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 8px 26px; border-radius: 999px; font: 800 19px/1.1 var(--font-display); text-decoration: none; border: 0; cursor: pointer; }
.btn-primary { background: var(--coral-deep); color: #fff; box-shadow: 0 10px 28px rgba(255,107,87,.35); }
.btn-primary:hover { background: #D2432F; }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.2); }
.btn-line { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-line:hover { background: #fff; }
.btn small { font: 600 13px/1 var(--font-body); opacity: .95; display: block; margin-bottom: 4px; }
.btn .stack { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-color: var(--coral); text-decoration-thickness: 2px; text-underline-offset: 4px; padding: 6px 0; }
.more::after { content: "→"; }

/* Menu (bovenaan elke pagina, op donkere achtergrond) */
.nav { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; padding-top: max(16px, env(safe-area-inset-top)); padding-bottom: 6px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 900 22px/1 var(--font-display); color: #fff; padding: 4px 0; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.navcta { margin-left: auto; display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: rgba(255,255,255,.14); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.4); color: #fff; text-decoration: none; font: 800 15px/1 var(--font-display); }
.navcta:hover, .navcta[aria-current="page"] { background: rgba(255,255,255,.26); }
.navlinks { order: 3; width: 100%; list-style: none; margin: 0; padding: 0; display: flex; gap: 2px 18px; overflow-x: auto; scrollbar-width: none; }
.navlinks::-webkit-scrollbar { display: none; }
.navlinks a { display: inline-block; padding: 10px 0; color: rgba(255,255,255,.88); text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap; border-bottom: 2px solid transparent; }
.navlinks a:hover { color: #fff; }
.navlinks a[aria-current="page"] { color: #fff; border-bottom-color: var(--lamp); }
@media (min-width: 760px) {
  .navlinks { order: 0; width: auto; margin-left: auto; gap: 26px; overflow: visible; }
  .navcta { margin-left: 4px; }
}

/* Sterrenhemel */
.stars { position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(1.6px 1.6px at 8% 12%, #fff 98%, transparent),
    radial-gradient(1.2px 1.2px at 22% 30%, rgba(255,255,255,.8) 98%, transparent),
    radial-gradient(1.8px 1.8px at 35% 8%, #fff 98%, transparent),
    radial-gradient(1.2px 1.2px at 48% 22%, rgba(255,255,255,.7) 98%, transparent),
    radial-gradient(1.6px 1.6px at 62% 14%, #fff 98%, transparent),
    radial-gradient(1.2px 1.2px at 74% 34%, rgba(255,255,255,.8) 98%, transparent),
    radial-gradient(1.4px 1.4px at 90% 20%, #fff 98%, transparent),
    radial-gradient(1.2px 1.2px at 14% 52%, rgba(255,255,255,.6) 98%, transparent),
    radial-gradient(1.4px 1.4px at 84% 50%, rgba(255,255,255,.7) 98%, transparent),
    radial-gradient(1.2px 1.2px at 56% 44%, rgba(255,255,255,.6) 98%, transparent),
    radial-gradient(1.2px 1.2px at 30% 62%, rgba(255,255,255,.5) 98%, transparent),
    radial-gradient(1.2px 1.2px at 95% 66%, rgba(255,255,255,.5) 98%, transparent); }

/* Hero (landingspagina) */
.hero { position: relative; color: #fff; background: linear-gradient(180deg, var(--night) 0%, var(--night2) 45%, var(--dusk) 100%); overflow: hidden; }
.hero-inner { position: relative; z-index: 1; display: grid; gap: 28px; padding-top: 30px; padding-bottom: 50px; }
.hills { position: absolute; left: 0; right: 0; bottom: 56px; width: 100%; height: 90px; }
.road { position: absolute; left: 0; right: 0; bottom: 0; height: 56px; background: #1C1A47; }
.road::after { content: ""; position: absolute; left: 0; right: 0; top: 26px; height: 5px; background: repeating-linear-gradient(90deg, rgba(110,106,142,.7) 0 38px, transparent 38px 90px); }
.hero h1 { font-size: clamp(34px, 9vw, 58px); max-width: 14ch; }
.hero .lead { font-size: 19px; color: rgba(255,255,255,.9); max-width: 34ch; margin-top: 16px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.note { margin-top: 14px; font-size: 15px; color: rgba(255,255,255,.82); max-width: 40ch; }
.moon { position: absolute; top: 120px; right: 6%; width: 64px; height: 64px; border-radius: 50%; box-shadow: 14px -6px 0 0 #FFE7A6; transform: rotate(-20deg); filter: drop-shadow(0 0 24px rgba(255,231,166,.45)); }
.scene { position: relative; max-width: 560px; width: 100%; justify-self: center; }
.scene svg { width: 100%; height: auto; overflow: visible; }
.lamp-glow { animation: glow 4s ease-in-out infinite; transform-origin: center; }
@keyframes glow { 0%,100% { opacity: .75; } 50% { opacity: 1; } }
.rider { animation: bob 1.1s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-1.5px); } }
@media (prefers-reduced-motion: reduce) { .lamp-glow, .rider { animation: none; } html { scroll-behavior: auto; } }
@media (min-width: 860px) {
  .hero-inner { grid-template-columns: 1.05fr 1fr; align-items: end; padding-top: 56px; }
  .hero-text { padding-bottom: 70px; }
  .scene { justify-self: end; }
  .moon { top: 90px; }
}

/* Kop van een gewone pagina */
.top { position: relative; color: #fff; background: linear-gradient(180deg, var(--night) 0%, var(--night2) 60%, var(--dusk) 130%); overflow: hidden; }
.top-inner { position: relative; z-index: 1; padding-top: 34px; padding-bottom: 46px; }
.top h1 { font-size: clamp(32px, 8vw, 50px); max-width: 18ch; text-wrap: balance; }
.top .lead { font-size: 19px; color: rgba(255,255,255,.9); max-width: 40ch; margin-top: 14px; }
.top .kicker { color: var(--lamp); }

/* Secties */
section { padding: 64px 0; }
.band { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kicker { font: 800 14px/1 var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--coral-ink); margin-bottom: 12px; }
.intro { max-width: 40ch; margin-top: 14px; color: var(--muted); font-size: 18px; }
.after { margin-top: 28px; }
.small { font-size: 15px; color: var(--muted); margin-top: 18px; }

/* Stappen met schermafbeeldingen */
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 22px; grid-template-columns: 1fr; }
.step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 18px 22px; display: grid; grid-template-columns: 112px 1fr; gap: 18px; align-items: center; }
.band .step { background: var(--cream); }
.shot { border-radius: 16px; overflow: hidden; box-shadow: 0 8px 24px rgba(31,27,69,.12); border: 1px solid var(--line); background: var(--cream); aspect-ratio: 414 / 655; }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.shot.wide { aspect-ratio: 414 / 415; }
.num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; font: 900 15px/1 var(--font-display); margin-bottom: 10px; }
.step p { color: var(--muted); margin-top: 6px; font-size: 16px; }
@media (min-width: 640px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) {
  .steps.four { grid-template-columns: repeat(4, 1fr); }
  .steps.four .step { grid-template-columns: 1fr; align-items: start; padding: 16px 16px 22px; }
}

/* Twee kolommen */
.split { display: grid; gap: 32px; align-items: center; }
.split > .shot { max-width: 260px; width: 100%; margin: 0 auto; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } .split.flip > :first-child { order: 2; } }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; padding: 0; list-style: none; }
.chips li { background: var(--cream); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }

/* Voorbeeld van meldingen */
.phone-bg { border-radius: 30px; padding: 22px 16px; background: linear-gradient(180deg, var(--night) 0%, var(--night2) 55%, var(--dusk) 100%); box-shadow: 0 20px 50px rgba(31,27,69,.25); display: grid; gap: 10px; max-width: 420px; margin: 0 auto; width: 100%; }
.push { display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: start; background: rgba(255,253,249,.96); border-radius: 18px; padding: 12px 14px; color: var(--ink); }
.push img { width: 38px; height: 38px; border-radius: 9px; }
.push .ptop { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted); }
.push .ptop b { color: var(--ink); font-weight: 700; font-size: 15px; }
.push p { font-size: 15px; line-height: 1.35; margin-top: 2px; }
.push.alarm { background: #fff; box-shadow: inset 4px 0 0 var(--alarm); }
.push.alarm .ptop b { color: var(--alarm-ink); }
.clock { text-align: center; color: rgba(255,255,255,.92); font: 800 44px/1 var(--font-display); margin: 4px 0 10px; }
.clock small { display: block; font: 500 14px/1.4 var(--font-body); opacity: .85; margin-top: 6px; }
.phone-cap { text-align: center; font-size: 13px; color: rgba(255,255,255,.8); margin-top: 4px; }

/* Lijst met vinkjes */
.list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.list li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; }
.tick { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; margin-top: 1px; background: #E6F6F0; }
.tick.no { background: #FDE6E4; }
.tick.warn { background: #FFF1D6; }

/* Kaartjes */
.grid { display: grid; gap: 16px; margin-top: 36px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid.two { grid-template-columns: 1fr 1fr; } .grid.three { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.band .card { background: var(--cream); }
.card h3 { font-size: 19px; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 16px; }
.card p + p { margin-top: 10px; }
.card .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 14px; }
.card .list { margin-top: 16px; }

/* 112-balk */
.sos { margin-top: 16px; background: var(--alarm-ink); color: #fff; border-radius: var(--r); padding: 22px; display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; justify-content: space-between; }
.sos h2, .sos h3 { font-size: 21px; font-weight: 800; }
.sos p { font-size: 16px; margin-top: 4px; }
.sos a { background: #fff; color: var(--alarm-ink); text-decoration: none; border-radius: 999px; padding: 14px 24px; font: 900 18px/1 var(--font-display); }

/* Afsluiter en voet */
.closing { text-align: center; color: #fff; background: linear-gradient(180deg, var(--night2), var(--night)); }
.closing .house { width: 120px; margin: 0 auto 22px; }
.closing p { color: rgba(255,255,255,.86); margin: 12px auto 0; max-width: 36ch; }
.closing .ctas { justify-content: center; }
footer { background: var(--night); color: rgba(255,255,255,.78); font-size: 15px; padding: 36px 0 max(28px, env(safe-area-inset-bottom)); border-top: 1px solid rgba(255,255,255,.08); }
footer a { color: #fff; text-underline-offset: 3px; }
.foot { display: grid; gap: 26px; }
.foot .brand { font-size: 20px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.foot li a { display: inline-block; padding: 7px 0; }
.foot h2 { font: 800 13px/1 var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.7); margin-bottom: 8px; }
.foot-note { margin-top: 10px; max-width: 34ch; }
.legal { margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; font-size: 14px; }
@media (min-width: 720px) { .foot { grid-template-columns: 1.4fr 1fr 1fr; } }

/* Leespagina's */
.prose { max-width: 720px; margin: 0 auto; padding: 44px 20px 72px; }
.prose > h2 { font-size: clamp(25px, 5.4vw, 32px); margin-top: 52px; scroll-margin-top: 16px; }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 28px; font-size: 20px; }
.prose p, .prose ul, .prose ol, .prose table, .prose figure, .prose .callout { margin-top: 14px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-top: 6px; }
.prose .steps, .prose .list { padding-left: 0; }
.prose .steps > li { margin-top: 0; }
.prose .list li { margin-top: 0; }
.prose li::marker { color: var(--coral-ink); font-weight: 700; }
.prose a:not(.btn) { text-decoration: underline; text-decoration-color: var(--coral); text-decoration-thickness: 2px; text-underline-offset: 3px; font-weight: 600; }
.prose .ctas { margin-top: 24px; }
.prose .grid { margin-top: 20px; }
.prose .steps { margin-top: 22px; }
@media (min-width: 640px) { .prose .steps { grid-template-columns: 1fr; } }
.prose .step { grid-template-columns: 128px 1fr; align-items: start; }
.prose .step h3 { margin-top: 0; }
.prose .step p { color: var(--ink); }
.prose .step .shot.wide { align-self: start; }

.callout { background: var(--paper); border: 1px solid var(--line); border-left: 5px solid var(--dusk); border-radius: 16px; padding: 16px 18px; }
.callout p:first-child { margin-top: 0; }
.callout.warn { border-left-color: var(--amber); background: #FFF6E3; }
.callout.alarm { border-left-color: var(--alarm); background: #FDEDEB; }
.callout.ok { border-left-color: var(--mint); background: #EEF9F5; }
.callout strong { font-family: var(--font-display); font-weight: 800; }

/* CONCEPT-balk en invulvelden */
.concept { margin: 0 0 30px; border: 2px dashed var(--amber-ink); background: #FFF1D6; color: var(--ink); border-radius: 16px; padding: 16px 18px; }
.concept strong.badge { display: inline-block; background: var(--amber-ink); color: #fff; font: 900 14px/1 var(--font-display); letter-spacing: .12em; padding: 7px 10px; border-radius: 8px; margin-bottom: 10px; }
.concept p { margin-top: 0; font-size: 16px; }
mark.ph { background: #FFE39A; color: var(--ink); border: 1px dashed var(--amber-ink); border-radius: 6px; padding: 1px 5px; font: 600 .92em/1.3 ui-monospace, "SF Mono", Menlo, Consolas, monospace; overflow-wrap: anywhere; }

/* Tabel */
.table { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; font-size: 16px; }
.table caption { text-align: left; color: var(--muted); font-size: 15px; padding-bottom: 8px; }
.table { table-layout: auto; }
.table th, .table td { overflow-wrap: anywhere; text-align: left; vertical-align: top; padding: 12px 14px; border-top: 1px solid var(--line); }
.table thead th { border-top: 0; font: 800 14px/1.2 var(--font-display); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); background: var(--cream); }
.table tbody th { font-weight: 600; }
.table td.t { font-weight: 700; font-variant-numeric: tabular-nums; }

/* Vragen */
.faq { display: grid; gap: 10px; margin-top: 22px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; }
.band .faq details { background: var(--cream); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; position: relative; font: 800 18px/1.3 var(--font-display); border-radius: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 10px; height: 10px; margin-top: -8px; border-right: 2.5px solid var(--coral-ink); border-bottom: 2.5px solid var(--coral-ink); transform: rotate(45deg); transition: transform .15s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq .a { padding: 0 18px 18px; }
.faq .a > :first-child { margin-top: 0; }
.faq .a p, .faq .a ul, .faq .a ol { margin-top: 10px; }
.faq .a ul, .faq .a ol { padding-left: 22px; }
.faq .a li { margin-top: 4px; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* 404 */
.lost { text-align: center; padding: 56px 20px 80px; }
.lost .house { width: 130px; margin: 0 auto 20px; }
.lost p { color: var(--muted); max-width: 34ch; margin: 12px auto 0; font-size: 18px; }
.lost .ctas { justify-content: center; }

@media print {
  .top, .hero, .closing, footer { background: #fff !important; color: #000 !important; }
  .stars, .moon, .hills, .road, .navlinks, .navcta, .skip { display: none !important; }
  .brand, .top .lead, .top .kicker { color: #000 !important; }
}
