/* ==========================================================================
   Components
   ========================================================================== */

/* --- Header & navigation ---------------------------------------------- */
app-header { position: sticky; top: 0; z-index: 100; }

.site-header {
    position: relative;
    isolation: isolate;
    height: var(--header-h);
    border-bottom: 1px solid transparent;
    transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
/* Blur lives on a pseudo-element: a backdrop-filter on the header itself would
   trap the fixed-position mobile menu inside the header box. */
.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--c-header);
    -webkit-backdrop-filter: saturate(1.6) blur(16px);
    backdrop-filter: saturate(1.6) blur(16px);
}
.site-header.is-scrolled { border-bottom-color: var(--c-border); box-shadow: var(--shadow-sm); }

.nav {
    height: 100%;
    display: flex;
    align-items: center;
    gap: var(--space-5);
}
.nav-logo { display: flex; align-items: center; margin-left: -12px; }
.nav-logo img { height: 46px; width: auto; }
.logo-on-dark { display: none; }
@media (prefers-color-scheme: dark) {
    .logo-on-light { display: none; }
    .logo-on-dark { display: block; }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    margin-inline: auto;
}
.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
    padding: 0.5rem 0.85rem;
    border: 0;
    border-radius: var(--r-pill);
    background: none;
    color: var(--c-text);
    font-size: var(--fs-small);
    font-weight: 550;
    text-decoration: none;
    transition: background var(--dur-fast), color var(--dur-fast);
}
.nav-link:hover, .nav-link[aria-expanded="true"] { background: var(--c-primary-soft); color: var(--c-primary); }
.nav-link[aria-current="page"], .nav-link.is-active { color: var(--c-primary); }
.nav-link .icon { width: 1em; height: 1em; transition: transform var(--dur-fast); }
.nav-link[aria-expanded="true"] .icon { transform: rotate(180deg); }

.has-menu { position: relative; }
.nav-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    width: 360px;
    padding: var(--space-2);
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    background: var(--c-surface);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -6px);
    transition: opacity var(--dur-fast), transform var(--dur-fast), visibility var(--dur-fast);
}
.nav-menu::before { /* hover bridge */
    content: "";
    position: absolute;
    inset: -12px 0 auto;
    height: 12px;
}
.nav-menu-toggle[aria-expanded="true"] + .nav-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
@media (hover: hover) and (min-width: 1024px) {
    .has-menu:hover .nav-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
}
.nav-menu ul { list-style: none; padding: 0; margin: 0; }
.nav-menu-link {
    display: flex;
    gap: var(--space-3);
    align-items: flex-start;
    padding: var(--space-3);
    border-radius: var(--r-sm);
    color: var(--c-text);
    text-decoration: none;
}
.nav-menu-link:hover { background: var(--c-tint); color: var(--c-text); }
.nav-menu-link strong { display: block; font-size: var(--fs-small); font-weight: 600; }
.nav-menu-link small { display: block; font-size: var(--fs-xs); color: var(--c-text-muted); }
.nav-menu-icon {
    display: grid;
    place-items: center;
    width: 36px; height: 36px;
    border-radius: 10px;
    background: var(--c-primary-soft);
    color: var(--c-primary);
}
.nav-menu-icon .icon { width: 20px; height: 20px; }

.nav-actions { display: flex; align-items: center; gap: var(--space-3); }
.nav-cta-mobile { display: none; }

.nav-toggle {
    display: none;
    position: relative;
    width: 44px; height: 44px;
    border: 1px solid var(--c-border);
    border-radius: var(--r-pill);
    background: var(--c-surface);
}
.nav-toggle span {
    position: absolute;
    left: 13px; right: 13px;
    height: 2px;
    border-radius: 2px;
    background: var(--c-text);
    transition: transform var(--dur-fast);
}
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 25px; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 1023px) {
    .nav-toggle { display: block; }
    .nav-actions { margin-left: auto; }
    .nav-links {
        position: fixed;
        inset: var(--header-h) 0 0 0;
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-1);
        margin: 0;
        padding: var(--space-4) var(--gutter) calc(var(--space-6) + env(safe-area-inset-bottom, 0px));
        background: var(--c-bg);
        overflow-y: auto;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity var(--dur-fast), transform var(--dur-fast), visibility var(--dur-fast);
    }
    .nav-open .nav-links { opacity: 1; visibility: visible; transform: none; }
    .nav-open body { overflow: hidden; }
    .nav-link {
        width: 100%;
        justify-content: space-between;
        padding: var(--space-4);
        border-radius: var(--r-sm);
        font-size: 1.125rem;
    }
    .nav-menu {
        position: static;
        width: auto;
        padding: 0 0 var(--space-2);
        border: 0;
        box-shadow: none;
        background: none;
        transform: none;
        display: none;
        opacity: 1;
        visibility: visible;
    }
    .nav-menu-toggle[aria-expanded="true"] + .nav-menu { display: block; transform: none; }
    .nav-cta-mobile { display: block; margin-top: var(--space-4); }
    .nav-cta-mobile .btn { width: 100%; }
}
@media (max-width: 479px) {
    .nav-logo img { height: 38px; }
    .nav-actions .btn { padding-inline: 0.85rem; }
}

