/* =========================================================
   PLASMAPEN HOMEPAGE BUNDLE MODAL
   ========================================================= */

.pp-home-modal[hidden] {
    display: none !important;
}

body.pp-home-modal-open {
    overflow: hidden !important;
}


/* ---------------------------------------------------------
   MODAL SHELL
   --------------------------------------------------------- */

.pp-home-modal {
    --pp-popup-gold: #a87322;

    position: fixed;
    inset: 0;

    z-index: 999999;

    display: grid;
    place-items: center;

    padding: 24px;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 180ms ease,
        visibility 180ms ease;
}

.pp-home-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}


.pp-home-modal__backdrop {
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.55);

    cursor: pointer;
}


/* ---------------------------------------------------------
   DIALOG
   --------------------------------------------------------- */

.pp-home-modal__dialog {
    position: relative;

    z-index: 1;

    width: min(1180px, calc(100vw - 48px));
    max-height: calc(100vh - 48px);

    overflow: hidden;

    background: #fff;
    color: #000;

    border-radius: 30px;

    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.24);

    transform: translateY(12px) scale(0.99);

    transition: transform 180ms ease;
}

.pp-home-modal.is-open .pp-home-modal__dialog {
    transform: none;
}


.pp-home-modal__inner {
    position: relative;

    min-height: 590px;

    padding:
        56px
        48%
        50px
        58px;

    box-sizing: border-box;
}


/* ---------------------------------------------------------
   COPY
   --------------------------------------------------------- */

.pp-home-modal__copy {
    position: relative;
    z-index: 2;

    max-width: 570px;
}


.pp-home-modal__title {
    margin: 0 0 34px;

    color: #000;

    font-size: clamp(38px, 3vw, 54px);
    line-height: 0.98;
    letter-spacing: -0.04em;
    font-weight: 700;
}

.pp-home-modal__title span {
    display: inline;

    color: var(--pp-popup-gold);
}


.pp-home-modal__list-title {
    margin: 0 0 20px;

    color: #000;

    font-size: 27px;
    line-height: 1.15;
    font-weight: 700;
}


.pp-home-modal__list {
    display: grid;
    gap: 14px;

    margin: 0 0 34px;
    padding: 0;

    list-style: none;
}


.pp-home-modal__list li {
    position: relative;

    margin: 0;
    padding: 0 0 0 30px;

    color: #000;

    font-size: 19px;
    line-height: 1.35;
}


.pp-home-modal__list li::before {
    content: "✓";

    position: absolute;

    left: 0;
    top: 0.18em;

    display: grid;
    place-items: center;

    width: 18px;
    height: 18px;

    border-radius: 50%;

    background: var(--pp-popup-gold);
    color: #fff;

    font-size: 11px;
    line-height: 1;
    font-weight: 700;
}


/* ---------------------------------------------------------
   CTA
   --------------------------------------------------------- */

.pp-home-modal__cta {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: min(445px, 100%);

    padding: 6px 7px 6px 27px;

    box-sizing: border-box;

    border: 1.5px solid #000;
    border-radius: 999px;

    background: #fff;
    color: #000 !important;

    text-decoration: none !important;

    font-size: 21px;
    line-height: 1.15;
    font-weight: 400;

    transition:
        background 160ms ease,
        color 160ms ease;
}


.pp-home-modal__cta:hover,
.pp-home-modal__cta:focus-visible {
    background: #f6f6f6;
    color: #000 !important;
}


.pp-home-modal__cta-arrow {
    flex: 0 0 auto;

    display: grid;
    place-items: center;

    width: 48px;
    height: 48px;

    margin-left: 18px;

    border-radius: 50%;

    background: #000;
    color: #fff;

    font-family: Arial, sans-serif;
    font-size: 27px;
    line-height: 1;
}


/* ---------------------------------------------------------
   DESKTOP ARTWORK
   --------------------------------------------------------- */

.pp-home-modal__visual {
    position: absolute;

    top: 0;
    right: 0;
    bottom: 0;

    width: 49%;

    overflow: hidden;

    pointer-events: none;
}


.pp-home-modal__image {
    display: block;

    width: 100%;
    height: 100%;

    max-width: none;

    object-fit: contain;
    object-position: right bottom;
}


