/* ==========================================================================
   Debt Relief Today — funnel styles
   ========================================================================== */

:root {
  --navy:        #101a30;
  --ink:         #16213a;
  --muted:       #667085;
  --line:        #e5e7eb;
  --line-soft:   #eef1f6;
  --tint:        #eef3ff;
  --blue:        #3b5bfd;
  --blue-dark:   #2743d1;
  --red:         #ef4444;
  --green:       #16a34a;
  --violet:      #7c3aed;
  --slate:       #64748b;
  --error:       #c11a1a;
  --success:     #1a9e4b;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-sm:  10px;
  --radius:     16px;
  --radius-lg:  24px;
  --page-max:   720px;
  --shadow-card: 0 20px 60px rgba(15, 23, 42, 0.08);
  --shadow-btn:  0 14px 30px rgba(59, 91, 253, 0.28);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.4;
  color: var(--ink);
  background:
    radial-gradient(60% 50% at 50% 0%, #f3f6ff 0%, #ffffff 60%);
  -webkit-font-smoothing: antialiased;
}

/* ---------- Top bar ------------------------------------------------------ */

.topbar {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 84px;
  padding: 0 24px;
}

.logo { display: inline-flex; line-height: 0; text-decoration: none; }
.logo svg { display: block; }

/* ---------- Page layout --------------------------------------------------- */

.page {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 28px 20px 80px;
  text-align: center;
}

h1 {
  margin: 0;
  font-weight: 800;
  font-size: 40px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy);
  text-wrap: balance;
}

h1 .accent {
  display: block;
  background: linear-gradient(90deg, var(--blue), #6a5bfa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 18px 0 32px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}
.badges span { display: inline-flex; align-items: center; gap: 6px; }
.badges svg { width: 16px; height: 16px; color: var(--blue); flex: none; }

/* ---------- Card ----------------------------------------------------------- */

.card {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 32px 28px;
  text-align: left;
}

.card h2 {
  margin: 0 0 20px;
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  text-align: center;
}

.step-sub {
  margin: -12px 0 20px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- Progress ------------------------------------------------------- */

.progress {
  height: 6px;
  border-radius: 999px;
  background: var(--line-soft);
  overflow: hidden;
  margin-bottom: 24px;
}
.progress__fill {
  height: 100%;
  width: 20%;
  background: linear-gradient(90deg, var(--blue), #6a5bfa);
  transition: width .45s cubic-bezier(.4, 0, .2, 1);
}

/* ---------- Choice options --------------------------------------------------- */

.options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.options.stacked { grid-template-columns: 1fr; }

.option {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 10px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.option:hover { border-color: #c7d0ff; box-shadow: 0 6px 18px rgba(15,23,42,.06); }
.option:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.option.stacked-row {
  flex-direction: row;
  justify-content: space-between;
  text-align: left;
  padding: 16px 18px;
}

.option[aria-pressed="true"],
.option[aria-checked="true"] {
  border-color: var(--blue);
  background: var(--tint);
}

.option .mark {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: #fff;
  flex: none;
}
.option[aria-pressed="true"] .mark,
.option[aria-checked="true"] .mark {
  border-color: var(--blue);
  background: var(--blue);
  box-shadow: inset 0 0 0 3px #fff;
}

.icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex: none;
}
.icon-badge svg { width: 22px; height: 22px; }
.icon-badge.blue   { background: var(--blue); }
.icon-badge.red    { background: var(--red); }
.icon-badge.green  { background: var(--green); }
.icon-badge.violet { background: var(--violet); }
.icon-badge.slate  { background: var(--slate); }

/* ---------- Form fields ----------------------------------------------------- */

.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }

.field label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.field input {
  height: 48px;
  padding: 0 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 15px;
  color: var(--ink);
  background: #fff;
}
.field input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59,91,253,.15);
}
.field input:invalid.touched { border-color: var(--error); }
.field .err {
  display: none;
  font-size: 12px;
  color: var(--error);
}
.field.error .err { display: block; }
.field.error input { border-color: var(--error); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- Buttons ---------------------------------------------------------- */

.btn {
  display: block;
  width: 100%;
  height: 52px;
  margin-top: 22px;
  border: 0;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-family: var(--font);
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  transition: transform .12s ease, opacity .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-link {
  display: block;
  margin: 14px auto 0;
  background: none;
  border: 0;
  color: var(--muted);
  font-family: var(--font);
  font-weight: 600;
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
}

/* ---------- Consent ------------------------------------------------------------ */

.consent-text {
  margin: 14px 2px 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  text-align: center;
}
.consent-text a { color: var(--blue); }

/* ---------- Confirmation -------------------------------------------------------- */

.confirm {
  text-align: center;
  padding: 8px 0 4px;
}
.confirm .check {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--tint);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
}
.confirm .check svg { width: 32px; height: 32px; }
.confirm h2 { margin-bottom: 10px; }
.confirm p { color: var(--muted); font-size: 15px; margin: 0 0 6px; }

/* ---------- Footer / legal ------------------------------------------------------- */

.site-footer {
  max-width: var(--page-max);
  margin: 40px auto 0;
  padding: 24px 20px 0;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  text-align: center;
}
.site-footer a { color: var(--muted); text-decoration: underline; }
.site-footer .links { margin-bottom: 10px; }
.site-footer .links a { margin: 0 8px; }
.site-footer .disclosure { max-width: 640px; margin: 0 auto 10px; }

/* ---------- Legal pages ------------------------------------------------------------ */

.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px 100px;
}
.legal h1 { font-size: 30px; text-align: left; }
.legal .updated { color: var(--muted); font-size: 14px; }
.legal h2 { font-size: 19px; margin-top: 32px; color: var(--navy); }
.legal h3 { font-size: 16px; margin-top: 20px; }
.legal p, .legal li { color: #333; font-size: 15px; line-height: 1.65; }
.legal a { color: var(--blue); }
.legal .table-scroll { overflow-x: auto; margin: 16px 0; }
.legal table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 480px; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border: 1px solid var(--line-soft); vertical-align: top; }
.legal th { background: var(--line-soft); font-weight: 700; }

.partner-intro {
  background: var(--tint);
  border: 1px solid #c7d0ff;
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  margin: 20px 0 24px;
}

.partner-list { display: flex; flex-direction: column; gap: 12px; }
.partner-card {
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  font-weight: 700;
  font-size: 16px;
  color: var(--navy);
  background: #fff;
}
.legal-footer {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
}
.legal-footer a { color: var(--muted); }

@media (max-width: 560px) {
  h1 { font-size: 30px; }
  .options { grid-template-columns: repeat(2, 1fr); }
  .fields { grid-template-columns: 1fr; }
  .card { padding: 24px 18px; }
}
