/*
 * One — design system.
 * Warm Hermès palette: ink, white, sand, peach, espresso and one orange accent;
 * rounded panels and tiles on one page width, pill buttons, a liquid glass tab bar
 * on mobile. Modern CSS: custom properties, nesting,
 * clamp() fluid type. No framework.
 *
 * Contrast rules for the accent (do not regress):
 * - On --accent always put --ink, never white (white on #f26b1d is 3.0:1).
 * - Orange text below 24px uses --accent-text; --accent-display only for headings.
 * - On --ink and --espresso, --accent may be used as text (6.2:1 / 5.4:1).
 * - --accent-text passes AA on white (6.3:1), sand (5.5:1) and peach (5.3:1).
 */

/* ---------- Tokens ---------- */

:root {
    --ink: #111110;
    --ink-2: #1d1c1a;
    --ink-3: #3a3834;
    --paper: #ffffff;
    --sand: #f2eee8;
    --sand-strong: #e9e3da;
    --paper-2: var(--sand);
    --surface: #ffffff;
    --surface-hover: #fffaf6;
    --on-dark: #ffffff;
    --on-accent: #111110;
    --device: #111110;
    --nav-bg: rgb(255 255 255 / 0.92);
    --glass-strong: rgb(255 255 255 / 0.72);
    --glass-active: rgb(255 255 255 / 0.85);
    --hover-tint: rgb(17 17 16 / 0.05);
    --line-hover: #bdb5a8;
    --danger: #b42318;
    --peach: #fde6d5;
    --peach-strong: #fbd8c0;
    --espresso: #2b1d16;
    --espresso-2: #3a2a21;
    --espresso-3: #4d3a2e;
    --line: #e4ded5;
    --line-soft: #f1ede6;
    --line-strong: #d8d2c8;
    --line-dark: rgb(255 255 255 / 0.16);

    --accent: #f26b1d;
    --accent-hover: #e45f12;
    --accent-text: #a3410a;
    --accent-display: #cf5a10;

    --text: #1f1d1a;
    --muted: #5c5850;
    --muted-2: #6b665e;
    --text-inverse: #f5f2ec;
    --muted-inverse: #c9c3b8;

    --font-display: 'Urbanist Variable', 'Urbanist', system-ui, sans-serif;
    --font-body: 'Geist Variable', 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-mono: 'Geist Mono Variable', 'Geist Mono', ui-monospace, 'SFMono-Regular', monospace;

    --step-hero: clamp(2.75rem, 7.4vw, 6.5rem);
    --step-1: clamp(2.4rem, 5.6vw, 4.5rem);
    --step-2: clamp(2rem, 4.4vw, 3.5rem);
    --step-3: clamp(1.6rem, 2.8vw, 2.25rem);

    --radius-panel: clamp(24px, 3vw, 32px);
    --radius-tile: 28px;
    --radius-card: 20px;
    --radius: 16px;
    --radius-s: 14px;
    --radius-l: 24px;
    --radius-pill: 999px;

    --shadow-s: 0 1px 0 var(--line);
    --shadow-m: 0 1px 0 var(--line), 0 24px 48px -32px rgb(17 17 16 / 0.28);
    --shadow-l: 0 24px 48px -12px rgb(17 17 16 / 0.28);

    --glass-bg: rgb(255 255 255 / 0.56);
    --glass-border: rgb(255 255 255 / 0.7);
    --glass-shadow:
        inset 0 1px 0 rgb(255 255 255 / 0.95),
        inset 0 -1px 1px rgb(17 17 16 / 0.06),
        0 14px 34px -10px rgb(17 17 16 / 0.32);
    --glass-blur: blur(22px) saturate(180%);

    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 1rem;
    --space-4: 1.5rem;
    --space-5: 2.5rem;
    --space-6: 4rem;
    --space-7: 6rem;

    --page-width: 80rem;
    --gutter: 1.25rem;
    --panel-pad: clamp(1.25rem, 4vw, 4rem);
    --panel-gap: clamp(1.5rem, 4vw, 3rem);

    --nav-height: 4.5rem;
    --tabbar-gap: max(14px, env(safe-area-inset-bottom));
}

/* ---------- Dark theme ----------
   Follows the system unless the visitor picked one with the header toggle
   (data-theme on <html>, set before first paint by the inline script in
   base.html.twig). Warm, not grey: espresso background, dark sand and peach
   surfaces, the same orange. --ink flips to light text; things that must stay
   dark (text on orange, phone bezels) use --on-accent / --device. */

:root {
    color-scheme: light;
}

:root[data-theme='dark'] {
    color-scheme: dark;
    --ink: #f7f3ee;
    --ink-2: #1c1612;
    --ink-3: #2e2520;
    --paper: #15110e;
    --surface: #241d18;
    --surface-hover: #2c241e;
    --sand: #1f1814;
    --sand-strong: #2a211b;
    --peach: #2e1f16;
    --peach-strong: #3b291d;
    --espresso: #0c0a08;
    --espresso-2: #1d1713;
    --espresso-3: #30271f;
    --line: #3a2f27;
    --line-soft: #2a211b;
    --line-strong: #4d4037;
    --line-hover: #6a5a4d;
    --line-dark: rgb(255 255 255 / 0.12);
    --accent-hover: #ff7d33;
    --accent-text: #ff9a5c;
    --accent-display: #ff8a45;
    --text: #ebe4da;
    --muted: #b6ac9f;
    --muted-2: #a89e91;
    --nav-bg: rgb(21 17 14 / 0.9);
    --glass-bg: rgb(40 32 26 / 0.62);
    --glass-border: rgb(255 255 255 / 0.12);
    --glass-strong: rgb(36 29 24 / 0.86);
    --glass-active: rgb(255 255 255 / 0.12);
    --glass-shadow:
        inset 0 1px 0 rgb(255 255 255 / 0.12),
        0 14px 34px -10px rgb(0 0 0 / 0.6);
    --hover-tint: rgb(255 255 255 / 0.06);
    --danger: #ff8f84;
    --shadow-m: 0 1px 0 var(--line), 0 24px 48px -32px rgb(0 0 0 / 0.6);
    --shadow-l: 0 24px 48px -12px rgb(0 0 0 / 0.6);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme='light']) {
        color-scheme: dark;
        --ink: #f7f3ee;
        --ink-2: #1c1612;
        --ink-3: #2e2520;
        --paper: #15110e;
        --surface: #241d18;
        --surface-hover: #2c241e;
        --sand: #1f1814;
        --sand-strong: #2a211b;
        --peach: #2e1f16;
        --peach-strong: #3b291d;
        --espresso: #0c0a08;
        --espresso-2: #1d1713;
        --espresso-3: #30271f;
        --line: #3a2f27;
        --line-soft: #2a211b;
        --line-strong: #4d4037;
        --line-hover: #6a5a4d;
        --line-dark: rgb(255 255 255 / 0.12);
        --accent-hover: #ff7d33;
        --accent-text: #ff9a5c;
        --accent-display: #ff8a45;
        --text: #ebe4da;
        --muted: #b6ac9f;
        --muted-2: #a89e91;
        --nav-bg: rgb(21 17 14 / 0.9);
        --glass-bg: rgb(40 32 26 / 0.62);
        --glass-border: rgb(255 255 255 / 0.12);
        --glass-strong: rgb(36 29 24 / 0.86);
        --glass-active: rgb(255 255 255 / 0.12);
        --glass-shadow:
            inset 0 1px 0 rgb(255 255 255 / 0.12),
            0 14px 34px -10px rgb(0 0 0 / 0.6);
        --hover-tint: rgb(255 255 255 / 0.06);
        --danger: #ff8f84;
        --shadow-m: 0 1px 0 var(--line), 0 24px 48px -32px rgb(0 0 0 / 0.6);
        --shadow-l: 0 24px 48px -12px rgb(0 0 0 / 0.6);
    }
}

:root[data-theme='dark'] {
    select.form-input {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f7f3ee' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    }

    .form-success {
        background: #0f2a1f;
        border-color: #1f5b40;
        color: #a7f3d0;

        h3 {
            color: #a7f3d0;
        }
    }

    /* Black bezels need an edge against the dark surfaces. */
    .phone,
    .stage-phone {
        box-shadow: 0 0 0 1px rgb(255 255 255 / 0.14), 0 30px 60px -25px rgb(0 0 0 / 0.7);
    }
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme='light']) {
        select.form-input {
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f7f3ee' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
        }

        .form-success {
            background: #0f2a1f;
            border-color: #1f5b40;
            color: #a7f3d0;

            h3 {
                color: #a7f3d0;
            }
        }

        .phone,
        .stage-phone {
            box-shadow: 0 0 0 1px rgb(255 255 255 / 0.14), 0 30px 60px -25px rgb(0 0 0 / 0.7);
        }
    }
}

