/* ==========================================================================
   Home page components (hp-*).
   Every rule here is opt-in: it only applies to markup that uses an hp- class,
   either in the home page's block content or in a block's "Container Classes" setting.
   ========================================================================== */

:root {
    --hp-orange: #FF4000;
    --hp-orange-dark: #d93600;
    --hp-dark: #241f20;
    --hp-darker: #171314;
    --hp-light: #f6f6f7;
    --hp-mid: #e6e7e8;
}

/* ---------- Type ---------- */

.hp-label,
.hp-label * {
    font-family: "Archivo";
    font-weight: 700;
    font-variation-settings: 'wdth' 125, 'wght' 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .8rem;
    line-height: 1.4;
}

/* Sentence-case section title, used instead of the all-caps h2 for big section headings. */
.hp-title,
.hp-title * {
    font-family: "Archivo";
    font-weight: 800;
    font-variation-settings: 'wdth' 110, 'wght' 800;
    text-transform: none;
    letter-spacing: 0;
    font-size: clamp(1.9rem, 3.2vw, 3rem);
    line-height: 1.1;
}

/* A title that ends its block keeps no bottom margin, or the margin escapes the block
   and the page background shows through as a stripe between rows. */
.hp-title:last-child {
    margin-bottom: 0;
}

.hp-lead {
    font-size: 1.25rem;
    line-height: 1.55;
}

.hp-accent,
h1 .hp-accent,
h2 .hp-accent {
    color: var(--hp-orange);
}

.hp-bar {
    width: 96px;
    height: 10px;
    background: var(--hp-orange);
}

/* ---------- Buttons ---------- */

a.hp-btn,
a.hp-btn:hover {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    padding: 1rem 1.4rem;
    margin: 0;
    font-family: "Archivo";
    font-weight: 700;
    font-variation-settings: 'wdth' 125, 'wght' 700;
    text-transform: uppercase;
    letter-spacing: 0;
    font-size: .95rem;
    line-height: 1.2;
    text-decoration: none;
    border: 2px solid transparent;
    transition: background-color .15s, color .15s, border-color .15s, transform .15s, box-shadow .15s;
}

a.hp-btn .hp-arrow {
    display: inline-block;
    font-size: 1.25em;
    line-height: 1;
    transition: transform .15s;
}

a.hp-btn:hover .hp-arrow {
    transform: translateX(4px);
}

a.hp-btn-primary {
    background: var(--hp-orange);
    color: #fff;
    box-shadow: 0 10px 30px rgba(255, 64, 0, .3);
}

a.hp-btn-primary:hover {
    background: var(--hp-orange-dark);
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
}

a.hp-btn-ghost {
    color: #fff;
    border-color: #fff;
}

a.hp-btn-ghost:hover {
    background: #fff;
    color: var(--hp-dark);
    border-color: #fff;
}

a.hp-btn-dark {
    background: #000;
    color: #fff;
}

a.hp-btn-dark:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
}

/* Text link with an arrow (e.g. "Visit the library"). */
a.hp-link,
a.hp-link:hover {
    display: inline-flex;
    gap: .5rem;
    padding-bottom: .25rem;
    border-bottom: 2px solid var(--hp-orange);
    color: inherit;
    text-decoration: none;
}

a.hp-link:hover {
    color: var(--hp-orange);
}

/* ---------- 1. Hero ---------- */

.hp-hero {
    position: relative;
    overflow: hidden;
    background: var(--hp-dark);
    color: #fff;
}

/* Darker slanted panel behind the screenshot, echoing the site's diagonal. */
.hp-hero::after {
    content: "";
    position: absolute;
    top: 0;
    right: -10%;
    width: 52%;
    height: 100%;
    background: var(--hp-darker);
    transform: skewX(-12deg);
    transform-origin: top;
}

.hp-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    width: calc(100vw - 40px);
    max-width: 1600px;
    margin: 0 auto;
    padding: 4.5rem 0 5rem;
}

.hp-hero h1.hp-hero-title,
.hp-hero h1.hp-hero-title * {
    font-family: "Archivo";
    font-weight: 800;
    font-variation-settings: 'wdth' 125, 'wght' 800;
    text-transform: uppercase;
    font-size: clamp(2.2rem, 4.1vw, 3.6rem);
    line-height: 1.04;
    margin: 0;
    color: #fff;
}

.hp-hero h1.hp-hero-title .hp-accent {
    color: var(--hp-orange);
}

.hp-hero .hp-bar {
    margin: 1.75rem 0;
}

ul.hp-checks {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: clamp(1.15rem, 1.5vw, 1.4rem);
}

ul.hp-checks li {
    position: relative;
    padding: 0 0 .5rem 2.1rem;
}

ul.hp-checks li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--hp-orange);
    font-weight: 800;
}

.hp-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2.25rem;
}

.hp-browser {
    position: relative;
    background: #2c2728;
    border-radius: 10px;
    padding: 30px 8px 8px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .08), 0 0 120px rgba(255, 64, 0, .22);
}

/* Window controls. */
.hp-browser::before {
    content: "";
    position: absolute;
    top: 11px;
    left: 14px;
    width: 46px;
    height: 9px;
    background: radial-gradient(circle, #ff5f57 4px, transparent 5px) 0 0 / 16px 9px repeat-x;
}

.hp-browser img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
}

@media (min-width: 1024px) {
    .hp-hero-inner {
        grid-template-columns: 1.35fr 1fr;
        min-height: 640px;
        padding: 5rem 0;
    }

    .hp-hero-shot {
        transform: perspective(1600px) rotateY(-14deg) rotateX(4deg);
    }
}

/* ---------- 2. Proof / stats ---------- */

.hp-proof {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 4rem 0 3.5rem;
}

.hp-stat-num {
    font-family: "Archivo";
    font-weight: 900;
    font-variation-settings: 'wdth' 125, 'wght' 900;
    color: var(--hp-orange);
    font-size: clamp(6rem, 12vw, 10rem);
    line-height: .85;
}

.hp-stat-caption {
    margin-top: 1rem;
    font-size: 1.2rem;
    line-height: 1.45;
    max-width: 28rem;
}

.hp-quote {
    font-size: clamp(1.25rem, 1.7vw, 1.6rem);
    line-height: 1.4;
    font-weight: 500;
    position: relative;
    padding-top: 2.5rem;
    margin: 0;
}

.hp-quote::before {
    content: "\201C";
    position: absolute;
    top: -1.25rem;
    left: -.25rem;
    font-family: "Archivo";
    font-variation-settings: 'wdth' 125, 'wght' 900;
    font-weight: 900;
    font-size: 6rem;
    line-height: 1;
    color: var(--hp-orange);
}