/* --- Buttons ---------------------------------------------------------- */
.btn {
    --btn-bg: var(--c-surface);
    --btn-fg: var(--c-text);
    --btn-border: var(--c-border-strong);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    min-height: 44px;
    padding: 0.6rem 1.15rem;
    border: 1px solid var(--btn-border);
    border-radius: var(--r-pill);
    background: var(--btn-bg);
    color: var(--btn-fg);
    font-size: var(--fs-small);
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast), box-shadow var(--dur-fast), border-color var(--dur-fast);
}
.btn:hover { color: var(--btn-fg); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .icon { width: 1.1em; height: 1.1em; transition: transform var(--dur-fast) var(--ease-out); }
.btn:hover .icon { transform: translateX(3px); }
.btn--sm { min-height: 38px; padding: 0.45rem 1rem; }
.btn--lg { min-height: 52px; padding: 0.8rem 1.5rem; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--primary {
    --btn-bg: var(--c-primary);
    --btn-fg: #fff;
    --btn-border: var(--c-primary);
    box-shadow: 0 6px 20px -6px color-mix(in srgb, var(--c-primary) 70%, transparent);
}
.btn--primary:hover { --btn-bg: var(--c-primary-hover); --btn-border: var(--c-primary-hover); }
.btn--ghost { --btn-bg: transparent; }
.btn--ghost:hover { --btn-bg: var(--c-surface); border-color: var(--c-text-muted); }
.btn--ghost .icon:first-child { color: var(--c-primary); }
.btn--ghost:hover .icon:first-child { transform: none; }
.btn--light { --btn-bg: #fff; --btn-fg: var(--c-navy); --btn-border: #fff; }
.btn--light:hover { --btn-bg: var(--c-lime-bright); --btn-border: var(--c-lime-bright); }
.btn--ghost-light { --btn-bg: transparent; --btn-fg: #fff; --btn-border: rgba(255, 255, 255, 0.35); }
.btn--ghost-light:hover { --btn-bg: rgba(255, 255, 255, 0.08); --btn-border: #fff; }
.btn.is-disabled { opacity: 0.55; pointer-events: none; }
.btn-meta {
    padding: 0.1em 0.5em;
    border-radius: var(--r-pill);
    background: var(--c-tint);
    color: var(--c-text-muted);
    font-size: var(--fs-xs);
    font-weight: 550;
}
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.btn-row--center { justify-content: center; }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    font-weight: 600;
    text-decoration: none;
}
.link-arrow .icon { transition: transform var(--dur-fast) var(--ease-out); }
.link-arrow:hover .icon, a:hover .link-arrow .icon { transform: translateX(4px); }
.link-arrow--light { color: #fff; }
.link-arrow--light:hover { color: var(--c-lime-bright); }

/* --- Badges, tags, chips --------------------------------------------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
    padding: 0.2em 0.65em;
    border-radius: var(--r-pill);
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.01em;
    vertical-align: middle;
}
.badge--placeholder {
    background: repeating-linear-gradient(-45deg, rgba(224, 163, 26, 0.16) 0 6px, rgba(224, 163, 26, 0.08) 6px 12px);
    color: #8a5a00;
    border: 1px dashed rgba(224, 163, 26, 0.6);
}
@media (prefers-color-scheme: dark) { .badge--placeholder { color: #f2c35a; } }
.badge--new { background: var(--c-lime-soft); color: var(--c-lime-text); }

.tag {
    display: inline-block;
    padding: 0.15em 0.6em;
    border-radius: var(--r-pill);
    background: var(--c-tint);
    color: var(--c-text-muted);
    font-size: var(--fs-xs);
    font-weight: 550;
}

.pill-list { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-block: var(--space-5); }
.pill-list li {
    padding: 0.45rem 0.95rem;
    border: 1px solid var(--c-border);
    border-radius: var(--r-pill);
    background: var(--c-surface);
    font-size: var(--fs-small);
    font-weight: 550;
}

.status-dot {
    display: inline-block;
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--c-lime);
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--c-lime) 60%, transparent);
    animation: pulse 2.4s infinite;
    vertical-align: middle;
}
.status-dot--warn { background: var(--c-warn); animation-name: pulse-warn; }
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c-lime) 55%, transparent); }
    70%, 100% { box-shadow: 0 0 0 9px transparent; }
}
@keyframes pulse-warn {
    0% { box-shadow: 0 0 0 0 rgba(224, 163, 26, 0.55); }
    70%, 100% { box-shadow: 0 0 0 9px transparent; }
}

/* --- Section heads ---------------------------------------------------- */
.section-head {
    display: grid;
    gap: var(--space-4);
    max-width: 820px;
    margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4.5rem);
}
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head--center .lead { margin-inline: auto; }
.section-head--center .note { justify-content: center; }
.section-link { margin-top: var(--space-7); }
.section-link--center { text-align: center; }

/* --- Hero ------------------------------------------------------------- */
.hero, .page-hero { position: relative; isolation: isolate; overflow: clip; }
.hero { padding-block: clamp(2.5rem, 1rem + 5vw, 6rem) clamp(3rem, 2rem + 4vw, 6rem); }
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(60% 55% at 85% 20%, color-mix(in srgb, var(--c-sky) 18%, transparent), transparent 70%),
        radial-gradient(40% 40% at 10% 90%, var(--c-lime-soft), transparent 70%);
}
.hero-bg::after { /* faint grid */
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--c-border) 1px, transparent 1px),
        linear-gradient(90deg, var(--c-border) 1px, transparent 1px);
    background-size: 56px 56px;
    opacity: 0.45;
    -webkit-mask-image: radial-gradient(70% 60% at 60% 40%, #000, transparent 75%);
    mask-image: radial-gradient(70% 60% at 60% 40%, #000, transparent 75%);
}
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(2rem, 1rem + 4vw, 5rem);
}
.hero-copy { display: grid; gap: var(--space-5); justify-items: start; }
.hero-copy .display { margin-top: calc(var(--space-2) * -1); }

.trustline {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2) var(--space-5);
    color: var(--c-text-muted);
    font-size: var(--fs-small);
}
.trustline li { display: inline-flex; align-items: center; gap: 0.4em; }
.trustline .icon { color: var(--c-lime-text); width: 1.1em; height: 1.1em; }

.page-hero { padding-block: clamp(3rem, 1.5rem + 5vw, 7rem) clamp(3rem, 1.5rem + 4vw, 5.5rem); }
.page-hero .container { display: grid; gap: var(--space-5); justify-items: start; }
.page-hero--center .container { justify-items: center; text-align: center; }
.page-hero--center .lead { margin-inline: auto; }
.page-hero--statement .display { max-width: 16ch; }
.page-hero--statement .display em { font-style: normal; color: var(--c-primary); }
.page-hero-grid {
    justify-items: stretch !important;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: center;
    gap: clamp(2rem, 1rem + 4vw, 5rem) !important;
}
.page-hero-grid > div:first-child { display: grid; gap: var(--space-5); justify-items: start; }

@media (max-width: 899px) {
    .hero-grid, .page-hero-grid { grid-template-columns: minmax(0, 1fr); }
}

.toc {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: var(--space-3);
}
.toc a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0.4rem 0.9rem;
    border: 1px solid var(--c-border);
    border-radius: var(--r-pill);
    background: var(--c-surface);
    color: var(--c-text);
    font-size: var(--fs-small);
    font-weight: 550;
    text-decoration: none;
}
.toc a:hover { border-color: var(--c-primary); color: var(--c-primary); }

