/* cashhomeoffer.co — CRO layout. */
:root {
  --navy: #0f2a44;
  --navy-2: #173b5e;
  --green: #12a150;
  --green-dark: #0e8541;
  --green-soft: #e8f6ee;
  --ink: #142233;
  --muted: #5b6b7c;
  --line: #dbe3ec;
  --bg: #f4f7fb;
  --error: #c62828;
  --radius: 10px;
  --font: 'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--font); color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; line-height: 1.5; }
a { color: var(--navy-2); }
button, input, select { font: inherit; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.container--narrow { max-width: 760px; }

/* ---------- header ---------- */
.topbar { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--navy); font-weight: 700; font-size: 18px; letter-spacing: -.02em; }
.logo b { color: var(--green); font-weight: 800; }
.topbar-note { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--green-dark); }
@media (max-width: 400px) { .topbar-note { font-size: 12px; } }

/* ---------- hero ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(18, 161, 80, .18), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  padding: 28px 0 40px;
}
.hero-grid { display: grid; gap: 24px; align-items: start; }
@media (min-width: 960px) {
  .hero { padding: 64px 0 80px; }
  .hero-grid { grid-template-columns: 1fr 520px; gap: 56px; }
  .hero-copy { padding-top: 24px; }
}
.eyebrow { margin: 0 0 10px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #8ee6b2; }
.hero h1 { margin: 0 0 14px; font-size: clamp(28px, 5.2vw, 50px); font-weight: 800; text-wrap: balance; }
.hero h1 .hl { color: #8ee6b2; }
.lede { margin: 0 0 18px; font-size: clamp(16px, 2vw, 19px); color: #d5e2ef; max-width: 520px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; font-weight: 600; }
.checks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5.5 10.5 3 3 6-6.5' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
/* Phones: keep the form above the fold. Short pitch first, bullets after the card. */
@media (max-width: 959px) {
  .hero-grid { display: flex; flex-direction: column; }
  .hero-copy { display: contents; }
  .eyebrow, .hero h1, .lede { order: 0; }
  .lede { margin-bottom: 4px; font-size: 15px; }
  .card { order: 1; }
  .checks { order: 2; margin-top: 4px; }
  body.in-flow .eyebrow, body.in-flow .lede, body.in-flow .checks { display: none; }
  body.in-flow .hero h1 { font-size: 20px; margin-bottom: 0; }
}

/* ---------- card ---------- */
.card {
  background: #fff;
  color: var(--ink);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 24px 60px rgba(4, 20, 38, .35);
}
@media (min-width: 640px) { .card { padding: 28px; } }

