/********** Products CSS **********/

/* Each card / panel can override these with the product's own brand colours */
.product-card,
.pd-panel {
    --p-from: #1f275b;
    --p-to: #6a5af9;
    --p-accent: #6a5af9;
}


/*** Products Hero ***/
.products-hero {
    position: relative;
    padding: 90px 0 100px;
    background: radial-gradient(circle at top left, #0b1d26, #050b12);
    overflow: hidden;
}

.products-hero::before,
.products-hero::after {
    position: absolute;
    content: "";
    border-radius: 50%;
    filter: blur(90px);
    opacity: .45;
}

.products-hero::before {
    width: 420px;
    height: 420px;
    top: -160px;
    right: -80px;
    background: #6a5af9;
}

.products-hero::after {
    width: 340px;
    height: 340px;
    bottom: -180px;
    left: -100px;
    background: #15ACE1;
    opacity: .25;
}

.products-hero > .container {
    position: relative;
    z-index: 2;
}

.products-hero p {
    max-width: 640px;
    color: rgba(255, 255, 255, .8);
}

.products-hero .btn-outline-light:hover {
    color: #1f275b;
}

.btn-gradient {
    color: #FFFFFF;
    border: none;
    background: linear-gradient(135deg, #1f275b, #6a5af9);
}

.btn-gradient:hover {
    color: #FFFFFF;
    box-shadow: 0 10px 28px rgba(106, 90, 249, .45);
    transform: translateY(-2px);
}


/*** Product Card ***/
.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 24px 24px 22px;
    color: #5b6078;
    text-decoration: none;
    background: #FFFFFF;
    border: 1px solid #e3e7f2;
    border-radius: 20px;
    box-shadow: 0 6px 22px rgba(20, 24, 62, .06);
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
    overflow: hidden;
}

.product-card::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 4px;
    top: 0;
    left: 0;
    background: linear-gradient(90deg, var(--p-from), var(--p-to));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .45s ease;
}

.product-card:hover,
.product-card:focus-visible {
    color: #5b6078;
    border-color: var(--p-to);
    box-shadow: 0 22px 48px rgba(20, 24, 62, .16);
    transform: translateY(-6px);
}

.product-card:hover::before,
.product-card:focus-visible::before {
    transform: scaleX(1);
}

.product-card:focus-visible {
    outline: 3px solid var(--p-accent);
    outline-offset: 3px;
}

.product-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 58px;
    height: 58px;
    padding: 7px;
    border: 2px solid transparent;
    border-radius: 15px;
    background: linear-gradient(#FFFFFF, #FFFFFF) padding-box,
        linear-gradient(135deg, var(--p-from), var(--p-to)) border-box;
    box-shadow: 0 8px 20px rgba(20, 24, 62, .1);
}

.product-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Logo artwork with its own background fills the whole tile */
.product-logo.product-logo--fill {
    padding: 0;
    overflow: hidden;
}

.product-logo--fill img {
    object-fit: cover;
}

/* Used when a product has no logo yet */
.product-logo--icon {
    color: #FFFFFF;
    font-size: 22px;
    border: none;
    background: linear-gradient(135deg, var(--p-from), var(--p-to));
}

.product-card__head {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.product-card__head .product-logo {
    margin-right: 14px;
}

/* Leave room for the status badge in the top-right corner */
.product-card__head .product-cat {
    padding-right: 62px;
}

.product-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    color: #12805c;
    background: #e6f7f0;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
}

.product-status::before {
    content: "";
    width: 8px;
    height: 8px;
    margin-right: 7px;
    background: #1bb37f;
    border-radius: 50%;
    animation: productPulse 2s ease-out infinite;
}

@keyframes productPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(27, 179, 127, .55);
    }
    100% {
        box-shadow: 0 0 0 9px rgba(27, 179, 127, 0);
    }
}

.product-card .product-status {
    position: absolute;
    top: 18px;
    right: 18px;
    padding: 3px 10px;
    font-size: 12px;
}

