/* ============================================
   GLOBAL VARIABLES & RESET
   ============================================ */
:root {
    /* Brand Colors */
    --primary-blue: #3BB4D9;
    --primary-sky: #4CC9E8;
    --brand-navy: #1B1B2F;  /* The Dark Button Color */
    --brand-red: #E84855;   /* The Red Shadow Color */
    --brand-cream: #F8FAFB;
    
    /* Text Colors */
    --text-dark: #1B1B2F;
    --text-gray: #5A6B7A;
    --white: #FFFFFF;

    /* Functional Colors */
    --border-color: #E2E8F0;
    --accent-green: #10B981;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body { 
    font-family: 'Plus Jakarta Sans', sans-serif; 
    background: var(--brand-cream); 
    color: var(--text-dark); 
    overflow-x: hidden;
    line-height: 1.6;
}

/* ============================================
   HEADER
   ============================================ */
header {
    position: fixed; 
    top: 0; left: 0; right: 0; 
    z-index: 1000;
    padding: 1rem 2rem;
    background: transparent;
    transition: all 0.3s ease;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

nav { 
    max-width: 1400px; 
    margin: 0 auto; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

/* ============================================
   LOGO — WITH SCROLL ANIMATION (Same as Home)
   Replace your existing .logo, .logo-icon, .logo-text CSS with this
   ============================================ */

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    height: 50px;
    overflow: hidden;
    position: relative;
}

/* Full Logo (text version) — visible by default */
.logo-full {
    height: 38px;
    width: auto;
    max-width: 250px;
    opacity: 1;
    transform: translateX(0);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: block !important;
}

/* Symbol Logo (the X) — hidden by default */
.logo-symbol {
    height: 38px;
    width: auto;
    max-width: 0;
    opacity: 0;
    transform: rotate(-180deg);
    margin-left: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* When scrolled: hide full logo */
header.scrolled .logo-full {
    max-width: 0;
    opacity: 0;
    padding: 0;
    margin: 0;
}

/* When scrolled: show X symbol with spin */
header.scrolled .logo-symbol {
    max-width: 50px;
    opacity: 1;
    transform: rotate(0deg);
    margin-right: 15px;
}

/* Mobile logo adjustments */
@media (max-width: 768px) {
    .logo {
        height: 40px;
    }

    .logo-full {
        height: 24px;
        max-width: 200px;
    }

    header.scrolled .logo-full {
        max-width: 0;
        opacity: 0;
        margin: 0;
    }
}

/* ============================================
   HERO SECTION (Cyan Gradient)
   ============================================ */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(180deg, #6BE7F2 0%, #3BB4D9 100%);
    position: relative;
    padding: 140px 1.5rem 6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto 3rem auto;
    text-align: center;
    position: relative;
    z-index: 10;
}

.hero-pre-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    color: var(--brand-navy);
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.hero-dynamic-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    color: var(--brand-red);
    line-height: 1.1;
    display: block;
    min-height: 1.2em;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #334155;
    margin-top: 1.5rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   FORM CONTAINER (Matches Your Image)
   ============================================ */
.form-container {
    background: #FFFFFF; /* Pure White Card */
    border-radius: 24px;
    padding: 3rem 2.5rem;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    
    /* Layout */
    min-height: 520px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    
    /* Soft clean shadow */
    box-shadow: 0 20px 60px -10px rgba(27, 27, 47, 0.15);
    position: relative;
    overflow: visible; 
}

/* Progress Bar (Blue Line at Top) */
.progress-bar {
    position: absolute;
    top: 40px; 
    left: 2.5rem;
    right: 2.5rem;
    height: 6px;
    background: #F1F5F9; 
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 20%;
    background: var(--primary-sky);
    border-radius: 10px;
    transition: width 0.4s ease;
}

/* Form Steps */
.form-step {
    flex-grow: 1;
    display: none;
    flex-direction: column;
    padding-top: 3rem; /* Space for progress bar */
}

.form-step.active {
    display: flex;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-step h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--brand-navy);
    text-align: center;
    margin-bottom: 0.5rem;
}

.step-subtitle {
    font-size: 1rem;
    color: var(--text-gray);
    text-align: center;
    margin-bottom: 2.5rem;
}

/* ============================================
   OPTIONS (Clean Pills - Centered)
   ============================================ */
.options-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: auto;
    padding: 0 1rem;
}

