/* ============================================================================
   INS. COVERAGE CHECK FUNNEL — STYLES
   Mobile-first. One accent color (set from config as --accent) + neutrals.
   ============================================================================ */

:root {
  --accent: #0059DC;          /* overridden at runtime from config.js */
  --accent-dark: #0047b0;
  --ink: #16202e;             /* near-black text */
  --ink-soft: #445064;        /* secondary text */
  --line: #e2e7ee;            /* hairlines / borders */
  --bg: #ffffff;
  --bg-tint: #f5f8fc;         /* soft section background */
  --good: #1f8f5f;
  --radius: 14px;
  --maxw: 720px;
  --shadow: 0 2px 10px rgba(22, 32, 46, .06);
  --shadow-lift: 0 6px 22px rgba(11, 28, 45, .20);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}

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

.section { padding: 40px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-tint { background: var(--bg-tint); border-top: 1px solid var(--line); }

/* ---- header ----------------------------------------------------------- */
.site-header {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { font-weight: 800; font-size: 22px; letter-spacing: -.02em; color: var(--accent); text-decoration: none; }
.brand .dot { color: var(--accent); }
.logo-img { max-height: 42px; width: auto; display: block; }
.header-phone { font-size: 15px; font-weight: 600; color: var(--accent); text-decoration: none; white-space: nowrap; }

/* ---- type ------------------------------------------------------------- */
h1 { font-size: 30px; line-height: 1.18; letter-spacing: -.02em; margin: 0 0 14px; }
h2 { font-size: 23px; line-height: 1.25; letter-spacing: -.01em; margin: 0 0 12px; }
h3 { font-size: 19px; margin: 0 0 8px; }
.subhead { font-size: 19px; color: var(--ink-soft); margin: 0 0 8px; }
.lead { font-size: 18px; color: var(--ink-soft); }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: 13px; font-weight: 700; color: var(--accent); margin: 0 0 10px; }
p { margin: 0 0 14px; }

/* ---- lists ------------------------------------------------------------ */
.check-list { list-style: none; padding: 0; margin: 16px 0; }
.check-list li {
  position: relative;
  padding: 8px 0 8px 34px;
  border-bottom: 1px solid var(--line);
}
.check-list li:last-child { border-bottom: none; }
.check-list li::before {
  content: "";
  position: absolute; left: 4px; top: 14px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2l-3.5-3.5L4 14.2 9 19.2 20 8.2l-1.5-1.5z'/%3E%3C/svg%3E") center/16px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2l-3.5-3.5L4 14.2 9 19.2 20 8.2l-1.5-1.5z'/%3E%3C/svg%3E") center/16px no-repeat;
}

/* ---- buttons ---------------------------------------------------------- */
.btn {
  display: inline-block;
  font: inherit;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: var(--radius);
  padding: 16px 26px;
  transition: transform .06s ease, box-shadow .15s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-lift);
  width: 100%;
  font-size: 20px;
  padding: 18px 26px;
}
.btn-primary:hover { background: var(--accent-dark); }
.btn-secondary {
  background: #fff;
  color: var(--ink-soft);
  border-color: var(--line);
  width: 100%;
}
.btn-secondary:hover { border-color: var(--ink-soft); color: var(--ink); }
.btn-block { display: block; width: 100%; }

/* ---- qualifier block (page 1, repeated) ------------------------------- */
.qualifier {
  background: var(--bg-tint);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px;
  margin: 28px 0;
  text-align: center;
  box-shadow: var(--shadow);
}
.qualifier h2 { margin-bottom: 18px; font-size: 22px; }
.qualifier .btn-row { display: flex; flex-direction: column; gap: 12px; }
.qualifier-msg {
  display: none;
  margin-top: 16px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink-soft);
  font-size: 16px;
}
.qualifier-msg.show { display: block; }

/* ---- FAQ -------------------------------------------------------------- */
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 6px 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 18px;
  padding: 12px 0;
  list-style: none;
  position: relative;
  padding-right: 28px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 4px; top: 10px;
  font-size: 24px; font-weight: 400; color: var(--accent);
}
.faq details[open] summary::after { content: "\2013"; }
.faq details p { color: var(--ink-soft); padding: 0 0 12px; }

/* ---- promise ---------------------------------------------------------- */
.promise { list-style: none; padding: 0; margin: 0; }
.promise li {
  padding: 14px 16px 14px 48px;
  position: relative;
  background: var(--bg-tint);
  border-radius: 10px;
  margin-bottom: 12px;
  font-weight: 500;
}
.promise li::before {
  content: "\2713";
  position: absolute; left: 16px; top: 13px;
  color: var(--good); font-weight: 800; font-size: 20px;
}

/* ---- forms (pages 2 & 3) ---------------------------------------------- */
.form-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 4px;
}
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 16px; }
.field input {
  width: 100%;
  font: inherit;
  padding: 14px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(11,28,45,.14); }