/* Floating chips (hero accents) */
.float-chip {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.55rem 0.95rem;
    border: 1px solid var(--c-border);
    border-radius: var(--r-pill);
    background: color-mix(in srgb, var(--c-surface) 88%, transparent);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    font-size: var(--fs-xs);
    font-weight: 600;
    white-space: nowrap;
    animation: float 6s var(--ease-in-out) infinite;
}
.float-chip .icon { color: var(--c-primary); width: 1.1em; height: 1.1em; }
.float-chip--a { left: 2%; bottom: 0; }
.float-chip--b { right: -2%; top: -1%; animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-10px); } }
@media (max-width: 599px) {
    .float-chip--a { left: 2%; bottom: -4%; }
    .float-chip--b { right: 2%; top: -4%; }
}

/* --- Logo strip / marquee --------------------------------------------- */
.logo-strip {
    padding-block: var(--space-6) var(--space-7);
    border-block: 1px solid var(--c-border);
    background: var(--c-surface);
    text-align: center;
}
.logo-strip-label {
    margin-bottom: var(--space-5);
    color: var(--c-text-muted);
    font-size: var(--fs-small);
}
.marquee {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
    display: flex;
    width: max-content;
    gap: var(--space-8);
    animation: marquee 40s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - var(--space-8) / 2)); } }
.logo-chip {
    font-size: clamp(1.15rem, 1rem + 0.6vw, 1.5rem);
    font-weight: 750;
    letter-spacing: -0.03em;
    color: var(--c-text-muted);
    white-space: nowrap;
    transition: opacity var(--dur-fast), color var(--dur-fast);
}
.logo-chip:hover { color: var(--c-text); }

/* --- Scenes ("Herkenbaar?") ------------------------------------------- */
.scenes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: var(--space-5);
}
.scene {
    position: relative;
    padding: var(--space-6);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    background: var(--c-surface);
    overflow: hidden;
}
.scene::after { /* faint "error" pulse in the corner */
    content: "";
    position: absolute;
    top: var(--space-6);
    right: var(--space-6);
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--c-danger);
    opacity: 0.8;
    animation: blink 3s infinite;
}
.scene:nth-child(2)::after { animation-delay: -1s; background: var(--c-warn); }
.scene:nth-child(3)::after { animation-delay: -2s; }
@keyframes blink { 0%, 60%, 100% { opacity: 0.85; } 30% { opacity: 0.15; } }
.scene-time {
    display: flex;
    align-items: center;
    gap: 0.45em;
    margin-bottom: var(--space-5);
    color: var(--c-text-muted);
    font-size: var(--fs-small);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.scene-text {
    font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.75rem);
    line-height: 1.3;
    letter-spacing: -0.02em;
    font-weight: 600;
}

/* --- Statement -------------------------------------------------------- */
.statement {
    padding-block: var(--section);
    background: var(--c-surface);
    border-block: 1px solid var(--c-border);
}
.statement-text {
    max-width: 18ch;
    font-size: clamp(2.3rem, 1.2rem + 4.8vw, 5.5rem);
    line-height: 1.05;
    letter-spacing: var(--tracking-display);
    font-weight: 700;
}
.statement-text em { font-style: normal; color: var(--c-primary); }
.statement-sub {
    margin-top: var(--space-6);
    color: var(--c-text-muted);
    font-size: var(--fs-lead);
}

/* --- Steps ------------------------------------------------------------ */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: var(--space-5);
    margin-top: var(--space-7);
}
.step { padding-top: var(--space-5); border-top: 2px solid var(--c-border); position: relative; }
.step::before {
    content: "";
    position: absolute;
    top: -2px; left: 0;
    width: 48px; height: 2px;
    background: var(--c-primary);
}
.step .h3 { display: flex; align-items: center; gap: 0.5em; margin: var(--space-2) 0; }
.step .h3 .icon { color: var(--c-primary); }
.step p { color: var(--c-text-muted); }
.step-num {
    display: inline-block;
    color: var(--c-primary);
    font-size: var(--fs-small);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.05em;
}

/* --- Night (short version on home) ------------------------------------ */
.section--night {
    background:
        radial-gradient(50% 60% at 80% 0%, rgba(26, 158, 207, 0.22), transparent 70%),
        linear-gradient(180deg, #06101d 0%, #0b2340 100%);
    color: var(--stage-text);
    overflow: hidden;
}
.section--night .eyebrow { color: var(--c-lime-bright); }
.section--night .h2 em { font-style: normal; color: var(--c-lime-bright); }
.night-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
    gap: var(--space-5);
    margin-top: var(--space-6);
}
.night-list li { padding: var(--space-5); border: 1px solid var(--stage-border); border-radius: var(--r-md); background: rgba(255, 255, 255, 0.03); }
.night-list time {
    display: block;
    margin-bottom: var(--space-2);
    color: var(--c-lime-bright);
    font-family: var(--font-mono);
    font-size: 1.35rem;
    font-weight: 600;
}
.night-list p { color: var(--stage-muted); }
.night-list strong { color: var(--stage-text); }

