/* —— Homepage hero (home-lead-page) —— */
    @media (max-width: 768px) {
        body.home-lead-page .hero-v2 {
            padding: 0 0 1.5rem;
        }
        body.home-lead-page .hero-inner {
            padding: 0 1rem;
        }
        body.home-lead-page .hero-shell-lead {
            grid-template-columns: 1fr;
            text-align: center;
            padding-top: 1rem;
        }
        body.home-lead-page .hero-copy {
            align-items: center;
        }
        body.home-lead-page .hero-cta-row {
            justify-content: stretch;
            width: 100%;
        }
        body.home-lead-page .hero-cta-row .btn {
            flex: 1 1 100%;
            width: 100%;
        }
        body.home-lead-page .hero-pills {
            justify-content: center;
        }
        body.home-lead-page .hero-stat-cards {
            grid-template-columns: 1fr;
            width: 100%;
        }
        body.home-lead-page .hero-product-shell {
            margin-top: 1rem;
            border-radius: 1rem;
        }
        body.home-lead-page .home-quick-nav-inner {
            justify-content: flex-start;
        }
        body.home-lead-page .home-quick-nav .home-quick-link {
            flex: 1 1 calc(50% - 0.35rem);
            justify-content: center;
            min-width: 0;
        }
        body.home-lead-page .home-quick-nav .home-quick-link--primary {
            flex: 1 1 100%;
        }
    }

    /* —— Global mobile shell (all m-site pages) —— */
    @media (max-width: 768px) {
        body.m-site {
            scroll-padding-top: 4.25rem;
        }
        .page-hero {
            padding: 1.75rem 1rem 2.25rem;
        }
        .page-hero h1 {
            max-width: none;
            font-size: clamp(1.55rem, 6.5vw, 2rem);
        }
        .page-hero .lead {
            font-size: 0.98rem;
            max-width: none;
        }
        .hero-cta {
            flex-direction: column;
            align-items: stretch;
        }
        .hero-cta .btn {
            width: 100%;
            justify-content: center;
        }
        .hero-meta,
        .m-site .hero-pills {
            gap: 0.4rem;
        }
        .section {
            padding: 2rem 1rem;
        }
        .section h2 {
            font-size: 1.35rem;
        }
        .m-site .home-sec {
            padding: 2rem 0;
        }
        .m-site .home-sec-inner {
            padding: 0 1rem;
        }
        .grid-2,
        .grid-3 {
            grid-template-columns: 1fr;
        }
        .two-col {
            grid-template-columns: 1fr;
        }
        .checkbox-grid {
            grid-template-columns: 1fr;
        }
        .link-grid-cards {
            grid-template-columns: 1fr;
        }
        .biz-grid,
        .features-grid,
        .modules-grid {
            grid-template-columns: 1fr;
        }
        .products-grid,
        .portfolio-grid,
        .blog-grid,
        .related-grid,
        .compare-grid,
        .mini-products {
            grid-template-columns: 1fr;
        }
        .split-banner {
            flex-direction: column;
            align-items: flex-start;
            padding: 1.15rem 1.2rem;
        }
        .cta-banner,
        .cta-band {
            flex-direction: column;
            align-items: stretch;
            text-align: left;
        }
        .cta-banner .btn-primary,
        .cta-band .btn-primary {
            width: 100%;
        }
        .page-header-center .page-hero {
            padding-bottom: 2rem;
        }
        .hero-stats {
            gap: 0.5rem;
        }
        .hero-stat {
            min-width: calc(50% - 0.35rem);
            flex: 1 1 calc(50% - 0.35rem);
        }
        .about-stats {
            grid-template-columns: repeat(2, 1fr);
        }
        .card-actions {
            flex-direction: column;
        }
        .card-actions .btn-card-primary,
        .card-actions .btn-card-secondary {
            width: 100%;
            text-align: center;
        }
        .project-actions {
            flex-direction: column;
        }
        .project-actions a {
            width: 100%;
            text-align: center;
        }
        .pricing-banner {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }
        .pricing-banner .btn-primary {
            width: 100%;
        }
        .features-row {
            grid-template-columns: 1fr;
        }
        .page-cta-band {
            padding: 2rem 1rem;
        }
        .page-cta-band-actions {
            flex-direction: column;
            align-items: stretch;
        }
        .page-cta-band-actions .btn {
            width: 100%;
        }
        .error-page {
            min-height: auto;
            padding: 2rem 1rem;
        }
        .article-body {
            max-width: none;
        }
        .portal-links {
            flex-direction: column;
            align-items: stretch;
        }
        .portal-links a {
            text-align: center;
        }
    }

    @media (max-width: 480px) {
        .about-stats {
            grid-template-columns: 1fr 1fr;
        }
        .hero-stat {
            min-width: 100%;
        }
        .breadcrumb {
            font-size: 0.78rem;
        }
        .home-product-nav {
            flex-direction: column;
            align-items: stretch;
        }
        .home-product-nav a {
            justify-content: center;
        }
    }

    /* Prevent horizontal scroll from wide tables / pre */
    @media (max-width: 768px) {
        body.m-site,
        body.home-lead-page {
            overflow-x: hidden;
        }
        img,
        video {
            max-width: 100%;
            height: auto;
        }
    }
