:root {
    --color-ink: #0d1b2a;
    --color-muted: #6b6b6b;
    --color-soft: #fbfaf7;
    --color-surface: #ffffff;
    --color-line: #e5e0d8;
    --color-primary: #1e6fb7;
    --color-primary-dark: #0d1b2a;
    --color-accent: #1e6fb7;
    --color-blue: #1e6fb7;
    --shadow-soft: 0 24px 70px rgba(13, 27, 42, 0.11);
}

html {
    scroll-behavior: smooth;
}

html,
body {
    margin: 0;
    color: var(--color-ink);
    background: var(--color-soft);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    min-width: 320px;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    letter-spacing: 0;
}

h1 {
    font-size: clamp(2.1rem, 4.2vw, 3.1rem);
    line-height: 1.06;
    font-weight: 850;
}

h2 {
    font-size: clamp(1.6rem, 2.8vw, 2.3rem);
    line-height: 1.1;
    font-weight: 820;
}

h3 {
    font-size: 1.25rem;
    line-height: 1.25;
    font-weight: 780;
}

p {
    color: var(--color-muted);
    font-size: 1rem;
    line-height: 1.7;
}

a {
    color: var(--color-primary);
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid rgba(30, 111, 183, 0.55);
    outline-offset: 3px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.85rem 1.2rem;
    border-radius: 999px;
    color: #ffffff;
    background: var(--color-primary);
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 14px 30px rgba(30, 111, 183, 0.18);
}

.button:hover {
    color: #ffffff;
    background: var(--color-primary-dark);
}

.button-secondary {
    color: var(--color-ink);
    background: #ffffff;
    box-shadow: inset 0 0 0 1px var(--color-line);
}

.button-secondary:hover {
    color: var(--color-primary);
    background: #edf5fc;
}

.button-light {
    color: var(--color-primary);
    background: #ffffff;
}

.button-light:hover {
    color: var(--color-primary-dark);
    background: #edf5fc;
}

.button-small {
    min-height: 2.6rem;
    padding: 0.65rem 1rem;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.eyebrow {
    margin-bottom: 0.9rem;
    color: var(--color-primary);
    font-size: 0.82rem;
    line-height: 1.2;
    font-weight: 850;
    text-transform: uppercase;
}

.hero-section {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(20rem, 0.96fr);
    align-items: stretch;
    min-height: calc(100vh - 4.9rem);
    padding-left: clamp(1rem, 5vw, 4rem);
    overflow: hidden;
}

.hero-copy {
    position: relative;
    z-index: 1;
    align-self: center;
    max-width: 50rem;
    padding: clamp(4rem, 8vw, 7rem) clamp(2rem, 5vw, 5rem) 5rem 0;
}

.hero-lead {
    max-width: 44rem;
    margin: 1.35rem 0 2rem;
    font-size: clamp(1.1rem, 2vw, 1.28rem);
}

.hero-art {
    position: relative;
    overflow: hidden;
    min-height: 30rem;
}

.hero-art::before {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0 auto 0 0;
    width: clamp(4rem, 10vw, 9rem);
    background: linear-gradient(90deg, var(--color-soft), transparent);
    pointer-events: none;
}

.hero-art img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-section {
    padding: clamp(4.5rem, 8vw, 7rem) clamp(1rem, 5vw, 4rem);
}

.section-header {
    max-width: 48rem;
    margin-bottom: 2.5rem;
}

.section-lead {
    max-width: 38rem;
    margin-top: 1rem;
    font-size: 1.12rem;
}

.problem-grid,
.steps-grid,
.benefits-grid,
.directory-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.problem-grid article,
.steps-grid article,
.benefits-grid article,
.directory-grid article,
.convenience-grid article,
.contact-card {
    padding: clamp(1.4rem, 3vw, 2rem);
    border: 1px solid var(--color-line);
    border-radius: 0.5rem;
    background: var(--color-surface);
    box-shadow: 0 14px 34px rgba(13, 27, 42, 0.06);
}

.card-number,
.steps-grid span {
    display: inline-grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 1.4rem;
    border-radius: 999px;
    color: var(--color-primary);
    font-weight: 850;
    background: #edf5fc;
}

.solution-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.8fr);
    gap: clamp(2rem, 6vw, 5rem);
    padding: clamp(4.5rem, 8vw, 7rem) clamp(1rem, 5vw, 4rem);
    color: #ffffff;
    background: var(--color-ink);
}