/* --- Bento ------------------------------------------------------------ */
.bento {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: minmax(280px, auto);
    gap: var(--space-4);
}
.bento--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tile {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding: var(--space-5);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    background: var(--c-surface);
    overflow: hidden;
    transition: border-color var(--dur-fast), box-shadow var(--dur-fast), transform var(--dur-fast) var(--ease-out);
}
.tile:hover { border-color: var(--c-border-strong); box-shadow: var(--shadow-md); }
.tile p { color: var(--c-text-muted); font-size: var(--fs-small); }
.tile-graphic {
    flex: 1;
    min-height: 150px;
    margin: calc(var(--space-5) * -1) calc(var(--space-5) * -1) var(--space-4);
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--c-tint), transparent);
}
.tile--lg { grid-column: span 2; grid-row: span 2; }
.tile--lg .h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); letter-spacing: -0.025em; }
.tile--lg p { font-size: var(--fs-body); max-width: 44ch; }
.tile--wide { grid-column: span 2; }
.bento > .tile:nth-child(2) { grid-column: span 2; }
.bento--4 > .tile:nth-child(2) { grid-column: auto; }
@media (min-width: 1024px) { .bento > .tile--wide:last-child { grid-column: span 3; } }
@media (max-width: 1023px) {
    .bento, .bento--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tile--lg { grid-row: auto; }
    .bento > .tile:nth-child(2) { grid-column: auto; }
}
@media (max-width: 639px) {
    .bento, .bento--4 { grid-template-columns: 1fr; }
    .tile--lg, .tile--wide { grid-column: auto; }
}

/* Tiles size their type to the slot they occupy, not the viewport */
.tile { container-type: inline-size; }
@container (min-width: 520px) {
    .tile .h3 { font-size: clamp(1.4rem, 5cqi, 2.1rem); }
}
@container (max-width: 260px) {
    .tile-graphic { min-height: 120px; }
    .tile p { font-size: var(--fs-xs); }
}

/* --- Stage (dark product section) ------------------------------------- */
.section--stage {
    background:
        radial-gradient(60% 50% at 50% 0%, rgba(26, 158, 207, 0.25), transparent 70%),
        var(--stage-bg);
    color: var(--stage-text);
    overflow: hidden;
}
.section--stage .eyebrow { color: var(--c-lime-bright); }
.section--stage .lead { color: var(--stage-muted); }
.showcase { position: relative; }
.callouts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-3) var(--space-6);
    margin-top: var(--space-6);
    color: var(--stage-muted);
    font-size: var(--fs-small);
}
.callout { display: inline-flex; align-items: center; gap: 0.6em; }
.callout span {
    display: grid;
    place-items: center;
    width: 24px; height: 24px;
    border-radius: 50%;
    background: var(--c-lime-bright);
    color: var(--c-navy);
    font-size: var(--fs-xs);
    font-weight: 700;
}