.hp-cite {
    margin-top: 1.25rem;
    font-size: .95rem;
    color: #555;
}

.hp-cite strong {
    display: block;
    color: inherit;
}

.hp-cite strong,
.hp-cite .hp-name {
    font-family: "Archivo";
    font-weight: 800;
    font-variation-settings: 'wdth' 125, 'wght' 800;
    text-transform: uppercase;
    color: #000;
}

ul.hp-ticks {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
}

ul.hp-ticks li {
    position: relative;
    padding: .55rem 0 .55rem 1.9rem;
    border-bottom: 1px solid var(--hp-mid);
}

ul.hp-ticks li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--hp-orange);
    font-weight: 800;
}

@media (min-width: 1024px) {
    .hp-proof {
        grid-template-columns: .9fr 1.2fr 1fr;
        gap: 4rem;
        align-items: start;
        padding: 5.5rem 0 4.5rem;
    }
}

/* ---------- 5/6. Section head + numbered cards ---------- */

.hp-section {
    padding: 5rem 0;
}

.hp-head {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-bottom: 3rem;
}

@media (min-width: 1024px) {
    .hp-head {
        grid-template-columns: 1fr 1fr;
        gap: 5rem;
        align-items: end;
    }
}

.hp-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem;
}

@media (min-width: 768px) {
    .hp-cards {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Six cards are too wordy for three columns on a tablet. */
    .hp-cards.hp-cards-6 {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Four cards as two rows of two, not three and an orphan. */
    .hp-cards.hp-cards-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Three narrow columns on a tablet: give the text more of the card. */
@media (min-width: 768px) and (max-width: 1023px) {
    .hp-cards {
        gap: 1rem;
    }

    .hp-cards:not(.hp-cards-6) .hp-card {
        padding: 1.75rem 1.25rem 2rem;
    }

    .hp-cards:not(.hp-cards-6) .hp-card h3,
    .hp-cards:not(.hp-cards-6) .hp-card h3 * {
        font-size: 1.15rem;
    }
}

/* Let grid items shrink below their longest word instead of widening the grid past the screen. */
.hp-cards > *,
.hp-head > *,
.hp-hero-inner > * {
    min-width: 0;
}

.hp-card {
    background: #fff;
    padding: 2.5rem 2.25rem 2.75rem;
    border-top: 4px solid transparent;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}

.hp-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 50px rgba(0, 0, 0, .12);
    border-top-color: var(--hp-orange);
}

.hp-card-num {
    font-family: "Archivo";
    font-weight: 900;
    font-variation-settings: 'wdth' 125, 'wght' 900;
    font-size: 2.75rem;
    line-height: 1;
    color: var(--hp-mid);
    transition: color .2s;
}

.hp-card:hover .hp-card-num {
    color: var(--hp-orange);
}

.hp-card img,
.hp-card .hp-icon {
    display: block;
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin: 1.4rem 0 1.1rem;
}

/* Inline line icons: dark strokes with an orange accent. */
.hp-card .hp-icon {
    width: 56px;
    height: 56px;
}

.hp-icon {
    fill: none;
    stroke: var(--hp-dark);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hp-icon .hp-icon-accent {
    stroke: var(--hp-orange);
}

.hp-card h3,
.hp-card h3 * {
    font-family: "Archivo";
    font-weight: 800;
    font-variation-settings: 'wdth' 110, 'wght' 800;
    font-size: 1.35rem;
    line-height: 1.25;
    margin-bottom: .6rem;
}

.hp-card p {
    color: #555;
    margin: 0;
}

/* ---------- Numbered steps ---------- */

ol.hp-steps {
    list-style: none;
    counter-reset: hp-step;
    margin: 1.5rem 0 2rem;
    padding: 0;
}

ol.hp-steps li {
    counter-increment: hp-step;
    display: flex;
    gap: 1rem;
    align-items: baseline;
    font-size: 1.2rem;
    padding: .8rem 0;
    border-bottom: 1px solid var(--hp-mid);
}

ol.hp-steps li::before {
    content: "0" counter(hp-step);
    flex: none;
    font-family: "Archivo";
    font-weight: 800;
    font-variation-settings: 'wdth' 125, 'wght' 800;
    font-size: .95rem;
    color: var(--hp-orange);
}

/* ---------- 7. Testimonial ---------- */

.hp-testimonial .hp-quote {
    color: #fff;
    font-size: clamp(1.3rem, 2vw, 1.85rem);
}

.hp-testimonial .hp-cite,
.hp-testimonial .hp-cite strong {
    color: #fff;
}

.hp-testimonial .hp-cite span {
    color: #aaa;
}

/* ---------- 6. Library cards (featured page list) ---------- */

.hp-library-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.5rem;
    padding: 5rem 0 0;
}

.hp-library a.listgroupitem,
.hp-library a.listgroupitem:hover {
    display: flex;
    flex-direction: column;
    gap: 0;
    height: 100%;
    margin: 0;
    padding: 0;
    background: var(--hp-darker);
    border: 0;
    outline: 2px solid transparent;
    color: #fff;
    transition: outline-color .2s, transform .2s;
}

.hp-library a.listgroupitem:hover {
    outline-color: var(--hp-orange);
    transform: translateY(-4px);
}

.hp-library a.listgroupitem > div:first-child {
    height: 240px;
}

.hp-library a.listgroupitem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1);
    transition: transform .35s, filter .35s;
}

.hp-library a.listgroupitem:hover img {
    transform: scale(1.06);
    filter: none;
}

.hp-library .listgroupitem-title,
body.bg-gray-dark .hp-library .listgroupitem-title {
    padding: 1.6rem 1.75rem 0;
    font-family: "Archivo";
    font-weight: 800;
    font-variation-settings: 'wdth' 105, 'wght' 750;
    text-transform: none;
    font-size: 1.35rem;
    line-height: 1.25;
}

.hp-library .listgroupitem-excerpt,
body.bg-gray-dark .hp-library .listgroupitem-excerpt {
    padding: .75rem 1.75rem 0;
    margin: 0;
    color: #bbb;
    flex: 1;
}

.hp-library .listgroupitem-read-more {
    padding: 1.25rem 1.75rem 1.75rem;
    text-align: left;
    font-family: "Archivo";
    font-weight: 700;
    font-variation-settings: 'wdth' 125, 'wght' 700;
    text-transform: uppercase;
    font-size: .85rem;
    color: #fff;
}

.hp-library a.listgroupitem:hover .listgroupitem-read-more {
    color: var(--hp-orange);
}

/* The empty author/date rows in the shared card template. */
.hp-library .listgroupitem .section-title:empty,
.hp-library .listgroupitem .text-xs:empty {
    display: none;
}

