/*
 * Parcel Protect landing page (cms/parcel-protect.template.html)
 *
 * Loaded by that template only. Everything is scoped under .kpp so nothing
 * here reaches the rest of the theme. Sizes follow James's design at 1440
 * (996px content, 1200px for "What happens if something goes wrong?") and
 * the mobile layout at 390.
 *
 * Scroll reveal: .kpp-reveal is only hidden once js/parcel-protect.js has
 * added .kpp--js, so without the script the page shows as is.
 */

.kpp {
    --kpp-dark: #1f0041;
    --kpp-cyan: #17e5e6;
    --kpp-cyan-hover: #0fc9ca;
    --kpp-blue: #3b3bff;
    --kpp-magenta: #b40cf5;
    --kpp-grey: #f4f5f7;
    --kpp-lilac: #f3effd;
    --kpp-text: #000;
    --kpp-body: #222;
    --kpp-muted: #555;
    --kpp-gradient: linear-gradient(90deg, #16dfe8 0%, #3b3bff 50%, #b40cf5 100%);
    --kpp-gutter: 24px;
    --kpp-section-y: 96px;
    --kpp-ease: cubic-bezier(.2, .7, .2, 1);

    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: var(--kpp-text);
    background: #fff;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

.kpp *,
.kpp *::before,
.kpp *::after {
    box-sizing: border-box;
}

/* Footer newsletter band (cms/includes/ss-footer-signup.template.html, shared
   with Super Saver), in the store's everyday brand colours: orange band,
   white text, black "Sign up" button - the regular Super Saver look. The
   footer sits outside .kpp, so these are set on body with literal values,
   which also keeps a running sale theme from recolouring the band here. */
body:has(#kpp) {
    --ss-signup-bg: #fa5617;
    --ss-signup-text: #ffffff;
    --ss-signup-button: #000000;
    --ss-signup-button-text: #ffffff;
}

/* Newsletter only on this page: the Google reviews widget is hidden. The
   include gives the reviews column a top border and spacing, so hiding it
   leaves just the sign up band. */
body:has(#kpp) .uppr_parent_div .main-content-footer .main-left-footer {
    display: none !important;
}

/* Undo the theme's heading/paragraph/list defaults inside the page */
.kpp h1,
.kpp h2,
.kpp h3,
.kpp h4,
.kpp p,
.kpp ol,
.kpp ul {
    margin: 0;
    padding: 0;
    font-family: inherit;
    text-transform: none;
    letter-spacing: normal;
}

.kpp ol,
.kpp ul {
    list-style: none;
}

.kpp-container {
    width: 100%;
    max-width: calc(996px + var(--kpp-gutter) * 2);
    margin: 0 auto;
    padding: 0 var(--kpp-gutter);
}

.kpp-container--wide {
    max-width: calc(1200px + var(--kpp-gutter) * 2);
}

.kpp-section {
    padding: var(--kpp-section-y) 0;
}

.kpp-section--grey {
    background: var(--kpp-grey);
}

.kpp-section--dark {
    background: var(--kpp-dark);
    color: #fff;
}

.kpp .kpp-h2 {
    font-size: 32px;
    line-height: 1.2;
    font-weight: 700;
    color: inherit;
}

.kpp .kpp-gradient-text {
    background: var(--kpp-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--kpp-blue);
}

/* 6px gradient line along the top of the intro card and closing banner */
.kpp-topline {
    position: relative;
}

.kpp-topline::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--kpp-gradient);
}

/* Button */
.kpp .kpp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 24px;
    border: 0;
    border-radius: 0;
    background: var(--kpp-cyan);
    color: var(--kpp-dark);
    font-size: 16px;
    line-height: 1.2;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .2s ease, transform .2s var(--kpp-ease), box-shadow .2s ease;
}

.kpp .kpp-btn:hover {
    background: var(--kpp-cyan-hover);
    color: var(--kpp-dark);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(23, 229, 230, .35);
}

.kpp .kpp-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

.kpp .kpp-btn:focus-visible {
    outline: 2px solid var(--kpp-blue);
    outline-offset: 3px;
}

