/* ==========================================================================
   Services page components (sv-*).
   Every rule here is opt-in: it only applies to markup that uses an sv- class in
   a page's Raw Html block. Page structure comes from cs-* and pl-*.
   ========================================================================== */

/* ---------- Systems stack in the hero ---------- */

.sv-stack {
    margin: 0;
    color: #fff;
}

.sv-stack-label {
    display: block;
    margin-bottom: .6rem;
    color: #d6d5d5;
    font-family: "Archivo";
    font-weight: 700;
    font-variation-settings: 'wdth' 125, 'wght' 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .68rem;
    line-height: 1.3;
}

.sv-systems {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem;
}

a.sv-system {
    display: flex;
    flex: 0 0 calc((100% - 1rem) / 3);
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 0;
    height: 64px;
    padding: .25rem;
    background: #fff;
    border: 0;
    color: var(--hp-dark);
    font-family: "Archivo";
    font-weight: 800;
    font-size: .9rem;
    line-height: 1.15;
    text-align: center;
    transition: transform .2s ease, box-shadow .2s ease;
}

a.sv-system:hover,
a.sv-system:focus-visible {
    color: var(--hp-dark);
    transform: translateY(-3px);
    box-shadow: 0 0 0 2px var(--hp-orange), 0 10px 22px rgba(0, 0, 0, .5);
}

.sv-stack .pl-link {
    margin: .25rem 0;
}

a.sv-overlay {
    display: block;
    padding: 1rem 1.25rem;
    background: var(--hp-orange);
    border: 0;
    color: #fff;
    text-align: center;
    line-height: 1.3;
}

a.sv-overlay:hover {
    color: #fff;
    background: var(--hp-orange-dark);
}

.sv-overlay strong {
    display: block;
    font-family: "Archivo";
    font-weight: 800;
    font-size: 1.1rem;
}

.sv-retainer {
    margin-top: .5rem;
    padding: .9rem 1rem;
    border: 2px solid #6d6768;
    font-family: "Archivo";
    font-weight: 800;
    font-size: 1rem;
    line-height: 1.25;
    text-align: center;
}

/* Draws in from the top when the page loads. */
.sv-stack > * {
    animation: pl-draw-in .6s ease both;
}

.sv-stack > :nth-child(3) { animation-delay: .2s; }
.sv-stack > :nth-child(4) { animation-delay: .4s; }
.sv-stack > :nth-child(5) { animation-delay: .6s; }

/* ---------- Retainer steps ---------- */

.sv-split {
    display: grid;
    gap: 2.5rem;
}

.sv-split .cs-steps {
    margin: 0;
}

.sv-steps-note {
    margin: 1rem 0 0;
    font-size: 1.15rem;
    line-height: 1.55;
}

.sv-steps-note + .cs-quote {
    margin-bottom: 0;
}

.pl-section .cs-quote {
    color: var(--hp-dark);
}

/* The attribution style is made for dark bands, so it needs darker text here. */
.pl-section .cs-attribution {
    color: #5d5859;
}

.pl-section .cs-attribution strong {
    color: var(--hp-dark);
}

.pl-section .cs-steps p {
    margin: 0;
    line-height: 1.5;
}

/* ---------- Focused programs ---------- */

.sv-programs-wrap {
    position: relative;
    overflow: hidden;
    padding: 5rem 0;
    background: var(--hp-darker);
    color: #fff;
}

/* Soft color behind the content, so the section has depth. */
.sv-programs-wrap::before,
.sv-programs-wrap::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .28;
    pointer-events: none;
}

.sv-programs-wrap::before {
    top: -160px;
    right: -120px;
    width: 560px;
    height: 560px;
    background: var(--hp-orange);
}

.sv-programs-wrap::after {
    bottom: -200px;
    left: -160px;
    width: 620px;
    height: 620px;
    background: #2563eb;
}

.sv-programs-wrap > .cs-wrap {
    position: relative;
    z-index: 1;
}

.sv-programs-wrap .pl-head h2 {
    color: #fff;
}

.sv-programs-wrap .pl-head p {
    color: #e9e9ea;
}

