/* =================================================================
   06-pricing.css - Pricing page specific styles
   ================================================================= */

/* Lovable-style Pricing Page */
body {
    background: #fcfbf8;
}

/* Navigation adjustments for pricing page */
.header__in {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.main-navigation {
    display: flex;
    align-items: center;
    width: 100%;
}

/* Keep logo on the left */
.site-logo {
    margin-right: auto;
    margin-inline-end: auto !important;
}

/* Group pricing and CTA together on the right */
.main-menu-wrap {
    display: flex;
    align-items: center;
    margin-right: 2rem;
    margin-left: auto;
    justify-content: flex-end;
    flex: none;
}

.main-menu {
    justify-content: flex-end;
}

.header__options {
    margin-left: 0;
}

.pricing-wrapper {
    padding: 160px 0 80px;
    min-height: calc(100vh - 200px);
}

.pricing-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header Section */
.pricing-header {
    text-align: center;
    margin-bottom: 48px;
}

.pricing-title {
    font-size: 48px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 16px;
    color: #1a1a1a;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.pricing-subtitle {
    font-size: 20px;
    color: #666;
    line-height: 1.5;
}

/* Toggle Section */
.toggle-section {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 48px;
    position: relative;
    width: 100%;
}

/* Inner wrapper for centering just the toggle controls */
.toggle-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.toggle-label {
    font-size: 16px;
    color: #666;
    font-weight: 500;
    min-width: 70px;
    text-align: center;
}

.toggle-label:first-of-type {
    text-align: right;
}

.toggle-label.active {
    color: #1a1a1a;
}

.toggle-container {
    position: relative;
    display: inline-block;
    margin: 0;
}

.toggle-switch {
    position: relative;
    width: 56px;
    height: 32px;
    background: #e0e0e0;
    border-radius: 100px;
    cursor: pointer;
    transition: background-color 0.3s;
    border: none;
    padding: 0;
    outline: none;
}

/* Focus styles for accessibility */
.toggle-switch:focus-visible {
    outline: 2px solid #0284c7;
    outline-offset: 2px;
}

/* Screen reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.toggle-switch.active {
    background: #000;
}

.toggle-knob {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.toggle-switch.active .toggle-knob {
    transform: translateX(24px);
}

.savings-tag {
    background: #f0f9ff;
    color: #0284c7;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s;
    position: absolute;
    left: 100%;
    margin-left: 12px;
    white-space: nowrap;
}

.toggle-section.show-annual .savings-tag {
    opacity: 1;
}

/* Pricing Cards Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(280px, 1fr));
    gap: 32px;
    margin-bottom: 64px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
}

.pricing-card {
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    padding: 32px 24px;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
    margin: 0 auto;
}

.pricing-card:first-child,
.pricing-card:last-child {
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}

.pricing-card.popular {
    border-width: 2px;
    border-image: linear-gradient(to right, 
        #00ffff 0%,       /* Pure cyan */
        #00ff7f 20%,      /* Pure green-cyan */
        #7fff00 35%,      /* Pure green */
        #ffff00 50%,      /* Pure yellow */
        #ff7f00 65%,      /* Pure orange */
        #ff007f 80%,      /* Pure pink */
        #ff0040 100%      /* Pure deep pink */
    ) 1;
}

/* Enterprise card should match Pro card styling - no gradient background */
.pricing-card.enterprise {
    background: white;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.plan-name {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.plan-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 24px;
    min-height: 40px;
}

.price-display {
    margin-bottom: 32px;
}

.price-amount {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.price-currency {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
}

.price-number {
    font-size: 48px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1;
}

.price-period {
    font-size: 16px;
    color: #666;
    font-weight: 400;
    margin-left: 8px;
}

.price-detail {
    font-size: 14px;
    color: #666;
    margin-top: 4px;
}

.annual-price {
    display: none;
}

.monthly-price {
    display: block;
}

.pricing-card.show-annual .monthly-price {
    display: none;
}

.pricing-card.show-annual .annual-price {
    display: block;
}

.cta-button {
    width: 100%;
    padding: 12px 24px;
    background: #000;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    text-align: center;
    text-decoration: none;
    display: block;
    margin-bottom: 24px;
}

.cta-button:hover {
    background: #333;
}

.cta-button.secondary {
    background: white;
    color: #000;
    border: 1px solid #e5e5e5;
}

.cta-button.secondary:hover {
    background: #f5f5f5;
}

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

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
    font-size: 14px;
    color: #1a1a1a;
    line-height: 1.5;
}

.feature-icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 2px;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-text {
    flex: 1;
}

.feature-soon {
    background: #f3f4f6;
    color: #666;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    margin-left: 8px;
}

/* FAQ Section - Lovable.dev Style */
.faq-section {
    padding: 40px 0 80px;
    background: #fcfbf8;
}

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

.faq-header {
    text-align: center;
    margin-bottom: 48px;
}

.faq-title {
    font-size: 36px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.faq-subtitle {
    font-size: 18px;
    color: #666;
    line-height: 1.5;
}

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

/* FAQ Item - Minimal style like Lovable.dev */
.faq-item {
    background: transparent;
    border: none;
    border-bottom: 1px solid #e5e7eb;
    border-radius: 0;
    overflow: hidden;
    transition: all 0.2s ease;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item.active {
    box-shadow: none;
}

.faq-question {
    font-size: 18px;
    font-weight: 500;
    color: #1a1a1a;
    padding: 24px 48px 24px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    line-height: 1.4;
    margin: 0;
    position: relative;
    background: transparent;
    transition: color 0.2s ease;
}

.faq-question:hover {
    color: #333;
}

/* Simple chevron indicator - perfectly symmetrical */
.faq-question::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    width: 14px;
    height: 8px;
    transform: translateY(-50%);
    transition: transform 0.2s ease;
    /* SVG chevron pointing down */
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="14" height="8" viewBox="0 0 14 8"><path d="M1 1 L7 7 L13 1" stroke="%23666" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.faq-item.active .faq-question::after {
    transform: translateY(-50%) rotate(180deg);
}

.faq-answer {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    padding: 0;
    padding-right: 48px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 48px 24px 0;
    max-height: 2000px;
}

.faq-answer a {
    color: #0284c7;
    text-decoration: none;
}

.faq-answer a:hover {
    text-decoration: underline;
}

/* Responsive */
/* Widescreen displays */
@media (min-width: 1600px) {
    .pricing-grid {
        gap: 40px;
        max-width: 1100px;
    }
}

/* Ensure 3 columns stay on desktop */
@media (min-width: 1280px) {
    .pricing-container {
        padding: 0 48px;
    }
}

@media (max-width: 1279px) {
    .pricing-grid {
        max-width: 900px;
        gap: 24px;
    }
    
    .pricing-card {
        padding: 28px 20px;
    }
}

@media (max-width: 1100px) {
    .pricing-grid {
        max-width: 800px;
        gap: 20px;
    }
    
    .price-number {
        font-size: 42px;
    }
}

@media (max-width: 991px) {
    .pricing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 700px;
        gap: 20px;
    }
    
    .pricing-card {
        padding: 32px 24px;
    }
    
    .price-number {
        font-size: 48px;
    }
}

@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto 64px;
    }
    
    .pricing-title {
        font-size: 36px;
    }
    
    .toggle-section {
        padding: 0 16px;
    }
    
    .toggle-controls {
        gap: 8px;
    }
    
    .toggle-label {
        font-size: 14px;
        min-width: 60px;
    }
    
    .savings-tag {
        font-size: 12px;
        padding: 2px 8px;
        position: absolute;
        left: 100%;
        margin-left: 8px;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}