/*
|--------------------------------------------------------------------------
| App Call To Action
|--------------------------------------------------------------------------
*/

.public-site .app-cta {
    position: relative;

    overflow: hidden;

    background:
        linear-gradient(
            112deg,
            color-mix(
                in srgb,
                var(--brand) 10%,
                var(--surface, #ffffff)
            ),
            color-mix(
                in srgb,
                var(--gold) 16%,
                var(--surface-soft, #fff8f6)
            )
        );

    color: var(--text, #211d1c);

    border-top:
        1px solid
        color-mix(
            in srgb,
            var(--brand) 15%,
            var(--border, #e8e4e2)
        );

    border-bottom:
        1px solid
        color-mix(
            in srgb,
            var(--brand) 15%,
            var(--border, #e8e4e2)
        );
}


/*
|--------------------------------------------------------------------------
| Decorative Heart
|--------------------------------------------------------------------------
*/

.public-site .app-cta::after {
    content: "♥";

    position: absolute;
    right: 2%;
    bottom: -75px;

    color: var(--brand);

    opacity: 0.045;

    font-family: var(--font-heading, "Playfair Display", serif);
    font-size: 180px;
    line-height: 1;

    pointer-events: none;
}


/*
|--------------------------------------------------------------------------
| CTA Content
|--------------------------------------------------------------------------
*/

.public-site .app-cta h2 {
    position: relative;
    z-index: 1;

    color: var(--text, #211d1c);
}

.public-site .app-cta p {
    position: relative;
    z-index: 1;

    color: var(--muted, #716a68);
}


/*
|--------------------------------------------------------------------------
| Phone Illustration
|--------------------------------------------------------------------------
*/

.public-site .app-cta .phone {
    position: relative;
    z-index: 1;

    background: var(--brand);
    color: #ffffff;

    box-shadow:
        0 14px 32px
        color-mix(
            in srgb,
            var(--brand) 24%,
            transparent
        );
}


/*
|--------------------------------------------------------------------------
| App Store Buttons
|--------------------------------------------------------------------------
*/

.public-site .app-cta .store {
    position: relative;
    z-index: 1;

    min-width: 170px;

    display: flex;
    align-items: center;

    gap: 10px;

    padding: 11px 16px;

    background: var(--surface, #ffffff);
    color: var(--text, #211d1c);

    border:
        1px solid
        var(--border, #e8e4e2);

    border-radius: 10px;

    box-shadow:
        0 8px 22px
        rgba(30, 20, 20, 0.08);

    font-size: 10px;
    line-height: 1.15;
}

.public-site .app-cta a.store {
    text-decoration: none;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.public-site .app-cta a.store:hover {
    transform: translateY(-2px);

    border-color:
        color-mix(
            in srgb,
            var(--brand) 35%,
            var(--border, #e8e4e2)
        );

    box-shadow:
        0 12px 28px
        rgba(30, 20, 20, 0.13);
}

.public-site .app-cta a.store:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
}


/*
|--------------------------------------------------------------------------
| Store Button Text
|--------------------------------------------------------------------------
*/

.public-site .app-cta .store span {
    display: flex;
    flex-direction: column;

    gap: 2px;
}

.public-site .app-cta .store b {
    color: var(--text, #211d1c);

    font-size: 17px;
    font-weight: 700;

    white-space: nowrap;
}


/*
|--------------------------------------------------------------------------
| Store Icons
|--------------------------------------------------------------------------
*/

.public-site .app-cta .store-icon {
    width: 27px;
    height: 30px;

    flex: 0 0 auto;
}

.public-site .app-cta .apple-icon {
    color: #4e6fae;
}


/*
|--------------------------------------------------------------------------
| Primary CTA Button
|--------------------------------------------------------------------------
*/

.public-site .app-cta .cta-white {
    position: relative;
    z-index: 1;

    gap: 11px;

    padding: 17px 25px;

    background: var(--brand);
    color: #ffffff;

    border-color: var(--brand);
    border-radius: 999px;

    box-shadow:
        0 10px 26px
        color-mix(
            in srgb,
            var(--brand) 24%,
            transparent
        );

    transition:
        transform 0.2s ease,
        filter 0.2s ease,
        box-shadow 0.2s ease;
}

.public-site .app-cta .cta-white:hover {
    transform: translateY(-1px);

    filter: brightness(0.92);
}

.public-site .app-cta .cta-white:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
}


/*
|--------------------------------------------------------------------------
| CTA Profile Icon
|--------------------------------------------------------------------------
*/

.public-site .app-cta .cta-profile-icon {
    width: 24px;
    height: 24px;

    flex: 0 0 auto;

    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}


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

@media (max-width: 900px) {

    .public-site .app-cta {
        flex-wrap: wrap;
    }

    .public-site .app-cta > div:nth-child(2) {
        flex: 1 1 100%;

        text-align: center;
    }

    .public-site .app-cta h2 {
        text-align: center;
    }

    .public-site .app-cta .store {
        min-width: 180px;
    }

}


/*
|--------------------------------------------------------------------------
| Mobile
|--------------------------------------------------------------------------
*/

@media (max-width: 600px) {

    .public-site .app-cta {
        align-items: center;
    }

    .public-site .app-cta .store,
    .public-site .app-cta .cta-white {
        width: min(100%, 240px);
    }

}

/* =========================================================
   APP DOWNLOAD / MOBILE APP CTA
========================================================= */

.app-download-section {
    position: relative;
    width: 100%;
    min-height: 520px;

    display: grid;
    grid-template-columns: 46% 54%;
    align-items: center;

    overflow: hidden;

    padding: 55px 70px;

    background:
        linear-gradient(135deg,
            color-mix(in srgb, var(--site-secondary) 90%, #140c20),
            color-mix(in srgb, var(--site-primary) 55%, #21142f));

    color: #fff;
}


/* =========================================================
   LEFT SIDE
========================================================= */

.app-download-content {
    position: relative;
    z-index: 2;
    max-width: 520px;
}

.app-qr-codes {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 22px;
}

.app-qr {
    box-sizing: border-box;
    width: 170px;
    max-width: 100%;

    background: transparent;
    padding: 0;

    border-radius: 3px;
    margin: 0;
}

.app-qr img {
    width: 100%;
    height: auto;
    object-fit: contain;
    image-rendering: pixelated;
    display: block;
    background: #fff;
}

.app-qr figcaption {
    margin-top: 8px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
}

.app-download-content h2 {
    margin: 0 0 22px;

    font-family: "Outfit", sans-serif;
    font-size: clamp(27px, 3vw, 39px);
    line-height: 1.22;
    font-weight: 400;

    color: #fff;
}

.app-download-content h2 strong {
    font-weight: 700;
}


/* =========================================================
   STORE BUTTONS
========================================================= */

.app-store-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;

    margin-bottom: 25px;
}

.app-store-btn {
    height: 48px;

    display: inline-flex;
    align-items: center;
    gap: 9px;

    padding: 5px 13px;

    background: #050505;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 7px;

    color: #fff;
    text-decoration: none;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease;
}

.app-store-btn:hover {
    transform: translateY(-2px);
    border-color: #fff;

    color: #fff;
}

.app-store-icon {
    flex: 0 0 auto;

    width: 27px;
    height: 29px;
}

.apple-icon {
    width: 26px;
}

.app-store-btn span {
    display: flex;
    flex-direction: column;

    line-height: 1;
}

.app-store-btn small {
    margin-bottom: 3px;

    font-size: 9px;
    letter-spacing: 0.2px;

    color: #fff;
}

.app-store-btn strong {
    font-size: 16px;
    font-weight: 500;

    color: #fff;
}


/* =========================================================
   DOWNLOAD DETAILS
========================================================= */

.app-download-meta {
    margin-top: 10px;
}

.app-download-meta p {
    margin: 0 0 5px;

    font-size: 16px;
    color: rgba(255, 255, 255, 0.96);
}

.app-download-meta .download-count {
    margin-bottom: 12px;
    font-weight: 500;
}


.app-rating {
    display: flex;
    align-items: center;
    gap: 14px;

    margin-top: 5px;
}

.rating-number {
    font-family: "Outfit", sans-serif;

    font-size: 34px;
    line-height: 1;
    font-weight: 600;
}

.stars {
    margin-bottom: 3px;

    font-size: 31px;
    line-height: 1;

    letter-spacing: 1px;

    color: #ffc900;
}

.stars span {
    color: #d6d4dc;
}

.app-rating small {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
}


/* =========================================================
   RIGHT SIDE / PHONE MOCKUPS
========================================================= */

.app-phone-showcase {
    position: relative;

    min-height: 410px;

    display: flex;
    justify-content: center;
    align-items: center;
}


/* Phone wrapper */

.phone-mockup {
    position: absolute;
    z-index: 2;

    /* The PNGs include the phone frames and transparent backgrounds. */
    filter:
        drop-shadow(0 25px 30px rgba(0, 0, 0, 0.32))
        drop-shadow(0 4px 8px rgba(0, 0, 0, 0.18));
}

.phone-mockup img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

}


/* Main / left phone */

.phone-mockup-main {
    width: 180px;
    height: 365px;

    left: calc(50% - 170px);
    top: 5px;

    transform: rotate(-1deg);
}


/* Secondary / right phone */

.phone-mockup-secondary {
    width: 180px;
    height: 330px;

    right: calc(50% - 170px);
    bottom: 0;

    transform: rotate(1deg);
}


/* =========================================================
   DECORATIVE CIRCLES
========================================================= */

.app-decoration {
    position: absolute;

    border-radius: 50%;

    pointer-events: none;
}

.app-decoration-one {
    width: 130px;
    height: 130px;

    right: 6%;
    top: 80px;

    background:
        color-mix(in srgb,
            var(--site-accent) 35%,
            transparent);
}

.app-decoration-two {
    width: 180px;
    height: 180px;

    left: 34%;
    bottom: -100px;

    background:
        color-mix(in srgb,
            var(--site-primary) 25%,
            transparent);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991px) {

    .app-download-section {
        grid-template-columns: 1fr 1fr;

        padding: 45px 35px;

        min-height: 500px;
    }

    .phone-mockup-main {
        width: 160px;
        height: 325px;

        left: calc(50% - 147.5px);
    }

    .phone-mockup-secondary {
        width: 155px;
        height: 290px;

        right: calc(50% - 147.5px);
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .app-download-section {
        display: flex;
        flex-direction: column;

        padding: 38px 20px 20px;

        text-align: center;
    }

    .app-download-content {
        width: 100%;
        max-width: 100%;
    }

    .app-qr-codes {
        justify-content: center;
    }

    .app-download-content h2 {
        font-size: 29px;
    }

    .app-store-buttons {
        justify-content: center;
    }

    .app-rating {
        justify-content: center;
    }


    /* phones */

    .app-phone-showcase {
        width: 100%;
        min-height: 370px;

        margin-top: 25px;
    }

    .phone-mockup-main {
        width: 155px;
        height: 315px;

        left: calc(50% - 140px);

        top: 0;
    }

    .phone-mockup-secondary {
        width: 145px;
        height: 275px;

        right: calc(50% - 140px);

        bottom: 5px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 420px) {

    .app-download-section {
        padding-left: 15px;
        padding-right: 15px;
    }

    .app-download-content h2 {
        font-size: 25px;
    }

    .app-store-btn {
        height: 45px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .app-store-btn strong {
        font-size: 14px;
    }

    .stars {
        font-size: 24px;
    }

    .rating-number {
        font-size: 30px;
    }

    .app-phone-showcase {
        min-height: 330px;
    }

    .phone-mockup-main {
        width: 140px;
        height: 285px;

        left: calc(50% - 125px);
    }

    .phone-mockup-secondary {
        width: 130px;
        height: 250px;

        right: calc(50% - 125px);
    }
}
