.home-v4 {
    --home-v4-ink: #142233;
    --home-v4-ink-soft: #1d3043;
    --home-v4-paper: #f5f2ec;
    --home-v4-mist: #d7e2e5;
    --home-v4-teal: #2f6f77;
    --home-v4-teal-light: #8fc4c8;
    --home-v4-sand: #c78e5b;
    --home-v4-rule: rgba(20, 34, 51, 0.14);
    --home-v4-shell: 1280px;
    --home-v4-gutter: 64px;
    --home-v4-section-y: clamp(64px, 5.5vw, 80px);
    --home-v4-h1: clamp(42px, 4.2vw, 64px);
    --home-v4-h2: clamp(30px, 3vw, 44px);
    --home-v4-h3: clamp(18px, 1.5vw, 21px);
    overflow: hidden;
    background: var(--home-v4-paper);
    color: var(--ink);
}

.home-v4 *,
.home-v4 *::before,
.home-v4 *::after {
    box-sizing: border-box;
}

.home-v4-shell {
    width: min(var(--home-v4-shell), calc(100% - var(--home-v4-gutter) - var(--home-v4-gutter)));
    margin-inline: auto;
}

.home-v4-section {
    position: relative;
    padding-block: var(--home-v4-section-y);
    scroll-margin-top: calc(var(--header-height) + 20px);
}

.home-v4-eyebrow,
.home-v4-kicker,
.home-v4-panel-head span,
.home-v4-panel-output span,
.home-v4-step-badge,
.home-v4-fit-card > span,
.home-v4-final aside > span {
    display: flex;
    gap: 10px;
    align-items: center;
    color: var(--home-v4-teal);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1.4;
    text-transform: uppercase;
}

.home-v4-eyebrow > span {
    width: 34px;
    height: 1px;
    flex: 0 0 auto;
    background: currentColor;
}

.home-v4 h1,
.home-v4 h2,
.home-v4 h3 {
    text-wrap: balance;
}

.home-v4 h1 {
    max-width: 760px;
    color: #fff;
    font-size: var(--home-v4-h1);
    font-weight: 600;
    line-height: 1.02;
    letter-spacing: -0.035em;
}

.home-v4 h2 {
    font-size: var(--home-v4-h2);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.025em;
}

.home-v4 h3 {
    font-size: var(--home-v4-h3);
    line-height: 1.2;
}

.home-v4 p,
.home-v4 li,
.home-v4 select,
.home-v4 button {
    font-size: 15px;
}

.home-v4-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.home-v4-btn {
    display: inline-flex;
    min-height: 46px;
    padding: 11px 20px;
    border: 1px solid transparent;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.025em;
    line-height: 1.25;
    text-align: center;
    transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.home-v4-btn:hover {
    transform: translateY(-1px);
}

.home-v4-btn-primary {
    background: var(--home-v4-teal);
    color: #fff;
}

.home-v4-btn-primary:hover {
    background: #3d858d;
}

.home-v4-btn-ghost {
    border-color: rgba(255, 255, 255, 0.34);
    color: #fff;
}

.home-v4-btn-ghost:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.07);
}

.home-v4-section-head {
    max-width: 820px;
    margin-bottom: clamp(30px, 4vw, 48px);
    padding-bottom: 22px;
    border-bottom: 1px solid var(--home-v4-rule);
}

.home-v4-section-head h2,
.home-v4-form-intro h2 {
    max-width: 760px;
    margin-top: 14px;
}

.home-v4-section-head > p,
.home-v4-form-intro > p {
    max-width: 640px;
    margin: 16px 0 0;
    color: var(--ink-2);
    line-height: 1.68;
}

.home-v4-section-head.is-light {
    border-bottom-color: rgba(255, 255, 255, 0.14);
}

.home-v4-section-head.is-light h2 {
    color: #fff;
}

.home-v4-section-head.is-light > p {
    color: rgba(255, 255, 255, 0.7);
}

.home-v4-hero {
    position: relative;
    padding-block: clamp(58px, 6vw, 82px);
    overflow: hidden;
    background: var(--home-v4-ink);
}