/* Orange surfaces keep their light-theme ink in both themes. */
:root[data-theme='dark'] :is(.cta-block, .tile--accent, .stage-card--invoice, .btn--accent, .badge--accent, .slot--urgent, .card-icon, .notif__icon--accent, .stage-chip svg, .pill:hover) {
    --ink: #111110;
    --text: #1f1d1a;
    --muted: #5c5850;
    --muted-2: #6b665e;
    --paper: #ffffff;
    --surface: #ffffff;
    --sand: #f2eee8;
    --line: #e4ded5;
    --line-soft: #f1ede6;
    --line-strong: #d8d2c8;
    --accent-text: #a3410a;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme='light']) :is(.cta-block, .tile--accent, .stage-card--invoice, .btn--accent, .badge--accent, .slot--urgent, .card-icon, .notif__icon--accent, .stage-chip svg, .pill:hover) {
        --ink: #111110;
        --text: #1f1d1a;
        --muted: #5c5850;
        --muted-2: #6b665e;
        --paper: #ffffff;
        --surface: #ffffff;
        --sand: #f2eee8;
        --line: #e4ded5;
        --line-soft: #f1ede6;
        --line-strong: #d8d2c8;
        --accent-text: #a3410a;
    }
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--paper);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

img,
svg {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.035em;
    color: var(--ink);
    margin: 0 0 var(--space-3);
    text-wrap: balance;
    /* Dutch compounds ("Planningssoftware") are wider than a phone column. */
    overflow-wrap: break-word;
    hyphens: auto;
}

h1 {
    font-size: var(--step-1);
    line-height: 1;
    letter-spacing: -0.045em;
}

h2 {
    font-size: var(--step-2);
}

h3 {
    font-size: clamp(1.2rem, 2vw, 1.45rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

p {
    margin: 0 0 var(--space-3);
}

a {
    color: var(--accent-text);
    text-decoration: none;
    text-underline-offset: 3px;

    &:hover {
        text-decoration: underline;
    }
}

ul,
ol {
    margin: 0 0 var(--space-3);
    padding-left: 1.4rem;
}

li {
    margin-bottom: var(--space-2);
}

strong {
    color: var(--ink);
    font-weight: 600;
}

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

::selection {
    background: var(--accent);
    color: var(--on-accent);
}

.visually-hidden {
    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;
    top: -100px;
    left: var(--space-3);
    z-index: 200;
    padding: 0.6rem 1rem;
    background: var(--ink);
    color: var(--paper);
    border-radius: var(--radius-pill);

    &:focus {
        top: var(--space-3);
    }
}

/* ---------- Layout ---------- */

.container {
    width: min(100% - 2 * var(--gutter), var(--page-width));
    margin-inline: auto;
}

.container--narrow {
    width: min(100% - 2 * var(--gutter), 50rem);
}

.section {
    padding-block: clamp(4rem, 9vw, 7.5rem);

    &.section--flush-top {
        padding-top: 0;
    }
}

/* Soft and dark sections, the page hero and loose panels are rounded panels on
   exactly the same width as .container, so every edge on a page lines up. The
   container inside a panel drops its own width and pads instead. */
.section--soft,
.section--dark,
.hero--page,
.panel {
    width: min(100% - 2 * var(--gutter), var(--page-width));
    margin-inline: auto;
    border-radius: var(--radius-panel);

    > .container {
        width: auto;
        padding-inline: var(--panel-pad);
    }

    > .container--narrow {
        max-width: calc(50rem + 2 * var(--panel-pad));
    }
}

.section--soft {
    background: var(--peach);
}

.section--dark,
.panel--dark {
    background: var(--espresso);
    color: var(--text-inverse);

    h1,
    h2,
    h3,
    h4,
    strong {
        color: var(--on-dark);
    }

    a:not(.btn) {
        color: var(--accent);
    }
}

/* Coloured blocks never touch: stacked panels, and a flush-top section (the CTA
   block) right after a panel, get the same gap. */
.section--soft + .section--dark,
.section--dark + .section--soft,
.section--soft + .section--soft,
.section--dark + .section--dark {
    margin-top: var(--panel-gap);
}

:is(.section--soft, .section--dark, .hero--page) + .section--flush-top {
    padding-top: var(--panel-gap);
}

.section-head {
    max-width: 46rem;
    margin-bottom: clamp(2rem, 5vw, 3.5rem);

    &.section-head--center {
        margin-inline: auto;
        text-align: center;
    }

    p {
        font-size: 1.125rem;
        color: var(--muted);
    }

    .section--dark & p {
        color: var(--muted-inverse);
    }
}

/* Heading on the left, an action on the right; wraps on small screens. */
.section-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: var(--space-4);
    margin-bottom: clamp(2rem, 5vw, 3rem);

    .section-head {
        margin-bottom: 0;
    }
}

.eyebrow {
    display: inline-block;
    margin-bottom: var(--space-3);
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-text);

    .section--dark &,
    .panel--dark & {
        color: var(--accent);
    }
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 3.25rem;
    padding: 0 1.75rem;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-size: 1rem !important;
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;

    &:hover {
        text-decoration: none;
    }

    &:disabled {
        opacity: 0.55;
        cursor: not-allowed;
    }
}

.btn--primary {
    background: var(--ink);
    color: var(--paper) !important;

    &:hover {
        background: color-mix(in srgb, var(--ink) 86%, var(--paper));
    }
}

.btn--ghost {
    border-color: var(--line-strong);
    color: var(--ink);
    background: transparent;

    &:hover {
        border-color: var(--ink);
    }

    :is(.section--dark, .panel--dark) & {
        border-color: rgb(255 255 255 / 0.35);
        color: var(--on-dark);

        &:hover {
            border-color: var(--on-dark);
        }
    }

    .panel--accent &,
    .cta-block & {
        border: 1.5px solid var(--ink);
    }
}

.btn--light {
    background: var(--text-inverse);
    color: var(--on-accent);

    &:hover {
        background: var(--on-dark);
    }
}

.btn--accent {
    background: var(--accent);
    color: var(--ink);

    &:hover {
        background: var(--accent-hover);
    }
}

.btn--small {
    min-height: 2.75rem;
    padding: 0 1.25rem !important;
    font-size: 0.9375rem !important;
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.btn-note {
    font-size: 0.9rem;
    color: var(--muted);
}

.link-arrow {
    font-weight: 500;
    color: var(--accent-text);
}

/* ---------- Navigation ---------- */

.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;

    &.nav--scrolled {
        border-bottom-color: var(--line);
    }
}

