html.pmc-ad-modal-open,
html.pmc-ad-modal-open body {
    overflow: hidden;
}

.pmc-trial-offer {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    overflow: auto;
    overscroll-behavior: contain;
    border: 0;
    color: #102450;
    background: #fff6ef;
}

.pmc-trial-offer::backdrop { background: #fff6ef; }

.pmc-trial-offer__page {
    position: relative;
    isolation: isolate;
    min-height: 100%;
    background: linear-gradient(160deg, #f8ede7, #fff6ef 66%, #f4e7dc);
}

.pmc-trial-offer__close {
    position: fixed;
    z-index: 3;
    top: max(12px, env(safe-area-inset-top));
    right: max(12px, env(safe-area-inset-right));
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #102450;
    cursor: pointer;
}

.pmc-trial-offer__close:hover { background: #ffffffa8; }

.pmc-trial-offer__copy {
    --action-width: min(100%, 32vw);
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: clamp(16px, 3.4dvh, 64px);
    width: 40%;
    min-height: 100dvh;
    padding: clamp(20px, 4dvh, 72px) 2vw;
    text-align: center;
}

.pmc-trial-offer__logo {
    display: block;
    width: clamp(92px, 9.2vw, 354px);
    height: auto;
}

#pmc-trial-offer-title {
    margin: 0;
    font: 800 clamp(32px, min(3.9vw, 8dvh), 150px)/1.07 "Manrope", "Segoe UI", sans-serif;
    letter-spacing: -.045em;
    color: #102450;
}

.pmc-trial-offer__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55em;
    min-height: 48px;
    box-sizing: border-box;
    width: var(--action-width);
    padding: .8em 1em;
    border-radius: .4em;
    background-color: #293c81;
    background-image: linear-gradient(175deg, rgb(255 255 255 / 23%), rgb(255 255 255 / 5%) 43%, transparent 55%, rgb(10 22 62 / 28%));
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 45%), inset 0 -1px 0 rgb(15 26 63 / 35%), 0 3px 8px rgb(41 60 129 / 16%);
    color: white;
    font: 700 clamp(17px, 1.95vw, 75px)/1.18 "Manrope", "Segoe UI", sans-serif;
    letter-spacing: -.035em;
    text-decoration: none;
}

