/* SELION.AI download surface — compact, conversion-first Cinematic Atelier. */

body.site-template.site-download main > .hero {
    min-height: calc(100svh - var(--site-header-height));
    padding-block: clamp(4.5rem, 9vh, 7rem);
    background:
        linear-gradient(90deg, rgba(10, 10, 15, 0.99) 0%, rgba(10, 10, 15, 0.91) 44%, rgba(10, 10, 15, 0.38) 100%),
        url("/assets/images/home-cinematic/agent-alice-cinematic.webp") 82% 34% / min(62rem, 62vw) auto no-repeat,
        var(--site-canvas-soft);
}

body.site-template.site-download .hero-eyebrow {
    margin-bottom: 1rem;
    letter-spacing: 0.2em;
}

body.site-template.site-download .hero :is(h1, .hero-title) {
    max-width: 10ch;
    font-size: clamp(3.5rem, 6.4vw, 6.5rem);
    letter-spacing: -0.04em;
    line-height: 0.94;
}

body.site-template.site-download .hero :is(p, .hero-subtitle) {
    max-width: 34rem;
    margin-top: 1.35rem;
    line-height: 1.58;
}

body.site-template.site-download .hero-store-btn {
    min-width: 12.75rem;
    min-height: 3.5rem;
    border-color: rgba(224, 224, 236, 0.34);
    border-radius: 0.5rem;
}

body.site-template.site-download .hero-store-btn svg {
    width: 1.5rem;
    height: 1.5rem;
}

body.site-template.site-download .hero-store-btn + .hero-store-btn {
    background: rgba(10, 10, 15, 0.62);
    color: var(--site-ink);
    backdrop-filter: blur(0.75rem);
    -webkit-backdrop-filter: blur(0.75rem);
}

body.site-template.site-download .hero-details {
    margin-top: 2.5rem;
}

body.site-template.site-download .footer {
    content-visibility: auto;
    contain-intrinsic-size: 42rem;
}

@media (max-width: 64rem) {
    body.site-template.site-download main > .hero {
        background:
            linear-gradient(90deg, rgba(10, 10, 15, 0.98) 0%, rgba(10, 10, 15, 0.85) 58%, rgba(10, 10, 15, 0.38) 100%),
            url("/assets/images/home-cinematic/agent-alice-cinematic.webp") 84% 24% / auto 100% no-repeat,
            var(--site-canvas-soft);
    }
}

@media (max-width: 48rem) {
    body.site-template.site-download main > .hero,
    body.site-template.site-download main > .hero:has(.inbound-share) {
        min-height: calc(100svh - var(--site-header-height));
        align-content: end;
        padding-block: clamp(20rem, 48svh, 25rem) max(1.25rem, env(safe-area-inset-bottom));
        background:
            linear-gradient(180deg, rgba(10, 10, 15, 0.02) 0%, rgba(10, 10, 15, 0.08) 34%, rgba(10, 10, 15, 0.72) 62%, rgba(10, 10, 15, 0.98) 82%, #0a0a0f 100%),
            image-set(
                url("/assets/images/home-cinematic/discover-alice.avif") type("image/avif"),
                url("/assets/images/home-cinematic/discover-alice.jpg") type("image/jpeg")
            ) 50% 18% / cover no-repeat,
            var(--site-canvas-soft);
    }

    body.site-template.site-download .hero-eyebrow {
        display: none;
    }

    body.site-template.site-download .hero :is(h1, .hero-title) {
        max-width: 9.5ch;
        font-size: clamp(2.55rem, 12vw, 3.15rem);
        letter-spacing: -0.035em;
        line-height: 0.96;
    }

    body.site-template.site-download .hero :is(p, .hero-subtitle) {
        max-width: 31ch;
        margin-top: 0.9rem;
        color: rgba(244, 244, 248, 0.76);
        font-size: 0.96rem;
        line-height: 1.48;
    }

    body.site-template.site-download .hero-buttons {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 0.55rem;
        width: 100%;
        margin-top: 1.15rem;
    }

    body.site-template.site-download .hero-store-btn {
        width: 100%;
        min-width: 0;
        min-height: 3.35rem;
        justify-content: flex-start;
        padding: 0.65rem 1.15rem;
        gap: 0.85rem;
    }

    body.site-template.site-download .hero-store-btn svg {
        width: 1.45rem;
        height: 1.45rem;
    }

    body.site-template.site-download .store-text-small {
        font-size: 0.55rem;
    }

    body.site-template.site-download .store-text-big {
        font-size: 0.84rem;
        letter-spacing: 0.02em;
        white-space: nowrap;
    }

    body.site-template.site-download .hero-details {
        display: none;
    }
}

@media (max-width: 22.5rem) {
    body.site-template.site-download main > .hero,
    body.site-template.site-download main > .hero:has(.inbound-share) {
        padding-block-start: clamp(17rem, 44svh, 20rem);
    }
}

@media (max-height: 31.25rem) and (orientation: landscape) {
    body.site-template.site-download main > .hero,
    body.site-template.site-download main > .hero:has(.inbound-share) {
        min-height: 34rem;
        padding-block: 6rem 2rem;
        background:
            linear-gradient(90deg, rgba(10, 10, 15, 0.98) 0%, rgba(10, 10, 15, 0.84) 56%, rgba(10, 10, 15, 0.28) 100%),
            url("/assets/images/home-cinematic/agent-alice-cinematic.webp") 82% 20% / auto 100% no-repeat,
            var(--site-canvas-soft);
    }

    body.site-template.site-download .hero-buttons {
        grid-template-columns: repeat(2, minmax(0, 12.75rem));
    }
}

@media (prefers-reduced-transparency: reduce) {
    body.site-template.site-download .hero-store-btn + .hero-store-btn {
        background: var(--site-canvas);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}