/* ==========================================================================
   Offer landing pages (e.g. /ofa). Built from the same hp- pieces as the home page.
   ========================================================================== */

/* ---------- Hero copy and "what you leave with" panel ---------- */

.hp-hero p.hp-hero-text {
    max-width: 40rem;
    margin: 0 0 1rem;
    font-size: clamp(1.1rem, 1.35vw, 1.3rem);
    line-height: 1.55;
    color: #d9d6d6;
}

.hp-hero p.hp-hero-strong {
    max-width: 40rem;
    margin: 1.5rem 0 0;
    font-size: clamp(1.1rem, 1.35vw, 1.3rem);
    line-height: 1.5;
    font-weight: 700;
    color: #fff;
}

.hp-panel {
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .12);
    border-top: 4px solid var(--hp-orange);
    padding: 2.25rem 2.25rem 1.5rem;
}

.hp-panel .hp-label {
    color: var(--hp-orange);
    margin-bottom: 1rem;
}

ol.hp-panel-list {
    list-style: none;
    counter-reset: hp-panel;
    margin: 0;
    padding: 0;
}

ol.hp-panel-list li {
    counter-increment: hp-panel;
    display: flex;
    gap: 1.1rem;
    align-items: baseline;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, .12);
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}

ol.hp-panel-list li:first-child {
    border-top: 0;
}

ol.hp-panel-list li::before {
    content: "0" counter(hp-panel);
    flex: none;
    font-family: "Archivo";
    font-variation-settings: 'wdth' 125, 'wght' 800;
    font-weight: 800;
    font-size: .95rem;
    color: var(--hp-orange);
}

@media (min-width: 1024px) {
    .hp-hero-inner.hp-hero-offer {
        grid-template-columns: 1.4fr 1fr;
        min-height: 0;
        padding: 6rem 0;
    }
}

/* A hero with a diagram to read, not a screenshot: flat, stacked until both columns have room. */
.hp-hero-diagram figcaption {
    margin-top: .75rem;
    font-size: .85rem;
    color: #a9a3a4;
}