.home-v4-hero::before {
    position: absolute;
    inset: 0;
    opacity: 0.22;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 64px 64px;
    content: "";
    pointer-events: none;
}

.home-v4-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(330px, 0.72fr);
    gap: clamp(40px, 5vw, 72px);
    align-items: center;
}

.home-v4-hero-copy {
    max-width: 780px;
}

.home-v4-hero .home-v4-eyebrow {
    margin-bottom: 20px;
    color: var(--home-v4-teal-light);
}

.home-v4-hero-lead {
    max-width: 690px;
    margin: 20px 0 24px;
    color: rgba(255, 255, 255, 0.77);
    font-size: clamp(15px, 1.25vw, 18px) !important;
    line-height: 1.65;
}

.home-v4-hero-note {
    max-width: 650px;
    margin: 20px 0 0;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.57);
    font-size: 10px !important;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.55;
    text-transform: uppercase;
}

.home-v4-pipeline {
    position: relative;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.17);
    background: rgba(9, 22, 35, 0.72);
}

.home-v4-pipeline::before {
    position: absolute;
    inset: -3px 20px auto auto;
    width: 54px;
    height: 3px;
    background: var(--home-v4-sand);
    content: "";
}

.home-v4-panel-head {
    display: flex;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
    align-items: flex-end;
    justify-content: space-between;
}

.home-v4-panel-head span {
    color: var(--home-v4-teal-light);
}

.home-v4-panel-head strong {
    color: #fff;
    font-size: 14px;
}

.home-v4-pipeline-rail {
    display: grid;
    margin: 18px 0;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
}

.home-v4-pipeline-rail span {
    height: 3px;
    background: rgba(255, 255, 255, 0.13);
}

.home-v4-pipeline-rail .is-complete {
    background: var(--home-v4-teal-light);
}

.home-v4-pipeline-rail .is-alert {
    background: var(--home-v4-sand);
}

.home-v4-opportunity-list {
    display: grid;
    gap: 2px;
}

.home-v4-opportunity-list article {
    display: grid;
    gap: 3px;
    padding: 12px;
    border-left: 3px solid var(--home-v4-teal-light);
    background: rgba(255, 255, 255, 0.055);
}

.home-v4-opportunity-list article.is-alert {
    border-left-color: var(--home-v4-sand);
}

.home-v4-opportunity-list span,
.home-v4-opportunity-list small {
    color: rgba(255, 255, 255, 0.54);
    font-size: 9px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-v4-opportunity-list strong {
    color: #fff;
    font-size: 13px;
}

.home-v4-panel-output {
    margin-top: 16px;
    padding: 12px;
    border: 1px solid rgba(143, 196, 200, 0.32);
}

.home-v4-panel-output span {
    color: var(--home-v4-teal-light);
}

.home-v4-panel-output p {
    margin: 6px 0 0;
    color: #fff;
    font-size: 12px !important;
}

.home-v4-pain,
.home-v4-fit {
    background: var(--home-v4-paper);
}

.home-v4-pain-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px;
    background: var(--home-v4-rule);
}

.home-v4-pain-card {
    min-height: 210px;
    padding: clamp(22px, 3vw, 30px);
    background: var(--home-v4-mist);
}

.home-v4-pain-card > span {
    display: block;
    margin-bottom: 24px;
    color: var(--home-v4-teal);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.home-v4-pain-card p {
    max-width: 490px;
    margin: 12px 0 0;
    color: var(--ink-2);
    font-size: 14px;
    line-height: 1.65;
}

.home-v4-crm,
.home-v4-final {
    background-color: var(--home-v4-ink);
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 64px 64px;
    color: #fff;
}

.home-v4-crm-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr);
    gap: clamp(42px, 6vw, 84px);
    align-items: center;
}

.home-v4-crm-grid .home-v4-section-head {
    margin-bottom: 0;
}

.home-v4-crm-map {
    display: grid;
    padding: clamp(22px, 3vw, 32px);
    border: 1px solid rgba(255, 255, 255, 0.17);
    gap: 14px;
    background: rgba(9, 22, 35, 0.7);
}

