/* ═══════════════════════════════════════════════════
   SnowLedger Marketing Pages
   Uses design tokens from app.css (:root variables)
   ═══════════════════════════════════════════════════ */

/* ── Reset for marketing pages ────────────────── */

.marketing-body {
    background: #fff;
    overflow-x: hidden;
}

.mkt-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Navigation ───────────────────────────────── */

.mkt-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0);
    backdrop-filter: blur(0);
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.mkt-nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom-color: var(--border);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
}

.mkt-nav__inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mkt-nav__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
}

.mkt-nav__logo:hover { color: var(--text); }

.text-brand { color: var(--primary); }

.mkt-nav__links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.mkt-nav__link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.15s;
}

.mkt-nav__link:hover { color: var(--text); }

.mkt-nav__toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    padding: 4px;
}

/* ── Buttons ──────────────────────────────────── */

.mkt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    white-space: nowrap;
}

.mkt-btn--primary {
    background: var(--gradient-brand);
    color: #fff;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.25);
}

.mkt-btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.35);
    color: #fff;
}

.mkt-btn--white {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mkt-btn--white:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    color: var(--primary-hover);
}

.mkt-btn--outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.mkt-btn--outline:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.mkt-btn--lg {
    padding: 14px 32px;
    font-size: 16px;
}

.mkt-btn--sm {
    padding: 8px 20px;
    font-size: 14px;
}

.mkt-btn--md {
    padding: 12px 28px;
    font-size: 15px;
}

/* ── Hero Section ─────────────────────────────── */

.mkt-hero {
    padding: 140px 24px 80px;
    text-align: center;
    background: linear-gradient(180deg, #F0F9FF 0%, #FFFFFF 100%);
    position: relative;
    overflow: hidden;
}

.mkt-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 140%;
    height: 100%;
    background: radial-gradient(ellipse at 30% 50%, rgba(14, 165, 233, 0.06) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 30%, rgba(6, 182, 212, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.mkt-hero__content {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
}

.mkt-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 24px;
}

.mkt-hero h1 {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.mkt-hero h1 .gradient-text {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mkt-hero p {
    font-size: 19px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 36px;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}

.mkt-hero__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
}

.mkt-hero__link {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.mkt-hero__link:hover { gap: 8px; }

.mkt-hero__trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    font-size: 13px;
    color: var(--text-dim);
}

.mkt-hero__trust span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.mkt-hero__trust svg {
    width: 16px;
    height: 16px;
    color: var(--success);
    flex-shrink: 0;
}

/* ── Dashboard Preview ────────────────────────── */

.mkt-hero__preview {
    margin-top: 60px;
    position: relative;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

.mkt-hero__preview-img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12), 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border);
}

/* ── Built For Snowflake Bar ──────────────────── */

.mkt-snowflake-bar {
    padding: 40px 24px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.mkt-snowflake-bar p {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.mkt-snowflake-bar__logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    opacity: 0.4;
}

/* ── Features Section ─────────────────────────── */

.mkt-features {
    padding: 96px 24px;
}

.mkt-section-header {
    text-align: center;
    margin-bottom: 56px;
}

.mkt-section-header h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.mkt-section-header p {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
}

.mkt-features__grid {
    max-width: 1140px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.mkt-feature-card {
    padding: 32px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface);
    transition: all 0.2s ease;
}

.mkt-feature-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.08);
    transform: translateY(-2px);
}

.mkt-feature-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    background: var(--primary-light);
    color: var(--primary);
}

.mkt-feature-card__icon svg {
    width: 24px;
    height: 24px;
}

.mkt-feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.mkt-feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ── How It Works ─────────────────────────────── */

.mkt-how {
    padding: 96px 24px;
    background: var(--bg);
}

.mkt-how__steps {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    position: relative;
}

.mkt-how__steps::before {
    content: '';
    position: absolute;
    top: 32px;
    left: 15%;
    right: 15%;
    height: 2px;
    background: var(--border);
}

.mkt-step {
    text-align: center;
    position: relative;
}

.mkt-step__number {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gradient-brand);
    color: #fff;
    font-size: 24px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.25);
}

.mkt-step h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.mkt-step p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ── Pricing Section ──────────────────────────── */

.mkt-pricing {
    padding: 96px 24px;
}

.mkt-pricing__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
}

.mkt-pricing__toggle span {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dim);
    cursor: pointer;
    transition: color 0.15s;
}

.mkt-pricing__toggle span.active {
    color: var(--text);
    font-weight: 600;
}

.mkt-toggle {
    width: 48px;
    height: 26px;
    background: var(--border-strong);
    border-radius: 13px;
    cursor: pointer;
    position: relative;
    border: none;
    transition: background 0.2s;
    padding: 0;
}

.mkt-toggle.active {
    background: var(--primary);
}

.mkt-toggle::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.mkt-toggle.active::after {
    transform: translateX(22px);
}

.mkt-save-badge {
    background: rgba(5, 150, 105, 0.1);
    color: var(--success);
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
}

.mkt-pricing__grid {
    max-width: 1060px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

.mkt-price-card {
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    padding: 36px 32px;
    position: relative;
    transition: all 0.2s ease;
}

.mkt-price-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.07);
}