/* ---------------------------------------------------------
   CLOSE BUTTON
   --------------------------------------------------------- */

.pp-home-modal__close {
    position: absolute;

    top: 22px;
    right: 22px;

    z-index: 10;

    display: grid;
    place-items: center;

    width: 52px;
    height: 52px;

    margin: 0;
    padding: 0;

    border: 2px solid #40515d;
    border-radius: 50%;

    background: #fff;
    color: #40515d;

    cursor: pointer;

    font-family: Arial, sans-serif;
    font-size: 36px;
    font-weight: 300;
    line-height: 1;

    transition:
        background 160ms ease,
        color 160ms ease;
}


.pp-home-modal__close:hover,
.pp-home-modal__close:focus-visible {
    background: #40515d;
    color: #fff;
}


.pp-home-modal__close span {
    position: relative;
    top: -2px;
}


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

@media (max-width: 991.98px) {

    .pp-home-modal__inner {
        padding-right: 44%;
        padding-left: 44px;
    }

    .pp-home-modal__title {
        font-size: 40px;
    }

    .pp-home-modal__visual {
        width: 45%;
    }

}


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

@media (max-width: 767.98px) {

    .pp-home-modal {
        padding: 0;

        place-items: center;
    }

    .pp-home-modal__dialog {
        /*
         * Match the supplied mobile design:
         * generous gutter around the modal rather than
         * almost edge-to-edge.
         */
        width: 84vw;
        max-width: 520px;

        max-height: 88dvh;

        margin: 0;

        overflow-y: auto;
        overscroll-behavior: contain;

        border-radius: 24px;
    }

    .pp-home-modal__inner {
        min-height: 0;

        padding:
            68px
            28px
            34px;
    }

    .pp-home-modal__copy {
        max-width: none;
    }

    .pp-home-modal__title {
        margin: 0 0 28px;

        font-size: clamp(28px, 7.6vw, 38px);
        line-height: 1.08;
        letter-spacing: -0.035em;
    }

    .pp-home-modal__list-title {
        margin: 0 0 20px;

        font-size: clamp(21px, 5.8vw, 26px);
        line-height: 1.15;
    }

    .pp-home-modal__list {
        gap: 13px;

        margin: 0 0 28px;
    }

    .pp-home-modal__list li {
        padding-left: 27px;

        font-size: clamp(15px, 4.3vw, 18px);
        line-height: 1.35;
    }

    .pp-home-modal__list li::before {
        width: 17px;
        height: 17px;

        font-size: 10px;
    }

    .pp-home-modal__cta {
        width: 100%;

        padding:
            5px
            6px
            5px
            18px;

        font-size: clamp(16px, 4.5vw, 19px);
    }

    .pp-home-modal__cta-arrow {
        width: 46px;
        height: 46px;

        margin-left: 10px;

        font-size: 24px;
    }

    /*
     * Supplied mobile design has no artwork.
     */
    .pp-home-modal__visual {
        display: none;
    }

    .pp-home-modal--show-mobile-image .pp-home-modal__visual {
        position: relative;

        display: block;

        width: calc(100% + 56px);
        height: 250px;

        margin:
            28px
            -28px
            -34px;
    }

    .pp-home-modal__close {
        top: 20px;
        right: 20px;

        width: 48px;
        height: 48px;

        border-width: 2px;

        font-size: 32px;
    }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .pp-home-modal,
    .pp-home-modal__dialog,
    .pp-home-modal__cta,
    .pp-home-modal__close {
        transition: none !important;
    }

}

/* Mobile CTA - keep label on one line */
@media (max-width: 767.98px) {

    .pp-home-modal__cta-text {
        flex: 1 1 auto;
        min-width: 0;

        white-space: nowrap;

        font-size: 16px;
        line-height: 1.1;
    }

    .pp-home-modal__cta-arrow {
        flex: 0 0 46px;
        width: 46px;
        height: 46px;
    }

}

@media (max-width: 380px) {

    .pp-home-modal__cta {
        padding-left: 14px;
    }

    .pp-home-modal__cta-text {
        font-size: 15px;
    }

}