@media (min-width: 1024px) {
    .hp-hero-inner.hp-hero-diagram {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .hp-hero-diagram .hp-hero-shot {
        transform: none;
    }
}

@media (min-width: 1280px) {
    .hp-hero-inner.hp-hero-diagram {
        grid-template-columns: 1fr 1fr;
        min-height: 640px;
    }
}

/* ---------- Body copy column ---------- */

.hp-copy p {
    font-size: 1.15rem;
    line-height: 1.65;
    margin: 0 0 1rem;
}

.hp-copy p:last-child {
    margin-bottom: 0;
}

/* ---------- "You may recognize the signs" grid ---------- */

ul.hp-signs {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 1.5rem 0 2rem;
    padding: 0;
}

@media (min-width: 768px) {
    ul.hp-signs {
        grid-template-columns: repeat(2, 1fr);
    }
}

ul.hp-signs li {
    position: relative;
    padding: 1.1rem 1.25rem 1.1rem 3.1rem;
    background: var(--hp-light);
    font-size: 1.1rem;
    line-height: 1.45;
}

ul.hp-signs li::before {
    content: "";
    position: absolute;
    left: 1.25rem;
    top: 1.45rem;
    width: .9rem;
    height: .9rem;
    border: 3px solid var(--hp-orange);
    border-radius: 50%;
}

.hp-callout {
    font-size: 1.25rem;
    line-height: 1.5;
    font-weight: 700;
    padding-left: 1.25rem;
    border-left: 4px solid var(--hp-orange);
    max-width: 52rem;
}

/* ---------- Six-up cards (areas examined) ---------- */

@media (min-width: 1024px) {
    .hp-cards.hp-cards-6 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.hp-cards-6 .hp-card {
    padding: 2.25rem 2rem 2.5rem;
}

.hp-cards-6 .hp-card .hp-icon {
    margin-top: 0;
}

.hp-note {
    margin: 2.5rem 0 0;
    font-size: 1.15rem;
    color: #555;
}

/* ---------- Four-step process ---------- */

ol.hp-process {
    list-style: none;
    counter-reset: hp-process;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
}

@media (min-width: 768px) {
    ol.hp-process {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1280px) {
    ol.hp-process {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
}

ol.hp-process li {
    counter-increment: hp-process;
    padding-top: 1.5rem;
    border-top: 4px solid var(--hp-mid);
    transition: border-color .2s;
}

ol.hp-process li:hover {
    border-top-color: var(--hp-orange);
}

ol.hp-process li::before {
    content: "0" counter(hp-process);
    display: block;
    margin-bottom: 1rem;
    font-family: "Archivo";
    font-variation-settings: 'wdth' 125, 'wght' 900;
    font-weight: 900;
    font-size: 2.75rem;
    line-height: 1;
    color: var(--hp-orange);
}

ol.hp-process h3,
.hp-deliverable h3,
.hp-faq summary {
    font-family: "Archivo";
    font-variation-settings: 'wdth' 110, 'wght' 800;
    font-weight: 800;
    text-transform: none;
    letter-spacing: 0;
    font-size: 1.35rem;
    line-height: 1.25;
    margin: 0 0 .6rem;
}

ol.hp-process p {
    margin: 0;
    color: #555;
    line-height: 1.6;
}

@media (min-width: 768px) {
    ol.hp-process.hp-process-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    ol.hp-process.hp-process-3 {
        gap: 3rem;
    }
}

.hp-on-dark ol.hp-process li {
    border-top-color: rgba(255, 255, 255, .15);
}

.hp-on-dark ol.hp-process li:hover {
    border-top-color: var(--hp-orange);
}

.hp-on-dark ol.hp-process h3 {
    color: #fff;
}

.hp-on-dark ol.hp-process p {
    color: #d9d6d6;
}

/* ---------- Deliverables (dark row) ---------- */

.hp-deliverables {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .hp-deliverables {
        grid-template-columns: repeat(2, 1fr);
    }
}

.hp-deliverable {
    padding: 2.25rem 2.25rem 2.5rem;
    background: rgba(255, 255, 255, .05);
    border-left: 4px solid var(--hp-orange);
}

.hp-deliverable h3 {
    color: #fff;
}

.hp-deliverable p {
    margin: 0;
    color: #d9d6d6;
    line-height: 1.6;
}

.hp-on-dark .hp-lead {
    color: #d9d6d6;
}

/* ---------- Symptom / possible cause examples ---------- */

ul.hp-examples {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--hp-mid);
}

ul.hp-examples li {
    display: grid;
    grid-template-columns: 1fr;
    gap: .35rem;
    padding: 1.35rem 0;
    border-bottom: 1px solid var(--hp-mid);
    font-size: 1.15rem;
    line-height: 1.5;
}

ul.hp-examples li strong {
    font-family: "Archivo";
    font-variation-settings: 'wdth' 110, 'wght' 800;
    font-weight: 800;
}

@media (min-width: 768px) {
    ul.hp-examples li {
        grid-template-columns: 16rem 1fr;
        gap: 2rem;
    }
}

/* ---------- FAQ ---------- */

.hp-faq {
    border-top: 1px solid var(--hp-mid);
}

.hp-faq details {
    border-bottom: 1px solid var(--hp-mid);
}

.hp-faq summary {
    position: relative;
    display: block;
    list-style: none;
    margin: 0;
    padding: 1.4rem 2.5rem 1.4rem 0;
    cursor: pointer;
}

.hp-faq summary::-webkit-details-marker {
    display: none;
}

.hp-faq summary::after {
    content: "+";
    position: absolute;
    top: 1.3rem;
    right: .4rem;
    width: 1.75rem;
    text-align: center;
    font-size: 1.75rem;
    line-height: 1;
    color: var(--hp-orange);
    transition: transform .2s;
}

.hp-faq details[open] summary::after {
    transform: rotate(45deg);
}

/* Small phones: scale the big headings down so long words still fit. */
@media (max-width: 400px) {
    .hp-hero h1.hp-hero-title,
    .hp-hero h1.hp-hero-title * {
        font-size: 1.85rem;
    }

    .hp-title,
    .hp-title * {
        font-size: 1.65rem;
    }

    a.hp-btn,
    a.hp-btn:hover {
        font-size: .85rem;
        padding: .9rem 1.1rem;
    }
}

.hp-faq summary:hover {
    color: var(--hp-orange);
}

.hp-faq details p {
    margin: 0;
    padding: 0 3rem 1.5rem 0;
    font-size: 1.1rem;
    line-height: 1.65;
    color: #444;
}

/* ==========================================================================
   Platform page (/commergenix): architecture diagram, module families, AI table,
   integration chips, start options. Draft markers (.hp-placeholder) flag copy
   that still needs confirming and should not ship.
   ========================================================================== */

ul.hp-fit {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 2.5rem 0 0;
    padding: 0;
}

@media (min-width: 768px) {
    ul.hp-fit {
        grid-template-columns: repeat(3, 1fr);
    }
}

ul.hp-fit li {
    padding-top: 1rem;
    border-top: 4px solid var(--hp-orange);
    font-size: 1.1rem;
    line-height: 1.5;
}

ul.hp-fit li strong {
    display: block;
    margin-bottom: .25rem;
}

/* ---------- Chips (system names) ---------- */

ul.hp-chips {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 0;
    padding: 0;
}

ul.hp-chips li {
    padding: .35rem .75rem;
    background: #fff;
    border: 1px solid var(--hp-mid);
    font-size: .95rem;
    line-height: 1.3;
}

ul.hp-chips li sup {
    color: var(--hp-orange);
    font-weight: 700;
}

/* ---------- Module families ---------- */

.hp-family {
    padding: 2.5rem 0;
    border-top: 1px solid #dcdcdc;
}

.hp-family:first-child {
    border-top: 0;
    padding-top: 0;
}

.hp-family-head {
    display: grid;
    grid-template-columns: 1fr;
    gap: .5rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 1024px) {
    .hp-family-head {
        grid-template-columns: 1fr 1.4fr;
        gap: 4rem;
        align-items: baseline;
    }
}

.hp-family-head h3 {
    font-family: "Archivo";
    font-variation-settings: 'wdth' 110, 'wght' 800;
    font-weight: 800;
    text-transform: none;
    letter-spacing: 0;
    font-size: clamp(1.4rem, 2vw, 1.8rem);
    line-height: 1.2;
    margin: 0;
}

.hp-family-head p {
    margin: 0;
    font-size: 1.15rem;
    color: #555;
}

.hp-modules {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .hp-modules {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .hp-modules {
        grid-template-columns: repeat(3, 1fr);
    }
}

.hp-modules > * {
    min-width: 0;
}

.hp-module,
a.hp-module,
a.hp-module:hover {
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1.5rem 1.6rem;
    background: #fff;
    border-top: 4px solid transparent;
    color: inherit;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}

a.hp-module:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .1);
    border-top-color: var(--hp-orange);
}

.hp-module h4 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    margin: 0 0 .5rem;
    font-family: "Archivo";
    font-variation-settings: 'wdth' 110, 'wght' 800;
    font-weight: 800;
    text-transform: none;
    letter-spacing: 0;
    font-size: 1.15rem;
    line-height: 1.25;
}

.hp-module p {
    margin: 0;
    color: #555;
    line-height: 1.55;
}

.hp-module .hp-more {
    margin-top: auto;
    padding-top: 1rem;
    font-family: "Archivo";
    font-variation-settings: 'wdth' 125, 'wght' 700;
    font-weight: 700;
    text-transform: uppercase;
    font-size: .75rem;
    letter-spacing: .06em;
    color: var(--hp-orange);
}

.hp-tag {
    display: inline-block;
    padding: .15rem .5rem;
    border: 1px solid var(--hp-orange);
    color: var(--hp-orange);
    font-family: "Archivo";
    font-variation-settings: 'wdth' 110, 'wght' 700;
    font-weight: 700;
    font-size: .65rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    line-height: 1.4;
}

/* Foundation services on a dark row. */
.hp-on-dark .hp-modules .hp-module {
    background: rgba(255, 255, 255, .05);
}

.hp-on-dark .hp-module h4 {
    color: #fff;
}

.hp-on-dark .hp-module p {
    color: #d9d6d6;
}

/* ---------- AI and oversight table ---------- */

.hp-ai {
    border-top: 1px solid var(--hp-mid);
}

.hp-ai-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: .4rem;
    padding: 1.35rem 0;
    border-bottom: 1px solid var(--hp-mid);
    font-size: 1.05rem;
    line-height: 1.55;
}

.hp-ai-row > * {
    min-width: 0;
}

.hp-ai-row strong {
    font-family: "Archivo";
    font-variation-settings: 'wdth' 110, 'wght' 800;
    font-weight: 800;
}

.hp-ai-row .hp-ai-person {
    padding-left: 1rem;
    border-left: 3px solid var(--hp-orange);
}

.hp-ai-row.hp-ai-head {
    display: none;
}

@media (min-width: 900px) {
    .hp-ai-row {
        grid-template-columns: 12rem 1fr 1fr;
        gap: 2rem;
    }

    .hp-ai-row.hp-ai-head {
        display: grid;
        padding: .75rem 0;
    }
}

/* ---------- Text beside a screenshot ---------- */