.nav-inner {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.logo {
    display: inline-flex;
    align-items: center;
    color: var(--ink);

    &:hover {
        text-decoration: none;
    }

    svg {
        height: 1.5rem;
        width: auto;
        flex-shrink: 0;
        display: block;
    }
}

.logo-cursor {
    fill: var(--accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    margin: 0 0 0 auto;
    list-style: none;
    padding: 0;

    li {
        margin: 0;
    }

    a {
        font-size: 0.96rem;
        font-weight: 500;
        color: var(--ink);

        &:hover {
            color: var(--accent-text);
            text-decoration: none;
        }

        &[aria-current='page'] {
            color: var(--accent-text);
        }
    }
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Round icon buttons in the header (theme toggle, phone menu). */
.nav-icon-btn {
    display: grid;
    place-items: center;
    flex: none;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;

    svg {
        width: 1.3rem;
        height: 1.3rem;
    }

    .icon-close {
        display: none;
    }

    &[aria-expanded='true'] {
        .icon-open {
            display: none;
        }

        .icon-close {
            display: block;
        }
    }
}

.nav-menu-btn {
    display: none !important;
}

.theme-toggle {
    .icon-sun {
        display: none;
    }

    &[aria-pressed='true'] {
        .icon-moon {
            display: none;
        }

        .icon-sun {
            display: block;
        }
    }
}

@media (max-width: 980px) {
    .nav-links,
    .nav-actions .btn--primary {
        display: none !important;
    }

    .nav-actions {
        margin-left: auto;
    }

    .nav-menu-btn {
        display: grid !important;
    }
}

/* ---------- Mobile tab bar (liquid glass) ---------- */

.glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .glass {
        background: rgb(255 255 255 / 0.94);
    }
}

@media (prefers-reduced-transparency: reduce) {
    .glass {
        background: var(--surface);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

.tabbar,
.mobile-menu,
.mobile-menu__overlay {
    display: none;
}

@media (max-width: 980px) {
    body {
        padding-bottom: calc(96px + var(--tabbar-gap));
    }

    .tabbar {
        position: fixed;
        z-index: 120;
        inset-inline: 12px;
        bottom: var(--tabbar-gap);
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .mobile-menu {
        position: fixed;
        z-index: 125;
        inset-inline: 12px;
        bottom: calc(var(--tabbar-gap) + 78px);
        display: flex;
        flex-direction: column;
        padding: 10px;
        border-radius: 30px;
        background: var(--glass-strong);
        animation: sheet-in 0.22s ease-out;

        &[hidden] {
            display: none;
        }
    }

    .mobile-menu__overlay {
        position: fixed;
        z-index: 110;
        inset: 0;
        display: block;
        padding: 0;
        border: 0;
        background: rgb(17 17 16 / 0.28);
        cursor: pointer;

        &[hidden] {
            display: none;
        }
    }

    body.nav-menu-open {
        overflow: hidden;
    }
}

.tabbar__tabs {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    gap: 2px;
    margin: 0;
    padding: 5px;
    list-style: none;
    border-radius: var(--radius-pill);

    li {
        flex: 1 1 0;
        min-width: 0;
        margin: 0;
    }
}

.tabbar__tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 54px;
    border-radius: var(--radius-pill);
    color: var(--ink);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;

    svg {
        width: 22px;
        height: 22px;
    }

    &:hover {
        text-decoration: none;
    }

    &[aria-current='page'] {
        color: var(--accent-text);
        background: var(--glass-active);
        box-shadow: inset 0 1px 0 var(--paper), 0 2px 8px -2px rgb(17 17 16 / 0.18);
    }
}

.tabbar__menu-btn {
    flex: none;
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    padding: 0;
    border-radius: 50%;
    color: var(--ink);
    cursor: pointer;

    svg {
        width: 24px;
        height: 24px;
    }

    .icon-close {
        display: none;
    }

    &[aria-expanded='true'] {
        .icon-open {
            display: none;
        }

        .icon-close {
            display: block;
        }
    }
}

.mobile-menu__label {
    padding: 10px 14px 6px;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.mobile-menu__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    padding: 0 14px;
    border-radius: 18px;
    font-size: 1.0625rem;
    font-weight: 500;
    color: var(--ink);

    svg {
        width: 18px;
        height: 18px;
        color: var(--muted-2);
    }

    &:hover {
        background: var(--hover-tint);
        text-decoration: none;
    }

    &[aria-current='page'] {
        color: var(--accent-text);
    }
}

.mobile-menu .btn {
    margin-top: 8px;
}

@keyframes sheet-in {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
}

@media (min-width: 981px) {
    .mobile-menu,
    .mobile-menu__overlay {
        display: none !important;
    }
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    background: var(--paper);
    color: var(--text);
    padding-block: clamp(3.5rem, 9vw, 7rem) clamp(2.5rem, 6vw, 4rem);

    h1 {
        color: var(--ink);
        margin-bottom: var(--space-4);

        .accent {
            display: block;
            color: var(--accent-display);
        }
    }

    .lead {
        font-size: clamp(1.1rem, 1.6vw, 1.25rem);
        color: var(--muted);
        max-width: 40rem;
        margin-bottom: var(--space-5);
    }
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: clamp(2rem, 6vw, 5rem);
    align-items: center;
}

.hero--page {
    margin-top: 0.5rem;
    background: var(--sand);
    padding-block: clamp(2.5rem, 7vw, 5rem);

    .lead {
        margin-bottom: 0;
    }
}

.hero--page + .section--soft,
.hero--page + .section--dark {
    margin-top: var(--panel-gap);
}

/* Home hero, Apple-style: a full-bleed band (the one exception to the
   page-width rule) fading from peach to white, so it flows into the page; a
   short centred message and one big, colourful stage below. The only gradient
   in the design. */
.hero--home {
    padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2rem, 4vw, 3rem);
    background-color: var(--paper);
    background-image: linear-gradient(to bottom, var(--peach) 0%, var(--peach) 30%, var(--paper) 100%);
    overflow: hidden;
    text-align: center;

    h1 {
        font-size: clamp(3rem, 8.4vw, 7.25rem);
        line-height: 0.95;
        margin-bottom: 0.75rem;
    }

    .btn-row {
        justify-content: center;
    }
}

.hero-home__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero--home + .media-panel {
    margin-top: var(--panel-gap);
}

/* "Eén plek voor je <word>": the words share one grid cell, so the line keeps
   the width of the longest word while they slide through. */
.hero-rotator {
    margin: 0 0 var(--space-4);
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 2.4vw, 1.9rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.rotator {
    display: inline-grid;
    vertical-align: bottom;
    overflow: hidden;
    /* Short words sit right after "je", not centred in the longest word's box. */
    text-align: left;
}

.rotator__word {
    grid-area: 1 / 1;
    color: var(--accent-text);
    opacity: 0;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.5s ease;

    &.is-active {
        opacity: 1;
        transform: none;
    }

    &.is-leaving {
        transform: translateY(-100%);
    }
}

/* The stage: ring, phone, two colour cards and chips, each shifted by its --depth. */
.hero-stage {
    --px: 0;
    --py: 0;
    position: relative;
    width: min(100%, 62rem);
    min-height: 34rem;
    margin-top: clamp(2.5rem, 5vw, 4rem);
    text-align: left;

    > * {
        transition: translate 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
        translate: calc(var(--px) * var(--depth, 0) * 14px) calc(var(--py) * var(--depth, 0) * 14px);
    }
}

.stage-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(72%, 31rem);
    aspect-ratio: 1;
    margin: 0;
    border: clamp(1.75rem, 3.6vw, 2.75rem) solid var(--accent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: ring-spin 18s linear infinite;
}

.stage-ring__dot {
    position: absolute;
    top: -0.5rem;
    left: 50%;
    width: 1rem;
    height: 1rem;
    margin-left: -0.5rem;
    border-radius: 50%;
    background: var(--device);
}

@keyframes ring-spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.stage-phone {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 15.5rem;
    margin: -14rem 0 0 -7.75rem;
    padding: 10px;
    border-radius: 36px;
    background: var(--device);
    box-shadow: 0 30px 60px -25px rgb(43 29 22 / 0.55);
}

.stage-phone__screen {
    display: grid;
    gap: 0.35rem;
    min-height: 26rem;
    padding: 1.25rem 1.1rem;
    border-radius: 28px;
    background: var(--surface);
}

.stage-phone__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.06em;
    color: var(--muted-2);
}

.stage-phone__live {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--accent-text);

    &::before {
        content: '';
        width: 0.45rem;
        height: 0.45rem;
        border-radius: 50%;
        background: var(--accent);
        animation: live-ping 1.8s ease-out infinite;
    }
}

.stage-phone__title {
    margin-top: 0.75rem;
    font-family: var(--font-display);
    font-size: 1.35rem;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.stage-phone__sub {
    font-size: 0.8125rem;
    color: var(--muted);
}

/* Status stepper: a dot per step on a line; done steps fill orange. */
.stage-steps {
    display: grid;
    gap: 0;
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}

.stage-steps__item {
    position: relative;
    margin: 0;
    padding: 0.55rem 0 0.55rem 1.75rem;
    font-size: 0.875rem;
    color: var(--muted-2);
    transition: color 0.3s ease;

    &::before {
        content: '';
        position: absolute;
        left: 0.3rem;
        top: 50%;
        width: 0.75rem;
        height: 0.75rem;
        margin-top: -0.375rem;
        border-radius: 50%;
        border: 2px solid var(--line-strong);
        background: var(--surface);
        transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
    }

    &:not(:last-child)::after {
        content: '';
        position: absolute;
        left: calc(0.3rem + 0.375rem - 1px);
        top: calc(50% + 0.375rem);
        height: calc(100% - 0.75rem);
        width: 2px;
        background: var(--line);
    }

    &.is-done {
        color: var(--ink);

        &::before {
            border-color: var(--accent);
            background: var(--accent);
        }

        &::after {
            background: var(--accent);
        }
    }

    &.is-active {
        color: var(--ink);
        font-weight: 600;

        &::before {
            border-color: var(--accent);
            background: var(--surface);
            transform: scale(1.25);
            box-shadow: 0 0 0 4px rgb(242 107 29 / 0.2);
        }
    }
}

.stage-chip {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1rem;
    border-radius: var(--radius-pill);
    background: var(--surface);
    box-shadow: 0 16px 36px -18px rgb(43 29 22 / 0.45);
    font-size: 0.875rem;
    color: var(--text);
    white-space: nowrap;
    animation: chip-float 6s ease-in-out infinite;

    svg {
        flex: none;
        width: 1.75rem;
        height: 1.75rem;
        padding: 0.35rem;
        border-radius: 50%;
        background: var(--accent);
        color: var(--ink);
        stroke-width: 2.2;
    }

    strong {
        color: var(--ink);
    }

    &.stage-chip--a {
        left: 9%;
        bottom: 5%;
    }

    &.stage-chip--b {
        top: 5%;
        right: 8%;
        animation-delay: -3s;

        svg {
            background: var(--espresso);
            color: var(--accent);
        }
    }
}

@keyframes chip-float {
    50% {
        transform: translateY(-10px);
    }
}

/* Colour cards on either side of the phone. */
.stage-card {
    position: absolute;
    display: grid;
    gap: 0.6rem;
    width: 15rem;
    padding: 1.25rem 1.35rem;
    border-radius: var(--radius-l);
    box-shadow: 0 24px 50px -24px rgb(43 29 22 / 0.5);
    animation: chip-float 7s ease-in-out infinite;

    &.stage-card--plan {
        top: 16%;
        left: 1%;
        background: var(--espresso);
        color: var(--text-inverse);
    }

    &.stage-card--invoice {
        top: 42%;
        right: 1%;
        background: var(--accent);
        color: var(--ink);
        animation-delay: -3.5s;
    }
}

.stage-card__label {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.85;
}

.stage-card__amount {
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--ink);
}

.stage-card__foot {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8125rem;

    svg {
        width: 1rem;
        height: 1rem;
        stroke-width: 2.6;
    }
}

/* Planning bars grow, hold and reset on a 6s loop. */
.stage-bar {
    display: block;
    width: var(--w);
    height: 0.75rem;
    border-radius: var(--radius-pill);
    background: var(--c);
    transform-origin: left center;
    animation: bar-grow 6s cubic-bezier(0.2, 0.7, 0.2, 1) infinite;

    &:nth-of-type(2) { animation-delay: 0.3s; }
    &:nth-of-type(3) { animation-delay: 0.6s; }
}

@keyframes bar-grow {
    0% { transform: scaleX(0); }
    20%, 85% { transform: scaleX(1); }
    100% { transform: scaleX(0); }
}

/* Narrow screens: no room for the side cards; one chip above, one below the phone. */
@media (max-width: 760px) {
    .hero-stage {
        min-height: 36rem;
    }

    .stage-card {
        display: none;
    }

    /* Wider than the phone, so the orange ring still frames it. */
    .stage-ring {
        width: min(104%, 24rem);
    }

    .stage-chip {
        font-size: 0.8125rem;

        &.stage-chip--a { top: auto; bottom: 0; left: 0; }
        &.stage-chip--b { top: 0; right: 0; }
    }
}

@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Home: media panel (notifications + planning board) ---------- */

.media-panel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-4);
    padding: clamp(1.25rem, 4vw, 3.5rem);
}

