/* ----------------------------------------------------------------------------
 * Money Track — Phase 8.5.4 Landing page polish (legacy fidelity)
 * Served from /public so it works without a Vite build.
 * Covers the new guest topbar / footer plus the marketing landing sections.
 * --------------------------------------------------------------------------- */

/* ===== Topbar (polished) ===== */
.guest-topbar--polished {
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid #e5e5ea;
    position: sticky;
    top: 0;
    z-index: 20;
}
.guest-topbar-inner {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 24px;
    height: 68px;
}
.guest-nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    justify-self: center;
}
.guest-nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: #3a3a3c;
    text-decoration: none;
    transition: color 0.18s;
}
.guest-nav-links a:hover { color: #0071e3; text-decoration: none; }

.guest-nav-actions { display: inline-flex; gap: 10px; }
.guest-login-link { color: #1d1d1f; }

.guest-nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid #e5e5ea;
    border-radius: 12px;
    color: #1d1d1f;
    font-size: 22px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.guest-nav-mobile {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 12px 24px 20px;
    border-bottom: 1px solid #e5e5ea;
    background: #ffffff;
}
.guest-nav-mobile.is-open { display: flex; }
.guest-nav-mobile a {
    padding: 10px 4px;
    font-size: 15px;
    color: #1d1d1f;
    text-decoration: none;
    border-radius: 10px;
}
.guest-nav-mobile a:hover { background: #fafafc; text-decoration: none; }
.guest-nav-mobile-cta {
    background: #0071e3;
    color: #ffffff !important;
    text-align: center;
    margin-top: 6px;
    box-shadow: 0 6px 16px rgba(0, 113, 227, 0.24);
}

@media (max-width: 900px) {
    .guest-topbar-inner { grid-template-columns: auto 1fr auto; height: 60px; }
    .guest-nav-links { display: none; }
    .guest-nav-actions { display: none; }
    .guest-nav-toggle { display: inline-flex; }
}

/* ===== HERO ===== */
.lp-hero {
    padding: 70px 0 80px;
    background:
        radial-gradient(900px 500px at 20% -10%, rgba(0, 113, 227, 0.16), transparent 65%),
        radial-gradient(700px 460px at 90% 5%, rgba(94, 92, 230, 0.12), transparent 60%),
        linear-gradient(180deg, #ffffff 0%, #f5f5f7 100%);
}
.lp-hero-inner { text-align: center; max-width: 820px; margin: 0 auto; padding: 0 20px; }
.lp-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(0, 113, 227, 0.1);
    color: #0071e3;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 22px;
}
.lp-hero-title {
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: #1d1d1f;
    margin: 0 0 22px;
}
.lp-hero-title-accent {
    background: linear-gradient(135deg, #0071e3 0%, #5e5ce6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.lp-hero-sub {
    font-size: 18px;
    line-height: 1.55;
    color: #3a3a3c;
    margin: 0 auto 30px;
    max-width: 640px;
}
.lp-hero-cta {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 28px;
}
.lp-cta-big {
    padding: 14px 28px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    border-radius: 999px !important;
}
.lp-hero-trust {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-flex;
    gap: 22px;
    flex-wrap: wrap;
    justify-content: center;
    color: #6e6e73;
    font-size: 13px;
    font-weight: 500;
}
.lp-hero-trust li { display: inline-flex; align-items: center; gap: 6px; }
.lp-hero-trust i { color: #34c759; font-size: 16px; }

/* ===== SECTIONS ===== */
.lp-section { padding: 80px 0; }
.lp-section--surface { background: #ffffff; }
.lp-section--pricing { background: #f5f5f7; }

.lp-section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; padding: 0 20px; }
.lp-section-eyebrow {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(0, 113, 227, 0.1);
    color: #0071e3;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.lp-section-head h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    color: #1d1d1f;
    letter-spacing: -0.02em;
    margin: 0 0 12px;
    line-height: 1.15;
}
.lp-section-sub {
    font-size: 16px;
    color: #6e6e73;
    line-height: 1.6;
    margin: 0;
}

/* ===== FEATURES GRID ===== */
.lp-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}
.lp-feature-card {
    background: #ffffff;
    border: 1px solid #e5e5ea;
    border-radius: 18px;
    padding: 26px;
    transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.lp-feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.08);
    border-color: #d2d2d7;
}
.lp-feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 16px;
}
.lp-feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}
.lp-feature-card p {
    font-size: 14px;
    color: #6e6e73;
    line-height: 1.6;
    margin: 0;
}
@media (max-width: 900px) { .lp-feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .lp-feature-grid { grid-template-columns: 1fr; } }

/* ===== PRICING GRID ===== */
.lp-pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
    align-items: stretch;
}
.lp-price-card {
    position: relative;
    background: #ffffff;
    border: 1px solid #e5e5ea;
    border-radius: 20px;
    padding: 26px 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.lp-price-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.08);
}
.lp-price-card--popular {
    border-color: #0071e3;
    box-shadow: 0 14px 40px rgba(0, 113, 227, 0.18);
    transform: scale(1.02);
}
.lp-price-popular-tag {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 18px;
    background: #0071e3;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 999px;
    box-shadow: 0 6px 16px rgba(0, 113, 227, 0.32);
    white-space: nowrap;
}