/* Each area has its own accent color. */
.sv-accent-overlay { --sv-accent: #3ee6a8; --sv-accent-2: #22c7d6; }
.sv-accent-ops { --sv-accent: #ff7a3d; --sv-accent-2: #ffb020; }
.sv-accent-data { --sv-accent: #ffc53d; --sv-accent-2: #ff8a00; }
.sv-accent-commerce { --sv-accent: #b794ff; --sv-accent-2: #f472b6; }
.sv-accent-ai { --sv-accent: #38d6f5; --sv-accent-2: #6d8bff; }
.sv-accent-training { --sv-accent: #ff8fc7; --sv-accent-2: #b794ff; }

/* The priority programs stay visible above the tabs. */
.sv-featured-grid {
    display: grid;
    gap: 1.25rem;
    margin-bottom: 3rem;
}

/* Links that jump to each area. */
.sv-jumps {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-bottom: 3rem;
}

a.sv-jump {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .6rem 1rem;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    color: #fff;
    font-size: .95rem;
    line-height: 1.2;
    transition: background .2s ease, border-color .2s ease;
}

a.sv-jump i {
    color: var(--sv-accent);
}

a.sv-jump:hover,
a.sv-jump:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, .12);
    border-color: var(--sv-accent);
}

.sv-group {
    display: block;
    scroll-margin-top: 20px;
}

.sv-panel {
    display: grid;
    gap: 1.5rem;
}

.sv-panel + .sv-panel {
    margin-top: 3.5rem;
}

.sv-group-intro .sv-group-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    margin-bottom: 1rem;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--sv-accent), var(--sv-accent-2));
    color: #171314;
    font-size: 1.35rem;
}

.cs-page .sv-group-intro h3 {
    margin-bottom: .5rem;
    color: #fff;
    font-size: 1.5rem;
}

.sv-group-intro p {
    margin: 0;
    color: #d6d5d5;
    line-height: 1.5;
}

.sv-programs {
    display: grid;
    gap: 1.25rem;
    align-content: start;
}

.sv-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 1.5rem;
    background: rgba(255, 255, 255, .055);
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 14px;
    color: #fff;
    transition: transform .25s ease, border-color .25s ease, background .25s ease, box-shadow .25s ease, opacity .6s ease;
}

/* A line of the area's color that sweeps across on hover. */
.sv-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--sv-accent), var(--sv-accent-2));
    transform: scaleX(.18);
    transform-origin: left;
    transition: transform .35s ease;
}

.sv-card:hover,
.sv-card:focus-within {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, .09);
    border-color: var(--sv-accent);
    box-shadow: 0 18px 40px -14px var(--sv-accent);
}

.sv-card:hover::before,
.sv-card:focus-within::before {
    transform: scaleX(1);
}

.sv-card-featured {
    background: linear-gradient(160deg, color-mix(in srgb, var(--sv-accent) 20%, transparent), rgba(255, 255, 255, .05) 60%);
    border-color: color-mix(in srgb, var(--sv-accent) 55%, transparent);
}

.sv-card-featured::before {
    transform: scaleX(1);
}

.sv-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .9rem;
}

.sv-card-icon {
    color: var(--sv-accent);
    font-size: 1.6rem;
    line-height: 1;
    transition: transform .25s ease;
}

.sv-card:hover .sv-card-icon {
    transform: translateX(6px) scale(1.12);
}