/* --- Media placeholders ----------------------------------------------- */
.media-ph {
    position: relative;
    display: grid;
    place-items: center;
    align-content: center;
    gap: var(--space-2);
    aspect-ratio: 4 / 3;
    width: 100%;
    border-radius: var(--r-md);
    overflow: hidden;
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: var(--ph-bg, linear-gradient(135deg, #0d6a9e, #0d2a4a));
}
.media-ph::before { /* brand rings pattern */
    content: "";
    position: absolute;
    inset: -30%;
    background: repeating-radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.09) 0 1px, transparent 1px 38px);
    animation: ph-drift 24s linear infinite;
}
.media-ph::after { /* soft light sweep */
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.12) 50%, transparent 70%);
    transform: translateX(-100%);
    animation: ph-sweep 5s var(--ease-in-out) infinite;
}
@keyframes ph-drift { to { transform: rotate(360deg); } }
@keyframes ph-sweep { 60%, 100% { transform: translateX(100%); } }
.media-ph .icon { width: 44px; height: 44px; position: relative; z-index: 1; }
.media-ph span { position: relative; z-index: 1; }
.media-ph--zorg { --ph-bg: linear-gradient(135deg, #1a9ecf 0%, #0d4f7a 60%, #0d2a4a 100%); }
.media-ph--publiek { --ph-bg: linear-gradient(135deg, #3d5a80 0%, #0d2a4a 100%); }
.media-ph--mkb { --ph-bg: linear-gradient(135deg, #8aaa00 0%, #3f6b3a 45%, #0d2a4a 100%); }
.media-ph--team { --ph-bg: linear-gradient(120deg, #0d6a9e, #0d2a4a 60%, #1f3d2a); }
.media-ph--office { --ph-bg: linear-gradient(135deg, #4f5d75, #0d2a4a); }
.media-ph--portrait { aspect-ratio: 4 / 5; --ph-bg: linear-gradient(160deg, #cfd8e3, #8a99ad); color: rgba(15, 27, 45, 0.55); }
.media-ph--tall { aspect-ratio: 4 / 4.4; border-radius: var(--r-xl); }
.media-ph--wide { aspect-ratio: 21 / 9; border-radius: var(--r-xl); }
.media-ph--fill { aspect-ratio: auto; height: 100%; min-height: 320px; }

.media-photo {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: var(--r-md);
    overflow: hidden;
}
.media-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-photo--team img { object-position: 50% 25%; } /* keep heads in the wide crop */
.section--after-hero { padding-top: var(--space-7); } /* content that follows a page hero directly */
.avatar-ph {
    width: 52px; height: 52px;
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(160deg, #cfd8e3, #8a99ad);
}

.sector-hero-media { position: relative; }

/* --- Sector cards ----------------------------------------------------- */
.sector-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: var(--space-5);
}
.sector-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    background: var(--c-surface);
    color: var(--c-text);
    text-decoration: none;
    overflow: hidden;
    transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast);
}
.sector-card:hover { color: var(--c-text); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.sector-card .media-ph { border-radius: 0; aspect-ratio: 16 / 10; }
.sector-card .media-ph .icon { transition: transform var(--dur) var(--ease-out); }
.sector-card:hover .media-ph .icon { transform: scale(1.15); }
.sector-body { display: grid; gap: var(--space-2); padding: var(--space-5); }
.sector-body p { color: var(--c-text-muted); }
.sector-body .link-arrow { margin-top: var(--space-2); }

/* --- Quote ------------------------------------------------------------ */
.quote { display: grid; gap: var(--space-5); max-width: 980px; margin-inline: auto; justify-items: start; }
.quote blockquote p {
    font-size: clamp(1.6rem, 1.1rem + 2vw, 2.75rem);
    line-height: 1.2;
    letter-spacing: -0.025em;
    font-weight: 600;
}
.quote figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); color: var(--c-text-muted); }
.quote figcaption strong { color: var(--c-text); }
.quote-metric {
    margin-left: auto;
    padding: var(--space-3) var(--space-5);
    border-radius: var(--r-md);
    background: var(--c-lime-soft);
    color: var(--c-text);
}
.quote-metric strong { font-size: 1.5rem; margin-right: 0.25em; }

/* --- Stats ------------------------------------------------------------ */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: var(--space-5);
}
.stat {
    display: flex;
    flex-direction: column-reverse;
    gap: var(--space-2);
    padding: var(--space-6) var(--space-5);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    background: var(--c-surface);
}
.stat dd {
    font-size: clamp(2.5rem, 1.8rem + 2.5vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    color: var(--c-text);
}
.stat dt { color: var(--c-text-muted); font-size: var(--fs-small); }

/* --- Split ------------------------------------------------------------ */
.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(2rem, 1rem + 5vw, 6rem);
}
.split-copy { display: grid; gap: var(--space-5); justify-items: start; }
.split--reverse .split-copy { order: 2; }
.split--step + .split--step { margin-top: clamp(4rem, 2rem + 6vw, 8rem); }
@media (max-width: 899px) {
    .split { grid-template-columns: 1fr; }
    .split--reverse .split-copy { order: 0; }
}

.two-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
    gap: clamp(2rem, 1rem + 4vw, 5rem);
}
.two-col > div { display: grid; gap: var(--space-4); align-content: start; }
.two-col--story { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
@media (max-width: 899px) { .two-col--story { grid-template-columns: 1fr; } }
.prose-block { display: grid; gap: var(--space-4); font-size: var(--fs-lead); color: var(--c-text-muted); }

/* Lists */
.checklist, .crosslist { display: grid; gap: var(--space-3); }
.checklist li, .crosslist li { position: relative; padding-left: 1.9em; }
.checklist li::before, .crosslist li::before {
    content: "";
    position: absolute;
    left: 0; top: 0.2em;
    width: 1.25em; height: 1.25em;
    border-radius: 50%;
    background: var(--c-lime-soft) no-repeat center / 0.8em;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236f8900' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}
.crosslist li::before {
    background-color: rgba(214, 69, 69, 0.12);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d64545' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7 7 17'/%3E%3C/svg%3E");
}

.spec-list { display: grid; gap: 0; border-top: 1px solid var(--c-border); }
.spec-list > div {
    display: grid;
    grid-template-columns: minmax(120px, 0.4fr) 1fr;
    gap: var(--space-4);
    padding-block: var(--space-4);
    border-bottom: 1px solid var(--c-border);
}
.spec-list dt { font-weight: 650; }
.spec-list dd { color: var(--c-text-muted); }

/* What Telvar sees */
.sees {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: var(--space-5);
    width: 100%;
}
.sees ul { display: grid; gap: var(--space-2); padding-left: 1.2em; color: var(--c-text-muted); }
.sees-title { display: flex; align-items: center; gap: 0.5em; margin-bottom: var(--space-3); font-size: var(--fs-h4); font-weight: 650; }
.sees-title .icon { color: var(--c-primary); }
.sees--cards ul { padding-left: 0; color: var(--c-text); }

/* --- Cards ------------------------------------------------------------ */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: var(--space-5);
}
.card {
    display: grid;
    align-content: start;
    gap: var(--space-3);
    padding: var(--space-6);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    background: var(--c-surface);
}
.card p { color: var(--c-text-muted); }
.card--big .h3 { font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.75rem); letter-spacing: -0.02em; }
.card-icon {
    display: grid;
    place-items: center;
    width: 48px; height: 48px;
    margin-bottom: var(--space-2);
    border-radius: 14px;
    background: var(--c-primary-soft);
    color: var(--c-primary);
}
.card-icon .icon { width: 26px; height: 26px; }
.card-num { color: var(--c-primary); font-weight: 700; font-variant-numeric: tabular-nums; }

/* --- Timeline --------------------------------------------------------- */
.timeline {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-6);
    position: relative;
}
.timeline::before {
    content: "";
    position: absolute;
    top: 22px; left: 22px; right: calc((100% - 2 * var(--space-6)) / 3 - 22px);
    height: 2px;
    background: linear-gradient(90deg, var(--c-primary), var(--c-lime));
    transform-origin: left;
    animation: timeline-grow 1.6s var(--ease-out) both;
    animation-timeline: view();
    animation-range: entry 10% cover 40%;
}
@keyframes timeline-grow { from { transform: scaleX(0); } }
.timeline li { position: relative; display: grid; gap: var(--space-2); }
.timeline p { color: var(--c-text-muted); }
.timeline-dot {
    display: grid;
    place-items: center;
    width: 46px; height: 46px;
    margin-bottom: var(--space-3);
    border: 2px solid var(--c-primary);
    border-radius: 50%;
    background: var(--c-bg);
    color: var(--c-primary);
    font-weight: 700;
}
.timeline li:last-child .timeline-dot { border-color: var(--c-lime); background: var(--c-lime); color: var(--c-navy); }
@media (max-width: 767px) {
    .timeline { grid-template-columns: 1fr; }
    .timeline::before { top: 22px; bottom: 22px; left: 22px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--c-primary), var(--c-lime)); }
    .timeline li { padding-left: 70px; }
    .timeline-dot { position: absolute; left: 0; top: 0; }
}

/* --- FAQ / disclosure ------------------------------------------------- */
.faq-layout { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.faq-layout .section-head { position: sticky; top: calc(var(--header-h) + 2rem); }
@media (max-width: 899px) {
    .faq-layout { grid-template-columns: 1fr; }
    .faq-layout .section-head { position: static; }
}
.faq { display: grid; gap: var(--space-3); }
.faq details, .disclosure {
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    background: var(--c-surface);
    transition: border-color var(--dur-fast);
}
.faq details[open], .disclosure[open] { border-color: var(--c-border-strong); }
.faq summary, .disclosure summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding: var(--space-5);
    font-weight: 600;
    list-style: none;
    cursor: pointer;
}
.faq summary::-webkit-details-marker, .disclosure summary::-webkit-details-marker { display: none; }
.faq summary::after, .disclosure summary::after {
    content: "";
    flex-shrink: 0;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--c-tint) no-repeat center / 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d6a9e' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
    transition: transform var(--dur-fast) var(--ease-out);
}
.faq details[open] summary::after, .disclosure[open] summary::after { transform: rotate(45deg); }
.faq details p, .disclosure > p, .disclosure > .table-scroll { padding: 0 var(--space-5) var(--space-5); color: var(--c-text-muted); }
.disclosure { margin-top: var(--space-6); }

/* --- Tables ----------------------------------------------------------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare-table {
    width: 100%;
    min-width: 620px;
    border-collapse: separate;
    border-spacing: 0;
    font-size: var(--fs-small);
}
.compare-table th, .compare-table td { padding: var(--space-4) var(--space-5); text-align: left; border-bottom: 1px solid var(--c-border); vertical-align: top; }
.compare-table thead th { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.06em; color: var(--c-text-muted); }
.compare-table tbody th { font-weight: 650; }
.compare-table td { color: var(--c-text-muted); }
.compare-table .is-telvar { background: var(--c-primary-soft); color: var(--c-text); font-weight: 600; }
.compare-table thead .is-telvar { color: var(--c-primary); border-radius: var(--r-sm) var(--r-sm) 0 0; }
.compare-table--small th, .compare-table--small td { padding: var(--space-3) var(--space-4); }
.is-telvar-row th, .is-telvar-row td { background: var(--c-lime-soft); color: var(--c-text); font-weight: 650; }
.dot { display: inline-block; width: 9px; height: 9px; margin-right: 0.5em; border-radius: 50%; vertical-align: middle; }
.dot--good { background: var(--c-lime); }
.dot--mid { background: var(--c-warn); }
.dot--bad { background: var(--c-danger); }

/* --- Connectors ------------------------------------------------------- */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip {
    min-height: 44px;
    padding: 0.45rem 1rem;
    border: 1px solid var(--c-border);
    border-radius: var(--r-pill);
    background: var(--c-surface);
    font-size: var(--fs-small);
    font-weight: 550;
    transition: background var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast);
}
.chip:hover { border-color: var(--c-text-muted); }
.chip.is-active { background: var(--c-text); border-color: var(--c-text); color: var(--c-bg); }
.search {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    min-width: min(100%, 280px);
    padding: 0 var(--space-4);
    border: 1px solid var(--c-border);
    border-radius: var(--r-pill);
    background: var(--c-surface);
    color: var(--c-text-muted);
}
.search:focus-within { border-color: var(--c-primary); }
.search input { flex: 1; min-height: 42px; border: 0; background: none; outline: none; }
.connector-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
    gap: var(--space-4);
}
.connector-card {
    display: grid;
    align-content: start;
    gap: var(--space-2);
    padding: var(--space-5);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    background: var(--c-surface);
    transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast), opacity 0.3s;
}
.connector-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.connector-card[hidden] { display: none; }
.connector-card p { color: var(--c-text-muted); font-size: var(--fs-small); }
.connector-card .tag { justify-self: start; margin-top: auto; }
.connector-card .h4 { display: flex; align-items: center; gap: var(--space-2); }
.connector-logo {
    display: grid;
    place-items: center;
    width: 52px; height: 52px;
    margin-bottom: var(--space-3);
    border-radius: 14px;
    background: linear-gradient(135deg, hsl(var(--hue, 200) 70% 45%), hsl(calc(var(--hue, 200) + 30) 60% 30%));
    color: #fff;
    font-size: var(--fs-xs);
    font-weight: 800;
    letter-spacing: 0.02em;
}
.connector-logo .icon { width: 24px; height: 24px; }
.filter-empty { padding: var(--space-6); text-align: center; color: var(--c-text-muted); }

