/* ==========================================================================
   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);
    }
}

/* 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;
    }
}

/* ---------- 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;
}
