/* =====================================================
   Pricing Page Styles — V2 Design System
   ===================================================== */

/* Pricing Hero */
.pricing-hero {
    background: var(--bg);
    color: var(--heading);
    padding: 140px 24px 60px; /* top padding for fixed nav */
    text-align: center;
}

.pricing-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.pricing-hero h1 {
    font-family: 'Instrument Serif', Georgia, serif;
    font-weight: 400;
    font-size: 48px;
    margin: 0 0 16px 0;
    color: var(--heading);
}

.pricing-subtitle {
    font-size: 20px;
    margin: 0 0 32px 0;
    color: var(--muted);
    opacity: 0.95;
}

/* Billing Toggle */
.billing-toggle {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    background: var(--glass);
    padding: 10px 20px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

.billing-option {
    font-size: 16px;
    font-weight: 600;
    color: var(--muted);
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.billing-option.active {
    opacity: 1;
    color: var(--heading);
}

.toggle-switch {
    position: relative;
    width: 52px;
    height: 28px;
    background: rgba(0, 180, 255, 0.25);
    border-radius: 14px;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.toggle-switch:hover {
    background: rgba(0, 180, 255, 0.4);
}

.toggle-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.toggle-switch.active .toggle-slider {
    transform: translateX(24px);
}

.toggle-switch.active {
    background: #00b4ff;
}

.savings-badge {
    display: inline-block;
    background: rgba(0, 180, 255, 0.2);
    color: #00b4ff;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    margin-left: 6px;
}

/* Pricing Section */
.pricing-section {
    padding: 64px 24px;
    background: var(--bg);
}

.pricing-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

/* Pricing Card — Glass Morphism */
.pricing-card {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    padding: 0;
    overflow: hidden;
}

[data-theme="light"] .pricing-card {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="light"] .pricing-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.12);
}

/* Popular Card — Aurora Glow */
.pricing-card.popular {
    border: 2px solid rgba(0, 180, 255, 0.3);
    background: linear-gradient(170deg, rgba(0, 180, 255, 0.08) 0%, rgba(0, 180, 255, 0.02) 40%, rgba(255, 255, 255, 0.06) 100%);
    transform: scale(1.06);
    box-shadow: 0 0 40px rgba(0, 180, 255, 0.15), 0 0 80px rgba(0, 180, 255, 0.05), inset 0 1px 0 rgba(0, 180, 255, 0.15);
}

.pricing-card.popular:hover {
    transform: scale(1.06) translateY(-4px);
    box-shadow: 0 0 50px rgba(0, 180, 255, 0.22), 0 0 100px rgba(0, 180, 255, 0.08), inset 0 1px 0 rgba(0, 180, 255, 0.2);
}

[data-theme="light"] .pricing-card.popular {
    background: linear-gradient(170deg, rgba(0, 180, 255, 0.12) 0%, rgba(0, 180, 255, 0.04) 40%, rgba(255, 255, 255, 0.8) 100%);
    border: 2px solid rgba(0, 180, 255, 0.4);
    box-shadow: 0 0 40px rgba(0, 180, 255, 0.1), 0 0 80px rgba(0, 180, 255, 0.04);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #00b4ff;
    color: white;
    padding: 4px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    white-space: nowrap;
    box-shadow: 0 0 16px rgba(0, 180, 255, 0.4);
}

/* Pricing Card Header */
.pricing-card-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid var(--glass-border);
}

.tier-name {
    font-family: 'Instrument Serif', Georgia, serif;
    font-weight: 400;
    font-size: 20px;
    color: var(--heading);
    margin: 0 0 10px 0;
}

.tier-price {
    margin: 10px 0;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
}

.price-currency {
    font-size: 18px;
    color: var(--muted);
    font-weight: 600;
}

.price-amount {
    font-size: 42px;
    color: var(--heading);
    font-weight: 700;
    line-height: 1;
}

.price-period {
    font-size: 14px;
    color: var(--muted);
}

.tier-description {
    font-size: 12px;
    color: var(--muted);
    margin: 6px 0 0 0;
}

