:root {
  --ink: #10212d;
  --ink-soft: #38505f;
  --paper: #f4efe6;
  --paper-bright: #fffdf8;
  --blue: #0757bd;
  --blue-deep: #0b4faa;
  --blue-soft: #e4efff;
  --coral: #ad392d;
  --coral-soft: #ffe5df;
  --lime: #b9f75f;
  --lime-deep: #426d0b;
  --line: #b9c3c7;
  --line-dark: #70828b;
  --danger: #a92c20;
  --radius: 8px;
  --shadow: 0 18px 55px rgba(16, 33, 45, .13);
  --mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); line-height: 1.55; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background-image: linear-gradient(rgba(16,33,45,.032) 1px, transparent 1px), linear-gradient(90deg, rgba(16,33,45,.032) 1px, transparent 1px); background-size: 28px 28px; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img, svg { max-width: 100%; }
[hidden] { display: none !important; }

.skip-link { position: fixed; left: 1rem; top: -6rem; z-index: 100; padding: .8rem 1rem; background: var(--lime); color: var(--ink); font-weight: 800; text-decoration: none; }
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }

.site-header { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 1.4rem; min-height: 72px; padding: .75rem clamp(1rem, 3vw, 3rem); border-bottom: 1px solid rgba(16,33,45,.18); background: rgba(244,239,230,.92); backdrop-filter: blur(14px); }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); font-size: 1.08rem; font-weight: 900; letter-spacing: -.04em; text-decoration: none; white-space: nowrap; }
.brand > span > span { color: var(--blue); }
.brand__mark { flex: 0 0 auto; padding: 5px; border-radius: 50%; background: var(--lime); color: var(--ink); }
.main-nav { display: flex; align-items: center; gap: clamp(.55rem, 1.5vw, 1.35rem); margin-left: auto; }
.main-nav a, .main-nav button { padding: .35rem 0; border: 0; background: none; color: var(--ink-soft); font-size: .82rem; font-weight: 750; text-decoration: none; cursor: pointer; }
.main-nav a:hover, .main-nav button:hover { color: var(--blue); }

.lang-switch { position: relative; }
.lang-switch__trigger { display: flex; align-items: center; gap: .35rem; min-width: 56px; padding: .45rem .55rem; border: 1px solid var(--line); border-radius: 99px; background: var(--paper-bright); font-size: .75rem; font-weight: 800; cursor: pointer; list-style: none; }
.lang-switch__trigger::-webkit-details-marker { display: none; }
.lang-switch__menu { position: absolute; right: 0; top: calc(100% + .55rem); display: grid; min-width: 190px; max-height: 55vh; overflow-y: auto; padding: .45rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-bright); box-shadow: var(--shadow); }
.lang-switch:not([open]) .lang-switch__menu { display: none; }
.lang-switch__item { display: flex; align-items: center; gap: .55rem; padding: .55rem; border-radius: 5px; text-decoration: none; }
.lang-switch__item:hover, .lang-switch__item.is-current { background: var(--blue-soft); }

