/*
 * App download page (Figma "Hakini Landing Page" > Final Design > "Landing Page"
 * 853:9810 and its Responsive frame). Builds on standard-page.css (hero, FAQ,
 * counselors, app banner) and landing.css (steps, reviews).
 */

/* ---- Hero -------------------------------------------------------------------- */

.apHero {
    min-height: 0;
    padding: 80px 0 72px;
}
.apHero .sHero__inner {
    justify-content: space-between;
}
.apHero__text {
    flex: 0 1 620px;
}
.apHero__title {
    font-size: 48px;
    line-height: 60px;
}
.apHero__lead {
    max-width: 560px;
    margin-top: 16px !important;
    font-size: 20px;
    line-height: 30px;
}
.apHero__art {
    flex: 0 1 511px;
    min-width: 0;
    line-height: 0;
}
.apHero__art img {
    width: 100%;
    height: auto;
}

.apPoints {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 28px 0 0 !important;
}
.apPoints li {
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: var(--sp-font-600);
    font-size: 20px;
    line-height: 28px;
}
.apPoints img {
    flex: none;
    width: 50px;
    height: 50px;
}
.apStores {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 36px;
}
.apStores a {
    line-height: 0;
}
.apStores img {
    width: auto;
    height: 56px;
}

/* ---- Strip ---------------------------------------------------------------------- */

.apStrip {
    background: #f8fafc;
}
.apStrip__list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 72px;
    padding: 52px 0 !important;
}
.apStrip__list li {
    display: flex;
    flex: none;
    align-items: center;
    gap: 20px;
    font-family: var(--sp-font-600);
    font-size: 22px;
}
.apStrip__icon {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
}
.apStrip__icon img {
    max-width: 44px;
    max-height: 34px;
}

/* ---- Trust cards ------------------------------------------------------------------ */

.apCards {
    padding-top: 80px;
}
.apCards__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}
.apCard {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 36px 24px 40px;
    border: 1px solid #e5e9f0;
    border-radius: 20px;
    background: #fff;
    text-align: center;
}
.apCard img {
    width: 215px;
    max-width: 100%;
    height: auto;
}
.apCard h2 {
    color: var(--sp-ink);
    font-family: var(--sp-font-600);
    font-size: 22px;
    line-height: 30px;
}
.apCards__note {
    max-width: 820px;
    margin-top: 24px !important;
    color: var(--sp-slate);
    font-size: 16px;
    line-height: 24px;
}

/* ---- Getting started ---------------------------------------------------------------- */

.apSteps {
    margin-top: 100px;
}
.apSteps .sHome__stepList li:nth-child(4) span {
    background: #dcf5e6;
    color: #12804a;
}
.apSteps .apStores {
    margin-top: 28px;
}
.apSteps__art img {
    width: 428px;
    max-width: 100%;
    height: auto;
    aspect-ratio: 1;
}
.apSteps__art figcaption small {
    display: block;
    max-width: 320px;
    margin: 6px auto 0;
    color: var(--sp-slate);
    font-family: var(--sp-font);
    font-size: 17px;
    line-height: 26px;
}

/* App banner points (test.app with appPoints) */
.sApp__points {
    margin-top: 20px !important;
}
.sApp__points li {
    font-size: 18px;
}
.sApp__points img {
    width: 42px;
    height: 42px;
}

/* ---- Tablet --------------------------------------------------------------------- */

@media (max-width: 1199px) {
    .apHero__title {
        font-size: 40px;
        line-height: 50px;
    }
    .apHero__art {
        flex-basis: 400px;
    }
    .apStrip__list {
        gap: 40px;
    }
    .apStrip__list li {
        font-size: 19px;
    }
}

/* ---- Phone ---------------------------------------------------------------------- */

@media (max-width: 767px) {
    .apHero {
        padding: 24px 0 40px;
    }
    /* QA: the page is for downloading, so the title and the store buttons come
       first on phones; the feature points and a smaller phone image follow. */
    .apHero .sHero__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
    }
    .apHero__text,
    .apHero__art {
        flex: none;
    }
    .apHero__text {
        display: flex;
        flex-direction: column;
    }
    .apHero__text .apPoints {
        order: 3;
        margin-top: 24px !important;
    }
    .apHero__art {
        width: 100%;
        max-width: 240px;
        margin: 0 auto;
    }
    .apHero__title {
        font-size: 26px;
        line-height: 34px;
    }
    .apHero__lead {
        font-size: 16px;
        line-height: 26px;
    }
    .apPoints {
        gap: 12px;
        margin-top: 20px !important;
    }
    .apPoints li {
        gap: 12px;
        font-size: 16px;
    }
    .apPoints img {
        width: 36px;
        height: 36px;
    }
    .apStores {
        margin-top: 24px;
    }
    .apStores img {
        height: 44px;
    }
    .apStrip__list {
        justify-content: flex-start;
        gap: 28px;
        margin: 0 auto !important;
        padding: 28px 20px !important;
        overflow-x: auto;
        scrollbar-width: none;
        max-width: none;
    }
    .apStrip__list::-webkit-scrollbar {
        display: none;
    }
    .apStrip__list li {
        gap: 12px;
        font-size: 16px;
    }
    .apStrip__icon {
        width: 52px;
        height: 52px;
        border-radius: 14px;
    }
    .apStrip__icon img {
        max-width: 32px;
        max-height: 26px;
    }
    .apCards {
        padding-top: 40px;
    }
    .apCards__list {
        grid-auto-columns: 240px;
        grid-auto-flow: column;
        grid-template-columns: none;
        gap: 16px;
        margin: 0 -20px !important;
        padding: 0 20px 4px !important;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }
    .apCards__list::-webkit-scrollbar {
        display: none;
    }
    .apCard {
        padding: 24px 16px 28px;
        scroll-snap-align: start;
    }
    .apCard img {
        width: 150px;
    }
    .apCard h2 {
        font-size: 17px;
        line-height: 24px;
    }
    .apCards__note {
        font-size: 15px;
    }
    .apSteps {
        margin-top: 56px;
    }
    .apSteps .sHome__stepsInner {
        flex-direction: column-reverse;
        align-items: stretch;
    }
    .apSteps__art img {
        width: 240px;
    }
    .apSteps__art figcaption {
        font-size: 22px;
    }
    .apSteps__art figcaption small {
        font-size: 15px;
    }
    .sApp__points li {
        font-size: 16px;
    }
}
