/* =====================================================================
   App-download promo popup (home page)
   The artwork (assets/images/app_popup.png) already contains the QR code,
   cashback graphic, phone mockup and the 3 feature chips. This stylesheet
   only lays the interactive buttons (Download Now + the two store badges)
   over the empty area beneath the QR, matching the reference design.
   Buttons scale with the popup width via container-query units (cqw).
   ===================================================================== */

.app-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.app-popup {
    position: relative;
    width: 100%;
    max-width: 920px;
    container-type: inline-size;
}

.app-popup-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.app-popup-close {
    position: absolute;
    top: -16px;
    right: -16px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 3px solid #fff;
    background: #ff2d2d;
    color: #fff;
    font-size: 35px !important;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.app-popup-close:hover {
    background: #e01f1f;
}

/* Buttons overlaid on the lower-left of the artwork, under the QR code. */
.app-popup-actions {
    position: absolute;
    left: 6%;
    top: 68%;
    width: 30%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.6cqw;
}

.app-popup-download {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1.2cqw;
    background: linear-gradient(90deg, #3f34e0, #7b2ff7);
    color: #fff;
    font-weight: 900;
    font-size: 2.7cqw;
    padding: 1.2cqw 1.5cqw;
    border-radius: 14px;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    margin-top: 10px;
}

.app-popup-download:hover {
    filter: brightness(1.08);
    color: #fff;
    text-decoration: none;
}

.app-popup-stores {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2cqw;
    width: 100%;
}

.app-popup-stores a {
    display: inline-flex;
}

.app-popup-stores img {
    height: 4cqw;
    width: auto;
    border-radius: 10px;
}

/* On small screens the overlay text would be too small to read, so drop the
   buttons into a readable bar directly beneath the artwork instead. */
@media (max-width: 600px) {
    .app-popup-actions {
        position: static;
        width: 100%;
        background: #0a1550;
        padding: 12px;
        gap: 10px;
        border-radius: 0 0 10px 10px;
        margin-top: -6px;
    }

    .app-popup-download {
        font-size: 15px;
        padding: 10px 18px;
        gap: 8px;
        width: auto;
    }

    .app-popup-stores {
        gap: 12px;
    }

    .app-popup-stores img {
        height: 40px;
    }
}
