/* ==========================================
   📋 Pricing Page - minimal white layout
   ========================================== */

.pricing-page {
    padding-top: calc(var(--header-height, 64px) + 0.75rem);
    background: #fff;
    padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
}

.pricing-page .about-section {
    padding: 1.5rem 0 2rem;
    background: #fff;
}

.pricing-page .about-container {
    max-width: 1280px;
}

/* Hero */
.pricing-hero {
    text-align: center;
    padding: 1.75rem 1.25rem 0.65rem;
    max-width: 720px;
    margin: 0 auto;
}

.pricing-hero h1 {
    font-size: clamp(1.65rem, 3.8vw, 2.25rem);
    font-weight: 650;
    color: var(--text-color);
    margin: 0 0 0.5rem;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.pricing-hero p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.pricing-hero-promises {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem 0.55rem;
    max-width: 720px;
    margin: 0.85rem auto 0;
    padding: 0 1.25rem;
    list-style: none;
}

.pricing-hero-promises li {
    font-size: 0.75rem;
    font-weight: 500;
    color: #475569;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 0.3rem 0.7rem;
}

.pricing-value-anchor {
    max-width: 640px;
    margin: 1.75rem auto 0;
    padding: 0.75rem 1rem;
    text-align: center;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.pricing-value-anchor strong {
    color: #0f172a;
}

/* Social proof */
.pricing-social {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem 0.65rem;
    max-width: 640px;
    margin: 1.5rem auto 0;
    padding: 0.65rem 1rem;
    text-align: center;
    font-size: 0.875rem;
    color: #475569;
    line-height: 1.4;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.pricing-social__stars {
    color: #64748b;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.pricing-social__score {
    font-weight: 650;
    color: #0f172a;
}

.pricing-social__quote {
    font-style: italic;
    color: #64748b;
    width: 100%;
    margin: 0.15rem 0 0;
}

.pricing-section-label {
    text-align: center;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
    margin: 0 0 0.85rem;
}

/* Plan grid — four columns on desktop */
.pricing-grid {
    display: grid;
    gap: 0.75rem;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
}

.pricing-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem 0.85rem 1rem;
    text-align: center;
    position: relative;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    border-color: #cbd5e1;
}

.pricing-card.recommended {
    border: 2px solid #6366f1;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.1);
}

/* Unified badge — minimal neutral */
.pricing-card__badge {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 0.28rem 0;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    border-radius: 11px 11px 0 0;
}

.pricing-card__badge--highlight {
    color: #4338ca;
    background: #fafaff;
    border-bottom-color: rgba(99, 102, 241, 0.2);
}

.plan-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0.85rem 0 0.25rem;
}

.plan-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 0.65rem;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

/* Metrics block — credits, sheets, $/sheet */
.plan-metrics {
    margin: 0 0 0.65rem;
    padding: 0.55rem 0;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.plan-metric {
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}

.plan-metric-sub {
    margin: 0.2rem 0 0;
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.35;
}

.plan-metric-sub--muted {
    color: #94a3b8;
}

.plan-savings {
    margin: 0 0 0.55rem;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #4338ca;
    letter-spacing: 0.02em;
    min-height: 1rem;
}

.plan-savings--spacer {
    visibility: hidden;
}

/* Feature list with check / dash icons */
.plan-features {
    list-style: none;
    margin: 0 0 0.85rem;
    padding: 0;
    text-align: left;
    flex: 1;
}

.plan-features__item {
    position: relative;
    padding: 0.22rem 0 0.22rem 1.05rem;
    font-size: 0.75rem;
    color: #334155;
    line-height: 1.4;
}

.plan-features__item::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #64748b;
    font-weight: 600;
    font-size: 0.7rem;
}

.plan-features__item--no {
    color: #94a3b8;
}

.plan-features__item--no::before {
    content: "–";
    color: #cbd5e1;
}

.plan-includes-lead {
    margin: 0 0 0.45rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
    text-align: left;
}

.plan-features--season .plan-features__item {
    font-size: 0.72rem;
    padding: 0.18rem 0 0.18rem 1.05rem;
}

.plan-features--season .plan-features__item::before {
    color: #6366f1;
}

.plan-button {
    width: 100%;
    margin-top: auto;
    padding: 0.7rem 0.75rem;
    border: none;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    background: #0f172a;
    color: #fff;
    text-decoration: none;
    display: inline-block;
    box-sizing: border-box;
}

.plan-button:hover {
    background: #1e293b;
    transform: translateY(-1px);
}

.plan-button.primary {
    background: #6366f1;
}

.plan-button.primary:hover {
    background: #4f46e5;
}

.plan-button--outline {
    background: #fff;
    color: #0f172a;
    border: 1px solid #cbd5e1;
}

.plan-button--outline:hover {
    background: #f8fafc;
    border-color: #94a3b8;
}

.plan-button--secondary {
    background: #fff;
    color: #0f172a;
    border: 1px solid #cbd5e1;
}

.plan-button--secondary:hover {
    background: #f8fafc;
    border-color: #94a3b8;
}

.plan-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.plan-credits-note {
    margin: 0.45rem 0 0;
    font-size: 0.6875rem;
    color: #94a3b8;
    line-height: 1.3;
}

.pricing-topup {
    text-align: center;
    max-width: 640px;
    margin: 1rem auto 0;
    padding: 0 20px;
    font-size: 0.875rem;
    color: #64748b;
}

.pricing-topup button {
    border: none;
    background: none;
    padding: 0;
    font: inherit;
    color: #6366f1;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.pricing-topup button:hover {
    color: #4338ca;
}

/* Compare table */
.pricing-compare-wrap {
    max-width: 1280px;
    margin: 2rem auto 0;
    padding: 0 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.pricing-compare-wrap h2 {
    text-align: center;
    font-size: 1.15rem;
    font-weight: 650;
    color: var(--text-color);
    margin: 0 0 0.85rem;
}

.pricing-compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.pricing-compare-table th,
.pricing-compare-table td {
    padding: 0.55rem 0.65rem;
    text-align: center;
    border-bottom: 1px solid #f1f5f9;
}

.pricing-compare-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #334155;
}

.pricing-compare-table th:first-child,
.pricing-compare-table td:first-child {
    text-align: left;
    font-weight: 500;
    color: #64748b;
}

.pricing-compare-table tr:last-child td {
    border-bottom: none;
}

.pricing-compare-table .col-highlight {
    background: #fafaff;
    font-weight: 600;
    color: #4338ca;
}

.pricing-compare-footnote {
    margin: 0.5rem 0 0;
    font-size: 0.75rem;
    color: #94a3b8;
    text-align: center;
}

/* Reviews */
.pricing-reviews {
    display: grid;
    gap: 0.75rem;
    max-width: 1040px;
    margin: 1.75rem auto 0;
    padding: 0 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pricing-review {
    margin: 0;
    padding: 1rem 1.1rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    text-align: left;
}

.pricing-review__tag {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 0.4rem;
}

.pricing-review p {
    margin: 0;
    font-size: 0.875rem;
    color: #334155;
    line-height: 1.5;
    font-style: italic;
}

.pricing-review footer {
    margin-top: 0.65rem;
    font-size: 0.8125rem;
    font-style: normal;
    color: #64748b;
    font-weight: 500;
}

/* Proof */
.pricing-proof {
    max-width: 880px;
    margin: 1.5rem auto 0;
    padding: 0 16px;
    text-align: center;
}

.pricing-proof__label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #475569;
    margin: 0 0 0.65rem;
}

.pricing-proof img {
    width: 100%;
    max-width: 720px;
    height: auto;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.pricing-proof__steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1rem;
    margin: 0.75rem 0 0;
    padding: 0;
    list-style: none;
    font-size: 0.8125rem;
    color: #64748b;
}

.pricing-proof__steps li strong {
    color: #334155;
}

/* Sticky mobile CTA */
.pricing-sticky-cta {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9000;
    padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(8px);
}

.pricing-sticky-cta.is-visible {
    display: block;
}

.pricing-sticky-cta .plan-button {
    max-width: 480px;
    margin: 0 auto;
}

/* FAQ section */
.pricing-page .about-section-alt {
    padding: 2rem 0;
    background: #f8fafc;
    border-top: 1px solid var(--border-color);
}

.pricing-page .section-header {
    margin-bottom: 1.1rem;
    text-align: center;
}

.pricing-page .section-header h2 {
    color: var(--text-color);
    font-size: 1.35rem;
    font-weight: 650;
    margin-bottom: 0.4rem;
}

.pricing-page .section-divider {
    height: 2px;
    width: 48px;
    background: #e2e8f0;
    margin: 0 auto 1rem;
    border-radius: 1px;
}

.pricing-page .privacy-content {
    max-width: 720px;
    margin: 0 auto;
    color: var(--text-secondary);
    line-height: 1.65;
    font-size: 0.95rem;
}

.pricing-page .privacy-content .faq-item {
    padding-bottom: 0.9rem;
    margin-bottom: 0.9rem;
    border-bottom: 1px solid var(--border-light);
}

.pricing-page .privacy-content .faq-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.pricing-page .privacy-content h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 0.25rem;
}