/* Pricing Card Body */
.pricing-card-body {
    padding: 20px;
    flex: 1;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 13px;
    line-height: 1.4;
    color: var(--text);
}

.check-icon {
    width: 16px;
    height: 16px;
    color: #00b4ff;
    flex-shrink: 0;
    margin-top: 1px;
}

.star-icon {
    width: 16px;
    height: 16px;
    color: #fbbf24;
    flex-shrink: 0;
    margin-top: 1px;
}

.founding-text {
    color: #8b5cf6;
}

/* Pricing Card Footer */
.pricing-card-footer {
    padding: 0 20px 20px 20px;
}

.btn-pricing {
    width: 100%;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #00b4ff, #0090cc);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(0, 180, 255, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #33c0ff, #00b4ff);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 180, 255, 0.4);
}

.btn-outline {
    background: transparent;
    color: #00b4ff;
    border-color: #00b4ff;
}

.btn-outline:hover {
    background: rgba(0, 180, 255, 0.1);
    color: #00b4ff;
}

/* Popular card CTA button */
.pricing-card.popular .btn-pricing {
    background: #00b4ff;
    color: #fff;
    border: none;
    box-shadow: 0 0 20px rgba(0, 180, 255, 0.3);
}

/* Non-popular card CTA button */
.pricing-card:not(.popular) .btn-pricing {
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted);
    border: 1px solid var(--glass-border);
}

/* Focus-visible states */
.pricing-card.popular .btn-pricing:focus-visible {
    outline: 2px solid #00b4ff;
    outline-offset: 2px;
}

.pricing-card:not(.popular) .btn-pricing:focus-visible {
    outline: 2px solid rgba(0, 180, 255, 0.5);
    outline-offset: 2px;
}

/* FAQ Section — Glass Cards */
.faq-section {
    padding: 64px 24px;
    background: var(--bg);
}

.faq-container {
    max-width: 1000px;
    margin: 0 auto;
}

.faq-section h2 {
    font-family: 'Instrument Serif', Georgia, serif;
    font-weight: 400;
    font-size: 36px;
    color: var(--heading);
    margin: 0 0 48px 0;
    text-align: center;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 24px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: border-color 0.3s ease;
}

.faq-item:hover {
    border-color: var(--glass-border-hover);
}

.faq-item h3 {
    font-family: 'Instrument Serif', Georgia, serif;
    font-weight: 400;
    font-size: 18px;
    color: var(--heading);
    margin: 0 0 10px 0;
}

.faq-item p {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
}

/* Footer CTA */
.pricing-cta {
    background: linear-gradient(135deg, #00b4ff, #0090cc);
    padding: 64px 24px;
    text-align: center;
    color: white;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.pricing-cta h2 {
    font-family: 'Instrument Serif', Georgia, serif;
    font-weight: 400;
    font-size: 36px;
    margin: 0 0 16px 0;
    color: white;
}

.pricing-cta p {
    font-size: 18px;
    margin: 0 0 32px 0;
    opacity: 0.95;
    color: rgba(255, 255, 255, 0.9);
}

.btn-cta {
    display: inline-block;
    background: white;
    color: #0090cc;
    padding: 16px 40px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .pricing-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .pricing-hero h1 {
        font-size: 36px;
    }

    .pricing-subtitle {
        font-size: 18px;
    }

    .pricing-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .pricing-card {
        max-width: 400px;
        margin: 0 auto;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

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

    .pricing-cta p {
        font-size: 16px;
    }

    .pricing-card.popular {
        transform: scale(1);
    }

    .pricing-card.popular:hover {
        transform: translateY(-4px);
    }
}

@media (max-width: 480px) {
    .pricing-hero {
        padding: 120px 16px 40px;
    }

    .pricing-hero h1 {
        font-size: 28px;
    }

    .pricing-subtitle {
        font-size: 16px;
    }

    .billing-toggle {
        flex-direction: column;
        gap: 10px;
    }

    .price-amount {
        font-size: 36px;
    }

    .pricing-card-header,
    .pricing-card-body,
    .pricing-card-footer {
        padding: 12px;
    }

    .pricing-card-footer {
        padding-top: 0;
    }
}