.hp-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.hp-split > * {
    min-width: 0;
}

@media (min-width: 1024px) {
    .hp-split {
        grid-template-columns: 1fr 1.1fr;
        gap: 4rem;
    }
}

/* ---------- Integration groups ---------- */

.hp-integrations {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem 3rem;
}

@media (min-width: 768px) {
    .hp-integrations {
        grid-template-columns: repeat(2, 1fr);
    }
}

.hp-integrations > * {
    min-width: 0;
}

.hp-integrations h4 {
    margin: 0 0 .75rem;
    font-family: "Archivo";
    font-variation-settings: 'wdth' 125, 'wght' 700;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .8rem;
    color: var(--hp-orange);
}

.hp-integrations ul.hp-chips li {
    background: var(--hp-light);
    border-color: var(--hp-light);
}

/* ---------- Start options ---------- */

.hp-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .hp-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

.hp-options > * {
    min-width: 0;
}

.hp-option {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: clamp(1.5rem, 4vw, 2.25rem);
    background: rgba(255, 255, 255, .05);
    border-top: 4px solid var(--hp-orange);
}

.hp-option h3 {
    margin: 0;
    overflow-wrap: break-word;
    color: #fff;
    font-family: "Archivo";
    font-variation-settings: 'wdth' 110, 'wght' 800;
    font-weight: 800;
    text-transform: none;
    font-size: 1.5rem;
    line-height: 1.2;
}

.hp-option p {
    margin: 0;
    color: #d9d6d6;
    line-height: 1.6;
}

.hp-option .hp-btns {
    margin-top: auto;
    padding-top: .5rem;
}

/* ---------- Draft markers (remove before shipping) ---------- */

.hp-placeholder {
    padding: 1.25rem 1.5rem;
    border: 2px dashed var(--hp-orange);
    background: #fff4ef;
    color: #7a2a0f;
    font-size: 1rem;
    line-height: 1.5;
}

.hp-placeholder strong {
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: .8rem;
}

span.hp-placeholder {
    display: inline;
    padding: 0 .3rem;
    border-width: 1px;
}

/* ---------- Screenshots beside content ---------- */

/* A family's modules with a screenshot beside them on desktop. */
.hp-family-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.hp-family-body > * {
    min-width: 0;
}

@media (min-width: 1024px) {
    .hp-family-body {
        grid-template-columns: 1.2fr 1fr;
        gap: 2.5rem;
        align-items: start;
    }

    .hp-family-body .hp-modules {
        grid-template-columns: repeat(2, 1fr);
    }

    .hp-family-body .hp-shot {
        position: sticky;
        top: 6rem;
    }
}

.hp-shot {
    margin: 0;
}

.hp-shot a {
    display: block;
}

/* A softer frame on light rows. */
.hp-shot .hp-browser {
    box-shadow: 0 20px 45px rgba(0, 0, 0, .18), 0 0 0 1px rgba(0, 0, 0, .06);
}

.hp-on-dark .hp-shot .hp-browser {
    box-shadow: 0 30px 60px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .08);
}

.hp-shot figcaption {
    margin-top: .9rem;
    font-size: .95rem;
    color: #666;
}

.hp-on-dark .hp-shot figcaption {
    color: #bbb;
}

.hp-shot-wide {
    max-width: 960px;
    margin: 2.5rem auto 0;
}

/* ---------- Architecture diagram (dark row) ---------- */

.hp-arch {
    --arch-line: rgba(255, 255, 255, .12);
    position: relative;
    margin: 0;
    color: #fff;
}

.hp-arch * {
    min-width: 0;
}

.hp-arch svg {
    flex: none;
    width: 22px;
    height: 22px;
    fill: none;
    stroke: var(--hp-orange);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hp-arch-k {
    font-family: "Archivo";
    font-variation-settings: 'wdth' 125, 'wght' 700;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .7rem;
    color: #a9a3a4;
    margin-bottom: .75rem;
}

.hp-arch-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: .75rem;
}

@media (min-width: 768px) {
    .hp-arch-3 {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .hp-arch-5 {
        grid-template-columns: repeat(5, 1fr);
        gap: .75rem;
    }
}

@media (min-width: 480px) and (max-width: 767px) {
    .hp-arch-5 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Who it serves. */
.hp-arch-serve {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .85rem 1rem;
    border: 1px solid var(--arch-line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .04);
    font-family: "Archivo";
    font-variation-settings: 'wdth' 100, 'wght' 650;
    font-weight: 600;
    font-size: .95rem;
    line-height: 1.25;
}

/* Connectors, with a pulse travelling along each one. */
.hp-arch-links {
    height: 2.25rem;
}

.hp-arch-links i {
    position: relative;
    justify-self: center;
    width: 1px;
    height: 100%;
    background: linear-gradient(rgba(255, 64, 0, .15), rgba(255, 64, 0, .6), rgba(255, 64, 0, .15));
}

.hp-arch-links i::after {
    content: "";
    position: absolute;
    left: -2.5px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ff7a45;
    box-shadow: 0 0 8px 2px rgba(255, 64, 0, .7);
    animation: hp-arch-down 2.4s linear infinite;
}

.hp-arch-up i::after,
.hp-arch-both i:nth-child(even)::after {
    animation-name: hp-arch-up;
}

.hp-arch-links i:nth-child(2)::after { animation-delay: -.8s; }
.hp-arch-links i:nth-child(3)::after { animation-delay: -1.6s; }
.hp-arch-links i:nth-child(4)::after { animation-delay: -.4s; }
.hp-arch-links i:nth-child(5)::after { animation-delay: -1.2s; }

@keyframes hp-arch-down {
    0% { top: -6px; opacity: 0; }
    15%, 85% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

@keyframes hp-arch-up {
    0% { top: 100%; opacity: 0; }
    15%, 85% { opacity: 1; }
    100% { top: -6px; opacity: 0; }
}

/* One connector is enough when the tiers stack. */
@media (max-width: 767px) {
    .hp-arch-row.hp-arch-links {
        grid-template-columns: 1fr;
    }

    .hp-arch-links i:not(:first-child) {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hp-arch-links i::after {
        display: none;
    }

    .hp-arch-family {
        transition: none;
    }
}

/* The Commergenix layer. */
.hp-arch-core {
    position: relative;
    padding: 2.25rem clamp(.85rem, 2.5vw, 1.5rem) clamp(.85rem, 2.5vw, 1.5rem);
    border: 1px solid rgba(255, 64, 0, .7);
    border-radius: 14px;
    background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(255, 64, 0, .16), transparent 70%), rgba(255, 255, 255, .02);
    box-shadow: 0 0 0 4px rgba(255, 64, 0, .07), 0 0 60px rgba(255, 64, 0, .18), inset 0 1px 0 rgba(255, 255, 255, .06);
}

.hp-arch-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: .4rem 1.1rem;
    border-radius: 999px;
    background: var(--hp-orange);
    box-shadow: 0 6px 20px rgba(255, 64, 0, .45);
    font-family: "Archivo";
    font-variation-settings: 'wdth' 125, 'wght' 800;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .75rem;
    white-space: nowrap;
}

.hp-arch-family {
    padding: 1.1rem 1.15rem 1.2rem;
    border: 1px solid var(--arch-line);
    border-radius: 10px;
    background: rgba(255, 255, 255, .05);
    transition: border-color .2s, transform .2s;
}

.hp-arch-family:hover {
    border-color: rgba(255, 64, 0, .6);
    transform: translateY(-2px);
}

.hp-arch-family h4 {
    margin: 0 0 .75rem;
    padding-bottom: .65rem;
    border-bottom: 1px solid var(--arch-line);
    font-family: "Archivo";
    font-variation-settings: 'wdth' 100, 'wght' 700;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    font-size: 1rem;
    line-height: 1.3;
    color: #fff;
}

.hp-arch-family ul,
.hp-arch-platform ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hp-arch-family li {
    position: relative;
    padding: .2rem 0 .2rem 1rem;
    font-size: .92rem;
    color: #d9d6d6;
}

.hp-arch-family li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .72em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--hp-orange);
}