.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr); align-items: center; gap: clamp(2rem, 6vw, 6rem); min-height: calc(100svh - 72px); max-width: 1420px; margin: 0 auto; padding: clamp(3rem, 8vw, 7.5rem) clamp(1rem, 4vw, 4.5rem); }
.eyebrow { margin: 0 0 .75rem; color: var(--blue); font-family: var(--mono); font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.hero h1 { max-width: 760px; margin: 0; font-size: clamp(3.1rem, 7.2vw, 7.3rem); font-weight: 900; letter-spacing: -.075em; line-height: .88; }
.hero__lead { max-width: 700px; margin: 1.7rem 0 1.35rem; color: var(--ink-soft); font-size: clamp(1.05rem, 1.7vw, 1.35rem); }
.hero__badges { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1.5rem; }
.hero__badges span { padding: .42rem .72rem !important; border: 1px solid var(--line) !important; border-radius: 3px !important; background: transparent !important; color: var(--ink-soft) !important; font-family: var(--mono); font-size: .69rem !important; letter-spacing: .02em; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 46px; padding: .72rem 1.05rem; border: 1px solid var(--ink); border-radius: 4px; background: var(--paper-bright); color: var(--ink); font-size: .82rem; font-weight: 850; line-height: 1.15; text-decoration: none; cursor: pointer; }
.button:hover { transform: translateY(-1px); box-shadow: 3px 3px 0 var(--ink); }
.button--primary { background: var(--blue); color: white; border-color: var(--blue-deep); }
.button--ghost { background: transparent; color: inherit; border-color: currentColor; }
.button--compact { min-height: 37px; padding: .5rem .72rem; font-size: .74rem; }
.privacy-note { display: flex; align-items: center; gap: .5rem; margin: 1.1rem 0 0; color: var(--ink-soft); font-size: .73rem; }
.privacy-note span { color: var(--lime-deep); font-size: .55rem; }
.hero-quick { display: grid; grid-template-columns: repeat(3, minmax(105px, 1fr)) auto; align-items: end; gap: .55rem; max-width: 780px; padding: .75rem; border: 1px solid var(--ink); border-radius: var(--radius); background: rgba(255,253,248,.85); box-shadow: 5px 5px 0 var(--lime); }
.hero-quick > strong { grid-column: 1 / -1; font-family: var(--mono); font-size: .67rem; letter-spacing: .06em; text-transform: uppercase; }
.hero-quick label { display: grid; gap: .25rem; min-width: 0; }
.hero-quick label > span:first-child { color: var(--ink-soft); font-size: .61rem; font-weight: 800; }
.hero-quick input { min-width: 0; width: 100%; min-height: 40px; }
.hero-quick .button { min-height: 42px; white-space: nowrap; }

.route-preview { position: relative; min-height: 520px; overflow: hidden; border: 1px solid var(--ink); border-radius: 18px 18px 90px 18px; background: var(--ink); box-shadow: 18px 18px 0 var(--lime); color: white; }
.route-preview::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.16) 1px, transparent 0); background-size: 24px 24px; opacity: .5; }
.route-preview__label { position: absolute; left: 7%; top: 7%; font-family: var(--mono); font-size: .66rem; letter-spacing: .16em; }
.route-preview__tracks { position: absolute; inset: 18% 17% 42% 7%; display: grid; align-content: space-around; }
.route-preview__tracks span { position: relative; display: block; height: 5px; background: var(--coral); }
.route-preview__tracks span:nth-child(1) { width: 82%; }
.route-preview__tracks span:nth-child(2) { width: 64%; }
.route-preview__tracks span:nth-child(3) { width: 73%; }
.route-preview__tracks span::before { content: ""; position: absolute; right: -9px; top: -6px; width: 17px; height: 17px; border: 3px solid var(--coral); border-radius: 50%; background: var(--ink); }
.route-preview__tracks span::after { content: "$"; position: absolute; left: 1rem; top: -2rem; color: rgba(255,255,255,.65); font-family: var(--mono); font-size: .7rem; }
.route-preview__merge { position: absolute; left: 14%; right: 10%; top: 55%; height: 86px; }
.route-preview__merge span { position: absolute; left: 0; right: 42px; top: 41px; height: 6px; background: var(--blue); }
.route-preview__merge span::before, .route-preview__merge span::after { content: ""; position: absolute; right: 45%; width: 55%; height: 40px; border-right: 6px solid var(--blue); }
.route-preview__merge span::before { bottom: 0; border-top: 6px solid var(--blue); border-radius: 0 30px 0 0; transform: translateY(-100%); }
.route-preview__merge span::after { top: 0; border-bottom: 6px solid var(--blue); border-radius: 0 0 30px 0; }
.route-preview__merge strong { position: absolute; right: 0; top: 17px; display: grid; width: 54px; height: 54px; place-items: center; border-radius: 50%; background: var(--lime); color: var(--ink); font-size: 1.5rem; }
.route-preview__label--after { top: auto; bottom: 17%; }
.route-preview__signal { position: absolute; right: 8%; bottom: 7%; display: flex; gap: .45rem; }
.route-preview__signal > * { padding: .35rem .5rem; font-family: var(--mono); font-size: .6rem; font-style: normal; letter-spacing: .08em; }
.route-preview__signal b { background: var(--blue); }.route-preview__signal em { background: var(--coral); }.route-preview__signal i { background: var(--lime); color: var(--ink); }

