/* =============================================
   RunParticle — Pricing Page Styles
   ============================================= */

/* --- Hero --- */

.pricing-hero {
    position: relative;
    padding: 120px 0 80px;
    text-align: center;
    overflow: hidden;
}

.pricing-hero-glow {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 500px;
    background: radial-gradient(
        ellipse at center,
        rgba(0, 255, 136, 0.06) 0%,
        rgba(0, 255, 136, 0.02) 35%,
        transparent 65%
    );
    pointer-events: none;
}

.pricing-hero-inner {
    position: relative;
    z-index: 1;
}

.pricing-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.pricing-subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--text-secondary);
    font-weight: 300;
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
}

/* --- Pricing Tiers --- */

.pricing-tiers {
    padding: 0 0 120px;
}

.pricing-table {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.tier-card {
    position: relative;
    padding: 32px 24px 28px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-align: center;
    transition: border-color 0.25s, transform 0.25s;
}

.tier-card:hover {
    border-color: rgba(0, 255, 136, 0.15);
    transform: translateY(-3px);
}

.tier-card.popular {
    border-color: rgba(0, 255, 136, 0.3);
    background: linear-gradient(
        to bottom,
        rgba(0, 255, 136, 0.04),
        var(--bg-surface)
    );
}

.tier-name {
    font-family: var(--font-mono);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.tier-price {
    margin-bottom: 24px;
}

.tier-amount {
    font-family: var(--font-mono);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
}

.tier-unit {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.tier-specs {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 20px;
    border-top: 1px solid var(--border);
}

.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 0.75rem;
}

.spec-label {
    color: var(--text-muted);
}

.spec-value {
    color: var(--text-secondary);
    font-weight: 700;
}

.tier-monthly {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--text-muted);
}

/* --- How Billing Works --- */

.billing-section {
    padding: 120px 0;
    border-top: 1px solid var(--border);
}

.billing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.billing-card {
    padding: 32px 28px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: border-color 0.25s, transform 0.25s;
}

.billing-card:hover {
    border-color: rgba(0, 255, 136, 0.18);
    transform: translateY(-3px);
}

.billing-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent);
    background: var(--accent-subtle);
    margin-bottom: 20px;
}

.billing-card h3 {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.billing-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    font-weight: 300;
}

.billing-card p code {
    font-size: 0.82em;
}

/* --- FAQ --- */

.faq-section {
    padding: 120px 0;
    border-top: 1px solid var(--border);
}

.faq-list {
    max-width: 720px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-item:first-child {
    border-top: 1px solid var(--border);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 24px 0;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    list-style: none;
    transition: color 0.2s;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::marker {
    content: '';
}

.faq-question:hover {
    color: var(--accent);
}

.faq-chevron {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    position: relative;
    margin-left: 16px;
}

.faq-chevron::before,
.faq-chevron::after {
    content: '';
    position: absolute;
    background: var(--text-muted);
    border-radius: 1px;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-chevron::before {
    width: 12px;
    height: 2px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.faq-chevron::after {
    width: 2px;
    height: 12px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.faq-item[open] .faq-chevron::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.faq-answer {
    padding: 0 0 24px;
}

.faq-answer p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-weight: 300;
}

.faq-answer p code {
    font-size: 0.82em;
}

/* --- CTA override for pricing page --- */

.pricing-hero + .pricing-tiers + .billing-section + .faq-section + .cta-section {
    border-top: 1px solid var(--border);
}

/* --- Responsive --- */

@media (max-width: 1024px) {
    .pricing-table {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .pricing-hero {
        padding: 80px 0 60px;
    }

    .pricing-tiers {
        padding: 0 0 80px;
    }

    .pricing-table {
        grid-template-columns: repeat(2, 1fr);
    }

    .billing-section,
    .faq-section {
        padding: 80px 0;
    }

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

@media (max-width: 480px) {
    .pricing-hero {
        padding: 64px 0 48px;
    }

    .pricing-tiers {
        padding: 0 0 64px;
    }

    .pricing-table {
        grid-template-columns: 1fr;
        max-width: 300px;
        margin: 0 auto;
    }

    .billing-section,
    .faq-section {
        padding: 64px 0;
    }

    .faq-question {
        font-size: 0.82rem;
    }
}