/* --- Downloads -------------------------------------------------------- */
.download {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-4);
    margin-top: var(--space-6);
    padding: var(--space-5);
    border: 1px dashed var(--c-border-strong);
    border-radius: var(--r-lg);
    background: var(--c-surface);
    color: var(--c-text);
    text-decoration: none;
}
.download > div { flex: 1 1 220px; }
.download p { color: var(--c-text-muted); font-size: var(--fs-small); }
a.download { border-style: solid; }
a.download:hover { color: var(--c-text); border-color: var(--c-primary); }
.download-icon {
    display: grid;
    place-items: center;
    width: 52px; height: 52px;
    border-radius: 14px;
    background: var(--c-primary-soft);
    color: var(--c-primary);
}
.download-icon .icon { width: 26px; height: 26px; }
.download-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: var(--space-4); }
.download-grid .download { margin-top: 0; }

/* --- Case studies ----------------------------------------------------- */
.case-feature {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    border: 1px solid var(--c-border);
    border-radius: var(--r-xl);
    background: var(--c-surface);
    overflow: hidden;
}
.case-media .media-ph { border-radius: 0; }
.case-body { display: grid; gap: var(--space-5); padding: clamp(1.5rem, 1rem + 3vw, 3.5rem); }
.case-meta { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.case-quote p { font-size: var(--fs-lead); font-weight: 550; line-height: 1.45; }
.case-person { color: var(--c-text-muted); }
.case-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.case-metrics > div { display: flex; flex-direction: column-reverse; padding: var(--space-4); border-radius: var(--r-md); background: var(--c-tint); }
.case-metrics dd { font-size: 2rem; font-weight: 700; letter-spacing: -0.03em; }
.case-metrics dt { font-size: var(--fs-xs); color: var(--c-text-muted); }
.case-story { display: grid; gap: var(--space-2); }
.case-story p { color: var(--c-text-muted); margin-bottom: var(--space-3); }
@media (max-width: 899px) {
    .case-feature { grid-template-columns: 1fr; }
    .case-media .media-ph--fill { min-height: 240px; }
}
.case-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: var(--space-5); }
.case-card { border: 1px solid var(--c-border); border-radius: var(--r-lg); background: var(--c-surface); overflow: hidden; }
.case-card .media-ph { border-radius: 0; aspect-ratio: 16 / 9; }
.case-card-body { display: grid; gap: var(--space-2); padding: var(--space-5); justify-items: start; }
.case-card-body p { color: var(--c-text-muted); font-size: var(--fs-small); }

