/* Enhanced comparison styles */
.comparison-section {
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
    padding: 6rem 0;
    margin-top: 2rem;
    border-radius: 1rem;
    position: relative;
    overflow: hidden;
}

/* Decorative shapes */
.decorative-shape {
    position: absolute;
    border-radius: 50%;
    z-index: 1;
}

.shape-top-left {
    width: 400px;
    height: 400px;
    top: -200px;
    left: -200px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(79, 70, 229, 0.05) 100%);
    animation: float 20s infinite alternate ease-in-out;
}

.shape-bottom-right {
    width: 300px;
    height: 300px;
    bottom: -150px;
    right: -150px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.07) 0%, rgba(79, 70, 229, 0.03) 100%);
    animation: float 15s infinite alternate-reverse ease-in-out;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    50% {
        transform: translate(20px, -15px) rotate(5deg);
    }
    100% {
        transform: translate(-20px, 15px) rotate(-5deg);
    }
}

/* Add subtle background patterns */
.comparison-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.05) 0%, transparent 25%),
        radial-gradient(circle at 80% 70%, rgba(79, 70, 229, 0.05) 0%, transparent 25%);
    z-index: 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.2);
    text-transform: uppercase;
}

.section-title {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    background: linear-gradient(90deg, #4f46e5 0%, #6366f1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.25rem;
    color: #6b7280;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.comparison-cards-container {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.comparison-card {
    background-color: #ffffff;
    border-radius: 1.5rem;
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.08), 0 5px 15px -5px rgba(0, 0, 0, 0.05);
    margin-bottom: 2.5rem;
    margin-top: 1rem;
    overflow: visible; /* Changed from hidden to visible */
    transition: all 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
    border: 1px solid rgba(229, 231, 235, 0.5);
    position: relative;
}

.compare-label {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    background: linear-gradient(90deg, #4f46e5, #6366f1);
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.5rem 2rem;
    border-radius: 20px;
    z-index: 20;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.02em;
    white-space: nowrap;
    width: auto;
    text-align: center;
    display: inline-block;
    overflow: visible;
}

.comparison-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 40px -15px rgba(79, 70, 229, 0.2);
    border-color: rgba(99, 102, 241, 0.2);
}

.comparison-content {
    display: flex;
    position: relative;
    padding-top: 2rem;
    margin-top: 1.5rem;
    transition: transform 0.5s ease-out;
}

.vs-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    color: #ffffff;
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 8px 16px -4px rgba(79, 70, 229, 0.4);
    font-size: 1rem;
    letter-spacing: -0.03em;
    border: 2px solid rgba(255, 255, 255, 0.8);
    animation: pulse-badge 3s infinite;
}

@keyframes pulse-badge {
    0% {
        box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(79, 70, 229, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(79, 70, 229, 0);
    }
}

.comparison-side {
    flex: 1;
    padding: 2.5rem;
    position: relative;
    transition: all 0.5s ease;
    will-change: transform, opacity;
}

/* Add subtle hover effect to sides */
.comparison-card:hover .comparison-side.before {
    background-color: #f1f5f9;
}

.comparison-card:hover .comparison-side.after {
    background-color: rgba(79, 70, 229, 0.15);
}

.comparison-side.before {
    background-color: #f3f4f6;
    border-right: 1px solid #e5e7eb;
}

.comparison-side.after {
    background-color: rgba(79, 70, 229, 0.08);
}

.comparison-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    line-height: 1.3;
}

.before .comparison-title {
    color: #4b5563;
}

.after .comparison-title {
    color: #4338ca;
}

.comparison-title i {
    margin-right: 0.9rem;
    font-size: 1.75rem;
    width: 1.75rem;
    text-align: center;
}

.comparison-text {
    font-size: 1.05rem;
    line-height: 1.6;
    padding-left: 2.65rem;
    margin-bottom: 1.25rem;
}

.before .comparison-text {
    color: #6b7280;
}

.after .comparison-text {
    color: #4b5563;
}

.comparison-detail {
    display: flex;
    align-items: center;
    padding-left: 2.65rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.before .comparison-detail {
    color: #6b7280;
}

.after .comparison-detail {
    color: #4b5563;
}

.detail-icon {
    margin-right: 0.5rem;
    font-size: 1rem;
    display: inline-flex;
}

/* Pricing Tiers Summary */
.pricing-tiers-summary {
    background: linear-gradient(135deg, #f9fafb 0%, #eef2ff 100%);
    border-radius: 1.5rem;
    padding: 3rem 2rem;
    margin-top: 4rem;
    box-shadow: 0 15px 30px -15px rgba(0, 0, 0, 0.1);
    position: relative;
    border: 1px solid rgba(229, 231, 235, 0.8);
    overflow: hidden;
}

.pricing-tiers-summary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 30% 20%, rgba(79, 70, 229, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(99, 102, 241, 0.03) 0%, transparent 50%);
    z-index: 1;
}

.tiers-title {
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 2;
    color: #1f2937;
}

.tiers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    position: relative;
    z-index: 2;
}