/* Icon: gradient disc in a soft gradient ring */
.kpp-icon {
    --kpp-icon-size: 48px;
    --kpp-icon-inner: 34px;
    --kpp-icon-glyph: 18px;

    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--kpp-icon-size);
    height: var(--kpp-icon-size);
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(22, 223, 232, .22), rgba(180, 12, 245, .22));
    transition: transform .3s var(--kpp-ease);
}

.kpp-icon::before {
    content: "";
    position: absolute;
    width: var(--kpp-icon-inner);
    height: var(--kpp-icon-inner);
    border-radius: 50%;
    background: var(--kpp-gradient);
}

.kpp-icon svg {
    position: relative;
    width: var(--kpp-icon-glyph);
    height: var(--kpp-icon-glyph);
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.kpp-icon--lg {
    --kpp-icon-size: 80px;
    --kpp-icon-inner: 56px;
    --kpp-icon-glyph: 26px;
}

/* Breadcrumb. A div, not <nav>: styles.css positions every nav, which
   pulled the trail over the top of the hero. */
.kpp-crumb {
    background: #fff;
}

.kpp .kpp-crumb__trail {
    display: flex;
    flex-wrap: wrap;
    padding: 14px 0;
    font-size: 12px;
    line-height: 16px;
    color: var(--kpp-muted);
}

.kpp-crumb__trail li + li::before {
    content: "/";
    padding: 0 6px;
}

.kpp-crumb__trail a {
    color: var(--kpp-muted);
    text-decoration: none;
}

.kpp-crumb__trail a:hover {
    color: var(--kpp-text);
    text-decoration: underline;
}

/* styles.css removes the outline on a:focus sitewide */
.kpp .kpp-crumb__trail a:focus-visible {
    outline: 2px solid var(--kpp-blue);
    outline-offset: 2px;
}

.kpp-crumb__trail [aria-current] {
    color: var(--kpp-text);
}

/* Hero */
.kpp-hero {
    padding: 96px 0 76px;
    background: var(--kpp-dark);
    color: #fff;
    text-align: center;
}

.kpp .kpp-hero__title {
    font-size: 56px;
    line-height: 1.08;
    font-weight: 700;
    color: #fff;
}

.kpp-hero__line {
    display: block;
}

/* Inline-block so the gradient spans the words, not the full container
   width, matching the cyan to magenta run in the design */
.kpp-hero__line.kpp-gradient-text {
    display: inline-block;
}

.kpp-hero__rule {
    display: block;
    width: 48px;
    height: 2px;
    margin: 24px auto;
    background: var(--kpp-gradient);
}

.kpp .kpp-hero__lead {
    max-width: 700px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 28px;
    color: #fff;
}

/* Hero entrance, CSS only so it never waits on the script */
.kpp-hero__line,
.kpp-hero__lead {
    animation: kpp-rise .8s var(--kpp-ease) both;
}

.kpp-hero__line + .kpp-hero__line {
    animation-delay: .12s;
}

.kpp-hero__rule {
    animation: kpp-grow .6s var(--kpp-ease) .3s both;
}

.kpp-hero__lead {
    animation-delay: .36s;
}

.kpp-intro__card {
    animation: kpp-rise .9s var(--kpp-ease) .45s both;
}

@keyframes kpp-rise {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes kpp-grow {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

/* What is Parcel Protect? The card overlaps the hero by 44px */
.kpp-intro {
    padding-bottom: var(--kpp-section-y);
    background: linear-gradient(var(--kpp-dark) 0 44px, var(--kpp-grey) 44px);
}

.kpp-intro__card {
    display: grid;
    grid-template-columns: 408px 1fr;
    gap: 48px;
    align-items: center;
    padding: 48px;
    background: #fff;
    box-shadow: 0 20px 48px rgba(31, 0, 65, .08);
}

.kpp-intro__media {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    background: var(--kpp-lilac);
}

.kpp-intro__logo {
    width: 52.5%;
    height: auto;
    transition: transform .5s var(--kpp-ease);
}

.kpp-intro__card:hover .kpp-intro__logo {
    transform: translateY(-6px) scale(1.03);
}

.kpp-intro__body .kpp-h2 {
    margin-bottom: 24px;
}

.kpp .kpp-intro__text {
    margin-bottom: 32px;
    font-size: 18px;
    line-height: 28px;
    color: var(--kpp-body);
}

/* What does Parcel Protect mean for you? Same grey as the intro above, so
   the intro's bottom padding is the gap and this section adds none on top */
.kpp-benefits {
    padding-top: 0;
}

.kpp-benefits .kpp-h2 {
    margin-bottom: 56px;
}

.kpp-benefits__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
}

.kpp-benefit {
    text-align: center;
}

.kpp-benefit .kpp-icon {
    margin-bottom: 20px;
}

.kpp-benefit:hover .kpp-icon {
    transform: translateY(-4px) scale(1.06);
}

.kpp .kpp-benefit__title {
    margin-bottom: 16px;
    font-size: 20px;
    line-height: 26px;
    font-weight: 700;
    color: var(--kpp-text);
}

.kpp .kpp-benefit__text {
    font-size: 15px;
    line-height: 21px;
    color: var(--kpp-muted);
}

/* Why we offer Parcel Protect */
.kpp-why {
    text-align: center;
}

.kpp-why .kpp-h2 {
    display: inline-block;
}

.kpp .kpp-why__text {
    max-width: 720px;
    margin: 24px auto 0;
    font-size: 18px;
    line-height: 28px;
    color: #fff;
}

/* What happens if something goes wrong? */
.kpp-claim {
    background: #fff;
}

.kpp-claim .kpp-h2 {
    margin-bottom: 48px;
}

.kpp-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
}

.kpp-step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-bottom: 24px;
    border-radius: 50%;
    background: var(--kpp-blue);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    transition: transform .3s var(--kpp-ease), box-shadow .3s ease;
}