/* --- Team ------------------------------------------------------------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: var(--space-5); }
.person { display: grid; gap: var(--space-1); }
.person .media-ph { margin-bottom: var(--space-3); }
.person-role { color: var(--c-primary); font-size: var(--fs-small); font-weight: 600; }
.person p:last-child { color: var(--c-text-muted); font-size: var(--fs-small); }
.address { font-style: normal; font-size: var(--fs-lead); line-height: 1.7; color: var(--c-text-muted); }

/* --- Demo page & form ------------------------------------------------- */
.page-hero--form { padding-bottom: var(--section); }
.demo-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: start;
    gap: clamp(2rem, 1rem + 4vw, 5rem) !important;
}
.demo-intro { display: grid; gap: var(--space-5); }
.demo-expect-title { margin-top: var(--space-4); }
@media (max-width: 899px) { .demo-grid { grid-template-columns: minmax(0, 1fr); } }
.expect { display: grid; gap: var(--space-4); }
.expect li { display: flex; gap: var(--space-4); }
.expect li > span {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--c-primary-soft);
    color: var(--c-primary);
    font-weight: 700;
    font-size: var(--fs-small);
}
.expect p { color: var(--c-text-muted); font-size: var(--fs-small); }
.calendar-ph {
    display: flex;
    gap: var(--space-4);
    padding: var(--space-5);
    border: 1px dashed var(--c-border-strong);
    border-radius: var(--r-md);
    background: var(--c-surface);
}
.calendar-ph p { color: var(--c-text-muted); font-size: var(--fs-small); }
.calendar-ph-icon { color: var(--c-primary); }
.calendar-ph-icon .icon { width: 28px; height: 28px; }

.form-card {
    width: 100%;
    padding: clamp(1.25rem, 0.8rem + 2vw, 2.5rem);
    border: 1px solid var(--c-border);
    border-radius: var(--r-xl);
    background: var(--c-surface);
    box-shadow: var(--shadow-lg);
}
.form { display: grid; gap: var(--space-5); }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: var(--space-4); }
.field { display: grid; gap: var(--space-2); min-width: 0; border: 0; padding: 0; }
.field > span, .field legend { font-size: var(--fs-small); font-weight: 600; }
.field em { font-style: normal; font-weight: 400; color: var(--c-text-muted); }
.field input, .field textarea {
    width: 100%;
    min-height: 48px;
    padding: 0.7rem 0.95rem;
    border: 1px solid var(--c-border-strong);
    border-radius: var(--r-sm);
    background: var(--c-bg);
    transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 4px var(--c-primary-soft); }
.field input[aria-invalid="true"] { border-color: var(--c-danger); }
.field legend { margin-bottom: var(--space-2); }
.check-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.check-chips label { position: relative; }
.check-chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.check-chips span {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0.4rem 0.95rem;
    border: 1px solid var(--c-border-strong);
    border-radius: var(--r-pill);
    font-size: var(--fs-small);
    font-weight: 550;
    transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}