.progress { margin-bottom: 18px; }
.progress-top { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.progress-top span:last-child { color: var(--green-dark); }
.progress-track { height: 8px; border-radius: 99px; background: #e9eef4; overflow: hidden; }
.progress-bar { height: 100%; width: 10%; border-radius: 99px; background: linear-gradient(90deg, var(--green), #34c472); transition: width .35s ease; }

.secure { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 14px 0 0; font-size: 12px; color: var(--muted); }

/* ---------- step ---------- */
.fx-step { animation: fx-in .22s ease-out; }
@keyframes fx-in { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .fx-step, .fx-success { animation: none; } }

.addr-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  margin: 0 0 12px;
  padding: 5px 10px;
  border-radius: 99px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 700;
}
.addr-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.addr-chip svg { flex: none; }

.fx-title { margin: 0 0 6px; font-size: clamp(20px, 3vw, 24px); font-weight: 800; color: var(--navy); outline: none; }
.fx-desc { margin: 0 0 4px; color: var(--muted); font-size: 14px; }
.fx-fields { margin-top: 16px; }

/* property cards */
.fx-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fx-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 108px;
  padding: 12px 8px;
  background: #fff;
  color: var(--ink);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .1s;
}
.fx-card:last-child { grid-column: 1 / -1; min-height: 84px; flex-direction: row; gap: 12px; }
.fx-card:hover { border-color: var(--green); }
.fx-card:active { transform: scale(.98); }
.fx-card.is-selected { border-color: var(--green); background: var(--green-soft); }
.fx-card:focus-visible { outline: 3px solid rgba(18, 161, 80, .4); outline-offset: 2px; }
.fx-card-icon { color: var(--navy-2); display: grid; }
.fx-card-icon svg { width: 38px; height: 38px; }
.fx-card-label { font-size: 13px; font-weight: 700; line-height: 1.3; text-align: center; }

/* options */
.fx-options { display: grid; gap: 10px; }
.fx-options--grid { grid-template-columns: 1fr 1fr; gap: 8px; }
.fx-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  background: #fff;
  color: var(--ink);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .1s;
}
.fx-options--grid .fx-option { min-height: 44px; padding: 8px 10px; font-size: 13px; gap: 8px; }
.fx-option:hover { border-color: var(--green); }
.fx-option:active { transform: scale(.99); }
.fx-option:focus-visible { outline: 3px solid rgba(18, 161, 80, .4); outline-offset: 2px; }
.fx-option-dot { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #b6c3d1; transition: border .15s, background .15s; }
.fx-options--grid .fx-option-dot { width: 14px; height: 14px; }
.fx-option.is-selected { border-color: var(--green); background: var(--green-soft); }
.fx-option.is-selected .fx-option-dot { border: 5px solid var(--green); background: #fff; }

/* inputs */
.fx-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fx-row--addr { grid-template-columns: 1.6fr .9fr 1fr; }
@media (max-width: 480px) { .fx-row--addr { grid-template-columns: 1fr 1fr; } .fx-row--addr .fx-field:first-child { grid-column: 1 / -1; } }
.fx-field { margin-bottom: 12px; }
.fx-label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; color: var(--ink); }
.fx-input {
  width: 100%;
  height: 52px;
  padding: 0 14px;
  background: #fff;
  color: var(--ink);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.fx-input::placeholder { color: #9aa8b6; font-weight: 500; }
.fx-input:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(18, 161, 80, .15); }
.fx-input.is-invalid { border-color: var(--error); }
.fx-select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%235b6b7c' stroke-width='1.8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E") right 14px center no-repeat; padding-right: 34px; }
.fx-step--address .fx-label, .fx-step--email .fx-label, .fx-step--phone .fx-field .fx-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.fx-step--address .fx-manual .fx-label { position: static; width: auto; height: auto; clip: auto; }
.fx-step--address .fx-input { height: 56px; font-size: 17px; }

/* address autocomplete */
.fx-ac-wrap { position: relative; }
.fx-ac-list {
  position: absolute;
  z-index: 10;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(15, 42, 68, .18);
}
.fx-ac-item { padding: 10px 12px; border-radius: 8px; cursor: pointer; font-size: 14px; }
.fx-ac-item:hover, .fx-ac-item.is-active { background: var(--green-soft); }
.fx-ac-main { font-weight: 700; }
.fx-ac-sec { color: var(--muted); }
.fx-link { margin-top: 8px; padding: 0; background: none; border: 0; color: var(--muted); font-size: 13px; text-decoration: underline; cursor: pointer; }

/* consent */
.fx-consent { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0 0; font-size: 11.5px; line-height: 1.5; color: var(--muted); cursor: pointer; }
.fx-consent input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--green); }

/* errors */
.fx-error { margin: 6px 0 0; font-size: 13px; font-weight: 600; color: var(--error); }
.fx-error:empty { display: none; }

/* actions */
.fx-actions { display: flex; gap: 10px; margin-top: 18px; }
.fx-actions--empty { display: none; }
.fx-btn { height: 52px; padding: 0 18px; border-radius: var(--radius); border: 0; font-size: 16px; font-weight: 800; cursor: pointer; transition: background .15s, transform .1s; }
.fx-btn:active { transform: translateY(1px); }
.fx-btn--back { background: #fff; color: var(--muted); border: 2px solid var(--line); font-weight: 700; }
.fx-btn--back:hover { color: var(--ink); border-color: #b6c3d1; }
.fx-btn--next { flex: 1; position: relative; background: var(--green); color: #fff; box-shadow: 0 6px 16px rgba(18, 161, 80, .35); }
.fx-btn--next:hover { background: var(--green-dark); }
.fx-btn--next span::after { content: ' →'; }
.fx-btn:focus-visible { outline: 3px solid rgba(18, 161, 80, .45); outline-offset: 2px; }
.fx-btn.is-loading span { visibility: hidden; }
.fx-btn.is-loading::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(255, 255, 255, .5);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
/* Radio steps auto-advance; keep Back but drop the redundant big button. */
.fx-step--property .fx-btn--next,
.fx-step--listed .fx-btn--next,
.fx-step--condition .fx-btn--next,
.fx-step--timeframe .fx-btn--next,
.fx-step--reason .fx-btn--next,
.fx-step--value .fx-btn--next { display: none; }
.fx-step--property .fx-actions, .fx-step--listed .fx-actions, .fx-step--condition .fx-actions,
.fx-step--timeframe .fx-actions, .fx-step--reason .fx-actions, .fx-step--value .fx-actions { margin-top: 12px; }
.fx-step--property .fx-btn--back, .fx-step--listed .fx-btn--back, .fx-step--condition .fx-btn--back,
.fx-step--timeframe .fx-btn--back, .fx-step--reason .fx-btn--back, .fx-step--value .fx-btn--back { height: 40px; border: 0; padding: 0; background: none; font-size: 14px; }

/* success */
.fx-success { text-align: left; animation: fx-in .3s ease-out; }
.success-badge { width: 52px; height: 52px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; margin-bottom: 14px; }
.success-lede { margin: 0 0 16px; color: var(--muted); }
.success-prop { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 20px; }
.success-img { display: block; width: 100%; aspect-ratio: 32 / 15; object-fit: cover; }
.success-prop p { display: flex; align-items: center; gap: 6px; margin: 0; padding: 12px 14px; font-weight: 700; font-size: 14px; }
.next-title { margin: 0 0 10px; font-size: 16px; color: var(--navy); }
.next-steps { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 14px; color: var(--ink); }

/* ---------- sections ---------- */
.section { padding: 56px 0; }
.section--alt { background: var(--bg); }
.section-title { margin: 0 0 28px; text-align: center; font-size: clamp(24px, 3.5vw, 34px); font-weight: 800; color: var(--navy); }
.steps3 { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 768px) { .steps3 { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.steps3 li { background: var(--bg); border-radius: 14px; padding: 22px; }
.steps3 .num { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; margin-bottom: 12px; }
.steps3 h3 { margin: 0 0 6px; font-size: 18px; color: var(--navy); }
.steps3 p { margin: 0; color: var(--muted); font-size: 15px; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare { width: 100%; min-width: 480px; max-width: 860px; margin: 0 auto; border-collapse: separate; border-spacing: 0; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 1px 0 var(--line); font-size: 15px; }
.compare th, .compare td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.compare thead th { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.compare tbody th { font-weight: 600; }
.compare .us { background: var(--green-soft); color: var(--green-dark); font-weight: 700; }
.compare thead .us { color: var(--green-dark); }
.compare tr:last-child > * { border-bottom: 0; }

.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; background: #fff; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 700; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 20px; line-height: 1; color: var(--green); }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 0 0 16px; color: var(--muted); }
.cta-again { text-align: center; margin: 32px 0 0; }
.btn-cta { display: inline-block; padding: 16px 28px; border-radius: var(--radius); background: var(--green); color: #fff; font-weight: 800; text-decoration: none; box-shadow: 0 6px 16px rgba(18, 161, 80, .35); }
.btn-cta:hover { background: var(--green-dark); }

/* ---------- footer ---------- */
.footer { background: var(--navy); color: #aebfd0; font-size: 13px; padding: 28px 0; text-align: center; }
.footer a { color: #fff; }
.footer .fine { max-width: 760px; margin: 10px auto 0; font-size: 12px; line-height: 1.6; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.fx-disclosure { max-height: 96px; overflow-y: auto; margin: 12px 0 0; padding: 10px 12px; border: 1px solid var(--line, #e5e7eb); border-radius: 10px; font-size: 11.5px; line-height: 1.5; color: var(--muted); }
.fx-disclosure a { color: inherit; }
