/* Pricing Page Specific Styles */

/* Pricing Hero */
.pricing-hero {
    padding: 120px 0 40px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    text-align: center;
}

.pricing-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.pricing-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Billing Toggle */
.billing-toggle {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    box-shadow: var(--shadow-md);
}

.toggle-label {
    font-weight: 500;
    color: var(--text-secondary);
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

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

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border);
    transition: 0.4s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background: var(--primary);
}

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

.save-badge {
    background: var(--secondary);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

/* Pricing Plans */
.pricing-plans {
    padding: 40px 0 80px;
    background: white;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.plan-card {
    background: white;
    border: 2px solid var(--border);
    border-radius: 1rem;
    padding: 2rem;
    position: relative;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    min-height: 750px;
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.plan-card.featured {
    border-color: var(--primary);
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

.plan-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
}

.plan-header {
    text-align: center;
    padding: 1.5rem 0 2rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2rem;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.plan-name {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.plan-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 0.5rem;
    min-height: 60px;
    align-items: center;
}

.currency {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-right: 0.25rem;
}

.amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
}

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

.period {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-left: 0.5rem;
}

.price-note {
    font-size: 0.875rem;
    color: var(--text-light);
    min-height: 24px;
}

/* Plan features styling */
.plan-features ul li.spacing {
    height: 1.5rem;
    visibility: hidden;
}

.plan-features ul li strong {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Calculator select styling */
.calc-select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: white;
    font-size: 1rem;
    color: var(--text-primary);
}

/* Plan Features */
.plan-features {
    margin-bottom: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Plan CTA Button */
.plan-cta {
    margin-top: auto;
    padding-top: 1rem;
}

.plan-features ul {
    list-style: none;
}

.plan-features li {
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
}

.plan-features li i {
    width: 20px;
    text-align: center;
}

.plan-features li i.fa-check {
    color: var(--secondary);
}

.plan-features li.disabled {
    opacity: 0.5;
}

.plan-features li.disabled i {
    color: var(--text-light);
}

/* Plan CTA */
.btn-block {
    width: 100%;
    justify-content: center;
}

/* Usage Calculator */
.usage-calculator {
    padding: 80px 0;
    background: var(--bg-light);
}

.calculator-card {
    background: white;
    border-radius: 1rem;
    padding: 3rem;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.calculator-card h2 {
    margin-bottom: 0.5rem;
}

.calculator-card > p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.calculator-inputs {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

.calc-input {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 1rem;
}

.calc-input label {
    text-align: left;
    font-weight: 500;
}

.calc-input input[type="range"] {
    width: 100%;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
}

.calc-input input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
}

.calc-input input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.calc-value {
    min-width: 80px;
    text-align: right;
    font-weight: 600;
    color: var(--primary);
}

.calculator-result {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.result-box {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 0.75rem;
}

.result-box h3 {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
}

.result-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.result-stat {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.result-stat .stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.result-stat .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.plan-recommend {
    color: var(--primary);
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background: white;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.faq-item {
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 0.75rem;
    transition: all 0.3s;
}

.faq-item:hover {
    background: white;
    box-shadow: var(--shadow-md);
}

.faq-question {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.faq-question i {
    color: var(--primary);
    font-size: 1rem;
}

.faq-answer {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Responsive Pricing */
@media (max-width: 968px) {
    .plans-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
    
    .plan-card.featured {
        transform: none;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .result-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 640px) {
    .pricing-title {
        font-size: 2rem;
    }
    
    .billing-toggle {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 0.75rem;
        padding: 0.75rem 1rem;
        width: auto;
        max-width: 100%;
    }
    
    .toggle-switch {
        flex-shrink: 0;
        width: 50px;
        height: 26px;
    }
    
    .toggle-slider:before {
        height: 18px;
        width: 18px;
        left: 4px;
        bottom: 4px;
    }
    
    input:checked + .toggle-slider:before {
        transform: translateX(24px);
    }
    
    .billing-toggle .toggle-label {
        font-size: 0.9rem;
        white-space: nowrap;
    }
    
    .save-badge {
        display: inline-block;
        margin-left: 0.25rem;
        font-size: 0.65rem;
        padding: 0.15rem 0.35rem;
    }
    
    .calc-input {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .calc-input label {
        text-align: center;
    }
    
    .calc-value {
        text-align: center;
    }
}

/* Enterprise Plan Styling */
.enterprise-plan .custom-pricing {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    margin: 15px 0;
}

.enterprise-plan .plan-features li {
    position: relative;
}

.enterprise-plan .plan-features .fa-infinity {
    color: var(--primary-color);
    font-weight: bold;
}

.enterprise-plan .plan-header {
    position: relative;
}

.enterprise-plan .plan-header::after {
    content: 'TAILORED';
    position: absolute;
    top: -10px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Apple-inspired Results Section */
.calculator-result {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 2.5rem 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.result-box h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 2rem 0;
    text-align: center;
    letter-spacing: -0.02em;
}

.usage-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.metric {
    background: white;
    padding: 1.5rem 1rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.02);
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.metric:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.metric-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.metric-value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.1;
}

.plan-recommendation {
    background: linear-gradient(135deg, var(--primary-color) 0%, #3b82f6 100%);
    color: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 2.5rem;
    box-shadow: 0 8px 32px rgba(74, 144, 226, 0.25);
    position: relative;
    overflow: hidden;
}

.plan-recommendation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    pointer-events: none;
}

.plan-recommendation h4 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 0.75rem 0;
    position: relative;
    z-index: 1;
}

.recommendation-reason {
    font-size: 1rem;
    margin: 0;
    opacity: 0.95;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

.cost-breakdown h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    text-align: center;
}

.cost-comparison {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.plan-cost {
    background: white;
    padding: 1.5rem 1rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    text-align: center;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.plan-cost:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}

.plan-cost.recommended {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(74, 144, 226, 0.15);
}

.plan-cost.recommended::before {
    content: 'RECOMMENDED';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary-color) 0%, #3b82f6 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.plan-cost .plan-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.plan-cost .plan-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.plan-cost .overage-cost {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.roi-insight {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    border-left: 4px solid var(--secondary-color);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.roi-insight h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    color: var(--text-primary);
}

.roi-insight p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1rem;
}

/* Apple-inspired Calculator Design */
.calculator-card {
    background: white;
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.calculator-card h2 {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    margin: 0;
    padding: 2rem 2rem 1rem;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

.calculator-card p {
    margin: 0;
    padding: 0 2rem 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.5;
}

.calculator-inputs {
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem 3rem;
    background: white;
}

.calculator-inputs .select-row {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
}

.calc-input {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.calc-input label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    margin: 0;
}

.input-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.calc-number-input {
    width: 100px;
    height: 44px;
    padding: 0 1rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    background: white;
    color: var(--text-primary);
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.calc-number-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.1), 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.calc-range {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, #e2e8f0 0%, #cbd5e1 100%);
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.calc-range:hover {
    background: linear-gradient(90deg, #cbd5e1 0%, #94a3b8 100%);
}

.calc-range::-webkit-slider-thumb {
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, #3b82f6 100%);
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 12px rgba(74, 144, 226, 0.3), 0 1px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.calc-range::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 20px rgba(74, 144, 226, 0.4), 0 2px 8px rgba(0, 0, 0, 0.15);
}

.calc-range::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, #3b82f6 100%);
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 12px rgba(74, 144, 226, 0.3);
}

.input-suffix {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
    min-width: 35px;
    opacity: 0.8;
}

.calc-select {
    width: 100%;
    height: 44px;
    padding: 0 1rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    background: white;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.calc-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.1), 0 2px 8px rgba(0, 0, 0, 0.1);
}

.calc-select:hover {
    border-color: #cbd5e1;
}

/* Mobile responsiveness for Apple-inspired calculator */
@media (max-width: 768px) {
    .calculator-card {
        border-radius: 16px;
        margin: 1rem;
    }
    
    .calculator-card h2 {
        font-size: 1.5rem;
        padding: 1.5rem 1.5rem 0.75rem;
    }
    
    .calculator-card p {
        padding: 0 1.5rem 1.5rem;
        font-size: 1rem;
    }
    
    .calculator-inputs {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1.5rem;
    }
    
    .calculator-inputs .select-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .input-group {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .calc-number-input {
        width: 100%;
        font-size: 1.2rem;
        height: 48px;
    }
    
    .input-suffix {
        text-align: center;
        font-size: 1rem;
    }
    
    .calculator-result {
        padding: 2rem 1.5rem;
    }
    
    .usage-metrics {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .metric {
        padding: 1.25rem 1rem;
    }
    
    .metric-value {
        font-size: 1.75rem;
    }
    
    .plan-recommendation {
        padding: 1.5rem;
        border-radius: 16px;
    }
    
    .plan-recommendation h4 {
        font-size: 1.25rem;
    }
    
    .cost-comparison {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .plan-cost {
        padding: 1.25rem 1rem;
    }
    
    .roi-insight {
        padding: 1.5rem;
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    .billing-toggle {
        transform: scale(0.9);
        transform-origin: center;
    }
    
    .calculator-card {
        margin: 0.5rem;
        border-radius: 12px;
    }
    
    .calculator-inputs {
        padding: 1rem;
        gap: 1.5rem;
    }
    
    .calculator-result {
        padding: 1.5rem 1rem;
    }
    
    .metric-value {
        font-size: 1.5rem;
    }
    
    .plan-recommendation h4 {
        font-size: 1.1rem;
    }
    
    .recommendation-reason {
        font-size: 0.9rem;
    }
}