:root {
  --ink: #1c2629;
  --ink-soft: #4d585b;
  --ground: #fbfaf7;
  --panel: #f1eee7;
  --card: #ffffff;
  --line: #ddd7cb;
  --accent: #2d5c4f;
  --accent-deep: #22473d;
  --accent-tint: #e3ece8;
  --focus: #c7862b;
  --error: #a3312a;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --radius: 10px;
  --wrap: 1120px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--display);
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.25rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); font-weight: 650; }
h3 { font-size: 1.15rem; font-weight: 650; }
p { margin: 0; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-deep); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 10px 16px; z-index: 10;
}
.skip:focus { left: 16px; top: 16px; }

/* Header -- sticky so "Get an offer" and the phone number are always one tap away */
.site-header {
  position: sticky; top: 0; z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 250, 247, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 72px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  color: var(--ink); text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand svg { width: 36px; height: 36px; flex: none; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 1.1rem; line-height: 1.1; display: block; }
.brand-sub { font-size: 0.8rem; color: var(--ink-soft); letter-spacing: 0.04em; display: block; }
.header-actions { display: flex; align-items: center; gap: 20px; }
.header-phone { color: var(--ink); font-weight: 600; text-decoration: none; white-space: nowrap; }
.header-phone:hover { color: var(--accent); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  background: var(--accent); color: #fff;
  font: 600 1rem/1 var(--body);
  border: 0; border-radius: var(--radius);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 0.15s ease;
}
.nowrap { white-space: nowrap; }
.btn:hover { background: var(--accent-deep); color: #fff; }
.btn-block { box-shadow: 0 2px 8px rgba(45, 92, 79, 0.25); }
.btn-block:hover { box-shadow: 0 4px 14px rgba(45, 92, 79, 0.3); }
.btn[disabled] { opacity: 0.7; cursor: progress; }
.btn-block { width: 100%; min-height: 54px; font-size: 1.05rem; }

/* Hero */
.hero { padding: 64px 0 72px; }
.hero .wrap {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 56px; align-items: start;
}
.eyebrow {
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 16px;
}
.lede { font-size: 1.2rem; color: var(--ink-soft); margin-top: 20px; max-width: 42ch; }
.promises { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.promises li { display: flex; gap: 12px; align-items: center; font-weight: 600; }
.promises svg { width: 22px; height: 22px; flex: none; color: var(--accent); }
.call-line { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-soft); }
.call-line a { font-weight: 700; font-size: 1.15rem; white-space: nowrap; }

/* Form */
.offer-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 30px;
  box-shadow: 0 1px 2px rgba(28, 38, 41, 0.05), 0 14px 36px rgba(28, 38, 41, 0.09);
  /* clears the sticky header when the page jumps to #offer */
  scroll-margin-top: 92px;
}
.offer-card h2 { font-size: 1.45rem; }
.offer-card > p { color: var(--ink-soft); margin: 6px 0 22px; font-size: 1rem; }
/* Anything the header links to has to clear the sticky bar too. */
#main, .section { scroll-margin-top: 80px; }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.92rem; font-weight: 600; }
.optional { font-weight: 400; color: var(--ink-soft); }
.field input, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: 400 1rem/1.4 var(--body); color: var(--ink);
  background: var(--card); border: 1px solid #c9c2b4; border-radius: 9px;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.field input::placeholder, .field textarea::placeholder { color: #93928c; }
.field input:hover, .field textarea:hover { border-color: #a9a293; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.field.has-error input { border-color: var(--error); background: #fdf7f6; }
.field-error { color: var(--error); font-size: 0.85rem; min-height: 0; font-weight: 600; }

/* Consent -- one quiet card, three rows. The wording inside is prescribed by
   the carriers, so only the presentation is styled here. */
.consent-group {
  margin: 20px 0;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--panel);
  overflow: hidden;
}
.consent {
  display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start;
  margin: 0; padding: 14px 16px;
  font-size: 0.86rem; line-height: 1.55; color: var(--ink-soft);
}
.consent + .consent { border-top: 1px solid var(--line); }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); cursor: pointer; flex: none; }
.consent label { cursor: pointer; }
.consent a { color: var(--ink); font-weight: 600; }
.consent:first-of-type { font-size: 0.95rem; color: var(--ink); font-weight: 600; }
.consent:has(input:checked) { background: var(--accent-tint); }

