/*
 * 0K1 homepage: mobile scroll/paint budget.
 * Scoped to the homepage and <=767px. Desktop, other routes and the mobile
 * drawer's interaction styles are intentionally untouched.
 *
 * Mana reference: 25b70c1 (GPU/backdrop sampling), b728f62 (reverted
 * content-visibility:auto after delayed scroll reveals).
 * No offscreen content hiding, no scroll listeners and no new animations.
 */
@media (max-width: 767px) {
    /* The five giant blurred FIXED background/noise layers force expensive
       repaint/compositing during each scroll gesture on mobile GPUs. */
    body.ok1-home-scroll::before,
    body.ok1-home-scroll::after {
        content: none !important;
        display: none !important;
    }

    body.ok1-home-scroll .ok1-site-neon-bg {
        display: none !important;
    }

    /* Preserve the light/dark palette supplied by the site settings; the
       gradients/glass ornaments are decorative, not content. */
    body.ok1-home-scroll {
        background-image: none !important;
    }

    /* Repeated large blurred accent shapes within the homepage and footer
       are purely decorative. Removing the layers avoids mobile paint spikes. */
    /* Match actual filter-blur utility TOKENS only. Do NOT match
       'backdrop-blur-*' on interactive badges or buttons. */
    body.ok1-home-scroll main [class~="blur-[120px]"],
    body.ok1-home-scroll main [class~="blur-[100px]"],
    body.ok1-home-scroll main [class~="blur-3xl"] {
        display: none !important;
    }

    /* Keep card borders, colors and rounded corners, but stop sampling pixels
       behind dozens of translucent glass panels while the page scrolls. */
    body.ok1-home-scroll main [class*="backdrop-blur"],
    body.ok1-home-scroll main [style*="backdrop-filter"] {
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
    }

    /* Expensive extra-large arbitrary card shadows are cosmetic on phones.
       Leave normal small shadows in place for visible depth. */
    body.ok1-home-scroll main section [class*="shadow-[0_"],
    body.ok1-home-scroll main section [class*="shadow-2xl"] {
        box-shadow: none !important;
    }

    /* AOS is not initialized on phones. This safeguard also prevents hidden
       / translated sections if a future script adds AOS attributes to body. */
    body.ok1-home-scroll main section[data-aos] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    /* Decorative continuous glows add animation frames throughout a very
       long page. Do not alter the FAQ accordion, slider or drawer controls. */
    body.ok1-home-scroll main .animate-ping,
    body.ok1-home-scroll main .animate-pulse,
    body.ok1-home-scroll main .animate-bounce {
        animation: none !important;
    }
}

/* Only touch phones: avoid synthetic :hover states triggering card lifts
   during finger scrolling. Real click/keyboard interactions stay intact. */
@media (max-width: 767px) and (hover: none) and (pointer: coarse) {
    body.ok1-home-scroll main section [class*="group-hover:scale"],
    body.ok1-home-scroll main section [class*="group-hover:-translate"] {
        transform: none !important;
    }
}