.kpp-step:hover .kpp-step__num {
    transform: scale(1.1);
    box-shadow: 0 0 0 6px rgba(59, 59, 255, .15);
}

.kpp .kpp-step__title {
    margin-bottom: 16px;
    font-size: 18px;
    line-height: 24px;
    font-weight: 700;
    color: var(--kpp-text);
}

.kpp .kpp-step__text {
    font-size: 16px;
    line-height: 24px;
    color: var(--kpp-muted);
}

.kpp-needs {
    margin-top: 48px;
    padding: 48px 56px;
    background: var(--kpp-grey);
}

.kpp .kpp-needs__title {
    margin-bottom: 32px;
    font-size: 24px;
    line-height: 30px;
    font-weight: 700;
    color: var(--kpp-text);
}

.kpp-needs__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

.kpp .kpp-list__head {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 12px 16px;
    background: var(--kpp-blue);
    color: #fff;
    font-size: 14px;
    line-height: 20px;
    font-weight: 700;
}

/* Mobile tabs for the two lists, hidden on desktop (see the mobile rules) */
.kpp-tabs {
    display: none;
}

.kpp-list__rows li {
    padding: 14px 16px;
    font-size: 16px;
    line-height: 20px;
    color: var(--kpp-body);
}

.kpp-list__rows li:nth-child(odd) {
    background: #fff;
}

.kpp-list__rows small {
    display: block;
    margin-top: 6px;
    font-size: 14px;
    line-height: 20px;
    color: var(--kpp-muted);
}

.kpp-needs__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 40px;
}

.kpp .kpp-needs__note {
    font-size: 14px;
    line-height: 20px;
    color: var(--kpp-muted);
}

/* Good to know */
.kpp-know {
    padding-top: 80px;
}

.kpp-know .kpp-h2 {
    margin-bottom: 40px;
}

.kpp-know__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.kpp-card {
    padding: 28px;
    background: #fff;
    transition: transform .3s var(--kpp-ease), box-shadow .3s ease;
}

.kpp-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(31, 0, 65, .08);
}

.kpp-card:hover .kpp-icon {
    transform: scale(1.08);
}

.kpp .kpp-card__title {
    margin-bottom: 12px;
    font-size: 18px;
    line-height: 24px;
    font-weight: 700;
    color: var(--kpp-text);
}

/* The title is an accordion button for mobile. On desktop it reads as a
   plain heading: icon above the label, no chevron, no clicks. */
.kpp .kpp-card__toggle {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: default;
    pointer-events: none;
}

.kpp-card .kpp-icon {
    margin-bottom: 16px;
}

.kpp-card__label {
    display: block;
}