.pmc-trial-offer__cta svg { width: 1em; height: 1em; }
.pmc-trial-offer__cta:hover { background-color: #324991; color: #fff; }
.pmc-trial-offer :is(button, a):focus-visible { outline: 3px solid #132651; outline-offset: 4px; }

.pmc-trial-ratings {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: var(--action-width);
    margin: 0;
    padding-block: .8em;
    border-block: 1px solid rgb(16 36 80 / 16%);
    font: 700 clamp(12px, .94vw, 27px)/1.2 "Manrope", "Segoe UI", sans-serif;
}
.pmc-trial-ratings > div {
    display: grid;
    justify-items: center;
    gap: .4em;
}
.pmc-trial-ratings > div + div { border-inline-start: 1px solid rgb(16 36 80 / 14%); }
.pmc-trial-ratings dt { display: flex; align-items: center; height: 1.65em; }
.pmc-trial-ratings dt > img { width: auto; height: 100%; }
.pmc-trial-ratings__capterra {
    display: inline-flex;
    align-items: center;
    gap: .12em;
    padding: .16em .32em;
    background: #062d43;
    color: white;
}
.pmc-trial-ratings__capterra img { width: 1em; height: 1em; }
.pmc-trial-ratings dd { display: flex; align-items: center; gap: .35em; margin: 0; }
.pmc-trial-ratings dd span {
    font: 400 .93em/1 Arial, sans-serif;
    color: #bf6a08;
    background: linear-gradient(to right, #c7770a var(--fill, 100%), #b8ada2 var(--fill, 100%));
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pmc-trial-offer__visual {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Art and motion share the original 1586 × 992 coordinate system. The UHD
   export extends the canvas on the left to retain the complete illustration. */
.pmc-trial-offer__stage {
    position: absolute;
    right: 0;
    top: 50%;
    width: min(100%, 167dvh);
    aspect-ratio: 1586 / 992;
    transform: translateY(-50%);
}

.pmc-trial-offer__art {
    position: absolute;
    right: 0;
    width: 111.208%;
    max-width: none;
    height: 100%;
    mask-image: linear-gradient(to right, transparent, black 7%);
}

.pmc-trial-offer__print,
.pmc-trial-offer__environment,
.pmc-trial-offer__motion {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.pmc-trial-offer__light {
    fill: none;
    stroke: #e0ffff;
    stroke-width: 5;
    stroke-linecap: round;
    stroke-dasharray: 24 976;
    stroke-dashoffset: 25;
    filter: drop-shadow(0 0 4px #00caff);
    opacity: 0;
}

@media (min-aspect-ratio: 6/5) and (max-aspect-ratio: 3/2) {
    .pmc-trial-offer__page { background: linear-gradient(155deg, #faf1eb, #d2e4fc 65%, #f7ebdc); }
    .pmc-trial-offer__stage { mask-image: linear-gradient(transparent, black 5%, black 93%, transparent); }
}

@media (prefers-reduced-motion: reduce) {
    .pmc-trial-offer__light, .pmc-trial-offer__environment { display: none; }
}

/* The street fills the offer behind the live text. The registered artwork,
   route and tree canvas stay together on their original coordinate system. */
@media (max-width: 1100px), (pointer: coarse) and (max-width: 1400px), (max-aspect-ratio: 6/5) {
    .pmc-trial-offer[open] {
        --street: url('/images/trial-street-1024.webp');
        --wash: linear-gradient(90deg, rgb(255 247 238 / 95%), rgb(255 247 238 / 80%) 38%, transparent 65%);
        background: var(--wash), var(--street) center 22% / cover no-repeat, #fbefe4;
    }
    .pmc-trial-offer__page { background: transparent; }
    .pmc-trial-offer__stage { mask: none; }
    .pmc-trial-offer__print,
    .pmc-trial-offer__environment {
        mask: url('/images/trial-workflow-mask.svg') center / 100% 100% no-repeat;
    }
    .pmc-trial-offer__close { background: rgb(255 251 246 / 88%); }
}

@media (max-aspect-ratio: 6/5) {
    .pmc-trial-offer[open] {
        --wash: linear-gradient(to bottom, rgb(255 249 242 / 70%), transparent 23%, transparent 48%, rgb(255 249 242 / 72%) 75%, rgb(255 249 242 / 78%) 100%);
        background-position: center;
    }
    .pmc-trial-offer__page {
        --workflow-width: min(158vw, 80svh);
        display: grid;
        box-sizing: border-box;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto minmax(calc(var(--workflow-width) * .626), 1fr) auto auto auto;
        row-gap: clamp(10px, 1.65svh, 20px);
        min-height: 100svh;
        padding-block: max(16px, 3svh, env(safe-area-inset-top)) max(20px, 3svh, env(safe-area-inset-bottom));
    }
    .pmc-trial-offer__copy {
        --action-width: min(calc(100% - 36px), 28rem);
        grid-area: 1 / 1 / -1 / -1;
        grid-template-rows: subgrid;
        align-items: center;
        width: 100%;
        min-height: 0;
        padding: 0;
        gap: inherit;
    }
    .pmc-trial-offer__logo { width: clamp(76px, 15vw, 110px); }
    #pmc-trial-offer-title { grid-row: 3; padding-inline: 14px; font-size: clamp(27px, min(8.4vw, 5.5svh), 56px); }
    .pmc-trial-offer__cta { grid-row: 4; font-size: clamp(17px, 3vw, 22px); }
    .pmc-trial-offer__copy .pmc-trial-ratings {
        grid-row: 5;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        padding-block: .7em;
        background: rgb(255 251 245 / 50%);
    }
    .pmc-trial-ratings dt { max-width: calc(100% - 8px); }
    .pmc-trial-ratings dt > img { max-width: 100%; object-fit: contain; }
    .pmc-trial-offer__copy .pmc-trial-ratings > div + div { border-inline-start: 1px solid rgb(16 36 80 / 14%); }
    .pmc-trial-offer__visual {
        grid-area: 1 / 1 / -1 / -1;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: subgrid;
        row-gap: inherit;
        position: relative;
        inset: auto;
    }
    .pmc-trial-offer__stage {
        width: var(--workflow-width);
        grid-row: 2;
        place-self: center;
        position: relative;
        top: auto;
        right: auto;
        transform: translateX(-18%);
    }
}

@media (max-aspect-ratio: 6/5) and (max-height: 700px) {
    .pmc-trial-offer__page {
        --workflow-width: min(158vw, 70svh);
        row-gap: 8px;
        padding-top: max(12px, env(safe-area-inset-top));
    }
    .pmc-trial-offer__logo { width: 64px; }
}

@media (max-width: 600px), (max-height: 540px) and (max-width: 1100px) {
    .pmc-trial-offer[open] { --street: url('/images/trial-street-720.webp'); }
}

@media (min-aspect-ratio: 6/5) and (max-height: 540px) {
    .pmc-trial-offer__copy {
        --action-width: 100%;
        gap: clamp(6px, 1.8dvh, 12px);
        padding-block: 12px;
    }
    .pmc-trial-offer__logo { width: clamp(58px, 8vw, 85px); }
    #pmc-trial-offer-title { font-size: clamp(19px, 3.45vw, 34px); }
    .pmc-trial-offer__cta { min-height: 44px; font-size: clamp(13px, 1.9vw, 18px); }
    .pmc-trial-offer__close { top: max(2px, env(safe-area-inset-top)); }
}
@media (max-width: 1150px) {
    .pmc-trial-ratings {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: .85em;
    }
    .pmc-trial-ratings > div:nth-child(odd) { border-inline-start: 0; }
}

@media (max-width: 430px) {
    .pmc-trial-ratings { font-size: 13px; }
}

@media (max-width: 359px) {
    .pmc-trial-offer__copy .pmc-trial-ratings {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: .55em;
        font-size: 12px;
    }
    .pmc-trial-ratings > div { gap: .15em; }
    .pmc-trial-ratings dt { height: 1.4em; }
    .pmc-trial-offer__copy .pmc-trial-ratings > div:nth-child(odd) { border-inline-start: 0; }
}
