.hvac-stage-page {
    --hvac-green: #007b67;
    --hvac-green-dark: #00584e;
    --hvac-navy: #08234d;
    --hvac-text: #314663;
    --hvac-muted: #67768a;
    --hvac-line: #dce7e5;
    overflow: hidden;
    background: #ffffff;
    color: var(--hvac-text);
    font-family: Poppins, sans-serif;
}

.hvac-stage-page *,
.hvac-stage-page *::before,
.hvac-stage-page *::after {
    box-sizing: border-box;
}

.hvac-stage-container {
    width: min(1380px, calc(100% - 64px));
    margin: 0 auto;
}

.hvac-stage-page svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.hvac-stage-page h1,
.hvac-stage-page h2,
.hvac-stage-page h3,
.hvac-stage-page h4 {
    color: var(--hvac-navy);
    font-family: 'Work Sans', Poppins, sans-serif;
}

.hvac-stage-hero {
    padding: 8.25rem 0 2.6rem;
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 67%, #f4faf9 100%);
}

.hvac-stage-hero-grid {
    display: grid;
    grid-template-columns: minmax(28rem, 0.82fr) minmax(0, 1.18fr);
    gap: clamp(2rem, 4vw, 5rem);
    align-items: start;
}

.hvac-stage-eyebrow {
    margin: 0 0 0.8rem;
    color: var(--hvac-green);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    line-height: 1.3;
    text-transform: uppercase;
}

.hvac-stage-hero h1 {
    max-width: 43rem;
    margin: 0;
    font-size: clamp(2.7rem, 4.05vw, 4.65rem);
    font-weight: 700;
    letter-spacing: -0.06em;
    line-height: 1.02;
}

.hvac-stage-hero h1 span {
    color: var(--hvac-green-dark);
}

.hvac-stage-lead {
    max-width: 42rem;
    margin: 1.35rem 0 0;
    color: var(--hvac-text);
    font-size: clamp(0.94rem, 1.05vw, 1.07rem);
    line-height: 1.75;
}

.hvac-stage-actions,
.hvac-stage-final-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.7rem;
}

.hvac-stage-button,
.hvac-stage-button:visited {
    display: inline-flex;
    min-height: 3rem;
    gap: 0.6rem;
    align-items: center;
    justify-content: center;
    padding: 0.68rem 1rem;
    border: 1px solid var(--hvac-green);
    border-radius: 0.48rem;
    background: var(--hvac-green);
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transition: box-shadow 180ms ease, transform 180ms ease;
}

.hvac-stage-button:hover,
.hvac-stage-button:focus {
    box-shadow: 0 0.9rem 1.8rem rgba(0, 80, 72, 0.18);
    color: #ffffff;
    transform: translateY(-2px);
}

.hvac-stage-button svg {
    width: 1rem;
    height: 1rem;
}

.hvac-stage-hero-visual {
    position: relative;
    min-width: 0;
    width: 100%;
    aspect-ratio: auto;
    margin: calc(1.71rem + clamp(1.377rem, 2.0655vw, 2.3715rem)) 0 0;
    justify-self: end;
    transform: none;
}

.hvac-stage-hero-visual img {
    position: static;
    display: block;
    width: 100%;
    height: auto;
}

.hvac-stage-hero-visual .is-dashboard {
    z-index: 1;
    top: 1%;
    right: -2%;
    width: 79%;
    border: 1px solid rgba(8, 35, 77, 0.12);
    border-radius: 0.75rem;
    box-shadow: 0 1rem 2.8rem rgba(8, 35, 77, 0.13);
}

.hvac-stage-hero-visual .is-hvac-records {
    z-index: 2;
    inset: 0;
    width: 100%;
    clip-path: inset(32% 0 0 0);
}

.hvac-stage-signal-section {
    padding: 0.8rem 0 2.5rem;
}

.hvac-stage-signals {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid var(--hvac-line);
    border-radius: 0.9rem;
    background: #ffffff;
    box-shadow: 0 1rem 2.4rem rgba(8, 35, 77, 0.06);
}

.hvac-stage-signals > div {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    min-width: 0;
    min-height: 5.6rem;
    padding: 0.8rem clamp(0.8rem, 1.6vw, 1.5rem);
    border-right: 1px solid var(--hvac-line);
}

.hvac-stage-signals > div:last-child { border-right: 0; }

.hvac-stage-signals span,
.hvac-stage-icon {
    display: grid;
    flex: 0 0 auto;
    width: 3rem;
    height: 3rem;
    padding: 0.7rem;
    border: 1px solid var(--hvac-line);
    border-radius: 50%;
    background: #eff9f6;
    color: var(--hvac-green-dark);
    place-items: center;
}

.hvac-stage-signals strong {
    color: var(--hvac-navy);
    font-size: 0.72rem;
    line-height: 1.4;
}

.hvac-stage-features,
.hvac-stage-workflow,
.hvac-stage-outcomes {
    padding: 2.5rem 0;
}

.hvac-stage-heading.is-centred {
    max-width: 67rem;
    margin: 0 auto 2rem;
    text-align: center;
}

