/* ==========================================================================
   Zip-FixerUpperHomes.com - site styles (2026 redesign)
   ========================================================================== */

:root {
    --navy: #0b2559;
    --navy-ink: #0a1a3a;
    --brand: #123b7a;
    --blue: #1556b0;
    --blue-icon: #0a70bc;
    --link: #1a73d9;
    --sky: #2f99ec;
    --teal: #1fb0ac;
    --orange: #ff6f0e;
    --orange-dark: #ec5f00;
    --green: #01a97d;
    --purple: #7f5bd0;
    --gray-ico: #6b7280;

    --text: #22303f;
    --muted: #5d6a7a;
    --line: #e2e8f0;
    --field: #d6dee8;
    --soft: #ecf4fb;
    --soft-2: #e3f0fa;
    --page: #f4f8fc;

    --radius: 10px;
    --shadow-sm: 0 1px 2px rgba(15, 40, 80, .06), 0 2px 8px rgba(15, 40, 80, .05);
    --shadow: 0 6px 24px rgba(15, 40, 80, .09);
    --shadow-lg: 0 18px 50px rgba(15, 40, 80, .14);

    --font-body: 'Source Sans 3', 'Source Sans Pro', 'Segoe UI', Arial, sans-serif;
    --font-head: 'Barlow Semi Condensed', 'Arial Narrow', 'Segoe UI', Arial, sans-serif;
    --font-hero: 'Barlow', 'Segoe UI', Arial, sans-serif;
    --font-hand: 'Caveat', 'Segoe Print', cursive;
}

/* ── Base ─────────────────────────────────────────── */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    color: var(--text);
    background: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
svg:not([fill]) { fill: currentColor; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-head); color: var(--navy); line-height: 1.15; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 920px; }

.ico { width: 1em; height: 1em; flex: none; vertical-align: -.12em; }

.hl { color: var(--blue); }

/* ── Buttons ──────────────────────────────────────── */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    border: 0; border-radius: 8px; cursor: pointer;
    font-family: var(--font-head); font-weight: 600; font-size: 19px; line-height: 1;
    padding: 15px 26px; text-decoration: none !important;
    transition: background-color .15s, box-shadow .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn .ico { width: 21px; height: 21px; }
