/* ==========================================================================
   LifeVault — Landing Page Styles
   Self-contained: does not depend on style.css / the dashboard shell's
   CSS custom properties (--sidebar-border-color, --glass-bg, etc.)
   ========================================================================== */

:root {
    --lv-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --lv-primary: #667eea;
    --lv-primary-dark: #5a67d8;
    --lv-secondary: #764ba2;
    --lv-text-dark: #1a1d29;
    --lv-text-muted: #6b7280;
    --lv-bg-light: #f8f9fc;
    --lv-border: #e5e7eb;

    /* Brand accents pulled from the MyLifeVault logo (brick-red circle,
       gold padlock, navy keyhole) — used sparingly alongside the primary
       purple gradient, never replacing it. */
    --lv-brand-red: #B7362C;
    --lv-brand-red-dark: #8F2A22;
    --lv-brand-gold: #F0A93A;
    --lv-brand-gold-dark: #D68F26;
    --lv-brand-navy: #1B2340;
}

* {
    box-sizing: border-box;
}

body.landing-body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--lv-text-dark);
    background: #ffffff;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
}

/* ---------- Flash messages ---------- */
.landing-flash-wrap .alert {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    font-weight: 500;
}

/* ---------- Navbar ---------- */
.landing-navbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--lv-border);
    padding: 0.9rem 0;
    z-index: 1030;
}

.landing-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--lv-text-dark) !important;
}

.landing-brand img {
    width: 34px;
    height: 34px;
    border-radius: 8px;
}

.landing-nav-links .nav-link {
    font-weight: 600;
    color: var(--lv-text-muted);
    padding: 0.5rem 1rem;
    transition: color 0.2s ease;
}

.landing-nav-links .nav-link:hover {
    color: var(--lv-primary);
}

.landing-nav-cta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.landing-nav-login {
    font-weight: 600;
    color: var(--lv-text-dark);
    text-decoration: none;
}

/* ---------- Buttons ---------- */
.landing-btn-primary {
    background: var(--lv-gradient);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    padding: 0.65rem 1.6rem;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.landing-btn-primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(102, 126, 234, 0.45);
}

