/* ========================================
   PRICING SECTION STYLES
======================================== */

/* Pricing Switch Container */
.pricing-switch-container {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.pricing-switch {
    position: relative;
    background: #e5e7eb;
    border-radius: 50px;
    padding: 6px;
    display: inline-flex;
    align-items: center;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.pricing-switch-option {
    position: relative;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: color 0.3s ease;
    border-radius: 44px;
    z-index: 2;
    white-space: nowrap;
    text-align: center;
    user-select: none;
    width: 120px;
}

.pricing-switch-option.active {
    color: #1f2937;
}

.pricing-switch-slider {
    position: absolute;
    top: 6px;
    left: 6px;
    height: calc(100% - 12px);
    width: 120px;
    background: white;
    border-radius: 44px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), 0 1px 3px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.pricing-switch-slider.monthly-active {
    transform: translateX(120px);
}

/* Price Display */
.price-display-container {
    margin-top: 5rem;
    display: flex;
    justify-content: center;
}

.price-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    position: relative;
}

.price-amount {
    font-size: 4rem;
    font-weight: bold;
    color: #1a1a1a;
    line-height: 1;
}

.price-badge {
    background: blue;
    color: white;
    font-weight: 400;
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
    transition: all 0.3s ease;
    opacity: 1;
    transform: scale(1);
    position: absolute;
    left: calc(100% + 0.5rem);
    white-space: nowrap;
    margin-top: -5rem;
}

.price-badge.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pricing-switch-option {
        padding: 10px 20px;
        font-size: 0.9rem;
        width: 100px;
    }

    .pricing-switch-slider {
        width: 100px;
    }

    .pricing-switch-slider.monthly-active {
        transform: translateX(100px);
    }

    .price-amount {
        font-size: 3rem;
    }

    .price-display {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .price-display-container {
        margin-top: 3rem;
    }
}

@media (max-width: 480px) {
    .pricing-switch-option {
        padding: 8px 16px;
        font-size: 0.8rem;
        width: 80px;
    }

    .pricing-switch-slider {
        width: 80px;
    }

    .pricing-switch-slider.monthly-active {
        transform: translateX(80px);
    }

    .price-amount {
        font-size: 2.5rem;
    }

    .price-badge {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}

.faq-container {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    padding: 2rem 1.5rem;
}

.faq-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 400;
    color: #1a1a1a;
    margin-bottom: 2rem;
    letter-spacing: -0.01em;
    line-height: 1;
}

.faq-list {
    display: flex;
    flex-direction: column;
}

.faq-item {
    border-bottom: 1px solid #e5e7eb;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.5rem 0;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    font-weight: 400;
    color: #1a1a1a;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Outfit', sans-serif;
    line-height: 1.4;
}

.faq-question:hover {
    color: #0862ff;
}

.faq-question:focus {
    outline: none;
    color: #0862ff;
}

.faq-icon {
    font-size: 1.2rem;
    color: #6b7280;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: #0862ff;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
}

.faq-answer.active {
    max-height: 300px;
    opacity: 1;
    transform: translateY(0);
    padding: 0 0 1.5rem 0;
    animation: bounce-in 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.faq-answer p {
    font-size: clamp(0.9rem, 2vw, 1rem);
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
    padding-right: 2.5rem;
    font-weight: 400;
    animation: fade-in-up 0.5s ease-out 0.1s both;
}

/* Bounce animation */
@keyframes bounce-in {
    0% {
        transform: translateY(-10px) scaleY(0.8);
        opacity: 0;
    }
    60% {
        transform: translateY(0) scaleY(1.02);
        opacity: 1;
    }
    100% {
        transform: translateY(0) scaleY(1);
        opacity: 1;
    }
}

/* Fade in animation for text */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover effects */
.faq-item {
    transition: background-color 0.3s ease;
}

.faq-item:hover {
    background-color: rgba(8, 98, 255, 0.02);
}

.faq-question:active {
    transform: scale(0.98);
}

/* Mobile optimizations */
@media (max-width: 768px) {

    .faq-container {
        padding: 1.5rem 1rem;
        border-radius: 12px;
        max-width: 95%;
    }

    .faq-title {
        margin-bottom: 1.5rem;
        text-align: left;
    }

    .faq-question {
        padding: 1.25rem 0;
        align-items: flex-start;
        gap: 1rem;
    }

    .faq-icon {
        margin-left: 0;
        margin-top: 0.2rem;
        font-size: 1.1rem;
    }

    .faq-answer p {
        padding-right: 0;
    }

    .faq-answer.active {
        padding: 0 0 1.25rem 0;
        max-height: 400px;
    }
}

@media (max-width: 480px) {
    .faq-container {
        padding: 1.25rem 0.75rem;
    }

    .faq-question {
        padding: 1rem 0;
        font-size: 1rem;
    }

    .faq-icon {
        font-size: 1rem;
    }

    .faq-answer p {
        font-size: 0.9rem;
    }
}

/* Focus states for accessibility */
.faq-question:focus-visible {
    outline: 2px solid blue;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Smooth performance optimizations */
.faq-answer {
    will-change: max-height, opacity, transform;
}

.faq-icon {
    will-change: transform;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .faq-answer,
    .faq-icon,
    .faq-question {
        transition-duration: 0.1s;
    }

    .faq-answer.active {
        animation: none;
    }

    .faq-answer p {
        animation: none;
    }
}