.hvac-stage-heading h2 {
    margin: 0;
    font-size: clamp(2.15rem, 3.3vw, 3.55rem);
    font-weight: 700;
    letter-spacing: -0.055em;
    line-height: 1.04;
}

.hvac-stage-heading > p:last-child {
    max-width: 64rem;
    margin: 0.85rem auto 0;
    color: var(--hvac-text);
    font-size: 0.9rem;
    line-height: 1.7;
}

.hvac-stage-feature-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    border: 1px solid var(--hvac-line);
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 0.8rem 2.2rem rgba(8, 35, 77, 0.04);
}

.hvac-stage-feature-grid article {
    min-width: 0;
    min-height: 23rem;
    padding: 1.45rem;
    border-right: 1px solid var(--hvac-line);
    transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.hvac-stage-feature-grid article:last-child { border-right: 0; }

.hvac-stage-feature-grid article:hover {
    z-index: 2;
    background: #fbfefe;
    box-shadow: 0 1.1rem 2.3rem rgba(8, 35, 77, 0.1);
    transform: translateY(-4px);
}

.hvac-stage-feature-grid h3 {
    margin: 1.1rem 0 0;
    font-size: 1rem;
    line-height: 1.35;
}

.hvac-stage-feature-grid p {
    margin: 0.8rem 0 0;
    color: var(--hvac-muted);
    font-size: 0.73rem;
    line-height: 1.7;
}

.hvac-stage-workflow-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2.5rem;
    margin: 2.8rem 0 0;
    padding: 0;
    list-style: none;
}

.hvac-stage-workflow-grid > li {
    position: relative;
    min-width: 0;
    text-align: center;
}

.hvac-stage-workflow-grid > li:not(:last-child)::after {
    position: absolute;
    top: 2.1rem;
    left: calc(50% + 3.5rem);
    width: calc(100% - 4.5rem);
    height: 1px;
    background: linear-gradient(90deg, rgba(0, 123, 103, 0.25), var(--hvac-green-dark));
    content: "";
}

.hvac-stage-workflow-grid > li:not(:last-child)::before {
    position: absolute;
    z-index: 2;
    top: 1.9rem;
    right: -1.3rem;
    width: 0.45rem;
    height: 0.45rem;
    border-top: 1px solid var(--hvac-green-dark);
    border-right: 1px solid var(--hvac-green-dark);
    content: "";
    transform: rotate(45deg);
}

.hvac-stage-step-icon {
    display: grid;
    width: 4.2rem;
    height: 4.2rem;
    margin: 0 auto 1.35rem;
    padding: 1rem;
    border: 1px solid rgba(0, 123, 103, 0.16);
    border-radius: 50%;
    background: #ffffff;
    color: var(--hvac-green-dark);
    box-shadow: 0 0.8rem 2rem rgba(8, 35, 77, 0.08);
    place-items: center;
}

.hvac-stage-workflow-grid > li > strong {
    display: block;
    color: var(--hvac-navy);
    font-size: 0.86rem;
    line-height: 1.45;
}

.hvac-stage-workflow-grid > li > p {
    max-width: 16rem;
    margin: 0.65rem auto 0;
    color: var(--hvac-muted);
    font-size: 0.7rem;
    line-height: 1.62;
}

.hvac-stage-outcomes {
    padding-bottom: 3.2rem;
}

.hvac-stage-outcome-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.hvac-stage-outcome-grid article {
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr);
    gap: 1rem;
    min-height: 12rem;
    padding: 1.2rem;
    border: 1px solid var(--hvac-line);
    border-radius: 0.9rem;
    background: #ffffff;
    box-shadow: 0 0.8rem 2rem rgba(8, 35, 77, 0.04);
    transition: box-shadow 180ms ease, transform 180ms ease;
}

.hvac-stage-outcome-grid article:hover {
    box-shadow: 0 1rem 2.2rem rgba(8, 35, 77, 0.09);
    transform: translateY(-3px);
}

.hvac-stage-outcome-grid h3 {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.4;
}

.hvac-stage-outcome-grid p {
    margin: 0.6rem 0 0;
    color: var(--hvac-muted);
    font-size: 0.68rem;
    line-height: 1.6;
}

.hvac-stage-ai {
    padding: 2.5rem 0 3.5rem;
    background: #f8fbfa;
}

.hvac-stage-ai-panel {
    display: grid;
    grid-template-columns: minmax(22rem, 0.78fr) minmax(0, 1.22fr);
    gap: clamp(2rem, 4vw, 4rem);
    align-items: center;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border: 1px solid var(--hvac-line);
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 1rem 2.8rem rgba(8, 35, 77, 0.07);
}

.hvac-stage-ai-copy h2 {
    margin: 0;
    color: var(--hvac-navy);
    font-size: clamp(2rem, 3vw, 3.2rem);
    font-weight: 700;
    letter-spacing: -0.055em;
    line-height: 1.04;
}

