/* Trainblok - landing.css
   Light & clean base with glassmorphism accents.
   Scoped to the public landing/waitlist page only. */

:root {
    /* Ink + accent */
    --ink: #0B1B34;
    --ink-soft: #1C2A45;
    --muted: #5A6478;
    --blue: #2563FF;
    --blue-strong: #1D4ED8;
    --blue-deep: #0B3D91;
    --blue-soft: rgba(37, 99, 255, .10);
    --blue-line: rgba(37, 99, 255, .22);

    /* Surfaces */
    --white: #FFFFFF;
    --paper: #FCFCFB;          /* near-white page base */
    --offwhite: #F4F2EC;       /* warm near-white big block */
    --offwhite-2: #EFEDE5;
    --tint: #F2F5FF;           /* cool tint */

    /* Lines + shadow */
    --line: rgba(11, 27, 52, .10);
    --line-soft: rgba(11, 27, 52, .06);
    --shadow-sm: 0 4px 16px rgba(11, 27, 52, .05);
    --shadow-md: 0 18px 44px rgba(11, 27, 52, .08);
    --shadow-lg: 0 34px 80px rgba(11, 27, 52, .14);

    /* Glass */
    --glass-bg: rgba(255, 255, 255, .55);
    --glass-bg-strong: rgba(255, 255, 255, .72);
    --glass-border: rgba(255, 255, 255, .65);
    --glass-blur: 18px;

    --radius: 16px;
    --radius-lg: 24px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.container { width: min(100% - 2rem, 72rem); margin-inline: auto; }

/* ─────────────────────────────────────────── Glass utility */
.glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(var(--glass-blur)) saturate(1.4);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.4);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .glass { background: var(--glass-bg-strong); }
}

/* ─────────────────────────────────────────── Navigation */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 30;
    width: 100%;
    background: rgba(252, 252, 251, .72);
    border-bottom: 1px solid var(--line-soft);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.nav-shell {
    width: min(100% - 2rem, 72rem);
    margin-inline: auto;
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    color: var(--ink);
}

.brand-mark { height: 1.7rem; width: 1.7rem; display: block; flex-shrink: 0; border-radius: 6px; }

.brand-name { display: grid; line-height: 1; }

.brand-name strong { font-size: 1.22rem; font-weight: 800; letter-spacing: -.01em; }

.brand-name span {
    margin-top: .2rem;
    color: var(--blue);
    font-size: .66rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* ─────────────────────────────────────────── Buttons */
.nav-cta,
.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 12px;
    background: var(--blue);
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 10px 24px rgba(37, 99, 255, .22);
    transition: background .16s ease, transform .16s ease, box-shadow .16s ease;
}

.nav-cta { min-height: 2.7rem; padding: 0 1.15rem; }

.nav-cta:hover,
.submit-btn:hover {
    color: var(--white);
    background: var(--blue-strong);
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(37, 99, 255, .3);
}

.nav-cta:disabled,
.submit-btn:disabled {
    cursor: wait;
    opacity: .78;
    transform: none;
    box-shadow: none;
}

#registration-resume .submit-btn:disabled {
    cursor: not-allowed;
    background: var(--muted);
    opacity: .5;
}

.submit-btn.is-loading {
    position: relative;
    pointer-events: none;
}

.submit-btn { height: 3.3125rem; padding: 0 1.4rem; }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: var(--blue);
    font-weight: 700;
    font-size: .95rem;
}

.btn-ghost:hover { color: var(--blue-strong); }

.nav-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.45rem;
    padding: 0 1rem;
    border: 1px solid var(--blue-line);
    border-radius: 12px;
    background: var(--blue-soft);
    color: var(--blue-strong);
    font-size: .92rem;
    font-weight: 700;
    white-space: nowrap;
    transition: background .16s ease, border-color .16s ease, transform .16s ease;
}

.nav-secondary:hover {
    border-color: rgba(37, 99, 255, .38);
    background: rgba(37, 99, 255, .16);
    color: var(--blue-strong);
    transform: translateY(-1px);
}

.nav-cta:focus-visible,
.nav-secondary:focus-visible,
.submit-btn:focus-visible {
    outline: 3px solid rgba(37, 99, 255, .28);
    outline-offset: 2px;
}

/* Public account pages */
.public-shell {
    min-height: 100vh;
    background: var(--paper);
}

.public-main {
    min-height: calc(100vh - 4.5rem);
}

.public-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .85rem 0;
}

.public-nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .8rem;
    min-width: 0;
}

.public-user {
    max-width: 12rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--muted);
    font-size: .9rem;
    font-weight: 700;
}

.public-logout-form { margin: 0; }
.nav-cta-compact { min-height: 2.45rem; padding-inline: 1rem; font-size: .92rem; }

.auth-page {
    position: relative;
    padding: clamp(2.25rem, 8vw, 5.25rem) 0;
    overflow: hidden;
}

/* Account pages use the app shell without a footer. Keep their background
   layer stretched to the viewport instead of ending below the form. */
.app-shell .auth-page {
    min-height: 100vh;
    min-height: 100dvh;
}

.access-intro { margin: 0 0 1.25rem; color: var(--muted); line-height: 1.6; }
.access-install { max-width: 31rem; margin: 1.25rem auto 0; }
.access-page .auth-panel-head h1 { font-size: clamp(1.35rem, 5vw, 1.8rem); }
.access-page .auth-note { margin-top: .75rem; text-align: center; }

.auth-page::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(242, 245, 255, .9), rgba(252, 252, 251, .92) 42%, var(--paper));
    pointer-events: none;
}

.auth-page .container {
    position: relative;
}

.auth-grid {
    display: grid;
    gap: 1.25rem;
    align-items: center;
}

