/* public_landing.ccs */

/* =========================================================
   Public landing
   Mobile first
   ========================================================= */

:root {
    --public-blue: #2563eb;
    --public-blue-dark: #1d4ed8;
    --public-blue-soft: #eff6ff;

    --public-text: #172033;
    --public-text-muted: #64748b;

    --public-bg: #f6f8fb;
    --public-surface: #ffffff;
    --public-border: #e4e9f0;

    --public-danger: #dc2626;
    --public-danger-bg: #fef2f2;

    --public-success: #15803d;
    --public-success-bg: #f0fdf4;

    --public-radius: 16px;
}


/* =========================================================
   Reset
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
}

button,
input {
    font: inherit;
}

a {
    color: inherit;
}

svg {
    display: block;
}

/* =========================================================
   Page
   ========================================================= */

.public-page {
    min-height: 100vh;
    background: var(--public-bg);
    color: var(--public-text);
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    -webkit-font-smoothing: antialiased;
}

.public-shell {
    width: min(
        calc(100% - 2rem),
        1180px
    );
    margin-inline: auto;
}


/* =========================================================
   Header
   ========================================================= */

.public-header {
    position: relative;
    z-index: 50;
    height: 72px;
    border-bottom: 1px solid #e8edf4;
    background: rgba(255, 255, 255, 0.96);
}

.public-header__inner {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.public-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    color: #0f1c3f;
}

.public-brand__mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    background: transparent;
    color: #1670f8;
}

.public-brand__mark svg {
    width: 35px;
    height: 31px;
    fill: #1670f8;
}

.public-brand__text {
    font-size: 1rem;
    font-weight: 800;
}

.public-nav {
    display: none;
}

.public-header__actions {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.public-status {
    display: none;
}

.public-header__login {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 40px;
    padding: 0 0.9rem;
    border-radius: 9px;
    background: #1769e8;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    text-decoration: none;
}


/* =========================================================
   Hero
   ========================================================= */

.public-hero {
    padding: 0;
}

.public-hero__background {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    background: #dce7f4;
}

.public-hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.public-hero__overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(248, 251, 255, 0.98) 0%,
            rgba(248, 251, 255, 0.93) 24%,
            rgba(248, 251, 255, 0.60) 38%,
            rgba(248, 251, 255, 0.10) 57%,
            rgba(248, 251, 255, 0.00) 72%
        );
}