.form-note { text-align: center; font-size: 0.88rem; color: var(--ink-soft); margin-top: 12px; }
.form-status { margin-top: 14px; padding: 12px 14px; border-radius: 8px; font-size: 0.95rem; }
.form-status:empty { display: none; }
.form-status.ok { background: var(--accent-tint); color: var(--accent-deep); }
.form-status.err { background: #f6e5e3; color: var(--error); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Sections */
.section { padding: 80px 0; }
.section.alt { background: var(--panel); }
.section-head { max-width: 60ch; margin-bottom: 40px; }
.section-head p { color: var(--ink-soft); margin-top: 12px; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.steps li {
  counter-increment: step; display: grid; gap: 10px; align-content: start;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 24px 22px 26px;
}
.section.alt .steps li { background: var(--ground); }
.steps li::before {
  content: counter(step);
  display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 50%; background: var(--accent); color: #fff;
  font: 700 1.05rem/1 var(--display);
}
.steps p { color: var(--ink-soft); }

.situations { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.situations li {
  padding: 16px 18px; font-weight: 600;
  background: var(--panel); border-radius: 10px;
}
.section.alt .situations li { background: var(--card); }

.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 56px; margin: 0; }
.faq div { display: grid; gap: 8px; align-content: start; padding-top: 22px; border-top: 2px solid var(--line); }
.faq dt { font-family: var(--display); font-weight: 650; font-size: 1.1rem; line-height: 1.3; }
.faq dd { margin: 0; color: var(--ink-soft); }

.cta-band { background: var(--ink); color: #fff; padding: 64px 0; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band p { color: #c9d1d2; margin-top: 8px; }
.cta-band .btn { background: #fff; color: var(--ink); }
.cta-band .btn:hover { background: var(--accent-tint); color: var(--ink); }
.cta-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-actions a:not(.btn) { color: #fff; font-weight: 600; }

/* Footer */
.site-footer { padding: 48px 0 40px; font-size: 0.95rem; color: var(--ink-soft); border-top: 1px solid var(--line); }
.footer-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-grid nav { display: flex; gap: 24px; flex-wrap: wrap; align-items: start; }
.footer-grid nav a { color: var(--ink); }
.footer-contact { display: grid; gap: 4px; }
.footer-contact a { color: var(--ink); text-decoration: none; }
.fine { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.85rem; }

/* Legal pages */
.legal { padding: 56px 0 80px; }
.legal .wrap { max-width: 720px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.6rem); }
.legal .effective { color: var(--ink-soft); margin: 10px 0 36px; }
.legal h2 { font-size: 1.3rem; margin: 40px 0 12px; scroll-margin-top: 90px; }
.legal p, .legal li { max-width: 68ch; }
.legal a { font-weight: 600; }
.legal p, .legal ul { margin: 0 0 14px; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.callout { background: var(--panel); border-radius: var(--radius); padding: 18px 20px; margin: 16px 0; }

@media (max-width: 900px) {
  .hero { padding: 40px 0 56px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .steps, .situations { grid-template-columns: 1fr; }
  .steps { gap: 28px; }
  .faq { grid-template-columns: 1fr; gap: 28px; }
  .section { padding: 56px 0; }
}

@media (max-width: 560px) {
  body { font-size: 17px; }
  /* Keep tap-to-call on a phone -- it is the most valuable thing on the page.
     The brand strapline and the header button are what give way instead. */
  .brand-sub { display: none; }
  .brand svg { width: 32px; height: 32px; }
  .brand-name { font-size: 1rem; }
  .site-header .wrap { min-height: 64px; gap: 10px; }
  .header-actions { gap: 12px; }
  .header-phone { font-size: 0.95rem; }
  .site-header .btn { padding: 0 14px; min-height: 44px; font-size: 0.95rem; }
  .fields { grid-template-columns: 1fr; }
  .offer-card { padding: 22px 18px; }
  .consent { padding: 13px 14px; }
  .situations { grid-template-columns: 1fr; }
}

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