.btn--orange { background: var(--orange); color: #fff; box-shadow: 0 6px 14px rgba(255, 111, 14, .28); }
.btn--orange:hover { background: var(--orange-dark); }
.btn--orange:focus-visible { outline: 3px solid rgba(255, 111, 14, .35); outline-offset: 2px; }
.btn--block { display: flex; width: 100%; }
.btn--lg { font-size: 21px; padding: 17px 30px; }
.btn[disabled] { opacity: .75; cursor: progress; }

.spinner {
    width: 18px; height: 18px; border-radius: 50%;
    border: 2.5px solid rgba(255, 255, 255, .45); border-top-color: #fff;
    animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.field-error {
    display: none; margin: 10px 0 0; color: #c62828; font-size: 14.5px; font-weight: 600;
}
.field-error.visible { display: block; }

/* ── Header ───────────────────────────────────────── */

.site-header { position: relative; z-index: 20; background: #fff; border-bottom: 1px solid #edf1f6; }
.site-header__inner { display: flex; align-items: center; gap: 28px; min-height: 78px; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--brand); text-decoration: none !important; }
.brand__icon { width: 38px; height: 38px; color: var(--brand); flex: none; }
.brand__name { font-family: var(--font-head); font-weight: 600; font-size: 27px; letter-spacing: -.01em; line-height: 1; white-space: nowrap; }

.site-nav { display: flex; gap: 34px; margin-left: auto; }
.site-nav a { color: #1d2a3b; font-weight: 600; font-size: 15.5px; }
.site-nav a:hover { color: var(--blue); text-decoration: none; }

.btn--header { font-size: 17px; padding: 12px 20px; border-radius: 6px; box-shadow: none; white-space: nowrap; }

.site-header--minimal .site-header__inner { min-height: 72px; }

/* ── Footer ───────────────────────────────────────── */

.site-footer { background: #f5f9fd; border-top: 1px solid #e6eef7; color: var(--muted); font-size: 14.5px; }
.site-footer__inner { display: flex; justify-content: space-between; gap: 48px; padding-top: 40px; padding-bottom: 28px; }
.site-footer__about { max-width: 560px; }
.site-footer__about p { margin-top: 14px; }
.site-footer__disclaimer { font-size: 13.5px; }
.brand--footer .brand__icon { width: 30px; height: 30px; }
.brand--footer .brand__name { font-size: 22px; }
.site-footer__links { display: grid; grid-template-columns: repeat(2, auto); gap: 10px 36px; align-content: start; }
.site-footer__links a { color: #34465c; font-weight: 600; }
.site-footer__copy { border-top: 1px solid #e3ebf4; padding-top: 18px; padding-bottom: 22px; font-size: 13.5px; }
.site-footer--minimal { background: transparent; border: 0; text-align: center; }
.site-footer--minimal .site-footer__copy { border: 0; }
.site-footer--minimal a { color: var(--muted); }

/* ── Hero ─────────────────────────────────────────── */

.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #f3f8fd 0%, #fff 100%); }

.hero__media {
    position: absolute; top: 0; right: 0; bottom: 0; width: 58%;
    background: url(/assets/images/v2/hero-house.jpg) 30% 22% / cover no-repeat;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 20%, rgba(0,0,0,.85) 40%, #000 55%);
            mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 20%, rgba(0,0,0,.85) 40%, #000 55%);
}
.hero__media::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,.28) 0%, rgba(255,255,255,0) 40%);
}
.hero__media::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 34%;
    background: linear-gradient(0deg, #fff 0%, rgba(255,255,255,.7) 45%, rgba(255,255,255,0) 100%);
}

.hero__note {
    position: absolute; top: 44px; right: 31%; z-index: 2;
    font-family: var(--font-hand); font-weight: 600; font-size: 31px; line-height: 1.05;
    color: #1b2533; transform: rotate(-9deg); text-shadow: 0 0 12px rgba(255,255,255,.9);
}
.hero__note svg { width: 34px; height: 38px; margin: 6px 0 0 92px; color: #1b2533; }

.hero__inner { position: relative; z-index: 1; }
.hero__content { max-width: 720px; padding: 66px 0 58px; }

.hero__title {
    font-family: var(--font-hero); font-weight: 800; font-size: 64px; line-height: 1.04;
    letter-spacing: -.015em; color: var(--navy-ink);
}
.hero__title .hl { color: var(--blue); }

.hero__sub { margin-top: 20px; font-size: 19.5px; line-height: 1.5; color: #263446; max-width: 600px; }

.search {
    display: flex; align-items: stretch; margin-top: 28px; max-width: 600px;
    background: #fff; border: 1px solid #cfd9e5; border-radius: 9px;
    box-shadow: 0 10px 26px rgba(15, 40, 80, .10);
}
.search__field { position: relative; flex: 1; display: flex; align-items: center; }
.search__icon { position: absolute; left: 20px; width: 20px; height: 20px; color: #414d5c; pointer-events: none; }
.search input {
    width: 100%; height: 62px; border: 0; background: transparent; outline: 0;
    padding: 0 16px 0 52px; font-size: 18px; color: var(--text); border-radius: 9px 0 0 9px;
}
.search input::placeholder { color: #7b8796; }
.search input.error { box-shadow: inset 0 0 0 2px #e57373; }
.search__btn { border-radius: 0 8px 8px 0; font-size: 21px; padding: 0 30px; box-shadow: none; margin: -1px -1px -1px 0; }

.hero__features { display: flex; gap: 26px; margin-top: 36px; max-width: 700px; }
.hero__features li { display: flex; gap: 14px; align-items: flex-start; flex: 1; }
.hero__features strong {
    display: block; margin-bottom: 6px;
    font-family: var(--font-head); font-weight: 600; font-size: 19px; line-height: 1.2; color: var(--navy);
}
.hero__features li > span:last-child { font-size: 15px; line-height: 1.4; color: var(--muted); }

.circle-ico {
    display: inline-flex; align-items: center; justify-content: center; flex: none;
    width: 54px; height: 54px; border-radius: 50%; background: var(--blue-icon); color: #fff;
    box-shadow: 0 6px 14px rgba(10, 112, 188, .25);
}
.circle-ico svg { width: 25px; height: 25px; }

/* autocomplete dropdown (jquery.autocomplete) */
.autocomplete-suggestions {
    background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: auto;
    box-shadow: var(--shadow); font-size: 15.5px; margin-top: 4px;
}
.autocomplete-suggestion { padding: 10px 16px; cursor: pointer; white-space: nowrap; overflow: hidden; color: var(--text); }
.autocomplete-selected { background: var(--soft); }
.autocomplete-suggestions strong { color: var(--blue); }

/* ── Sections ─────────────────────────────────────── */

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.section-title { font-weight: 700; font-size: 31px; letter-spacing: -.005em; }
.section-title--lg { font-size: 38px; }
.more-link { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-head); font-weight: 600; font-size: 18px; color: var(--link); }
.more-link .ico { width: 18px; height: 18px; }

/* ── Featured homes ───────────────────────────────── */

.featured { padding: 22px 0 34px; }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.card {
    display: flex; flex-direction: column; overflow: hidden; color: inherit;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow-sm); text-decoration: none !important;
    transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.card__media { position: relative; display: block; aspect-ratio: 3 / 2; background: #dfe8f1; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }

.card__heart {
    position: absolute; top: 10px; right: 10px; width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center; color: #fff;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .45));
}
.card__heart svg { width: 30px; height: 30px; }

.badge {
    position: absolute; left: 10px; bottom: 9px;
    padding: 9px 18px; border-radius: 7px; color: #fff;
    font-family: var(--font-head); font-weight: 600; font-size: 15.5px; line-height: 1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
}
.badge--blue { background: #3d9fef; }
.badge--orange { background: #fb660b; }
.badge--green { background: #05a97f; }
.badge--purple { background: #8757cc; }

.card__body { display: flex; flex-direction: column; padding: 16px 18px 20px; }
.card__price { font-family: var(--font-head); font-weight: 700; font-size: 24px; color: var(--navy); line-height: 1.1; }
.card__meta { display: flex; flex-wrap: wrap; margin-top: 7px; font-size: 14.5px; color: var(--muted); }
.card__meta span + span::before { content: ''; display: inline-block; width: 1px; height: 12px; background: #c9d2dd; margin: 0 9px; vertical-align: -1px; }
.card__city { margin-top: 12px; font-weight: 700; font-size: 16px; color: var(--navy); }
.card__text { margin-top: 8px; font-size: 14.5px; line-height: 1.4; color: var(--muted); }

/* ── Trust strip ──────────────────────────────────── */

.trust {
    display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 0;
    background: var(--soft); border-radius: 12px; padding: 28px 10px; margin: 6px 0 34px;
}
.trust li { display: flex; align-items: center; gap: 22px; padding: 0 30px; }
.trust li + li { border-left: 1px solid #c9d9ea; }
.trust__ico { width: 46px; height: 46px; flex: none; color: #164a98; }
.trust strong { display: block; color: var(--navy); font-weight: 700; font-size: 16.5px; margin-bottom: 4px; }
.trust li > span { font-size: 15px; color: #405064; line-height: 1.4; }
.trust b { color: var(--navy); font-weight: 700; }

/* ── Why choose us ────────────────────────────────── */

.why { background: linear-gradient(180deg, #e9f4fb 0%, #e3f0fa 100%); padding: 34px 0; }
.why__inner { display: flex; align-items: center; gap: 28px; }
.why__title { font-weight: 700; font-size: 34px; line-height: 1.1; flex: none; padding-right: 10px; }
.why__list { display: grid; grid-template-columns: repeat(4, 1fr); flex: 1; }
.why__list li { display: flex; align-items: flex-start; gap: 16px; padding: 4px 20px; }
.why__list li + li { border-left: 1px solid #c4d7ea; }
.why__list strong { display: block; color: var(--navy); font-weight: 700; font-size: 16px; margin-bottom: 6px; line-height: 1.25; }
.why__list li > span:last-child { font-size: 14.5px; color: #405064; line-height: 1.45; }

.soft-ico {
    display: inline-flex; align-items: center; justify-content: center; flex: none;
    width: 58px; height: 58px; border-radius: 50%; background: #c9e5fb; color: #1260b4;
}
.soft-ico svg { width: 28px; height: 28px; }
.soft-ico--lg { width: 76px; height: 76px; }
.soft-ico--lg svg { width: 36px; height: 36px; }

/* ── How it works ─────────────────────────────────── */

.journey { padding: 64px 0; }
.journey__inner { display: flex; gap: 48px; align-items: center; }
.journey__intro { flex: 0 0 270px; }
.journey__intro p { margin-top: 18px; font-size: 17px; color: var(--muted); }
.journey__steps { flex: 1; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.journey__steps li { position: relative; display: flex; flex-direction: column; align-items: flex-start; }
.journey__steps li:not(:last-child)::after {
    content: ''; position: absolute; top: 37px; right: -14px; width: 22px; height: 2px; background: #7fb3e6;
}
.journey__steps li:not(:last-child)::before {
    content: ''; position: absolute; top: 33px; right: -14px; width: 8px; height: 8px;
    border-top: 2px solid #7fb3e6; border-right: 2px solid #7fb3e6; transform: rotate(45deg);
}
.journey__steps strong { margin-top: 16px; font-family: var(--font-head); font-weight: 600; font-size: 19px; color: var(--navy); line-height: 1.2; }
.journey__steps span:last-child { margin-top: 8px; font-size: 14.5px; color: var(--muted); line-height: 1.45; }

/* ── Guide ────────────────────────────────────────── */

.guide { background: var(--page); padding: 64px 0 72px; border-top: 1px solid #e8eff7; }
.guide__head { max-width: 860px; }
.guide__head p { margin-top: 16px; font-size: 17px; color: #3a4a5d; }
.guide__head strong, .guide__card strong { color: var(--navy); }
.guide__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 34px; }
.guide__card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 24px 26px; box-shadow: var(--shadow-sm); scroll-margin-top: 24px; }
.guide__card h3 { font-weight: 700; font-size: 21px; margin-bottom: 10px; }
.guide__card p { font-size: 15.5px; color: #435468; line-height: 1.55; }
.guide__cta {
    display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-top: 34px;
    background: var(--navy); color: #d9e5f5; border-radius: 14px; padding: 30px 36px;
}
.guide__cta h3 { color: #fff; font-weight: 700; font-size: 28px; margin-bottom: 6px; }
.guide__cta strong { color: #fff; }
.guide__cta .btn { flex: none; }

/* ── Form flow (find) ─────────────────────────────── */

.page--flow { background: linear-gradient(180deg, #eef5fb 0%, #f7fafd 100%); min-height: 100vh; }
.page--flow .site-header { background: transparent; border: 0; }

.flow { padding: 10px 16px 40px; }
.flow__card {
    max-width: 500px; margin: 0 auto; background: #fff;
    border-radius: 22px; box-shadow: var(--shadow-lg); padding: 30px 30px 32px;
}

.q.is-entering { animation: q-in .28s ease-out; }
.q.is-entering.is-back { animation-name: q-in-back; }
@keyframes q-in { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@keyframes q-in-back { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }

.q__progress { display: flex; align-items: center; gap: 16px; }
.q__track { flex: 1; height: 9px; border-radius: 9px; background: #e6ebf0; overflow: hidden; }
.q__track span { display: block; height: 100%; border-radius: 9px; background: linear-gradient(90deg, #22b4b0, #1fa8b9); transition: width .4s ease; }
.q__pct { font-family: var(--font-head); font-weight: 600; font-size: 18px; color: var(--link); min-width: 44px; text-align: right; }

.q__count { margin-top: 24px; font-family: var(--font-head); font-weight: 500; font-size: 16px; color: #3f4b5a; }
.q__title { margin-top: 10px; font-weight: 700; font-size: 31px; line-height: 1.13; letter-spacing: -.01em; outline: 0; }
.q__sub { margin-top: 10px; font-size: 16px; line-height: 1.45; color: var(--muted); }

.q__form { margin-top: 24px; }

.opts { display: grid; gap: 11px; }
.opts--cards { grid-template-columns: 1fr 1fr; }
.opts__label { margin: 20px 0 12px; font-family: var(--font-head); font-weight: 500; font-size: 16px; color: #2c3a4b; }

.opt { position: relative; display: block; cursor: pointer; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt__box {
    display: flex; height: 100%;
    background: #fff; border: 1.5px solid var(--line); border-radius: 10px;
    transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.opt:hover .opt__box { border-color: #b9cde3; }
.opt input:focus-visible + .opt__box { box-shadow: 0 0 0 3px rgba(26, 115, 217, .25); }
.opt input:checked + .opt__box { border-color: var(--link); background: #f1f7ff; box-shadow: 0 0 0 3px rgba(26, 115, 217, .14); }

.opt__ico { flex: none; }
.c-teal { color: #19b1a5; }
.c-blue { color: #1e6fd9; }
.c-sky { color: var(--sky); }
.c-orange { color: #fe6c13; }
.c-purple { color: #7f5bd0; }
.c-gray { color: var(--gray-ico); }

.opts--cards .opt__box { flex-direction: column; align-items: center; text-align: center; padding: 20px 10px 18px; }
.opts--cards .opt__ico { width: 48px; height: 48px; margin-bottom: 12px; }
.opts--cards .opt__label { font-family: var(--font-head); font-weight: 700; font-size: 19px; line-height: 1.15; color: var(--navy); }
.opts--cards .opt__text { margin-top: 6px; font-size: 14.5px; line-height: 1.35; color: var(--muted); }

.opts--list .opt__box { align-items: center; gap: 22px; padding: 22px 22px; min-height: 90px; }
.opts--list .opt__ico { width: 42px; height: 42px; }
.opts--list .opt__label { font-family: var(--font-head); font-weight: 600; font-size: 19px; line-height: 1.2; color: var(--navy); }

.opts--radio .opt__box { align-items: center; gap: 18px; padding: 16px 18px; }
.opts--radio .opt__ico { width: 34px; height: 34px; }
.opts--radio .opt__label { flex: 1; font-family: var(--font-head); font-weight: 600; font-size: 17px; line-height: 1.2; color: var(--navy); }
.opts--radio .opt__label small { display: block; margin-top: 3px; font-family: var(--font-body); font-weight: 400; font-size: 13.5px; color: var(--muted); }
.opt__radio { flex: none; width: 21px; height: 21px; border-radius: 50%; border: 1.6px solid #97a3b2; background: #fff; transition: border-color .15s, box-shadow .15s; }
.opt input:checked + .opt__box .opt__radio { border-color: var(--link); box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 10px var(--link); }

.input { position: relative; display: flex; align-items: center; }
.input__ico { position: absolute; left: 16px; width: 20px; height: 20px; color: #4a5565; pointer-events: none; }
.input input {
    width: 100%; height: 54px; padding: 0 16px 0 50px;
    border: 1.5px solid var(--field); border-radius: 7px; background: #fff; outline: 0;
    font-size: 16.5px; color: var(--text); transition: border-color .15s, box-shadow .15s;
}
.input input::placeholder { color: #8390a0; }
.input input:focus { border-color: var(--link); box-shadow: 0 0 0 3px rgba(26, 115, 217, .15); }
.input--lg input { height: 60px; font-size: 17px; border-radius: 9px; }
.input.error input, .input input.error { border-color: #e57373; box-shadow: 0 0 0 3px rgba(229, 115, 115, .15); }
/* hidden while the placeholder shows; once there is a value (typed or pre-filled)
   it sits centered on the top border, lined up with the input text */
.input__label {
    position: absolute; left: 44px; top: .75px; padding: 0 6px;
    background: #fff; color: #0b2559; font-size: 13px; font-weight: 600; line-height: 1;
    white-space: nowrap; pointer-events: none;
    opacity: 0; transform: translateY(-20%); transition: opacity .15s, transform .15s, color .15s;
}
.input input:not(:placeholder-shown) + .input__label { opacity: 1; transform: translateY(-50%); }
.input input:focus + .input__label { color: var(--link); }
.input.error .input__label { color: #d84b4b; }

.fields { display: grid; gap: 11px; }

.check { position: relative; display: flex; gap: 14px; align-items: flex-start; margin-top: 18px; cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check__box {
    flex: none; width: 24px; height: 24px; margin-top: 1px;
    display: flex; align-items: center; justify-content: center;
    border: 1.6px solid #a7b2c0; border-radius: 4px; background: #fff; color: #fff;
    transition: background-color .15s, border-color .15s;
}
.check__box svg { width: 16px; height: 16px; opacity: 0; }
.check input:checked + .check__box { background: var(--link); border-color: var(--link); }
.check input:checked + .check__box svg { opacity: 1; }
.check input:focus-visible + .check__box { box-shadow: 0 0 0 3px rgba(26, 115, 217, .25); }
.check__text { font-size: 14.5px; line-height: 1.45; color: #2f3c4c; }
.check.error .check__box { border-color: #e53935; box-shadow: 0 0 0 3px rgba(229, 57, 53, .12); }

.q__next { margin-top: 26px; height: 58px; font-size: 21px; }

.q__back {
    display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 20px;
    font-family: var(--font-head); font-weight: 600; font-size: 19px; color: var(--link);
}
.q__back .ico { width: 20px; height: 20px; }

.q__secure { display: flex; align-items: center; gap: 14px; margin-top: 24px; font-size: 14px; color: var(--muted); line-height: 1.4; }
.q__secure svg { width: 28px; height: 28px; flex: none; color: #4b5563; }

/* ── Inner page headings ──────────────────────────── */

.page-title { font-weight: 700; font-size: 48px; line-height: 1.08; letter-spacing: -.012em; }
.page-title--center { text-align: center; }
.page-lead { margin-top: 16px; font-size: 19px; line-height: 1.5; color: #344255; }
.page-lead--center { text-align: center; max-width: 640px; margin-left: auto; margin-right: auto; }

/* ── Financing ────────────────────────────────────── */

.fin { position: relative; overflow: hidden; padding-bottom: 56px; }
.fin__sky { position: absolute; inset: 0 0 auto; height: 560px; background: linear-gradient(180deg, #e1eefa 0%, #eef6fd 55%, #fff 100%); }
.fin__inner { position: relative; }

.fin__hero { position: relative; padding: 50px 0 0; min-height: 430px; }
.fin__hero .page-title, .fin__hero .page-lead { position: relative; z-index: 2; max-width: 580px; }
.fin__media {
    position: absolute; right: -40px; bottom: 0; width: 66%; height: 280px; z-index: 1;
    background: url(/assets/images/v2/financing-house.jpg) 40% 40% / cover no-repeat;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 28%, #000 80%, transparent 100%), linear-gradient(0deg, #000 70%, transparent 100%);
    -webkit-mask-composite: source-in;
            mask-image: linear-gradient(90deg, transparent 0%, #000 28%, #000 80%, transparent 100%), linear-gradient(0deg, #000 70%, transparent 100%);
            mask-composite: intersect;
}
.fin__note {
    position: absolute; top: 46px; right: 0; z-index: 2; text-align: left;
    font-family: var(--font-hand); font-weight: 600; font-size: 28px; line-height: 1.05; color: #1b2533;
    transform: rotate(-9deg);
}
.fin__note svg { display: block; width: 26px; height: 30px; margin: 6px 0 0 70px; }

.widget {
    position: relative; z-index: 3; margin-top: -96px;
    background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); padding: 30px 32px 26px;
}
.widget__head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.widget__brand { display: flex; align-items: center; gap: 14px; font-family: var(--font-head); font-weight: 600; font-size: 29px; color: #0d3a8c; }
.widget__brand svg { width: 42px; height: 42px; color: #1666d0; }
.widget__aside { font-size: 13.5px; color: var(--muted); text-align: center; line-height: 1.35; max-width: 170px; }
.widget__aside strong { display: block; font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--navy); }

.widget__frame { display: block; width: 100%; border: 0; }

.widget__skip { display: block; margin-top: 16px; text-align: center; font-size: 14.5px; color: var(--muted); text-decoration: underline; }

.perks { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 40px; text-align: center; }
.perks li { display: flex; flex-direction: column; align-items: center; padding: 0 28px; }
.perks li + li { border-left: 1px solid var(--line); }
.perks__ico { width: 50px; height: 50px; color: #1666d0; }
.perks__ico--line { color: #1d78dc; }
.perks__circle { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: #1d78dc; color: #fff; }
.perks__circle svg { width: 28px; height: 28px; }
.perks strong { margin-top: 16px; font-family: var(--font-head); font-weight: 600; font-size: 18px; color: var(--navy); line-height: 1.2; }
.perks li > span:last-child { margin-top: 8px; font-size: 14.5px; color: var(--muted); line-height: 1.4; }

/* ── Thank you ────────────────────────────────────── */

.thanks { padding: 46px 0 64px; background: linear-gradient(180deg, #f3f8fd 0%, #fff 280px); }
.thanks__head { text-align: center; }
.thanks__check {
    display: inline-flex; align-items: center; justify-content: center; width: 80px; height: 80px; margin-bottom: 22px;
    border-radius: 50%; background: #d4efed; color: #1d98a2;
}
.thanks__check svg { width: 42px; height: 42px; }

.ci { position: relative; margin-top: 34px; border-radius: 16px; overflow: hidden; background: #0b1f3d; box-shadow: var(--shadow-lg); }
.ci::before {
    content: ''; position: absolute; inset: 0;
    background: url(/assets/images/v2/ci-house.jpg) 70% 30% / cover no-repeat;
}
.ci::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(8, 24, 50, .97) 0%, rgba(8, 24, 50, .9) 38%, rgba(8, 24, 50, .35) 75%, rgba(8, 24, 50, .15) 100%);
}
.ci__body { position: relative; z-index: 1; padding: 40px 44px 108px; color: #fff; }
.ci__brand { display: flex; align-items: center; gap: 14px; }
.ci__brand svg { width: 64px; height: 54px; color: #fff; }
.ci__brand span { font-family: var(--font-head); font-weight: 500; font-size: 22px; line-height: 1.05; letter-spacing: .2em; text-transform: uppercase; }
.ci__title { margin-top: 24px; color: #fff; font-weight: 700; font-size: 42px; line-height: 1.08; }
.ci__text { margin-top: 12px; font-size: 19px; line-height: 1.45; color: #e7eef8; max-width: 520px; }
.ci .btn { margin-top: 24px; }

.ci__perks {
    position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 1;
    display: grid; grid-template-columns: repeat(3, 1fr);
    background: #fff; border-radius: 10px; padding: 16px 8px; box-shadow: var(--shadow);
}
.ci__perks li { display: flex; align-items: center; justify-content: center; gap: 12px; font-family: var(--font-head); font-weight: 600; font-size: 17px; color: var(--navy); }
.ci__perks li + li { border-left: 1px solid var(--line); }
.ci__perks svg { width: 26px; height: 26px; color: #1666d0; }

.learn__title { margin-top: 44px; font-size: 30px; }
.learn { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 20px; }
.learn__card {
    display: flex; flex-direction: column; overflow: hidden; color: inherit;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
    text-decoration: none !important; transition: box-shadow .2s, transform .2s;
}
.learn__card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.learn__card img { width: 100%; aspect-ratio: 1.85; object-fit: cover; }
.learn__body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.learn__body strong { display: flex; align-items: center; gap: 6px; font-family: var(--font-head); font-weight: 600; font-size: 18px; color: var(--navy); }
.learn__body strong .ico { width: 16px; height: 16px; }
.learn__body > span { margin-top: 8px; font-size: 14.5px; color: var(--muted); line-height: 1.45; flex: 1; }
.learn__body em { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-style: normal; font-family: var(--font-head); font-weight: 600; font-size: 16px; color: var(--link); }
.learn__body em .ico { width: 15px; height: 15px; }

/* ── Legal pages ──────────────────────────────────── */

.doc-page { background: var(--page); padding: 48px 0 64px; }
.doc-inner {
    max-width: 900px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 14px;
    padding: 44px 48px; font-size: 16px; line-height: 1.65; color: #34445a; box-shadow: var(--shadow-sm);
}
.doc-inner h1 { font-weight: 700; font-size: 40px; padding-bottom: 20px; }
.doc-inner h2, .doc-inner h3 { margin: 26px 0 10px; }
.doc-inner p { margin: 0 0 14px; }
.doc-inner ul, .doc-inner ol { margin: 0 0 14px 22px; list-style: disc; }

.inner.center { max-width: 520px; margin: 0 auto; padding: 56px 24px 72px; text-align: center; }
.inner.center h1 { font-size: 40px; font-weight: 700; margin-bottom: 26px; }
.inner.center table.form { width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; box-shadow: var(--shadow-sm); }
.inner.center table.form th { padding: 10px; text-align: left; font-family: var(--font-head); font-weight: 600; color: var(--navy); }
.inner.center table.form input[type=text] { width: 100%; height: 48px; padding: 0 14px; border: 1.5px solid var(--field); border-radius: 7px; }
.inner.center table.form .button { background: var(--orange); color: #fff; border: 0; border-radius: 8px; padding: 13px 28px; font-family: var(--font-head); font-weight: 600; font-size: 18px; cursor: pointer; }
.inner.center p { color: var(--text) !important; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1180px) {
    .hero__title { font-size: 56px; }
    .hero__note { right: 24%; }
    .site-nav { gap: 24px; }
    .why__inner { flex-direction: column; align-items: flex-start; gap: 20px; }
    .why__title br { display: none; }
    .why__list { width: 100%; }
    .journey__inner { flex-direction: column; align-items: flex-start; }
    .journey__intro { flex: none; max-width: 640px; }
}

@media (max-width: 1024px) {
    .hero__media { width: 70%; opacity: .45; }
    .hero__note { display: none; }
    .hero__features { gap: 22px; }
    .cards { grid-template-columns: repeat(2, 1fr); }
    .trust { grid-template-columns: 1fr; gap: 18px; padding: 24px 6px; }
    .trust li + li { border-left: 0; border-top: 1px solid #c9d9ea; padding-top: 18px; }
    .why__list { grid-template-columns: 1fr 1fr; gap: 22px 0; }
    .why__list li:nth-child(3) { border-left: 0; }
    .journey__steps { grid-template-columns: repeat(3, 1fr); gap: 30px 24px; }
    .journey__steps li::before, .journey__steps li::after { display: none; }
    .guide__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
    .site-nav { display: none; }
    .btn--header { margin-left: auto; }
    .hero__features { flex-direction: column; gap: 18px; }
    .page-title { font-size: 40px; }
    .fin__media { width: 80%; opacity: .55; }
    .fin__note { display: none; }
    .perks { grid-template-columns: 1fr; gap: 28px; }
    .perks li + li { border-left: 0; }
    .ci__title { font-size: 34px; }
    .ci__body { padding: 32px 28px 30px; }
    .ci__perks { position: relative; left: auto; right: auto; bottom: auto; margin: 0 16px 16px; }
    .learn { grid-template-columns: 1fr; }
    .learn__card { flex-direction: row; }
    .learn__card img { width: 38%; aspect-ratio: auto; }
    .guide__cta { flex-direction: column; align-items: flex-start; }
    .site-footer__inner { flex-direction: column; gap: 26px; }
}

@media (max-width: 640px) {
    body { font-size: 15.5px; }
    .container { padding: 0 18px; }
    .site-header__inner { min-height: 64px; gap: 12px; }
    .brand { gap: 9px; }
    .brand__icon { width: 30px; height: 30px; }
    .brand__name { font-size: 19px; }
    .btn--header { font-size: 14.5px; padding: 9px 12px; }

    .hero__media { width: 100%; height: 300px; bottom: auto; opacity: .35; -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 100%); mask-image: linear-gradient(180deg, #000 30%, transparent 100%); }
    .hero__content { padding: 36px 0 36px; }
    .hero__title { font-size: 40px; }
    .hero__sub { font-size: 17px; margin-top: 14px; }
    .search { flex-direction: column; background: transparent; border: 0; box-shadow: none; gap: 10px; }
    .search__field { background: #fff; border: 1px solid #cfd9e5; border-radius: 9px; box-shadow: 0 8px 20px rgba(15, 40, 80, .08); }
    .search input { height: 58px; border-radius: 9px; }
    .search__btn { margin: 0; border-radius: 9px; height: 58px; box-shadow: 0 6px 14px rgba(255, 111, 14, .28); }
    .circle-ico { width: 48px; height: 48px; }

    .section-head { flex-direction: column; gap: 6px; }
    .section-title { font-size: 27px; }
    .section-title--lg { font-size: 32px; }
    .cards { grid-template-columns: 1fr; gap: 16px; }
    .why__list { grid-template-columns: 1fr; gap: 18px; }
    .why__list li { padding: 0; border: 0 !important; }
    .journey { padding: 48px 0; }
    .journey__steps { grid-template-columns: 1fr 1fr; }
    .guide { padding: 48px 0; }
    .guide__grid { grid-template-columns: 1fr; }
    .guide__cta { padding: 26px 22px; }
    .guide__cta .btn { width: 100%; }

    /* the form flow goes full screen on phones, as in the design */
    .page--flow { background: #fff; }
    .page--flow .site-header__inner { min-height: 60px; padding-top: 6px; }
    .page--flow .brand__icon { width: 26px; height: 26px; }
    .page--flow .brand__name { font-size: 19px; }
    .flow { padding: 0 0 24px; }
    .flow__card { max-width: none; border-radius: 0; box-shadow: none; padding: 14px 18px 20px; }
    .q__title { font-size: 28px; }
    .q__sub { font-size: 15px; }
    .opts--cards .opt__box { padding: 18px 8px 16px; }
    .opts--cards .opt__label { font-size: 17.5px; }
    .opts--cards .opt__text { font-size: 13.5px; }
    .opts--list .opt__box { min-height: 80px; padding: 18px; }

    .page-title { font-size: 34px; }
    .page-lead { font-size: 17px; }
    .fin__hero { min-height: 390px; padding-top: 34px; }
    .fin__media { width: 100%; right: -18px; height: 200px; }
    .widget { padding: 22px 18px 20px; margin-top: -60px; }
    .widget__head { flex-direction: column; align-items: flex-start; gap: 8px; }
    .widget__brand { font-size: 24px; }
    .widget__aside { text-align: left; max-width: none; }
    .widget__aside strong { display: inline; }

    .thanks { padding-top: 32px; }
    .ci__title { font-size: 29px; }
    .ci__title br { display: none; }
    .ci__text { font-size: 17px; }
    .ci .btn { width: 100%; }
    .ci__perks { grid-template-columns: 1fr; gap: 12px; padding: 14px 18px; }
    .ci__perks li { justify-content: flex-start; }
    .ci__perks li + li { border-left: 0; }
    .learn__title { font-size: 25px; }
    .doc-inner { padding: 28px 20px; }
}

@media (max-width: 374px) {
    .btn--header { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