.solution-section h2,
.solution-section p,
.solution-section .eyebrow {
    color: #ffffff;
}

.solution-section p {
    align-self: end;
    font-size: clamp(1.1rem, 2vw, 1.3rem);
}

.benefits-section {
    background: #f2f0ea;
}

.convenience-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.4rem;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 1.25rem;
}

.service-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 2.3rem;
    padding: 0.55rem 0.85rem;
    border: 1px solid #c9dff2;
    border-radius: 999px;
    color: var(--color-primary-dark);
    font-size: 0.94rem;
    font-weight: 750;
    background: #edf5fc;
}

.supporting-note {
    max-width: 52rem;
    margin-bottom: 0;
}

.directory-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cta-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin: 0 clamp(1rem, 5vw, 4rem) clamp(4rem, 8vw, 6rem);
    padding: clamp(2rem, 5vw, 3.5rem);
    border-radius: 0.5rem;
    color: #ffffff;
    background: var(--color-primary);
    box-shadow: var(--shadow-soft);
}

.cta-band h2,
.cta-band p,
.cta-band .eyebrow {
    color: #ffffff;
}

.cta-band p {
    max-width: 42rem;
    margin-bottom: 0;
}

.placeholder-page {
    max-width: 58rem;
    padding: clamp(5rem, 10vw, 8rem) clamp(1rem, 5vw, 4rem);
}

.vendor-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(22rem, 1.1fr);
    align-items: stretch;
    min-height: 32rem;
    padding-left: clamp(1rem, 5vw, 4rem);
    overflow: hidden;
    background: linear-gradient(135deg, #edf5fc 0%, var(--color-soft) 65%);
}

.vendor-hero-copy {
    position: relative;
    z-index: 1;
    align-self: center;
    max-width: 48rem;
    padding: clamp(5rem, 10vw, 8rem) clamp(2rem, 5vw, 5rem) clamp(5rem, 10vw, 8rem) 0;
}

.vendor-hero-image {
    position: relative;
    overflow: hidden;
    min-height: 32rem;
}

.vendor-hero-image::before {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0 auto 0 0;
    width: clamp(4rem, 10vw, 9rem);
    background: linear-gradient(90deg, var(--color-soft), transparent);
    pointer-events: none;
}

.vendor-hero-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 72% center;
}

.vendor-lead {
    max-width: 42rem;
    margin: 1.35rem 0 2rem;
    font-size: clamp(1.1rem, 2vw, 1.28rem);
}

.vendor-pricing {
    background: var(--color-surface);
}

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

.vendor-pricing-grid article {
    padding: clamp(1.4rem, 3vw, 2rem);
    border-top: 4px solid var(--color-primary);
    border-radius: 0.5rem;
    background: #edf5fc;
}

.vendor-pricing-grid strong {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--color-ink);
    font-size: clamp(1.25rem, 2vw, 1.55rem);
}

.vendor-pricing-grid p {
    margin-bottom: 0;
}

.vendor-process {
    padding: clamp(4.5rem, 8vw, 7rem) clamp(1rem, 5vw, 4rem);
    color: #ffffff;
    background:
        linear-gradient(rgba(13, 27, 42, 0.88), rgba(13, 27, 42, 0.88)),
        url("../images/vendor-homeowner-conversation.png") center / cover;
}

.vendor-process-header {
    max-width: 48rem;
    margin-bottom: 2.5rem;
}

