/* =========================================
   PRICING SECTION
   ========================================= */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 60px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 40px;
    position: relative;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent);
}

.pricing-card.popular {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid var(--accent);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.popular-tag {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--bg);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.pricing-header {
    text-align: center;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 32px;
}

.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--text);
}

.price {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--accent);
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.price span {
    font-size: 1rem;
    color: var(--text-dim);
    font-weight: 500;
}

.pricing-features {
    margin-bottom: 40px;
    flex: 1;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.pricing-features li i {
    color: var(--accent);
    width: 18px;
    height: 18px;
}

.pricing-btn {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid var(--border-light);
    background: transparent;
    color: var(--text);
}

.pricing-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
}

.pricing-btn.primary {
    background: var(--accent);
    color: var(--bg);
    border: none;
}

.pricing-btn.primary:hover {
    background: #fff;
    transform: scale(1.02);
}

/* =========================================
   COMPARISON SECTION
   ========================================= */
.comparison-section {
    position: relative;
    padding: 100px 0;
}

.comparison-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.comparison-wrapper {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-light);
    background: #000;
    user-select: none;
}

.comparison-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.comparison-image.before {
    z-index: 2;
    width: 50%;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.comparison-image.after {
    z-index: 1;
}

.placeholder-img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.after-placeholder {
    width: 100%;
    background-image: url('https://images.unsplash.com/photo-1536440136628-849c177e76a1?ixlib=rb-1.2.1&auto=format&fit=crop&w=1200&q=80&sat=-100');
}

.before-placeholder {
    /* Using 100vw and max-width ensures the image stays full-container width even when parent is clipped */
    width: 100vw;
    max-width: 960px; /* 1000px container - 40px padding roughly */
    background-image: url('https://images.unsplash.com/photo-1536440136628-849c177e76a1?ixlib=rb-1.2.1&auto=format&fit=crop&w=1200&q=80');
}

.comparison-label {
    position: absolute;
    top: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    pointer-events: none;
    z-index: 10;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.1);
}

.comparison-image.before .comparison-label {
    left: 20px;
}

.comparison-image.after .comparison-label {
    right: 20px;
    z-index: 1; /* Ensure it's below the before image when sliding over */
}

/* Ensure the after label stays visible? 
   Actually, the 'after' label is inside .comparison-image.after.
   So when .before covers .after, the label is covered too. 
   This is correct behavior for a slider.
*/

.comparison-slider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: #fff;
    z-index: 20;
    cursor: col-resize;
    transform: translateX(-50%);
}

.slider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2), 0 4px 12px rgba(0,0,0,0.3);
    color: #000;
}

.slider-handle i {
    width: 20px;
    height: 20px;
}

@media (max-width: 768px) {
    .comparison-wrapper {
        height: 300px;
    }
    
    .before-placeholder {
        max-width: 100vw; /* On mobile, full width */
    }
}