.home-v4-crm-inputs,
.home-v4-crm-line {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}

.home-v4-crm-inputs span {
    padding: 10px 6px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    color: rgba(255, 255, 255, 0.64);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-align: center;
    text-transform: uppercase;
}

.home-v4-crm-line i {
    position: relative;
    display: block;
    height: 14px;
}

.home-v4-crm-line i::before {
    position: absolute;
    inset: 0 auto 0 50%;
    width: 1px;
    background: rgba(255, 255, 255, 0.18);
    content: "";
}

.home-v4-crm-core {
    display: grid;
    padding: 18px;
    border-left: 3px solid var(--home-v4-teal-light);
    gap: 6px;
    background: rgba(255, 255, 255, 0.06);
}

.home-v4-crm-core span {
    color: var(--home-v4-teal-light);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.home-v4-crm-core strong {
    color: #fff;
    font-size: clamp(16px, 1.5vw, 20px);
    line-height: 1.3;
}

.home-v4-crm-output {
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.65);
    font-size: 13px;
}

.home-v4-form-section {
    background: var(--home-v4-mist);
}

.home-v4-diagnostic-station {
    position: relative;
    display: grid;
    padding: 2px;
    grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.28fr);
    gap: 2px;
    background-color: rgba(47, 111, 119, 0.28);
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.35) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.35) 1px, transparent 1px);
    background-size: 32px 32px;
    box-shadow: 0 18px 40px rgba(20, 34, 51, 0.08);
}

.home-v4-diagnostic-station::before {
    position: absolute;
    inset: 0 0 auto;
    z-index: 2;
    height: 3px;
    background: linear-gradient(90deg, var(--home-v4-teal) 0 62%, var(--home-v4-teal-light) 62% 82%, var(--home-v4-sand) 82%);
    content: "";
}

.home-v4-form-intro {
    display: flex;
    min-width: 0;
    padding: clamp(26px, 3vw, 36px);
    flex-direction: column;
    background: var(--home-v4-ink);
}

.home-v4-form-intro .home-v4-eyebrow {
    color: var(--home-v4-teal-light);
}

.home-v4-form-intro h2 {
    color: #fff;
    font-size: clamp(28px, 2.8vw, 40px);
}

.home-v4-form-intro > p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.home-v4-step-badge {
    width: fit-content;
    margin: 24px 0 0;
    padding: 7px 9px;
    border: 1px solid rgba(143, 196, 200, 0.32);
    color: var(--home-v4-teal-light);
    background: rgba(143, 196, 200, 0.07);
}

.home-v4-form-support {
    margin-top: auto;
    padding: 18px 0 0 16px;
    border-left: 3px solid var(--home-v4-sand);
}

.home-v4-form-support strong {
    color: #fff;
    font-size: 11px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.home-v4-form-support p {
    margin: 7px 0 0;
    color: rgba(255, 255, 255, 0.64);
    font-size: 13px !important;
    line-height: 1.6;
}

.home-v4-entry-form {
    display: grid;
    min-width: 0;
    padding: clamp(26px, 3.5vw, 42px);
    gap: 16px;
    background: rgba(245, 242, 236, 0.98);
}

.home-v4-entry-form label {
    display: grid;
    gap: 7px;
}

.home-v4-entry-form label > span {
    color: var(--home-v4-ink);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.45;
}

.home-v4-entry-form select {
    width: 100%;
    min-height: 46px;
    padding: 10px 42px 10px 13px;
    border: 1px solid rgba(20, 34, 51, 0.18);
    border-radius: 0;
    background-color: rgba(255, 255, 255, 0.72);
    color: var(--home-v4-ink);
}

.home-v4-entry-form select:focus {
    border-color: var(--home-v4-teal);
    outline: 2px solid rgba(47, 111, 119, 0.16);
    outline-offset: 1px;
}

.home-v4-entry-form .home-v4-btn {
    width: 100%;
    margin-top: 4px;
}

.home-v4-form-status {
    min-height: 18px;
    margin: 0;
    color: #83572f;
    font-size: 12px !important;
}

.home-v4-form-time {
    color: var(--ink-2);
    font-size: 11px;
    line-height: 1.5;
    text-align: center;
}

.home-v4-fit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px;
    background: var(--home-v4-rule);
}