.notif-stack {
    flex: 1 1 17rem;
    min-width: 0;
    display: grid;
    gap: 0.75rem;
}

.notif {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.125rem;
    border-radius: var(--radius);
    background: rgb(255 255 255 / 0.08);
    border: 1px solid rgb(255 255 255 / 0.12);
    font-size: 0.9375rem;

    strong {
        font-weight: 600;
    }
}

.notif__icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: var(--text-inverse);
    color: var(--on-accent);

    svg {
        width: 0.95rem;
        height: 0.95rem;
        stroke-width: 2.4;
    }

    &.notif__icon--accent {
        background: var(--accent);
    }
}

.board {
    flex: 999 1 35rem;
    min-width: 0;
    border-radius: var(--radius-card);
    background: var(--espresso-2);
    border: 1px solid rgb(255 255 255 / 0.1);
    overflow: hidden;
}

.board__head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgb(255 255 255 / 0.08);

    strong {
        font-family: var(--font-display);
        font-size: 1.0625rem;
    }

    span {
        font-family: var(--font-mono);
        font-size: 0.75rem;
        color: var(--muted-inverse);
    }
}

.board__scroll {
    overflow-x: auto;
}

.board__grid {
    min-width: 32rem;
    display: grid;
    gap: 0.625rem;
    padding: 1rem 1.25rem 1.375rem;
}

.board__row {
    display: grid;
    grid-template-columns: 4.5rem repeat(10, minmax(0, 1fr));
    gap: 0 4px;
    align-items: center;
    font-size: 0.875rem;
}

.board__hours {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--muted-inverse);
}

.slot {
    padding: 0.5rem 0.625rem;
    border-radius: 10px;
    background: var(--espresso-3);
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    &.slot--urgent {
        background: var(--accent);
        color: var(--ink);
        font-weight: 600;
    }

    &.slot--light {
        background: var(--sand-strong);
        color: var(--ink);
        font-weight: 500;
    }

    &.slot--free {
        background: transparent;
        border: 1px dashed var(--accent);
        color: var(--text-inverse);
    }
}

/* ---------- Home hero: motion ---------- */

/* Entrance: eyebrow, heading, lead, buttons and the panel rise in turn. Only
   with JS (like .reveal), so the hero is never stuck invisible without it. */
.js .hero-rise {
    animation: hero-rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;

    .hero-home__inner > &:nth-child(2) { animation-delay: 0.08s; }
    .hero-home__inner > &:nth-child(3) { animation-delay: 0.16s; }
    .hero-home__inner > &:nth-child(4) { animation-delay: 0.26s; }

    &.media-panel {
        animation-delay: 0.45s;
    }
}

@keyframes hero-rise {
    from {
        opacity: 0;
        transform: translateY(1.5rem);
    }
}

/* Feed: always four events; text clamps to two lines so the stack keeps its height. */
.notif {
    min-height: 4.5rem;

    > span:last-child {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
    }

    &[hidden] {
        display: none;
    }

    &.notif--enter {
        animation: notif-in 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both;

        .notif__icon {
            animation: notif-pop 0.6s 0.15s ease-out both;
        }
    }
}

@keyframes notif-in {
    from {
        opacity: 0;
        transform: translateY(-0.75rem) scale(0.97);
        background: rgb(242 107 29 / 0.35);
    }
}

@keyframes notif-pop {
    from {
        transform: scale(0.4);
    }

    60% {
        transform: scale(1.15);
    }
}

/* Board: blocks build up once, a pulsing "now" line, a live dot, an urgent pulse. */
.board__grid {
    position: relative;
}

.slot {
    animation: slot-in 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    animation-delay: calc(0.6s + var(--i, 0) * 0.09s);
    transform-origin: left center;

    &.slot--urgent {
        animation:
            slot-in 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) 0.6s both,
            urgent-pulse 2.4s 1.4s ease-out infinite;
    }
}

@keyframes slot-in {
    from {
        opacity: 0;
        transform: scaleX(0.6);
    }
}

@keyframes urgent-pulse {
    0% {
        box-shadow: 0 0 0 0 rgb(242 107 29 / 0.55);
    }

    70%,
    100% {
        box-shadow: 0 0 0 10px rgb(242 107 29 / 0);
    }
}

.board__now {
    position: absolute;
    top: 2.1rem;
    bottom: 1rem;
    left: calc(1.25rem + 4.5rem + (100% - 2.5rem - 4.5rem) * var(--at));
    width: 2px;
    border-radius: 2px;
    background: var(--accent);
    pointer-events: none;

    &::before {
        content: '';
        position: absolute;
        top: -4px;
        left: -4px;
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: var(--accent);
        animation: live-ping 1.8s ease-out infinite;
    }
}

.board__live {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-inverse) !important;

    &::before {
        content: '';
        width: 0.5rem;
        height: 0.5rem;
        border-radius: 50%;
        background: var(--accent);
        animation: live-ping 1.8s ease-out infinite;
    }
}

