/* DRKSN Dev — gedeelde stijl. Kleuren en letters uit Family Planner (dagkleuren, Bricolage Grotesque + Figtree). */
:root {
  --ink: #17181D;
  --paper: #FAF8F3;
  --card: #FFFFFF;
  --soft: #5D606B;
  --line: #E7E3D9;
  --green: #2F8A55;
  --green-deep: #14633F;
  --purple: #8574B8;
  --ma: #3FA535; --di: #FFD200; --wo: #E3342F; --do: #1E8FD8; --vr: #F07C1E; --za: #17181D; --zo: #FFFFFF;
  --p1: #4A86E8; --p2: #E8558F; --p3: #2EB8A6; --p4: #9B7BEA; --p5: #F29B38; --p6: #F07A5A;
  --radius: 28px;
  --max: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #F4F2EC; --paper: #111216; --card: #1C1D23; --soft: #A4A7B2; --line: #2C2E36; --za: #F4F2EC; --zo: #2C2E36;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #F4F2EC; --paper: #111216; --card: #1C1D23; --soft: #A4A7B2; --line: #2C2E36; --za: #F4F2EC; --zo: #2C2E36;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 18px/1.6 "Figtree", system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
}
h1, h2, h3, .display { font-family: "Bricolage Grotesque", "Figtree", system-ui, sans-serif; letter-spacing: -0.02em; line-height: 1.05; margin: 0; }
h1 { font-size: clamp(44px, 9vw, 112px); font-weight: 800; }
h2 { font-size: clamp(32px, 5.5vw, 64px); font-weight: 800; }
h3 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 700; }
p { margin: 0 0 1em; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }

/* Talen: alleen de gekozen taal tonen */
html[data-lang="nl"] [lang]:not([lang="nl"]):not(html),
html[data-lang="en"] [lang]:not([lang="en"]):not(html),
html[data-lang="de"] [lang]:not([lang="de"]):not(html),
html[data-lang="fr"] [lang]:not([lang="fr"]):not(html) { display: none !important; }

/* Kop */
.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.logo { white-space: nowrap; font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 22px; text-decoration: none; letter-spacing: 0.02em; display: inline-flex; align-items: center; gap: 10px; }
.logo .bar { display: inline-flex; gap: 2px; }
.logo .bar i { width: 5px; height: 18px; border-radius: 2px; display: block; }
.top nav { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.top nav a { white-space: nowrap; text-decoration: none; font-weight: 600; font-size: 16px; padding: 8px 12px; border-radius: 999px; }
.top nav a:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); }
.lang { -webkit-appearance: none; appearance: none; border: 1.5px solid var(--line); background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%235D606B' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 11px center; color: var(--ink); font: 700 14px "Figtree", sans-serif; border-radius: 999px; padding: 7px 28px 7px 12px; cursor: pointer; }
@media (max-width: 640px) { .top nav a.hide-sm { display: none; } }
@media (max-width: 440px) {
  .top .wrap { gap: 8px; }
  .top nav { gap: 2px; }
  .top nav a { padding: 8px 8px; font-size: 15px; }
  .logo { font-size: 19px; gap: 8px; }
  .logo .bar i { width: 4px; height: 16px; }
  .lang { padding: 6px 24px 6px 10px; background-position: right 9px center; }
}

.days i:nth-child(1) { background: var(--ma); }
.days i:nth-child(2) { background: var(--di); }
.days i:nth-child(3) { background: var(--wo); }
.days i:nth-child(4) { background: var(--do); }
.days i:nth-child(5) { background: var(--vr); }
.days i:nth-child(6) { background: var(--za); }
.days i:nth-child(7) { background: var(--zo); box-shadow: inset 0 0 0 1.5px var(--line); }

/* Knoppen */
.btn { display: inline-flex; align-items: center; gap: 10px; font: 800 17px "Figtree", sans-serif; text-decoration: none; padding: 16px 26px; border-radius: 999px; background: var(--ink); color: var(--paper); transition: transform .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn.green { background: var(--green); color: #fff; }
.badge { display: inline-block; font: 800 13px "Figtree", sans-serif; letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 8%, transparent); }

/* Secties */
section { padding: clamp(64px, 10vw, 140px) 0; position: relative; }
.lead { font-size: clamp(19px, 2vw, 23px); color: var(--soft); max-width: 40ch; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.card { background: var(--card); border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--soft); margin: 0; }
.chip { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 28px; margin-bottom: 18px; }

/* Scroll-animaties: alleen met JS en zonder "minder beweging" */
.js .reveal { opacity: 0; transform: translateY(40px) scale(.98); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: .08s; }
.js .reveal[data-delay="2"] { transition-delay: .16s; }
.js .reveal[data-delay="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .spin, .float { animation: none !important; }
}

/* Voet */
footer { padding: 48px 0 64px; border-top: 1px solid var(--line); color: var(--soft); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
footer a { text-decoration: none; font-weight: 600; }
footer a:hover { text-decoration: underline; }
footer .grow { flex: 1 1 auto; }

/* Lange tekst (privacy, support) */
.doc { max-width: 760px; }
.doc h1 { font-size: clamp(40px, 7vw, 72px); margin-bottom: 16px; }
.doc h2 { font-size: clamp(26px, 3.4vw, 34px); margin: 48px 0 14px; }
.doc p, .doc li { color: var(--ink); }
.doc .muted { color: var(--soft); }
.doc ul { padding-left: 1.2em; margin: 0 0 1em; }
.doc li { margin: .35em 0; }
.doc .summary { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; margin: 28px 0; }
.doc .summary li { margin: .5em 0; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 18px 22px; margin: 12px 0; }
details summary { cursor: pointer; font-weight: 800; font-size: 19px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; font-size: 26px; line-height: 1; color: var(--soft); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details > div { padding-top: 10px; color: var(--soft); }
details > div p:last-child { margin-bottom: 0; }
.path { font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }

/* Lange Duitse/Franse woorden mogen afbreken */
h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
.doc p, .doc li, details summary { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
@media (max-width: 370px) {
  .logo { font-size: 17px; gap: 6px; }
  .logo .bar { display: none; }
  .top nav a { padding: 8px 6px; font-size: 14px; }
  .lang { font-size: 13px; padding: 5px 20px 5px 8px; background-position: right 7px center; }
}