.auth-copy {
    display: grid;
    gap: 1rem;
}

.auth-title {
    margin: 0;
    max-width: 12ch;
    color: var(--ink);
    font-family: Epilogue, "Segoe UI", Arial, sans-serif;
    font-size: clamp(2.45rem, 13vw, 4.8rem);
    line-height: .95;
    font-weight: 800;
    letter-spacing: -.02em;
}

.auth-lead {
    margin: 0;
    max-width: 38rem;
    color: var(--ink-soft);
    font-size: clamp(1rem, 2.2vw, 1.16rem);
    line-height: 1.7;
}

.auth-lead-small {
    max-width: 45rem;
}

.auth-proof {
    display: flex;
    align-items: center;
    gap: .8rem;
    max-width: 34rem;
    padding: .85rem .95rem;
    border-radius: var(--radius);
    color: var(--ink-soft);
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

.auth-proof-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 10px;
    background: var(--ink);
    color: var(--white);
    font-weight: 800;
    flex-shrink: 0;
}

/* ── Split screen (login + registratie) ──
   Op laptop staat de afbeelding links en het formulier rechts, elk een helft.
   Op mobiel is er geen ruimte voor twee kolommen, dus alleen het formulier.

   Bewust een eigen klasse naast .auth-grid: /invite gebruikt datzelfde grid
   met een tekstkolom en moet die houden. */
.auth-visual { display: none; }

.auth-panel {
    width: 100%;
    max-width: 31rem;
    margin-inline: auto;
    padding: clamp(1.25rem, 5vw, 2rem);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.auth-page-simple .auth-panel {
    max-width: 42rem;
}

/* ── Entrance ──
   The panel is what the visitor came for, so it arrives last and travels
   furthest: a short rise out of a slight scale-down reads as the card coming
   toward you rather than sliding past. The copy leads in ahead of it, one line
   at a time, so the eye lands on the heading before the form.

   `backwards` fill matters: without it every element flashes at full opacity
   for the length of its delay before the animation takes over. The global
   prefers-reduced-motion block further down switches all of this off. */
@keyframes auth-rise {
    from { opacity: 0; transform: translateY(1.5rem) scale(.955); }
    to   { opacity: 1; transform: none; }
}

@keyframes auth-fade-up {
    from { opacity: 0; transform: translateY(.85rem); }
    to   { opacity: 1; transform: none; }
}

.auth-copy > * {
    animation: auth-fade-up .5s cubic-bezier(.22, .68, .35, 1) backwards;
}

.auth-copy > *:nth-child(1) { animation-delay: .05s; }
.auth-copy > *:nth-child(2) { animation-delay: .12s; }
.auth-copy > *:nth-child(3) { animation-delay: .19s; }

.auth-panel {
    animation: auth-rise .62s cubic-bezier(.22, .68, .35, 1) .14s backwards;
    transition: transform .35s cubic-bezier(.22, .68, .35, 1), box-shadow .35s ease;
}

/* Lifts once the visitor starts filling it in. Focus-within rather than hover:
   it should respond to the person typing, not to a cursor passing over. */
.auth-panel:focus-within {
    transform: translateY(-3px);
    box-shadow: 0 1.5rem 3rem rgba(15, 23, 42, .16);
}

.auth-logo {
    animation: auth-rise .55s cubic-bezier(.22, .68, .35, 1) .26s backwards;
}

.auth-panel-head {
    display: flex;
    align-items: center;
    gap: .85rem;
    margin-bottom: 1.35rem;
}

.auth-logo {
    width: 2.45rem;
    height: 2.45rem;
    border-radius: 10px;
    display: block;
    flex-shrink: 0;
}

.auth-panel-head h1,
.auth-panel-head h2 {
    margin: 0;
    color: var(--ink);
    font-family: Epilogue, "Segoe UI", Arial, sans-serif;
    font-size: clamp(1.45rem, 6vw, 2rem);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -.02em;
}

.auth-panel-head p {
    margin: .25rem 0 0;
    color: var(--muted);
    font-size: .95rem;
    font-weight: 700;
}

.auth-form {
    display: grid;
    gap: .95rem;
}

.auth-field {
    display: grid;
    gap: .35rem;
}

.auth-field label,
.auth-check {
    color: var(--ink-soft);
    font-size: .9rem;
    font-weight: 800;
}

/* Label met "Wachtwoord vergeten?" ernaast, op één regel. */
.auth-field-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: .75rem;
}

.auth-field-link {
    color: var(--blue);
    font-size: .85rem;
    font-weight: 700;
    white-space: nowrap;
}

.auth-field-link:hover { color: var(--blue-strong); }

.auth-field .email-input {
    width: 100%;
}

.auth-check {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .9rem;
    min-height: 2.6rem;
}

.auth-check input {
    width: 1.05rem;
    height: 1.05rem;
    accent-color: var(--blue);
}

.auth-submit {
    width: 100%;
    margin-top: .25rem;
}

.auth-switch,
.auth-note {
    margin: 1rem 0 0;
    color: var(--muted);
    font-size: .95rem;
    line-height: 1.6;
}

.auth-switch a {
    color: var(--blue);
    font-weight: 800;
}

.auth-switch a:hover {
    color: var(--blue-strong);
}

/* "Je hebt al een account" op de registratiepagina. .signup-alert is een rij
   met een sluitknop ernaast; hier staat de knop juist onder de tekst. */
.auth-existing {
    flex-direction: column;
    gap: .85rem;
    margin-bottom: 0;
}

.auth-existing-action {
    width: 100%;
}

.auth-actions {
    display: flex;
    flex-direction: column;
    gap: .85rem;
    margin-top: 1.25rem;
}

.auth-actions .submit-btn,
.auth-actions .btn-ghost {
    width: 100%;
}