@keyframes live-ping {
    0% {
        box-shadow: 0 0 0 0 rgb(242 107 29 / 0.6);
    }

    80%,
    100% {
        box-shadow: 0 0 0 8px rgb(242 107 29 / 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-rise,
    .stage-ring,
    .stage-chip,
    .stage-card,
    .stage-bar,
    .stage-phone__live::before,
    .slot,
    .slot.slot--urgent,
    .notif.notif--enter,
    .notif.notif--enter .notif__icon,
    .board__now::before,
    .board__live::before {
        animation: none;
    }
}

/* ---------- Viewport-gated motion ---------- */

/* Every animation inside an inview block (inview_controller.js) waits, paused on
   its first frame, until the block is in the viewport, and pauses again when it
   leaves: entrances start when the visitor sees them, loops cost nothing off
   screen. Only with JS, like .reveal. */
.js [data-controller~='inview']:not(.is-inview),
.js [data-controller~='inview']:not(.is-inview)::before,
.js [data-controller~='inview']:not(.is-inview)::after,
.js [data-controller~='inview']:not(.is-inview) *,
.js [data-controller~='inview']:not(.is-inview) *::before,
.js [data-controller~='inview']:not(.is-inview) *::after {
    animation-play-state: paused !important;
}

/* ---------- Motion scenes outside the hero ---------- */

/* Homepage tiles: each product fragment plays a short loop while the tile is in
   view (.is-inview comes from inview_controller.js, so without JS the fragments
   simply stand still). All loops last 7s. */
.tile.is-inview {
    .scene-inbox .mini__row:first-child {
        animation: scene-in 7s ease-out infinite;
    }

    .scene-inbox .mini__row:last-child {
        animation: scene-in-late 7s cubic-bezier(0.2, 0.7, 0.2, 1) infinite;

        .badge {
            animation: scene-pop 7s ease-out infinite;
        }
    }

    .scene-planning .mini__row:nth-child(n + 3) {
        animation: scene-line 7s ease-out infinite;
    }

    .scene-planning .mini__row:nth-child(4) { animation-delay: 0.5s; }
    .scene-planning .mini__row:nth-child(5) { animation-delay: 1s; }

    .scene-signature path {
        stroke-dasharray: 260;
        animation: scene-sign 7s ease-in-out infinite;
    }

    .scene-signature .btn {
        animation: scene-confirm 7s ease-out infinite;
    }

    .scene-invoice .status-dot::before {
        animation: live-ping 1.8s ease-out infinite;
    }

    .scene-invoice .badge {
        animation: scene-chip 7s ease-out infinite;
    }

    .scene-invoice .badge:nth-child(2) { animation-delay: 0.6s; }
    .scene-invoice .badge:nth-child(3) { animation-delay: 1.2s; }
}

@keyframes scene-in {
    0% { opacity: 0; transform: translateY(8px); }
    8%, 86% { opacity: 1; transform: none; }
    96%, 100% { opacity: 0; }
}

@keyframes scene-in-late {
    0%, 28% { opacity: 0; transform: translateY(-10px) scale(0.96); }
    38%, 86% { opacity: 1; transform: none; }
    96%, 100% { opacity: 0; }
}

@keyframes scene-pop {
    0%, 40% { transform: scale(0.4); }
    46% { transform: scale(1.15); }
    52%, 100% { transform: none; }
}

@keyframes scene-line {
    0% { opacity: 0; transform: translateX(-10px); }
    10%, 86% { opacity: 1; transform: none; }
    96%, 100% { opacity: 0; }
}

@keyframes scene-sign {
    0%, 8% { stroke-dashoffset: 260; }
    45%, 90% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: 260; }
}

@keyframes scene-confirm {
    0%, 46% { opacity: 0.25; transform: scale(0.97); }
    52%, 90% { opacity: 1; transform: none; }
    100% { opacity: 0.25; }
}

@keyframes scene-chip {
    0% { opacity: 0; transform: scale(0.8); }
    8%, 86% { opacity: 1; transform: none; }
    96%, 100% { opacity: 0; }
}

/* Platform tabs: the rows of a panel slide in each time its tab is chosen. */
.js .layer-panel:not([hidden]) :is(.dossier-row, .toggle-row, .connector, .chat > *) {
    animation: row-in 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both;

    &:nth-child(2) { animation-delay: 0.06s; }
    &:nth-child(3) { animation-delay: 0.12s; }
    &:nth-child(4) { animation-delay: 0.18s; }
    &:nth-child(5) { animation-delay: 0.24s; }
    &:nth-child(6) { animation-delay: 0.3s; }
}

@keyframes row-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .tile.is-inview *,
    .layer-panel * {
        animation: none !important;
    }
}

/* ---------- Pills (process strip, filters) ---------- */

.pill-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin: 0 0 1.75rem;
    padding: 0;
    list-style: none;

    li {
        margin: 0;
    }
}

.pill {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0 1.125rem;
    border-radius: var(--radius-pill);
    background: var(--sand);
    color: var(--ink);
    font-size: 0.875rem;
    font-weight: 500;

    &:hover {
        background: var(--accent);
        color: var(--ink);
        text-decoration: none;
    }
}

/* ---------- Tiles ---------- */

.tile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

@media (max-width: 760px) {
    .tile-grid {
        grid-template-columns: 1fr;
    }
}

.tile {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    min-height: 26rem;
    padding: clamp(1.75rem, 4vw, 3rem);
    border-radius: var(--radius-tile);
    background: var(--sand);

    .eyebrow {
        margin-bottom: 0;
    }

    h2,
    h3 {
        margin: 0;
        max-width: 18ch;
        font-size: var(--step-3);
        line-height: 1.08;
        letter-spacing: -0.03em;
    }

    &.tile--peach {
        background: var(--peach);
    }

    &.tile--dark {
        background: var(--espresso);
        color: var(--text-inverse);

        h2,
        h3 {
            color: var(--on-dark);
        }

        .eyebrow,
        .link-arrow {
            color: var(--accent);
        }
    }

    &.tile--accent {
        background: var(--accent);

        .eyebrow,
        .link-arrow {
            color: var(--ink);
        }

        .link-arrow {
            text-decoration: underline;
        }

        :focus-visible {
            outline-color: var(--ink);
        }
    }
}

.tile__visual {
    margin-top: auto;
    max-width: 26rem;
}

/* Small product fragments inside tiles: plain markup, decorative. */
.mini {
    display: grid;
    gap: 0.625rem;
    padding: 1.125rem 1.25rem;
    border-radius: 18px;
    background: var(--surface);
    color: var(--text);
    font-size: 0.875rem;
}

.mini__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;

    > span:first-child {
        color: var(--muted);
    }
}

.mini__title {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--ink);
}

.mini__mono {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--muted-2);
}

.mini__amount {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--ink);
}

.mini__rule {
    height: 1px;
    background: var(--line);
}

.mini--stack {
    padding: 0;
    background: none;

    .mini__row {
        padding: 0.875rem 1rem;
        border-radius: var(--radius-s);
        background: var(--surface);
    }
}

.phone {
    width: 15rem;
    padding: 10px;
    border-radius: 32px;
    background: var(--device);

    .mini {
        border-radius: 24px;
    }
}

.signature {
    display: grid;
    place-items: center;
    height: 3.4rem;
    border-radius: 10px;
    background: var(--sand);
    color: var(--ink);
}

.status-dot {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 500;

    &::before {
        content: '';
        width: 0.5rem;
        height: 0.5rem;
        border-radius: 50%;
        background: var(--accent);
    }
}

/* ---------- Cards ---------- */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
    gap: 0.75rem;
}

.card-grid--dense {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    background: var(--sand);
    border-radius: var(--radius-card);
    padding: clamp(1.5rem, 3vw, 2rem);
    transition: background-color 0.2s ease;

    h3 {
        margin-bottom: var(--space-2);
    }

    p {
        color: var(--muted);
        margin-bottom: 0;
        font-size: 0.98rem;
    }

    /* On white sections every other card is peach; panels keep one tone. */
    .section:not(.section--soft, .section--dark) .card-grid > &:nth-child(even):not(.post-card) {
        background: var(--peach);
    }

    .section--soft & {
        background: var(--surface);
    }

    .section--dark & {
        background: rgb(255 255 255 / 0.06);

        h3 {
            color: var(--on-dark);
        }

        p {
            color: var(--muted-inverse);
        }
    }
}

a.card {
    color: inherit;
}

a.card:hover,
.card--link:hover {
    text-decoration: none;
    background: var(--sand-strong);

    .section:not(.section--soft, .section--dark) .card-grid > &:nth-child(even):not(.post-card) {
        background: var(--peach-strong);
    }

    .section--soft & {
        background: var(--surface-hover);
    }
}

.card-icon {
    display: inline-grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: var(--space-3);
    border-radius: 50%;
    background: var(--accent);
    color: var(--ink);

    svg {
        width: 1.5rem;
        height: 1.5rem;
    }
}

.card-more {
    margin-top: auto;
    padding-top: var(--space-3);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--accent-text);

    .section--dark & {
        color: var(--accent);
    }
}

/* ---------- Home: platform layers (tabs) ---------- */

.layers {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-5);
    align-items: stretch;
}

.layers__list {
    flex: 1 1 20rem;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.layer-tab {
    display: block;
    width: 100%;
    padding: 1.25rem 1.375rem;
    border: 0;
    border-radius: var(--radius-card);
    background: transparent;
    color: var(--ink);
    font: inherit;
    text-align: left;
    cursor: pointer;

    &[aria-selected='true'] {
        background: var(--sand);

        .layer-tab__dot {
            background: var(--accent);
        }
    }

    &:hover {
        background: var(--sand);
    }
}

.layer-tab__title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.layer-tab__dot {
    flex: none;
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 50%;
    background: var(--line-strong);
}

.layer-tab__text {
    display: block;
    margin-top: 0.375rem;
    padding-left: 1.375rem;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--muted);
}

.layers__stage {
    flex: 999 1 35rem;
    min-width: 0;
    display: grid;
    gap: 1rem;
    align-content: center;
    padding: clamp(1.25rem, 4vw, 3rem);
    border-radius: var(--radius-tile);
    background: var(--accent);
}

.layer-panel {
    border-radius: var(--radius-card);
    background: var(--surface);
    box-shadow: var(--shadow-m);
    overflow: hidden;
}

.layer-panel__head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--line);

    strong {
        font-family: var(--font-display);
        font-size: 1.1875rem;
    }
}

.layer-panel__body {
    padding: 0.5rem 1.5rem 1.25rem;
}

.dossier-row {
    display: grid;
    grid-template-columns: 4.5rem minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 0.875rem;

    > span {
        min-width: 0;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    &:last-child {
        border-bottom: 0;
    }

    /* Phone: date above the line, badge stays right. */
    @media (max-width: 480px) {
        grid-template-columns: minmax(0, 1fr) auto;

        > span:first-child {
            grid-column: 1 / -1;
        }
    }
}

.toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 0.9375rem;

    &:last-child {
        border-bottom: 0;
    }
}

