/* Landing page.
   Mobile-first: base rules target a phone, and the media queries scale up from there.
   Palette and buttons are inherited from app.css so the marketing page and the product
   read as the same thing. */

.lp {
    max-width: 1080px;
    margin: 0 auto;
    padding: 1.25rem 1.15rem 4rem;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

/* ---------- nav ---------- */

.lp-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding-bottom: .5rem;
}

.lp-nav-links {
    display: flex;
    align-items: center;
    gap: .5rem 1.1rem;
    flex-wrap: wrap;
}

    .lp-nav-links a {
        color: var(--text-muted);
        text-decoration: none;
        font-size: .92rem;
        font-weight: 500;
        /* 44px is the minimum comfortable tap target on a phone. Enforced with min-height
           rather than padding so it holds regardless of font metrics. */
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }

        .lp-nav-links a:hover {
            color: var(--text);
        }

        .lp-nav-links a.btn {
            color: #0b1020;
            padding: .55rem .95rem;
        }

.btn-sm {
    font-size: .85rem;
    padding: .5rem .9rem;
}

.btn-lg {
    font-size: 1.02rem;
    padding: .85rem 1.6rem;
    display: inline-block;
    text-decoration: none;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
    text-decoration: none;
    margin-top: auto;
}

/* ---------- hero ---------- */