.auth-validation {
    margin: 0;
}

.auth-actions.auth-actions-end { flex-direction:row; flex-wrap:wrap; align-items:center; justify-content:flex-end; }
.auth-actions.auth-actions-end .submit-btn { width:auto; }
.auth-actions.auth-actions-end .app-back { margin:0; }

.validation-summary-valid,
.field-validation-valid {
    display: none;
}

.validation-summary-errors ul {
    margin: 0;
    padding-left: 1.1rem;
}

@media (min-width: 860px) {
    .auth-grid {
        grid-template-columns: minmax(0, 1fr) minmax(23rem, .78fr);
        gap: clamp(2rem, 6vw, 4.5rem);
    }

    .auth-panel {
        justify-self: end;
    }

    /* Twee gelijke helften. Het formulier houdt zijn leesbare breedte en gaat
       in het midden van zijn eigen helft staan, in plaats van uit te rekken
       tot een half breedbeeldscherm. */
    .auth-grid.auth-split {
        grid-template-columns: 1fr 1fr;
        gap: clamp(1.75rem, 5vw, 3.5rem);
        align-items: stretch;
    }

    .auth-split .auth-panel {
        justify-self: center;
        align-self: center;
    }

    .auth-visual {
        display: block;
        position: relative;
        min-height: 27rem;
        border-radius: var(--radius-lg);
        overflow: hidden;
        box-shadow: var(--shadow-lg);
        animation: auth-rise .62s cubic-bezier(.22, .68, .35, 1) .06s backwards;
    }

    /* Absoluut, zodat de staande foto (3880x5820) niet met zijn eigen
       hoogte-breedteverhouding de rij oprekt en de pagina laat scrollen. De
       kolomhoogte komt zo van het formulier; object-fit snijdt de rest bij. */
    .auth-visual img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .auth-actions {
        flex-direction: row;
        align-items: center;
    }

    .auth-actions .submit-btn,
    .auth-actions .btn-ghost {
        width: auto;
    }
}

@media (max-width: 540px) {
    .public-nav .nav-cta {
        display: inline-flex;
    }

    .public-nav-links {
        gap: .65rem;
    }

    .public-user {
        display: none;
    }
}

/* ─────────────────────────────────────────── Hero */
.hero {
    position: relative;
    padding: clamp(3.5rem, 7vw, 6.5rem) 0 clamp(3rem, 5vw, 4.5rem);
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(40rem 28rem at 12% -4%, rgba(37, 99, 255, .14), transparent 70%),
        radial-gradient(38rem 26rem at 96% 6%, rgba(91, 140, 255, .16), transparent 70%);
    pointer-events: none;
}

.hero .container { position: relative; }

.hero-grid {
    display: grid;
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: stretch;
}

@media (min-width: 900px) {
    .hero-grid { grid-template-columns: 1.05fr .95fr; }
    /* Bottom-align the image so its base lines up with the email field + CTA,
       which sit at the bottom of the (taller) text column. The `.hero` prefix
       raises specificity above the base `.hero-visual { align-items:center }`. */
    .hero .hero-visual { align-items: flex-end; }
}

.hero-text { display: flex; flex-direction: column; }

/* Push the email field + CTA toward the bottom so it aligns with the
   bottom of the hero image on desktop. */
.hero-cta-group { margin-top: auto; }

@media (max-width: 899px) {
    .hero-cta-group { margin-top: 1.6rem; }
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    border-radius: 999px;
    padding: .42rem .8rem;
    color: var(--blue-strong);
    font-size: .76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.eyebrow::before {
    content: "";
    width: .5rem;
    height: .5rem;
    border-radius: 99px;
    background: var(--blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 255, .18);
    animation: dotPulse 2.2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 255, .45); }
    50% { box-shadow: 0 0 0 7px rgba(37, 99, 255, 0); }
}

.hero-title {
    margin: 1.1rem 0 1.1rem;
    color: var(--ink);
    font-family: Epilogue, "Segoe UI", Arial, sans-serif;
    font-size: clamp(2rem, 4.2vw, 3.4rem);
    line-height: 1.05;
    letter-spacing: -.02em;
    font-weight: 800;
}

.hero-title em { color: var(--blue); font-style: normal; }

.hero-copy {
    max-width: 36rem;
    color: var(--ink-soft);
    font-size: clamp(1.02rem, 1.3vw, 1.18rem);
    line-height: 1.6;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.1rem;
    color: var(--ink-soft);
    font-size: .9rem;
    font-weight: 600;
}

.hero-trust span { display: inline-flex; align-items: center; gap: .4rem; }

.hero-trust span::before {
    content: "";
    width: .8rem;
    height: .8rem;
    border-radius: 99px;
    background: var(--blue);
    box-shadow: 0 2px 6px rgba(37, 99, 255, .35);
    flex-shrink: 0;
}

/* Signup form */
.signup-form {
    display: grid;
    gap: .7rem;
    margin-top: 1.6rem;
    max-width: 34rem;
}

@media (min-width: 540px) {
    .signup-form { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
}

.email-input {
    width: 100%;
    height: 3.3125rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--white);
    color: var(--ink);
    padding: .85rem 1rem;
    font-size: 1rem;
    box-shadow: var(--shadow-sm);
    transition: border-color .16s ease, box-shadow .16s ease;
}

.email-input::placeholder { color: #9AA2B4; }

.email-input:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 255, .15);
}

.email-input.is-invalid,
.email-input[aria-invalid="true"] {
    border-color: #DC2626;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, .16);
}

.form-note {
    grid-column: 1 / -1;
    color: var(--muted);
    font-size: .88rem;
}