.toggle {
    display: flex;
    width: 2.75rem;
    height: 1.625rem;
    padding: 3px;
    border-radius: var(--radius-pill);
    background: var(--line);

    &::after {
        content: '';
        width: 1.25rem;
        height: 1.25rem;
        border-radius: 50%;
        background: var(--surface);
    }

    &.toggle--on {
        justify-content: flex-end;
        background: var(--ink);

        &::after {
            background: var(--accent);
        }
    }
}

.connector-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
    gap: 0.625rem;
    padding: 1.25rem 1.5rem 1.5rem;
}

.connector {
    display: grid;
    gap: 0.25rem;
    padding: 0.875rem 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-s);

    strong {
        font-size: 0.9375rem;
    }

    span {
        font-size: 0.8125rem;
        color: var(--muted);
    }
}

.chat {
    display: grid;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem 1.5rem;
}

.chat__bubble {
    max-width: 85%;
    padding: 0.75rem 1rem;
    border-radius: 18px;
    font-size: 0.9375rem;

    &.chat__bubble--me {
        justify-self: end;
        border-bottom-right-radius: 4px;
        background: var(--ink);
        color: var(--paper);
    }

    &.chat__bubble--ai {
        justify-self: start;
        border-bottom-left-radius: 4px;
        background: var(--sand);
    }
}

.chat__note {
    font-size: 0.8125rem;
    color: var(--muted);
}

/* ---------- About: hero scale, story, timeline, principles ---------- */

/* "Standaardpakket ←→ Maatwerk" with One landing in the middle. */
.gap-scale {
    max-width: 46rem;
    margin-top: clamp(2rem, 4vw, 3rem);
    padding: clamp(1.5rem, 3vw, 2rem);
    border-radius: var(--radius-card);
    background: var(--surface);
    box-shadow: 0 24px 50px -30px rgb(43 29 22 / 0.35);
}

.gap-scale__ends,
.gap-scale__notes {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.gap-scale__ends {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted-2);
}

.gap-scale__notes {
    font-size: 0.875rem;
    line-height: 1.4;
    color: var(--muted);

    span:last-child {
        text-align: right;
    }
}

.gap-scale__track {
    position: relative;
    height: 4.5rem;
    margin: 0.75rem 0;

    /* The line, with a cap at each end. */
    &::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        height: 4px;
        margin-top: -2px;
        border-radius: var(--radius-pill);
        background: var(--line);
        box-shadow: inset 0.75rem 0 0 var(--ink), inset -0.75rem 0 0 var(--ink);
    }
}

.gap-scale__pin {
    position: absolute;
    top: 50%;
    left: 50%;
    display: inline-flex;
    padding: 0.7rem 1.1rem;
    border: 2px solid var(--accent);
    border-radius: var(--radius-pill);
    background: var(--surface);
    color: var(--ink);
    transform: translate(-50%, -50%);
    box-shadow: 0 10px 24px -10px rgb(242 107 29 / 0.8);

    /* The one_ wordmark: ink letters, orange cursor. */
    svg {
        display: block;
        width: auto;
        height: 1.15rem;
    }
    animation: gap-settle 3.2s cubic-bezier(0.45, 0, 0.2, 1) 0.3s both;
}

@keyframes gap-settle {
    0% { left: 12%; }
    35% { left: 88%; }
    65% { left: 38%; }
    82% { left: 55%; }
    100% { left: 50%; }
}

/* Story: the customer's sentence as a big quote beside the explanation. */
.story {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2rem, 6vw, 5rem);
    align-items: center;
}

@media (max-width: 860px) {
    .story {
        grid-template-columns: 1fr;
    }
}

.story__quote {
    position: relative;
    margin: 0;
    padding: clamp(1.75rem, 4vw, 2.75rem);
    border-radius: var(--radius-tile);
    background: var(--espresso);
    color: var(--on-dark);

    p {
        margin: 0 0 1.25rem;
        font-family: var(--font-display);
        font-size: clamp(1.6rem, 3vw, 2.4rem);
        font-weight: 600;
        line-height: 1.15;
        letter-spacing: -0.025em;
    }

    footer {
        font-family: var(--font-mono);
        font-size: 0.75rem;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--accent);
    }
}

.story__text p {
    font-size: 1.08rem;
}

/* Founder timeline: the line fills and the dots light up once in view. */
.timeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: var(--space-4) 0 var(--space-4);
    padding: 1.6rem 0 0;
    list-style: none;

    &::before,
    &::after {
        content: '';
        position: absolute;
        top: 0.45rem;
        left: 0.45rem;
        right: 33%;
        height: 2px;
        background: var(--line);
    }

    &::after {
        background: var(--accent);
        transform-origin: left center;
        animation: timeline-fill 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s both;
    }

    li {
        position: relative;
        display: grid;
        gap: 0.15rem;
        margin: 0;
        padding-right: 0.75rem;

        &::before {
            content: '';
            position: absolute;
            top: -1.6rem;
            left: 0;
            z-index: 1;
            width: 0.9rem;
            height: 0.9rem;
            border-radius: 50%;
            background: var(--accent);
            box-shadow: 0 0 0 4px var(--paper);
            animation: scene-pop 1.4s ease-out both;
        }

        &:nth-child(2)::before { animation-delay: 0.6s; }
        &:nth-child(3)::before { animation-delay: 1.2s; }
    }

    strong {
        font-family: var(--font-display);
        font-size: 1.35rem;
        letter-spacing: -0.02em;
    }

    span {
        font-size: 0.875rem;
        color: var(--muted);
    }
}

@keyframes timeline-fill {
    from { transform: scaleX(0); }
}

/* Principles: a numbered list instead of six identical cards. */
.principles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
    gap: 0 clamp(1.5rem, 4vw, 3rem);
    margin: 0;
    padding: 0;
    list-style: none;
}

.principle {
    margin: 0;
    padding: 1.5rem 0 2rem;
    border-top: 1px solid var(--line);

    h3 {
        margin: 0.5rem 0 0.4rem;
    }

    p {
        margin: 0;
        color: var(--muted);
    }
}

.principle__number {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 4vw, 3rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--accent-display);
}

@media (prefers-reduced-motion: reduce) {
    .gap-scale__pin,
    .timeline::after,
    .timeline li::before {
        animation: none;
    }
}

/* ---------- About: founder ---------- */

/* Same grid as the story section above it: two equal columns, photo right. */
.founder {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2rem, 6vw, 5rem);
    align-items: center;

    h2 {
        margin-bottom: 0.25rem;
    }

    p {
        font-size: 1.08rem;
    }
}

/* A calm sand tile fills the column (mirroring the quote block above); the
   photo itself stays modest in the middle of it. */
.founder__visual {
    display: grid;
    place-items: center;
    padding: clamp(2rem, 6vw, 4rem);
    border-radius: var(--radius-tile);
    background: var(--sand);
}

.founder__photo {
    width: 100%;
    max-width: 15rem;
    height: auto;
    aspect-ratio: 612 / 640;
    object-fit: cover;
    border-radius: var(--radius-card);
}

.founder__role {
    margin-bottom: var(--space-4);
    color: var(--muted);
}

@media (max-width: 860px) {
    .founder {
        grid-template-columns: 1fr;

        .founder__visual {
            order: -1;
            padding: 2rem;
        }

        .founder__photo {
            max-width: 11rem;
        }
    }
}

/* ---------- Chain (numbered process) ---------- */

.chain {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: var(--space-3);
    counter-reset: chain;
}

.chain li {
    position: relative;
    display: grid;
    grid-template-columns: 2.6rem 1fr;
    gap: var(--space-3);
    align-items: start;
    counter-increment: chain;
    margin: 0;

    &::before {
        content: counter(chain);
        display: flex;
        align-items: center;
        justify-content: center;
        width: 2.6rem;
        height: 2.6rem;
        border-radius: 50%;
        background: var(--sand);
        color: var(--ink);
        font-family: var(--font-display);
        font-weight: 600;
    }

    .section--soft &::before {
        background: var(--surface);
    }

    strong {
        display: block;
    }

    .pain {
        color: var(--muted);
        font-size: 0.95rem;
    }
}

.section--dark .chain li {
    &::before {
        background: var(--accent);
        color: var(--on-accent);
    }

    .pain {
        color: var(--muted-inverse);
    }
}

/* ---------- Steps (how it works) ---------- */

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
    gap: 0 var(--space-5);
    counter-reset: steps;
}