.landing-btn-ghost {
    background: transparent;
    border: 2px solid var(--lv-border);
    color: var(--lv-text-dark);
    border-radius: 10px;
    font-weight: 700;
    padding: 0.6rem 1.6rem;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.landing-btn-ghost:hover {
    border-color: var(--lv-primary);
    color: var(--lv-primary);
}

.landing-btn-outline {
    background: transparent;
    border: 2px solid var(--lv-primary);
    color: var(--lv-primary);
    border-radius: 10px;
    font-weight: 700;
    padding: 0.6rem 1.4rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.landing-btn-outline:hover {
    background: var(--lv-primary);
    color: #fff;
}

/* ---------- Hero ---------- */
.landing-hero {
    padding: 6rem 0 5rem;
    background:
        radial-gradient(circle at 85% 15%, rgba(102, 126, 234, 0.10) 0%, transparent 45%),
        radial-gradient(circle at 10% 90%, rgba(118, 75, 162, 0.08) 0%, transparent 45%),
        #ffffff;
}

.landing-eyebrow {
    display: inline-flex;
    align-items: center;
    background: rgba(102, 126, 234, 0.1);
    color: var(--lv-primary-dark);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    margin-bottom: 1.25rem;
}

.landing-eyebrow i {
    /* The shield icon picks up the logo's gold instead of inheriting purple. */
    color: var(--lv-brand-gold);
}

.landing-hero-title {
    font-size: clamp(2.1rem, 4.2vw, 3.4rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.landing-hero-title span {
    background: var(--lv-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.landing-hero-sub {
    font-size: 1.1rem;
    color: var(--lv-text-muted);
    max-width: 560px;
    margin-bottom: 2rem;
    line-height: 1.65;
}

.landing-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.landing-hero-note {
    font-size: 0.85rem;
    color: var(--lv-text-muted);
    max-width: 480px;
}

/* Hero visual (CSS/icon-driven cards, no illustration assets).
   All three cards are absolutely positioned in separate vertical bands
   (top / center / bottom) so the floating cards never overlap the
   centered net-worth card regardless of container width. */
.landing-hero-visual {
    position: relative;
    min-height: 420px;
}

.landing-hero-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(26, 29, 41, 0.12);
    padding: 1.5rem;
}

.landing-hero-card-main {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--lv-gradient);
    color: #fff;
    width: 100%;
    max-width: 280px;
    z-index: 2;
}

.landing-hero-card-label {
    font-size: 0.85rem;
    opacity: 0.85;
    font-weight: 600;
}

.landing-hero-card-value {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0.25rem 0;
}

.landing-hero-card-trend {
    font-size: 0.85rem;
    opacity: 0.9;
}

.landing-hero-card-float {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: 240px;
    padding: 1rem 1.25rem;
    animation: lv-float 5s ease-in-out infinite;
}

.landing-hero-card-float i {
    font-size: 1.4rem;
    color: var(--lv-primary);
}

.landing-hero-card-title {
    font-weight: 700;
    font-size: 0.9rem;
}

.landing-hero-card-sub {
    font-size: 0.78rem;
    color: var(--lv-text-muted);
}

.landing-hero-card-1 {
    top: 0;
    left: 0;
    animation-delay: 0s;
}

.landing-hero-card-2 {
    bottom: 0;
    right: 0;
    animation-delay: 1.2s;
}

@keyframes lv-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* ---------- Section shared ---------- */
.landing-section-eyebrow {
    display: inline-block;
    color: var(--lv-primary-dark);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.75rem;
}

.landing-section-eyebrow-light {
    color: #c7d2fe;
}

.landing-section-title {
    font-size: clamp(1.6rem, 2.8vw, 2.3rem);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 1rem;
}

.landing-section-title-light {
    color: #fff;
}

.landing-section-sub {
    color: var(--lv-text-muted);
    max-width: 620px;
    margin: 0 auto;
}

/* ---------- Mission ---------- */
.landing-mission {
    padding: 5rem 0;
    background: var(--lv-bg-light);
}

.landing-mission-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.9rem;
}

.landing-mission-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    font-weight: 500;
    color: var(--lv-text-dark);
}

.landing-mission-list i {
    color: var(--lv-primary);
    margin-top: 0.15rem;
}

.landing-vision-card {
    background: var(--lv-gradient);
    color: #fff;
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
}

.landing-quote-icon {
    font-size: 2.2rem;
    opacity: 0.5;
    display: block;
    margin-bottom: 0.5rem;
}

.landing-vision-card p {
    font-size: 1.2rem;
    line-height: 1.6;
    font-weight: 500;
}

.landing-vision-attribution {
    display: block;
    margin-top: 1rem;
    font-weight: 700;
    opacity: 0.85;
}

/* ---------- Features ---------- */
.landing-features {
    padding: 5rem 0;
}

.landing-feature-card {
    height: 100%;
    background: #fff;
    border: 1px solid var(--lv-border);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.landing-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(26, 29, 41, 0.08);
}

.landing-feature-card-soon {
    background: linear-gradient(180deg, rgba(102, 126, 234, 0.05), transparent);
    border-color: rgba(102, 126, 234, 0.3);
}

.landing-feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--lv-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.1rem;
}

.landing-feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.landing-feature-card p {
    color: var(--lv-text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0;
}

.landing-badge-soon {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--lv-gradient);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
}

.landing-badge-soon-inline {
    display: inline-block;
    background: rgba(102, 126, 234, 0.12);
    color: var(--lv-primary-dark);
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    margin-left: 0.4rem;
    vertical-align: middle;
}

/* ---------- Plans ---------- */
.landing-plans {
    padding: 5rem 0;
    background: var(--lv-bg-light);
}

.landing-plan-card {
    height: 100%;
    background: #fff;
    border: 1px solid var(--lv-border);
    border-radius: 18px;
    padding: 2.2rem;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.landing-plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(26, 29, 41, 0.08);
}

.landing-plan-card-featured {
    border: 2px solid var(--lv-primary);
    box-shadow: 0 20px 45px rgba(102, 126, 234, 0.18);
}

.landing-plan-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    /* Gold + navy — the same pairing as the logo's padlock and keyhole,
       used here to mark the "best value" plan. */
    background: linear-gradient(135deg, var(--lv-brand-gold) 0%, var(--lv-brand-gold-dark) 100%);
    color: var(--lv-brand-navy);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 1rem;
    border-radius: 999px;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(240, 169, 58, 0.35);
}