.hvac-stage-ai-copy > p:not(.hvac-stage-eyebrow) {
    margin: 1rem 0 0;
    color: var(--hvac-muted);
    font-size: 0.82rem;
    line-height: 1.7;
}

.hvac-stage-ai-points {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
    margin-top: 1.4rem;
}

.hvac-stage-ai-points span {
    display: flex;
    gap: 0.65rem;
    align-items: center;
    min-width: 0;
    color: var(--hvac-navy);
    font-size: 0.68rem;
    line-height: 1.4;
}

.hvac-stage-ai-points svg {
    flex: 0 0 auto;
    width: 1.45rem;
    height: 1.45rem;
    padding: 0.25rem;
    border-radius: 50%;
    background: #eff9f6;
    color: var(--hvac-green-dark);
}

.hvac-stage-ai-visual {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    padding: 0.55rem;
    border: 1px solid var(--hvac-line);
    border-radius: 0.9rem;
    background: #f7faf9;
}

.hvac-stage-ai-visual img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0.6rem;
}

.hvac-stage-final-cta.reference-closing {
    padding: 3.4rem 0 3rem;
    background: linear-gradient(115deg, #007b67, #00584e);
}

.hvac-stage-final-grid.staging-closing-panel {
    grid-template-columns: minmax(0, 1fr) auto;
    max-width: none;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.hvac-stage-final-grid .staging-closing-title,
.hvac-stage-final-grid .staging-closing-copy,
.hvac-stage-final-grid .staging-closing-signals {
    color: #ffffff;
}

.hvac-stage-final-grid .staging-closing-title {
    max-width: 58rem;
}

.hvac-stage-final-grid .staging-closing-signals {
    border-top-color: rgba(255, 255, 255, 0.2);
}

.hvac-stage-final-grid .staging-closing-signals span::before {
    border-color: rgba(255, 255, 255, 0.75);
}

@media (max-width: 1180px) {
    .hvac-stage-hero-grid {
        grid-template-columns: minmax(25rem, 0.9fr) minmax(0, 1.1fr);
        gap: 2.4rem;
    }

    .hvac-stage-feature-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        overflow: hidden;
    }

    .hvac-stage-feature-grid article {
        min-height: 19rem;
        border-bottom: 1px solid var(--hvac-line);
    }

    .hvac-stage-feature-grid article:nth-child(3) { border-right: 0; }
    .hvac-stage-feature-grid article:nth-last-child(-n + 2) { border-bottom: 0; }

    .hvac-stage-workflow-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2rem 1rem;
    }

    .hvac-stage-workflow-grid > li:not(:last-child)::before,
    .hvac-stage-workflow-grid > li:not(:last-child)::after { display: none; }
}

@media (max-width: 960px) {
    .hvac-stage-hero-grid,
    .hvac-stage-ai-panel,
    .hvac-stage-final-grid.staging-closing-panel {
        grid-template-columns: 1fr;
    }

    .hvac-stage-hero-copy { max-width: 54rem; }
    .hvac-stage-hero-visual { width: min(100%, 54rem); margin: 0 auto; transform: none; }
    .hvac-stage-signals { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hvac-stage-signals > div { border-bottom: 1px solid var(--hvac-line); }
    .hvac-stage-signals > div:nth-child(3) { border-right: 0; }
    .hvac-stage-signals > div:nth-last-child(-n + 2) { border-bottom: 0; }
    .hvac-stage-outcome-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hvac-stage-final-actions { justify-content: flex-start; }
}

@media (max-width: 720px) {
    .hvac-stage-container { width: calc(100% - 32px); }
    .hvac-stage-hero { padding: 7rem 0 2rem; }
    .hvac-stage-hero h1 { font-size: clamp(2.55rem, 11vw, 3.35rem); }

    .hvac-stage-actions,
    .hvac-stage-final-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .hvac-stage-button { width: 100%; }

    .hvac-stage-signals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hvac-stage-signals > div { border-right: 0; }
    .hvac-stage-signals > div:nth-child(odd) { border-right: 1px solid var(--hvac-line); }
    .hvac-stage-signals > div:nth-last-child(-n + 2) { border-bottom: 1px solid var(--hvac-line); }
    .hvac-stage-signals > div:last-child { grid-column: 1 / -1; border-bottom: 0; border-right: 0; }

    .hvac-stage-feature-grid,
    .hvac-stage-workflow-grid,
    .hvac-stage-outcome-grid {
        grid-template-columns: 1fr;
    }

    .hvac-stage-feature-grid article,
    .hvac-stage-feature-grid article:nth-child(3),
    .hvac-stage-feature-grid article:nth-last-child(-n + 2) {
        min-height: 0;
        border-right: 0;
        border-bottom: 1px solid var(--hvac-line);
    }

    .hvac-stage-feature-grid article:last-child { border-bottom: 0; }
    .hvac-stage-ai-points { grid-template-columns: 1fr; }
    .hvac-stage-outcome-grid article { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .hvac-stage-button,
    .hvac-stage-feature-grid article,
    .hvac-stage-outcome-grid article {
        transition: none;
    }
}
