/* =========================================
   PRICING PAGE STYLES
   ========================================= */

:root {
    --price-bg: #f8fafc;
    --price-text: #0f172a;
    --price-muted: #64748b;
    --price-primary: #4f46e5; /* Indigo */
    --price-secondary: #8b5cf6; /* Violet */
    --price-card: #ffffff;
    --price-border: #e2e8f0;
    --price-radius: 24px;
}

.pricing-page-wrapper {
    font-family: 'Inter', sans-serif;
    color: var(--price-text);
    background: var(--price-bg);
    overflow: hidden;
}

.pricing-container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.pricing-container.narrow { max-width: 800px; }
.section-head.centered { text-align: center; margin-bottom: 3rem; }

/* --- 1. HERO & TOGGLE --- */
.pricing-hero {
    padding: 8rem 0 4rem;
    position: relative;
    background: radial-gradient(circle at top center, #f3f4f6 0%, #f8fafc 70%);
}

.badge-pill {
    display: inline-block; padding: 6px 16px; background: #e0e7ff; color: var(--price-primary);
    border-radius: 50px; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; margin-bottom: 1rem;
}

.pricing-hero h1 {
    font-family: 'Outfit', sans-serif; font-size: 3.5rem; font-weight: 800;
    line-height: 1.1; margin-bottom: 1rem;
}

.text-gradient {
    background: linear-gradient(135deg, var(--price-primary), var(--price-secondary));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.pricing-hero p { font-size: 1.2rem; color: var(--price-muted); }

/* Toggle Switch */
.pricing-toggle {
    display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 3rem;
}
.toggle-label { font-weight: 600; font-size: 1.1rem; color: var(--price-muted); transition: 0.3s; }
.toggle-label.active { color: var(--price-text); }

.switch { position: relative; display: inline-block; width: 60px; height: 34px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
    background-color: #cbd5e1; transition: .4s; border-radius: 34px;
}
.slider:before {
    position: absolute; content: ""; height: 26px; width: 26px; left: 4px; bottom: 4px;
    background-color: white; transition: .4s; border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
input:checked + .slider { background-color: var(--price-primary); }
input:checked + .slider:before { transform: translateX(26px); }

.save-badge {
    background: #fef3c7; color: #d97706; font-size: 0.7rem; padding: 4px 8px;
    border-radius: 50px; vertical-align: middle; margin-left: 5px;
}

/* --- 2. PRICING GRID --- */
.pricing-cards-section { padding-bottom: 6rem; }
.pricing-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
    align-items: center; /* Centers cards vertically so Popular one can be taller */
}

.price-card {
    background: var(--price-card);
    border: 1px solid var(--price-border);
    border-radius: var(--price-radius);
    padding: 2.5rem;
    position: relative;
    transition: 0.3s;
    display: flex; flex-direction: column;
    
    /* Animation */
    opacity: 0; animation: fadeInUp 0.8s ease-out forwards;
}
.price-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px -10px rgba(0,0,0,0.1); }

.price-card:nth-child(1) { animation-delay: 0.1s; }
.price-card:nth-child(2) { animation-delay: 0.2s; }
.price-card:nth-child(3) { animation-delay: 0.3s; }

/* POPULAR CARD STYLING */
.price-card.popular {
    border: 2px solid var(--price-primary);
    padding: 3rem 2.5rem; /* Slightly larger */
    box-shadow: 0 25px 50px -12px rgba(79, 70, 229, 0.15);
    transform: scale(1.05);
    z-index: 2;
}
.price-card.popular:hover { transform: scale(1.05) translateY(-10px); }

.popular-badge {
    position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
    background: var(--price-primary); color: white;
    padding: 6px 16px; border-radius: 50px; font-size: 0.85rem; font-weight: 700; text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
}

/* Icons with Gradient Fill */
.card-icon-wrapper i { font-size: 2.5rem; margin-bottom: 1.5rem; display: inline-block; }
.icon-gradient-blue { background: linear-gradient(135deg, #3b82f6, #2563eb); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.icon-gradient-purple { background: linear-gradient(135deg, #8b5cf6, #ec4899); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.icon-gradient-gold { background: linear-gradient(135deg, #f59e0b, #d97706); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.plan-name { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.5rem; font-family: 'Outfit', sans-serif; }
.plan-desc { color: var(--price-muted); font-size: 0.95rem; margin-bottom: 2rem; line-height: 1.5; }

/* Price Tag */
.plan-price { display: flex; align-items: flex-start; justify-content: center; margin-bottom: 2rem; color: var(--price-text); }
.plan-price .currency { font-size: 1.5rem; font-weight: 600; margin-top: 5px; }
.plan-price .amount { font-size: 3.5rem; font-weight: 800; line-height: 1; }
.plan-price .period { font-size: 1rem; color: var(--price-muted); align-self: flex-end; margin-bottom: 8px; }

/* Buttons */
.btn-price {
    display: block; text-align: center; padding: 14px; border-radius: 12px;
    font-weight: 700; text-decoration: none; transition: 0.3s;
}
.btn-price.outline { border: 2px solid var(--price-border); color: var(--price-text); }
.btn-price.outline:hover { border-color: var(--price-text); background: var(--price-text); color: white; }
.btn-price.primary { background: var(--price-primary); color: white; box-shadow: 0 10px 20px rgba(79, 70, 229, 0.3); }
.btn-price.primary:hover { background: #4338ca; transform: translateY(-2px); }

/* Feature Lists */
.plan-features { margin-top: 2rem; text-align: left; }
.features-label { font-size: 0.9rem; font-weight: 700; margin-bottom: 1rem; color: var(--price-text); }
.plan-features ul { list-style: none; padding: 0; }
.plan-features li {
    margin-bottom: 0.8rem; color: #475569; font-size: 0.95rem;
    display: flex; align-items: flex-start; gap: 10px;
}
.plan-features li i { color: #10b981; margin-top: 4px; }

/* --- 3. ADDONS SECTION --- */
.addons-section { padding: 4rem 0; border-top: 1px solid #e2e8f0; background: #fff; }
.addons-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}
.addon-card {
    display: flex; align-items: center; gap: 1rem;
    padding: 1.5rem; border-radius: 16px; border: 1px solid var(--price-border);
    transition: 0.3s; background: #f8fafc;
}
.addon-card:hover { border-color: var(--price-primary); background: #fff; box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.addon-icon { font-size: 1.5rem; width: 50px; height: 50px; background: white; border-radius: 10px; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.addon-info h4 { margin: 0; font-weight: 700; font-size: 1rem; }
.addon-info p { margin: 0; font-size: 0.85rem; color: var(--price-muted); }
.addon-price { margin-left: auto; font-weight: 800; color: var(--price-text); }

/* --- 4. FAQ --- */
.pricing-faq { padding: 6rem 0; }
.faq-item { border-bottom: 1px solid var(--price-border); margin-bottom: 1rem; padding-bottom: 1rem; }
.faq-item summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; font-size: 1.1rem; }
.faq-item summary::after { content: '+'; color: var(--price-primary); font-weight: 300; font-size: 1.5rem; }
.faq-item[open] summary::after { content: '-'; }
.faq-item p { margin-top: 1rem; color: #475569; line-height: 1.6; }

/* Animations */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* Responsive */
@media (max-width: 960px) {
    .pricing-hero h1 { font-size: 2.5rem; }
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .price-card.popular {
        transform: scale(1);
        z-index: 1;
    }
    .price-card.popular:hover {
        transform: translateY(-10px);
    }
}
/* =========================================
   NEW PRICING ADDITIONS
   ========================================= */

/* --- COMPARISON TABLE --- */
.compare-section {
    padding: 4rem 0 6rem;
    background: #fff;
    position: relative;
}

.table-responsive {
    overflow-x: auto;
    border-radius: 24px;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.08);
    border: 1px solid var(--price-border);
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px; /* Ensures readable width on mobile scroll */
    text-align: center;
}

/* Headers */
.compare-table thead th {
    background: #f8fafc;
    padding: 1.5rem;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--price-text);
    border-bottom: 2px solid var(--price-border);
    position: sticky;
    top: 0;
}

.compare-table .feature-col {
    text-align: left;
    width: 30%;
    padding-left: 2rem;
}

.compare-table .highlight-col {
    background: #eef2ff; /* Subtle Indigo Tint */
    color: var(--price-primary);
}

.sm-badge {
    display: block;
    font-size: 0.65rem;
    background: var(--price-primary);
    color: white;
    border-radius: 20px;
    padding: 2px 8px;
    width: fit-content;
    margin: 5px auto 0;
    text-transform: uppercase;
}

/* Body Rows */
.compare-table tbody tr {
    transition: background 0.2s;
}
.compare-table tbody tr:hover {
    background: #f9fafb;
}

.compare-table td {
    padding: 1.2rem;
    border-bottom: 1px solid var(--price-border);
    color: var(--price-muted);
    font-size: 0.95rem;
}

.compare-table .feature-col {
    text-align: left;
    color: var(--price-text);
    font-weight: 600;
    padding-left: 2rem;
}

/* Section Dividers inside Table */
.section-row td {
    background: #f1f5f9;
    text-align: left;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: var(--price-text);
    padding: 0.8rem 2rem;
}

/* Icons in Table */
.text-success { color: #10b981; font-size: 1.2rem; }
.text-muted { color: #cbd5e1; font-size: 1.2rem; }

/* --- GUARANTEE SECTION --- */
.guarantee-section {
    padding: 2rem 0 6rem;
}

.guarantee-box {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    border-radius: 30px;
    padding: 3rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px -10px rgba(49, 46, 129, 0.4);
}

/* Animated Icon */
.guarantee-icon {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #818cf8;
    flex-shrink: 0;
    animation: pulseGlow 3s infinite;
}

.guarantee-content h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.guarantee-content p {
    color: #c7d2fe; /* Light Indigo Text */
    font-size: 1.1rem;
    max-width: 600px;
    line-height: 1.6;
}

.guarantee-stamp {
    margin-left: auto;
    border: 2px solid #818cf8;
    color: #818cf8;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transform: rotate(-5deg);
    opacity: 0.8;
}

/* --- SHIMMER ANIMATION FOR "GET STARTED" BUTTONS --- */
/* Add this class to your 'btn-price primary' in HTML for extra effect */
.btn-shimmer {
    position: relative;
    overflow: hidden;
}
.btn-shimmer::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.3), transparent);
    transform: skewX(-20deg);
    animation: shimmer 3s infinite;
}

/* Keyframes */
@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(129, 140, 248, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(129, 140, 248, 0); }
    100% { box-shadow: 0 0 0 0 rgba(129, 140, 248, 0); }
}

@keyframes shimmer {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

/* Responsive */
@media (max-width: 900px) {
    .guarantee-box { flex-direction: column; text-align: center; padding: 2rem; }
    .guarantee-stamp { margin: 1rem auto 0; transform: rotate(0deg); }
    
    /* Table Scroll Hint */
    .table-responsive::after {
        content: 'Scroll for more →';
        display: block; text-align: center;
        font-size: 0.8rem; color: var(--price-muted); padding: 10px;
        background: #f8fafc;
    }
}

/* =========================================
   IMPACT / CASE STUDY SECTION
   ========================================= */

.impact-section {
    padding: 6rem 0;
    background-color: #fff; /* White background to break up gray sections */
    overflow: hidden;
}

.impact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

/* --- LEFT CONTENT --- */
.eyebrow-tag {
    color: var(--price-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    display: block;
}

.impact-content h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--price-text);
}

.impact-lead {
    font-size: 1.1rem;
    color: var(--price-muted);
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

/* Stats Row */
.impact-stats {
    display: flex;
    gap: 3rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--price-border);
    padding-bottom: 2rem;
}

.stat-item { display: flex; flex-direction: column; }

.stat-num {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--price-text);
    line-height: 1;
    margin-bottom: 5px;
    background: linear-gradient(135deg, var(--price-text), var(--price-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-item span { font-size: 0.9rem; color: var(--price-muted); font-weight: 500; }

/* Quote Box */
.impact-quote {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 20px;
    position: relative;
}

.quote-icon {
    font-size: 1.5rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
}

.impact-quote p {
    font-size: 1.05rem;
    font-style: italic;
    color: #475569;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.quote-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.quote-author img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.quote-author div { display: flex; flex-direction: column; }
.quote-author strong { color: var(--price-text); font-size: 0.95rem; }
.quote-author span { color: var(--price-muted); font-size: 0.85rem; }

/* --- RIGHT VISUAL --- */
.impact-visual { position: relative; }

.impact-card-stack {
    position: relative;
    height: 450px;
    width: 100%;
}

.card-back {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 100%;
    height: 100%;
    background: #e0e7ff; /* Light Indigo */
    border-radius: 24px;
    z-index: 0;
}

.card-front {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px -10px rgba(0,0,0,0.15);
    z-index: 1;
}

.card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 5s ease;
}

.impact-visual:hover .card-front img { transform: scale(1.1); }

/* Floating Result Badge */
.floating-result {
    position: absolute;
    bottom: 30px;
    left: -30px; /* Hangs off the edge */
    background: white;
    padding: 15px 25px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 2;
    animation: floatY 4s ease-in-out infinite;
}

.icon-circle {
    width: 44px; height: 44px;
    background: #ecfdf5; color: #10b981;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
}

.floating-result .tiny-label { font-size: 0.75rem; color: var(--price-muted); display: block; }
.floating-result strong { font-size: 1.2rem; color: var(--price-text); }

/* Animation */
@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Responsive */
@media (max-width: 960px) {
    .impact-grid { grid-template-columns: 1fr; gap: 3rem; }
    
    .impact-card-stack { height: 350px; max-width: 500px; margin: 0 auto; }
    .floating-result { left: 10px; bottom: 20px; }
    .card-back { display: none; } /* Simplify on mobile */
}

/* =========================================
   PREMIUM VALUE SECTION (DARK MODE)
   ========================================= */

.premium-value-section {
    position: relative;
    padding: 8rem 0;
    background-color: #0f172a; /* Dark Navy */
    overflow: hidden;
    color: white;
}

/* --- ANIMATED BACKGROUND MESH --- */
.mesh-background {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.mesh-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: meshFloat 10s infinite alternate;
}

.b1 {
    width: 500px; height: 500px;
    background: #4f46e5; /* Indigo */
    top: -100px; left: -100px;
}

.b2 {
    width: 400px; height: 400px;
    background: #ec4899; /* Pink */
    bottom: -50px; right: -100px;
    animation-delay: -5s;
}

/* --- HEADER --- */
.value-header {
    position: relative;
    z-index: 1;
    text-align: center;
    margin-bottom: 5rem;
}

.glow-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #a5b4fc;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.value-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.holo-text {
    background: linear-gradient(to right, #818cf8, #c084fc, #f472b6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
}

.value-header p {
    font-size: 1.2rem;
    color: #cbd5e1;
    max-width: 600px;
    margin: 0 auto;
}

/* --- HOLOGRAPHIC GRID --- */
.holo-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

/* --- CARD STYLING --- */
.holo-card {
    background: rgba(30, 41, 59, 0.4); /* Transparent Dark */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2.5rem;
    position: relative;
    backdrop-filter: blur(20px); /* Glass Effect */
    -webkit-backdrop-filter: blur(20px);
    transition: transform 0.4s ease, border-color 0.4s ease;
    overflow: hidden;
}

/* Hover Effects */
.holo-card:hover {
    transform: translateY(-10px);
    border-color: rgba(129, 140, 248, 0.5);
}

/* Internal Glow on Hover */
.card-glow {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at top right, rgba(129, 140, 248, 0.15), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.holo-card:hover .card-glow { opacity: 1; }

/* Icons */
.holo-icon {
    width: 60px; height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, #4f46e5, #4338ca);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px -10px rgba(79, 70, 229, 0.5);
}
.holo-icon.icon-shield { background: linear-gradient(135deg, #059669, #047857); box-shadow: 0 10px 30px -10px rgba(5, 150, 105, 0.5); }
.holo-icon.icon-chart { background: linear-gradient(135deg, #db2777, #be185d); box-shadow: 0 10px 30px -10px rgba(219, 39, 119, 0.5); }

.holo-card h3 { font-size: 1.5rem; margin-bottom: 1rem; font-weight: 700; }
.holo-card p { color: #94a3b8; line-height: 1.6; font-size: 1rem; margin-bottom: 2rem; }

/* Stat Line (Bar) */
.stat-line { display: flex; flex-direction: column; gap: 8px; }
.stat-line span:first-child { font-size: 0.8rem; text-transform: uppercase; font-weight: 700; color: #cbd5e1; }
.stat-line span:last-child { font-size: 0.9rem; font-weight: 700; text-align: right; color: #a5b4fc; }

.line-bar { width: 100%; height: 6px; background: rgba(255,255,255,0.1); border-radius: 10px; overflow: hidden; }
.fill { height: 100%; border-radius: 10px; width: 0; animation: fillBar 1.5s ease-out forwards; }

.speed-fill { background: #4f46e5; width: 95%; animation-delay: 0.2s; }
.uptime-fill { background: #db2777; width: 99%; animation-delay: 0.6s; }

/* Feature Pills (Security Card) */
.feature-pill-row { display: flex; gap: 10px; flex-wrap: wrap; }
.feature-pill-row span {
    background: rgba(5, 150, 105, 0.2);
    color: #6ee7b7;
    border: 1px solid rgba(5, 150, 105, 0.3);
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* --- ANIMATIONS --- */
@keyframes meshFloat {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

@keyframes fillBar {
    from { width: 0; }
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .premium-value-section { padding: 5rem 1rem; }
    .value-header h2 { font-size: 2.5rem; }
    .holo-card { padding: 2rem; }
}