.calculator-shell { padding: clamp(3rem, 6vw, 6rem) clamp(1rem, 3vw, 3rem); background: var(--ink); color: white; }
.calculator-shell > .section-heading .eyebrow { color: var(--lime); }
.section-heading { max-width: 810px; margin: 0 auto clamp(2rem, 4vw, 3.6rem); text-align: center; }
.section-heading h2 { margin: 0; font-size: clamp(2.1rem, 4.6vw, 4.3rem); letter-spacing: -.055em; line-height: .98; }
.section-heading > p:last-child { margin: 1rem auto 0; color: var(--ink-soft); font-size: 1rem; }
.section-heading--light > p:last-child { color: #bdc9ce; }
.calculator-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(370px, .85fr); gap: 1px; max-width: 1500px; margin: 0 auto; border: 1px solid #50626b; background: #50626b; box-shadow: 0 30px 80px rgba(0,0,0,.32); }
.input-panel, .results-panel { min-width: 0; background: var(--paper-bright); color: var(--ink); }
.input-panel { padding: clamp(1rem, 2.8vw, 2.5rem); }
.results-panel { background: #dce9ff; }
.results-sticky { position: sticky; top: 96px; padding: clamp(1rem, 2.5vw, 2.25rem); }
.results-sticky > h2 { margin: 0; font-size: clamp(1.8rem, 3vw, 3rem); letter-spacing: -.045em; line-height: 1; }
.results-sticky > p:not(.eyebrow):not(.status-message) { color: var(--ink-soft); font-size: .86rem; }

.input-section { padding: 0 0 2rem; border: 0; }
.input-section + .input-section { padding-top: 2rem; border-top: 1px solid var(--line); }
.input-section__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.input-section h3 { margin: 0 0 .25rem; font-size: 1.22rem; letter-spacing: -.025em; }
.input-section p { margin: 0; color: var(--ink-soft); font-size: .78rem; }
.sample-note { display: inline-flex; margin-bottom: 1rem !important; padding: .45rem .65rem; border-left: 3px solid var(--coral); background: var(--coral-soft); color: var(--ink) !important; font-family: var(--mono); }
.debt-list { display: grid; gap: .65rem; }
.debt-row { position: relative; display: grid; grid-template-columns: 1.25fr .9fr repeat(3, minmax(92px, .75fr)); gap: .55rem; min-width: 0; margin: 0; padding: 1.2rem .7rem .8rem; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.debt-row:hover { border-color: var(--blue); }
.debt-row legend { position: absolute; top: -1px; left: -1px; padding: .18rem .45rem; border-radius: 7px 0 5px 0; background: var(--ink); color: white; font-family: var(--mono); font-size: .58rem; font-weight: 800; }
.field { display: grid; align-content: start; gap: .28rem; min-width: 0; }
.field > span:first-child { color: var(--ink-soft); font-size: .66rem; font-weight: 760; line-height: 1.2; }
.field input, .field select, .field textarea { min-width: 0; width: 100%; min-height: 43px; padding: .58rem .62rem; border: 1px solid var(--line); border-radius: 3px; background: var(--paper-bright); color: var(--ink); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--line-dark); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--danger); background: #fff1ef; }
.field small { min-height: .8rem; color: var(--danger); font-size: .58rem; line-height: 1.2; }
.money-input, .suffix-input { display: flex; align-items: center; min-width: 0; border: 1px solid var(--line); border-radius: 3px; background: var(--paper-bright); }
.money-input:focus-within, .suffix-input:focus-within { outline: 3px solid rgba(21,110,232,.25); border-color: var(--blue); }
.money-input b, .suffix-input b { flex: 0 0 auto; padding: 0 .5rem; color: var(--ink-soft); font-family: var(--mono); font-size: .68rem; }
.money-input input, .suffix-input input { border: 0; background: transparent; outline: none; }
.check-field { grid-column: 1 / span 2; display: flex; align-items: center; gap: .45rem; font-size: .68rem; cursor: pointer; }
.check-field input { width: 17px; height: 17px; accent-color: var(--blue); }
.remove-debt { position: absolute; right: .3rem; top: .28rem; width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; color: var(--line-dark); font-size: 1.2rem; cursor: pointer; }
.remove-debt:hover { background: var(--coral-soft); color: var(--danger); }
.offer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.term-slider { display: block; margin-top: .8rem; }
.term-slider input { width: 100%; margin: 0; accent-color: var(--blue); }
.term-slider span { display: flex; justify-content: space-between; color: var(--ink-soft); font-family: var(--mono); font-size: .58rem; }
.input-section--transfer { padding-bottom: 1.5rem; }
.input-section--transfer summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer; list-style: none; }
.input-section--transfer summary::-webkit-details-marker { display: none; }
.input-section--transfer summary span:first-child { display: grid; gap: .2rem; }
.input-section--transfer summary b { font-size: 1.1rem; }.input-section--transfer summary small { color: var(--ink-soft); font-size: .75rem; }
.input-section--transfer summary > span:last-child { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid var(--line); border-radius: 50%; font-size: 1.2rem; }
.input-section--transfer[open] summary { margin-bottom: 1rem; }
.input-section--transfer[open] summary > span:last-child { transform: rotate(45deg); }
.form-actions { display: flex; gap: .7rem; flex-wrap: wrap; }
.form-error { margin-top: 1rem; padding: .75rem; border: 1px solid var(--danger); background: #fff1ef; color: var(--danger); font-size: .78rem; font-weight: 700; }

.route-scoreboard { display: grid; gap: .55rem; margin: 1.5rem 0; }
.route-card { padding: .8rem; border: 1px solid rgba(16,33,45,.35); border-radius: 6px; background: rgba(255,255,255,.7); }
.route-card > div:first-child { display: flex; align-items: center; gap: .55rem; margin-bottom: .6rem; }
.route-card > div:first-child span { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 50%; background: var(--ink); color: white; font-family: var(--mono); font-size: .66rem; }
.route-card h3 { margin: 0; font-size: .94rem; }
.route-card dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .45rem; margin: 0; }
.route-card dl div { min-width: 0; }
.route-card dt { color: var(--ink-soft); font-size: .57rem; line-height: 1.2; }
.route-card dd { overflow-wrap: anywhere; margin: .18rem 0 0; font-family: var(--mono); font-size: .74rem; font-weight: 850; }
.route-card__cashflow { display: block; min-height: .7rem; margin-top: .35rem; color: var(--ink-soft); font-size: .52rem; line-height: 1.2; }
.route-card--loan { border: 2px solid var(--blue); background: white; }
.route-card--loan > div:first-child span { background: var(--blue); }
.route-card--transfer > div:first-child span { background: var(--coral); }
.is-saving { color: #19700d; }.is-costing { color: var(--danger); }
.signal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; }
.signal-card { min-width: 0; padding: .85rem; border: 1px solid var(--blue-deep); border-radius: 6px; background: var(--blue); color: white; }
.signal-card--lime { border-color: var(--lime-deep); background: var(--lime); color: var(--ink); }
.signal-card p { margin: 0 !important; color: inherit !important; font-family: var(--mono); font-size: .62rem !important; font-weight: 800; text-transform: uppercase; }
.signal-card strong { display: block; margin: .25rem 0; font-size: clamp(1.15rem, 2.1vw, 1.8rem); letter-spacing: -.04em; }
.signal-card span { display: block; font-size: .64rem; line-height: 1.4; }
.chart-card { margin-top: .55rem; padding: .8rem; border: 1px solid rgba(16,33,45,.35); border-radius: 6px; background: var(--paper-bright); }
.chart-card__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: .8rem; }
.chart-card h3 { margin: 0; font-size: .82rem; }
.chart-legend { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .55rem; font-size: .55rem; }
.chart-legend span::before { content: ""; display: inline-block; width: 12px; height: 3px; margin-right: .25rem; vertical-align: middle; background: currentColor; }
.legend-current { color: var(--coral); }.legend-loan { color: var(--blue); }.legend-fast { color: var(--lime-deep); }
[data-payoff-chart] { display: block; width: 100%; height: 185px; margin-top: .55rem; overflow: visible; }
[data-payoff-chart] g line { stroke: #d4dbde; stroke-width: 1; vector-effect: non-scaling-stroke; }
[data-payoff-chart] path { fill: none; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
[data-chart-current] { stroke: var(--coral); }[data-chart-loan] { stroke: var(--blue); }[data-chart-fast] { stroke: var(--lime-deep); stroke-dasharray: 7 5; }
.warning-stack { display: grid; gap: .4rem; margin-top: .55rem; }
.warning-stack p { margin: 0 !important; padding: .6rem; border-left: 3px solid var(--coral); background: var(--coral-soft); color: var(--ink) !important; font-size: .68rem !important; }
.assumption-note { margin-top: .55rem; border-top: 1px solid rgba(16,33,45,.3); }
.assumption-note summary { padding: .65rem 0; font-size: .68rem; font-weight: 800; cursor: pointer; }
.assumption-note p { margin-top: 0 !important; font-size: .66rem !important; }
.result-actions { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .7rem; }
.status-message { min-height: 1rem; margin: .45rem 0 0; color: var(--blue-deep); font-size: .68rem; font-weight: 800; }

.compare-section, .method-section, .faq-section, .sources-section { padding: clamp(4rem, 8vw, 8rem) clamp(1rem, 4vw, 4rem); }
.signal-explainer { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; max-width: 1240px; margin: 0 auto; border: 1px solid var(--ink); background: var(--ink); }
.signal-explainer article { min-height: 250px; padding: clamp(1rem, 2.4vw, 2rem); background: var(--paper-bright); }
.signal-explainer span { color: var(--coral); font-family: var(--mono); font-size: .68rem; }
.signal-explainer h3 { margin: 3rem 0 .6rem; font-size: 1.25rem; letter-spacing: -.025em; }
.signal-explainer p { color: var(--ink-soft); font-size: .83rem; }
.method-section { background: var(--blue); color: white; }
.method-section .eyebrow { color: var(--lime); }
.method-section .section-heading > p:last-child { color: #dce9ff; }
.method-steps { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 1240px; margin: 0 auto; border-top: 1px solid rgba(255,255,255,.45); }
.step { position: relative; padding: 2rem 1.5rem; border-right: 1px solid rgba(255,255,255,.35); }
.step:last-child { border-right: 0; }
.step-number { font-family: var(--mono); font-size: .7rem; color: var(--lime); }
.step h3 { margin: 3rem 0 .6rem; font-size: 1.2rem; }
.step p { margin: 0; color: #dce9ff; font-size: .82rem; }
.offer-checklist { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; max-width: 1240px; margin: 5rem auto 0; padding: clamp(1.4rem, 3vw, 2.6rem); border: 1px solid white; background: var(--ink); }
.offer-checklist h2 { margin: 0; font-size: clamp(1.8rem, 3.2vw, 3rem); line-height: 1; }
.offer-checklist > div > p:last-child { color: #bdc9ce; }
.offer-checklist ol { display: grid; gap: .7rem; margin: 0; padding-left: 1.2rem; }
.offer-checklist li { padding: .65rem .8rem; border-bottom: 1px solid rgba(255,255,255,.22); color: #e7eef1; font-size: .85rem; }
.offer-checklist strong { color: var(--lime); }

.faq-tabs { display: flex; flex-wrap: wrap; gap: .4rem; max-width: 1100px; margin: 0 auto 1rem; }
.faq-tab { flex: 1 1 180px; min-height: 48px; padding: .65rem; border: 1px solid var(--ink); border-radius: 3px; background: transparent; color: var(--ink); font-weight: 800; cursor: pointer; }
.faq-tab[aria-selected="true"] { background: var(--ink); color: white; box-shadow: 4px 4px 0 var(--lime); }
.faq-panels { max-width: 1100px; margin: 0 auto; }
.faq-panel { margin-top: 1.2rem; }
.faq-panel > h3 { margin: 0 0 .7rem; color: var(--blue); font-family: var(--mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.faq-item { border-top: 1px solid var(--line-dark); }
.faq-item:last-child { border-bottom: 1px solid var(--line-dark); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem .3rem; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: 0 0 auto; color: var(--blue); font-size: 1.35rem; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item h4 { margin: 0; font-size: 1rem; }
.faq-item p { max-width: 850px; margin: -.35rem 0 1.2rem .3rem; color: var(--ink-soft); font-size: .88rem; }
.sources-section { background: #e6ded1; }
.source-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; max-width: 1180px; margin: 0 auto; }
.source-grid a { display: flex; flex-direction: column; min-height: 280px; padding: 1.5rem; border: 1px solid var(--ink); border-radius: var(--radius); background: var(--paper-bright); text-decoration: none; }
.source-grid a:hover { transform: translateY(-3px); box-shadow: 6px 6px 0 var(--ink); }
.source-grid span { align-self: flex-start; padding: .25rem .4rem; background: var(--lime); font-family: var(--mono); font-size: .65rem; font-weight: 900; }
.source-grid h3 { margin: 2rem 0 .6rem; font-size: 1.25rem; line-height: 1.1; }
.source-grid p { color: var(--ink-soft); font-size: .82rem; }
.source-grid b { margin-top: auto; color: var(--blue); font-size: .72rem; }

.site-footer { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem 2rem; padding: 2rem clamp(1rem, 4vw, 4rem); background: var(--ink); color: white; }
.brand--footer { color: white; }
.brand--footer > span > span { color: var(--lime); }
.site-footer p { margin: 0; color: #bdc9ce; font-size: .72rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1rem; }
.site-footer nav a, .site-footer nav button { border: 0; background: none; color: white; font-size: .72rem; text-decoration: none; cursor: pointer; }
.site-footer small { grid-column: 1 / -1; color: #8799a2; font-size: .62rem; }

.contact-dialog { width: min(620px, calc(100% - 2rem)); max-height: calc(100svh - 2rem); padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--ink); }
.contact-dialog::backdrop { background: rgba(5,16,23,.76); backdrop-filter: blur(5px); }
.contact { position: relative; overflow-y: auto; max-height: calc(100svh - 2rem); padding: clamp(1.2rem, 4vw, 2.4rem); border: 1px solid var(--ink); background: var(--paper-bright); box-shadow: 10px 10px 0 var(--lime); }
.contact h2 { margin: 0; font-size: clamp(1.8rem, 5vw, 3rem); letter-spacing: -.045em; }
.contact > p:not(.eyebrow) { color: var(--ink-soft); }
.contact form { display: grid; gap: .8rem; margin-top: 1.2rem; }
.contact textarea { resize: vertical; }
.contact__close { position: absolute; top: .7rem; right: .7rem; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink); font-size: 1.35rem; cursor: pointer; }
.contact__privacy { margin: 0; color: var(--ink-soft); font-size: .68rem; }
.contact__actions { display: flex; gap: .6rem; }
.field--honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
[data-contact-status] { min-height: 1.2rem; margin: 0; color: var(--blue-deep); font-size: .76rem; font-weight: 750; }

.utility-page { min-height: 100svh; display: flex; flex-direction: column; }
.legal-shell { width: min(850px, calc(100% - 2rem)); flex: 1; margin: 3rem auto 5rem; padding: clamp(1.25rem, 4vw, 3.5rem); border: 1px solid var(--ink); background: var(--paper-bright); box-shadow: 10px 10px 0 var(--lime); }
.legal-shell h1 { margin: 0; font-size: clamp(2.6rem, 8vw, 5.5rem); letter-spacing: -.065em; line-height: .9; }
.legal-shell h2 { margin: 2.2rem 0 .5rem; font-size: 1.35rem; }
.legal-shell p { color: var(--ink-soft); }
.legal-shell a { color: var(--blue-deep); }

@media (max-width: 1150px) {
  .main-nav a:nth-child(2), .main-nav a:nth-child(3), .main-nav a:nth-child(5) { display: none; }
  .calculator-grid { grid-template-columns: minmax(0, 1fr); }
  .results-sticky { position: static; }
  .route-scoreboard { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .route-card dl { grid-template-columns: 1fr 1fr; }
  .signal-explainer { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 850px) {
  .site-header { min-height: 64px; }
  .main-nav { gap: .7rem; }
  .main-nav a { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); min-height: auto; padding-top: 4.5rem; }
  .hero > * { min-width: 0; }
  .hero h1 { font-size: clamp(3.1rem, 15vw, 6rem); }
  .route-preview { min-height: 390px; width: min(100%, 560px); }
  .debt-row { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 1.7rem; }
  .field--name { grid-column: 1 / -1; }
  .check-field { grid-column: 1 / -1; }
  .offer-grid { grid-template-columns: 1fr 1fr; }
  .route-scoreboard { grid-template-columns: 1fr; }
  .route-card dl { grid-template-columns: repeat(4, 1fr); }
  .method-steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(2) { border-right: 0; }
  .offer-checklist { grid-template-columns: 1fr; gap: 1.5rem; }
  .source-grid { grid-template-columns: 1fr; }
  .source-grid a { min-height: 220px; }
  .site-footer { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .site-header { gap: .65rem; padding-inline: .75rem; }
  .brand__mark { width: 32px; height: 32px; }
  .brand { font-size: .95rem; }
  .main-nav button { font-size: .72rem; }
  .lang-switch__flag { display: none; }
  .hero { padding: 2.5rem 1rem 2rem; }
  .hero h1 { font-size: clamp(2.8rem, 15.5vw, 4.4rem); }
  .hero__lead { margin-block: 1rem; font-size: .98rem; }
  .hero__badges { margin-bottom: 1rem; }
  .hero__badges span:nth-child(3) { display: none; }
  .hero-quick { grid-template-columns: 1fr 1fr; padding: .6rem; box-shadow: 4px 4px 0 var(--lime); }
  .hero-quick > strong { grid-column: 1 / -1; }
  .hero-quick label:first-of-type { grid-column: 1 / -1; }
  .hero-quick .button { grid-column: 1 / -1; }
  .privacy-note { margin-top: .7rem; }
  .route-preview { display: none; }
  .calculator-shell { padding: 2.25rem .65rem 3rem; }
  .calculator-shell > .section-heading { margin-bottom: 1.5rem; }
  .calculator-shell > .section-heading h2 { font-size: 2rem; }
  .calculator-shell > .section-heading > p:last-child { margin-top: .65rem; font-size: .82rem; }
  .calculator-grid { box-shadow: none; }
  .input-panel, .results-sticky { padding: 1rem .75rem; }
  .input-section__heading { display: grid; }
  .input-section__heading .button { justify-self: start; }
  .debt-row { gap: .5rem; padding-inline: .55rem; }
  .offer-grid { grid-template-columns: 1fr; }
  .route-card dl { grid-template-columns: 1fr 1fr; }
  .signal-grid { grid-template-columns: 1fr; }
  .chart-card__heading { display: grid; }
  .chart-legend { justify-content: flex-start; }
  .signal-explainer { grid-template-columns: 1fr; }
  .signal-explainer article { min-height: auto; }
  .signal-explainer h3 { margin-top: 1.5rem; }
  .method-steps { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.35); }
  .faq-tab { flex-basis: 100%; }
  .site-footer { padding: 2rem 1rem; }
  .legal-shell { box-shadow: 6px 6px 0 var(--lime); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Imagegen-led redesign: financial route-planning control room. */
.site-header {
  min-height: 58px;
  padding-block: .5rem;
  border-color: rgba(185,247,95,.28);
  background: rgba(7,25,37,.96);
  color: white;
  backdrop-filter: blur(18px);
}
.site-header .brand { color: white; font-family: var(--mono); font-size: .9rem; letter-spacing: .02em; text-transform: uppercase; }
.site-header .brand > span > span { color: var(--lime); }
.site-header .brand__mark { width: 34px; height: 34px; padding: 6px; border-radius: 4px; }
.site-header .main-nav a, .site-header .main-nav button { color: #c2d0d8; font-family: var(--mono); font-size: .67rem; letter-spacing: .08em; text-transform: uppercase; }
.site-header .main-nav a:first-child { color: var(--lime); }
.site-header .main-nav a:hover, .site-header .main-nav button:hover { color: white; }
.site-header .lang-switch__trigger { border-color: #526775; background: #102b3d; color: white; }

.calculator-shell { padding: 0; border-bottom: 1px solid #314858; background: #071925; }
.workspace-heading {
  display: grid;
  grid-template-columns: auto auto minmax(240px, 1fr);
  align-items: center;
  gap: 1rem 1.4rem;
  max-width: none;
  min-height: 64px;
  margin: 0;
  padding: .7rem clamp(1rem, 2.2vw, 2rem);
  border-bottom: 1px solid #314858;
  text-align: left;
}
.calculator-shell > .workspace-heading .eyebrow { margin: 0; color: var(--lime); }
.workspace-heading__title { margin: 0; font-family: var(--mono); font-size: .78rem; font-weight: 800; letter-spacing: .1em; line-height: 1.2; text-transform: uppercase; }
.workspace-heading > p:last-child { justify-self: end; max-width: 660px; margin: 0; color: #aebfc9; font-size: .72rem; text-align: right; }

.calculator-grid {
  grid-template-columns: minmax(490px, 39%) minmax(0, 61%);
  gap: 0;
  max-width: none;
  margin: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.input-rail { min-width: 0; border-right: 1px solid #314858; background: var(--paper); color: var(--ink); }
.workspace-intro { padding: clamp(1.7rem, 3vw, 3.2rem) clamp(1.1rem, 2.5vw, 2.8rem) 1.5rem; border-bottom: 1px solid var(--line); }
.workspace-intro h1 {
  max-width: 690px;
  margin: 0;
  font-family: "Arial Narrow", "Roboto Condensed", var(--sans);
  font-size: clamp(3rem, 4.1vw, 5.2rem);
  font-weight: 950;
  letter-spacing: -.065em;
  line-height: .86;
  text-transform: uppercase;
}
.workspace-intro .hero__lead { max-width: 640px; margin: 1.2rem 0 1rem; font-size: .98rem; }
.workspace-intro .hero__badges { margin-bottom: 1rem; }
.workspace-intro .hero__badges span { border-color: #8e9ca2 !important; background: rgba(255,255,255,.32) !important; font-size: .6rem !important; text-transform: uppercase; }
.workspace-intro .hero-quick { grid-template-columns: repeat(3, minmax(86px, 1fr)); max-width: none; padding: .7rem; border-radius: 0; box-shadow: none; }
.workspace-intro .hero-quick > strong { grid-column: 1 / -1; }
.workspace-intro .hero-quick .button { grid-column: 1 / -1; }
.workspace-intro .privacy-note { font-family: var(--mono); font-size: .62rem; }

.input-panel { padding: 1.5rem clamp(1rem, 2.2vw, 2.25rem) 3rem; background: var(--paper); }
.input-section { padding-bottom: 1.6rem; }
.input-section + .input-section { padding-top: 1.6rem; }
.input-section h2, .input-section h3 { font-family: var(--mono); font-size: .88rem; letter-spacing: .07em; text-transform: uppercase; }
.input-section__heading > div > h2::before, .input-section__heading > div > h3::before { display: inline-grid; width: 22px; height: 22px; margin-right: .55rem; place-items: center; border-radius: 3px; background: var(--ink); color: white; font-size: .65rem; }
.input-section:first-child .input-section__heading > div > h2::before { content: "1"; }
.input-section--offer .input-section__heading > div > h2::before { content: "2"; }
.sample-note { border: 1px solid #d68f83; border-left-width: 4px; background: rgba(255,229,223,.62); }
.debt-list { gap: .35rem; }
.debt-row { gap: .35rem; padding: 1.15rem .45rem .65rem; border-color: #aeb9bd; border-radius: 2px; background: rgba(255,255,255,.42); }
.debt-row:hover { background: rgba(255,255,255,.75); }
.debt-row legend { border-radius: 2px 0 2px 0; }
.field input, .field select, .field textarea, .money-input, .suffix-input { border-color: #aeb9bd; background: rgba(255,255,255,.68); }
.input-panel .button--primary { border-color: #061b42; background: #0a61dc; }

.results-panel { min-width: 0; background: #0b2434; color: #f8fbfc; }
.results-sticky { top: 59px; padding: clamp(1rem, 2vw, 2rem); }
.results-sticky > .eyebrow { margin-bottom: .45rem; color: var(--lime); }
.results-sticky > h2 { max-width: 850px; color: white; font-size: clamp(1.65rem, 2.5vw, 2.8rem); }
.results-panel .results-sticky > p:not(.eyebrow):not(.status-message) { max-width: 760px; margin-block: .65rem 1rem; color: #afc0ca; }
.route-scoreboard { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin: 1rem 0; }
.route-card { min-width: 0; padding: 1rem; border-color: #71838d; border-radius: 4px; background: #f8f6ef; color: var(--ink); box-shadow: 0 10px 26px rgba(0,0,0,.18); }
.route-card--loan { border: 2px solid #2e8cff; }
.route-card--transfer { border: 2px solid #92c63d; }
.route-card > div:first-child { align-items: flex-start; min-height: 34px; }
.route-card > div:first-child span { flex: 0 0 auto; border-radius: 3px; }
.route-card h3 { font-size: .9rem; line-height: 1.15; }
.route-card dl { grid-template-columns: 1fr 1fr; gap: .75rem .5rem; padding-top: .7rem; border-top: 1px solid #c6ced1; }
.route-card dt { font-family: var(--mono); font-size: .51rem; letter-spacing: .04em; text-transform: uppercase; }
.route-card dd { font-size: .83rem; }
.route-card__cashflow { min-height: 1rem; }
.signal-grid { gap: .75rem; }
.signal-card { border-color: #38617a; border-radius: 3px; background: #12344a; }
.signal-card--lime { border-color: var(--lime); background: var(--lime); }
.chart-card { margin-top: .75rem; padding: 1rem; border-color: #426176; border-radius: 4px; background: #081d2b; color: white; }
.chart-card h3 { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.chart-legend { color: #c2d0d8; font-family: var(--mono); }
.legend-current { color: #ff7564; }
.legend-loan { color: #66adff; }
.legend-fast { color: var(--lime); }
[data-payoff-chart] { height: clamp(250px, 31vw, 420px); margin-top: 1rem; overflow: hidden; }
[data-payoff-chart] g line { stroke: #294556; }
[data-chart-current] { stroke: #ff6755; }
[data-chart-loan] { stroke: #489aff; }
[data-chart-fast] { stroke: var(--lime); }
.results-panel .warning-stack p { border-color: #ff7564; background: #fde9e4; }
.results-panel .assumption-note { border-color: #426176; }
.results-panel .assumption-note summary, .results-panel .assumption-note p { color: #c2d0d8 !important; }
.results-panel .status-message { color: var(--lime); }
.results-panel .button--ghost { color: white; }

.compare-section, .faq-section { background: var(--paper); }
.compare-section .section-heading, .method-section .section-heading, .faq-section .section-heading, .sources-section .section-heading { text-align: left; margin-left: auto; margin-right: auto; }
.compare-section .section-heading h2, .faq-section .section-heading h2, .sources-section .section-heading h2 { max-width: 930px; text-transform: uppercase; }
.signal-explainer { gap: 0; border-color: #71838d; background: transparent; }
.signal-explainer article { border-right: 1px solid #71838d; }
.signal-explainer article:last-child { border-right: 0; }
.method-section { background: #0757bd; }
.offer-checklist { border-color: var(--lime); background: #071925; }
.faq-tab { border-radius: 2px; font-family: var(--mono); font-size: .72rem; text-transform: uppercase; }
.source-grid a { border-radius: 3px; }

@media (max-width: 1180px) {
  .calculator-grid { grid-template-columns: minmax(0, 1fr); }
  .input-rail { border-right: 0; border-bottom: 1px solid #314858; }
  .results-sticky { position: static; }
  .workspace-intro h1 { font-size: clamp(3.5rem, 9vw, 7rem); }
  .workspace-intro .hero-quick { grid-template-columns: repeat(3, 1fr) auto; }
  .workspace-intro .hero-quick .button { grid-column: auto; }
  [data-payoff-chart] { height: 340px; }
}

@media (max-width: 760px) {
  .workspace-heading { grid-template-columns: 1fr; gap: .3rem; padding-block: .8rem; }
  .workspace-heading > p:last-child { display: none; }
  .workspace-intro { padding-top: 2rem; }
  .workspace-intro h1 { font-size: clamp(2.9rem, 14.5vw, 5.2rem); }
  .workspace-intro .hero-quick { grid-template-columns: 1fr 1fr; }
  .workspace-intro .hero-quick > strong, .workspace-intro .hero-quick label:first-of-type, .workspace-intro .hero-quick .button { grid-column: 1 / -1; }
  .route-scoreboard { grid-template-columns: 1fr; }
  .route-card dl { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  [data-payoff-chart] { height: 260px; }
}

@media (max-width: 560px) {
  .site-header { min-height: 56px; }
  .workspace-intro { padding-inline: 1rem; }
  .workspace-intro h1 { font-size: clamp(2.45rem, 10.5vw, 3.2rem); }
  .workspace-intro .hero__badges span:nth-child(3) { display: none; }
  .input-panel { padding-inline: .7rem; }
  .route-card dl { grid-template-columns: 1fr 1fr; }
  .results-sticky { padding-inline: .7rem; }
  [data-payoff-chart] { height: 230px; }
}

@media print {
  @page { margin: 14mm; }
  body { background: white; color: black; }
  body::before, .site-header, .hero, .workspace-heading, .workspace-intro, .input-panel, .compare-section, .method-section, .faq-section, .sources-section, .site-footer, .result-actions, .contact-dialog { display: none !important; }
  .calculator-shell { padding: 0; background: white; color: black; }
  .calculator-shell > .section-heading { display: none; }
  .calculator-grid { display: block; border: 0; box-shadow: none; }
  .results-panel { background: white; }
  .results-sticky { padding: 0; }
  .route-card, .signal-card, .chart-card { break-inside: avoid; background: white !important; color: black !important; }
}