.pricing-page .privacy-content p {
    margin: 0;
    font-size: 0.875rem;
}

.login-checkout-hint {
    margin: 0 0 0.85rem;
    padding: 0.55rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.4;
    color: #4338ca;
    background: #fafaff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-align: center;
}

@media (max-width: 1279px) {
    .pricing-grid,
    .pricing-grid--four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 680px;
    }
}

@media (max-width: 767px) {
    .pricing-grid,
    .pricing-grid--four {
        grid-template-columns: 1fr;
        max-width: 380px;
    }

    .pricing-card.recommended {
        order: -4;
    }

    .pricing-card.free-tier {
        order: -3;
    }

    .pricing-card.starter-tier {
        order: -2;
    }

    .pricing-card.season-tier {
        order: -1;
    }

    .pricing-reviews {
        grid-template-columns: 1fr;
        max-width: 480px;
    }

    .pricing-sticky-cta.is-visible {
        display: block;
    }

    .pricing-page {
        padding-top: calc(var(--mobile-header-height, 56px) + 0.85rem);
    }

    .pricing-page .about-section,
    .pricing-page .about-section-alt {
        padding: 1.15rem 0;
    }

    .pricing-hero {
        padding: 1.15rem 1rem 0.65rem;
    }
}

@media (min-width: 768px) {
    .pricing-sticky-cta {
        display: none !important;
    }
}