.check-chips input:checked + span { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.check-chips input:focus-visible + span { outline: 3px solid var(--c-primary); outline-offset: 2px; }
.form-error { color: var(--c-danger); font-size: var(--fs-small); font-weight: 600; }
.form-note { display: flex; gap: var(--space-2); color: var(--c-text-muted); font-size: var(--fs-xs); }
.form-done { display: grid; gap: var(--space-4); justify-items: start; padding-block: var(--space-6); }
.form-done-icon {
    display: grid;
    place-items: center;
    width: 64px; height: 64px;
    border-radius: 50%;
    background: var(--c-lime);
    color: var(--c-navy);
    animation: pop 0.6s var(--ease-out);
}
.form-done-icon .icon { width: 32px; height: 32px; }
@keyframes pop { from { transform: scale(0.4); opacity: 0; } }
.copy-email { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }

/* --- Final CTA -------------------------------------------------------- */
.cta-block {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-block: var(--section);
    background:
        radial-gradient(60% 80% at 100% 100%, rgba(200, 230, 0, 0.18), transparent 60%),
        radial-gradient(70% 80% at 0% 0%, rgba(26, 158, 207, 0.45), transparent 60%),
        linear-gradient(135deg, #0d6a9e 0%, #0d2a4a 55%, #081c32 100%);
    color: #fff;
    text-align: center;
}
.cta-inner { display: grid; gap: var(--space-5); justify-items: center; }
.cta-title {
    max-width: 20ch;
    font-size: clamp(2.1rem, 1.3rem + 3.4vw, 4.4rem);
    line-height: 1.06;
    letter-spacing: var(--tracking-display);
    font-weight: 700;
}
.cta-text { max-width: 52ch; color: rgba(255, 255, 255, 0.78); font-size: var(--fs-lead); }
.cta-inner .btn-row { justify-content: center; margin-top: var(--space-3); }

/* --- Footer ----------------------------------------------------------- */
.site-footer {
    padding-block: var(--space-9) var(--space-6);
    background: var(--c-navy-deep);
    color: #dbe4ef;
    font-size: var(--fs-small);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr repeat(4, 1fr);
    gap: var(--space-6);
}
.footer-brand img { height: 50px; width: auto; margin-left: -14px; }
.footer-tagline { margin-top: var(--space-3); color: #fff; font-size: var(--fs-lead); font-weight: 650; letter-spacing: -0.02em; }
.footer-status { display: flex; align-items: center; gap: 0.6em; margin-top: var(--space-4); color: #a9b8cc; font-size: var(--fs-xs); }
.footer-status .status-dot { --c-lime: #c8e600; }
.footer-heading { margin-bottom: var(--space-4); color: #fff; font-size: var(--fs-xs); font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; }
.footer-col ul { display: grid; gap: var(--space-3); list-style: none; padding: 0; }
.site-footer a { color: #b9c7d8; text-decoration: none; overflow-wrap: anywhere; }
.site-footer a:hover { color: var(--c-lime-bright); }
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--space-3);
    margin-top: var(--space-8);
    padding-top: var(--space-5);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #8395ab;
    font-size: var(--fs-xs);
}
@media (max-width: 899px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-brand { grid-column: 1 / -1; }
}

/* --- Prose pages (legal) ---------------------------------------------- */
.prose-page { padding-block: clamp(3rem, 2rem + 4vw, 6rem); }
.prose h1 { font-size: var(--fs-display-md); line-height: var(--lh-tight); letter-spacing: var(--tracking-display); margin-bottom: var(--space-6); }
.prose h2 { font-size: var(--fs-h3); margin: var(--space-7) 0 var(--space-3); letter-spacing: -0.015em; }
.prose p { color: var(--c-text-muted); margin-bottom: var(--space-4); }

/* --- 404 -------------------------------------------------------------- */
.not-found { position: relative; isolation: isolate; display: grid; place-items: center; padding-block: var(--section); text-align: center; }
.not-found-inner { display: grid; gap: var(--space-5); justify-items: center; }
.not-found-inner .lead { margin-inline: auto; }
.not-found-status {
    display: inline-flex;
    align-items: center;
    gap: 0.6em;
    padding: 0.4rem 1rem;
    border: 1px solid var(--c-border);
    border-radius: var(--r-pill);
    background: var(--c-surface);
    font-family: var(--font-mono);
    font-weight: 600;
}

/* --- Customer download page (functions/c/[token].js) ------------------- */
.dl-stack { display: grid; gap: var(--space-7); }
.dl-card { gap: var(--space-4); }
.dl-meta { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-5); color: var(--c-text-muted); font-size: var(--fs-small); }
.dl-title { margin-bottom: var(--space-4); }
.dl-notes { display: grid; gap: var(--space-2); padding-top: var(--space-4); border-top: 1px solid var(--c-border); }
.dl-notes ul { padding-left: 1.25rem; color: var(--c-text-muted); }
.dl-code {
    display: block;
    padding: var(--space-3) var(--space-4);
    border-radius: var(--r-sm);
    background: var(--c-tint);
    border: 1px solid var(--c-border);
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    line-height: 1.5;
    overflow-wrap: anywhere;
}

/* --- Installation manual (installatiehandleiding.html) ------------------ */
.manual { display: grid; gap: var(--space-4); }
.manual h2 { margin-top: var(--space-6); }
.manual h2:first-child { margin-top: 0; }
.manual p, .manual li { color: var(--c-text-muted); }
.manual ul, .manual ol { padding-left: 1.25rem; display: grid; gap: var(--space-2); }
.manual code { font-family: var(--font-mono); font-size: 0.9em; background: var(--c-tint); padding: 0.1em 0.35em; border-radius: 6px; }
pre.dl-code { white-space: pre; overflow-x: auto; overflow-wrap: normal; }
.print-only { display: none; }

@media print {
    @page { margin: 18mm 16mm; }
    app-header, app-footer, app-cta, .hero-bg, .no-print { display: none !important; }
    .print-only { display: block; }
    :root { --c-bg: #fff; --c-text: #0f1b2d; --c-text-muted: #333f52; --c-tint: #f2f4f6; --c-border: #cfd5dc; }
    body { min-height: 0; background: #fff; font-size: 11pt; }
    .page-hero, .section { padding-block: 0 8mm; }
    .section.dl-section { padding-top: 0; }
    .page-hero .container, .manual { gap: 3mm; }
    .display { font-size: 24pt; }
    .manual h2 { break-after: avoid; margin-top: 6mm; }
    pre.dl-code, .manual li { break-inside: avoid; }
    pre.dl-code { white-space: pre-wrap; font-size: 9pt; }
    a { color: inherit; text-decoration: none; }
}
.dl-intro { color: var(--c-text-muted); margin-top: calc(var(--space-2) * -1); }
.dl-steps { margin-top: var(--space-5); }
.dl-section { padding-top: var(--space-7); } /* breathing room below the page hero */