.step {
    counter-increment: steps;
    padding: var(--space-4) 0 var(--space-5);
    border-top: 1px solid var(--line);

    &::before {
        content: '0' counter(steps);
        display: block;
        margin-bottom: 0.875rem;
        font-family: var(--font-mono);
        font-size: 0.875rem;
        color: var(--accent-text);
    }

    h3 {
        font-size: clamp(1.4rem, 2.2vw, 1.625rem);
    }

    p {
        color: var(--muted);
        margin: 0;
        font-size: 1rem;
    }

    .section--dark & {
        border-top-color: var(--line-dark);

        &::before {
            color: var(--accent);
        }

        p {
            color: var(--muted-inverse);
        }
    }
}

/* ---------- Promises ---------- */

.promises {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
    gap: 0 var(--space-5);
    margin: 0;
    padding: 0;
    list-style: none;
}

.promise {
    display: flex;
    gap: 0.875rem;
    margin: 0;
    padding: 1.375rem 0 1.75rem;
    border-top: 1px solid var(--line);

    svg {
        flex: none;
        width: 1.375rem;
        height: 1.375rem;
        margin-top: 0.2rem;
        color: var(--accent-text);
    }

    h3 {
        margin: 0 0 0.25rem;
        font-family: var(--font-body);
        font-size: 1.0625rem;
        font-weight: 600;
        letter-spacing: 0;
    }

    p {
        margin: 0;
        font-size: 0.9375rem;
        color: var(--muted);
    }
}

/* ---------- FAQ ---------- */

.faq {
    display: grid;
    gap: var(--space-2);
}

.faq details {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);

    &[open] {
        border-color: var(--ink);

        summary::after {
            transform: rotate(45deg);
        }
    }
}

.faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding: 1rem 1.25rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--ink);
    list-style: none;

    &::-webkit-details-marker {
        display: none;
    }

    &::after {
        content: '+';
        font-family: var(--font-display);
        font-size: 1.4rem;
        line-height: 1;
        color: var(--accent-text);
        transition: transform 0.2s ease;
        flex-shrink: 0;
    }
}

.faq .faq-answer {
    padding: 0 1.25rem 1.1rem;
    color: var(--muted);
}

/* ---------- Prose (blog & legal) ---------- */

.prose {
    font-size: 1.08rem;

    h2 {
        margin-top: var(--space-5);
        font-size: 1.75rem;
    }

    h3 {
        margin-top: var(--space-4);
    }

    ul li,
    ol li {
        margin-bottom: 0.4rem;
    }

    blockquote {
        margin: var(--space-4) 0;
        padding: var(--space-3) var(--space-4);
        border-left: 4px solid var(--accent);
        background: var(--sand);
        border-radius: 0 var(--radius-s) var(--radius-s) 0;
        color: var(--ink);
        font-family: var(--font-display);
        font-size: 1.15rem;
    }
}

/* ---------- Meta rows, badges ---------- */

.meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    font-size: 0.92rem;
    color: var(--muted);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-pill);
    font-size: 0.8125rem;
    font-weight: 500;
    background: var(--sand);
    color: var(--ink);
}

.badge--outline {
    align-self: flex-start;
    background: transparent;
    border: 1px solid var(--line-strong);
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.badge--dark {
    background: var(--ink);
    color: var(--paper);
}

.badge--accent {
    background: var(--accent);
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ---------- Breadcrumbs ---------- */

.breadcrumbs {
    margin-bottom: var(--space-4);
    font-size: 0.9rem;

    ol {
        display: flex;
        flex-wrap: wrap;
        gap: 0.35rem;
        list-style: none;
        margin: 0;
        padding: 0;
    }

    li {
        margin: 0;
        display: flex;
        align-items: center;
        gap: 0.35rem;
        color: var(--muted);

        &:not(:first-child)::before {
            content: '/';
            opacity: 0.5;
        }
    }

    a {
        color: inherit;

        &:hover {
            color: var(--ink);
        }
    }
}

/* ---------- CTA block (orange panel) ---------- */

.cta-block {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-5);
    padding: clamp(2.5rem, 7vw, 6rem) clamp(1.5rem, 5vw, 4.5rem);
    border-radius: var(--radius-panel);
    background: var(--accent);
    color: var(--ink);

    :focus-visible {
        outline-color: var(--ink);
    }

    .eyebrow {
        color: var(--ink);
    }

    h2,
    h3 {
        max-width: 14ch;
        color: var(--ink);
        font-size: clamp(2.25rem, 5vw, 4.25rem);
        line-height: 1;
        letter-spacing: -0.045em;
        margin-bottom: var(--space-4);
    }

    p {
        max-width: 34rem;
        font-size: 1.125rem;
        color: var(--ink);
    }

    a:not(.btn) {
        color: var(--ink);
        text-decoration: underline;
    }

    .btn-row {
        margin-top: var(--space-4);
    }
}

.cta-block > div:first-child,
.cta-block__main {
    flex: 1.3 1 26rem;
    min-width: 0;
}

.cta-block__card {
    flex: 1 1 18rem;
    min-width: 0;
    padding: 1.75rem;
    border-radius: var(--radius-l);
    background: var(--surface);

    ul {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    li {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        margin: 0;
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--line-soft);

        &:last-child {
            border-bottom: 0;
        }
    }

    svg {
        flex: none;
        width: 1.125rem;
        height: 1.125rem;
        stroke-width: 2.2;
    }

    .eyebrow {
        color: var(--muted-2);
        margin-bottom: 0.5rem;
    }
}

/* ---------- Calculator ---------- */

/* White card inside a sand frame; the frame is a spread shadow so the
   component root stays a single element. */
.calc {
    margin: clamp(0.75rem, 2vw, 1.5rem);
    padding: clamp(1.5rem, 4vw, 2rem);
    background: var(--surface);
    border-radius: var(--radius-card);
    box-shadow: 0 0 0 clamp(0.75rem, 2vw, 1.5rem) var(--sand);
    color: var(--text);
}

.calc-fields {
    display: grid;
    gap: var(--space-4);
}

.calc-field {
    label {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        gap: var(--space-3);
        font-weight: 500;
        color: var(--ink);
        margin-bottom: 0.6rem;

        output {
            font-family: var(--font-display);
            font-size: 1.375rem;
            font-weight: 600;
            color: var(--ink);
            white-space: nowrap;
        }
    }
}

input[type='range'] {
    width: 100%;
    height: 0.375rem;
    appearance: none;
    -webkit-appearance: none;
    background: linear-gradient(to right, var(--accent) var(--fill, 50%), var(--line) var(--fill, 50%));
    border-radius: var(--radius-pill);
    cursor: pointer;

    &::-webkit-slider-thumb {
        appearance: none;
        -webkit-appearance: none;
        width: 1.5rem;
        height: 1.5rem;
        border-radius: 50%;
        background: var(--surface);
        border: 3px solid var(--ink);
    }

    &::-moz-range-thumb {
        width: 1.2rem;
        height: 1.2rem;
        border-radius: 50%;
        background: var(--surface);
        border: 3px solid var(--ink);
    }
}

.calc-result {
    display: grid;
    justify-items: start;
    gap: 0.375rem;
    margin-top: var(--space-4);
    padding: 1.375rem 1.5rem;
    border-radius: var(--radius);
    background: var(--espresso);
    color: var(--text-inverse);

    .calc-amount {
        display: block;
        margin-top: 0.375rem;
        font-family: var(--font-display);
        font-size: clamp(2.25rem, 4vw, 3rem);
        font-weight: 600;
        letter-spacing: -0.03em;
        line-height: 1.05;
        color: var(--on-dark);
    }

    .calc-sub {
        color: var(--muted-inverse);
        font-size: 0.9rem;
        margin: 0;
    }
}

.calc-note {
    margin-top: var(--space-3);
    font-size: 0.875rem;
    color: var(--muted);
}

/* ---------- Forms ---------- */

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;

    &.form-field--full {
        grid-column: 1 / -1;
    }

    label {
        font-weight: 500;
        font-size: 0.95rem;
        color: var(--ink);

        .optional {
            font-weight: 400;
            color: var(--muted);
        }
    }
}

.form-input {
    width: 100%;
    min-height: 3rem;
    padding: 0.75rem 1rem;
    font: inherit;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-s);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;

    &:focus {
        outline: none;
        border-color: var(--ink);
        box-shadow: 0 0 0 4px rgb(242 107 29 / 0.25);
    }

    &.form-input--error {
        border-color: var(--danger);
    }
}

textarea.form-input {
    resize: vertical;
    min-height: 7rem;
}

.form-input:hover:not(:focus) {
    border-color: var(--line-hover);
}

/* Selects look like the other fields: own chevron instead of the native arrow,
   muted text while the empty "Kies …" option is selected. */
select.form-input {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 3rem;
    cursor: pointer;
    background-color: var(--surface);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111110' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.1rem center;
    background-size: 1.1rem;
    text-overflow: ellipsis;

    &:has(option[value='']:checked) {
        color: var(--muted);
    }

    option {
        color: var(--ink);
    }

    &:focus {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a3410a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    }
}