/* Hero visual: glass UI mockup */
.hero-visual {
    position: relative;
    min-height: clamp(22rem, 38vw, 30rem);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-visual::before {
    content: "";
    position: absolute;
    inset: 8% 4%;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(37, 99, 255, .14), rgba(91, 140, 255, .06));
    filter: blur(2px);
}

/* ─────────────────────────────────────────── Stylized UI mockup (CSS) */
.ui-mock {
    position: relative;
    width: 100%;
    max-width: 30rem;
    border-radius: var(--radius-lg);
    padding: 1rem;
    box-shadow: var(--shadow-lg);
    background: var(--glass-bg-strong);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(var(--glass-blur)) saturate(1.4);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.4);
}

.ui-mock-bar {
    display: flex;
    align-items: center;
    gap: .4rem;
    padding: 0 .25rem .85rem;
}

.ui-mock-bar i {
    width: .6rem; height: .6rem; border-radius: 99px; background: var(--line);
    display: block;
}

.ui-mock-bar i:nth-child(1) { background: #FF6B6B; }
.ui-mock-bar i:nth-child(2) { background: #FFC53D; }
.ui-mock-bar i:nth-child(3) { background: #51CF66; }

.ui-mock-bar span {
    margin-left: .5rem;
    color: var(--muted);
    font-size: .78rem;
    font-weight: 700;
}

.ui-card {
    background: var(--white);
    border: 1px solid var(--line-soft);
    border-radius: 12px;
    padding: .85rem .9rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: .6rem;
}

.ui-card:last-child { margin-bottom: 0; }

.ui-row { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }

.ui-athlete { display: flex; align-items: center; gap: .6rem; }

.ui-avatar {
    width: 2.1rem; height: 2.1rem; border-radius: 99px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--blue), var(--blue-deep));
    color: var(--white);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: .8rem; font-weight: 800;
}

.ui-name { font-size: .9rem; font-weight: 700; color: var(--ink); }
.ui-sub { font-size: .76rem; color: var(--muted); }

.ui-pill {
    border-radius: 99px;
    padding: .22rem .6rem;
    font-size: .72rem;
    font-weight: 800;
}

.ui-pill.good { background: #E7F6ED; color: #157347; }
.ui-pill.pending { background: #FBF1DC; color: #9A6700; }
.ui-pill.blue { background: var(--blue-soft); color: var(--blue-strong); }

.ui-week {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: .35rem;
    margin-top: .7rem;
}

.ui-day {
    border-radius: 8px;
    height: 2.6rem;
    background: var(--tint);
    border: 1px solid var(--line-soft);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .2rem;
    font-size: .62rem;
    font-weight: 700;
    color: var(--muted);
}

.ui-day b { font-size: .58rem; letter-spacing: .03em; color: #99A0B0; }

.ui-day.run { background: rgba(37, 99, 255, .12); color: var(--blue-strong); border-color: var(--blue-line); }
.ui-day.strength { background: #FBF1DC; color: #9A6700; border-color: rgba(154, 103, 0, .2); }
.ui-day.rest { opacity: .6; }

.ui-bar-track { height: .45rem; border-radius: 99px; background: var(--tint); overflow: hidden; margin-top: .55rem; }
.ui-bar-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--blue), var(--blue-deep)); }

/* floating mini-card on hero mock */
.ui-float {
    position: absolute;
    right: -.6rem;
    bottom: 1.4rem;
    z-index: 2;
    border-radius: 14px;
    padding: .7rem .85rem;
    background: var(--glass-bg-strong);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    animation: floatY 6s ease-in-out infinite alternate;
}

.ui-float .ui-name { font-size: .82rem; }
.ui-float .ui-sub { font-size: .72rem; }

@keyframes floatY {
    from { transform: translateY(0); }
    to { transform: translateY(-9px); }
}

/* ─────────────────────────────────────────── Social proof strip */
.social-strip {
    border-block: 1px solid var(--line-soft);
    background: var(--white);
}

.social-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.4rem 2rem;
    padding: 1.6rem 0;
    text-align: center;
}

.social-avatars { display: inline-flex; }

.social-avatars .ui-avatar {
    width: 1.7rem; height: 1.7rem;
    font-size: .66rem;
    border: 2px solid var(--white);
    margin-left: -.45rem;
    box-shadow: var(--shadow-sm);
}

.social-avatars .ui-avatar:first-child { margin-left: 0; }
.social-avatars .ui-avatar:nth-child(2) { background: linear-gradient(135deg, #34D399, #059669); }
.social-avatars .ui-avatar:nth-child(3) { background: linear-gradient(135deg, #F59E0B, #D97706); }
.social-avatars .ui-avatar:nth-child(4) { background: linear-gradient(135deg, #818CF8, #4F46E5); }

.social-count { font-size: 1.05rem; font-weight: 800; color: var(--ink); }
.social-count b { color: var(--blue); }
.social-count span { display: block; font-size: .85rem; font-weight: 600; color: var(--muted); }

/* ─────────────────────────────────────────── Section scaffolding */
.section { padding: clamp(3.5rem, 6vw, 6rem) 0; }

.section.offwhite { background: var(--offwhite); }

.section-head { max-width: 44rem; margin-bottom: 2.4rem; }
.section-head.center { margin-inline: auto; text-align: center; }

.section-kicker {
    color: var(--blue);
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.section-title {
    margin: .55rem 0 0;
    color: var(--ink);
    font-family: Epilogue, "Segoe UI", Arial, sans-serif;
    font-size: clamp(1.85rem, 3.6vw, 2.9rem);
    line-height: 1.1;
    letter-spacing: -.02em;
    font-weight: 800;
}

.section-lead {
    margin-top: .9rem;
    color: var(--muted);
    font-size: clamp(1rem, 1.2vw, 1.12rem);
    line-height: 1.6;
}

/* ─────────────────────────────────────────── Problem → solution */
.ps-grid {
    display: grid;
    gap: 1.2rem;
    align-items: stretch;
}

@media (min-width: 860px) {
    .ps-grid { grid-template-columns: 1fr auto 1fr; align-items: center; }
}

.ps-panel {
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 3vw, 2.2rem);
    height: 100%;
}

.ps-before {
    background: var(--white);
    border: 1px dashed var(--line);
}

.ps-after {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(var(--glass-blur)) saturate(1.4);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.4);
}

.ps-label {
    font-size: .76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 1rem;
}

.ps-before .ps-label { color: var(--muted); }
.ps-after .ps-label { color: var(--blue); }

.ps-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }

.ps-list li {
    display: flex;
    align-items: center;
    gap: .65rem;
    font-size: .98rem;
    font-weight: 600;
    color: var(--ink-soft);
}

.ps-before .ps-list li { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(90, 100, 120, .4); }

.ps-mark {
    width: 1.4rem; height: 1.4rem; border-radius: 99px; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: .8rem; font-weight: 900;
}

.ps-before .ps-mark { background: #F1EFEA; color: var(--muted); }
.ps-after .ps-mark { background: #E7F6ED; color: #157347; }

.ps-arrow {
    display: flex; align-items: center; justify-content: center;
    color: var(--blue);
    font-size: 1.6rem;
    font-weight: 800;
}

@media (max-width: 859px) { .ps-arrow { transform: rotate(90deg); } }

/* ─────────────────────────────────────────── Feature rows */
.feature-row {
    display: grid;
    gap: clamp(1.8rem, 4vw, 3.5rem);
    align-items: center;
    padding: clamp(2rem, 4vw, 3rem) 0;
}

@media (min-width: 880px) {
    .feature-row { grid-template-columns: 1fr 1fr; }
    .feature-row.reverse .feature-text { order: 2; }
}

.feature-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem; height: 2.6rem;
    border-radius: 12px;
    background: var(--blue-soft);
    color: var(--blue-strong);
    font-weight: 800;
    margin-bottom: 1rem;
}

.feature-text h3 {
    margin: 0 0 .7rem;
    color: var(--ink);
    font-family: Epilogue, sans-serif;
    font-size: clamp(1.45rem, 2.4vw, 1.95rem);
    line-height: 1.15;
    letter-spacing: -.01em;
    font-weight: 800;
}

.feature-text p { margin: 0 0 1.1rem; color: var(--muted); font-size: 1.05rem; line-height: 1.6; }

.feature-points { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }

.feature-points li {
    display: flex; align-items: flex-start; gap: .6rem;
    color: var(--ink-soft); font-size: .98rem; font-weight: 600;
}

.feature-points li::before {
    content: "";
    margin-top: .35rem;
    width: 1rem; height: 1rem; flex-shrink: 0;
    border-radius: 99px;
    background: var(--blue-soft);
    border: 1.5px solid var(--blue);
}

.feature-visual { display: flex; align-items: center; justify-content: center; }

.feature-visual .ui-mock { max-width: 26rem; }

/* check-in thread mock */
.ui-msg { display: flex; gap: .55rem; margin-bottom: .55rem; }
.ui-msg:last-child { margin-bottom: 0; }
.ui-bubble {
    background: var(--tint);
    border: 1px solid var(--line-soft);
    border-radius: 12px;
    padding: .55rem .7rem;
    font-size: .82rem;
    color: var(--ink-soft);
    line-height: 1.4;
}
.ui-msg.coach { flex-direction: row-reverse; }
.ui-msg.coach .ui-bubble { background: var(--blue-soft); border-color: var(--blue-line); color: var(--blue-strong); }

.ui-metric { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-top: .2rem; }
.ui-metric div {
    background: var(--white);
    border: 1px solid var(--line-soft);
    border-radius: 10px;
    padding: .55rem .4rem;
    text-align: center;
}
.ui-metric b { display: block; font-size: 1.1rem; color: var(--ink); }
.ui-metric span { font-size: .66rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }

/* ─────────────────────────────────────────── How it works */
.steps-grid {
    display: grid;
    gap: 1.1rem;
    margin-top: 1rem;
}

@media (min-width: 760px) { .steps-grid { grid-template-columns: repeat(3, 1fr); } }

.step-card {
    position: relative;
    border-radius: var(--radius);
    padding: 1.6rem 1.4rem;
    background: var(--white);
    border: 1px solid var(--line-soft);
    box-shadow: var(--shadow-sm);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem; height: 2.4rem;
    margin-bottom: 1rem;
    border-radius: 12px;
    background: var(--blue);
    color: var(--white);
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(37, 99, 255, .26);
}

.step-card h3 { margin: 0 0 .4rem; color: var(--ink); font-size: 1.12rem; font-weight: 800; }
.step-card p { margin: 0; color: var(--muted); line-height: 1.55; }

/* ─────────────────────────────────────────── FAQ */
.faq-list { max-width: 46rem; margin-inline: auto; display: grid; gap: .8rem; }

.faq-item {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 1.1rem 1.3rem;
    font-weight: 700;
    color: var(--ink);
    font-size: 1.02rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: "+";
    color: var(--blue);
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1;
    transition: transform .18s ease;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item p {
    margin: 0;
    padding: 0 1.3rem 1.2rem;
    color: var(--muted);
    line-height: 1.6;
}

/* ─────────────────────────────────────────── Bottom CTA (one dark moment) */
.bottom-cta {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0A1A36, var(--blue-deep));
    color: var(--white);
}

.bottom-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(30rem 22rem at 80% -10%, rgba(91, 140, 255, .4), transparent 70%),
        radial-gradient(28rem 20rem at 5% 110%, rgba(37, 99, 255, .35), transparent 70%);
    pointer-events: none;
}

.bottom-cta .container { position: relative; text-align: center; }

.bottom-cta .section-kicker { color: #8FB0FF; }
.bottom-cta .section-title { color: var(--white); margin-inline: auto; }
.bottom-cta .section-lead { color: rgba(255, 255, 255, .8); margin-inline: auto; max-width: 38rem; }

.bottom-cta .signup-form { margin-inline: auto; }

.bottom-cta .email-input {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .25);
    color: var(--white);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.bottom-cta .email-input::placeholder { color: rgba(255, 255, 255, .6); }

.bottom-cta .email-input:focus {
    border-color: rgba(255, 255, 255, .7);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, .15);
}

.bottom-cta .submit-btn { background: var(--white); color: var(--blue-deep); }
.bottom-cta .submit-btn:hover { background: #EAF0FF; color: var(--blue-deep); }

.bottom-cta .hero-trust { justify-content: center; color: rgba(255, 255, 255, .82); }
.bottom-cta .hero-trust span::before { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .7); }

/* ─────────────────────────────────────────── Footer */
.footer {
    border-top: 1px solid var(--line);
    background: var(--paper);
    color: var(--muted);
    font-size: .92rem;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    padding: 2rem 0;
    align-items: flex-start;
}

@media (min-width: 760px) {
    .footer-inner { flex-direction: row; align-items: center; justify-content: space-between; }
}

.footer-brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); font-weight: 700; }
.footer-mark { height: 1.3rem; width: 1.3rem; display: block; flex-shrink: 0; border-radius: 4px; }
.footer-kvk { color: var(--muted); font-weight: 500; }
.footer-powered { color: var(--blue); font-weight: 800; }
.footer-links { display: inline-flex; flex-wrap: wrap; gap: .35rem 1.1rem; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }

/* ─────────────────────────────────────────── Alerts / validation */
.signup-alert {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--white);
    color: var(--ink);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

.signup-alert-text { flex: 1; }

.alert-close {
    flex-shrink: 0; border: 0; background: transparent; color: inherit;
    font-size: 1.35rem; line-height: 1; padding: 0 .2rem; cursor: pointer;
    opacity: .65; transition: opacity .15s ease;
}

.alert-close:hover { opacity: 1; }

.signup-alert.success { border-color: rgba(22, 134, 78, .28); background: #EBF6EE; color: #166434; }
.signup-alert.warning { border-color: rgba(176, 128, 24, .28); background: #FBF4E3; color: #705313; }
.signup-alert.error { border-color: rgba(220, 38, 38, .24); background: #FDEEEE; color: #B91C1C; }

.text-danger { color: #B91C1C !important; font-weight: 700; }

/* ─────────────────────────────────────────── Responsive */
@media (max-width: 540px) {
    .brand-name span { display: none; }
    .nav-cta { display: none; }
    .submit-btn { width: 100%; }
    .hero-copy { overflow-wrap: anywhere; }
    .ui-float { right: 0; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-delay: 0ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .001ms !important;
    }
}

/* ─────────────────────────────────────────── Signup modal */
.signup-dialog {
    border: 0;
    border-radius: var(--radius);
    padding: 2rem 1.75rem 1.75rem;
    max-width: 34rem;
    width: min(calc(100% - 2rem), 34rem);
    box-shadow: var(--shadow-lg);
    background: var(--white);
    color: var(--ink);
}

.signup-dialog::backdrop { background: rgba(11, 27, 52, .5); backdrop-filter: blur(3px); }

.dialog-title { margin: 0 0 .4rem; font-size: 1.35rem; font-weight: 800; }
.dialog-copy { margin: 0 0 1.1rem; color: var(--muted); font-size: .95rem; }
.signup-dialog .signup-form { grid-template-columns: 1fr; margin-top: 0; }

.dialog-close {
    position: absolute; top: .65rem; right: .75rem;
    border: 0; background: transparent; color: inherit;
    font-size: 1.5rem; line-height: 1; padding: .15rem .35rem;
    cursor: pointer; opacity: .6; transition: opacity .15s ease;
}

.dialog-close:hover { opacity: 1; }

/* De toast (.tb-toast*) staat in /css/toast.css, zodat ook pagina's zonder
   landing.css hem kunnen gebruiken. */

/* ─────────────────────────────────────────── Signup success state */
.signup-success {
    margin-top: 1.6rem;
    max-width: 34rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.2rem;
    border-radius: var(--radius);
    border: 1px solid rgba(22, 134, 78, .28);
    background: linear-gradient(135deg, rgba(231, 246, 237, .9), rgba(231, 246, 237, .65));
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(var(--glass-blur)) saturate(1.4);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.4);
    animation: cardRise .5s ease both;
}

.signup-success .ui-avatar {
    width: 3rem; height: 3rem; font-size: 1rem; flex-shrink: 0;
    background: linear-gradient(135deg, #34D399, #059669);
    box-shadow: 0 8px 18px rgba(5, 150, 105, .3);
}

.signup-success-body { display: grid; gap: .15rem; }
.signup-success-title { display: flex; align-items: center; gap: .45rem; font-weight: 800; color: #157347; }
.signup-success-title::before {
    content: "✓";
    display: inline-flex; align-items: center; justify-content: center;
    width: 1.25rem; height: 1.25rem; border-radius: 99px;
    background: #157347; color: #fff; font-size: .8rem; font-weight: 900;
}
.signup-success-sub { color: #1C2A45; font-size: .92rem; }

@keyframes cardRise {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Two-field (name + email) signup form */
.signup-form .field-name { grid-column: 1 / -1; }

@media (min-width: 540px) {
    .signup-form.has-name { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
    .signup-form.has-name .field-name { grid-column: 1; }
    .signup-form.has-name .field-email { grid-column: 2; }
    .signup-form.has-name .submit-btn { grid-column: 3; }
    .signup-form.has-name .form-note { grid-column: 1 / -1; }
}

/* Two-step signup: full-width email bar first, name step revealed after. */
.signup-form.signup-flow { grid-template-columns: 1fr; }

.flow-step { display: grid; gap: .7rem; }

@media (min-width: 540px) {
    .flow-step { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
}

.flow-name:not([hidden]) { animation: cardRise .35s ease both; }

/* ─────────────────────────────────────────── Prose (mission/vision) */
.prose {
    max-width: 46rem;
    margin-inline: auto;
    text-align: center;
}

.prose p {
    margin: 0 0 1.05rem;
    color: var(--ink-soft);
    font-size: clamp(1.02rem, 1.3vw, 1.15rem);
    line-height: 1.7;
}

.prose p:last-child { margin-bottom: 0; }

.prose p.lead-line {
    color: var(--ink);
    font-weight: 700;
}

/* ─────────────────────────────────────────── Feature cards (functionaliteiten) */
.feature-cards {
    display: grid;
    gap: 1.1rem;
    margin-top: 2.2rem;
}

@media (min-width: 820px) { .feature-cards { grid-template-columns: repeat(3, 1fr); } }

.feature-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-lg);
    padding: 1.6rem 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(var(--glass-blur)) saturate(1.4);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.4);
    transition: transform .18s ease, box-shadow .18s ease;
}

.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.feature-card .feature-index { margin-bottom: 1.1rem; }

.feature-card h3 {
    margin: 0 0 .55rem;
    color: var(--ink);
    font-family: Epilogue, sans-serif;
    font-size: 1.18rem;
    line-height: 1.25;
    letter-spacing: -.01em;
    font-weight: 800;
}

.feature-card p { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.6; }

/* ─────────────────────────────────────────── Interactive "Hoe het werkt" */
.how-grid {
    display: grid;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
    margin-top: 1rem;
}

@media (min-width: 900px) { .how-grid { grid-template-columns: 1.1fr .9fr; } }

.timeline { display: grid; gap: .9rem; }

.timeline-step {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .9rem 1rem;
    align-items: start;
    width: 100%;
    text-align: left;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    padding: 1rem 1.15rem;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.timeline-step:hover { border-color: var(--blue-line); }

.timeline-step:focus-visible {
    outline: 3px solid rgba(37, 99, 255, .35);
    outline-offset: 2px;
}

.timeline-step.active {
    border-color: var(--blue-line);
    background: linear-gradient(135deg, rgba(37, 99, 255, .06), rgba(255, 255, 255, .4));
    box-shadow: var(--shadow-md);
}

.timeline-num {
    grid-row: 1 / span 2;
    display: inline-flex; align-items: center; justify-content: center;
    width: 2.4rem; height: 2.4rem;
    border-radius: 12px;
    background: var(--tint);
    color: var(--blue-strong);
    font-weight: 800;
    transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}

.timeline-step.active .timeline-num {
    background: var(--blue);
    color: var(--white);
    box-shadow: 0 8px 18px rgba(37, 99, 255, .26);
}

.timeline-title { color: var(--ink); font-size: 1.08rem; font-weight: 800; align-self: center; }

.timeline-detail {
    grid-column: 2;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    color: var(--muted);
    line-height: 1.6;
    transition: max-height .35s ease, opacity .3s ease, margin-top .3s ease;
}

.timeline-step.active .timeline-detail {
    max-height: 12rem;
    opacity: 1;
    margin-top: .5rem;
}

/* ─────────────────────────────────────────── Phone mockup */
.phone-wrap { display: flex; align-items: center; justify-content: center; }

.phone {
    position: relative;
    width: min(17rem, 78vw);
    aspect-ratio: 9 / 18.5;
    border-radius: 2.4rem;
    padding: .55rem;
    background: linear-gradient(155deg, #11254a, #0A1A36);
    box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgba(255, 255, 255, .08);
}

.phone::before {
    content: "";
    position: absolute;
    top: .7rem; left: 50%; transform: translateX(-50%);
    width: 36%; height: .42rem;
    border-radius: 99px;
    background: rgba(255, 255, 255, .25);
    z-index: 3;
}

.phone-screen {
    position: relative;
    height: 100%;
    border-radius: 2rem;
    background: var(--paper);
    overflow: hidden;
}

.phone-frame {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    gap: .55rem;
    padding: 1.7rem .85rem .95rem;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .45s ease, transform .45s ease;
    pointer-events: none;
}

.phone-frame.active { opacity: 1; transform: translateY(0); }

.phone-top {
    display: flex; align-items: center; gap: .5rem;
    padding-bottom: .25rem;
}
.phone-top .ui-avatar { width: 1.9rem; height: 1.9rem; font-size: .72rem; }
.phone-top b { font-size: .82rem; color: var(--ink); }
.phone-top span { font-size: .68rem; color: var(--muted); display: block; }

.phone-frame .ui-card { margin-bottom: 0; }
.phone-frame .ui-name { font-size: .82rem; }
.phone-frame .ui-sub { font-size: .7rem; }

.phone-mailicon {
    width: 3.4rem; height: 3.4rem; margin: .4rem auto .2rem;
    border-radius: 16px;
    background: var(--blue-soft);
    color: var(--blue-strong);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
}

.phone-center { text-align: center; margin-top: .3rem; }
.phone-center b { display: block; font-size: .92rem; color: var(--ink); }
.phone-center span { font-size: .74rem; color: var(--muted); }

/* ─────────────────────────────────────────── Bottom CTA prose tweak */
.bottom-cta .cta-body { max-width: 40rem; margin: 1.1rem auto 0; }
.bottom-cta .cta-body p { color: rgba(255, 255, 255, .82); line-height: 1.65; margin: 0 0 .6rem; font-size: 1.02rem; }
.bottom-cta .cta-body p:last-child { margin-bottom: 0; }

/* ─────────────────────────────────────────── Hero photo */
.hero-stage {
    position: relative;
    width: 100%;
    max-width: 30rem;
}

.hero-photo {
    position: relative;
    margin: 0;
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
    background: var(--tint);
}

.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.hero-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(8, 16, 33, .72));
    pointer-events: none;
}

.hero-photo-cap {
    position: absolute;
    left: .85rem; right: .85rem; bottom: .85rem;
    z-index: 2;
    padding: .85rem 1rem;
    border-radius: 16px;
    color: #fff;
    background: rgba(11, 27, 52, .34);
    border: 1px solid rgba(255, 255, 255, .25);
    backdrop-filter: blur(14px) saturate(1.2);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
}

.hero-photo-cap strong { display: block; font-size: 1rem; line-height: 1.25; }
.hero-photo-cap span { display: block; margin-top: .25rem; font-size: .85rem; color: rgba(255, 255, 255, .82); }

.hero-float {
    position: absolute;
    top: 1rem;
    right: -.7rem;
    z-index: 3;
}

@media (max-width: 540px) {
    .hero-float { right: .4rem; top: .6rem; }
}

/* ─────────────────────────────────────────── Modal flow fields */
.dialog-form { gap: .9rem; }
.modal-field { display: grid; gap: .35rem; }
.modal-field label { font-size: .85rem; font-weight: 700; color: var(--ink-soft); }
.modal-field[hidden] { display: none; }
.dialog-form .modal-field:not([hidden]) ~ [data-step-name]:not([hidden]) { animation: cardRise .3s ease both; }
[data-step-name]:not([hidden]) { animation: cardRise .3s ease both; }

/* Inline veldfout onder de e-mailbalk */
.field-error {
    margin: .1rem 0 0;
    color: #DC2626;
    font-size: .85rem;
    font-weight: 700;
}
.field-error[hidden] { display: none; }

/* App entrance and account consent */
.auth-terms {
    align-items: flex-start;
    justify-content: flex-start;
    line-height: 1.45;
}

.auth-terms > span { flex: 1; min-width: 0; }
.auth-terms .app-required { display: inline; margin-left: .25rem; }
.auth-terms input { order: -1; margin-top: .15rem; flex-shrink: 0; }
.auth-terms a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }

.onboarding-entry-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: .7rem;
    margin-top: 1.25rem;
}

.auth-submit-secondary {
    border: 1px solid var(--blue-line);
    background: var(--white);
    color: var(--blue-strong);
    box-shadow: none;
}

/* De basisknop maakt tekst wit op hover. De secundaire variant houdt een lichte
   achtergrond, dus de tekstkleur moet hier expliciet blauw blijven. */
.auth-submit-secondary:hover,
.auth-submit-secondary:focus-visible {
    background: var(--tint);
    color: var(--blue-strong);
    border-color: var(--blue);
    box-shadow: 0 8px 18px rgba(37, 99, 255, .14);
}

.auth-submit-secondary:active {
    background: #E6ECFF;
    color: var(--blue-deep);
    transform: translateY(0);
}

.onboarding-value-list {
    display: grid;
    gap: .85rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.onboarding-value-list li {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
}

.onboarding-value-list li > span {
    display: grid;
    place-items: center;
    width: 1.75rem;
    height: 1.75rem;
    flex: 0 0 auto;
    border-radius: 999px;
    background: var(--tint);
    color: var(--blue-strong);
    font-size: .78rem;
    font-weight: 800;
}

.onboarding-value-list strong,
.onboarding-value-list small { display: block; }
.onboarding-value-list strong { color: var(--ink); font-size: .92rem; }
.onboarding-value-list small { margin-top: .15rem; color: var(--muted); line-height: 1.4; }
.onboarding-entry-note { font-size: .82rem; }

.onboarding-entry-caption {
    position: absolute;
    left: 1.5rem;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 1;
    padding: 1rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(10px);
    color: var(--ink-soft);
}

.onboarding-entry-caption span,
.onboarding-entry-caption strong { display: block; }
.onboarding-entry-caption span { font-size: .8rem; font-weight: 700; }
.onboarding-entry-caption strong { margin-top: .2rem; color: var(--ink); font-family: Epilogue, sans-serif; }

@media (min-width: 440px) {
    .onboarding-entry-actions { grid-template-columns: 1fr 1fr; }
}

/* Laadstrook zo breed mogelijk over de modal */
.modal-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    width: 100%;
    padding: .75rem 1rem;
    border-radius: 12px;
    background: var(--tint);
    border: 1px solid var(--blue-line);
    color: var(--ink-soft);
    font-size: .9rem;
    font-weight: 700;
}

.modal-loading[hidden] { display: none; }

.modal-spinner {
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(37, 99, 255, .2);
    border-top-color: var(--blue);
    border-radius: 999px;
    animation: spin .7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 540px) {
    .public-nav .nav-cta {
        display: inline-flex;
    }

    .public-nav {
        gap: .5rem;
    }

    .public-nav-links {
        gap: .4rem;
    }

    .public-nav .nav-cta,
    .public-nav .nav-secondary {
        min-height: 2.35rem;
        padding-inline: .7rem;
        font-size: .84rem;
    }

    .public-nav .brand-lockup {
        gap: .5rem;
    }

    .public-nav .brand-name strong {
        font-size: 1rem;
    }
}

@media (max-width: 340px) {
    .public-nav .brand-name {
        display: none;
    }
}