.hp-arch-platform {
    margin-top: 1rem;
    padding: 1.1rem 1.15rem .4rem;
    border-top: 1px dashed rgba(255, 64, 0, .45);
    text-align: center;
}

.hp-arch-platform .hp-arch-k {
    color: #ff7a45;
    margin-bottom: .35rem;
}

.hp-arch-platform p {
    margin: 0 auto .9rem;
    font-size: .92rem;
    color: #bdb7b8;
}

.hp-arch-platform ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem;
}

.hp-arch-platform li {
    padding: .4rem .85rem;
    border: 1px solid rgba(255, 64, 0, .5);
    border-radius: 999px;
    background: rgba(255, 64, 0, .08);
    font-size: .85rem;
    font-weight: 700;
}

/* Integrations: the bottom strip of the Commergenix layer, facing your systems. */
.hp-arch-int {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .9rem;
    margin-top: 1.25rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--arch-line);
    border-radius: 10px;
    background: rgba(255, 255, 255, .05);
}

.hp-arch-int strong {
    display: block;
    font-family: "Archivo";
    font-variation-settings: 'wdth' 100, 'wght' 700;
    font-weight: 700;
    font-size: 1rem;
}

.hp-arch-int span {
    display: block;
    font-size: .9rem;
    color: #a9a3a4;
}

/* Your systems. */
.hp-arch-sys {
    padding: .9rem 1rem;
    border: 1px solid var(--arch-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .04);
}

.hp-arch-sys strong {
    display: block;
    margin-bottom: .2rem;
    font-family: "Archivo";
    font-variation-settings: 'wdth' 100, 'wght' 700;
    font-weight: 700;
    font-size: .95rem;
    line-height: 1.25;
}

.hp-arch-sys span {
    display: block;
    font-size: .82rem;
    line-height: 1.45;
    color: #a9a3a4;
}

.hp-arch figcaption {
    margin-top: 1.25rem;
    text-align: center;
    font-size: .9rem;
    color: #a9a3a4;
}

/* ---------- Integration logo tiles ---------- */

.hp-logo-group {
    margin-top: 2.25rem;
}

.hp-logo-group h4 {
    margin: 0 0 .9rem;
    font-family: "Archivo";
    font-variation-settings: 'wdth' 125, 'wght' 700;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-size: .78rem;
    color: var(--hp-orange);
}

ul.hp-logos {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
}

@media (min-width: 360px) {
    ul.hp-logos {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: .5rem;
    }
}

@media (min-width: 640px) {
    ul.hp-logos {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: .75rem;
    }
}

@media (min-width: 1024px) {
    ul.hp-logos {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

ul.hp-logos li {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .7rem;
    min-height: 7rem;
    padding: .9rem .5rem .85rem;
    border: 1px solid #e6e4e4;
    border-radius: 10px;
    background: #fff;
    text-align: center;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}

@media (min-width: 640px) {
    ul.hp-logos li {
        min-height: 8.25rem;
        padding: 1.1rem .75rem 1rem;
    }
}

ul.hp-logos li:hover {
    border-color: rgba(255, 64, 0, .45);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .07);
    transform: translateY(-2px);
}

ul.hp-logos img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

ul.hp-logos span {
    font-family: "Archivo";
    font-variation-settings: 'wdth' 100, 'wght' 650;
    font-weight: 600;
    font-size: .72rem;
    line-height: 1.3;
    color: #241f20;
    overflow-wrap: break-word;
}

@media (min-width: 640px) {
    ul.hp-logos span {
        font-size: .82rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    ul.hp-logos li {
        transition: none;
    }
}

/* ---------- Configured per customer (callout in the modules section) ---------- */

.hp-tailor {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 0 0 2.5rem;
    padding: clamp(1.5rem, 4vw, 2.25rem);
    border-left: 4px solid var(--hp-orange);
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .05);
}

.hp-tailor > * {
    min-width: 0;
}

@media (min-width: 1024px) {
    .hp-tailor {
        grid-template-columns: 1fr 1.1fr;
        gap: 3.5rem;
        align-items: center;
    }
}

.hp-tailor h3 {
    margin: .75rem 0 .75rem;
    font-family: "Archivo";
    font-variation-settings: 'wdth' 110, 'wght' 800;
    font-weight: 800;
    text-transform: none;
    letter-spacing: 0;
    font-size: clamp(1.35rem, 2.2vw, 1.75rem);
    line-height: 1.2;
}

.hp-tailor p {
    margin: 0;
    color: #555;
    line-height: 1.6;
}

.hp-tailor ul.hp-ticks {
    margin: 0;
}

.hp-tailor ul.hp-ticks li:last-child {
    border-bottom: 0;
}

/* ---------- Image Forge samples ---------- */

.hp-forge {
    max-width: 960px;
    margin: 2rem auto 0;
}

.hp-forge ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(.5rem, 2vw, 1rem);
}