.mkt-price-card--featured {
    border-color: var(--primary);
    border-width: 2px;
    box-shadow: 0 8px 30px rgba(14, 165, 233, 0.12);
    transform: scale(1.02);
}

.mkt-price-card--featured:hover {
    box-shadow: 0 12px 40px rgba(14, 165, 233, 0.18);
}

.mkt-price-card__popular {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-brand);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mkt-price-card__name {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.mkt-price-card__desc {
    font-size: 14px;
    color: var(--text-dim);
    margin-bottom: 24px;
}

.mkt-price-card__price {
    margin-bottom: 24px;
}

.mkt-price-card__amount {
    font-size: 48px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
}

.mkt-price-card__period {
    font-size: 15px;
    color: var(--text-dim);
    font-weight: 400;
}

.mkt-price-card__original {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 8px;
}

.mkt-price-card__features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
}

.mkt-price-card__features li {
    font-size: 14px;
    color: var(--text-secondary);
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.mkt-price-card__features li:last-child {
    border-bottom: none;
}

.mkt-price-card__features .check {
    color: var(--success);
    flex-shrink: 0;
    margin-top: 2px;
}

.mkt-price-card__features .dash {
    color: var(--text-muted);
    flex-shrink: 0;
    margin-top: 2px;
}

.mkt-price-card .mkt-btn {
    width: 100%;
}

/* ── FAQ Section ──────────────────────────────── */

.mkt-faq {
    padding: 96px 24px;
    background: var(--bg);
}

.mkt-faq__list {
    max-width: 720px;
    margin: 0 auto;
}

.mkt-faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
}

.mkt-faq-item__q {
    width: 100%;
    padding: 20px 24px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    text-align: left;
    font-family: inherit;
    transition: color 0.15s;
}

.mkt-faq-item__q:hover { color: var(--primary); }

.mkt-faq-item__q svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: transform 0.2s;
    color: var(--text-dim);
}

.mkt-faq-item.open .mkt-faq-item__q svg {
    transform: rotate(180deg);
    color: var(--primary);
}

.mkt-faq-item__a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mkt-faq-item.open .mkt-faq-item__a {
    max-height: 200px;
}

.mkt-faq-item__a p {
    padding: 0 24px 20px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ── CTA Banner ───────────────────────────────── */

.mkt-cta {
    padding: 80px 24px;
    background: var(--gradient-brand);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.mkt-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.mkt-cta__content {
    position: relative;
}

.mkt-cta h2 {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
}

.mkt-cta p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Footer ───────────────────────────────────── */

.mkt-footer {
    padding: 64px 24px 32px;
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
}

.mkt-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}

.mkt-footer__brand p {
    font-size: 14px;
    color: rgba(203, 213, 225, 0.7);
    line-height: 1.6;
    margin-top: 12px;
    max-width: 280px;
}

.mkt-footer__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.mkt-footer__col h4 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 16px;
}

.mkt-footer__col a {
    display: block;
    font-size: 14px;
    color: var(--sidebar-text);
    text-decoration: none;
    padding: 4px 0;
    transition: color 0.15s;
}

.mkt-footer__col a:hover { color: #fff; }

.mkt-footer__bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mkt-footer__bottom p {
    font-size: 13px;
    color: rgba(203, 213, 225, 0.5);
}

/* ── Scroll Animations ────────────────────────── */
/* Content is always visible. The `.fade-up` class is kept in the HTML for
   future re-enablement of scroll-triggered animations, but currently is a
   no-op so content renders reliably regardless of JS/browser timing. */

.fade-up {
    opacity: 1;
    transform: none;
}

/* ── Responsive ───────────────────────────────── */

@media (max-width: 1024px) {
    .mkt-features__grid { grid-template-columns: repeat(2, 1fr); }
    .mkt-pricing__grid { grid-template-columns: repeat(2, 1fr); }
    .mkt-price-card--featured { grid-column: 1 / -1; max-width: 400px; margin: 0 auto; }
    .mkt-footer__grid { grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
    .mkt-nav__links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 16px 24px;
        gap: 12px;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    }

    .mkt-nav__links.open { display: flex; }
    .mkt-nav__toggle { display: block; }

    .mkt-hero { padding: 120px 24px 60px; }
    .mkt-hero h1 { font-size: 36px; }
    .mkt-hero p { font-size: 16px; }

    .mkt-hero__actions {
        flex-direction: column;
        gap: 12px;
    }

    .mkt-hero__trust {
        flex-direction: column;
        gap: 12px;
    }

    .mkt-section-header h2 { font-size: 28px; }

    .mkt-features__grid { grid-template-columns: 1fr; }

    .mkt-how__steps {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .mkt-how__steps::before { display: none; }

    .mkt-pricing__grid {
        grid-template-columns: 1fr;
        max-width: 420px;
    }

    .mkt-price-card--featured {
        transform: none;
        max-width: none;
    }

    .mkt-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .mkt-footer__brand { grid-column: 1 / -1; }

    .mkt-cta h2 { font-size: 28px; }
}

@media (max-width: 480px) {
    .mkt-hero h1 { font-size: 30px; }
    .mkt-price-card { padding: 28px 24px; }
    .mkt-price-card__amount { font-size: 40px; }
}