.sv-card-kind {
    padding: .2rem .55rem;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 999px;
    color: #e9e9ea;
    font-size: .72rem;
    line-height: 1.3;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.cs-page .sv-card-title {
    margin-bottom: .55rem;
    color: #fff;
    font-variation-settings: 'wdth' 105, 'wght' 800;
    font-size: 1.12rem;
    line-height: 1.25;
}

.sv-card-problem {
    margin: 0 0 .55rem;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

.sv-card-what {
    flex: 1;
    margin: 0 0 1rem;
    color: #d6d5d5;
    font-size: .97rem;
    line-height: 1.45;
}

.sv-card-what a,
.sv-card-also a {
    position: relative;
    z-index: 1;
    border: 0;
    border-bottom: 1px solid var(--sv-accent);
    color: #fff;
}

.sv-card-what a:hover,
.sv-card-also a:hover {
    color: var(--sv-accent);
}

.sv-card-also {
    margin: 0 0 1rem;
    color: #d6d5d5;
    font-size: .88rem;
    line-height: 1.5;
}

.sv-card-also span {
    color: #a9a7a8;
}

/* The next step covers the whole card, and links above stay clickable. */
a.sv-card-more {
    align-self: flex-start;
    border: 0;
    color: var(--sv-accent);
    font-family: "Archivo";
    font-weight: 700;
    font-size: .95rem;
}

a.sv-card-more:hover {
    color: var(--sv-accent);
}

a.sv-card-more::after {
    content: "";
    position: absolute;
    inset: 0;
}

.sv-card-more i {
    margin-left: .35rem;
    font-size: .8em;
    transition: transform .2s ease;
}

.sv-card:hover .sv-card-more i {
    transform: translateX(5px);
}

/* Cards fade in one after another as each area comes into view. Desktop only:
   on smaller screens a group is so tall that its cards sat blank while scrolling to them. */
@media (min-width: 1024px) {
    .js .sv-group:not(.is-in) .sv-card {
        opacity: 0;
        transform: translateY(16px);
    }
}

.sv-group .sv-card:nth-child(2) { transition-delay: 0s, 0s, 0s, 0s, .08s; }
.sv-group .sv-card:nth-child(3) { transition-delay: 0s, 0s, 0s, 0s, .16s; }
.sv-group .sv-card:nth-child(4) { transition-delay: 0s, 0s, 0s, 0s, .24s; }

.sv-catalog-foot {
    display: grid;
    gap: 1.5rem;
    align-items: center;
    margin-top: 3rem;
    padding: 1.75rem;
    background: rgba(255, 255, 255, .055);
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 14px;
}

.cs-page .sv-catalog-foot h3 {
    margin-bottom: .4rem;
    color: #fff;
}

.sv-catalog-foot p {
    margin: 0;
    color: #e9e9ea;
    line-height: 1.5;
}

.sv-catalog-foot p a {
    border: 0;
    border-bottom: 1px solid var(--hp-orange);
    color: #fff;
}

.sv-catalog-foot .hp-btn {
    justify-self: start;
}

/* ---------- Service stub pages ---------- */

.cs-page .sv-stub-hero h1 {
    font-size: clamp(1.4rem, 6.6vw, 3.2rem);
}

.sv-back {
    display: inline-block;
    margin-bottom: 1rem;
    border: 0;
    color: #e9e9ea;
    font-size: .95rem;
}

.sv-back:hover {
    color: #fff;
    text-decoration: underline;
}

.sv-stub-body .cs-features li {
    font-size: 1rem;
}

/* ---------- Program pages ---------- */

.lp-flow {
    margin: 0;
    color: #fff;
}

.lp-flow > * {
    animation: pl-draw-in .6s ease both;
}

.lp-flow > :nth-child(2) { animation-delay: .1s; }
.lp-flow > :nth-child(3) { animation-delay: .2s; }
.lp-flow > :nth-child(4) { animation-delay: .3s; }
.lp-flow > :nth-child(5) { animation-delay: .4s; }
.lp-flow > :nth-child(n+6) { animation-delay: .5s; }

.lp-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .5rem;
}

.lp-node {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 64px;
    padding: .6rem .5rem;
    background: #fff;
    color: var(--hp-dark);
    font-family: "Archivo";
    font-weight: 800;
    font-size: .95rem;
    line-height: 1.2;
    text-align: center;
}

.lp-node.lp-main {
    background: var(--hp-orange);
    color: #fff;
    font-size: 1.1rem;
}

.lp-node.lp-out {
    background: transparent;
    border: 2px solid #6d6768;
    color: #fff;
}

.lp-flow .pl-link {
    height: 44px;
    margin: .25rem 0;
}

.lp-chain {
    max-width: 420px;
    margin: 0 auto;
    width: 100%;
}

.lp-chain .lp-node {
    min-height: 50px;
}

.lp-chain .pl-link {
    height: 26px;
    margin: .15rem 0;
}

.lp-flow figcaption {
    margin-top: .9rem;
    color: #c4c2c3;
    font-size: .85rem;
    line-height: 1.4;
    text-align: center;
}

.lp-signals {
    padding: 1.75rem;
    background: var(--hp-light);
    border-top: 6px solid var(--hp-orange);
}

.cs-page .lp-signals h3 {
    margin-bottom: 1rem;
}

.lp-signals .cs-features {
    grid-template-columns: 1fr;
    gap: .75rem;
    margin: 0;
}

.lp-signals .cs-features li {
    background: #fff;
}

.lp-page .cs-next p a,
.lp-page .pl-head p a {
    border: 0;
    border-bottom: 2px solid var(--hp-orange);
    color: var(--hp-dark);
}

.lp-list {
    margin: .5rem 0 0;
    padding-left: 1.2rem;
    list-style: disc;
    line-height: 1.5;
}

/* Step lists are nested inside a grid list item, so they need their own display. */
.cs-steps .lp-list li {
    display: list-item;
}

.lp-list li + li {
    margin-top: .2rem;
}

.cs-page .sv-card-title.lp-card-title {
    margin: .75rem 0 0;
}

.lp-output .lp-card-title + .sv-card-what {
    margin-top: .4rem;
    color: #d6d5d5;
    font-size: 1rem;
}

.lp-signals em {
    display: block;
    margin-top: .25rem;
    color: #5d5859;
    font-size: .85rem;
    font-style: normal;
}

.lp-signals strong {
    font-family: "Archivo";
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--hp-orange);
}