.form-error {
    font-size: 0.88rem;
    color: var(--danger);
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.92rem;
    color: var(--muted);

    input {
        margin-top: 0.3rem;
        width: 1.05rem;
        height: 1.05rem;
        accent-color: var(--ink);
        flex-shrink: 0;
    }
}

.form-success {
    padding: var(--space-4);
    border-radius: var(--radius);
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;

    h3 {
        color: #065f46;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    p:last-child {
        margin-bottom: 0;
    }
}

/* Honeypot field: visually gone, still in the DOM for bots. */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (max-width: 640px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Stats ---------- */

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    gap: var(--space-4);
}

.stat {
    text-align: center;

    .stat-number {
        display: block;
        font-family: var(--font-display);
        font-size: clamp(2rem, 4.5vw, 3rem);
        font-weight: 600;
        letter-spacing: -0.03em;
        color: var(--ink);

        .section--dark & {
            color: var(--accent);
        }
    }

    .stat-label {
        font-size: 0.92rem;
        color: var(--muted);

        .section--dark & {
            color: var(--muted-inverse);
        }
    }
}

/* ---------- Blog ---------- */

.post-card {
    display: flex;
    flex-direction: column;
    gap: 0;
    height: 100%;
    padding: 0;
    background: none;

    .post-cover {
        display: flex;
        align-items: flex-end;
        aspect-ratio: 16 / 10;
        margin-bottom: var(--space-3);
        padding: 1.25rem;
        border-radius: var(--radius-card);
        background: var(--espresso);
        color: var(--on-dark);
        font-family: var(--font-display);
        font-size: clamp(1.75rem, 3vw, 2.5rem);
        font-weight: 600;
        letter-spacing: -0.03em;
        line-height: 1;

        &:hover {
            text-decoration: none;
        }

        &.post-cover--1 {
            background: var(--peach);
            color: var(--ink);
        }

        &.post-cover--2 {
            background: var(--accent);
            color: var(--on-accent);
        }
    }

    h3 a {
        color: var(--ink);

        &:hover {
            color: var(--accent-text);
            text-decoration: none;
        }
    }

    .post-excerpt {
        color: var(--muted);
        font-size: 0.98rem;
        margin-bottom: var(--space-3);
    }

    .meta-row {
        margin-top: auto;
    }

    .section--soft & {
        background: none;
    }
}

a.card.post-card:hover,
.card.post-card:hover {
    background: none;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: var(--space-5);

    a {
        display: inline-flex;
        align-items: center;
        min-height: 2.75rem;
        padding: 0 1.125rem;
        border-radius: var(--radius-pill);
        background: var(--sand);
        font-size: 0.92rem;
        font-weight: 500;
        color: var(--ink);

        &:hover {
            background: var(--sand-strong);
            text-decoration: none;
        }

        &.active {
            background: var(--ink);
            color: var(--paper);
        }
    }
}

.search-box {
    position: relative;
    margin-bottom: var(--space-4);

    .search-results {
        position: absolute;
        top: calc(100% + 0.5rem);
        left: 0;
        right: 0;
        z-index: 50;
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: var(--radius);
        box-shadow: var(--shadow-l);
        max-height: 22rem;
        overflow: auto;

        a {
            display: block;
            padding: 0.8rem 1rem;
            color: var(--ink);
            border-bottom: 1px solid var(--line);

            &:last-child {
                border-bottom: 0;
            }

            &:hover {
                background: var(--sand);
                text-decoration: none;
            }

            small {
                display: block;
                color: var(--muted);
            }
        }

        .search-empty {
            display: block;
            padding: 0.8rem 1rem;
            color: var(--muted);
        }
    }
}

/* ---------- Pricing ---------- */

.price-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
    gap: 1rem;
    align-items: stretch;
}

.price-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-tile);
    padding: clamp(1.5rem, 3vw, 2rem);
    background: var(--sand);

    &.price-card--featured {
        background: var(--espresso);
        color: var(--text-inverse);

        h3,
        .price,
        strong {
            color: var(--on-dark);
        }

        .price small,
        ul li,
        p {
            color: var(--muted-inverse);
        }

        ul li::before {
            border-color: var(--accent);
        }
    }

    .price {
        font-family: var(--font-display);
        font-size: 2rem;
        font-weight: 600;
        letter-spacing: -0.03em;
        color: var(--ink);
        margin-bottom: 0.2rem;

        small {
            font-size: 1rem;
            font-weight: 500;
            color: var(--muted);
        }
    }

    ul {
        list-style: none;
        padding: 0;
        margin: var(--space-3) 0 var(--space-4);

        li {
            padding-left: 1.6rem;
            position: relative;
            font-size: 0.96rem;
            color: var(--muted);

            &::before {
                content: '';
                position: absolute;
                left: 0;
                top: 0.5rem;
                width: 0.9rem;
                height: 0.5rem;
                border-left: 2.5px solid var(--accent-text);
                border-bottom: 2.5px solid var(--accent-text);
                transform: rotate(-45deg);
            }
        }
    }

    .btn {
        margin-top: auto;
    }
}

/* ---------- Footer ---------- */

.footer {
    margin-top: clamp(3rem, 6vw, 5rem);
    padding: clamp(4rem, 8vw, 6.5rem) 0 var(--space-5);
    background: var(--sand);
    color: var(--muted);
    font-size: 0.95rem;

    h4 {
        margin-bottom: var(--space-3);
        font-family: var(--font-mono);
        font-size: 0.75rem;
        font-weight: 500;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--muted-2);
    }

    a {
        color: var(--ink);

        &:hover {
            color: var(--accent-text);
        }
    }

    ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    li {
        margin-bottom: 0.55rem;
    }
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: var(--space-5);
    padding-bottom: var(--space-5);
    border-bottom: 1px solid var(--line);

    .logo {
        color: var(--ink);
        margin-bottom: var(--space-3);
    }
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--space-3);
    padding-top: var(--space-4);
    font-size: 0.875rem;

    a {
        color: var(--muted);
    }
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 560px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Reveal animations ---------- */

/* Only hide reveal targets when JS actually runs (progressive enhancement). */
.js .reveal {
    opacity: 0;
    transform: translateY(1.25rem);
    transition: opacity 0.6s ease, transform 0.6s ease;

    &.reveal--visible {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .js .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .btn,
    .card {
        transition: none;
    }

    .mobile-menu {
        animation: none;
    }
}

/* ---------- Helpers ---------- */

.text-center {
    text-align: center;
}

.mt-0 {
    margin-top: 0;
}

.mb-0 {
    margin-bottom: 0;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
    align-items: start;
}

.grid-2--center {
    align-items: center;
}

@media (max-width: 860px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

.divider {
    border: 0;
    border-top: 1px solid var(--line);
    margin: var(--space-5) 0;
}

/* ---------------------------------------------------------------------------
   Cookie consent banner
   Bottom-left card; on mobile it sits above the tab bar.
   --------------------------------------------------------------------------- */

.cookie-banner {
    position: fixed;
    z-index: 60;
    inset-block-end: var(--space-3);
    inset-inline-start: var(--space-3);
    inline-size: min(26rem, calc(100vw - var(--space-3) * 2));

    &[hidden] {
        display: none;
    }

    .cookie-banner__box {
        position: relative;
        padding: var(--space-4);
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: var(--radius-l);
        box-shadow: var(--shadow-l);
    }

    .cookie-banner__close {
        position: absolute;
        inset-block-start: var(--space-2);
        inset-inline-end: var(--space-2);
        display: grid;
        place-items: center;
        inline-size: 2.75rem;
        block-size: 2.75rem;
        padding: 0;
        color: var(--muted);
        background: none;
        border: 0;
        border-radius: 50%;
        cursor: pointer;

        &:hover {
            color: var(--ink);
            background: var(--sand);
        }
    }

    .cookie-banner__eyebrow {
        margin: 0 0 var(--space-1);
        font-family: var(--font-mono);
        font-size: 0.75rem;
        font-weight: 500;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--muted-2);
    }

    .cookie-banner__title {
        margin: 0 0 var(--space-2);
        padding-right: 2rem;
        font-family: var(--font-display);
        font-size: 1.125rem;
        line-height: 1.3;
        letter-spacing: -0.02em;
    }

    .cookie-banner__text {
        margin: 0 0 var(--space-2);
        font-size: 0.875rem;
        color: var(--muted);
    }

    .cookie-banner__fineprint {
        margin: 0 0 var(--space-4);
        font-size: 0.8125rem;
        color: var(--muted);
    }

    .cookie-banner__actions {
        display: flex;
        gap: var(--space-2);

        .btn {
            flex: 1;
            padding-inline: 0.75rem !important;
        }
    }
}

@media (max-width: 980px) {
    .cookie-banner {
        inset-block-end: calc(var(--tabbar-gap) + 78px);
        inset-inline: 12px;
        inline-size: auto;
        z-index: 115;
    }
}

.footer-link-button {
    padding: 0;
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    cursor: pointer;

    &:hover {
        text-decoration: underline;
    }
}
