/* U65 lander. Mobile-first, no framework, system fonts (fast first paint).
   Palette: evergreen + warm coral on a warm light ground, deliberately NOT the government blue/white or red-white-blue. */
:root {
  --ink: #14212B;
  --ink-2: #3B4A55;
  --ink-3: #66737C;
  --bg: #F6F7F4;
  --card: #FFFFFF;
  --line: #E1E5E0;
  --green: #127A5F;
  --green-2: #0E6450;
  --green-tint: #E6F2EC;
  --cta: #E8542F;
  --cta-2: #CC4523;
  --amber: #B7791F;
  --err: #C0392B;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(20,33,43,.06), 0 8px 28px rgba(20,33,43,.08);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.5; -webkit-font-smoothing: antialiased; }
img, svg { display: block; }
a { color: var(--green-2); }
h1, h2, h3, p, ul, ol, fieldset, legend { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
button { font: inherit; cursor: pointer; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
[hidden] { display: none !important; }

/* ---------- Top ---------- */
.top { background: var(--card); border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.top__inner { max-width: 1120px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; margin-right: auto; }
.brand__mark { width: 28px; height: 28px; color: var(--green); }
.brand__name { font-size: 18px; letter-spacing: -.3px; font-weight: 500; }
.brand__name b { font-weight: 800; color: var(--green); }
.top__note { font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.top__call { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; background: var(--green-tint); color: var(--green-2); font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; }
.top__call svg { width: 16px; height: 16px; }
.top__strip { margin: 0; padding: 5px 16px 6px; text-align: center; font-size: 12.5px; color: var(--ink-3); background: #FBFBF9; border-top: 1px solid #EEF0EC; }
.top__strip .long { display: none; }
.btn--call .num { white-space: nowrap; }
/* Flow mode (mobile): once the visitor is past the ZIP, the hero copy folds away so every question sits at the top. */
@media (max-width: 899px) { body.is-flow .hero__copy { display: none; } body.is-flow .hero { padding-top: 12px; } }

/* ---------- Hero ---------- */
.hero { padding: 18px 16px 28px; }
.hero__inner { max-width: 1120px; margin: 0 auto; display: grid; gap: 18px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--green-tint); color: var(--green-2); font-weight: 700; font-size: 13px; }
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(18,122,95,.5); animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(18,122,95,.45); } 70% { box-shadow: 0 0 0 8px rgba(18,122,95,0); } 100% { box-shadow: 0 0 0 0 rgba(18,122,95,0); } }
.hero__title { margin-top: 12px; font-size: 30px; line-height: 1.12; letter-spacing: -.8px; font-weight: 800; }
.hero__title em { font-style: normal; color: var(--green); }
.hero__sub { margin-top: 10px; font-size: 16.5px; color: var(--ink-2); }
.ticks { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.ticks li { position: relative; padding-left: 22px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 15px; height: 15px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.3 2.3 4.7-5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/11px no-repeat; }

/* ---------- Card + steps ---------- */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 18px 18px; border: 1px solid #EDEFEA; scroll-margin-top: 12px; }
.step__title { display: block; font-size: 21px; line-height: 1.25; font-weight: 800; letter-spacing: -.3px; }
.step__sub { margin-top: 6px; color: var(--ink-3); font-size: 14.5px; }
.step > * + * { margin-top: 14px; }
.step > .step__sub { margin-top: 6px; }
.step.is-in { animation: stepin .28s ease-out; }
@keyframes stepin { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.prog { margin-bottom: 16px; }
.prog__row { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink-3); font-weight: 600; margin-bottom: 6px; }
.prog__track { height: 6px; background: #EDF0EC; border-radius: 999px; overflow: hidden; }
.prog__fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--green), #1FA37E); border-radius: 999px; transition: width .35s ease; }

.field { display: block; }
.label { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
.input { width: 100%; font: inherit; font-size: 17px; padding: 14px 14px; border: 1.5px solid #CCD3CD; border-radius: 12px; background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none; }
.input::placeholder { color: #9AA4A0; }
.input:focus { outline: 0; border-color: var(--green); box-shadow: 0 0 0 4px rgba(18,122,95,.14); }
.input.is-bad { border-color: var(--err); }
.input--zip { font-size: 24px; font-weight: 700; letter-spacing: 3px; text-align: center; padding: 16px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.note { margin-top: 8px; font-size: 13.5px; color: var(--green-2); font-weight: 600; }
.err { margin-top: 6px; font-size: 13px; color: var(--err); font-weight: 600; }
.err--form { text-align: center; }

.tiles { display: grid; gap: 10px; }
.tiles--two { grid-template-columns: 1fr 1fr; }
.tiles--six { grid-template-columns: repeat(3, 1fr); }
.tile { position: relative; display: flex; align-items: center; min-height: 56px; padding: 12px 14px; border: 1.5px solid #CCD3CD; border-radius: 12px; background: #fff; cursor: pointer; font-weight: 650; font-size: 15.5px; line-height: 1.25; transition: border-color .12s, background .12s, transform .06s; -webkit-tap-highlight-color: transparent; }
.tiles--six .tile, .tiles--two .tile { justify-content: center; text-align: center; }
.tile--wide { grid-column: 1 / -1; }
.tiles--six .tile { font-size: 19px; font-weight: 800; }
.tile input { position: absolute; opacity: 0; pointer-events: none; }
.tile:hover { border-color: var(--green); }
.tile:active { transform: scale(.985); }
.tile:has(input:checked) { border-color: var(--green); background: var(--green-tint); color: var(--green-2); }
.tile:has(input:focus-visible) { box-shadow: 0 0 0 4px rgba(18,122,95,.18); }
.tile.is-checked { border-color: var(--green); background: var(--green-tint); color: var(--green-2); }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.seg__opt { position: relative; display: flex; align-items: center; justify-content: center; min-height: 52px; border: 1.5px solid #CCD3CD; border-radius: 12px; font-weight: 700; cursor: pointer; background: #fff; }
.seg__opt input { position: absolute; opacity: 0; pointer-events: none; }
.seg__opt:has(input:checked), .seg__opt.is-checked { border-color: var(--green); background: var(--green-tint); color: var(--green-2); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; padding: 15px 20px; font-weight: 800; font-size: 17px; text-decoration: none; transition: background .15s, transform .06s; }
.btn svg { width: 18px; height: 18px; }
.btn--block { width: 100%; }
.btn--go { background: var(--cta); color: #fff; box-shadow: 0 6px 16px rgba(232,84,47,.28); }
.btn--go:hover { background: var(--cta-2); }
.btn--go:active { transform: translateY(1px); }
.btn--go[disabled] { opacity: .75; cursor: progress; }
.btn--call { background: var(--green); color: #fff; }
.btn--call:hover { background: var(--green-2); }
.btn--back { background: none; color: var(--ink-3); font-weight: 600; font-size: 14.5px; padding: 6px 4px; }
.lock { display: flex; align-items: flex-start; gap: 6px; justify-content: center; font-size: 12.5px; color: var(--ink-3); text-align: center; }
.lock svg { width: 13px; height: 13px; margin-top: 2px; flex: none; }
.js-submit.is-loading span::after { content: "…"; }

/* ---------- The estimate ---------- */
.rv { border-radius: 14px; background: linear-gradient(160deg, #F1F8F4, #FFFFFF 70%); border: 1px solid #D8EBE1; padding: 16px 16px 14px; }
.rv__kicker { font-size: 13.5px; font-weight: 700; color: var(--green-2); }
.rv__big { margin-top: 4px; font-size: 40px; line-height: 1.05; font-weight: 850; letter-spacing: -1px; color: var(--ink); }
.rv__big small { font-size: 17px; font-weight: 700; letter-spacing: 0; color: var(--ink-2); }
.rv__body { margin-top: 8px; font-size: 15px; color: var(--ink-2); }
.rv__meter { margin-top: 12px; height: 8px; border-radius: 999px; background: #E3ECE6; overflow: hidden; }
.rv__meter-fill { height: 100%; width: 0; background: var(--green); border-radius: 999px; transition: width .7s ease .2s; }
.rv__fine { margin-top: 10px; font-size: 12.5px; color: var(--ink-3); }

/* ---------- Matching / end / done ---------- */
.matching { padding: 8px 2px; }
.matching__title { font-size: 21px; font-weight: 800; margin-bottom: 14px; }
.matching__row { display: flex; align-items: center; gap: 10px; padding: 9px 0; color: var(--ink-3); font-weight: 600; transition: color .2s; }
.matching__row .dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #CCD3CD; flex: none; transition: all .2s; }
.matching__row.is-active { color: var(--ink); }
.matching__row.is-active .dot { border-color: var(--green); border-top-color: transparent; animation: spin .8s linear infinite; }
.matching__row.is-done { color: var(--ink); }
.matching__row.is-done .dot { border-color: var(--green); background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.3 2.3 4.7-5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
@keyframes spin { to { transform: rotate(360deg); } }
.endcard__title, .done__title { font-size: 22px; font-weight: 800; letter-spacing: -.3px; }
.endcard__body, .done__body { margin-top: 8px; color: var(--ink-2); }
.done { text-align: left; }
.done__badge { width: 52px; height: 52px; border-radius: 50%; background: var(--green-tint); color: var(--green); display: grid; place-items: center; margin-bottom: 12px; }
.done__badge svg { width: 28px; height: 28px; }
.done .btn--call { margin-top: 14px; }
.done__ready { margin-top: 16px; padding: 14px; border-radius: 12px; background: #F7F8F5; border: 1px solid var(--line); }
.done__ready-title { font-weight: 700; font-size: 14.5px; }
.done__ready ul { margin-top: 6px; list-style: disc; padding-left: 20px; }
.done__ready li { font-size: 14px; color: var(--ink-2); margin-top: 3px; }

.consent { font-size: 12.5px; line-height: 1.55; color: var(--ink-2); }
.consent a { color: var(--ink-2); }

/* ---------- Bands ---------- */
.band { padding: 40px 16px; }
.band--tint { background: #EEF2EE; }
.band__inner { max-width: 920px; margin: 0 auto; }
.band__title { font-size: 25px; letter-spacing: -.5px; font-weight: 800; }
.how { margin-top: 18px; display: grid; gap: 14px; }
.how li { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.how__n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 800; }
.how h3 { margin-top: 10px; font-size: 17px; }
.how p { margin-top: 4px; color: var(--ink-2); font-size: 15px; }
.faq { margin-top: 16px; display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; }
.faq summary { cursor: pointer; padding: 15px 0; font-weight: 700; list-style: none; position: relative; padding-right: 26px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 2px; top: 12px; font-size: 22px; color: var(--green); font-weight: 600; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 16px; color: var(--ink-2); font-size: 15px; }
.band__cta { margin-top: 22px; text-align: center; }

/* ---------- Footer ---------- */
.foot { background: #FFFFFF; border-top: 1px solid var(--line); padding: 28px 16px 96px; }
.foot__inner { max-width: 920px; margin: 0 auto; }
.foot__disc { font-size: 12.5px; color: var(--ink-3); }
.foot__links { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.foot__links a { font-size: 13px; color: var(--ink-2); }
.foot__copy { margin-top: 12px; font-size: 12.5px; color: var(--ink-3); }

/* ---------- Dock (mobile sticky) ---------- */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .25s ease; backdrop-filter: saturate(140%) blur(6px); }
.dock.is-on { transform: none; }
.dock__go { flex: 1; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--cta); color: #fff; font-weight: 800; text-decoration: none; padding: 14px; font-size: 16.5px; }
.dock__call { width: 54px; display: grid; place-items: center; border-radius: 12px; background: var(--green); color: #fff; }
.dock__call svg { width: 22px; height: 22px; }

/* ---------- Desktop ---------- */
@media (min-width: 900px) {
  .top__inner { padding: 12px 24px; }
  .hero { padding: 44px 24px 56px; }
  .hero__inner { grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: start; }
  .hero__copy { padding-top: 24px; }
  .hero__title { font-size: 48px; letter-spacing: -1.4px; }
  .hero__sub { font-size: 19px; max-width: 34ch; }
  .ticks li { font-size: 15px; }
  .card { padding: 26px 24px 22px; }
  .how { grid-template-columns: repeat(3, 1fr); }
  .dock { display: none; }
  .foot { padding-bottom: 36px; }
  .top__strip .short { display: none; }
  .top__strip .long { display: inline; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* MediaAlpha-order disclosure, clear and conspicuous right under the form on every viewport */
.disclose { background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.disclose p { font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
.disclose p + p { margin-top: 6px; }
.pending { color: #B7791F; font-weight: 700; }
@media (min-width: 900px) { .disclose { grid-column: 2; } }
