:root {
    --canvas: #FFFFFF;
    --surface: #FAFAF8;
    --ink: #1A1A1A;
    --ink-soft: #2F3437;
    --muted: #787774;
    --line: #EAEAEA;
    --line-soft: rgba(0,0,0,0.06);
    --accent-bg: #EDF3EC;
    --accent-fg: #346538;
    --warn-bg: #FBF3DB;
    --warn-fg: #956400;
    --err-bg: #FDEBEC;
    --err-fg: #9F2F2D;
    --info-bg: #E1F3FE;
    --info-fg: #1F6C9F;
    --radius: 6px;
    --radius-lg: 12px;
    --max: 1120px;
    --max-prose: 720px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --font-sans: "Plus Jakarta Sans", "Helvetica Neue", system-ui, sans-serif;
    --font-serif: "Instrument Serif", "Newsreader", "Lyon Text", Georgia, serif;
    --font-mono: "JetBrains Mono", "SF Mono", "Geist Mono", monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--canvas);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink-soft); }

img, svg { max-width: 100%; display: block; }

::selection { background: #1A1A1A; color: #FFF; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.prose { max-width: var(--max-prose); }

.eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 4px 10px;
    border: 1px solid var(--line);
    border-radius: 9999px;
}

h1, h2, h3 { font-family: var(--font-sans); font-weight: 400; letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 0.4em; color: var(--ink); }
h1 { font-size: clamp(40px, 6vw, 76px); font-weight: 300; letter-spacing: -0.03em; }
h2 { font-size: clamp(28px, 3.6vw, 44px); font-weight: 400; letter-spacing: -0.025em; }
h3 { font-size: clamp(20px, 2vw, 24px); font-weight: 500; letter-spacing: -0.01em; line-height: 1.3; }
p { margin: 0 0 1em; color: var(--ink-soft); }
.lead { font-size: clamp(18px, 1.5vw, 21px); color: var(--ink-soft); max-width: 60ch; }

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,0.85);
    backdrop-filter: saturate(160%) blur(10px);
    -webkit-backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid var(--line);
}
.site-header .inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 64px;
}
.brand {
    display: inline-flex; align-items: center; gap: 10px;
    font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
    font-size: 13px; text-decoration: none;
}
.brand .mark {
    width: 22px; height: 22px; border: 1px solid var(--ink); border-radius: 4px;
    display: grid; place-items: center;
}
.brand .mark::before {
    content: ""; width: 8px; height: 8px; background: var(--ink); border-radius: 1px;
}
.site-nav a { margin-left: 28px; text-decoration: none; font-size: 14px; color: var(--ink-soft); }
.site-nav a:hover { color: var(--ink); }

/* Language switcher (dropdown) */
.lang-switcher { position: relative; display: inline-block; margin-left: 28px; }
.lang-toggle {
    display: inline-flex; align-items: center; gap: 8px;
    border: 1px solid var(--line); background: #FFF; color: var(--ink-soft);
    border-radius: 6px; padding: 6px 10px; cursor: pointer;
    font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em;
    line-height: 1;
    transition: border-color 160ms var(--ease), color 160ms var(--ease);
}
.lang-toggle:hover { border-color: var(--ink); color: var(--ink); }
.lang-switcher.is-open .lang-toggle { border-color: var(--ink); color: var(--ink); }
.lang-toggle .flag { display: inline-flex; align-items: center; }
.lang-toggle .flag svg { display: block; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,0.04); }
.lang-toggle .code { line-height: 1; }
.lang-toggle .chev { transition: transform 180ms var(--ease); color: var(--muted); }
.lang-switcher.is-open .lang-toggle .chev { transform: rotate(180deg); }