.public-hero__layout {
    position: relative;
    z-index: 2;
    min-height: 560px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 1.5rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.public-hero__content {
    width: 100%;
    padding: 2rem 0;
    color: #0a1b4d;
}

.public-hero__eyebrow {
    display: inline-block;
    margin-bottom: 1rem;
    color: #315da8;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

.public-hero__content h1 {
    margin: 0;
    max-width: 520px;
    font-size: clamp(2.2rem, 10vw, 3.2rem);
    font-weight: 850;
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.public-hero__content p {
    max-width: 470px;
    margin: 1rem 0 0;
    color: #40577e;
    font-size: 0.86rem;
    line-height: 1.55;
}

.public-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.4rem;
}

.public-hero__button {
    min-height: 44px;
    padding: 0 1rem;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;

    border-radius: 9px;

    font-size: 0.7rem;
    font-weight: 750;
    text-decoration: none;
}

.public-hero__button--primary {
    background: #1670f8;
    color: #fff;
}

.public-hero__button--secondary {
    border: 1px solid #cfd9e8;
    background: rgba(255, 255, 255, 0.85);
    color: #0a1b4d;
}

.public-hero__trust-row {
    display: flex;
    gap: 1.4rem;
    margin-top: 1.4rem;
}

.public-trust-item {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.public-trust-item > span {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(231, 241, 255, 0.95);
    color: #1769e8;
    font-size: 1rem;
}

.public-trust-item__icon svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.public-trust-item strong {
    color: #33517c;
    font-size: 0.57rem;
    line-height: 1.25;
}


/* =========================================================
   Login
   ========================================================= */

.public-login-brand .public-brand__mark {
    width: 42px;
    height: 42px;
}

.public-login-brand .public-brand__mark svg {
    width: 36px;
    height: 36px;
}


.public-login-card {
    position: static;
    width: 100%;
    margin-top: 1.5rem;
    padding: 1.15rem;
    border: 1px solid rgba(218, 226, 238, 0.9);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 50px rgba(23, 45, 85, 0.12);
    backdrop-filter: blur(16px);
}

.public-login-brand {
    display: none;
}

.public-login-card__intro {
    margin-bottom: 1rem;
}

.public-login-card__intro h2 {
    margin: 0;
    color: #091a45;
    font-size: 1.3rem;
    line-height: 1.1;
}

.public-login-card__intro p {
    margin: 0.35rem 0 0;
    color: #62748f;
    font-size: 0.7rem;
}

.public-login-form {
    display: grid;
    gap: 0.65rem;
}

.public-input-wrap {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0 0.75rem;
    border: 1px solid #d8e0eb;
    border-radius: 8px;
    background: #fff;
}

.public-input-wrap i {
    color: #6980a5;
    font-size: 1rem;
}

.public-input-wrap input {
    flex: 1;

    min-width: 0;

    border: 0;
    outline: 0;
    background: transparent;

    color: #172033;
    font-size: 0.7rem;
}

.public-input-wrap input::placeholder {
    color: #99a6b8;
}

.public-login-button {
    min-height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;

    margin-top: 0.2rem;

    border: 0;
    border-radius: 8px;

    background: #1670f8;
    color: #fff;

    font-size: 0.72rem;
    font-weight: 700;

    cursor: pointer;
}

.public-login-card__footer {
    margin: 0.8rem 0 0;

    color: #99a6b8;
    font-size: 0.56rem;
    text-align: center;
}


/* =========================================================
   Desktop
   ========================================================= */

@media (min-width: 900px) {

    .public-nav {
        display: flex;
        align-items: center;
        gap: 1.5rem;
        margin-right: auto;
        margin-left: 1rem;
    }

    .public-nav a {
        position: relative;
        padding: 1.6rem 0;

        color: #40557d;
        font-size: 0.7rem;
        font-weight: 600;
        text-decoration: none;
    }

    .public-nav a.is-active {
        color: #1769e8;
    }

    .public-nav a.is-active::after {
        content: "";

        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;

        height: 2px;

        background: #1769e8;
    }

    .public-status {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;

        min-height: 40px;

        padding: 0 0.8rem;

        border: 1px solid #d8e3f3;
        border-radius: 9px;

        background: rgba(255, 255, 255, 0.65);

        color: #3c5f91;
        font-size: 0.65rem;
        font-weight: 650;
    }

    .public-status__dot {
        width: 7px;
        height: 7px;

        border-radius: 50%;

        background: #22c55e;
    }

    .public-hero__background,
    .public-hero__layout {
        min-height: 510px;
    }

    .public-hero__layout {
        display: grid;

        grid-template-columns:
            minmax(0, 1fr)
            370px;

        gap: 3rem;
    }

    .public-hero__content {
        padding: 3rem 0;
    }

    .public-hero__content h1 {
        font-size: clamp(
            3.2rem,
            5vw,
            4.5rem
        );
    }

    .public-hero__content p {
        font-size: 0.9rem;
    }

    .public-login-card {
        position: relative;

        margin: 0;

        padding: 1.5rem;

        border-radius: 16px;
    }

    .public-login-brand {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.65rem;

        margin-bottom: 1.4rem;
    }

    .public-login-brand strong {
        display: block;

        color: #0a1b4d;
        font-size: 0.82rem;
    }

    .public-login-brand span span {
        display: block;

        margin-top: 0.1rem;

        color: #70819a;
        font-size: 0.5rem;
    }
}
/* =========================================================
   Features
   ========================================================= */

.public-features {
    padding: 1rem 0 3rem;
}

.public-section-heading {
    margin-bottom: 1rem;
}

.public-section-heading > span {
    color: var(--public-blue);
    font-size: 0.62rem;
    font-weight: 750;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.public-section-heading h2 {
    margin: 0.35rem 0 0;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.public-section-heading p {
    margin: 0.5rem 0 0;
    color: var(--public-text-muted);
    font-size: 0.7rem;
    line-height: 1.5;
}


.public-feature-card h3 {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 750;
}

.public-feature-card p {
    margin: 0.2rem 0 0;
    color: var(--public-text-muted);
    font-size: 0.62rem;
    line-height: 1.45;
}

.public-capabilities {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
    margin-top: 1.25rem;
    padding: 1rem;
}

.public-capability-card {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 1.25rem;
    background: #ffffff;
    border: 1px solid #e6edf7;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.public-capability-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.public-capability-card__icon svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.public-capability-card__content h3 {
    margin: 0 0 0.35rem;
    font-size: 0.8rem;
    line-height: 1.25;
    font-weight: 700;
    color: #0f172a;
}

.public-capability-card__content p {
    margin: 0;
    font-size: 0.65rem;
    line-height: 1.5;
    color: #5b6b84;
}

/* kleurvarianten */
.public-capability-card--blue .public-capability-card__icon {
    background: #eaf2ff;
    color: #1769e8;
}

.public-capability-card--green .public-capability-card__icon {
    background: #e8f9ef;
    color: #16a34a;
}

.public-capability-card--orange .public-capability-card__icon {
    background: #fff3e6;
    color: #d97706;
}

.public-capability-card--purple .public-capability-card__icon {
    background: #f1eaff;
    color: #6d28d9;
}

/* =========================================================
   Footer
   ========================================================= */

.public-footer {
    margin-top: 1rem;
    border-top: 1px solid #e4eaf2;
    background: rgba(255, 255, 255, 0.92);
}


.public-footer__main {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}

/* Brand */

.public-footer__brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}


.public-footer__brand-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    color: #1670f8;
}


.public-footer__brand-icon svg {
    width: 34px;
    height: 34px;
    fill: currentColor;
}


.public-footer__brand-text {
    display: flex;
    flex-direction: column;
}


.public-footer__brand-text strong {
    color: #0a1b4d;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.2;
}


.public-footer__brand-text span {
    margin-top: 0.15rem;
    color: #71809a;
    font-size: 0.55rem;
    line-height: 1.3;
}

/* Status */

.public-footer__status {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #526989;
    font-size: 0.62rem;
    font-weight: 650;
}


.public-footer__status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
}


/* Tagline */

.public-footer__tagline {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: #667794;
    font-size: 0.62rem;
    font-style: italic;
}

.public-footer__tagline svg {
    width: 16px;
    height: 16px;
    fill: #1670f8;
    stroke: #1670f8;
    stroke-width: 1.5;
}

/* =========================================================
   MFA setup
   ========================================================= */

.public-mfa {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem 0;
    background: var(--public-bg);
}

.public-mfa .public-login-card {
    width: min(420px, 100%);
    margin: 0 auto;
}

.public-mfa__qr {
    display: flex;
    justify-content: center;
    margin: 1.25rem 0;
}

.public-mfa__qr img {
    display: block;
    width: min(240px, 100%);
    height: auto;
    padding: 0.75rem;
    border: 1px solid var(--public-border);
    border-radius: 14px;
    background: #ffffff;
}

.public-mfa__form {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.public-mfa__label {
    color: #40577e;
    font-size: 0.7rem;
    font-weight: 700;
}

.public-mfa__token {
    width: 100%;
    min-height: 48px;
    padding: 0 1rem;
    border: 1px solid #d8e0eb;
    border-radius: 9px;
    background: #ffffff;
    color: #172033;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-align: center;
    outline: none;
}

.public-mfa__token:focus {
    border-color: #1670f8;
    box-shadow: 0 0 0 3px rgba(22, 112, 248, 0.10);
}

/* =========================================================
   MFA recovery codes
   ========================================================= */

.public-mfa__recovery-codes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;

    margin: 1.25rem 0;
}

.public-mfa__recovery-codes code {
    display: block;

    padding: 0.75rem;

    border: 1px solid #d8e0eb;
    border-radius: 8px;

    background: #f7f9fc;

    font-size: 0.95rem;
    font-weight: 700;

    letter-spacing: 0.08em;
    text-align: center;
}

@media (max-width: 480px) {
    .public-mfa__recovery-codes {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   Footer desktop
   ========================================================= */

@media (min-width: 768px) {

    .public-footer__main {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        align-items: center;
        gap: 2rem;
        min-height: 86px;
        padding-top: 0;
        padding-bottom: 0;
    }


    .public-footer__status {
        justify-self: center;
    }


    .public-footer__tagline {
        justify-self: end;
        text-align: right;
    }

}

/* =========================================================
   Tablet / desktop
   ========================================================= */

@media (min-width: 768px) {
    /*-- Capabilities --*/
    .public-capabilities {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    /*-- Capabilities --*/
    .public-capabilities {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    /*-- page --*/
    .public-shell {
        width: min(calc(100% - 3rem), 1180px );
    }

    .public-header__inner {
        min-height: 72px;
    }

    .public-brand__text {
        font-size: 0.92rem;
    }

    .public-section-heading {
        max-width: 560px;
    }

    .public-section-heading h2 {
        font-size: 1.65rem;
    }

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

    .public-feature-card {
        min-height: 100px;
        padding: 1rem;
    }

    .public-footer__inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}


@media (min-width: 1200px) {

    /*
     * Login card over de hero heen trekken.
     * De section houdt alleen nog genoeg ruimte over
     * voor het gedeelte van de card dat onder de hero uitsteekt.
     */


    .public-login-card {
        pointer-events: auto;
    }

    /*
     * Features direct laten aansluiten op login/hero.
     */
    .public-features {
        padding-top: 0;
        padding-bottom: 4rem;
    }

    .public-feature-grid {
        grid-template-columns:
            repeat(4, minmax(0, 1fr));
    }

    .public-feature-card {
        grid-template-columns: 1fr;
        align-content: start;
        min-height: 160px;
    }

    .public-feature-card__icon {
        margin-bottom: 0.35rem;
    }
}