.lp-page [data-role-tabs][hidden],
.lp-page [data-role-panel][hidden] {
    display: none !important;
}

.lp-motion-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding-inline: .8rem;
    border: 1px solid #325675;
    border-radius: 999px;
    background: #061523;
    color: #cfe0ef;
    font: inherit;
    font-size: .79rem;
    font-weight: 600;
    cursor: pointer;
}

.lp-motion-toggle:hover {
    border-color: #70a9cb;
    color: #fff;
}

.lp-hero-glow {
    position: absolute;
    inset-block-start: 0;
    inset-inline-start: 43%;
    width: 56%;
    height: 80%;
    background: radial-gradient(ellipse at 65% 40%, #74bcff33, transparent 70%);
    opacity: 0;
    pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
    .lp-page ::highlight(lp-typing) { color: transparent; text-shadow: none; }

    html:has(body.lp-page:not([data-motion-paused])) {
        scroll-behavior: smooth;
    }

    .lp-page:not([data-motion-paused]) :is(.lp-button, .lp-text-link, .lp-card-link) .lp-arrow {
        transition: translate 180ms ease-out;
    }

    .lp-page:not([data-motion-paused]) :is(.lp-button, .lp-text-link, .lp-card-link):is(:hover, :focus-visible) .lp-arrow {
        translate: 3px 0;
    }

    .lp-page:not([data-motion-paused]) :is(.lp-menu, .lp-faq-item)[open] > :not(summary) {
        animation: lp-disclosure-in 190ms ease-out;
    }

    .lp-page [data-ambient-motion="playing"] { --lp-ambient-play-state: running; }

    .lp-hero-art[data-ambient-motion] img {
        transform-origin: 76% 57%;
        animation: lp-hero-drift 9s ease-in-out infinite alternate;
        animation-play-state: var(--lp-ambient-play-state, paused);
    }

    .lp-hero-art[data-ambient-motion] .lp-hero-glow {
        animation: lp-hero-light 8s ease-in-out infinite alternate;
        animation-play-state: var(--lp-ambient-play-state, paused);
    }

    .lp-page :is(.lp-activity-preview, .lp-cta-preview)[data-ambient-motion] {
        position: relative;
    }

    .lp-page :is(.lp-activity-preview, .lp-cta-preview)[data-ambient-motion]::before {
        position: absolute;
        inset: 0;
        z-index: 2;
        border: 1px solid #69c5ff70;
        border-radius: inherit;
        box-shadow: inset 0 0 26px #5bbdff38;
        animation: lp-preview-light 5s ease-in-out infinite alternate;
        animation-play-state: var(--lp-ambient-play-state, paused);
        pointer-events: none;
        content: "";
    }
}

@keyframes lp-hero-drift {
    from { transform: scale(1); }
    to { transform: scale(1.024); }
}

@keyframes lp-hero-light {
    from { opacity: .12; transform: scale(1) translateX(0); }
    to { opacity: .72; transform: scale(1.1) translateX(-6%); }
}

@keyframes lp-preview-light {
    from { opacity: .12; }
    to { opacity: .72; }
}

@keyframes lp-disclosure-in {
    from { opacity: 0.45; translate: 0 -4px; }
    to { opacity: 1; translate: 0 0; }
}
