:root {
    --win_width: 100vw;
    --win_height: 100vh;
}

.app-page {
    background: #fff;
    min-width: 320px;
}

.app-page a:focus-visible,
.app-page button:focus-visible {
    outline: 3px solid #99c334 !important;
    outline-offset: 5px;
}

.app-download {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;
}

.app-download__background {
    position: absolute;
    inset: 0 0 auto;
    pointer-events: none;
}

.app-download__background img {
    display: block;
    width: 100%;
    height: auto;
}

.app-download__layout {
    display: grid;
    grid-template-rows: auto minmax(80px, 1fr) auto;
    box-sizing: border-box;
    height: 100vh;
    height: 100svh;
    position: relative;
    margin: 0 16px;
    padding-top: 120px;
    padding-bottom: 24px;
}

.app-download__heading {
    position: relative;
    z-index: 2;
}

.app-download h1 {
    margin: 0;
    font-size: clamp(32px, 10.7527vw, 64px);
    line-height: .9;
    letter-spacing: -0.025em;
    font-weight: 700;
    background: linear-gradient(180deg, #453670, #8467d6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.app-download h1 span {
    display: block;
}

.app-download__now {
    display: table;
    position: relative;
    box-sizing: border-box;
    width: calc(100% + 10px);
    margin: 22px 0 0 -6px;
    padding: 6px 12px 10px;
    border-radius: 60px;
    background: #99c334;
    color: #fff;
    font-size: clamp(32px, 10.7527vw, 64px);
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.025em;
    white-space: nowrap;
    text-align: center;
    transform: rotate(-2deg);
}

.app-download__phone {
    position: relative;
    align-self: end;
    justify-self: center;
    aspect-ratio: 1;
    width: auto;
    height: 100%;
    max-width: 100%;
    max-height: calc(100vw - 32px);
    margin: 0;
}

.app-download__phone img {
    display: block;
    width: 100%;
    height: auto;
}

.app-download__arrow {
    position: absolute;
    z-index: 3;
    top: 7%;
    left: 40%;
    width: 28%;
    pointer-events: none;
}

.app-download__arrow img {
    display: block;
    width: 100%;
}

.app-download__stores {
    display: grid;
    position: relative;
    z-index: 4;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: 16px;
    background: #E6E4FE;
    border-radius: 24px;
}

.app-store {
    display: block;
    min-width: 0;
    border-radius: 9px;
    line-height: 0;
}

.app-store img {
    display: block;
    width: 100%;
    height: auto;
}

a.app-store {
    transition: transform .2s ease;
}

a.app-store:hover {
    transform: translateY(-3px);
}

@media (min-width: 600px) and (max-width: 1279px) {
    .app-download__layout {
        margin: 0 40px;
        padding-top: 174px;
        padding-bottom: 80px;
    }

    .app-download h1 {
        font-size: clamp(64px, 10.7527vw, 80px);
        line-height: .9;
    }

    .app-download__now {
        width: min(574px, 100%);
        margin-top: 28px;
        margin-left: -2px;
        padding: 6px 24px 8px;
        font-size: clamp(64px, 10.7527vw, 80px);
    }

    .app-download__phone {
        max-height: 571px;
    }

    .app-download__arrow {
        top: 3.5%;
        left: 40%;
        width: 29%;
    }

    .app-download__stores {
        padding: 32px;
        gap: 32px;
    }
}

@media (min-width: 1280px) {
    .app-download__background {
        width: 100%;
    }

    .app-download__layout {
        display: block;
        width: 1130px;
        height: 960px;
        margin: 0 auto;
        padding: 0;
    }

    .app-download__heading {
        position: absolute;
        top: 286px;
        left: 488px;
        width: 650px;
    }

    .app-download h1 {
        font-size: 80px;
        line-height: .9;
    }

    .app-download__now {
        width: 574px;
        margin-top: 27px;
        margin-left: -3px;
        padding: 4px 24px 10px;
        font-size: 80px;
    }

    .app-download__phone {
        position: absolute;
        top: 114px;
        left: -52px;
        width: 571px;
        height: auto;
        max-height: none;
        margin: 0;
    }

    .app-download__arrow {
        top: 290px;
        left: 226px;
        width: 309px;
    }

    .app-download__stores {
        position: absolute;
        top: 666px;
        left: 0;
        right: 0;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 32px;
        padding: 32px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .app-page *,
    .app-page *::before,
    .app-page *::after {
        transition: none !important;
    }
}