.option-btn {
    padding: 0.85rem 1.8rem;
    background: #FFFFFF;
    color: var(--brand-navy);
    border: 1px solid var(--border-color);
    border-radius: 50px; /* Full Rounded Pills */
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.option-btn:hover {
    border-color: #CBD5E1;
    background: #F8FAFC;
    transform: translateY(-2px);
}

.option-btn.selected {
    background-color: #FFFFFF;
    color: var(--brand-navy);
    /* Make the selected border slightly thicker/darker to indicate selection without filling */
    border: 2px solid var(--brand-navy);
    box-shadow: 0 4px 12px rgba(27, 27, 47, 0.1);
    transform: translateY(-1px);
    font-weight: 700;
}

/* ============================================
   BUTTONS (The Sharp "Block" Style from Image)
   ============================================ */
.continue-btn {
    display: block;
    width: 100%;
    padding: 1.25rem;
    margin-top: 3rem;
    
    /* Dark Navy Block */
    background-color: var(--brand-navy); 
    color: white;
    
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    
    border: none;
    border-radius: 0px; /* SHARP CORNERS */
    cursor: pointer;
    
    /* THE SOLID RED BLOCK SHADOW (Offset X & Y) */
    box-shadow: 10px 10px 0 var(--brand-red); 
    
    transition: all 0.15s ease;
    margin-bottom: 10px; /* Space for the shadow */
}

.continue-btn:hover {
    /* Slight movement on hover */
    transform: translate(2px, 2px); 
    box-shadow: 8px 8px 0 var(--brand-red);
}

.continue-btn:active {
    /* Push fully down on click */
    transform: translate(10px, 10px);
    box-shadow: none; 
}

/* ============================================
   INPUT FIELDS (Contact Step)
   ============================================ */
.contact-form {
    width: 100%;
    margin-bottom: auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--brand-navy);
}

.form-group input {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-blue);
}

/* Phone Input Styling */
.phone-input {
    display: flex;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.phone-input:focus-within {
    border-color: var(--primary-blue);
}

.country-code {
    background: #F8FAFC;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-right: 2px solid var(--border-color);
    white-space: nowrap;
}

.phone-input input {
    border: none;
    border-radius: 0;
}

/* ============================================
   SUCCESS MESSAGE
   ============================================ */
.success-content {
    text-align: center;
    padding: 2rem 0;
    margin: auto 0;
}

.success-icon { font-size: 4rem; margin-bottom: 1rem; }

.back-home-btn {
    display: inline-block;
    margin-top: 2rem;
    text-decoration: none;
    color: var(--brand-navy);
    font-weight: 700;
    border-bottom: 2px solid var(--brand-red);
    transition: color 0.2s;
}

/* ============================================
   PRICING PACKAGES SECTION
   ============================================ */
/* ============================================
   NEW PRICING SECTION - DARK & SHARP
   ============================================ */
.pricing-section {
    position: relative;
    padding: 8rem 2rem;
    background: #0B0B15; /* Deepest Navy/Black */
    overflow: hidden;
    color: white;
}

/* Background Glow Effect */
.pricing-bg-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(76, 201, 232, 0.08) 0%, rgba(11, 11, 21, 0) 70%);
    pointer-events: none;
    z-index: 1;
}

.pricing-section .container {
    position: relative;
    z-index: 2;
    max-width: 1200px; 
    margin: 0 auto;
}

/* Header */
.pricing-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title.text-white { color: white; margin-bottom: 0.5rem; }
.section-subtitle.text-gray { color: #94A3B8; font-size: 1.2rem; }

/* Toggle Switch */
.pricing-toggle-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.toggle-label {
    font-weight: 700;
    color: #64748B;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.toggle-label.active { color: white; }

.save-badge {
    background: var(--brand-red);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 5px;
    vertical-align: middle;
    font-weight: 800;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 56px; height: 30px;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #1B1B2F;
    border: 1px solid #334155;
    transition: .4s;
    border-radius: 34px;
}
.slider:before {
    position: absolute;
    content: "";
    height: 22px; width: 22px;
    left: 4px; bottom: 3px;
    background-color: var(--primary-sky);
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-sky);
}
input:checked + .slider:before { transform: translateX(26px); }


/* ================= GRID LAYOUT ================= */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    align-items: stretch; /* Ensures all cards are same height */
}

/* ================= CARD STYLES ================= */
.pricing-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 0; /* Removing padding here to control inner layout */
    position: relative;
    transition: transform 0.1s ease, box-shadow 0.3s ease;
    
    display: flex;
    flex-direction: column; /* Vital for alignment */
    height: 100%; /* Vital for alignment */
}

.pricing-card:hover {
    border-color: rgba(76, 201, 232, 0.4);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5);
}

/* Featured Card Logic */
.pricing-card.featured {
    border: 1px solid var(--primary-sky);
    background: rgba(11, 11, 21, 0.6);
    transform: scale(1.05);
    z-index: 5;
}

.popular-badge {
    position: absolute;
    top: -12px; left: 50%;
    transform: translateX(-50%);
    background: var(--primary-sky);
    color: #000;
    font-weight: 800;
    font-size: 0.75rem;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 15px rgba(76, 201, 232, 0.6);
}

/* Card Content Structure */
.card-header {
    padding: 3rem 2rem 2rem 2rem;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.card-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Pushes content to fill space */
}

/* Typography */
.tier-name {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
}

.tier-desc {
    color: #94A3B8;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    min-height: 45px; /* Aligns price vertically across cards */
}

.price-box .currency {
    font-size: 1.5rem;
    font-weight: 700;
    color: #64748B;
    vertical-align: top;
}
.price-box .amount {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    letter-spacing: -1px;
}
.price-box .period {
    color: #64748B;
    font-weight: 600;
}

/* Features List with SVG */
.feature-list { 
    text-align: left; 
    margin-bottom: 2rem; /* Spacing before button */
}