.field .err { display: none; color: #c0392b; font-size: 14px; margin-top: 6px; }
.field.invalid input { border-color: #c0392b; }
.field.invalid .err { display: block; }
.row-2 { display: grid; grid-template-columns: 1fr; gap: 0; }

/* interests checklist */
.choice-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0 8px; }
.choice {
  position: relative;
  display: flex; align-items: center; gap: 10px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 16px 14px;
  cursor: pointer;
  font-weight: 600;
  user-select: none;
  transition: border-color .12s ease, background .12s ease;
}
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice .box {
  width: 22px; height: 22px; flex: 0 0 22px;
  border: 2px solid var(--line); border-radius: 6px;
  display: inline-block; position: relative;
}
.choice input:checked ~ .box { background: var(--accent); border-color: var(--accent); }
.choice input:checked ~ .box::after {
  content: ""; position: absolute; inset: 0;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2l-3.5-3.5L4 14.2 9 19.2 20 8.2l-1.5-1.5z'/%3E%3C/svg%3E") center/16px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2l-3.5-3.5L4 14.2 9 19.2 20 8.2l-1.5-1.5z'/%3E%3C/svg%3E") center/16px no-repeat;
  background: #fff;
}
.choice input:checked ~ span:last-child,
.choice:hover { border-color: var(--accent); }
.choice.has-check { border-color: var(--accent); background: rgba(11,28,45,.05); }

/* consent / TCPA checkbox (page 3) */
.consent-field { margin-top: 4px; }
/* selector kept specific so it wins over the generic `.field label` rule */
.consent-field label.consent {
  display: flex; align-items: center; gap: 14px;
  cursor: pointer; font-weight: 400; font-size: 12px;
  line-height: 1.4; color: var(--ink-soft); margin-bottom: 0;
  border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 16px;
}
.consent input { position: absolute; opacity: 0; pointer-events: none; }
.consent .box {
  width: 40px; height: 40px; flex: 0 0 40px;
  border: 2.5px solid #97a4b5; border-radius: 8px; background: #fff;
  position: relative; transition: background .12s ease, border-color .12s ease;
}
.consent:hover .box { border-color: var(--accent); }
.consent input:checked ~ .box { background: var(--accent); border-color: var(--accent); }
.consent input:checked ~ .box::after {
  content: ""; position: absolute; inset: 0;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2l-3.5-3.5L4 14.2 9 19.2 20 8.2l-1.5-1.5z'/%3E%3C/svg%3E") center/28px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2l-3.5-3.5L4 14.2 9 19.2 20 8.2l-1.5-1.5z'/%3E%3C/svg%3E") center/28px no-repeat;
  background: #fff;
}
.consent-field.invalid .consent { border-color: #c0392b; }
.consent-field.invalid .box { border-color: #c0392b; }
.form-note { color: var(--ink-soft); font-size: 15px; }
.form-error {
  display: none; color: #c0392b; font-weight: 600; margin: 10px 0;
}
.form-error.show { display: block; }

/* ---- progress dots ---------------------------------------------------- */
.steps { display: flex; gap: 8px; align-items: center; margin: 4px 0 22px; }
.steps .dot { width: 28px; height: 4px; border-radius: 4px; background: var(--line); }
.steps .dot.on { background: var(--accent); }

/* ---- page-4 paths ----------------------------------------------------- */
.path {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.path-primary { border-color: var(--accent); box-shadow: var(--shadow-lift); }
.path .eyebrow { margin-bottom: 8px; }
.roam-embed { margin-top: 8px; }
#roam-lobby { min-width: 100%; }
.small-path { color: var(--ink-soft); font-size: 16px; }

/* ---- misc ------------------------------------------------------------- */
.back-link { display: inline-block; margin-top: 18px; color: var(--ink-soft); text-decoration: none; font-weight: 600; }
.back-link::before { content: "\2190  "; }
.back-link:hover { color: var(--ink); }
.center { text-align: center; }
.mt-0 { margin-top: 0; }

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-tint);
  padding: 26px 0;
  font-size: 15px;
  color: var(--ink-soft);
}
.site-footer a { color: var(--accent); font-weight: 600; text-decoration: none; }

/* ---- larger screens --------------------------------------------------- */
@media (min-width: 640px) {
  body { font-size: 19px; }
  h1 { font-size: 40px; }
  h2 { font-size: 27px; }
  .section { padding: 56px 0; }
  .qualifier .btn-row { flex-direction: row; justify-content: center; }
  .qualifier .btn { min-width: 220px; width: auto; }
  .btn-primary { width: auto; min-width: 280px; }
  .row-2 { grid-template-columns: 1fr 1fr; gap: 18px; }
  .choice-list { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 480px) {
  .choice-list { grid-template-columns: 1fr 1fr; }
}
