/* Mobile app download section (partials/app_download_section.html); store badges are in footer.css */
.app-section {
    padding-block: clamp(2.5rem, 6vw, 4rem);
    /* Clears the sticky navbar when opened via /#get-the-app */
    scroll-margin-top: calc(80px - clamp(1rem, 4vw, 2.5rem));
}

.app-download {
    --android: #15803d;
    --apple: #042775;
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1.75rem, 4vw, 2.75rem);
    align-items: center;
    padding: clamp(1.75rem, 5vw, 3rem);
    color: #042775;
    background: #e6f6fe;
    border: 1px solid rgba(0, 171, 240, 0.18);
    border-radius: 20px;
}

.app-download__glow {
    display: none;
}

.app-download__eyebrow {
    margin: 0 0 0.75rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #5b6472;
}

.app-download__title,
main .app-download__title {
    margin: 0 0 0.85rem;
    font-family: "Barlow Condensed", sans-serif;
    font-size: clamp(2.2rem, 1.8vw + 1.6rem, 2.9rem);
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.05;
    color: #042775;
}

.app-download__text {
    margin: 0 0 1.25rem;
    max-width: 44ch;
    font-size: 1rem;
    line-height: 1.65;
    color: #4a5361;
}

.app-download__perks {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.app-download__perks li {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.8rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #042775;
    background: #fff;
    border: 1px solid rgba(4, 39, 117, 0.12);
    border-radius: 999px;
}

.app-download__perks li::before {
    content: "";
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: #c6e04a;
    box-shadow: 0 0 0 1px rgba(4, 39, 117, 0.15);
}

.app-download__platforms {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
    gap: 1rem;
}

.app-platform {
    --accent: #042775;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.1rem 1rem 1.15rem;
    text-align: center;
    background: #fff;
    border: 1px solid rgba(4, 39, 117, 0.1);
    border-radius: 14px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.app-platform:hover {
    transform: translateY(-2px);
    border-color: rgba(4, 39, 117, 0.22);
    box-shadow: 0 14px 28px -20px rgba(4, 39, 117, 0.3);
}

.app-platform--android {
    --accent: var(--android);
}

.app-platform--apple {
    --accent: var(--apple);
}

.app-platform__name {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent);
}

.app-platform__name svg {
    width: 1.2rem;
    height: 1.2rem;
}

.app-platform__qr {
    display: none;
    padding: 0.6rem;
    background: #fff;
    border: 1px solid rgba(4, 39, 117, 0.12);
    border-radius: 12px;
    transition: transform 0.2s ease;
}

.app-platform__qr:hover {
    transform: scale(1.03);
}

.app-platform__qr img {
    display: block;
    width: 132px;
    height: 132px;
    object-fit: contain;
}

.app-platform__hint {
    display: none;
    margin: -0.2rem 0 0;
    font-size: 0.8125rem;
    color: #5b6472;
}

.app-platform .app-badges {
    justify-content: center;
}


/* Width wrapper for pages without a .container */
.app-section__wrap {
    max-width: 72rem;
    margin: 0 auto;
    padding-inline: clamp(1.25rem, 5vw, 3rem);
}

/* QR codes only help on desktop; phones use the store buttons */
@media (min-width: 768px) {
    .app-download {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    }

    .app-platform__qr,
    .app-platform__hint {
        display: block;
    }
}