.list-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary-sky);
    letter-spacing: 1px;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    opacity: 0.9;
}

.feature-list ul { list-style: none; }

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 1.2rem;
    color: #E2E8F0;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* SVG Icon Styling */
.icon-svg {
    width: 20px;
    height: 20px;
    min-width: 20px;
    stroke: var(--primary-sky); /* Icons follow brand color */
    margin-top: 2px;
}

/* ================= BUTTON STYLES (MATCHES FORM) ================= */
.pricing-btn {
    margin-top: auto; /* THIS ALIGNS BUTTON TO BOTTOM */
    display: block;
    width: 100%;
    padding: 1.1rem;
    
    /* Dark Navy Block */
    background: var(--brand-navy); /* Matches form button base */
    color: white;
    
    font-family: inherit;
    font-size: 1rem;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    
    /* SHARP CORNERS */
    border: none;
    border-radius: 0px; 
    
    /* THE RED SHADOW */
    box-shadow: 8px 8px 0 var(--brand-red);
    transition: all 0.15s ease;
}

.pricing-btn:hover {
    transform: translate(2px, 2px);
    box-shadow: 6px 6px 0 var(--brand-red);
    color: white; /* Ensure text stays white */
}

.pricing-btn:active {
    transform: translate(8px, 8px);
    box-shadow: none;
}

/* Featured Button Override (Optional: make it Red by default) */
.pricing-btn.featured-btn {
    background-color: var(--brand-red); /* Red Background */
    box-shadow: 8px 8px 0 #000000;      /* Pitch Black Shadow for contrast */
    color: white;
}

.pricing-btn.featured-btn:hover {
    background-color: #ff5e6b;          /* Brighter Red on Hover */
    box-shadow: 6px 6px 0 #000000;
    transform: translate(2px, 2px);
}

.pricing-btn.featured-btn:active {
    transform: translate(8px, 8px);
    box-shadow: none;
}

/* Footer */
.pricing-footer {
    text-align: center;
    margin-top: 4rem;
    color: #64748B;
}
.pricing-footer a { color: var(--primary-sky); text-decoration: none; font-weight: 700; }

/* Mobile */
@media (max-width: 768px) {
    .pricing-card.featured { transform: scale(1); }
    .pricing-grid { gap: 1.5rem; }
}
/* ============================================
     FOOTER
   ============================================ */

.footer {
    background: #000000;
    color: white;
    padding: 4rem 2rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.4rem;
    font-weight: 800;
}

.footer-logo .logo-icon {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, #3BB4D9, #4CC9E8);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; color: #fff;
}

.footer-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.25s ease;
}

.footer-links a:hover {
    color: #fff;
    transform: translateY(-1px);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-icon svg { width: 18px; height: 18px; }

.social-icon:hover {
    background: #3BB4D9;
    border-color: #3BB4D9;
    color: white;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(59, 180, 217, 0.3);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

/* Footer logo — override header scroll animation, responsive sizing */
.footer .logo {
    height: auto;
    overflow: visible;
}

.footer .logo-full {
    height: auto;
    width: clamp(120px, 18vw, 200px);
    max-width: 200px;
    opacity: 1 !important;
    transform: none !important;
    transition: none;
    display: block !important;
}

.footer .logo-symbol {
    display: none !important;
}

@media (max-width: 768px) {
    .footer .logo-full {
        width: clamp(100px, 35vw, 160px);
    }
}

/* --- MOBILE LAYOUT FIX --- */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    /* This forces the links into a compact grid instead of a list */
    .footer-links {
        flex-direction: row; /* Horizontal flow */
        flex-wrap: wrap;     /* Allow them to wrap to next line */
        justify-content: center; /* Center align them */
        gap: 0.75rem 1.5rem; /* Row gap vs Column gap */
        width: 100%;
    }
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .hero-section { padding-top: 120px; padding-bottom: 3rem; }
    
    .form-container {
        padding: 2rem 1.5rem;
        min-height: auto; 
    }

    .form-step { padding-top: 2rem; }
    
    .form-row { grid-template-columns: 1fr; }
    
    .package-card.featured { transform: scale(1); }
    
    .section-title { font-size: 2rem; }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* ============================================
   REVISED PRICING HEADER (High-End Vertical Stack)
   ============================================ */

.pricing-header.centered-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 5rem;
    position: relative;
    z-index: 10;
}

/* 1. EYEBROW LABEL */
.eyebrow-label {
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary-sky);
    margin-bottom: 1.5rem;
    background: rgba(76, 201, 232, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    border: 1px solid rgba(76, 201, 232, 0.2);
}

/* 2. MASSIVE HEADLINE */
.hero-headline {
    font-size: clamp(2.5rem, 5vw, 4rem); /* Huge Responsive Text */
    line-height: 1.1;
    font-weight: 700;
    color: white;
    margin-bottom: 3rem; /* Space before toggle */
}

.text-mute {
    color: #94A3B8; /* Gray/Muted for the first part */
    font-weight: 500;
}

.text-red {
    color: var(--brand-red);
}

/* Underline SVG Animation */
.highlight-wrapper {
    position: relative;
    display: inline-block;
}

.underline-anim {
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 100%;
    height: 20px;
    color: var(--brand-red);
    overflow: visible;
}

.underline-anim path {
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    animation: drawLine 1.5s ease-out forwards 0.5s;
}

@keyframes drawLine {
    to { stroke-dashoffset: 0; }
}

/* 3. TOGGLE CONTAINER (Centered) */
.toggle-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem; /* Space between toggle and badge */
}