.product-cat {
    display: block;
    margin-bottom: 4px;
    color: #8a90a8;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.product-card__name {
    margin: 0;
    color: var(--dark);
    font-size: 20px;
    font-weight: 700 !important;
}

.product-card__tagline {
    margin-bottom: 8px;
    color: var(--p-from);
    font-size: 15px;
    font-weight: 600;
}

/* Description is cut to two lines; the detail page has the full text */
.product-card__desc {
    display: -webkit-box;
    margin-bottom: 14px;
    font-size: 14.5px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
}

.product-tags span {
    padding: 4px 11px;
    color: var(--p-from);
    background: #eef2f8;
    background: color-mix(in srgb, var(--p-to) 12%, #FFFFFF);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

.product-card__cta {
    display: inline-flex;
    align-items: center;
    margin-top: auto;
    color: var(--p-from);
    font-size: 15px;
    font-weight: 600;
}

.product-card__cta i {
    margin-left: 10px;
    transition: transform .35s ease;
}

.product-card:hover .product-card__cta i {
    transform: translateX(6px);
}


/*** Products CTA ***/
.products-cta {
    position: relative;
    padding: 56px 40px;
    background: linear-gradient(135deg, #1f275b, #6a5af9);
    border-radius: 24px;
    overflow: hidden;
}

.products-cta::after {
    position: absolute;
    content: "";
    width: 360px;
    height: 360px;
    top: -180px;
    right: -120px;
    background: rgba(255, 255, 255, .12);
    border-radius: 50%;
}

.products-cta > * {
    position: relative;
    z-index: 1;
}

.products-cta p {
    color: rgba(255, 255, 255, .85);
}

.products-cta .btn-light {
    color: var(--primary);
}

.products-cta .btn-outline-light:hover {
    color: var(--primary);
}


/*** Product Detail Panel ***/
.pd-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 11, 18, .6);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s ease, visibility 0s linear .35s;
    z-index: 1055;
}

.pd-overlay.show {
    opacity: 1;
    visibility: visible;
    transition: opacity .35s ease, visibility 0s linear 0s;
}

.pd-panel {
    position: fixed;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: #FFFFFF;
    opacity: 0;
    transform: translateY(40px);
    visibility: hidden;
    transition: transform .4s cubic-bezier(.22, .8, .26, 1), opacity .3s ease, visibility 0s linear .4s;
    z-index: 1060;
    outline: none;
}

.pd-panel.show {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    transition: transform .4s cubic-bezier(.22, .8, .26, 1), opacity .3s ease, visibility 0s linear 0s;
}

.pd-container {
    width: 100%;
    max-width: 1212px;
    margin: 0 auto;
    padding: 0 36px;
}

body.pd-open {
    overflow: hidden;
}

.pd-scroll {
    flex-grow: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.pd-close {
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    top: 22px;
    right: 28px;
    color: var(--p-from);
    background: #FFFFFF;
    border: none;
    border-radius: 50%;
    box-shadow: 0 6px 18px rgba(5, 11, 18, .25);
    font-size: 18px;
    transition: .3s;
    z-index: 2;
}

.pd-close:hover {
    color: #FFFFFF;
    background: var(--p-accent);
}

.pd-header {
    position: relative;
    padding: 72px 0 60px;
    color: #FFFFFF;
    background: linear-gradient(135deg, var(--p-from), var(--p-to));
    overflow: hidden;
}

.pd-header::after {
    position: absolute;
    content: "";
    width: 300px;
    height: 300px;
    right: -110px;
    bottom: -170px;
    background: rgba(255, 255, 255, .1);
    border-radius: 50%;
}

.pd-header__grid {
    position: relative;
    display: grid;
    gap: 40px;
    align-items: center;
    z-index: 1;
}

.pd-header__main.pd-header__main--wordmark {
    flex-direction: column;
    align-items: flex-start;
}

.pd-wordmark {
    width: auto;
    max-width: 100%;
    height: 96px;
    margin-bottom: 22px;
    object-fit: contain;
}

.pd-visual img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 30px 60px rgba(5, 11, 18, .35);
}

.pd-header__main {
    position: relative;
    display: flex;
    align-items: center;
    z-index: 1;
}

.pd-header__main > .product-logo {
    width: 96px;
    height: 96px;
    margin-right: 24px;
    padding: 12px;
    border: none;
    border-radius: 22px;
    background: #FFFFFF;
    box-shadow: 0 12px 30px rgba(5, 11, 18, .25);
}

.pd-header .product-logo--icon {
    color: var(--p-from);
    font-size: 38px;
}

.pd-header .product-cat {
    color: rgba(255, 255, 255, .75);
}

.pd-header h2 {
    margin-bottom: 6px;
    color: #FFFFFF;
}

.pd-header__tagline {
    margin: 0;
    color: rgba(255, 255, 255, .92);
    font-size: 17px;
}

.pd-header__meta {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    margin-top: 24px;
    z-index: 1;
}

.pd-header .product-status {
    color: #FFFFFF;
    background: rgba(255, 255, 255, .18);
}

.pd-header .product-status::before {
    background: #5df0b9;
}

.pd-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.pd-btn {
    padding: 12px 28px;
    color: var(--p-from);
    background: #FFFFFF;
    border: 1px solid #FFFFFF;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: .3s;
}

.pd-btn:hover {
    color: var(--p-from);
    box-shadow: 0 10px 26px rgba(5, 11, 18, .3);
    transform: translateY(-2px);
}

.pd-btn--ghost {
    color: #FFFFFF;
    background: transparent;
    border-color: rgba(255, 255, 255, .7);
}

.pd-btn--ghost:hover {
    color: var(--p-from);
    background: #FFFFFF;
}

.pd-motto {
    color: rgba(255, 255, 255, .85);
    font-weight: 600;
    letter-spacing: .4px;
}

.pd-section {
    padding: 56px 0;
}

.pd-section--alt {
    background: var(--light);
}

.pd-section h3 {
    margin-bottom: 24px;
    color: var(--dark);
    font-size: 24px;
}

.pd-section p {
    color: #5b6078;
}

.pd-split {
    display: grid;
    gap: 16px;
}

.pd-box {
    padding: 22px 24px;
    background: var(--light);
    border-radius: 16px;
}

.pd-box--brand {
    background: #eef2f8;
    background: color-mix(in srgb, var(--p-to) 9%, #FFFFFF);
    border-left: 4px solid var(--p-from);
}

.pd-box h6 {
    margin-bottom: 8px;
    color: var(--p-from);
    font-size: 13px;
    font-weight: 700 !important;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.pd-box p {
    margin: 0;
}

.pd-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin: 24px 0 0;
}

.pd-facts div {
    padding: 22px 20px;
    border: 1px solid #e3e7f2;
    border-radius: 16px;
    text-align: center;
}

.pd-facts dt {
    color: var(--p-from);
    font-family: inherit;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.1;
}

.pd-facts dd {
    margin: 8px 0 0;
    color: #5b6078;
    font-size: 14.5px;
}

.pd-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.pd-feature {
    padding: 22px 20px;
    background: #FFFFFF;
    border: 1px solid #e3e7f2;
    border-radius: 16px;
    transition: .3s;
}

.pd-feature:hover {
    border-color: var(--p-to);
    box-shadow: 0 12px 28px rgba(20, 24, 62, .1);
    transform: translateY(-3px);
}

.pd-feature__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 14px;
    color: #FFFFFF;
    background: linear-gradient(135deg, var(--p-from), var(--p-to));
    border-radius: 13px;
    font-size: 18px;
}

.pd-feature h6 {
    margin-bottom: 6px;
    color: var(--dark);
    font-weight: 700 !important;
}

.pd-feature p {
    margin: 0;
    font-size: 15px;
}

.pd-shots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.pd-shots figure {
    margin: 0;
}

.pd-shots figcaption {
    margin-top: 12px;
    color: var(--dark);
    font-weight: 600;
    text-align: center;
}

.pd-shots img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: top;
    border: 1px solid #e3e7f2;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(20, 24, 62, .12);
}

