/* Landing page */
.landing-page {
    background:
        radial-gradient(circle at 12% 14%, rgba(252, 176, 69, 0.22) 0%, rgba(252, 176, 69, 0) 45%),
        radial-gradient(circle at 88% 2%, rgba(38, 140, 255, 0.2) 0%, rgba(38, 140, 255, 0) 42%),
        linear-gradient(180deg, #f7fbff 0%, #eef4fb 46%, #ffffff 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

.landing-page .page-shell {
    min-height: 100vh;
}

/* Auth */
.landing-intro {
    position: relative;
    margin: 0 auto;
    isolation: isolate;
    max-width: 940px;
    padding: 0 clamp(14px, 3.1vw, 32px);
    box-sizing: border-box;
}

.landing-glow {
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
    z-index: -1;
}

.landing-glow-a {
    width: min(35vw, 420px);
    height: min(35vw, 420px);
    left: 2%;
    top: -10%;
    background: radial-gradient(circle, rgba(252, 179, 94, 0.32) 0%, rgba(252, 179, 94, 0) 70%);
}

.landing-glow-b {
    width: min(32vw, 380px);
    height: min(32vw, 380px);
    right: 4%;
    bottom: -12%;
    background: radial-gradient(circle, rgba(77, 162, 250, 0.28) 0%, rgba(77, 162, 250, 0) 70%);
}

.landing-intro-card {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: clamp(8px, 2vw, 20px) 0;
    box-shadow: none;
    animation: landing-card-enter 420ms ease-out;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "eyebrow cta"
        "title title"
        "copy copy"
        "highlights highlights";
    column-gap: 20px;
    row-gap: 10px;
    align-items: start;
}

.landing-eyebrow-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    grid-area: eyebrow;
    justify-content: flex-start;
    justify-self: start;
    align-self: center;
}

.landing-kicker {
    margin: 0;
    color: #1b588e;
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.landing-title {
    margin: 12px 0 0;
    color: #12233b;
    font-family: "Manrope", "Space Grotesk", system-ui, sans-serif;
    font-size: clamp(1.7rem, 3.4vw, 2.7rem);
    line-height: 1.08;
    max-width: 26ch;
    letter-spacing: -0.015em;
    grid-area: title;
}

.landing-copy {
    margin: 14px 0 0;
    max-width: 60ch;
    color: #2d4259;
    line-height: 1.65;
    font-size: 1.02rem;
    grid-area: copy;
}

.landing-copy::after {
    content: "";
    display: block;
    width: min(220px, 48vw);
    height: 3px;
    margin-top: 16px;
    border-radius: 2px;
    background: linear-gradient(90deg, rgba(221, 125, 38, 0.85) 0%, rgba(46, 119, 194, 0.9) 100%);
}

.landing-highlights {
    margin: 18px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    grid-area: highlights;
}

.landing-highlight-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(42, 97, 150, 0.24);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    color: #1f3e61;
    font-size: 0.84rem;
    font-weight: 600;
    padding: 6px 11px;
}

.landing-highlight-chip::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ea8f38 0%, #d2731a 100%);
    box-shadow: 0 0 0 3px rgba(238, 152, 68, 0.17);
}

.landing-seo {
    margin: clamp(10px, 2.2vw, 18px) auto 0;
    max-width: 940px;
    padding: clamp(10px, 1.5vw, 16px) clamp(14px, 3.1vw, 32px) clamp(4px, 1vw, 10px);
    border-top: 1px solid rgba(59, 96, 137, 0.2);
    box-sizing: border-box;
    animation: landing-card-enter 420ms ease-out 120ms both;
}

.landing-seo-title {
    margin: 0;
    font-family: "Manrope", "Space Grotesk", system-ui, sans-serif;
    font-size: clamp(1.08rem, 2vw, 1.35rem);
    line-height: 1.22;
    color: #183250;
}

.landing-seo-copy {
    margin: 10px 0 0;
    max-width: 74ch;
    color: #2f4964;
    line-height: 1.62;
    font-size: 0.96rem;
}

.landing-cta-row {
    margin-top: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
    grid-area: cta;
    justify-content: flex-end;
    justify-self: end;
    align-self: center;
}

.landing-primary-cta,
.landing-secondary-cta {
    border-radius: 14px;
    padding: 11px 18px;
    min-height: 46px;
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    font-family: "Manrope", "Space Grotesk", system-ui, sans-serif;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, background 180ms ease, border-color 180ms ease;
}