.landing-plan-name {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.landing-plan-tagline {
    color: var(--lv-text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.landing-plan-price {
    font-size: 1.6rem;
    font-weight: 800;
    background: var(--lv-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

.landing-plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.75rem;
    flex-grow: 1;
    display: grid;
    gap: 0.7rem;
}

.landing-plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.92rem;
    color: var(--lv-text-dark);
}

.landing-plan-features i {
    color: var(--lv-primary);
    margin-top: 0.2rem;
}

/* ---------- Security ---------- */
.landing-security {
    padding: 5rem 0;
    /* End stop nudged toward the logo's navy instead of pure purple-black. */
    background: linear-gradient(135deg, #1a1d29 0%, var(--lv-brand-navy) 100%);
    color: #fff;
}

.landing-security-sub {
    color: #c7d2fe;
    max-width: 480px;
}

.landing-security-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 1.25rem;
    height: 100%;
}

.landing-security-item i {
    font-size: 1.3rem;
    /* Gold, not purple — the padlock in the logo is the security symbol. */
    color: var(--lv-brand-gold);
    margin-top: 0.15rem;
}

.landing-security-item h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.landing-security-item p {
    font-size: 0.82rem;
    color: #c7d2fe;
    margin: 0;
}

/* ---------- Final CTA ---------- */
.landing-final-cta {
    padding: 5rem 0;
    background: var(--lv-gradient);
    color: #fff;
    text-align: center;
}

.landing-final-cta h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.landing-final-cta p {
    font-size: 1.05rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.landing-final-cta .landing-btn-primary {
    background: #fff;
    color: var(--lv-primary-dark);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.landing-final-cta .landing-btn-primary:hover {
    color: var(--lv-primary-dark);
}

/* ---------- Footer ---------- */
.landing-footer {
    background: #14161f;
    color: #9ca3af;
    padding: 2.5rem 0;
}

.landing-footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.landing-footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.landing-footer-brand img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.landing-footer-name {
    font-weight: 700;
    color: #fff;
}

.landing-footer-copy {
    font-size: 0.78rem;
}

.landing-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.landing-footer-links a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

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

.landing-footer-social {
    display: flex;
    gap: 0.9rem;
}

.landing-footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.2s ease;
}

.landing-footer-social a:hover {
    /* Brick-red instead of purple — a small, isolated nod to the logo. */
    background: var(--lv-brand-red);
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .landing-nav-links {
        margin: 1rem 0;
    }

    .landing-nav-cta {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .landing-hero {
        padding: 3.5rem 0 3rem;
        text-align: center;
    }

    .landing-hero-sub {
        margin-left: auto;
        margin-right: auto;
    }

    .landing-hero-cta {
        justify-content: center;
    }

    .landing-hero-note {
        margin-left: auto;
        margin-right: auto;
    }

    .landing-hero-visual {
        min-height: 0;
        margin-top: 2rem;
    }

    .landing-hero-card-main {
        position: static;
        transform: none;
        max-width: 320px;
        margin: 0 auto;
    }

    .landing-hero-card-float {
        position: static;
        margin: 0.75rem auto 0;
        max-width: 320px;
        animation: none;
    }
}

@media (max-width: 575.98px) {
    .landing-hero-cta {
        flex-direction: column;
    }

    .landing-hero-cta .btn {
        width: 100%;
    }

    .landing-footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

/* ---------- Dark mode (viewer preference) ---------- */
@media (prefers-color-scheme: dark) {
    body.landing-body {
        background: #0f1117;
        color: #e5e7eb;
    }

    .landing-navbar {
        background: rgba(15, 17, 23, 0.85);
        border-bottom-color: rgba(255, 255, 255, 0.08);
    }

    .landing-brand {
        color: #fff !important;
    }

    .landing-nav-login {
        color: #e5e7eb;
    }

    .landing-hero {
        background:
            radial-gradient(circle at 85% 15%, rgba(102, 126, 234, 0.18) 0%, transparent 45%),
            radial-gradient(circle at 10% 90%, rgba(118, 75, 162, 0.15) 0%, transparent 45%),
            #0f1117;
    }

    .landing-hero-title,
    .landing-section-title,
    .landing-plan-name,
    .landing-feature-card h3 {
        color: #f5f6fa;
    }

    .landing-hero-sub,
    .landing-section-sub,
    .landing-feature-card p,
    .landing-plan-tagline {
        color: #a3a9ba;
    }

    .landing-btn-ghost {
        border-color: rgba(255, 255, 255, 0.15);
        color: #e5e7eb;
    }

    .landing-hero-card-float,
    .landing-feature-card,
    .landing-plan-card {
        background: #181b26;
        border-color: rgba(255, 255, 255, 0.08);
    }

    .landing-hero-card-sub {
        color: #a3a9ba;
    }

    .landing-mission,
    .landing-plans {
        background: #14161f;
    }

    .landing-mission-list li {
        color: #e5e7eb;
    }

    .landing-plan-features li {
        color: #e5e7eb;
    }

    .landing-footer {
        background: #0a0b10;
    }
}
