/* Debt Resolver: bright, clean and optimistic. */
:root {
  --bg: #ffffff;
  --soft: #f5faf8;
  --ink: #10233a;
  --muted: #566a7f;
  --line: #e3ebe8;
  --green: #00875f;
  --green-dark: #006b4c;
  --green-bright: #19c98f;
  --green-soft: #dff7ee;
  --sun: #ffc93c;
  --sun-soft: #fff5d6;
  --coral: #c93c19;
  --coral-soft: #ffece5;
  --sky: #1d63c9;
  --sky-soft: #e6f1ff;
  --radius: 20px;
  --shell: 1160px;
  --shadow: 0 1px 2px rgba(16, 35, 58, .05), 0 12px 32px -12px rgba(16, 35, 58, .14);
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 100px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.7 var(--font); }
img, svg { max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { font-weight: 800; line-height: 1.14; letter-spacing: -0.025em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.25rem); }
h2 { font-size: clamp(1.8rem, 3.3vw, 2.7rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin-bottom: .4em; }
a { color: var(--green-dark); text-underline-offset: .18em; }
a:hover { color: var(--green); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 6px; }
.shell { width: min(var(--shell), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 16px; color: #fff; }
.eyebrow { font-size: .85rem; font-weight: 700; color: var(--green-dark); margin-bottom: .7em; }
.lead { font-size: clamp(1.13rem, 1.7vw, 1.3rem); line-height: 1.55; color: var(--muted); max-width: 42em; }
.small { font-size: .92rem; color: var(--muted); }
section.band { padding: clamp(60px, 8vw, 110px) 0; }
.band.alt { background: var(--soft); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lead { margin-inline: auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 12px 26px; border-radius: 999px; border: 2px solid var(--green); background: var(--green); color: #fff; font: 700 1rem/1.2 var(--font); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform .15s, box-shadow .15s; }
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 20px -10px rgba(0, 107, 76, .6); }
.btn.ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn.ghost:hover { background: var(--soft); border-color: var(--green); color: var(--ink); box-shadow: none; }
.btn.light { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.light:hover { background: #1c3a5c; border-color: #1c3a5c; color: #fff; }
.btn[disabled] { opacity: .6; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* Header */
.utility { background: var(--sun-soft); font-size: .9rem; }
.utility .shell { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 42px; }
.utility a { color: var(--ink); }
.alert-link { font-weight: 600; text-decoration: none; }
.alert-link:hover { text-decoration: underline; color: var(--ink); }
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .95); border-bottom: 1px solid var(--line); }
.site-header .shell { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font: 800 1.38rem/1 var(--font); letter-spacing: -.03em; }
.brand:hover { color: var(--ink); }
.brand svg { width: 40px; height: 40px; flex: none; }
.brand b { color: var(--green); font-weight: 800; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { padding: 9px 13px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .96rem; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--green-soft); color: var(--green-dark); }
.nav a.btn { margin-left: 12px; padding: 10px 22px; color: #fff; border-radius: 999px; min-height: 44px; }
.nav a.btn:hover { background: var(--green-dark); color: #fff; }
.menu-toggle { display: none; min-height: 44px; padding: 8px 18px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font: 700 .95rem var(--font); cursor: pointer; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(44px, 6vw, 84px) 0 clamp(60px, 7vw, 100px); background: radial-gradient(760px 480px at 88% -8%, #ffe9a8 0, rgba(255, 233, 168, 0) 70%), radial-gradient(720px 520px at 6% 108%, #cdf3e4 0, rgba(205, 243, 228, 0) 70%), #fff; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 span { color: var(--green); }
.hero .eyebrow { display: inline-block; background: var(--green-soft); padding: 6px 14px; border-radius: 999px; }
.reassure { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 26px 0 0; font-weight: 600; font-size: .95rem; }
.reassure li { margin: 0; padding: 6px 14px; background: #fff; border: 1px solid var(--line); border-radius: 999px; }

/* Finder */
.finder { background: #fff; border-radius: 26px; padding: clamp(22px, 3vw, 34px); min-height: 480px; display: flex; flex-direction: column; box-shadow: 0 2px 4px rgba(16, 35, 58, .04), 0 32px 64px -24px rgba(16, 35, 58, .24); }
.finder-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; font-size: .88rem; color: var(--muted); }
.finder-title { font-weight: 700; color: var(--green-dark); }
.progress { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; margin-bottom: 24px; }
.progress span { height: 6px; border-radius: 3px; background: var(--line); }
.progress span.on { background: var(--green-bright); }
.finder h2 { font-size: clamp(1.4rem, 2.3vw, 1.75rem); outline: none; }
.choices { display: grid; gap: 10px; margin: 8px 0 0; padding: 0; list-style: none; }
.choices li { margin: 0; }
.choice { width: 100%; min-height: 54px; padding: 12px 18px; text-align: left; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font: 600 1rem/1.3 var(--font); cursor: pointer; transition: background .15s, border-color .15s, transform .15s; }
.choice:hover { background: var(--green-soft); border-color: var(--green-bright); transform: translateX(3px); }
.finder-foot { margin: 0; margin-top: auto; padding-top: 18px; font-size: .86rem; color: var(--muted); }
.linkish { background: none; border: 0; padding: 0; color: var(--green-dark); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
.result-urgent { background: var(--sun-soft); border-radius: 14px; padding: 14px 16px; margin-bottom: 14px; font-size: .97rem; }
.result-urgent a { font-weight: 700; }
.result-urgent strong { display: block; margin-bottom: 2px; }
.result-list { list-style: none; padding: 0; margin: 0 0 8px; }
.result-list li { padding: 11px 0; border-bottom: 1px solid var(--line); margin: 0; }
.result-list li:last-child { border-bottom: 0; }
.result-list a { font-weight: 700; }
.result-list span { display: block; font-size: .93rem; color: var(--muted); }

/* Tiles */
.ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 18px; background: var(--green-soft); color: var(--green-dark); flex: none; }
.ico.sun { background: var(--sun-soft); color: #9a6a00; }
.ico.sky { background: var(--sky-soft); color: var(--sky); }
.ico.coral { background: var(--coral-soft); color: var(--coral); }
.ico svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 60px); align-items: start; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
a.tile { color: var(--ink); text-decoration: none; }
a.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink); }
.tile p:last-child { margin-bottom: 0; }
.tile p { color: var(--muted); }
.tile .more { margin-top: auto; font-weight: 700; color: var(--green-dark); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; list-style: none; padding: 0; margin: 0; }
.chips li { margin: 0; }
.chips a { display: block; padding: 10px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 600; text-decoration: none; }
.chips a:hover { border-color: var(--green-bright); background: var(--green-soft); color: var(--ink); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps > li { counter-increment: s; position: relative; padding: 0 0 26px 60px; margin: 0; }
.steps > li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: var(--green-soft); color: var(--green-dark); font: 800 1.05rem var(--font); }
.steps > li h3 { margin-bottom: .25em; padding-top: 8px; font-size: 1.15rem; }
.steps > li p { color: var(--muted); margin-bottom: 0; }
.steps.across { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.steps.across > li { padding: 0; }
.steps.across > li::before { position: static; margin-bottom: 16px; }
.steps.across > li h3 { padding-top: 0; }

/* Callout and CTA */
.callout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 60px); align-items: center; background: var(--sky-soft); border-radius: 28px; padding: clamp(28px, 5vw, 60px); }
.callout .lead { color: #3d5570; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding-left: 32px; margin-bottom: 12px; font-weight: 600; }
.check-list li::before { content: ""; position: absolute; left: 3px; top: 7px; width: 15px; height: 7px; border-left: 3px solid var(--green); border-bottom: 3px solid var(--green); transform: rotate(-45deg); }
.cta { background: linear-gradient(115deg, #ffd65c 0%, #ffe89f 45%, #b9f0da 100%); }
.cta .shell { text-align: center; max-width: 760px; }
.cta .lead { color: #38506a; margin-inline: auto; }
.cta .actions { justify-content: center; }

/* Page intro */
.page-intro { padding: clamp(48px, 6vw, 88px) 0 clamp(36px, 4vw, 60px); background: radial-gradient(640px 360px at 92% -20%, #ffe9a8 0, rgba(255, 233, 168, 0) 70%), var(--soft); }
.page-intro.warm { background: radial-gradient(640px 380px at 92% -20%, #ffd9b8 0, rgba(255, 217, 184, 0) 72%), var(--sun-soft); }
.jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.jump a { background: #fff; color: var(--ink); padding: 11px 20px; border-radius: 999px; font-weight: 700; text-decoration: none; box-shadow: 0 1px 2px rgba(16, 35, 58, .08); }
.jump a:hover { background: var(--green); color: #fff; }
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.5em; font-size: clamp(1.45rem, 2.5vw, 1.9rem); }
.prose h2:first-child { margin-top: 0; }

/* Priority split and tags */
.split-col { padding: 30px; border-radius: var(--radius); background: var(--coral-soft); }
.split-col.calm { background: var(--green-soft); }
.split-col ul { margin-bottom: 0; }
.tag { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.tag.priority { background: var(--coral-soft); color: var(--coral); }
.tag.non { background: var(--green-soft); color: var(--green-dark); }
.tag.depends { background: var(--sun-soft); color: #7a5400; }

/* Options guide */
.options-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.toc { position: sticky; top: 100px; max-height: calc(100vh - 124px); overflow-y: auto; }
.toc p { font-weight: 800; margin-bottom: .2em; font-size: .86rem; color: var(--muted); padding: 0 12px; margin-top: 14px; }
.toc p:first-child { margin-top: 0; }
.toc ul { list-style: none; padding: 0; margin: 0; }
.toc li { margin: 0; }
.toc a { display: block; padding: 6px 12px; border-radius: 9px; color: var(--ink); text-decoration: none; font-size: .94rem; font-weight: 500; line-height: 1.35; }
.toc a:hover { background: var(--soft); color: var(--ink); }
.toc a.on { background: var(--green-soft); color: var(--green-dark); font-weight: 700; }
.group-head { margin: 64px 0 24px; }
.group-head:first-child { margin-top: 0; }
.group-head h2 { margin-bottom: .25em; }
.opt { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: clamp(24px, 3.4vw, 40px); margin-bottom: 22px; }
.opt-head { display: flex; gap: 18px; align-items: flex-start; }
.opt-head .ico { margin-bottom: 0; }
.opt-head h3 { font-size: clamp(1.4rem, 2.3vw, 1.7rem); margin-bottom: .2em; }
.opt-head p { color: var(--muted); margin: 0; font-size: 1.07rem; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 24px 0; padding: 16px 0; border-block: 1px solid var(--line); }
.facts div { padding: 0 18px; border-left: 1px solid var(--line); }
.facts div:first-child { padding-left: 0; border-left: 0; }
.facts dt { font-size: .82rem; color: var(--muted); font-weight: 600; }
.facts dd { margin: 0; font-weight: 700; line-height: 1.35; }
.opt h4 { font-size: 1rem; margin: 22px 0 8px; letter-spacing: -0.01em; }
.opt-steps { padding-left: 1.3em; }
.opt-steps li::marker { font-weight: 800; color: var(--green-dark); }
.pros-cons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px clamp(20px, 3vw, 36px); }
.pros-cons ul { list-style: none; padding: 0; margin: 0; }
.pros-cons li { position: relative; padding-left: 26px; margin-bottom: 9px; line-height: 1.5; font-size: 1rem; }
.pros-cons .good li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 13px; height: 6px; border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green); transform: rotate(-45deg); }
.pros-cons .know li::before { content: ""; position: absolute; left: 4px; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--sun); }
.suits { margin: 20px 0 0; padding: 14px 18px; background: var(--soft); border-radius: 14px; }

/* Table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .98rem; }
th, td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--soft); font-weight: 700; font-size: .9rem; color: var(--muted); }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody th { font-weight: 700; }

/* Debt types */
.debt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.debt { padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.debt-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.debt h3 { margin-bottom: .35em; font-size: 1.12rem; }
.debt p { margin-bottom: 0; color: var(--muted); font-size: 1rem; }

/* Can and can't */
.can-cant { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.can-cant ul { padding-left: 1.1em; margin-bottom: 0; }

/* Helplines */
.helpline { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 4px 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.helpline a.tel { font-weight: 800; white-space: nowrap; }

/* FAQ */
details.faq { border-bottom: 1px solid var(--line); }
details.faq summary { cursor: pointer; padding: 18px 0; font: 700 1.08rem/1.35 var(--font); }
details.faq[open] summary { color: var(--green-dark); }
details.faq div { padding: 0 0 10px; max-width: 720px; color: var(--muted); }

/* Form */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.form { background: #fff; border-radius: 24px; padding: clamp(22px, 3vw, 40px); box-shadow: 0 2px 4px rgba(16, 35, 58, .04), 0 28px 56px -28px rgba(16, 35, 58, .22); border: 1px solid var(--line); }
.field { margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
label { display: block; font-weight: 700; margin-bottom: 6px; font-size: .98rem; }
.hint { display: block; font-weight: 400; font-size: .9rem; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], select, textarea { width: 100%; min-height: 50px; padding: 11px 15px; border: 1.5px solid #c3cfcb; border-radius: 12px; background: #fff; color: var(--ink); font: 400 1.03rem/1.4 var(--font); }
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--green-soft); outline-offset: 0; border-color: var(--green); }
label.check { display: grid; grid-template-columns: 24px 1fr; gap: 10px; font-weight: 400; margin-bottom: 0; line-height: 1.5; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--green); }
.consents { display: grid; gap: 14px; padding: 18px 0 4px; border-top: 1px solid var(--line); }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.err { color: var(--coral); font-size: .93rem; font-weight: 600; margin-top: 5px; }
.err:empty { display: none; }
[aria-invalid="true"] { border-color: var(--coral) !important; }
.form-status { padding: 14px 16px; border-radius: 12px; background: var(--coral-soft); margin-bottom: 18px; }
.form-status:empty { display: none; }
.side-note { padding: 22px 0; }
.side-note + .side-note { border-top: 1px solid var(--line); }
.side-note h3 { margin-bottom: .3em; }

/* Footer */
.free-advice { background: var(--green-soft); }
.free-advice .shell { padding: 18px 0; font-weight: 500; text-align: center; }
.free-advice a { font-weight: 700; }
.site-footer { background: var(--soft); color: var(--muted); padding: 56px 0 36px; font-size: .95rem; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--ink); }
.site-footer strong { color: var(--ink); }
.foot-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 36px; margin-bottom: 32px; }
.foot-grid h2 { font: 800 .92rem var(--font); letter-spacing: 0; color: var(--ink); }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-legal { border-top: 1px solid var(--line); padding-top: 22px; font-size: .86rem; line-height: 1.6; }
.foot-legal p:last-child { margin-bottom: 0; }

/* Reveal only when JS is running, so content is never hidden without it. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s, transform .6s; }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 1040px) {
  .menu-toggle { display: inline-flex; align-items: center; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 16px 18px; background: #fff; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 13px 12px; }
  .nav a.btn { margin: 8px 0 0; }
}
@media (max-width: 900px) {
  .hero-grid, .contact-grid, .grid-2, .callout, .options-layout { grid-template-columns: minmax(0, 1fr); }
  .grid-3, .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid > :first-child { grid-column: 1 / -1; }
  .steps.across { grid-template-columns: minmax(0, 1fr); }
  .finder { min-height: 440px; }
  .toc { position: static; max-height: none; overflow: visible; background: var(--soft); border-radius: 18px; padding: 16px; }
  .toc-lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
}
@media (max-width: 640px) {
  .grid-3, .debt-grid, .can-cant, .field-row, .pros-cons { grid-template-columns: minmax(0, 1fr); }
  .utility .shell { font-size: .84rem; }
  .facts { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .facts div { padding: 0; border-left: 0; }
  .opt-head { flex-direction: column; gap: 12px; }
  .toc-lists { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
