:root {
    color-scheme: light;
    font-family: Arial, Helvetica, sans-serif;
    color: #111827;
    background: #f5f7fa;
}

* {
    box-sizing: border-box;
}

body.app-install-page {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 18% 12%, rgba(31, 170, 219, 0.1), transparent 30rem),
        radial-gradient(circle at 82% 90%, rgba(253, 153, 56, 0.12), transparent 32rem),
        #f5f7fa;
}

.app-install {
    width: min(calc(100% - 32px), 960px);
    min-height: 100vh;
    margin: 0 auto;
    padding: clamp(22px, 4vw, 34px) 0 clamp(34px, 6vw, 52px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.app-install__brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: clamp(46px, 5vw, 52px);
    padding: 0 clamp(22px, 4vw, 32px);
    border-radius: 26px;
    background: #fd9938;
    color: #fff;
    font-size: clamp(19px, 2.4vw, 23px);
    font-weight: 800;
    letter-spacing: 0.045em;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(253, 153, 56, 0.22);
}

.app-install__intro {
    max-width: 700px;
    margin: clamp(34px, 6vw, 54px) auto clamp(26px, 4vw, 34px);
    text-align: center;
}

.app-install__eyebrow {
    margin: 0 0 10px;
    color: #1faadb;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.app-install h1 {
    margin: 0;
    font-size: clamp(32px, 5vw, 58px);
    line-height: 1.04;
    letter-spacing: -0.035em;
}

.app-install__lead {
    width: min(100%, 610px);
    margin: 18px auto 0;
    color: #667085;
    font-size: 18px;
    line-height: 1.55;
}

.app-install__choices {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(14px, 2.5vw, 22px);
}

.app-install-card {
    min-height: 0;
    padding: clamp(18px, 3vw, 26px);
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #e4e7ec;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 50px rgba(16, 24, 40, 0.08);
}

.app-install-card__platform {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
}

.app-install-card__platform p,
.app-install-card__platform h2 {
    margin: 0;
}

.app-install-card__platform p {
    margin-bottom: 3px;
    color: #667085;
    font-size: 14px;
}

.app-install-card__platform h2 {
    font-size: 22px;
}

.app-install-card__platform-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    font-size: 16px;
    font-weight: 800;
}

.app-install-card__platform-icon--android {
    background: #eaf7ee;
    color: #24864c;
}

.app-install-card__platform-icon--ios {
    background: #eef2f7;
    color: #344054;
}

.app-install-card__platform-icon svg {
    width: 30px;
    height: 30px;
    display: block;
}

.app-install-card__qr,
.app-install-card__placeholder {
    width: min(216px, 100%);
    aspect-ratio: 1;
    height: auto;
    margin: clamp(18px, 3vw, 24px) 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
}

.app-install-card__qr {
    background: #fff;
    border: 1px solid #eaecf0;
}

.app-install-card__qr img {
    width: min(196px, calc(100% - 20px));
    height: auto;
    aspect-ratio: 1;
    display: block;
}

.app-install-card__placeholder {
    border: 2px dashed #d0d5dd;
    background: #f8fafc;
    color: #667085;
}

.app-install-card__placeholder span {
    display: inline-flex;
    padding: 10px 18px;
    border-radius: 999px;
    background: #fff3e8;
    color: #d96f10;
    font-size: 24px;
    font-weight: 800;
}

.app-install__button {
    width: 100%;
    min-height: 52px;
    padding: 14px 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: #fd9938;
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(253, 153, 56, 0.2);
}

.app-install__button:hover,
.app-install__button:focus-visible {
    background: #f18722;
}

.app-install__button--disabled {
    background: #eaecf0;
    color: #667085;
    box-shadow: none;
}

.app-install__site-link {
    margin-top: 28px;
    color: #157fa7;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
}

.app-install__site-link:hover,
.app-install__site-link:focus-visible {
    text-decoration: underline;
}

.app-install__soon {
    width: min(100%, 620px);
    margin: auto 0;
    padding: 46px;
    border: 1px solid #e4e7ec;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.96);
    text-align: center;
    box-shadow: 0 18px 50px rgba(16, 24, 40, 0.08);
}

.app-install__phone-icon {
    width: 92px;
    height: 92px;
    margin: 0 auto 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 7px solid #101828;
    border-radius: 24px;
    background: #fff;
    color: #101828;
    box-shadow: inset 0 -8px 0 #f2f4f7;
}

.app-install__phone-icon span {
    font-size: 19px;
    font-weight: 800;
}

.app-install__soon .app-install__button {
    max-width: 330px;
    margin-top: 30px;
}

@media (max-width: 720px) {
    .app-install {
        width: min(100% - 24px, 520px);
        padding: 22px 0 28px;
    }

    .app-install__brand {
        min-height: 46px;
        padding: 0 24px;
        border-radius: 23px;
        font-size: 19px;
    }

    .app-install__intro {
        margin: 38px auto 26px;
    }

    .app-install__lead {
        font-size: 16px;
    }

    .app-install__choices {
        grid-template-columns: 1fr;
    }

    .app-install__soon {
        margin: auto 0;
        padding: 34px 22px;
        border-radius: 24px;
    }
}

@media (max-width: 420px) {
    .app-install__intro {
        margin-top: 30px;
    }

    .app-install__lead {
        font-size: 15px;
        line-height: 1.45;
    }

    .app-install-card {
        border-radius: 22px;
        padding: 18px 16px;
    }

    .app-install-card__platform {
        gap: 11px;
    }

    .app-install-card__platform h2 {
        font-size: 20px;
    }

    .app-install__button {
        min-height: 48px;
        padding: 12px 16px;
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .app-install__button,
    .app-install__site-link {
        transition: background-color 160ms ease, color 160ms ease;
    }
}
