:root {
    --coral:       #E87870;
    --coral-dark:  #C85E57;
    --coral-light: #FDF0EE;
    --green:       #2D7A50;
    --green-dark:  #1E5A3A;
    --green-light: #EAF5EE;
    --gold:        #C09848;
    --yellow:      #E8C13A;
    --text:        #1a1a1e;
    --muted:       #6b7280;
    --border:      #e5e7eb;
    --white:       #ffffff;
    --radius:      12px;
    --max:         820px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
    font-size: 16px;
}

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Language toggle ────────────────────────────────── */
.t-en { display: none; }
html[data-lang="en"] .t-nl { display: none; }
html[data-lang="en"] .t-en { display: revert; }

/* ── Layout ─────────────────────────────────────────── */
.container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Nav ─────────────────────────────────────────────── */
nav {
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
    position: sticky;
    top: 0;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(8px);
    z-index: 100;
}
nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.nav-brand {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--coral);
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
}
.nav-brand span { font-size: 1.4rem; }
nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
nav ul li a {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 500;
}
nav ul li a:hover { color: var(--coral); text-decoration: none; }

.lang-toggle {
    background: none;
    border: 1.5px solid var(--border);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
    font-family: inherit;
}
.lang-toggle:hover { border-color: var(--coral); color: var(--coral); }

/* ── Intro / personal letter ─────────────────────────── */
.intro {
    padding: 64px 0 48px;
}
.intro-inner {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}
.intro-logo {
    flex-shrink: 0;
    width: 96px;
    height: 96px;
    border-radius: 22px;
    overflow: hidden;
}
.intro-logo img { width: 100%; height: 100%; object-fit: cover; }
.intro-logo-fallback {
    width: 96px;
    height: 96px;
    border-radius: 22px;
    background: linear-gradient(135deg, #E8C13A 0%, #E87870 40%, #C09848 70%, #2D7A50 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
    flex-shrink: 0;
}
.intro-text h1 {
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: -0.4px;
    margin-bottom: 20px;
    color: var(--text);
}
.intro-text p {
    color: #3a3a3a;
    margin-bottom: 14px;
    font-size: 1.02rem;
    line-height: 1.7;
}
.intro-text .sign-off {
    margin-top: 24px;
    color: var(--muted);
    font-size: 0.95rem;
}
.app-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
    background: var(--coral);
    color: var(--white) !important;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none !important;
    transition: background 0.2s;
}
.app-badge:hover { background: var(--coral-dark); }

/* ── Features ────────────────────────────────────────── */
.features {
    padding: 56px 0;
    background: #fafafa;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.features h2, .section h2 {
    font-size: 1.45rem;
    font-weight: 700;
    margin-bottom: 28px;
    text-align: center;
    color: var(--text);
}
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
}
.feature-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 22px;
    border: 1px solid var(--border);
    transition: border-color 0.2s;
}
.feature-card:hover { border-color: var(--coral); }
.feature-icon { font-size: 26px; margin-bottom: 10px; }
.feature-card h3 { font-size: 0.97rem; font-weight: 700; margin-bottom: 5px; }
.feature-card p { font-size: 0.88rem; color: var(--muted); }

/* ── Privacy / Section ───────────────────────────────── */
.section { padding: 52px 0; }
.section + .section { border-top: 1px solid var(--border); }

/* ── Links box ───────────────────────────────────────── */
.link-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin-top: 20px;
}
.link-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 22px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: var(--text) !important;
    transition: border-color 0.2s, box-shadow 0.2s;
    text-decoration: none !important;
}
.link-card:hover {
    border-color: var(--coral);
    box-shadow: 0 2px 10px rgba(232,120,112,0.12);
    color: var(--coral) !important;
}
.link-card .lc-icon { font-size: 22px; }
.link-card .lc-text small { display: block; font-weight: 400; color: var(--muted); font-size: 0.82rem; }

/* ── Contact ─────────────────────────────────────────── */
.contact-box {
    background: var(--coral-light);
    border-radius: var(--radius);
    padding: 28px 32px;
    margin-top: 16px;
    border: 1px solid rgba(232,120,112,0.2);
}
.contact-box p { margin-bottom: 8px; }
.contact-box a { font-weight: 600; color: var(--green); }

/* ── Footer ──────────────────────────────────────────── */
footer {
    border-top: 1px solid var(--border);
    padding: 24px 0;
    text-align: center;
    color: var(--muted);
    font-size: 0.85rem;
}
footer a { color: var(--muted); }
footer a:hover { color: var(--coral); }

/* ── Document pages (manual, privacy) ───────────────── */
.doc-header {
    background: var(--coral-light);
    padding: 48px 0 32px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 48px;
}
.doc-header .lang-links {
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--muted);
}
.doc-body { padding-bottom: 64px; }
.doc-body h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 40px 0 12px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}
.doc-body h2:first-child { border-top: none; margin-top: 0; }
.doc-body h3 { font-size: 1rem; font-weight: 700; margin: 24px 0 8px; }
.doc-body p { margin-bottom: 12px; color: #333; }
.doc-body ul, .doc-body ol { margin: 0 0 12px 24px; }
.doc-body li { margin-bottom: 6px; color: #333; }
.doc-body pre {
    background: #f3f4f6;
    border-radius: 8px;
    padding: 16px;
    font-size: 0.82rem;
    overflow-x: auto;
    margin-bottom: 16px;
    white-space: pre-wrap;
}
.doc-body .callout {
    background: var(--coral-light);
    border-left: 4px solid var(--coral);
    border-radius: 0 8px 8px 0;
    padding: 14px 18px;
    margin: 16px 0;
    font-size: 0.92rem;
}
.doc-body .warning {
    background: #fff7ed;
    border-left: 4px solid #f97316;
    border-radius: 0 8px 8px 0;
    padding: 14px 18px;
    margin: 16px 0;
    font-size: 0.92rem;
}
.doc-body table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
    font-size: 0.88rem;
}
.doc-body th {
    background: var(--coral-light);
    text-align: left;
    padding: 8px 12px;
    border: 1px solid var(--border);
    font-weight: 600;
}
.doc-body td {
    padding: 8px 12px;
    border: 1px solid var(--border);
    vertical-align: top;
}
.doc-body .meta {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 32px;
}
.uppercase-block {
    font-weight: 700;
    font-size: 0.95rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 16px 20px;
    margin: 16px 0;
}

@media (max-width: 640px) {
    .intro-inner { flex-direction: column; gap: 24px; }
    .intro-text h1 { font-size: 1.55rem; }
    nav ul { gap: 10px; }
    .lang-toggle { padding: 3px 10px; }
}
