:root {
    --ink: #17253f;
    --muted: #657085;
    --line: #dbe3ed;
    --surface: #ffffff;
    --soft: #f2f7f6;
    --brand: #167d80;
    --brand-dark: #105e68;
    --accent: #d5a642;
    --accent-dark: #a4781f;
    --deep: #102944;
    --shadow: 0 22px 60px rgba(16, 41, 68, 0.13);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: Arial, Helvetica, "Segoe UI", sans-serif;
    background: #fff;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--brand-dark);
}

.container {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    color: #fff;
    border: 0;
    border-radius: 4px;
    background: var(--brand);
    font-weight: 800;
    letter-spacing: 0;
    box-shadow: 0 12px 24px rgba(22, 125, 128, 0.18);
}

.button.secondary {
    color: var(--deep);
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: none;
}

.button.secondary.light {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.38);
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 76px 0 46px;
    background:
        linear-gradient(90deg, rgba(16, 41, 68, 0.95) 0%, rgba(16, 41, 68, 0.86) 42%, rgba(16, 41, 68, 0.24) 100%),
        url("/images/mortgage-dove-hero.png") center right / cover no-repeat;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(280px, 0.72fr);
    gap: 46px;
    align-items: end;
    min-height: 600px;
}

.hero-copy {
    max-width: 690px;
    color: #fff;
}

.hero-copy h1 {
    max-width: 650px;
}

.eyebrow {
    display: inline-flex;
    margin-bottom: 12px;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

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

h1 {
    margin-bottom: 22px;
    font-size: clamp(2.35rem, 4.7vw, 4.35rem);
    line-height: 1.04;
    letter-spacing: 0;
}

h1:focus {
    outline: none;
}

h2 {
    margin-bottom: 16px;
    font-size: clamp(2rem, 3.4vw, 3.2rem);
    line-height: 1.05;
    letter-spacing: 0;
}

h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

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

.hero-copy p {
    max-width: 620px;
    color: #d8e6ec;
    font-size: 1.2rem;
}

.hero-media {
    min-height: 430px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 42px 0 0;
}

.hero-stats div {
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.11);
    backdrop-filter: blur(12px);
}

.hero-stats dt {
    color: #fff;
    font-weight: 850;
}

.hero-stats dd {
    margin: 4px 0 0;
    color: #c7dbe2;
}

.intro-band {
    padding: 46px 0;
    background: var(--soft);
    border-bottom: 1px solid var(--line);
}

.intro-grid,
.split,
.process-grid,
.calc-layout,
.calc-page-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 54px;
    align-items: start;
}

.intro-grid h2,
.intro-grid p {
    margin-bottom: 0;
}

.section {
    padding: 88px 0;
}

.section.muted {
    background: #f7fafc;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.sticky-heading {
    position: sticky;
    top: 118px;
}

.card-grid {
    display: grid;
    gap: 24px;
}

.card-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.guide-panel,
.calc-card {
    display: block;
    padding: 30px;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface);
    box-shadow: 0 12px 32px rgba(16, 41, 68, 0.06);
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.card-icon {
    display: inline-grid;
    width: 44px;
    height: 44px;
    place-items: center;
    margin-bottom: 22px;
    color: #fff;
    border-radius: 50%;
    background: var(--brand);
    font-weight: 850;
}

.timeline {
    display: grid;
    gap: 18px;
}

.timeline article {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 20px;
    padding: 26px;
    border-left: 4px solid var(--accent);
    background: #fff;
}

.timeline span {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: #fff;
    border-radius: 50%;
    background: var(--deep);
    font-weight: 850;
}

.timeline h3,
.timeline p {
    grid-column: 2;
}

.calculator-strip,
.cta-band {
    padding: 70px 0;
    color: #fff;
    background: linear-gradient(135deg, var(--deep), var(--brand-dark));
}

.calculator-strip h2,
.calculator-strip p,
.cta-band h2,
.cta-band p {
    color: #fff;
}

.calc-card {
    color: var(--ink);
}

.calc-row,
.payment {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.payment {
    align-items: end;
    margin-top: 14px;
    color: #fff;
    border: 0;
    border-radius: 6px;
    padding: 20px;
    background: var(--brand);
}

.payment strong {
    font-size: 1.8rem;
}

.resource-list {
    display: grid;
    gap: 14px;
}

.resource-list a {
    padding: 20px 22px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    font-weight: 750;
}

.page-hero {
    padding: 96px 0 86px;
    color: #fff;
    background:
        linear-gradient(120deg, rgba(16, 41, 68, 0.94), rgba(16, 94, 104, 0.82)),
        url("/images/mortgage-dove-hero.png") center / cover no-repeat;
}

.page-hero.compact .container {
    max-width: 900px;
}

.page-hero p {
    max-width: 760px;
    color: #d9ebef;
    font-size: 1.18rem;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.check-list {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    padding: 18px 20px;
    border-left: 4px solid var(--brand);
    background: #fff;
    font-weight: 700;
}

.loan-table {
    display: grid;
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
}

.loan-table article {
    display: grid;
    grid-template-columns: minmax(180px, 0.4fr) 1fr;
    gap: 24px;
    padding: 28px;
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.loan-table article:last-child {
    border-bottom: 0;
}

.loan-table h2,
.loan-table p {
    margin: 0;
}

.calc-page-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.calc-card.large h2 {
    font-size: 1.7rem;
}









input,
select,
textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
    font: inherit;
}

textarea {
    resize: vertical;
}







.fine {
    margin-top: 24px;
    font-size: 0.86rem;
}

.blazor-error-boundary {
    padding: 1rem;
    color: white;
    background: #b32121;
}@media (max-width: 980px){
        .intro-grid,
    .split,
    .process-grid,
    .calc-layout,
    .calc-page-grid,
    .guide-grid,
    .card-grid.three {
        grid-template-columns: 1fr;
    }


    .hero-grid {
        grid-template-columns: 1fr;
        min-height: 560px;
    }

    .hero-media {
        display: none;
    }

    .sticky-heading {
        position: static;
    }
}@media (max-width: 680px){
    .container {
        width: min(100% - 28px, 1160px);
    }

    .cta-inner {
        align-items: flex-start;
        flex-direction: column;
    }


    .hero {
        padding: 42px 0;
    }

    .hero-grid {
        min-height: 0;
    }

    

    .hero-stats {
        display: none;
    }

    h1 {
        font-size: 2.15rem;
    }

    .hero-copy p {
        font-size: 1.03rem;
        line-height: 1.55;
    }

    h2 {
        font-size: 2rem;
    }

    .section {
        padding: 62px 0;
    }

    .loan-table article,
    .timeline article {
        grid-template-columns: 1fr;
    }

    .timeline h3,
    .timeline p {
        grid-column: 1;
    }
}