.tier-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.08);
    position: relative;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.tier-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -5px rgba(79, 70, 229, 0.15);
}

.tier-standard {
    box-shadow: 0 10px 25px -5px rgba(79, 70, 229, 0.2);
    border-color: rgba(79, 70, 229, 0.2);
    position: relative;
    z-index: 3;
    transform: scale(1.05);
}

.tier-standard:hover {
    transform: translateY(-5px) scale(1.05);
}

.popular-badge {
    position: absolute;
    top: -12px;
    right: 10px;
    background: linear-gradient(90deg, #4f46e5, #6366f1);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.tier-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.tier-header h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1f2937;
}

.tier-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 0.25rem;
}

.price {
    font-size: 2rem;
    font-weight: 800;
    color: #4f46e5;
}

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

.tier-annual-saving {
    font-size: 0.85rem;
    color: #10b981;
    font-weight: 500;
}

.tier-feature {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: #4b5563;
}

.check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    background: rgba(79, 70, 229, 0.1);
    border-radius: 50%;
    margin-right: 0.75rem;
    color: #4f46e5;
    font-size: 0.7rem;
    flex-shrink: 0;
}

/* Comparison CTA */
.comparison-cta {
    text-align: center;
    margin-top: 3.5rem;
    position: relative;
    z-index: 2;
}

/* Add-Ons Section Styling */
.addons-section {
    margin-top: 5rem;
    position: relative;
    z-index: 2;
}

.addons-title {
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.75rem;
    color: #1f2937;
}

.addons-subtitle {
    text-align: center;
    color: #6b7280;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.addons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    position: relative;
}

.addon-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    display: flex;
    transition: all 0.3s ease;
}

.addon-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -5px rgba(79, 70, 229, 0.15);
    border-color: rgba(99, 102, 241, 0.2);
}

.addon-icon {
    font-size: 2rem;
    color: #4f46e5;
    background: rgba(79, 70, 229, 0.1);
    width: 4rem;
    height: 4rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.addon-content {
    flex-grow: 1;
}

.addon-content h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #1f2937;
}

.addon-content p {
    color: #4b5563;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

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

.addon-features li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #4b5563;
    display: flex;
    align-items: center;
    line-height: 1.5;
}

.addon-features li:before {
    content: "•";
    color: #4f46e5;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-right: 0.25rem;
}

.addon-plan {
    font-weight: 600;
    color: #4f46e5;
    margin-right: 0.5rem;
}

.addon-note {
    font-size: 0.85rem;
    color: #6b7280;
    font-style: italic;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(90deg, #4f46e5, #6366f1);
    color: white;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 20px -3px rgba(79, 70, 229, 0.4);
}

.pulse-animation {
    animation: pulse-button 2s infinite;
}

@keyframes pulse-button {
    0% {
        box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.5);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(79, 70, 229, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(79, 70, 229, 0);
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2.25rem;
    }
    
    .comparison-content {
        flex-direction: column;
    }
    
    .compare-label {
        padding: 0.5rem 1.5rem;
        font-size: 0.8rem;
        width: auto;
        max-width: 90%;
    }
    
    .vs-badge {
        top: 0;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    
    .comparison-side.before {
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .tiers-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .tier-standard {
        transform: scale(1);
    }
    
    .tier-standard:hover {
        transform: translateY(-5px);
    }
    
    .comparison-detail {
        padding-left: 0.5rem;
    }
    
    .comparison-text {
        padding-left: 0.5rem;
    }
    
    .addon-card {
        flex-direction: column;
    }
    
    .addon-icon {
        margin-right: 0;
        margin-bottom: 1.5rem;
    }
    
    .addons-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Fix for chatbox visibility while scrolling */
.chat-widget {
    position: fixed !important;
    z-index: 1000;
    bottom: 2rem;
    right: 2rem;
}

/* Remove top reach button */
.back-to-top {
    display: none !important;
}



/* Pricing Page Styles */
        .comparison-tab {
            transition: all 0.3s ease;
        }
        
        .comparison-tab:hover:not(.active) {
            background-color: rgba(79, 70, 229, 0.1);
            color: #4f46e5;
        }
        
        .comparison-tab.active {
            background-color: #4f46e5;
            color: white;
        }
        
        .comparison-table {
            transition: opacity 0.3s ease;
        }
        
        .feature-row {
            transition: background-color 0.2s ease;
        }
        
        /* Animation for table switching */
        .comparison-table:not(.hidden) {
            animation: fadeIn 0.5s ease forwards;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }

/* Pricing Toggle Styles */
    .pulse-animation {
        animation: pulse 2s infinite;
    }
    @keyframes pulse {
        0% {
            box-shadow: 0 0 0 0 rgba(88, 80, 236, 0.4);
        }
        70% {
            box-shadow: 0 0 0 10px rgba(88, 80, 236, 0);
        }
        100% {
            box-shadow: 0 0 0 0 rgba(88, 80, 236, 0);
        }
    }
    
    .pricing-toggle.active {
        background-color: var(--primary-color);
        color: white;
        font-weight: 500;
    }