/* The Glass Pill */
.toggle-pill {
    position: relative;
    display: flex;
    align-items: center;
    background: #0F172A; /* Dark Slate Background */
    border: 2px solid #334155;
    border-radius: 50px;
    width: 300px; /* Wider for elegance */
    height: 64px; /* Taller for touch */
    cursor: pointer;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
    transition: border-color 0.3s;
}

.toggle-pill:hover {
    border-color: var(--primary-sky);
}

/* Labels */
.toggle-text {
    flex: 1;
    text-align: center;
    z-index: 2;
    font-weight: 700;
    font-size: 1.1rem;
    color: #64748B;
    transition: color 0.3s ease;
}

/* Sliding Background */
.toggle-slider-bg {
    position: absolute;
    top: 4px; left: 4px; bottom: 4px;
    width: calc(50% - 4px);
    background: white;
    border-radius: 40px;
    transition: transform 0.4s cubic-bezier(0.2, 1, 0.3, 1); /* Snappy easing */
    box-shadow: 0 4px 15px rgba(255,255,255,0.2);
    z-index: 1;
}

/* Toggle Logic */
.hidden-checkbox:not(:checked) ~ .toggle-pill .toggle-text.monthly { color: #0F172A; }
.hidden-checkbox:not(:checked) ~ .toggle-pill .toggle-slider-bg { transform: translateX(0); }

.hidden-checkbox:checked ~ .toggle-pill .toggle-text.quarterly { color: #0F172A; }
.hidden-checkbox:checked ~ .toggle-pill .toggle-slider-bg { transform: translateX(100%); }

/* 4. STATIC BADGE (Next to toggle) */
.discount-badge {
    background: var(--brand-red);
    color: white;
    font-weight: 800;
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(232, 72, 85, 0.4);
    transform: rotate(6deg); /* Slight tilt */
    animation: pulseBadge 2s infinite;
}

@keyframes pulseBadge {
    0% { transform: rotate(6deg) scale(1); }
    50% { transform: rotate(6deg) scale(1.05); }
    100% { transform: rotate(6deg) scale(1); }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-headline { font-size: 2.2rem; }
    .toggle-container { flex-direction: column; gap: 1rem; }
    .discount-badge { transform: rotate(0); margin-top: 0.5rem; }
}

/* ============================================
   REVENUE PROTOCOL — CINEMATIC REDESIGN
   ============================================ */
.protocol-section-white {
    background: #FFFFFF;
    padding: 7rem 1.5rem 6rem;
    position: relative;
    overflow: hidden;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Ambient grid background */
.protocol-section-white::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(59, 180, 217, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 180, 217, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 50% at 50% 40%, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 40%, black 30%, transparent 80%);
    pointer-events: none;
    z-index: 0;
}

/* Floating ambient orbs */
.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
}
.orb-1 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(59, 180, 217, 0.15), transparent 70%);
    top: -10%; left: -5%;
    animation: orbFloat1 18s ease-in-out infinite;
}
.orb-2 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(232, 72, 85, 0.1), transparent 70%);
    bottom: -5%; right: -5%;
    animation: orbFloat2 22s ease-in-out infinite;
}
.orb-3 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(59, 180, 217, 0.08), transparent 70%);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation: orbFloat3 15s ease-in-out infinite;
}
@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, 30px) scale(1.1); }
    66% { transform: translate(-20px, -20px) scale(0.95); }
}
@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    40% { transform: translate(-30px, -40px) scale(1.05); }
    70% { transform: translate(20px, 20px) scale(0.9); }
}
@keyframes orbFloat3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.15); }
}

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

/* ---- HEADER ---- */
.protocol-header { text-align: center; margin-bottom: 5rem; position: relative; }

.protocol-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--primary-blue);
    margin-bottom: 1.8rem;
    opacity: 0;
    animation: protocolFadeUp 0.8s ease forwards 0.2s;
}
.protocol-eyebrow::before,
.protocol-eyebrow::after {
    content: '';
    width: 30px;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, var(--primary-blue));
}
.protocol-eyebrow::after {
    background: linear-gradient(90deg, var(--primary-blue), transparent);
}

.section-title {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 800;
    color: #0F172A;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: protocolFadeUp 0.8s ease forwards 0.4s;
}
.text-red { color: var(--brand-red); }
.text-blue { color: #3BB4D9; }

.section-subtitle {
    font-size: 1.15rem;
    color: #64748B;
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.7;
    opacity: 0;
    animation: protocolFadeUp 0.8s ease forwards 0.6s;
}
.section-subtitle strong {
    color: #334155;
    font-weight: 700;
}

@keyframes protocolFadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---- CARDS LAYOUT ---- */
.cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.feature-card {
    background: #FFFFFF;
    border: 1px solid #F1F5F9;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 540px;
    position: relative;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.06);
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.5s ease, border-color 0.4s ease;
    opacity: 0;
    animation: protocolCardReveal 0.7s ease forwards;
}
.feature-card:nth-child(1) { animation-delay: 0.5s; }
.feature-card:nth-child(2) { animation-delay: 0.7s; }
.feature-card:nth-child(3) { animation-delay: 0.9s; }