.hp-forge li {
    border: 1px solid #e6e4e4;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}

.hp-forge img {
    display: block;
    width: 100%;
    height: auto;
}

.hp-forge figcaption {
    margin-top: .75rem;
    text-align: center;
    font-size: .9rem;
    color: #777;
}

/* ---------- Rotating screenshots (hp-rotate.js) ---------- */

.hp-rotate-stage {
    display: grid;
}

.hp-rotate-slide {
    grid-area: 1 / 1;
}

/* Without the script only the first screen shows. */
.hp-rotate-slide:not(:first-child) {
    visibility: hidden;
}

.hp-rotate.is-ready .hp-rotate-slide {
    visibility: hidden;
    opacity: 0;
    transition: opacity 1.2s ease, visibility 0s linear 1.2s;
}

.hp-rotate.is-ready .hp-rotate-slide.is-active {
    visibility: visible;
    opacity: 1;
    transition: opacity 1.2s ease, visibility 0s;
}

.hp-rotate-nav {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    margin-top: .9rem;
}

.hp-rotate-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem .4rem;
    min-width: 0;
}

.hp-rotate-tab,
.hp-rotate-toggle {
    position: relative;
    overflow: hidden;
    padding: .35rem .75rem;
    border: 1px solid #dcd9d9;
    border-radius: 999px;
    background: #fff;
    color: #555;
    font-family: "Archivo";
    font-variation-settings: 'wdth' 100, 'wght' 600;
    font-weight: 600;
    font-size: .78rem;
    line-height: 1.2;
    cursor: pointer;
    transition: border-color .2s, color .2s;
}

.hp-rotate-tab:hover,
.hp-rotate-toggle:hover {
    border-color: var(--hp-orange);
    color: #241f20;
}

.hp-rotate-tab.is-active {
    border-color: var(--hp-orange);
    color: #241f20;
}

/* Progress bar filling under the active tab while the slideshow runs. */
.hp-rotate-tab::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 100%;
    background: var(--hp-orange);
    transform: scaleX(0);
    transform-origin: left;
}

.hp-rotate.is-running .hp-rotate-tab.is-active::after {
    animation: hp-rotate-fill var(--hp-rotate-ms, 7000ms) linear forwards;
}

@keyframes hp-rotate-fill {
    to { transform: scaleX(1); }
}

.hp-rotate-toggle {
    flex: none;
    width: 1.9rem;
    height: 1.9rem;
    padding: 0;
}

/* Pause bars, or a play triangle once stopped. */
.hp-rotate-toggle::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 10px;
    transform: translate(-50%, -50%);
    border-left: 3px solid currentColor;
    border-right: 3px solid currentColor;
}

.hp-rotate.is-stopped .hp-rotate-toggle::before {
    width: 0;
    height: 0;
    margin-left: 1px;
    border-style: solid;
    border-width: 5.5px 0 5.5px 9px;
    border-color: transparent transparent transparent currentColor;
}

.hp-rotate figcaption {
    min-height: 3em;
}

/* Dark rows and the hero. */
.hp-on-dark .hp-rotate-tab,
.hp-on-dark .hp-rotate-toggle,
.hp-hero .hp-rotate-tab,
.hp-hero .hp-rotate-toggle {
    border-color: rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .05);
    color: #bbb;
}

.hp-on-dark .hp-rotate-tab.is-active,
.hp-hero .hp-rotate-tab.is-active,
.hp-on-dark .hp-rotate-tab:hover,
.hp-hero .hp-rotate-tab:hover,
.hp-on-dark .hp-rotate-toggle:hover,
.hp-hero .hp-rotate-toggle:hover {
    border-color: var(--hp-orange);
    color: #fff;
}

.hp-hero .hp-rotate {
    margin: 0;
}

.hp-hero .hp-rotate-nav {
    margin-top: 1.1rem;
}

@media (prefers-reduced-motion: reduce) {
    .hp-rotate.is-ready .hp-rotate-slide,
    .hp-rotate.is-ready .hp-rotate-slide.is-active {
        transition: none;
    }
}

/* ---------- Hero variants ---------- */

/* Screen-first: the copy across the top, then a wide, flat screenshot that bridges into the light row below.
   For dense screens that a tilted window would make unreadable. */
.hp-hero--screen::after {
    display: none;
}

.hp-hero--screen .hp-hero-inner {
    gap: 3rem;
    padding-bottom: 4rem;
}

.hp-hero--screen .hp-hero-copy {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0 4rem;
    align-items: start;
}

@media (min-width: 1024px) {
    .hp-hero--screen .hp-hero-inner {
        grid-template-columns: 1fr;
        min-height: 0;
        padding-top: 4.5rem;
    }

    .hp-hero--screen .hp-hero-copy {
        grid-template-columns: 1.1fr 1fr;
    }

    .hp-hero--screen .hp-hero-copy .hp-btns {
        margin-top: 1.75rem;
    }
}

.hp-hero--screen .hp-hero-shot {
    position: relative;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    transform: none;
}

/* The light band behind the lower part of the screenshot, matching the row that follows. */
.hp-hero--screen .hp-hero-shot::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 45%;
    bottom: -4rem;
    left: -50vw;
    right: -50vw;
    background: var(--hp-light);
}

.hp-hero--screen .hp-browser {
    box-shadow: 0 30px 70px rgba(0, 0, 0, .35), 0 0 0 1px rgba(255, 255, 255, .08);
}

/* Slideshow controls sit on the light band, so they use the light-row styles. */
.hp-hero.hp-hero--screen .hp-rotate-nav {
    justify-content: center;
}

.hp-hero.hp-hero--screen .hp-rotate-tab,
.hp-hero.hp-hero--screen .hp-rotate-toggle {
    border-color: #dcd9d9;
    background: #fff;
    color: #555;
}

.hp-hero.hp-hero--screen .hp-rotate-tab.is-active,
.hp-hero.hp-hero--screen .hp-rotate-tab:hover,
.hp-hero.hp-hero--screen .hp-rotate-toggle:hover {
    border-color: var(--hp-orange);
    color: #241f20;
}

/* Output-first: what the module produces, rather than the app that produces it. */
.hp-hero .hp-hero-shot.hp-hero-tiles {
    transform: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(.6rem, 1.5vw, 1rem);
    max-width: 640px;
    width: 100%;
    margin: 0 auto;
}

.hp-hero-tiles figure {
    margin: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 24px 50px rgba(0, 0, 0, .45);
}

.hp-hero-tiles figure:first-child {
    grid-column: 1 / -1;
}

.hp-hero-tiles img {
    display: block;
    width: 100%;
    height: auto;
}

.hp-hero-tiles p {
    grid-column: 1 / -1;
    font-size: .9rem;
    color: #aaa;
    text-align: center;
}

/* Output-first, cut out: a product render on the dark hero, lit from behind by a warm glow. */
.hp-hero .hp-hero-shot.hp-hero-glow {
    position: relative;
    transform: none;
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
}

.hp-hero-glow::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -20% -10% -10%;
    background: radial-gradient(closest-side, rgba(255, 64, 0, .38), rgba(255, 64, 0, .14) 50%, transparent 80%);
}