.landing-primary-cta {
    border: 1px solid #1c5a99;
    background: linear-gradient(155deg, #2f86de 0%, #245ea7 100%);
    color: #fff;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        0 10px 22px -14px rgba(27, 83, 148, 0.85);
}

.landing-primary-cta:hover {
    background: linear-gradient(155deg, #3991ea 0%, #2a69b7 100%);
    border-color: #1a4f88;
    transform: translateY(-1px) scale(1.01);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.32),
        0 14px 26px -14px rgba(27, 83, 148, 0.95);
}

.landing-secondary-cta {
    border: 1px solid #95aecb;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(239, 245, 252, 0.9) 100%);
    color: #17314d;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.landing-secondary-cta:hover {
    background: linear-gradient(180deg, #ffffff 0%, #edf4fd 100%);
    border-color: #7e9fc4;
    transform: translateY(-1px) scale(1.01);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 1),
        0 10px 20px -16px rgba(30, 64, 99, 0.55);
}

.landing-primary-cta:focus-visible,
.landing-secondary-cta:focus-visible {
    outline: 3px solid rgba(52, 120, 194, 0.32);
    outline-offset: 2px;
}

.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: grid;
    place-items: center;
    padding: 20px;
}

.auth-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 15, 25, 0.58);
    backdrop-filter: blur(2px);
}

.auth-modal-dialog {
    position: relative;
    width: min(410px, 100%);
    overflow: visible;
    border: none;
    background: transparent;
    box-shadow: none;
    padding: 0;
    animation: auth-modal-enter 180ms ease-out;
}

@keyframes landing-card-enter {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-modal-close-row {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
}

.auth-modal-close {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: #0f172a;
    border-radius: 999px;
    padding: 0;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
}

.auth-modal-close:hover {
    background: transparent;
}

.has-auth-modal-open {
    overflow: hidden;
}

.auth-panel {
    display: block;
    margin: 0;
}

.auth-card {
    max-width: 410px;
    margin: 0 auto;
    padding: 26px 24px 22px;
    border: 1px solid #d5def0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 30px 80px -42px rgba(15, 23, 42, 0.72);
}

.auth-card.is-active {
    border-color: #7eaef0;
    box-shadow:
        0 0 0 4px rgba(75, 133, 220, 0.14),
        0 30px 80px -42px rgba(15, 23, 42, 0.72);
}

.auth-card h2 {
    margin: 0 0 14px 0;
    font-size: 1.8rem;
    color: #0f172a;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.auth-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #243447;
}

.auth-input {
    padding: 11px 12px;
    border: 1px solid #c7d0db;
    border-radius: 8px;
    font-size: 1rem;
}

.auth-input:focus {
    outline: none;
    border-color: #6aa0ea;
    box-shadow: 0 0 0 3px rgba(82, 145, 231, 0.14);
}

.auth-input:focus:invalid {
    border-color: #d92d20;
    box-shadow: 0 0 0 3px rgba(217, 45, 32, 0.13);
}

.auth-input:focus:valid {
    border-color: #1f8f42;
    box-shadow: 0 0 0 3px rgba(31, 143, 66, 0.12);
}

.auth-input-feedback {
    margin: -2px 0 0;
    min-height: 1.1rem;
    font-size: 0.79rem;
    color: #667085;
}

.auth-input-feedback.is-invalid {
    color: #b42318;
}

.auth-input-feedback.is-valid {
    color: #087443;
}

.auth-submit {
    margin-top: 8px;
    border: none;
    border-radius: 8px;
    padding: 11px 14px;
    background: linear-gradient(180deg, #5498e5 0%, #3f83d1 100%);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
}

.auth-submit:hover {
    filter: brightness(0.96);
}

@keyframes auth-modal-enter {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.985);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.auth-status {
    margin: 0 24px 16px;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
}

.auth-status[data-state="error"] {
    background: #fbe7e5;
    color: #8a1f11;
}

.auth-status[data-state="success"] {
    background: #e8f5ea;
    color: #17612a;
}

.auth-modal-dialog .auth-status {
    margin: 12px 0 0;
}

.public-list-banner {
    margin: 0 24px 16px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #243447;
}

@media (max-width: 700px) {
    .landing-page .page-shell {
        padding: 0;
    }

    .landing-intro {
        padding: 14px;
    }

    .landing-intro-card {
        border-radius: 18px;
        grid-template-columns: 1fr;
        grid-template-areas:
            "eyebrow"
            "title"
            "copy"
            "highlights"
            "cta";
        row-gap: 8px;
    }

    .landing-title {
        max-width: none;
    }

    .landing-cta-row {
        justify-self: center;
        margin-top: 10px;
    }

    .landing-seo {
        margin-top: 12px;
        padding: 12px 14px;
    }

    .auth-modal {
        padding: 10px;
    }

    .auth-modal-dialog {
        width: min(380px, 100%);
    }

    .auth-card {
        padding: 22px 18px 18px;
    }

    .auth-card h2 {
        font-size: 1.55rem;
    }
}

.landing-logo {
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
}