.lp-price-badge {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.lp-price-badge.is-trial { background: rgba(94, 92, 230, 0.12); color: #5e5ce6; }
.lp-price-badge.is-popular { background: rgba(52, 199, 89, 0.14); color: #1f8a4d; }
.lp-price-badge.is-best { background: rgba(0, 113, 227, 0.12); color: #0071e3; }
.lp-price-badge.is-long { background: rgba(255, 159, 10, 0.16); color: #c8770a; }

.lp-price-name {
    font-size: 18px;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0;
    letter-spacing: -0.01em;
}
.lp-price-amount {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}
.lp-price-figure {
    font-size: 36px;
    font-weight: 700;
    color: #1d1d1f;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    letter-spacing: -0.02em;
    line-height: 1;
}
.lp-price-unit { font-size: 13px; color: #6e6e73; font-weight: 500; }

.lp-price-desc {
    font-size: 13px;
    color: #6e6e73;
    line-height: 1.55;
    margin: 0;
    min-height: 60px;
}

.lp-price-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}
.lp-price-features li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #1d1d1f;
    line-height: 1.5;
}
.lp-price-features i {
    color: #34c759;
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 1px;
}

.lp-price-cta {
    width: 100%;
    margin-top: 6px;
    padding: 12px 16px !important;
    border-radius: 12px !important;
    text-align: center;
    font-weight: 600 !important;
}

.lp-pricing-foot {
    text-align: center;
    font-size: 13px;
    color: #6e6e73;
    margin: 36px auto 0;
    max-width: 720px;
    padding: 0 20px;
    line-height: 1.6;
}

@media (max-width: 1100px) { .lp-pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
    .lp-pricing-grid { grid-template-columns: 1fr; }
    .lp-price-card--popular { transform: none; }
}

/* ===== HOW IT WORKS / STEPS ===== */
.lp-step-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}
.lp-step-card {
    position: relative;
    background: #ffffff;
    border: 1px solid #e5e5ea;
    border-radius: 20px;
    padding: 36px 24px 26px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.lp-step-num {
    position: absolute;
    top: 18px;
    right: 22px;
    font-size: 56px;
    font-weight: 700;
    color: rgba(0, 113, 227, 0.08);
    line-height: 1;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    letter-spacing: -0.05em;
}
.lp-step-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(0, 113, 227, 0.12);
    color: #0071e3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 16px;
}
.lp-step-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}
.lp-step-card p {
    font-size: 14px;
    color: #6e6e73;
    line-height: 1.6;
    margin: 0;
}
@media (max-width: 800px) { .lp-step-grid { grid-template-columns: 1fr; } }

/* ===== FAQ ===== */
.lp-faq-wrap { max-width: 820px; padding: 0 20px; }
.lp-faq-list { display: flex; flex-direction: column; gap: 10px; }
.lp-faq-item {
    background: #ffffff;
    border: 1px solid #e5e5ea;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: border-color 0.18s, box-shadow 0.18s;
}
.lp-faq-item[open] {
    border-color: #0071e3;
    box-shadow: 0 8px 20px rgba(0, 113, 227, 0.1);
}
.lp-faq-item summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    font-size: 15px;
    font-weight: 600;
    color: #1d1d1f;
}
.lp-faq-item summary::-webkit-details-marker { display: none; }
.lp-faq-item summary i { transition: transform 0.18s; color: #6e6e73; }
.lp-faq-item[open] summary i { transform: rotate(180deg); color: #0071e3; }
.lp-faq-item p {
    margin: 0;
    padding: 0 22px 22px;
    font-size: 14px;
    color: #6e6e73;
    line-height: 1.7;
}

/* ===== FINAL CTA BAND ===== */
.lp-cta-band {
    padding: 70px 0 80px;
    background:
        radial-gradient(800px 400px at 50% 100%, rgba(0, 113, 227, 0.18), transparent 65%),
        linear-gradient(135deg, #0071e3 0%, #5e5ce6 100%);
    color: #ffffff;
    text-align: center;
}
.lp-cta-band-inner { padding: 0 20px; }
.lp-cta-band h2 {
    font-size: clamp(24px, 3.6vw, 36px);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 12px;
}
.lp-cta-band p {
    font-size: 16px;
    opacity: 0.92;
    margin: 0 0 24px;
}
.lp-cta-band .btn-primary-glow {
    background: #ffffff !important;
    color: #0071e3 !important;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18) !important;
}

/* ===== FOOTER (polished) ===== */
.guest-footer--polished {
    background: #1d1d1f;
    color: rgba(255, 255, 255, 0.78);
    padding: 60px 0 24px;
}
.guest-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 36px;
    padding: 0 20px 36px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.guest-footer-brand .guest-brand {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}
.guest-footer-brand .guest-brand .brand-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #34c759;
    box-shadow: 0 0 0 4px rgba(52, 199, 89, 0.2);
}
.guest-footer-brand .guest-brand span span { color: #0071e3; }
.guest-footer-brand p {
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
    max-width: 320px;
}
.guest-footer-col h4 {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffffff;
    margin: 0 0 14px;
}
.guest-footer-col a {
    display: block;
    padding: 4px 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    transition: color 0.18s;
}
.guest-footer-col a:hover { color: #ffffff; text-decoration: none; }
.guest-footer-trust {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.72);
}
.guest-footer-trust i { color: #34c759; }

.guest-footer-base {
    padding: 18px 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}
.guest-footer-base p { margin: 0; }
.guest-footer-base .text-muted { color: rgba(255, 255, 255, 0.5); }

@media (max-width: 800px) {
    .guest-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .guest-footer-grid { grid-template-columns: 1fr; gap: 24px; }
}