/* The render runs off its right edge, so fade that end into the background. */
.hp-hero-glow img {
    display: block;
    width: 100%;
    height: auto;
    -webkit-mask-image: linear-gradient(to right, #000 68%, transparent 97%);
    mask-image: linear-gradient(to right, #000 68%, transparent 97%);
    filter: drop-shadow(0 28px 36px rgba(0, 0, 0, .55));
}

.hp-hero-glow p {
    margin: 1.25rem 0 0;
    font-size: .9rem;
    color: #aaa;
    text-align: center;
}

/* ---------- Alternating text and screenshot rows ---------- */

.hp-feature + .hp-feature {
    margin-top: 4.5rem;
}

@media (min-width: 1024px) {
    .hp-feature + .hp-feature {
        margin-top: 6rem;
    }

    /* Screenshot on the left, text on the right; the text still comes first on phones. */
    .hp-split.hp-flip {
        grid-template-columns: 1.1fr 1fr;
    }

    .hp-split.hp-flip > :first-child {
        order: 2;
    }
}

/* ---------- Results table ---------- */

.hp-table {
    overflow-x: auto;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 0 0 1px var(--hp-mid);
}

.hp-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
}

.hp-table th,
.hp-table td {
    padding: .9rem 1.25rem;
    border-bottom: 1px solid var(--hp-mid);
    text-align: left;
    vertical-align: top;
}

.hp-table th {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #666;
}

.hp-table tbody tr:last-child td {
    border-bottom: 0;
}

.hp-table td:first-child {
    font-weight: 700;
    color: var(--hp-dark);
}

.hp-table td.hp-num {
    text-align: right;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: var(--hp-orange);
}

.hp-table caption {
    caption-side: bottom;
    padding: .9rem 1.25rem;
    text-align: left;
    font-size: .95rem;
    color: #666;
}

/* Phones: each row becomes a small card, the rule and its count on one line and the check below. */
@media (max-width: 639px) {
    .hp-table thead {
        display: none;
    }

    .hp-table table,
    .hp-table tbody,
    .hp-table caption {
        display: block;
    }

    .hp-table tr {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: .35rem 1rem;
        padding: 1rem;
        border-bottom: 1px solid var(--hp-mid);
    }

    .hp-table th,
    .hp-table td {
        padding: 0;
        border: 0;
    }

    .hp-table td:nth-child(2) {
        grid-column: 1 / -1;
        grid-row: 2;
        color: #555;
    }

    .hp-table caption {
        padding: 1rem;
    }
}

/* Inline code in copy (a site-wide style otherwise makes it white). */
.hp-section code {
    padding: .1em .35em;
    border-radius: 4px;
    background: rgba(0, 0, 0, .06);
    color: var(--hp-dark);
    font-size: .88em;
}

.hp-on-dark code {
    background: rgba(255, 255, 255, .1);
    color: #fff;
}

/* ---------- Render gallery (contact sheet) ---------- */

.hp-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 1024px) {
    .hp-gallery {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }
}

.hp-gallery figure {
    margin: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #fefffd;
    box-shadow: 0 0 0 1px var(--hp-mid);
}

.hp-gallery img {
    display: block;
    width: 100%;
    height: auto;
}

.hp-gallery figcaption {
    padding: .7rem .9rem .8rem;
    border-top: 1px solid var(--hp-mid);
    background: #fff;
    font-size: .85rem;
    line-height: 1.4;
    color: #666;
}

.hp-gallery figcaption strong {
    display: block;
    font-size: .8rem;
    letter-spacing: .04em;
    color: var(--hp-dark);
}

/* A wide tile across the whole row, such as a cutaway. */
.hp-gallery .hp-gallery-wide {
    grid-column: 1 / -1;
}

/* One cable, several views: a wide view across the top, then a wider and a square tile. */
.hp-gallery.hp-gallery-views {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .hp-gallery.hp-gallery-views {
        grid-template-columns: 1.75fr 1fr;
    }
}

.hp-gallery-views figure {
    display: grid;
    grid-template-rows: 1fr auto;
}

.hp-gallery-views img {
    height: 100%;
    object-fit: contain;
}

/* ---------- Five steps in one row on wide screens ---------- */

@media (min-width: 1280px) {
    ol.hp-process.hp-process-5 {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* ---------- What the customer wrote, and what was read from it ---------- */

.hp-read {
    display: grid;
    grid-template-columns: 1fr;
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 0 0 1px var(--hp-mid), 0 20px 45px rgba(0, 0, 0, .08);
}

@media (min-width: 900px) {
    .hp-read {
        grid-template-columns: 1fr 1fr;
    }
}

.hp-read > div {
    min-width: 0;
    padding: 1.75rem 2rem;
}

.hp-read .hp-read-said {
    background: var(--hp-light);
    border-bottom: 1px solid var(--hp-mid);
}

@media (min-width: 900px) {
    .hp-read .hp-read-said {
        border-bottom: 0;
        border-right: 1px solid var(--hp-mid);
    }
}

.hp-read blockquote {
    margin: 1rem 0 0;
    font-size: 1.2rem;
    line-height: 1.6;
    font-style: italic;
    color: var(--hp-dark);
}

.hp-read dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .55rem 1.5rem;
    margin: 1rem 0 0;
    font-size: 1.05rem;
}

.hp-read dt {
    color: #666;
}

.hp-read dd {
    margin: 0;
    font-weight: 700;
    color: var(--hp-dark);
}

.hp-read .hp-read-ask {
    margin: 1.25rem 0 0;
    padding-top: 1rem;
    border-top: 1px dashed var(--hp-mid);
    color: #555;
}

.hp-read .hp-read-ask strong {
    color: var(--hp-dark);
}

/* Two screenshots stacked beside one block of text. */
.hp-stack {
    display: grid;
    gap: 1.5rem;
    min-width: 0;
}

/* Raw text on the "said" side of .hp-read: a log line, a schedule, a request. */
.hp-read pre {
    margin: 1rem 0 0;
    font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
    font-size: .92rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
    color: var(--hp-dark);
}

/* A tall, narrow screenshot (a dialog or a panel) beside text. */
.hp-shot-narrow {
    width: 100%;
    max-width: 420px;
    margin-inline: auto;
}

/* ---------- Partner badge rows ---------- */

/* Too many badges for one row on a phone, so they wrap into rows of three. */
@media (max-width: 767px) {
    .flex.justify-center.gap-1:has(.partner-badge) {
        flex-wrap: wrap;
        row-gap: .5rem;
    }

    .flex.justify-center.gap-1:has(.partner-badge) > * {
        flex: 0 0 calc((100% - .5rem) / 3);
    }
}
