/* App download banner */
.home-app-download {
    padding-block: clamp(2.5rem, 5vw, var(--section-spacing));
}

.home-app-download-card {
    position: relative;
    overflow: hidden;
    border-radius: clamp(1.5rem, 3.5vw, 2.35rem);
    background: linear-gradient(135deg,
            var(--primary) 0%,
            color-mix(in srgb, var(--primary) 78%, #0f172a) 100%);
    box-shadow:
        0 28px 64px rgba(var(--primary-rgb), 0.32),
        0 10px 28px rgba(15, 23, 42, 0.1),
        0 0 56px rgba(var(--primary-rgb), 0.38);
    animation: home-app-download-glow 4.5s ease-in-out infinite;
}

.home-app-download-card::before {
    content: '';
    position: absolute;
    top: -18%;
    left: -8%;
    width: 42%;
    height: 70%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 68%);
    pointer-events: none;
    z-index: 0;
}

.home-app-download-card::after {
    content: '';
    position: absolute;
    right: -6%;
    bottom: -12%;
    width: min(58%, 26rem);
    height: 72%;
    border-radius: 50%;
    background: radial-gradient(ellipse at center,
            rgba(125, 211, 252, 0.42) 0%,
            rgba(var(--primary-rgb), 0.28) 38%,
            transparent 72%);
    filter: blur(8px);
    pointer-events: none;
    z-index: 0;
    animation: home-app-screen-ambient 3.8s ease-in-out infinite alternate;
}

@keyframes home-app-download-glow {

    0%,
    100% {
        box-shadow:
            0 28px 64px rgba(var(--primary-rgb), 0.02),
            0 10px 28px rgba(15, 23, 42, 0.01),
            0 0 48px rgba(var(--primary-rgb), 0.04),
            0 0 96px rgba(var(--primary-rgb), 0.08);
    }

    50% {
        box-shadow:
            0 34px 76px rgba(var(--primary-rgb), 0.04),
            0 14px 34px rgba(15, 23, 42, 0.02),
            0 0 68px rgba(var(--primary-rgb), 0.12),
            0 0 120px rgba(var(--primary-rgb), 0.32);
    }
}

@keyframes home-app-screen-ambient {
    0% {
        opacity: 0.72;
        transform: scale(0.96);
    }

    100% {
        opacity: 1;
        transform: scale(1.04);
    }
}

.home-app-download-grid {
    min-height: clamp(20rem, 38vw, 28rem);
}

.home-app-download-copy {
    position: relative;
    z-index: 2;
    padding: clamp(2.25rem, 5vw, 3.75rem);
    padding-right: clamp(1rem, 2vw, 1.5rem);
}

.home-app-download-title {
    margin: 0 0 0.85rem;
    max-width: 12ch;
    font-size: clamp(2rem, 5vw, 3.15rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: white;
}

.home-app-download-lead {
    margin: 0;
    max-width: 36ch;
    font-size: clamp(0.95rem, 1.7vw, 1.12rem);
    line-height: 1.7;
    color: rgba(30, 41, 59, 0.82);
}

.home-app-download-stores {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: clamp(1.5rem, 3.5vw, 2.1rem);
}

.home-store-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.62rem 1.25rem;
    min-width: 11.5rem;
    border-radius: 11px;
    text-decoration: none;
    transition:
        transform 0.22s var(--ease-out),
        box-shadow 0.22s var(--ease-out);
}

.home-store-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.home-store-btn .bi {
    font-size: 1.65rem;
    line-height: 1;
}

.home-store-btn span {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.home-store-btn small {
    font-size: 0.58rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: capitalize;
    opacity: 0.88;
}

.home-store-btn strong {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.home-store-btn--apple {
    background: #fff;
    color: #0f172a;
}

.home-store-btn--google {
    background: #0f172a;
    color: #fff;
}

.home-app-download-visual {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    min-height: clamp(16rem, 32vw, 24rem);
    padding: 0;
}

.home-app-download-mockup-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    pointer-events: none;
}

.home-app-download-mockup-wrap::before {
    content: '';
    position: absolute;
    right: 0;
    bottom: 8%;
    width: min(92%, 34rem);
    height: 62%;
    border-radius: clamp(0.95rem, 2vw, 1.25rem);
    background: radial-gradient(ellipse at 42% 38%,
            rgba(56, 189, 248, 0.55) 0%,
            rgba(var(--primary-rgb), 0.32) 34%,
            transparent 72%);
    filter: blur(22px);
    transform: translate(8%, 14%);
    z-index: 0;
    animation: home-app-mockup-glow 3.6s ease-in-out infinite alternate;
}

@keyframes home-app-mockup-glow {
    0% {
        opacity: 0.65;
        filter: blur(20px);
    }

    100% {
        opacity: 1;
        filter: blur(28px);
    }
}

.home-app-download-mockup {
    position: relative;
    z-index: 1;
    display: block;
    width: min(125%, 38rem);
    max-width: none;
    border-radius: clamp(0.95rem, 2vw, 1.25rem);
    border: 3px solid rgba(255, 255, 255, 0.42);
    box-shadow:
        0 32px 64px rgba(15, 23, 42, 0.24),
        0 10px 24px rgba(15, 23, 42, 0.14),
        0 0 36px rgba(56, 189, 248, 0.45),
        0 0 72px rgba(var(--primary-rgb), 0.32),
        inset 0 0 24px rgba(56, 189, 248, 0.12);
    transform: translate(8%, 14%);
    object-fit: cover;
    object-position: left top;
    aspect-ratio: 16 / 11;
    animation: home-app-mockup-shine 4.2s ease-in-out infinite alternate;
}

@keyframes home-app-mockup-shine {
    0% {
        box-shadow:
            0 32px 64px rgba(15, 23, 42, 0.24),
            0 10px 24px rgba(15, 23, 42, 0.14),
            0 0 30px rgba(56, 189, 248, 0.38),
            0 0 60px rgba(var(--primary-rgb), 0.26),
            inset 0 0 18px rgba(56, 189, 248, 0.1);
    }

    100% {
        box-shadow:
            0 36px 72px rgba(15, 23, 42, 0.28),
            0 12px 28px rgba(15, 23, 42, 0.16),
            0 0 48px rgba(56, 189, 248, 0.58),
            0 0 96px rgba(var(--primary-rgb), 0.4),
            inset 0 0 32px rgba(125, 211, 252, 0.18);
    }
}

@media (max-width: 991.98px) {
    .home-app-download-grid {
        min-height: auto;
    }

    .home-app-download-copy {
        padding: clamp(1.5rem, 5vw, 2rem);
        padding-bottom: 0.5rem;
        text-align: center;
    }

    .home-app-download-title {
        max-width: none;
        margin-inline: auto;
    }

    .home-app-download-lead {
        max-width: 36ch;
        margin-inline: auto;
    }

    .home-app-download-stores {
        justify-content: center;
    }

    .home-app-download-visual {
        min-height: auto;
        padding: 0 clamp(1rem, 4vw, 1.5rem) clamp(1.25rem, 4vw, 1.75rem);
        justify-content: center;
    }

    .home-app-download-mockup {
        width: min(100%, 22rem);
        transform: translate(0, 0);
        margin-inline: auto;
    }

    .home-app-download-mockup-wrap::before {
        width: min(100%, 22rem);
        left: 50%;
        right: auto;
        transform: translate(-50%, 0);
    }
}

@media (prefers-reduced-motion: reduce) {

    .home-app-download-card,
    .home-app-download-card::after,
    .home-app-download-mockup-wrap::before,
    .home-app-download-mockup {
        animation: none;
    }
}

@media (max-width: 575.98px) {
    .home-app-download-stores {
        flex-direction: column;
        align-items: stretch;
    }

    .home-store-btn {
        justify-content: center;
        min-width: 0;
        width: 100%;
    }

    .home-app-download-mockup {
        width: 100%;
        max-width: 100%;
        aspect-ratio: 16 / 10;
    }
}