/* Landing/marketing surface — nav, hero, sections, footer.
   Shares the token palette + .button/.plan-card styles with auth.css,
   which this layer loads alongside. */

.site-nav {
    display: flex;
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: 10;
    align-items: center;
    gap: 1.5rem;
    padding: 0.9rem clamp(1rem, 4vw, 3rem);
    border-bottom: 1px solid #e2e8f0;
    background: #ffffffee;
    backdrop-filter: blur(8px);
}

.nav-brand {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #172033;
    text-decoration: none;
}

.nav-links {
    display: flex;
    flex: 1;
    gap: 1.25rem;
}

.nav-links a,
.nav-actions .nav-link {
    color: #475467;
    font-size: 0.95rem;
    text-decoration: none;
}

.nav-links a:hover,
.nav-actions .nav-link:hover {
    color: #172033;
}

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

.site-main {
    margin-inline: auto;
    max-width: 72rem;
    padding: 0 clamp(1rem, 4vw, 3rem);
}

/* — hero — */
.hero {
    padding: clamp(3rem, 9vh, 6rem) 0 3rem;
    text-align: center;
}

.eyebrow {
    margin: 0 0 0.75rem;
    color: #2563eb;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0;
    font-size: clamp(1.9rem, 5vw, 3rem);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.hero-sub {
    margin: 1.1rem auto 1.6rem;
    max-width: 42rem;
    color: #475467;
    font-size: 1.08rem;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
}

.stat-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
    margin: 2.6rem 0 0;
}

.stat-strip div {
    text-align: center;
}

.stat-strip dt {
    font-size: 1.6rem;
    font-weight: 800;
}

.stat-strip dd {
    margin: 0.15rem 0 0;
    color: #667085;
    font-size: 0.85rem;
}

/* — sections — */
.steps,
.features,
.landing-pricing,
.faq,
.final-cta {
    padding: 3.5rem 0;
}

.steps h2,
.features h2,
.landing-pricing h2,
.faq h2 {
    margin: 0 0 0.4rem;
    font-size: 1.55rem;
    letter-spacing: -0.02em;
    text-align: center;
}

.section-sub {
    margin: 0.5rem auto 1.8rem;
    max-width: 38rem;
    color: #475467;
    text-align: center;
}

.step-list {
    display: grid;
    margin: 2rem 0 0;
    padding: 0;
    gap: 1.2rem;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    list-style: none;
    counter-reset: step;
}

.step-list li {
    padding: 1.3rem 1.4rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.9rem;
    background: #fff;
    counter-increment: step;
}

.step-list li h3::before {
    content: counter(step);
    display: inline-grid;
    width: 1.6rem;
    height: 1.6rem;
    margin-right: 0.55rem;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    font-size: 0.85rem;
    place-items: center;
}

.step-list h3 {
    margin: 0 0 0.4rem;
    font-size: 1.02rem;
}

.step-list p {
    margin: 0;
    color: #475467;
    font-size: 0.92rem;
    line-height: 1.55;
}

.feature-grid {
    display: grid;
    margin-top: 2rem;
    gap: 1.2rem;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.feature-grid article {
    padding: 1.3rem 1.4rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.9rem;
    background: #fff;
}

.feature-grid h3 {
    margin: 0 0 0.4rem;
    font-size: 1.02rem;
}

.feature-grid p {
    margin: 0;
    color: #475467;
    font-size: 0.92rem;
    line-height: 1.55;
}

.landing-pricing .plan-cards {
    margin-top: 1.5rem;
}

.section-note {
    margin-top: 1.4rem;
    text-align: center;
}

.section-note a {
    color: #2563eb;
    text-decoration: none;
}

/* — faq — */
.faq details {
    margin: 0.7rem auto;
    max-width: 46rem;
    padding: 1rem 1.2rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.7rem;
    background: #fff;
}

.faq summary {
    font-weight: 600;
    cursor: pointer;
}

.faq details p {
    margin: 0.7rem 0 0;
    color: #475467;
    font-size: 0.93rem;
    line-height: 1.6;
}

/* — final cta / legal — */
.final-cta {
    text-align: center;
}

.final-cta h2 {
    margin: 0 0 1.2rem;
    font-size: 1.6rem;
}

.legal {
    max-width: 44rem;
    padding: 3rem 0 4rem;
}

.legal h1 {
    margin: 0 0 0.3rem;
    font-size: 2rem;
    letter-spacing: -0.02em;
}

.legal h2 {
    margin: 1.8rem 0 0.4rem;
    font-size: 1.15rem;
}

.legal p,
.legal li {
    color: #344054;
    line-height: 1.65;
}

.legal .muted {
    color: #667085;
    font-size: 0.9rem;
}

/* — footer — */
.site-footer {
    margin-top: 3rem;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    margin-inline: auto;
    max-width: 72rem;
    padding: 2.5rem clamp(1rem, 4vw, 3rem);
}

.footer-brand p {
    margin: 0.4rem 0 0;
    max-width: 24rem;
    color: #667085;
    font-size: 0.9rem;
}

.footer-brand .muted a {
    color: #667085;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 1rem 1.4rem;
}

.footer-links a {
    color: #475467;
    font-size: 0.9rem;
    text-decoration: none;
}

.footer-links a:hover {
    color: #172033;
}

/* — dark — */
@media (prefers-color-scheme: dark) {
    .site-nav {
        border-color: #344054;
        background: #101828ee;
    }

    .nav-brand,
    .nav-links a:hover,
    .nav-actions .nav-link:hover,
    .footer-links a:hover {
        color: #f8fafc;
    }

    .step-list li,
    .feature-grid article,
    .faq details {
        border-color: #344054;
        background: #1d2939;
    }

    .step-list p,
    .feature-grid p,
    .faq details p,
    .hero-sub,
    .section-sub,
    .nav-links a,
    .nav-actions .nav-link,
    .footer-links a {
        color: #cbd5e1;
    }

    .legal p,
    .legal li {
        color: #cbd5e1;
    }

    .stat-strip dd,
    .footer-brand p,
    .legal .muted {
        color: #98a2b3;
    }

    .eyebrow,
    .section-note a,
    .footer-brand .muted a {
        color: #b9c6ff;
    }

    .button-secondary {
        border-color: #475467;
        color: #f8fafc;
    }

    .button-secondary:hover {
        background: #1d2939;
        border-color: #667085;
        color: #f8fafc;
    }

    .site-footer {
        border-color: #344054;
        background: #0b1420;
    }
}