.kpp-card__chevron {
    display: none;
}

.kpp .kpp-card__text {
    font-size: 14px;
    line-height: 20px;
    color: var(--kpp-muted);
}

/* Closing banner */
.kpp-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    margin-top: 72px;
    padding: 48px 56px;
    background: var(--kpp-dark);
}

.kpp .kpp-banner__text {
    max-width: 660px;
    font-size: 24px;
    line-height: 28px;
    font-weight: 700;
    color: #fff;
}

/* Scroll reveal, only once the script is running. The script drops
   .kpp-reveal when the reveal has played, so hover transitions on cards
   go back to their own rules. */
.kpp--js .kpp-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s var(--kpp-ease), transform .7s var(--kpp-ease);
    transition-delay: var(--kpp-delay, 0s);
}

.kpp--js .kpp-reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* Tablet */
@media (max-width: 991px) {
    .kpp {
        --kpp-section-y: 72px;
    }

    .kpp .kpp-hero__title {
        font-size: 44px;
    }

    .kpp-intro__card {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
        padding: 32px;
    }

    .kpp-benefits__grid,
    .kpp-steps {
        gap: 32px;
    }

    .kpp-know__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .kpp-needs {
        padding: 40px 32px;
    }

    .kpp-banner {
        gap: 32px;
        padding: 40px 32px;
    }
}

