    /* ============================
       FOOTER
       ============================ */
    footer {
        background: var(--footer-bg, #1d1d1f);
        color: var(--footer-text, white);
    }
    
    footer a {
        color: #fff;
        text-decoration: underline;
        text-underline-offset: 2px;
    }
    footer a:hover {
        opacity: 1;
    }
    
    .footer-inner {
        max-width: 1200px;
        margin: 0 auto;
        padding: 60px 40px 30px;
        display: grid;
        grid-template-columns: 2fr 1fr 1fr 1fr;
        gap: 60px;
    }
    
    .footer-brand p {
        color: var(--footer-subtle, rgba(255, 255, 255, 0.7));
        font-size: clamp(0.8125rem, 0.78rem + 0.14vw, 0.875rem); /* 13px → 14px */
        line-height: 1.6;
    }

    .footer-section .footer-heading {
        color: var(--secondary, var(--footer-text, white));
        font-size: clamp(0.875rem, 0.83rem + 0.19vw, 1rem); /* 14px → 16px */
        font-weight: 600;
        margin-bottom: 16px;
    }
    
    .footer-section ul {
        list-style: none;
    }
    
    .footer-section li {
        margin-bottom: 8px;
    }
    
    .footer-section a {
        color: var(--footer-subtle, rgba(255, 255, 255, 0.7));
        text-decoration: none;
        font-size: clamp(0.8125rem, 0.78rem + 0.14vw, 0.875rem); /* 13px → 14px */
        transition: color 0.3s;
    }

    .footer-bottom {
        text-align: center;
        padding: 20px 40px;
        border-top: 1px solid var(--footer-border, rgba(255, 255, 255, 0.1));
    }

    .footer-bottom p {
        color: var(--footer-subtle, rgba(255, 255, 255, 0.5));
        font-size: clamp(0.75rem, 0.71rem + 0.14vw, 0.8125rem); /* 12px → 13px */
    }
    
    /* ============================
       ANIMATIONS
       ============================ */
    
    /* Base: all animated elements start hidden */
    .fade-up,
    .fade-in,
    .slide-left,
    .slide-right,
    .scale-in {
        opacity: 0;
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
        will-change: opacity, transform;
    }
    
    /* Starting positions */
    .fade-up    { transform: translateY(40px); }
    .fade-in    { transform: none; }
    .slide-left { transform: translateX(-50px); }
    .slide-right{ transform: translateX(50px); }
    .scale-in   { transform: scale(0.92); }
    
    /* Visible state (applied by IntersectionObserver) */
    .fade-up.visible,
    .fade-in.visible,
    .slide-left.visible,
    .slide-right.visible,
    .scale-in.visible {
        opacity: 1;
        transform: translateY(0) translateX(0) scale(1);
    }
    
    /* Stagger delays for grid children */
    .stagger > *:nth-child(1) { transition-delay: 0s; }
    .stagger > *:nth-child(2) { transition-delay: 0.1s; }
    .stagger > *:nth-child(3) { transition-delay: 0.2s; }
    .stagger > *:nth-child(4) { transition-delay: 0.3s; }
    .stagger > *:nth-child(5) { transition-delay: 0.4s; }
    .stagger > *:nth-child(6) { transition-delay: 0.5s; }
    
    /* Consistent card hover lift */
    .hover-lift {
        transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
                    box-shadow 0.3s ease;
    }
    
    .hover-lift:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    }
    
    /* Subtle hover glow for accent items */
    .hover-glow {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    .hover-glow:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 30px color-mix(in srgb, var(--secondary, var(--accent)) 20%, transparent);
    }
    
    /* Hero content entrance */
    .hero-content {
        animation: heroEntrance 1s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
    }
    
    @keyframes heroEntrance {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    /* Hero content children stagger */
    .hero-content > *:nth-child(1) { animation-delay: 0.2s; animation: heroEntrance 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both; }
    .hero-content > *:nth-child(2) { animation-delay: 0.35s; animation: heroEntrance 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both; }
    .hero-content > *:nth-child(3) { animation-delay: 0.5s; animation: heroEntrance 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both; }
    .hero-content > *:nth-child(4) { animation-delay: 0.65s; animation: heroEntrance 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.65s both; }
    
    /* Reduced motion: respect user preference */
    @media (prefers-reduced-motion: reduce) {
        .fade-up, .fade-in, .slide-left, .slide-right, .scale-in {
            opacity: 1;
            transform: none;
            transition: none;
        }
        .hero-content,
        .hero-content > * {
            animation: none;
            opacity: 1;
        }
        /* Disable fixed hero for reduced-motion preference */
        .hero {
            position: relative !important;
        }
        .hero-spacer {
            display: none !important;
        }
    }
    
    /* ============================
       DASHBOARD PREVIEW OVERRIDES
       (outside media queries — preview iframe can be any width)
       ============================ */
    /* Hero is always position:relative (scrolls with page) */
    body.in-dashboard-preview .hero {
        position: relative !important;
    }
    body.in-dashboard-preview .hero-spacer,
    body.in-dashboard-preview #es-header-spacer {
        display: none !important;
    }
    
    /* ============================
       RESPONSIVE
       ============================ */
    @media (max-width: 768px) {
        /* Mobile: header is static, sits ABOVE content */
        header {
            position: relative !important;
            background: var(--header-bg, #ffffff) !important;
            border-bottom: 1px solid #e0e0e0;
            box-shadow: 0 1px 3px rgba(0,0,0,0.08);
        }
        
        .header-content {
            padding: 10px 10px 0 10px;
            height: auto !important;
            min-height: 56px;
        }
        
        .logo {
            font-size: 18px !important;
        }
        
        .logo img {
            height: var(--logo-size-mobile, 36px) !important;
            max-height: var(--logo-size-mobile, 36px) !important;
        }
        
        /* Mobile header: logo left, plugin icons + hamburger right */
        .mobile-menu-toggle {
            display: flex;
            order: 99;
        }
        .header-right {
            gap: 12px;
        }
        
        /* Mobile nav: fullscreen below header */
        nav {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            height: calc(100vh - 56px);
            background: var(--header-bg, #ffffff);
            display: none;
            z-index: 1000;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
        }

        nav.active {
            display: block;
        }
        
        .nav-dashboard-link {
            display: none;
        }

        nav ul {
            flex-direction: column;
            padding: 12px 0;
            gap: 0;
        }

        nav ul li {
            margin: 0;
            border-bottom: 1px solid rgba(0,0,0,0.06);
        }

        /* Remove border from last regular item (before CTA) and CTA itself */
        nav ul li:last-child {
            border-bottom: none;
        }
        nav ul li.nav-cta {
            border-top: none;
            border-bottom: none;
            padding: 12px 24px;
        }

        nav ul li a {
            display: block;
            padding: 14px 24px;
            text-align: center;
            color: var(--header-text, var(--text-dark)) !important;
        }

        nav a.active {
            border-bottom: none;
            padding-bottom: 14px;
            color: var(--header-text, var(--text-dark)) !important;
            font-weight: 600;
        }
        
        .dropdown-menu {
            position: static;
            transform: none;
            background: rgba(0,0,0,0.03);
            backdrop-filter: none;
            -webkit-backdrop-filter: none;
            border: none;
            border-radius: 0;
            padding: 0;
            margin: 0;
            box-shadow: none;
            display: none;
        }
        /* Override desktop :hover rule — mobile uses .mob-open toggle only */
        nav li.has-dropdown:hover .dropdown-menu {
            display: none;
        }
        nav li.has-dropdown.mob-open > .dropdown-menu {
            display: block;
        }
        
        .dropdown-menu a {
            padding: 14px 24px !important;
            font-size: inherit !important;
            text-align: center !important;
            color: var(--header-text, var(--text-dark)) !important;
        }

        .dropdown-menu li {
            border-bottom: 1px solid rgba(0,0,0,0.06);
        }
        .dropdown-menu li:last-child {
            border-bottom: none;
        }

        /* Mobile CTA button: full width, centered */
        nav ul li.nav-cta {
            text-align: center;
        }
        nav ul li.nav-cta a.nav-cta-btn {
            display: block;
            text-align: center;
        }
        
        /* Mobile dropdown: accordion style — parent label visible, children toggle */
        nav li.has-dropdown > a {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 6px;
            padding: 14px 24px;
            text-align: center;
        }
        nav li.has-dropdown > a::after {
            border-top: 5px solid currentColor;
            transition: transform 0.2s;
        }
        nav li.has-dropdown.mob-open > a::after {
            transform: rotate(180deg);
        }
        nav li.has-dropdown {
            border-bottom: 1px solid rgba(0,0,0,0.06);
        }
        
        .hero {
            min-height: var(--hero-height-mobile, 40vh);
            /* Disable fixed hero on mobile for performance */
            position: relative !important;
            /* Override desktop padding — equal top/bottom for true centering */
            padding: 40px 20px !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
        }
        /* Hide header spacer on mobile — header is relative, not fixed */
        #es-header-spacer {
            display: none !important;
        }
        /* Remove desktop ::after spacer that breaks vertical centering on mobile */
        .hero::after {
            display: none !important;
        }

        /* Review badge: horizontal bar below hero on mobile */
        #es-review-badge {
            position: relative !important;
            top: auto !important;
            right: auto !important;
            bottom: auto !important;
            transform: none !important;
            width: 100% !important;
        }
        #es-review-badge #es-review-badge-inner {
            flex-direction: row !important;
            border-radius: 0 !important;
            border: none !important;
            border-top: 1px solid rgba(0,0,0,0.08) !important;
            border-right: none !important;
            padding: 10px 20px !important;
            gap: 8px !important;
            justify-content: center !important;
            background: white !important;
            box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
        }
        .hero-spacer {
            display: none !important;
        }
        
        /* Mobile: same clamp rule scales naturally with smaller viewport */
        .page-content > section:first-child:not(.usps),
        .page-content > .section-content:first-child {
            padding-top: clamp(20px, 4vh, 40px) !important;
        }
        
        .footer-inner {
            grid-template-columns: 1fr;
            gap: 32px;
            padding: 32px 20px 20px;
        }
        
        .footer-bottom {
            padding: 16px 20px;
            font-size: 12px;
        }

        /* Footer logo: use mobile logo size */
        .footer-logo img {
            height: var(--logo-size-mobile, 36px) !important;
        }
        
        .btn-primary, .btn-secondary {
            padding: 12px 24px;
            font-size: 15px;
        }
    }