.home-v4-fit-card {
    padding: clamp(24px, 3vw, 34px);
    background: rgba(255, 255, 255, 0.62);
}

.home-v4-fit-card.is-negative {
    background: var(--home-v4-mist);
}

.home-v4-fit-card.is-negative > span {
    color: #7d654e;
}

.home-v4-fit-card ul {
    display: grid;
    margin: 24px 0 0;
    padding: 0;
    gap: 11px;
    list-style: none;
}

.home-v4-fit-card li {
    position: relative;
    margin: 0;
    padding: 0 0 11px 22px;
    border-bottom: 1px solid var(--home-v4-rule);
    color: var(--ink-2);
    font-size: 14px;
    line-height: 1.5;
}

.home-v4-fit-card li::before {
    position: absolute;
    top: 7px;
    left: 0;
    width: 7px;
    height: 7px;
    background: var(--home-v4-teal);
    content: "";
}

.home-v4-fit-card.is-negative li::before {
    background: var(--home-v4-sand);
}

.home-v4-final {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.home-v4-final-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
    gap: clamp(42px, 6vw, 80px);
    align-items: end;
}

.home-v4-final h2 {
    max-width: 760px;
    margin-top: 14px;
    color: #fff;
}

.home-v4-final p {
    max-width: 650px;
    margin: 16px 0 24px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.68;
}

.home-v4-final aside {
    padding: 20px 0 20px 22px;
    border-left: 3px solid var(--home-v4-teal-light);
}

.home-v4-final aside > span {
    color: var(--home-v4-teal-light);
}

.home-v4-final aside p {
    margin: 14px 0 0;
    color: rgba(255, 255, 255, 0.64);
    font-size: 13px;
}

@media (max-width: 1100px) {
    .home-v4 {
        --home-v4-gutter: 40px;
        --home-v4-section-y: 72px;
    }

    .home-v4-hero-grid,
    .home-v4-crm-grid,
    .home-v4-final-grid {
        grid-template-columns: 1fr;
    }

    .home-v4-pipeline,
    .home-v4-crm-map {
        max-width: 720px;
    }

    .home-v4-diagnostic-station {
        grid-template-columns: minmax(220px, 0.62fr) minmax(0, 1.38fr);
    }
}

@media (max-width: 860px) {
    .home-v4 {
        --home-v4-gutter: 32px;
        --home-v4-section-y: 64px;
    }

    .home-v4-diagnostic-station {
        grid-template-columns: 1fr;
    }

    .home-v4-form-support {
        margin-top: 26px;
    }
}

@media (max-width: 760px) {
    .home-v4 {
        --home-v4-gutter: 24px;
        --home-v4-section-y: 56px;
        --home-v4-h1: clamp(34px, 10vw, 42px);
        --home-v4-h2: clamp(28px, 8vw, 34px);
    }

    .home-v4-actions,
    .home-v4-actions .home-v4-btn {
        width: 100%;
    }

    .home-v4-hero {
        padding-block: 48px 58px;
    }

    .home-v4-hero-grid {
        gap: 38px;
    }

    .home-v4-pipeline {
        padding: 18px;
    }

    .home-v4-panel-head {
        gap: 8px;
        align-items: flex-start;
        flex-direction: column;
    }

    .home-v4-pain-grid,
    .home-v4-fit-grid {
        grid-template-columns: 1fr;
    }

    .home-v4-pain-card {
        min-height: 0;
    }

    .home-v4-crm-inputs {
        grid-template-columns: 1fr;
    }

    .home-v4-crm-line {
        display: none;
    }

    .home-v4-form-intro,
    .home-v4-entry-form {
        padding: 22px;
    }

    .home-v4-form-intro h2 {
        font-size: clamp(27px, 8vw, 34px);
    }

    .home-v4-final aside {
        padding: 18px 0 0;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
        border-left: 0;
    }
}