.pd-duo {
    display: grid;
    gap: 24px;
}

.pd-card {
    padding: 32px;
    background: #FFFFFF;
    border: 1px solid #e3e7f2;
    border-radius: 20px;
    box-shadow: 0 6px 22px rgba(20, 24, 62, .05);
}

.pd-steps {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: pdStep;
}

.pd-steps li {
    position: relative;
    padding: 0 0 26px 62px;
    counter-increment: pdStep;
}

.pd-steps li:last-child {
    padding-bottom: 0;
}

.pd-steps li::before {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    content: counter(pdStep);
    width: 42px;
    height: 42px;
    top: 0;
    left: 0;
    color: #FFFFFF;
    background: var(--p-from);
    border-radius: 50%;
    font-weight: 700;
}

.pd-steps li::after {
    position: absolute;
    content: "";
    width: 2px;
    top: 48px;
    bottom: 6px;
    left: 20px;
    background: #dfe3f0;
}

.pd-steps li:last-child::after {
    display: none;
}

.pd-steps h6 {
    margin-bottom: 4px;
    padding-top: 2px;
    color: var(--dark);
    font-weight: 700 !important;
}

.pd-steps p {
    margin: 0;
}

.pd-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.pd-chips span {
    padding: 8px 16px;
    color: var(--p-from);
    border: 1px solid var(--p-from);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
}