@keyframes protocolCardReveal {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(59, 180, 217, 0.15);
    border-color: rgba(59, 180, 217, 0.3);
}

/* Card step number */
.card-step-num {
    position: absolute;
    top: 20px; right: 20px;
    width: 36px; height: 36px;
    border-radius: 10px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem; font-weight: 800; color: #94A3B8;
    z-index: 5;
    transition: all 0.3s ease;
}
.feature-card:hover .card-step-num {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
    transform: scale(1.05);
}

.card-content { padding: 2.2rem 2rem 1.2rem; position: relative; z-index: 2; }
.card-content h3 { font-size: 1.4rem; font-weight: 800; color: #0F172A; margin-bottom: 0.6rem; letter-spacing: -0.3px; }
.card-content p { font-size: 0.95rem; color: #64748B; line-height: 1.6; }

/* ---- ANIMATION VIEWPORT ---- */
.visual-viewport {
    flex-grow: 1;
    width: 100%;
    position: relative;
    overflow: hidden;
    margin-top: auto;
    border-top: 1px solid #F1F5F9;
    background: #FAFCFE;
}

/* ============================================
   ANIMATION 1: CREATIVE FOUNDRY
   ============================================ */
.foundry-stage {
    width: 100%; height: 100%;
    position: relative;
    display: flex; align-items: center; justify-content: center;
}

/* Scan line */
.foundry-scan-line {
    position: absolute; top: 0; left: 0;
    width: 3px; height: 100%;
    background: linear-gradient(180deg, transparent, var(--primary-blue), transparent);
    box-shadow: 0 0 20px var(--primary-blue), 0 0 40px rgba(59, 180, 217, 0.3);
    animation: foundScanSweep 4s ease-in-out infinite;
    z-index: 10; opacity: 0.8;
}
@keyframes foundScanSweep {
    0% { left: -5%; opacity: 0; }
    10% { opacity: 0.8; }
    90% { opacity: 0.8; }
    100% { left: 105%; opacity: 0; }
}

/* Conveyor belt */
.foundry-belt {
    display: flex;
    gap: 14px;
    animation: foundBeltSlide 16s linear infinite;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    will-change: transform;
}
@keyframes foundBeltSlide {
    0% { transform: translateY(-50%) translateX(0); }
    100% { transform: translateY(-50%) translateX(-50%); }
}

/* Individual ad variant cards */
.ad-variant {
    width: 105px; height: 136px;
    background: white;
    border: 1.5px solid #E2E8F0;
    border-radius: 12px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

/* Thumbnail area */
.ad-thumb {
    width: 100%; height: 55%;
    position: relative;
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.ad-thumb-bg {
    position: absolute; inset: 0;
}
/* Colour variants */
.ad-variant[data-color="blue"] .ad-thumb-bg { background: linear-gradient(135deg, #DBEAFE, #93C5FD); }
.ad-variant[data-color="pink"] .ad-thumb-bg { background: linear-gradient(135deg, #FCE7F3, #F9A8D4); }
.ad-variant[data-color="green"] .ad-thumb-bg { background: linear-gradient(135deg, #D1FAE5, #6EE7B7); }
.ad-variant[data-color="orange"] .ad-thumb-bg { background: linear-gradient(135deg, #FEF3C7, #FCD34D); }
.ad-variant[data-color="purple"] .ad-thumb-bg { background: linear-gradient(135deg, #EDE9FE, #C4B5FD); }
.ad-variant[data-color="teal"] .ad-thumb-bg { background: linear-gradient(135deg, #CCFBF1, #5EEAD4); }

/* Icon inside thumbnail */
.ad-thumb-icon {
    position: relative; z-index: 2;
    font-size: 1.4rem;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

/* Platform badge (tiny) */
.ad-platform {
    position: absolute;
    top: 5px; right: 5px;
    font-size: 0.5rem;
    font-weight: 800;
    color: white;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(4px);
    padding: 1px 5px;
    border-radius: 4px;
    letter-spacing: 0.3px;
    z-index: 3;
}

/* Text content area */
.ad-body {
    padding: 6px 8px;
    display: flex; flex-direction: column; gap: 4px;
}
.ad-headline {
    font-size: 0.5rem;
    font-weight: 800;
    color: #1E293B;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ad-cta {
    display: inline-block;
    width: fit-content;
    font-size: 0.42rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 6px;
    border-radius: 3px;
    background: #0F172A;
    color: white;
}
/* Metric row inside ad */
.ad-metric-row {
    display: flex;
    gap: 4px;
    margin-top: auto;
    padding: 0 8px 6px;
}
.ad-micro-stat {
    font-size: 0.42rem;
    font-weight: 700;
    color: #94A3B8;
    display: flex; align-items: center; gap: 2px;
}
.ad-micro-stat.positive { color: #10B981; }
.ad-micro-stat.negative { color: #EF4444; }

/* Score badge */
.ad-score {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    font-size: 0.6rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    opacity: 0;
    z-index: 15;
    pointer-events: none;
}
.ad-variant.scored .ad-score {
    animation: foundScorePop 0.4s ease forwards;
}
.score-win { background: #10B981; color: white; box-shadow: 0 2px 10px rgba(16, 185, 129, 0.5); }
.score-kill { background: #EF4444; color: white; box-shadow: 0 2px 10px rgba(239, 68, 68, 0.5); }
.score-test { background: #F59E0B; color: white; box-shadow: 0 2px 10px rgba(245, 158, 11, 0.5); }

@keyframes foundScorePop {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
    60% { transform: translate(-50%, -50%) scale(1.15); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* Winner/kill states */
.ad-variant.winner {
    border-color: #10B981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2), 0 8px 25px rgba(16, 185, 129, 0.15);
    transform: scale(1.05);
}
.ad-variant.killed {
    opacity: 0.3;
    transform: scale(0.9);
    filter: grayscale(0.8);
}

/* Metric overlay */
.foundry-metric {
    position: absolute; bottom: 12px; right: 12px;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(12px);
    color: white;
    padding: 6px 12px; border-radius: 8px;
    font-size: 0.7rem; font-weight: 700;
    display: flex; align-items: center; gap: 6px;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}
.metric-dot {
    width: 6px; height: 6px;
    background: #10B981;
    border-radius: 50%;
    animation: metricDotPulse 1.5s infinite;
}
@keyframes metricDotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.7); }
}

/* ============================================
   ANIMATION 2: AUDIENCE SNIPER — NEURAL NET
   ============================================ */
.neural-stage {
    width: 100%; height: 100%;
    position: relative;
    background: #0B0F1A;
    overflow: hidden;
}
.neural-canvas {
    width: 100%; height: 100%;
    display: block;
}
.neural-hud {
    position: absolute; inset: 0;
    pointer-events: none; z-index: 5;
}

.hud-target {
    position: absolute;
    width: 50px; height: 50px;
    border: 1.5px solid rgba(232, 72, 85, 0.6);
    border-radius: 50%;
    animation: neuralTargetLock 3s ease-in-out infinite;
}
.hud-target::before {
    content: '+';
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    color: var(--brand-red);
    font-size: 0.9rem; font-weight: 800;
}
.hud-target::after {
    content: '';
    position: absolute; inset: -8px;
    border: 1px solid rgba(232, 72, 85, 0.2);
    border-radius: 50%;
    animation: neuralRingExpand 3s ease-in-out infinite;
}
.ht-1 { top: 25%; left: 30%; animation-delay: 0s; }
.ht-2 { top: 50%; right: 22%; animation-delay: 1.2s; }
.ht-3 { bottom: 18%; left: 48%; animation-delay: 2.4s; }

@keyframes neuralTargetLock {
    0%, 100% { opacity: 0; transform: scale(1.3); }
    20% { opacity: 1; transform: scale(1); }
    70% { opacity: 1; transform: scale(1); }
    90% { opacity: 0; transform: scale(0.8); }
}
@keyframes neuralRingExpand {
    0%, 100% { transform: scale(1); opacity: 0; }
    20% { opacity: 0.6; transform: scale(1); }
    80% { opacity: 0; transform: scale(1.8); }
}

.hud-label {
    position: absolute;
    background: rgba(232, 72, 85, 0.9);
    color: white;
    font-size: 0.52rem; font-weight: 800;
    letter-spacing: 1px;
    padding: 3px 8px; border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    animation: neuralLabelFlash 3s ease-in-out infinite;
}
.hl-1 { top: 18%; left: 36%; animation-delay: 0.5s; }
.hl-2 { top: 44%; right: 12%; animation-delay: 1.7s; }

@keyframes neuralLabelFlash {
    0%, 100% { opacity: 0; transform: translateY(4px); }
    25% { opacity: 1; transform: translateY(0); }
    65% { opacity: 1; transform: translateY(0); }
    85% { opacity: 0; transform: translateY(-4px); }
}

.neural-metric {
    position: absolute; bottom: 12px; left: 12px;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(12px);
    color: white;
    padding: 6px 12px; border-radius: 8px;
    font-size: 0.7rem; font-weight: 700;
    display: flex; align-items: center; gap: 6px;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}
.neural-metric .metric-dot { background: var(--brand-red); }

/* ============================================
   ANIMATION 3: PREDICTABLE SCALE — DASHBOARD
   ============================================ */
.dashboard-stage {
    width: 100%; height: 100%;
    position: relative;
    background: linear-gradient(180deg, #FAFCFE 0%, #F1F5F9 100%);
    padding: 14px;
    display: flex; flex-direction: column; gap: 8px;
}

.dash-stats { display: flex; gap: 8px; }
.dash-stat-card {
    flex: 1;
    background: white;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 9px 11px;
    min-width: 0;
}
.dash-stat-label {
    font-size: 0.5rem; font-weight: 700;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1px;
}
.dash-stat-value {
    font-size: 1rem; font-weight: 800;
    color: #0F172A;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dash-stat-value.green { color: #10B981; }
.dash-stat-value.blue { color: var(--primary-blue); }

.dash-chart-area {
    flex: 1;
    background: white;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    min-height: 0;
}
.dash-chart-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 14px 0;
}
.dash-chart-title {
    font-size: 0.6rem; font-weight: 700;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.dash-chart-live {
    display: flex; align-items: center; gap: 4px;
    font-size: 0.55rem; font-weight: 700; color: #10B981;
}
.live-dot {
    width: 5px; height: 5px;
    background: #10B981;
    border-radius: 50%;
    animation: metricDotPulse 1s infinite;
}
.dash-chart-svg-wrap {
    position: absolute; bottom: 0; left: 0; right: 0; height: 75%;
}
.dash-chart-svg { width: 100%; height: 100%; }

.revenue-line {
    fill: none;
    stroke: var(--brand-red);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    animation: drawRevenueLine 3s ease forwards 1.2s;
}
.revenue-fill {
    opacity: 0;
    animation: revenueFillFade 2s ease forwards 2s;
}
@keyframes drawRevenueLine { to { stroke-dashoffset: 0; } }
@keyframes revenueFillFade { to { opacity: 1; } }

.revenue-dot {
    position: absolute;
    width: 10px; height: 10px;
    background: var(--brand-red);
    border: 2px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(232, 72, 85, 0.2), 0 2px 8px rgba(232, 72, 85, 0.3);
    z-index: 5;
    animation: revDotTravel 6s ease-in-out infinite 3s;
    opacity: 0;
}
@keyframes revDotTravel {
    0% { left: 5%; bottom: 60%; opacity: 0; }
    5% { opacity: 1; }
    25% { left: 30%; bottom: 48%; }
    50% { left: 55%; bottom: 35%; }
    75% { left: 78%; bottom: 18%; }
    95% { opacity: 1; }
    100% { left: 95%; bottom: 8%; opacity: 0; }
}

/* ============================================
   PROTOCOL STEPS — BOTTOM FLOW
   ============================================ */
.protocol-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    opacity: 0;
    animation: protocolFadeUp 0.8s ease forwards 1.1s;
}
.step-node {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    background: white;
    border: 1px solid #E2E8F0;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    color: #64748B;
    transition: all 0.3s ease;
}
.step-node:hover {
    border-color: var(--primary-blue);
    color: var(--brand-navy);
    box-shadow: 0 4px 15px rgba(59, 180, 217, 0.12);
}
.step-node.active {
    background: var(--brand-navy);
    border-color: var(--brand-navy);
    color: white;
    box-shadow: 8px 8px 0 var(--brand-red);
}
.step-num {
    width: 24px; height: 24px;
    border-radius: 6px;
    background: #F1F5F9;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem; font-weight: 800; color: #94A3B8;
}
.step-node.active .step-num {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}
.step-connector {
    width: 50px; height: 2px;
    position: relative;
    overflow: hidden;
}
.step-connector::before {
    content: '';
    position: absolute; inset: 0;
    background: #E2E8F0;
}
.step-connector::after {
    content: '';
    position: absolute; top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, var(--primary-blue), var(--brand-red));
    animation: connectorPulse 3s ease-in-out infinite;
}
@keyframes connectorPulse {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

/* ============================================
   MOBILE — NEXT-LEVEL RESPONSIVE
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
    .protocol-section-white { padding: 5rem 1.5rem 4rem; }
    .protocol-header { margin-bottom: 3.5rem; }
    .cards-container { gap: 1.25rem; }
    .feature-card { height: 500px; }
    .card-content { padding: 1.8rem 1.5rem 1rem; }
    .card-content h3 { font-size: 1.25rem; }
}

/* Mobile landscape / small tablet */
@media (max-width: 900px) {
    .cards-container {
        grid-template-columns: 1fr;
        max-width: 440px;
        margin-left: auto;
        margin-right: auto;
    }
    .feature-card {
        height: auto;
        min-height: 420px;
    }
    .visual-viewport {
        height: 220px;
        flex-grow: 0;
    }
    .section-title { font-size: 2.2rem; letter-spacing: -1px; }
    .section-subtitle { font-size: 1rem; }
}

/* Mobile portrait */
@media (max-width: 600px) {
    .protocol-section-white { padding: 3.5rem 1rem 3rem; }
    .protocol-header { margin-bottom: 2.5rem; }
    .protocol-eyebrow { font-size: 0.65rem; letter-spacing: 1.5px; margin-bottom: 1.2rem; }
    .section-title { font-size: 1.8rem; letter-spacing: -0.8px; margin-bottom: 1rem; }
    .section-subtitle { font-size: 0.9rem; line-height: 1.6; }

    .cards-container { max-width: 100%; gap: 1rem; }

    .feature-card { min-height: 380px; border-radius: 16px; }
    .card-step-num { width: 30px; height: 30px; font-size: 0.7rem; top: 14px; right: 14px; border-radius: 8px; }
    .card-content { padding: 1.5rem 1.2rem 0.8rem; }
    .card-content h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
    .card-content p { font-size: 0.85rem; line-height: 1.5; }

    .visual-viewport { height: 200px; }

    /* Foundry mobile */
    .ad-variant { width: 80px; height: 108px; border-radius: 9px; }
    .ad-thumb-icon { font-size: 1.1rem; }
    .ad-platform { font-size: 0.4rem; padding: 1px 3px; }
    .ad-headline { font-size: 0.42rem; }
    .ad-cta { font-size: 0.36rem; padding: 1.5px 4px; }
    .ad-metric-row { padding: 0 5px 4px; }
    .ad-micro-stat { font-size: 0.36rem; }
    .foundry-metric { font-size: 0.6rem; padding: 5px 9px; bottom: 8px; right: 8px; }

    /* Neural mobile */
    .hud-target { width: 36px; height: 36px; }
    .hud-target::before { font-size: 0.7rem; }
    .hud-label { font-size: 0.45rem; padding: 2px 5px; }
    .neural-metric { font-size: 0.6rem; padding: 5px 9px; bottom: 8px; left: 8px; }

    /* Dashboard mobile */
    .dashboard-stage { padding: 10px; gap: 6px; }
    .dash-stat-card { padding: 7px 8px; border-radius: 8px; }
    .dash-stat-label { font-size: 0.42rem; }
    .dash-stat-value { font-size: 0.85rem; }
    .dash-chart-area { border-radius: 10px; }
    .dash-chart-title { font-size: 0.52rem; }
    .dash-chart-live { font-size: 0.48rem; }

    /* Steps mobile */
    .protocol-steps { flex-wrap: wrap; gap: 8px; justify-content: center; }
    .step-connector { display: none; }
    .step-node { padding: 10px 16px; font-size: 0.78rem; }
    .step-num { width: 20px; height: 20px; font-size: 0.6rem; }
    .step-node.active { box-shadow: 5px 5px 0 var(--brand-red); }

    /* Shrink orbs on mobile */
    .orb-1 { width: 250px; height: 250px; }
    .orb-2 { width: 200px; height: 200px; }
    .orb-3 { width: 150px; height: 150px; }
}

/* Very small screens */
@media (max-width: 380px) {
    .section-title { font-size: 1.55rem; }
    .feature-card { min-height: 340px; }
    .visual-viewport { height: 170px; }
    .ad-variant { width: 68px; height: 92px; }
    .dash-stats { flex-direction: column; gap: 4px; }
    .dash-stat-card { padding: 5px 8px; }
    .dash-stat-value { font-size: 0.78rem; }
}

/* ============================================
   PREMIUM GRADIENT TOGGLE (FIXED WIDTH)
   ============================================ */

/* 1. Container alignment */
.billing-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    margin-top: 2rem;
}

.billing-label {
    color: #FFFFFF;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

/* 2. The Toggle Switch Container */
.custom-toggle {
    position: relative;
    /* INCREASED WIDTH to fit "Quarterly - Save 15%" comfortably */
    width: 400px;  
    height: 52px;
    user-select: none;
}

.toggle-checkbox {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0; width: 0;
}

/* 3. The Track (Background) */
.toggle-track {
    display: block;
    width: 100%;
    height: 100%;
    background: #0F172A; /* Dark Navy */
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 100px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.4);
}

/* 4. The Sliding Highlight */
.toggle-highlight {
    position: absolute;
    top: 4px; left: 4px; bottom: 4px;
    width: calc(50% - 4px); /* Exact half minus padding */
    background: linear-gradient(90deg, #E2E8F0 0%, #E84855 100%);
    border-radius: 100px;
    transition: transform 0.4s cubic-bezier(0.2, 1, 0.3, 1);
    z-index: 1;
    box-shadow: 0 4px 15px rgba(232, 72, 85, 0.3);
}

.toggle-checkbox:checked + .toggle-track .toggle-highlight {
    transform: translateX(100%);
}

/* 5. Text Layout (The Fix) */
.toggle-options {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    align-items: center;
    z-index: 2;
}

.option {
    /* FORCE 50% WIDTH so alignment is perfect */
    flex: 0 0 50%;
    width: 50%;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    transition: color 0.3s ease;
    white-space: nowrap; /* Prevents text from wrapping */
}

/* 6. Text Colors */
.text-monthly { color: #0F172A; } /* Active Default */
.text-quarterly { color: #94A3B8; } /* Inactive Default */

/* When Toggle is Checked (Quarterly Active) */
.toggle-checkbox:checked + .toggle-track .text-monthly { color: #94A3B8; }
.toggle-checkbox:checked + .toggle-track .text-quarterly { color: #0F172A; }

/* 7. Optimization for "Save 15%" */
.q-main { 
    display: inline-block;
}

.q-save { 
    display: inline-block;
    font-size: 0.85rem; /* Slightly smaller to look premium */
    opacity: 0.9;
    margin-left: 4px;
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
    .custom-toggle { width: 340px; } /* Shrink on mobile */
    .q-save { font-size: 0.75rem; } /* Smaller text on mobile */
    .option { font-size: 0.9rem; }
}