/* Debt Resolution Network — core styles (mobile-first) */
:root {
  --navy: #0e2340;
  --navy-2: #1a3558;
  --green: #0b7a4b;
  --green-hover: #096a41;
  --green-soft: #eaf5ef;
  --green-line: #b9dcc8;
  --ink: #16202e;
  --ink-2: #3c4757;
  --ink-3: #667085;
  --line: #e4e7ec;
  --line-2: #d0d5dd;
  --bg-alt: #f6f7f9;
  --danger: #c62828;
  --display: "Poppins", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.55; color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--green); text-underline-offset: 2px; }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.2; }
h1, h2 { font-family: var(--display); font-weight: 700; letter-spacing: -.02em; color: var(--navy); }
h3 { font-size: 17px; font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid #7cc4a0; outline-offset: 2px; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--navy); text-decoration: none; white-space: nowrap; }
.logo { display: block; height: 34px; width: auto; }
@media (min-width: 960px) { .logo { height: 40px; } }
.header-badge { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 13px; font-weight: 600; color: var(--navy); border: 1.5px solid var(--navy); border-radius: 99px; padding: 6px 13px; }
.header-badge svg { width: 14px; height: 14px; color: var(--green); }

/* Hero = the form */
.hero { background: linear-gradient(180deg, #fff 0%, #f4f5f7 100%); padding: 20px 0 32px; border-bottom: 1px solid var(--line); }
.funnel { max-width: 1000px; }
.form-card { scroll-margin-top: 8px; }

.progress-wrap { max-width: 520px; margin: 0 auto 18px; text-align: left; }
.progress-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 12.5px; font-weight: 600; color: var(--ink-3); margin-bottom: 6px; }
.progress-head .pct { color: var(--green); font-variant-numeric: tabular-nums; }
.progress { position: relative; height: 8px; border-radius: 99px; background: #e4e7ec; }
.progress-fill { position: absolute; inset: 0 auto 0 0; width: 10%; border-radius: inherit; overflow: hidden; background: var(--green); transition: width .7s cubic-bezier(.22,1,.36,1); }
.progress-fill::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 25%, rgba(255,255,255,.45) 50%, transparent 75%); transform: translateX(-100%); animation: shimmer 2.4s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.progress-knob { position: absolute; top: 50%; left: 10%; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; background: #fff; border: 2px solid var(--green); display: grid; place-items: center; transition: left .7s cubic-bezier(.22,1,.36,1); box-shadow: 0 1px 3px rgba(16,24,40,.2); }
.progress-knob svg { width: 11px; height: 11px; color: var(--green); }
.milestones { display: flex; justify-content: space-between; margin: 7px 0 0; }
.milestones span { font-size: 11px; font-weight: 600; color: #98a2b3; transition: color .3s; }
.milestones span.done { color: var(--green); }
.motivator { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 8px 0 0; min-height: 20px; font-size: 13.5px; color: var(--ink-2); text-align: center; }
.motivator svg { width: 15px; height: 15px; color: var(--green); flex: none; }
.motivator.pop { animation: pop .4s ease; }
@keyframes pop { from { transform: translateY(3px); opacity: 0; } to { transform: none; opacity: 1; } }

.steps { position: relative; }
.step { border: 0; padding: 0; margin: 0; min-width: 0; display: none; text-align: center; }
.step.active { display: block; animation: slideIn .35s cubic-bezier(.22,1,.36,1); }
.step.back-anim { animation: slideBack .35s cubic-bezier(.22,1,.36,1); }
@keyframes slideIn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@keyframes slideBack { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }
.step legend { width: 100%; padding: 0; }
.step .q, .step .q h1 { font-family: var(--display); font-size: clamp(25px, 6.6vw, 46px); font-weight: 700; line-height: 1.15; letter-spacing: -.025em; color: var(--navy); margin: 0 0 8px; }
.step .hint { font-size: 15px; color: var(--ink-3); margin: 0 auto 18px; max-width: 34em; }

.benefits { display: inline-grid; gap: 6px; list-style: none; padding: 0; margin: 4px auto 16px; text-align: left; }
.benefits li { display: flex; align-items: center; gap: 8px; font-size: 15.5px; color: var(--ink); }
.benefits svg { width: 18px; height: 18px; flex: none; color: var(--green); }
.fineprint { font-size: 11.5px; font-style: italic; color: var(--ink-3); margin: 12px auto 0; max-width: 42em; }

.options { display: grid; gap: 10px; }
.options.cards { max-width: 720px; margin: 0 auto; }
.debt-grid { grid-template-columns: 1fr 1fr; }
.opt {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 62px; padding: 12px 14px; text-align: center;
  font-family: var(--display); font-size: 17px; font-weight: 600; letter-spacing: -.01em; color: var(--navy); background: #fff;
  border: 2px solid var(--navy); border-radius: 12px; cursor: pointer;
  transition: background .12s, color .12s, border-color .12s, transform .08s; -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) { .opt:hover { background: #eef0f3; } }
.opt:active { transform: scale(.98); }
.opt.selected { background: var(--green); border-color: var(--green); color: #fff; }

.step .field, .step .row2, .step .zip-row, .step .city-edit, .step .consent, .step > .btn, .step .error-msg, .step .hp { max-width: 520px; margin-left: auto; margin-right: auto; text-align: left; }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 4px; }
.input, select.input {
  width: 100%; height: 54px; padding: 0 14px; font: inherit; font-size: 17px; color: var(--ink); background: #fff;
  border: 2px solid #98a2b3; border-radius: 12px; transition: border-color .12s, box-shadow .12s; appearance: none; -webkit-appearance: none;
}
select.input { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23667085'%3E%3Cpath d='M5.3 7.3 10 12l4.7-4.7 1.4 1.4L10 14.8 3.9 8.7z'/%3E%3C/svg%3E") right 12px center/18px no-repeat; padding-right: 36px; }
.input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(14,35,64,.12); }
.input.invalid { border-color: var(--danger); }
.input.valid { border-color: var(--green); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.zip-row { display: grid; grid-template-columns: 130px 1fr; gap: 12px; align-items: end; }
.zip-place { margin: 0 0 27px; font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.zip-place .ok-mark { color: var(--green); }
.link-btn { background: none; border: 0; padding: 0; margin-left: 4px; font: inherit; font-size: 13.5px; font-weight: 400; color: var(--green); text-decoration: underline; cursor: pointer; }
.error-msg { display: none; color: var(--danger); font-size: 13.5px; margin: 5px 0 0; }
.error-msg.show { display: block; }
.secure-note { display: flex; justify-content: center; align-items: flex-start; gap: 6px; font-size: 12.5px; color: var(--ink-3); margin: 16px auto 0; text-align: center; }
.secure-note svg { width: 13px; height: 13px; flex: none; margin-top: 3px; }
.secure-note a { color: var(--ink-3); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 56px; padding: 12px 22px;
  font-family: var(--display); font-size: 17px; font-weight: 600; color: #fff; text-decoration: none; background: var(--green);
  border: 0; border-radius: 12px; cursor: pointer; transition: background .12s; -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--green-hover); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; }
.btn[disabled] { opacity: .7; cursor: progress; }
.btn-back { display: flex; align-items: center; gap: 3px; margin: 12px auto 0; padding: 6px 0; background: none; border: 0; font: inherit; font-size: 14px; color: var(--ink-3); cursor: pointer; }
.btn-back svg { width: 15px; height: 15px; }
.btn-back[hidden] { display: none; }

.consent { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; margin-top: 4px; margin-bottom: 14px; font-size: 11.5px; line-height: 1.5; color: var(--ink-3); }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--green); cursor: pointer; }
.consent a { color: var(--ink-2); }
.consent.invalid { background: #fdf2f2; border-radius: 6px; outline: 1.5px solid #f3c4c4; outline-offset: 5px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Submit overlay */
.overlay { position: fixed; inset: 0; z-index: 50; display: none; place-items: center; padding: 16px; background: rgba(14,35,64,.55); }
.overlay.show { display: grid; animation: pop .25s ease; }
.overlay-card { width: 100%; max-width: 380px; background: #fff; border-radius: 14px; padding: 26px 22px; text-align: left; box-shadow: 0 20px 50px rgba(16,24,40,.25); }
.overlay-card h2 { font-size: 21px; margin-bottom: 16px; }
.spinner { width: 34px; height: 34px; margin-bottom: 14px; border-radius: 50%; border: 3px solid #dbe9e1; border-top-color: var(--green); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checklist li { display: flex; align-items: center; gap: 10px; color: #98a2b3; font-size: 15px; transition: color .3s; }
.checklist .ck { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-2); flex: none; display: grid; place-items: center; transition: all .3s; }
.checklist .ck svg { width: 12px; height: 12px; color: #fff; opacity: 0; }
.checklist li.done { color: var(--ink); }
.checklist li.done .ck { background: var(--green); border-color: var(--green); }
.checklist li.done .ck svg { opacity: 1; }

/* Facts row */
.facts { background: var(--bg-alt); border-bottom: 1px solid var(--line); padding: 14px 0; }
.facts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; font-size: 13.5px; color: var(--ink-2); }
.facts li { display: flex; align-items: center; gap: 7px; }
.facts svg { width: 15px; height: 15px; color: var(--green); flex: none; }

/* Content sections */
.section { padding: 48px 0; }
.section.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section h2 { font-size: clamp(24px, 5.5vw, 32px); }
.section .intro { color: var(--ink-2); max-width: 40em; margin-bottom: 26px; }

.how { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: s; }
.how li { counter-increment: s; position: relative; padding: 18px 0 18px 44px; border-top: 1px solid var(--line); }
.how li:last-child { border-bottom: 1px solid var(--line); }
.how li::before { content: counter(s); position: absolute; left: 0; top: 17px; font-family: var(--display); font-size: 26px; font-weight: 600; line-height: 1; color: var(--green); }
.how h3 { margin-bottom: 3px; }
.how p { margin: 0; color: var(--ink-3); font-size: 15px; }

.compare-table { width: 100%; border-collapse: collapse; background: #fff; font-size: 15px; border: 1px solid var(--line); }
.compare-table th, .compare-table td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare-table thead th { font-size: 13px; font-weight: 700; color: var(--ink-3); background: #fbfbfc; }
.compare-table thead th.prog { color: var(--green); }
.compare-table tbody th { font-weight: 600; color: var(--ink); width: 30%; }
.compare-table td { color: var(--ink-2); }
.compare-table td.prog { background: #f7fbf9; color: var(--ink); }
.small-note { font-size: 13px; color: var(--ink-3); margin-top: 12px; }

.fit-list { list-style: none; padding: 0; margin: 0 0 24px; }
.fit-list li { display: flex; gap: 10px; padding: 9px 0; color: var(--ink-2); }
.fit-list svg { width: 18px; height: 18px; flex: none; color: var(--green); margin-top: 3px; }
.cta-inline { display: flex; flex-direction: column; gap: 12px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.cta-inline p { margin: 0; font-weight: 600; }

.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 32px 16px 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { color: var(--ink-2); font-size: 15px; padding-right: 20px; }

/* Sticky mobile CTA */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .25s ease; }
.sticky-cta.show { transform: none; }
.sticky-cta .btn { min-height: 48px; font-size: 16px; }

/* Footer */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--line); color: var(--ink-3); padding: 36px 0 90px; font-size: 13px; }
.site-footer .brand { color: var(--ink); margin-bottom: 12px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 14px 0; padding: 0; list-style: none; }
.footer-links a { color: var(--ink-2); text-decoration: none; font-weight: 600; }
.footer-links a:hover { text-decoration: underline; }
.site-footer .fine { font-size: 12px; line-height: 1.6; }
.site-footer address { font-style: normal; }
.site-footer a { color: var(--ink-2); }

/* Legal / simple pages */
.page-hero { background: var(--bg-alt); border-bottom: 1px solid var(--line); padding: 30px 0 26px; }
.page-hero h1 { font-size: clamp(26px, 6vw, 38px); margin: 0; }
.page-hero p { color: var(--ink-3); margin: 6px 0 0; }
.legal { padding: 32px 0 56px; }
.legal .container { max-width: 800px; }
.legal h2 { font-size: 22px; margin-top: 32px; }
.legal h3 { margin-top: 20px; }
.legal p, .legal li { color: var(--ink-2); font-size: 15.5px; }
.legal ul { padding-left: 20px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 12px 0 20px; }
.legal th, .legal td { border: 1px solid var(--line); padding: 9px 10px; text-align: left; vertical-align: top; }
.legal th { background: var(--bg-alt); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.callout { background: var(--green-soft); border-left: 3px solid var(--green); padding: 14px 16px; margin: 18px 0; }
.callout p:last-child { margin: 0; }

/* Thank-you */
.ty-hero { background: #fff; padding: 32px 0 8px; }
.ty-check { width: 52px; height: 52px; margin-bottom: 16px; border-radius: 50%; display: grid; place-items: center; background: var(--green); animation: popIn .5s cubic-bezier(.34,1.56,.64,1); }
.ty-check svg { width: 28px; height: 28px; color: #fff; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .45s .3s ease forwards; }
@keyframes popIn { from { transform: scale(.5); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.ty-hero h1 { font-size: clamp(28px, 7vw, 40px); }
.ty-hero .lede { font-size: 17px; color: var(--ink-2); max-width: 36em; }
.ty-block { padding: 24px 0; border-top: 1px solid var(--line); }
.ty-block h2 { font-size: 22px; margin-bottom: 14px; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 20px 42px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 13px; top: 30px; bottom: 2px; width: 1.5px; background: var(--line-2); }
.timeline li:last-child::before { display: none; }
.timeline .num { position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 700; border: 1.5px solid var(--line-2); color: var(--ink-3); background: #fff; }
.timeline .num svg { width: 14px; height: 14px; }
.timeline li.now .num { background: var(--green); border-color: var(--green); color: #fff; }
.timeline h3 { margin: 3px 0 2px; }
.timeline p { margin: 0; color: var(--ink-3); font-size: 15px; }
.tips { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.tips li { display: flex; gap: 10px; color: var(--ink-2); font-size: 15px; }
.tips svg { width: 18px; height: 18px; flex: none; color: var(--green); margin-top: 3px; }
.quote-card { font-family: var(--display); font-weight: 500; font-size: 19px; line-height: 1.45; color: var(--navy); padding: 4px 0 4px 16px; border-left: 3px solid var(--green); margin: 8px 0 0; }

.privacy-form textarea.input { height: 110px; padding: 12px 13px; resize: vertical; }
.form-status { display: none; margin-top: 12px; padding: 12px 14px; border-radius: 8px; }
.form-status.ok { display: block; background: var(--green-soft); color: #0a5a38; }
.form-status.err { display: block; background: #fdf2f2; color: #8f1d1d; }

@media (max-width: 639px) {
  .compare-table { font-size: 14px; }
  .compare-table th, .compare-table td { padding: 10px 9px; }
  .compare-table tbody th { width: 26%; }
}
@media (max-width: 420px) {
  .header-badge { display: none; }
}
@media (min-width: 640px) {
  .opt { font-size: 18px; }
}
@media (max-width: 370px) {
  .options.two .opt { font-size: 15px; }
}
@media (min-width: 640px) {
  .facts ul { grid-template-columns: repeat(4, auto); justify-content: space-between; }
  .how { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .how li, .how li:last-child { border-bottom: 0; }
  .cta-inline { flex-direction: row; align-items: center; justify-content: space-between; }
  .cta-inline .btn { width: auto; }
}
@media (min-width: 960px) {
  .hero { padding: 40px 0 56px; }
  .debt-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .debt-grid .opt { min-height: 96px; font-size: 21px; }
  .options.cards { grid-template-columns: 1fr 1fr; gap: 14px; }
  .options.cards .opt { min-height: 76px; }
  .section { padding: 72px 0; }
  .sticky-cta { display: none; }
  .site-footer { padding-bottom: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
