/**
 * Pricing Page CSS
 * Firecrawl-inspired clean design
 */

/* ============================================================================
   PAGE LAYOUT
   ============================================================================ */

body.pricing-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #ffffff;
    min-height: 100vh;
}

.pricing-content {
    padding-top: 100px; /* Account for fixed navbar */
    padding-bottom: 80px;
}

/* ============================================================================
   PAGE HEADER
   ============================================================================ */

.page-header {
    text-align: center;
    margin-bottom: 4rem;
    padding-top: 2rem;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    color: #0a0a0a;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.page-subtitle {
    font-size: 1.125rem;
    color: #6b7280;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    white-space: nowrap;
}

/* ============================================================================
   BILLING TOGGLE
   ============================================================================ */

.billing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.toggle-label {
    font-size: 1rem;
    font-weight: 500;
    color: #6c757d;
    transition: all 0.3s ease;
    cursor: pointer;
}

.toggle-label.active {
    color: #6B5BFF;
    font-weight: 600;
}

.save-badge {
    display: inline-block;
    background: linear-gradient(135deg, #6B5BFF 0%, #5a4ad9 100%);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e9ecef;
    transition: 0.3s;
    border-radius: 28px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.toggle-switch input:checked + .toggle-slider {
    background: linear-gradient(135deg, #6B5BFF 0%, #5a4ad9 100%);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

/* ============================================================================
   PRICING CARDS
   ============================================================================ */

.pricing-tiers {
    margin-bottom: 4rem;
}

.pricing-card {
    height: 100%;
    border: 1px solid #f3f4f6;
    border-radius: 16px;
    transition: all 0.3s ease;
    background: #ffffff;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
}

.pricing-card:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border-color: #d1d5db;
    transform: translateY(-4px);
}

/* Popular Badge */
.pricing-card-popular {
    position: relative;
    border-color: #6B5BFF;
    border-width: 2px;
    box-shadow: 0 4px 20px rgba(107, 91, 255, 0.15);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #6B5BFF 0%, #5a4ad9 100%);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(107, 91, 255, 0.3);
    white-space: nowrap;
}

.popular-badge i {
    margin-right: 0.25rem;
}

/* Card Header */
.pricing-card-header {
    margin-bottom: 1.5rem;
}

.tier-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0a0a0a;
    margin-bottom: 0.5rem;
}

.tier-description {
    color: #6b7280;
    font-size: 0.9375rem;
    line-height: 1.5;
    margin-bottom: 0;
}

/* Card Pricing */
.pricing-card-price {
    margin: 1.5rem 0;
    min-height: 4rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.price-amount {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    color: #0a0a0a;
}

.price-period {
    font-size: 1rem;
    color: #6b7280;
    font-weight: 400;
    margin-left: 0.25rem;
}

/* Credits Display */
.pricing-card-credits {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, rgba(107, 91, 255, 0.05) 0%, rgba(0, 215, 200, 0.05) 100%);
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.pricing-card-credits i {
    color: #6B5BFF;
    font-size: 1.25rem;
}

.credits-amount {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0a0a0a;
    white-space: nowrap;
}

.credits-label {
    font-size: 0.875rem;
    color: #6b7280;
    white-space: nowrap;
}

/* Card Features */
.pricing-card-features {
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    padding: 0.625rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9375rem;
    color: #495057;
}

.features-list li i {
    color: #10b981;
    font-size: 1.1rem;
    flex-shrink: 0;
}

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

.pricing-card-cta .btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 10px;
    transition: all 0.2s ease;
}

/* Primary Button Color Override */
.pricing-card-cta .btn-primary {
    background: linear-gradient(135deg, #6B5BFF 0%, #5a4ad9 100%);
    border: none;
    color: white;
}

.pricing-card-cta .btn-primary:hover {
    background: linear-gradient(135deg, #5a4ad9 0%, #4a3ac9 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(107, 91, 255, 0.3);
}

.pricing-card-cta .btn-outline-primary {
    border: 2px solid #6B5BFF;
    color: #6B5BFF;
    background: transparent;
}

.pricing-card-cta .btn-outline-primary:hover {
    background: #6B5BFF;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(107, 91, 255, 0.3);
}

/* ============================================================================
   ENTERPRISE SECTION (Firecrawl-style)
   ============================================================================ */

.enterprise-section {
    margin-top: 4rem;
    margin-bottom: 4rem;
}

.enterprise-card {
    border: 2px solid #f3f4f6;
    border-radius: 20px;
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    padding: 3rem;
    transition: all 0.3s ease;
}

.enterprise-card:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border-color: #d1d5db;
}

.enterprise-title {
    font-size: 2rem;
    font-weight: 700;
    color: #0a0a0a;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.enterprise-title i {
    color: #6B5BFF;
}

.enterprise-subtitle {
    font-size: 1rem;
    color: #6b7280;
    margin-bottom: 2rem;
}

.enterprise-features {
    margin-bottom: 0;
}

.enterprise-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.enterprise-feature i {
    color: #10b981;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.enterprise-feature span {
    font-size: 0.9375rem;
    color: #495057;
}

.btn-enterprise {
    background: linear-gradient(135deg, #6B5BFF 0%, #5a4ad9 100%);
    border: none;
    color: white;
    padding: 0.875rem 2rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(107, 91, 255, 0.3);
}

.btn-enterprise:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 91, 255, 0.4);
    color: white;
}

.enterprise-note {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 1rem;
    margin-bottom: 0;
}

/* ============================================================================
   FAQ SECTION
   ============================================================================ */

.pricing-faq {
    margin-top: 5rem;
    padding-top: 3rem;
    border-top: 1px solid #f3f4f6;
}

.faq-title {
    font-size: 2rem;
    font-weight: 700;
    color: #0a0a0a;
    text-align: center;
    margin-bottom: 3rem;
}

.faq-item {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 12px;
    height: 100%;
}

.faq-question {
    font-size: 1.125rem;
    font-weight: 600;
    color: #0a0a0a;
    margin-bottom: 0.75rem;
}

.faq-answer {
    font-size: 0.9375rem;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */

@media (max-width: 992px) {
    .page-title {
        font-size: 2.25rem;
    }
    
    .enterprise-card {
        padding: 2rem;
    }
    
    .enterprise-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 1.875rem;
    }
    
    .price-amount {
        font-size: 2.5rem;
    }
    
    .pricing-card {
        padding: 1.5rem;
    }
    
    .enterprise-card {
        padding: 1.5rem;
    }
    
    .enterprise-features .row {
        gap: 0.5rem;
    }
    
    .faq-item {
        padding: 1.25rem;
    }
}
