/* ==========================================================================
   Pricing Page Styles
   ========================================================================== */

/* Section Container */
.pricing-section {
    padding: 6rem 0;
    background: var(--bg-secondary);
    min-height: 100vh;
}

.pricing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Hero */
.pricing-hero {
    text-align: center;
    margin-bottom: 4rem;
    padding-top: 2rem;
}

.pricing-hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.pricing-hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Free Tier Banner */
.pricing-free-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 1rem 2rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-default);
    border-radius: 12px;
    margin-bottom: 2rem;
}

.pricing-free-banner p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0;
}

.pricing-free-cta {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
    background: transparent;
    color: var(--accent-primary);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    border: 1.5px solid var(--accent-primary);
    border-radius: 9999px;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.pricing-free-cta:hover {
    background: var(--accent-primary);
    color: white;
}

/* Grid - 3 columns for center-stage effect */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: stretch;
}

/* Card Base */
.pricing-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}


/* Popular Card */
.pricing-card--popular {
    border: 2px solid var(--accent-primary);
    box-shadow: var(--shadow-lg);
}

.pricing-card--popular:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 20px 40px -12px rgba(79, 70, 229, 0.25);
}

/* Badge */
.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-primary);
    color: white;
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

/* Card Header */
.pricing-card-header {
    text-align: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 1.5rem;
}

.pricing-tier-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.pricing-tier-tagline {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Price Display */
.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
}

.pricing-currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.pricing-amount {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    letter-spacing: -0.03em;
}

.pricing-period {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.pricing-custom {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Features List */
.pricing-features {
    flex: 1;
    margin-bottom: 2rem;
}

.pricing-features-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.pricing-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.pricing-features li svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--accent-primary);
    margin-top: 2px;
}

/* CTA Buttons */
.pricing-cta {
    margin-top: auto;
}

.pricing-btn {
    display: block;
    width: 100%;
    padding: 0.875rem 1.5rem;
    border-radius: 9999px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.15s ease;
    cursor: pointer;
}

.pricing-btn--primary {
    background: var(--accent-primary);
    color: white;
    border: none;
}

.pricing-btn--primary:hover {
    background: var(--accent-primary-hover);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.pricing-btn--secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1.5px solid var(--border-strong);
}

.pricing-btn--secondary:hover {
    background: var(--bg-tertiary);
    border-color: var(--text-muted);
}

.pricing-btn--ghost {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: none;
}

.pricing-btn--ghost:hover {
    background: var(--border-default);
}

/* Comparison note */
.pricing-note {
    text-align: center;
    margin-top: 3rem;
    padding: 1.5rem;
    background: var(--bg-tertiary);
    border-radius: 12px;
}

.pricing-note p {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.pricing-note a {
    color: var(--accent-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.pricing-note a:hover {
    color: var(--accent-primary-hover);
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

/* Tablet: 3 columns still fit, slight adjustments */
@media (max-width: 1024px) {
    .pricing-grid {
        gap: 1.25rem;
    }

    .pricing-free-banner {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Mobile: 1 column */
@media (max-width: 768px) {
    .pricing-section {
        padding: 4rem 0;
    }

    .pricing-hero {
        margin-bottom: 2rem;
        padding-top: 2.5rem;
    }

    .pricing-hero h1 {
        font-size: 2rem;
    }

    .pricing-hero p {
        font-size: 1rem;
    }

    .pricing-free-banner {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem 1.5rem;
        margin-bottom: 1.5rem;
    }

    .pricing-free-banner p {
        font-size: 0.9375rem;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 400px;
        margin: 0 auto;
    }

    /* On mobile, show Pro first for visibility */
    .pricing-card--popular {
        order: -1;
    }

    .pricing-card {
        padding: 1.5rem;
    }

    .pricing-amount {
        font-size: 2.75rem;
    }
}

/* FAQ Section on Pricing Page */
.pricing-faq {
    padding: 4rem 0;
    background: var(--bg-primary);
}

.pricing-faq-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.pricing-faq h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2.5rem;
}