/* Mobile, from the 390 designs */
@media (max-width: 767px) {
    .kpp {
        --kpp-gutter: 16px;
        --kpp-section-y: 56px;
    }

    .kpp .kpp-h2 {
        font-size: 24px;
        line-height: 30px;
    }

    /* Hero + intro */
    .kpp-hero {
        padding: 48px 0 64px;
    }

    .kpp .kpp-hero__title {
        font-size: 34px;
        line-height: 1.12;
    }

    /* Body copy runs 1-2px above the 390 design: the client found the
       design sizes hard to read on a phone. Headings stay as designed. */
    .kpp .kpp-hero__lead,
    .kpp .kpp-why__text,
    .kpp .kpp-intro__text {
        font-size: 17px;
        line-height: 26px;
    }

    .kpp-intro {
        background: linear-gradient(var(--kpp-dark) 0 32px, var(--kpp-grey) 32px);
    }

    .kpp-intro__card {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 30px 16px 24px;
    }

    /* Title, text and a full width button, all centred */
    .kpp-intro__body {
        text-align: center;
    }

    .kpp-intro__body .kpp-h2 {
        margin-bottom: 16px;
    }

    .kpp .kpp-intro__text {
        margin-bottom: 24px;
    }

    .kpp-intro__body .kpp-btn {
        display: flex;
        width: 100%;
    }

    .kpp-benefits__grid,
    .kpp-steps,
    .kpp-know__grid,
    .kpp-needs__grid {
        grid-template-columns: 1fr;
    }

    /* What does Parcel Protect mean for you? Centred stack */
    .kpp-benefits .kpp-h2 {
        margin-bottom: 32px;
    }

    .kpp-benefits__grid {
        gap: 32px;
    }

    .kpp-benefit .kpp-icon {
        margin-bottom: 16px;
    }

    .kpp .kpp-benefit__title {
        margin-bottom: 8px;
        font-size: 18px;
        line-height: 24px;
    }

    .kpp .kpp-benefit__text {
        font-size: 16px;
        line-height: 24px;
    }

    /* What happens if something goes wrong? Number on the left, copy beside it */
    .kpp-claim .kpp-h2 {
        margin-bottom: 32px;
    }

    .kpp-steps {
        gap: 24px;
    }

    .kpp-step {
        display: grid;
        grid-template-columns: 40px 1fr;
        column-gap: 16px;
        align-items: start;
    }

    .kpp-step__num {
        grid-row: 1 / span 2;
        margin-bottom: 0;
    }

    .kpp .kpp-step__title {
        margin: 7px 0 4px;
    }

    .kpp .kpp-step__text {
        font-size: 17px;
        line-height: 26px;
    }

    /* What you'll need: full width grey band, lists as tabs */
    .kpp-needs {
        margin: 40px calc(var(--kpp-gutter) * -1) 0;
        padding: 40px var(--kpp-gutter);
    }

    .kpp .kpp-needs__title {
        margin-bottom: 24px;
        font-size: 24px;
        line-height: 30px;
    }

    .kpp--ui .kpp-tabs {
        display: flex;
        gap: 8px;
        margin-bottom: 26px;
    }

    .kpp .kpp-tabs__btn {
        flex: 1;
        min-height: 44px;
        margin: 0;
        padding: 10px 8px;
        border: 1px solid #d6d6d6;
        border-radius: 0;
        background: #fff;
        color: var(--kpp-body);
        font: inherit;
        font-size: 15px;
        line-height: 20px;
        font-weight: 700;
        cursor: pointer;
        transition: background-color .2s ease, color .2s ease, border-color .2s ease;
    }

    .kpp .kpp-tabs__btn.is-active {
        border-color: var(--kpp-blue);
        background: var(--kpp-blue);
        color: #fff;
    }

    .kpp .kpp-tabs__btn:focus-visible {
        outline: 2px solid var(--kpp-blue);
        outline-offset: 2px;
    }

    .kpp--ui .kpp-list__head,
    .kpp--ui .kpp-list:not(.is-active) {
        display: none;
    }

    .kpp-needs__grid {
        gap: 16px;
    }

    .kpp-list__rows li {
        font-size: 17px;
        line-height: 22px;
    }

    .kpp-list__rows small,
    .kpp .kpp-needs__note {
        font-size: 15px;
        line-height: 21px;
    }

    .kpp-needs__foot {
        flex-direction: column;
        align-items: stretch;
        margin-top: 27px;
    }

    /* Good to know: accordion */
    .kpp-know {
        padding-top: var(--kpp-section-y);
    }

    .kpp-know .kpp-h2 {
        margin-bottom: 24px;
    }

    .kpp-know__grid {
        gap: 8px;
    }

    .kpp-card {
        padding: 0;
    }

    .kpp-card:hover {
        transform: none;
        box-shadow: none;
    }

    .kpp-card:hover .kpp-icon {
        transform: none;
    }

    .kpp .kpp-card__title {
        margin: 0;
    }

    .kpp .kpp-card__toggle {
        display: flex;
        align-items: center;
        gap: 14px;
        min-height: 76px;
        padding: 14px 16px;
        cursor: pointer;
        pointer-events: auto;
    }

    .kpp .kpp-card__toggle:focus-visible {
        outline: 2px solid var(--kpp-blue);
        outline-offset: -2px;
    }

    .kpp-card .kpp-icon {
        flex: none;
        margin: 0;
    }

    .kpp-card__label {
        flex: 1;
    }

    .kpp-card__chevron {
        display: block;
        flex: none;
        width: 20px;
        height: 20px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
        transition: transform .3s var(--kpp-ease);
    }

    .kpp-card--open .kpp-card__chevron {
        transform: rotate(180deg);
    }

    /* Text lines up with the label: 16px padding + 48px icon + 14px gap */
    .kpp .kpp-card__text {
        padding: 0 16px 20px 78px;
        font-size: 16px;
        line-height: 24px;
    }

    /* Collapsing needs the script; without it every card stays open */
    .kpp--ui .kpp-card__body {
        display: grid;
        grid-template-rows: 0fr;
        transition: grid-template-rows .3s var(--kpp-ease);
    }

    .kpp--ui .kpp-card--open .kpp-card__body {
        grid-template-rows: 1fr;
    }

    .kpp-card__inner {
        min-height: 0;
        overflow: hidden;
    }

    /* A closed card's text is also hidden from screen readers, once the
       collapse has finished (the delay matches the row transition) */
    .kpp--ui .kpp-card:not(.kpp-card--open) .kpp-card__inner {
        visibility: hidden;
        transition: visibility 0s linear .3s;
    }

    /* Closing banner */
    .kpp-banner {
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
        margin-top: 48px;
        padding: 36px 24px 32px;
    }

    .kpp .kpp-banner__text {
        font-size: 22px;
        line-height: 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .kpp *,
    .kpp *::before,
    .kpp *::after {
        animation: none !important;
        transition: none !important;
    }

    .kpp--js .kpp-reveal {
        opacity: 1;
        transform: none;
    }
}