.lang-menu {
    position: absolute; right: 0; top: calc(100% + 6px);
    list-style: none; margin: 0; padding: 6px;
    background: #FFF; border: 1px solid var(--line); border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    min-width: 180px; z-index: 60;
}
.lang-menu li { margin: 0; padding: 0; }
.lang-opt {
    display: flex; align-items: center; gap: 10px; width: 100%;
    background: transparent; border: 0; color: var(--ink-soft);
    padding: 8px 10px; border-radius: 6px; cursor: pointer;
    font: inherit; font-size: 14px; text-align: left;
    transition: background 140ms var(--ease), color 140ms var(--ease);
}
.lang-opt:hover { background: var(--surface); color: var(--ink); }
.lang-opt.is-active { background: var(--ink); color: #FFF; }
.lang-opt.is-active:hover { background: var(--ink); color: #FFF; }
.lang-opt .flag svg { display: block; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,0.04); }
.lang-opt .name { line-height: 1.2; }

@media (max-width: 880px) {
    .lang-switcher { margin-left: 0; }
    .lang-toggle .code { display: none; }
    .lang-toggle { padding: 6px 8px; }
}

/* Hero */
.hero { padding: clamp(72px, 12vw, 160px) 0 clamp(48px, 8vw, 96px); position: relative; overflow: hidden; }
.hero::before {
    content: ""; position: absolute; inset: -20% 40% auto auto; width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(120,120,140,0.06) 0%, transparent 60%);
    pointer-events: none; z-index: 0;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { margin-top: 24px; max-width: 18ch; }
.hero .lead { margin-top: 28px; }
.hero .stats {
    margin-top: 56px; display: grid; grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 24px; border-top: 1px solid var(--line); padding-top: 32px;
}
.stat .num { font-family: var(--font-sans); font-weight: 300; font-size: 44px; line-height: 1; color: var(--ink); letter-spacing: -0.02em; }
.stat .lbl { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }

/* Sections */
section { padding: clamp(64px, 10vw, 128px) 0; }
.section-title { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }
.section-title .num { font-family: var(--font-mono); font-size: 12px; color: var(--muted); letter-spacing: 0.2em; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.bento .card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: box-shadow 220ms var(--ease), transform 220ms var(--ease);
}
.bento .card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.bento .card.span-8 { grid-column: span 8; }
.bento .card.span-6 { grid-column: span 6; }
.bento .card.span-4 { grid-column: span 4; }
.bento .card h3 { margin-bottom: 8px; }
.bento .card p { color: var(--muted); margin: 0; font-size: 15px; }

/* Form */
.form-wrap {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: clamp(28px, 4vw, 48px);
}
.form-step {
    border-top: 1px solid var(--line);
    padding-top: 40px; margin-top: 40px;
}
.form-step:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.form-step header { display: flex; align-items: baseline; gap: 16px; margin-bottom: 24px; }
.form-step header .step-num { font-family: var(--font-mono); font-size: 12px; color: var(--muted); letter-spacing: 0.2em; }
.form-step header h2 { font-size: 26px; margin: 0; }
.form-step header p { margin: 0; color: var(--muted); font-size: 14px; flex-basis: 100%; }

.row { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.col-6 { grid-column: span 6; }
.field.col-4 { grid-column: span 4; }
.field.col-3 { grid-column: span 3; }
.field.col-12 { grid-column: span 12; }
.field label { font-size: 13px; color: var(--ink-soft); font-weight: 500; }
.field .hint { font-size: 12px; color: var(--muted); }
.field input[type="text"], .field input[type="email"], .field textarea, .field select {
    background: #FFF; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 11px 14px; font: inherit; color: var(--ink);
    transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
    width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus {
    outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(26,26,26,0.06);
}
.field textarea { resize: vertical; min-height: 96px; }
.field .err { color: var(--err-fg); font-size: 12px; min-height: 14px; }
.field input.invalid, .field textarea.invalid, .field select.invalid { border-color: var(--err-fg); }

.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Problem grid */
.cat { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px 24px; margin-bottom: 12px; background: #FFF; }
.cat > summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; padding: 4px 0; }
.cat > summary::-webkit-details-marker { display: none; }
.cat > summary .toggle { font-family: var(--font-mono); font-size: 18px; line-height: 1; color: var(--muted); }
.cat[open] > summary .toggle::before { content: "−"; }
.cat:not([open]) > summary .toggle::before { content: "+"; }
.cat > summary .cat-title { font-weight: 600; }
.cat > summary .cat-meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.15em; color: var(--muted); text-transform: uppercase; }
.cat .problems { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }

.problem {
    display: grid; grid-template-columns: 1fr 260px; gap: 16px; align-items: center;
    padding: 14px 0; border-top: 1px solid var(--line);
}
.problem:first-child { border-top: 0; }
.problem .p-label { font-size: 15px; color: var(--ink-soft); }
.problem.active .p-label { color: var(--ink); font-weight: 500; }
.problem .weight {
    display: flex; align-items: center; gap: 12px;
    opacity: 0.55; transition: opacity 200ms var(--ease);
}
.problem.active .weight { opacity: 1; }
.problem .weight input[type="range"] { flex: 1; accent-color: var(--ink); }
.problem .weight .val {
    font-family: var(--font-mono); font-size: 13px; min-width: 32px; text-align: right;
    padding: 3px 8px; border-radius: 4px; background: transparent; color: var(--ink);
    transition: background 180ms var(--ease), color 180ms var(--ease);
}
.problem[data-severity="low"]  .weight .val { background: var(--info-bg);   color: var(--info-fg);   }
.problem[data-severity="mid"]  .weight .val { background: var(--warn-bg);   color: var(--warn-fg);   }
.problem[data-severity="high"] .weight .val { background: var(--err-bg);    color: var(--err-fg);    font-weight: 600; }
.problem[data-severity="high"] .weight input[type="range"] { accent-color: var(--err-fg); }

.scale-legend {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
    background: var(--info-bg); color: var(--info-fg);
    border-radius: var(--radius); padding: 14px 18px; margin-bottom: 20px;
    font-size: 13px;
}
.scale-legend strong { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 4px; }

.safety-tag {
    display: inline-block; margin-left: 8px;
    background: var(--err-bg); color: var(--err-fg);
    font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.15em;
    text-transform: uppercase; padding: 3px 8px; border-radius: 9999px;
    vertical-align: middle;
}
.safety-note {
    background: var(--err-bg); color: var(--err-fg);
    border-radius: var(--radius); padding: 12px 16px; margin: 14px 0 4px;
    font-size: 13px; line-height: 1.5;
}

/* Consent */
.consent { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; }
.consent input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--ink); }
.consent label { font-size: 14px; color: var(--ink-soft); line-height: 1.5; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--ink); color: #FFF; border: 0; padding: 14px 22px;
    border-radius: var(--radius); font: inherit; font-weight: 500; font-size: 15px;
    cursor: pointer; text-decoration: none;
    transition: background 180ms var(--ease), transform 120ms var(--ease);
}
.btn:hover { background: #333; }
.btn:active { transform: scale(0.985); }
.btn[disabled] { background: #999; cursor: not-allowed; transform: none; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--ink); }
.btn .arrow {
    display: inline-grid; place-items: center;
    width: 22px; height: 22px; border-radius: 4px; background: rgba(255,255,255,0.12);
    font-size: 13px;
}

/* Submit area */
.submit-row { display: flex; align-items: center; gap: 16px; margin-top: 32px; flex-wrap: wrap; }
.submit-row .meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.15em; color: var(--muted); text-transform: uppercase; }

/* Banner */
.banner { padding: 14px 18px; border-radius: var(--radius); font-size: 14px; margin-bottom: 24px; border: 1px solid var(--line); }
.banner.success { background: var(--accent-bg); color: var(--accent-fg); border-color: transparent; }
.banner.error   { background: var(--err-bg);    color: var(--err-fg);    border-color: transparent; }
.banner.info    { background: var(--info-bg);   color: var(--info-fg);   border-color: transparent; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; font-weight: 500; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { font-family: var(--font-mono); color: var(--muted); }
.faq details[open] summary .icon::before { content: "−"; }
.faq details:not([open]) summary .icon::before { content: "+"; }
.faq details p { margin-top: 12px; color: var(--muted); font-size: 15px; max-width: 60ch; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 64px; margin-top: 48px; }
.site-footer .inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: flex-end; }
.site-footer .legal { color: var(--muted); font-size: 13px; }
.site-footer .legal a { color: var(--muted); margin-left: 18px; }

/* Reveal animatie alleen op desktop. Op mobiel direct zichtbaar. */
@media (min-width: 881px) {
    .reveal { opacity: 0; transform: translateY(12px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
    .reveal.in { opacity: 1; transform: none; }
}

/* Status pages */
.status-page { min-height: 70vh; display: grid; place-items: center; padding: 80px 0; }
.status-card { max-width: 560px; text-align: left; }
.status-card .icon-circle {
    width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line);
    display: grid; place-items: center; margin-bottom: 24px;
    font-family: var(--font-mono); font-size: 22px;
}

/* Utility classes (vervangen inline styles voor strikte CSP) */
.is-hidden { display: none !important; }
.mt-16 { margin-top: 16px; }
.mt-32 { margin-top: 32px; }
.text-muted-sm { color: var(--muted); font-size: 14px; }
.placeholder-text { font-size: 14px; color: var(--muted); }
.h1-page { margin-top: 16px; }
.h1-status { font-size: clamp(32px, 4vw, 52px); margin-top: 16px; }

/* Responsive */
@media (max-width: 880px) {
    .bento .card.span-8, .bento .card.span-6, .bento .card.span-4 { grid-column: span 12; }
    .field.col-6, .field.col-4, .field.col-3 { grid-column: span 12; }
    .hero .stats { grid-template-columns: 1fr; }
    .site-nav > a { display: none; }

    .cat { padding: 16px; }
    .problem {
        display: flex; flex-direction: column; align-items: stretch;
        gap: 10px; padding: 14px 0;
    }
    .problem .p-label { font-size: 14px; line-height: 1.4; }
    .problem .weight { width: 100%; }
    .scale-legend { grid-template-columns: 1fr; gap: 8px; }
    .form-wrap { padding: 20px; }
    .form-step header { flex-wrap: wrap; }
    .form-step header h2 { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    * { animation: none !important; transition: none !important; }
}

.disclaimer-bar {
    background: #1A1A1A;
    color: #E8E8E6;
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
    padding: 8px 16px;
    font-family: var(--font-sans);
    letter-spacing: 0.01em;
}
.disclaimer-bar strong { color: #FFFFFF; font-weight: 600; }
@media (max-width: 600px) {
    .disclaimer-bar { font-size: 11px; padding: 7px 12px; }
}