.lp-hero {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.lp-hero-copy {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

    .lp-hero-copy h1 {
        font-size: clamp(2.1rem, 7vw, 3.5rem);
        line-height: 1.08;
        letter-spacing: -.03em;
        margin: 0;
        text-wrap: balance;
    }

        .lp-hero-copy h1 em {
            font-style: normal;
            color: var(--accent);
        }

.lp-lede {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0;
    max-width: 54ch;
}

.lp-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .7rem;
    margin-top: .4rem;
}

.lp-cta-note {
    color: var(--text-muted);
    font-size: .87rem;
}

    .lp-cta-note a {
        color: var(--accent);
    }

/* ---------- product mock ---------- */

.lp-mock {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: .2rem;
}

.lp-mock-card {
    background: linear-gradient(150deg, #1b2743 0, var(--bg-elevated) 55%);
    background-color: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.4rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: .45rem;
    margin-bottom: .85rem;
}

.lp-mock-label {
    color: var(--text-muted);
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.lp-mock-amount {
    font-size: clamp(2.3rem, 9vw, 3rem);
    font-weight: 750;
    letter-spacing: -.03em;
    line-height: 1.05;
    color: var(--positive);
    font-variant-numeric: tabular-nums;
}

.lp-mock-sub {
    color: var(--text-muted);
    font-size: .82rem;
    line-height: 1.5;
}

.lp-mock-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .6rem .2rem;
    border-bottom: 1px solid var(--border);
    font-size: .9rem;
}

    .lp-mock-row:last-child {
        border-bottom: none;
    }

.lp-mock-name {
    color: var(--text);
    font-weight: 500;
}

.lp-mock-amt {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

    .lp-mock-amt.neg {
        color: var(--negative);
    }

    .lp-mock-amt.pos {
        color: var(--positive);
    }

/* ---------- shared section type ---------- */

.lp h2 {
    font-size: clamp(1.5rem, 4.5vw, 2rem);
    letter-spacing: -.02em;
    margin: 0 0 .4rem;
    text-wrap: balance;
}

.lp-section-sub {
    color: var(--text-muted);
    margin: 0 0 1.25rem;
}

/* ---------- steps ---------- */

.lp-step-list {
    list-style: none;
    margin: 1.25rem 0 0;
    padding: 0;
    display: grid;
    gap: 1rem;
}

    .lp-step-list li {
        background: var(--bg-panel);
        border: 1px solid var(--border);
        border-radius: 14px;
        padding: 1.4rem 1.25rem;
        display: flex;
        flex-direction: column;
        gap: .5rem;
    }

    .lp-step-list h3 {
        margin: 0;
        font-size: 1.05rem;
    }

    .lp-step-list p {
        margin: 0;
        color: var(--text-muted);
        font-size: .93rem;
        line-height: 1.6;
    }

.lp-step-n {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 50%;
    background: rgba(91, 140, 255, .16);
    color: var(--accent);
    font-weight: 700;
    font-size: .9rem;
    font-variant-numeric: tabular-nums;
}

/* ---------- contrast ---------- */

.lp-contrast {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem 1.5rem;
}

    .lp-contrast p {
        color: var(--text-muted);
        margin: 0;
        max-width: 60ch;
        line-height: 1.65;
    }

/* ---------- pricing ---------- */

.lp-plans {
    display: grid;
    gap: 1rem;
}

.lp-plan {
    position: relative;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.6rem 1.3rem 1.3rem;
    display: flex;
    flex-direction: column;
    gap: .35rem;
    min-height: 100%;
}

.lp-plan-featured {
    border-color: var(--accent);
}

.lp-plan-badge {
    position: absolute;
    top: -.62rem;
    right: 1rem;
    background: var(--accent);
    color: #0b1020;
    font-size: .64rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: .18rem .55rem;
    border-radius: 999px;
}

.lp-plan-name {
    color: var(--text-muted);
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.lp-plan-price {
    font-size: 2.2rem;
    font-weight: 750;
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
}

    .lp-plan-price small {
        font-size: .88rem;
        font-weight: 500;
        color: var(--text-muted);
    }

.lp-plan-note {
    color: var(--text-muted);
    font-size: .87rem;
    margin-bottom: 1.1rem;
}

/* ---------- trust ---------- */

.lp-trust-list {
    list-style: none;
    margin: 1.25rem 0 0;
    padding: 0;
    display: grid;
    gap: .7rem;
}

    .lp-trust-list li {
        background: var(--bg-panel);
        border: 1px solid var(--border);
        border-left: 3px solid var(--positive);
        border-radius: 10px;
        padding: .95rem 1.1rem;
        color: var(--text-muted);
        font-size: .93rem;
        line-height: 1.6;
    }

    .lp-trust-list strong {
        color: var(--text);
        font-weight: 600;
    }

/* ---------- final CTA ---------- */

.lp-final {
    text-align: center;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

/* ---------- footer ---------- */

.lp-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    color: var(--text-muted);
    font-size: .87rem;
}

/* ---------- scale up ---------- */

@media (min-width: 720px) {
    .lp {
        padding: 1.75rem 1.5rem 5rem;
        gap: 5rem;
    }

    .lp-step-list {
        grid-template-columns: repeat(3, 1fr);
    }

    .lp-trust-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .lp-cta {
        flex-direction: row;
        align-items: center;
        gap: 1.1rem;
    }
}

@media (min-width: 960px) {
    .lp-hero {
        flex-direction: row;
        align-items: center;
        gap: 3.5rem;
    }

    .lp-hero-copy {
        flex: 1 1 52%;
    }

    .lp-mock {
        flex: 1 1 48%;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* The hero mock shows the include-income toggle in its on state. It is decorative only -
   the working control is in the app - so it renders without an input element. */

.lp-mock-toggle {
    margin-top: .9rem;
    cursor: default;
    min-height: 0;
}

.toggle-track-on {
    background: rgba(55, 217, 154, .25);
    border-color: var(--positive);
}

    .toggle-track-on .toggle-thumb {
        transform: translateX(18px);
        background: var(--positive);
    }

/* Pricing cards get their own breakpoint, later than the other grids. Side by side too early
   leaves two narrow cards stranded beside full-width sections. Capped so they do not stretch
   awkwardly wide on a large screen, and left-aligned so their edge lines up with the section
   heading rather than floating in the middle of the page. */
@media (min-width: 860px) {
    .lp-plans {
        grid-template-columns: repeat(2, 1fr);
        max-width: 760px;
        margin-inline: 0;
    }
}

/* ---------- legal pages ---------- */

.legal {
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem 1.15rem 5rem;
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
}

.legal-head {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1.5rem;
}

    .legal-head .brand {
        text-decoration: none;
        color: var(--text);
        width: fit-content;
    }

    .legal-head h1 {
        font-size: clamp(1.8rem, 5vw, 2.4rem);
        letter-spacing: -.02em;
        margin: .5rem 0 0;
    }

.legal-updated {
    color: var(--text-muted);
    font-size: .85rem;
    margin: 0;
}

.legal section {
    display: flex;
    flex-direction: column;
    gap: .85rem;
}

.legal h2 {
    font-size: 1.15rem;
    margin: 0;
    letter-spacing: -.01em;
}

.legal p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.7;
    /* Long-form reading, so keep the measure comfortable. */
    max-width: 68ch;
}

.legal ul {
    margin: 0;
    padding-left: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: .55rem;
    color: var(--text-muted);
    line-height: 1.65;
    max-width: 68ch;
}

.legal strong {
    color: var(--text);
    font-weight: 600;
}

.legal a {
    color: var(--accent);
}

.legal-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    font-size: .9rem;
}

.lp-footer-links {
    display: flex;
    gap: 1.25rem;
}

    .lp-footer-links a {
        color: var(--text-muted);
        text-decoration: none;
    }

        .lp-footer-links a:hover {
            color: var(--text);
        }