.vendor-process h2,
.vendor-process h3,
.vendor-process p,
.vendor-process .eyebrow {
    color: #ffffff;
}

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

.vendor-process-grid article {
    padding: clamp(1.4rem, 3vw, 2rem);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 0.5rem;
    background: rgba(13, 27, 42, 0.76);
    backdrop-filter: blur(4px);
}

.vendor-process-grid span {
    display: inline-grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 1.4rem;
    border-radius: 999px;
    color: var(--color-primary-dark);
    font-weight: 850;
    background: #ffffff;
}

.vendor-process-grid p {
    margin-bottom: 0;
}

.vendor-benefits {
    background: #f2f0ea;
}

.vendor-join {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(2rem, 6vw, 5rem);
    margin: clamp(1rem, 5vw, 4rem) clamp(1rem, 5vw, 4rem) clamp(4rem, 8vw, 6rem);
    padding: clamp(2rem, 5vw, 3.5rem);
    border-radius: 0.5rem;
    color: #ffffff;
    background: var(--color-primary);
    box-shadow: var(--shadow-soft);
}

.vendor-join h2,
.vendor-join p,
.vendor-join .eyebrow {
    color: #ffffff;
}

.vendor-join-copy p:last-child {
    max-width: 42rem;
    margin-bottom: 0;
}

.placeholder-page h1 {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
}

.placeholder-page > p {
    max-width: 42rem;
    margin: 1.2rem 0 2rem;
    font-size: 1.18rem;
}

.contact-card {
    max-width: 34rem;
}

.contact-card h2 {
    font-size: 1.6rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.blazor-error-boundary {
    background: #b32121;
    color: white;
    padding: 1rem;
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}

.loading-progress {
    position: absolute;
    display: block;
    width: 8rem;
    height: 8rem;
    inset: 20vh 0 auto 0;
    margin: 0 auto;
}

.loading-progress circle {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: var(--color-primary);
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

.loading-progress-text::after {
    content: var(--blazor-load-percentage-text, "Loading");
}

code {
    color: #c02d76;
}

@media (max-width: 980px) {
    .hero-section,
    .solution-section,
    .vendor-hero {
        grid-template-columns: 1fr;
    }

    .vendor-hero-image {
        aspect-ratio: 16 / 9;
        min-height: 0;
    }

    .vendor-hero {
        padding: 0;
    }

    .vendor-hero-copy {
        padding: clamp(4rem, 8vw, 6rem) clamp(1rem, 5vw, 4rem) 2.5rem;
    }

    .vendor-hero-image::before {
        inset: 0 0 auto;
        width: auto;
        height: 3rem;
        background: linear-gradient(180deg, var(--color-soft), transparent);
    }

    .hero-section {
        min-height: auto;
        padding: 0;
    }

    .hero-art {
        aspect-ratio: 16 / 10;
        min-height: 0;
    }

    .hero-copy {
        padding: clamp(4rem, 8vw, 6rem) clamp(1rem, 5vw, 4rem) 2.5rem;
    }

    .hero-art::before {
        inset: 0 0 auto;
        width: auto;
        height: 3rem;
        background: linear-gradient(180deg, var(--color-soft), transparent);
    }

    .problem-grid,
    .steps-grid,
    .benefits-grid,
    .convenience-grid,
    .directory-grid,
    .vendor-pricing-grid,
    .vendor-process-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    h1 {
        font-size: 2.1rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    .story-section,
    .solution-section,
    .placeholder-page {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .vendor-hero-copy {
        padding: 4.5rem 1rem 2.5rem;
    }

    .hero-copy {
        padding: 4.5rem 1rem 2.5rem;
    }

    .button-row,
    .cta-band,
    .vendor-join {
        align-items: stretch;
        flex-direction: column;
    }

    .button,
    .cta-band .button,
    .vendor-join .button {
        width: 100%;
    }

}