.pd-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.pd-list li {
    position: relative;
    margin-bottom: 14px;
    padding-left: 34px;
    color: #5b6078;
}

.pd-list li:last-child {
    margin-bottom: 0;
}

.pd-list li::before {
    position: absolute;
    content: "\f00c";
    width: 22px;
    height: 22px;
    top: 2px;
    left: 0;
    color: #FFFFFF;
    background: var(--p-accent);
    border-radius: 50%;
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";
    font-size: 11px;
    font-weight: 900;
    line-height: 22px;
    text-align: center;
}

.pd-list strong {
    color: var(--dark);
}

.pd-track {
    margin: 26px 0 16px;
    color: var(--p-from);
    font-size: 13px;
    font-weight: 700 !important;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

h3 + .pd-track {
    margin-top: 0;
}

.pd-link {
    display: inline-flex;
    align-items: center;
    margin-top: 22px;
    color: var(--p-from);
    font-weight: 600;
    text-decoration: none;
}

.pd-link:hover {
    color: var(--p-accent);
}

.pd-link i {
    margin-left: 10px;
    transition: transform .35s ease;
}

.pd-link:hover i {
    transform: translateX(6px);
}

@media (min-width: 992px) {
    .pd-header__grid {
        grid-template-columns: 1fr 1fr;
        gap: 56px;
    }

    .pd-header__grid--solo {
        grid-template-columns: 1fr;
    }

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

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

    .pd-features {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .pd-steps li {
        padding: 58px 0 0;
    }

    .pd-steps li::after {
        width: auto;
        height: 2px;
        top: 20px;
        right: -24px;
        bottom: auto;
        left: 54px;
    }
}

@media (max-width: 575.98px) {
    .products-hero {
        padding: 60px 0 70px;
    }

    .products-cta {
        padding: 40px 24px;
    }

    .pd-header {
        padding: 64px 0 40px;
    }

    .pd-container {
        padding: 0 22px;
    }

    .pd-wordmark {
        height: 72px;
    }

    .pd-card {
        padding: 24px 20px;
    }

    .pd-header__main {
        flex-direction: column;
        align-items: flex-start;
    }

    .pd-header__main > .product-logo {
        width: 80px;
        height: 80px;
        margin: 0 0 18px;
    }

    .pd-section {
        padding: 40px 0;
    }

    .pd-features {
        grid-template-columns: 1fr;
    }

}

@media (prefers-reduced-motion: reduce) {
    .product-card,
    .product-card::before,
    .pd-panel,
    .pd-overlay,
    .pd-feature {
        transition: none;
    }

    .product-status::before {
        animation: none;
    }
}