.lp-figure {
    margin: 1.25rem 0 0;
}

.lp-figure img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid #c9c8c9;
}

.lp-figure figcaption {
    margin-top: .5rem;
    color: #5d5859;
    font-size: .9rem;
}

.lp-page .cs-steps a {
    border: 0;
    border-bottom: 2px solid var(--hp-orange);
    color: var(--hp-dark);
}

.lp-page .pl-section .cs-attribution {
    margin-top: 1rem;
}

/* Spacing stays inside the section, because a margin here would escape and show the page background as a stripe. */
.lp-page .lp-demo-head {
    padding-bottom: 2rem;
}

.lp-demo-head .pl-head {
    margin-bottom: 0;
}

.lp-results {
    margin: 0;
}

.lp-results li:last-child:nth-child(odd) {
    grid-column: auto;
}

.lp-results strong {
    margin-bottom: .25rem;
}

@media (min-width: 1024px) {
    .lp-results {
        grid-template-columns: repeat(3, 1fr);
    }

    .sv-programs:has(> :nth-child(6):last-child),
    .sv-programs:has(> :nth-child(5):last-child) {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ---------- Working sessions ---------- */

.ws-audience {
    font-weight: 600;
    color: #fff;
}

/* A session board with sticky notes. Columns stack on phones. */
.ws-board {
    display: grid;
    gap: .75rem;
    margin: 0;
    padding: 1rem;
    background: #2f2a2b;
    border: 1px solid #575152;
    border-radius: 10px;
    color: var(--hp-dark);
}

.ws-col-head {
    display: block;
    margin-bottom: .6rem;
    color: #e9e9ea;
    font-family: "Archivo";
    font-weight: 700;
    font-size: .8rem;
    line-height: 1.25;
}

.ws-col ul {
    display: grid;
    gap: .6rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ws-note {
    padding: .7rem .75rem;
    background: #ffe28a;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .35);
    font-size: .92rem;
    font-weight: 600;
    line-height: 1.3;
    animation: pl-draw-in .5s ease both;
}

.ws-note:nth-child(even) {
    background: #fff;
}

.ws-note-main,
.ws-note.ws-note-main {
    background: var(--hp-orange);
    color: #fff;
}

.ws-board figcaption {
    color: #c4c2c3;
    font-size: .85rem;
    line-height: 1.4;
    text-align: center;
}

.ws-links {
    margin: .75rem 0 0;
    grid-column: 1 / -1;
}

.ws-narrow {
    margin-bottom: 0;
}

.ws-narrow p + p {
    margin-top: .75rem;
}

@media (min-width: 600px) {
    .ws-board {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ws-board figcaption {
        grid-column: 1 / -1;
    }

    .ws-note:nth-child(odd) {
        transform: rotate(-1deg);
    }

    .ws-note:nth-child(even) {
        transform: rotate(1deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ws-note {
        animation: none;
    }
}

/* Three tiles across are too tight on small phones. */
@media (max-width: 480px) {
    .lp-row {
        grid-template-columns: 1fr;
    }

    .lp-row .lp-node {
        min-height: 44px;
    }
}

.sv-split > * {
    min-width: 0;
}

/* Tighter on phones, where these pages run long. */
@media (max-width: 767px) {
    .lp-page .pl-section,
    .lp-page .sv-programs-wrap,
    .lp-page .cs-band,
    .lp-page .cs-next {
        padding: 2.75rem 0;
    }

    .lp-page .cs-hero-inner {
        gap: 2rem;
        padding: 2.5rem 0;
    }

    .lp-page .pl-head {
        margin-bottom: 1.5rem;
    }

    .lp-page .sv-split {
        gap: 1.75rem;
    }

    .lp-signals {
        padding: 1.25rem;
    }

    .lp-signals .cs-features {
        gap: .5rem;
    }

    .lp-signals .cs-features li {
        padding: .75rem .9rem;
        font-size: .97rem;
    }

    .lp-page .cs-quote {
        margin: 1.25rem 0;
        font-size: 1.1rem;
    }

    .lp-page .cs-band blockquote {
        font-size: 1.3rem;
        line-height: 1.22;
    }

    .lp-page .cs-steps {
        gap: 1.25rem;
    }

    .lp-page .sv-programs {
        gap: .75rem;
    }

    /* The icon sits beside the title, so each card loses a line. */
    .lp-output.sv-card {
        display: grid;
        grid-template-columns: 1.75rem 1fr;
        column-gap: .6rem;
        align-items: start;
        padding: 1rem 1.1rem;
    }

    .lp-output .sv-card-icon {
        font-size: 1.15rem;
        line-height: 1.4;
    }

    .cs-page .sv-card-title.lp-card-title {
        margin: 0;
        font-size: 1.02rem;
    }

    .lp-output .sv-card-what,
    .lp-output .lp-card-title + .sv-card-what {
        margin: 0;
        font-size: .97rem;
    }

    .lp-output .lp-card-title + .sv-card-what {
        grid-column: 1 / -1;
        margin-top: .35rem;
    }

    /* Results read as a simple list instead of a stack of boxes. */
    .lp-results {
        gap: 0;
    }

    .lp-results li {
        padding: .75rem 0;
        background: none;
        border-left: 0;
        border-top: 1px solid #d3d2d3;
        font-size: .97rem;
    }
}

/* These cards aren't links, so they don't respond to hover. */
.sv-card.lp-output:hover {
    transform: none;
    background: rgba(255, 255, 255, .055);
    border-color: rgba(255, 255, 255, .13);
    box-shadow: none;
}

.sv-card.lp-output:hover::before {
    transform: scaleX(.18);
}

.sv-card.lp-output:hover .sv-card-icon {
    transform: none;
}

.lp-output .sv-card-what {
    margin: .75rem 0 0;
    color: #fff;
    font-size: 1.05rem;
}

/* ---------- Larger screens ---------- */

@media (min-width: 768px) {
    .sv-programs,
    .sv-featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet: the hero stack is full width, so the systems fit on one row, and a last
   card with no partner takes the whole row. The small label is tightened so it
   stays on one line and the headings across a row line up. */
@media (min-width: 600px) and (max-width: 1023px) {
    a.sv-system {
        flex: 1 1 0;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .sv-programs > :last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    .pl-card .hp-label {
        letter-spacing: .04em;
        font-size: .7rem;
    }
}

@media (min-width: 1024px) {
    .sv-split {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }

    .sv-programs {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Two or four cards sit better in two columns than three. */
    .sv-programs:has(> :nth-child(4):last-child),
    .sv-programs:has(> :nth-child(2):last-child) {
        grid-template-columns: repeat(2, 1fr);
    }

    .sv-catalog-foot {
        grid-template-columns: 1fr auto;
        gap: 3rem;
    }
}

@media (min-width: 1280px) {
    a.sv-system {
        flex: 1 1 0;
    }

    .sv-featured-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .sv-panel {
        grid-template-columns: 260px minmax(0, 1fr);
        gap: 2.5rem;
    }

    .sv-group-intro {
        position: sticky;
        top: 110px;
        align-self: start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sv-stack > *,
    .lp-flow > * {
        animation: none;
    }

    a.sv-system,
    a.sv-jump,
    .sv-card,
    .sv-card::before,
    .sv-card-icon,
    .sv-card-more i {
        transition: none;
    }

    .js .sv-group:not(.is-in) .sv-card {
        opacity: 1;
        transform: none;
    }
}
