/* ==========================================================================
   Credit Repair Map — shared stylesheet
   Palette is taken directly from the book cover and logo.
   Type: Public Sans (the U.S. government's typeface, chosen because every
   method in the book rests on federal consumer law) + Courier Prime for
   letter templates, echoing the typed letter boxes inside the book.
   ========================================================================== */

:root {
  --navy: #0d2137;
  --navy-2: #13304d;
  --navy-line: rgba(255,255,255,.12);
  --blue: #1a73e8;
  --blue-deep: #1557b0;
  --blue-tint: #e8f0fe;
  --yellow: #fbbc04;
  --gold: #8a6100;            /* text-safe yellow on white */
  --yellow-tint: #fef7e0;
  --green: #34a853;
  --green-text: #137333;
  --green-tint: #e6f4ea;
  --red: #ea4335;
  --red-text: #b3261e;
  --red-tint: #fce8e6;
  --ink: #0d2137;
  --text: #2f3f52;
  --muted: #5b6b7f;
  --line: #dce3eb;
  --mist: #f3f6fa;
  --paper: #ffffff;

  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --shadow: 0 1px 2px rgba(13,33,55,.06), 0 8px 24px rgba(13,33,55,.07);
  --shadow-lift: 0 2px 4px rgba(13,33,55,.06), 0 18px 40px rgba(13,33,55,.12);

  --font: 'Public Sans', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --font-letter: 'Courier Prime', 'Courier New', Courier, monospace;
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-deep); text-underline-offset: 3px; }
a:hover { color: var(--blue); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.12; letter-spacing: -0.015em; text-wrap: balance; }
p { text-wrap: pretty; }
strong { color: var(--ink); font-weight: 700; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.section--navy :focus-visible, .hero :focus-visible, .footer :focus-visible { outline-color: var(--yellow); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 300;
  background: var(--yellow); color: var(--navy); font-weight: 800;
  padding: 10px 18px; border-radius: 999px; text-decoration: none;
}
.skip-link:focus { top: 12px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }
.narrow { max-width: 780px; }

/* Brand dots (from the book cover) */
.dots { display: inline-flex; gap: 6px; align-items: center; }
.dots i { width: 9px; height: 9px; border-radius: 50%; display: block; }
.dots i:nth-child(1) { background: var(--blue); }
.dots i:nth-child(2) { background: var(--red); }
.dots i:nth-child(3) { background: var(--yellow); }
.dots i:nth-child(4) { background: var(--green); }

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 76px;
}
.nav__logo img { height: 52px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav__links a {
  display: block; padding: 8px 13px; border-radius: 999px;
  color: var(--muted); font-size: 15px; font-weight: 600; text-decoration: none;
}
.nav__links a:hover { color: var(--ink); background: var(--mist); }
.nav__actions { display: flex; align-items: center; gap: 8px; }
.nav__menu {
  display: none; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--paper); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav__menu span, .nav__menu span::before, .nav__menu span::after {
  display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px;
  position: relative; transition: transform .2s ease, background .2s ease;
}
.nav__menu span::before, .nav__menu span::after { content: ''; position: absolute; left: 0; }
.nav__menu span::before { top: -6px; }
.nav__menu span::after { top: 6px; }
.nav__menu[aria-expanded="true"] span { background: transparent; }
.nav__menu[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav__menu[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 980px) {
  .nav__menu { display: inline-flex; }
  .nav__links {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px clamp(20px, 4vw, 40px) 16px; box-shadow: 0 16px 30px rgba(13,33,55,.10);
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 13px 4px; border-radius: 0; font-size: 16px; border-bottom: 1px solid var(--mist); }
  .nav__logo img { height: 44px; }
}
@media (max-width: 420px) { .nav .btn--sm .btn__price { display: none; } }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 13px 26px; border-radius: 999px;
  font-size: 16px; font-weight: 750; line-height: 1.2; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(26,115,232,.28); }
.btn--primary:hover { background: var(--blue-deep); color: #fff; }
.btn--yellow { background: var(--yellow); color: var(--navy); box-shadow: 0 8px 22px rgba(251,188,4,.25); }
.btn--yellow:hover { background: #ffcb2e; color: var(--navy); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn--ghost-light:hover { border-color: #fff; color: #fff; }
.btn--sm { min-height: 42px; padding: 9px 18px; font-size: 15px; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--mist { background: var(--mist); }
.section--navy { background: var(--navy); color: #c9d6e6; }
.section--navy h2, .section--navy h3, .section--navy strong { color: #fff; }
.section--tight { padding: clamp(48px, 6vw, 72px) 0; }

.head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 52px); }
.head h2 { font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 850; margin-bottom: 14px; }
.head p { font-size: 1.1rem; color: var(--muted); }
.section--navy .head p { color: #a9bbd0; }
.head--center { margin-left: auto; margin-right: auto; text-align: center; }
.head--split { display: flex; justify-content: space-between; align-items: end; gap: 32px; max-width: none; flex-wrap: wrap; }
.head--split > div { max-width: 640px; }

.note { font-size: 14px; color: var(--muted); }
.section--navy .note { color: #8ea3bb; }

/* --------------------------------------------------------------------------
   Hero (home)
   -------------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--navy); color: #c9d6e6;
  padding: clamp(56px, 8vw, 104px) 0 clamp(56px, 7vw, 88px);
  isolation: isolate;
}
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__kicker { display: flex; align-items: center; gap: 12px; color: #a9bbd0; font-weight: 600; font-size: 15px; margin-bottom: 22px; }
.hero h1 {
  color: #fff; font-weight: 900;
  font-size: clamp(2.6rem, 5vw, 4.25rem);
  line-height: 1.03; letter-spacing: -0.03em; margin-bottom: 22px;
}
.hero h1 .line { display: block; }
.hero h1 .line--yellow { color: var(--yellow); }
.hero__sub { font-size: clamp(1.08rem, 1.5vw, 1.22rem); max-width: 34em; margin-bottom: 30px; color: #c9d6e6; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.hero__assure { font-size: 14px; color: #8ea3bb; display: flex; gap: 6px 16px; flex-wrap: wrap; }
.hero__assure span::before { content: '✓'; color: var(--green); font-weight: 800; margin-right: 6px; }

.hero__stats {
  display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0;
  margin-top: 40px; border-top: 1px solid var(--navy-line); padding-top: 22px;
}
.hero__stats div { padding-right: clamp(18px, 3vw, 40px); margin-right: clamp(18px, 3vw, 40px); border-right: 1px solid var(--navy-line); }
.hero__stats div:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.hero__stats b { display: block; color: #fff; font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 850; line-height: 1.1; letter-spacing: -0.02em; }
.hero__stats span { font-size: 13.5px; color: #8ea3bb; }
.hero__stats-note { margin-top: 12px; font-size: 12.5px; color: #6f86a0; }

.hero__visual { position: relative; display: flex; justify-content: center; }
.hero__cover {
  width: min(360px, 78%); border-radius: 6px;
  box-shadow: 0 2px 0 rgba(255,255,255,.06), 0 40px 80px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.08);
  transform: rotate(2.5deg);
  animation: coverIn .9s cubic-bezier(.2,.7,.2,1) .15s both;
}
@keyframes coverIn { from { opacity: 0; transform: translateY(24px) rotate(5deg); } to { opacity: 1; transform: translateY(0) rotate(2.5deg); } }

/* The route: the one orchestrated motion on the page */
.hero__route { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 260px; z-index: -1; pointer-events: none; }
.hero__route path {
  fill: none; stroke: var(--yellow); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1500; stroke-dashoffset: 1500; opacity: .9;
  animation: drawRoute 2.4s cubic-bezier(.4,.1,.2,1) .4s forwards;
}
.hero__route .stop { fill: var(--navy); stroke: var(--yellow); stroke-width: 3.5; opacity: 0; animation: popIn .3s ease forwards; }
.hero__route .pin { fill: var(--red); opacity: 0; animation: popIn .35s ease 2.6s forwards; }
@keyframes drawRoute { to { stroke-dashoffset: 0; } }
@keyframes popIn { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }
.hero__route .stop, .hero__route .pin { transform-box: fill-box; transform-origin: center; }

@media (max-width: 900px) {
  .hero { padding-bottom: 120px; }
  .hero__route { height: 110px; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: -1; }
  .hero__cover { width: min(230px, 58%); }
}
@media (max-width: 560px) {
  .hero__stats { grid-template-columns: repeat(3, 1fr); }
  .hero__stats div { padding-right: 10px; margin-right: 10px; }
  .hero__actions .btn { width: 100%; }
}

/* Law strip under hero */
.laws {
  background: var(--navy-2); color: #a9bbd0; font-size: 14.5px;
  border-top: 1px solid var(--navy-line);
}
.laws .wrap { display: flex; gap: 8px 32px; align-items: center; flex-wrap: wrap; padding-top: 16px; padding-bottom: 16px; }
.laws b { color: #fff; font-weight: 700; }

/* --------------------------------------------------------------------------
   Chapter route (what's inside)
   -------------------------------------------------------------------------- */
.inside, .split { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.inside .head, .split .head { position: sticky; top: 110px; margin-bottom: 0; }
.stops { list-style: none; position: relative; }
.stop::after {
  content: ''; position: absolute; left: 20.5px; top: 58px; bottom: -14px; width: 3px;
  background: repeating-linear-gradient(to bottom, var(--yellow) 0 10px, transparent 10px 18px);
}
.stop:last-child::after { display: none; }
.stop {
  position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 18px;
  padding: 14px 0;
}
.stop__num {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper); border: 3px solid var(--yellow); color: var(--navy);
  font-weight: 850; font-size: 14px; position: relative; z-index: 1;
}
.stop--goal .stop__num { background: var(--red); border-color: var(--red); color: #fff; }
.stop h3 { font-size: 1.12rem; font-weight: 800; margin: 2px 0 4px; }
.stop p { font-size: 15.5px; color: var(--muted); }
.stop__ch { font-size: 13px; font-weight: 700; color: var(--gold); }
@media (max-width: 860px) {
  .inside, .split { grid-template-columns: 1fr; }
  .inside .head, .split .head { position: static; }
}

/* --------------------------------------------------------------------------
   Look inside
   -------------------------------------------------------------------------- */
.pages { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 24px); }
.page-thumb {
  background: none; border: 0; padding: 0; cursor: zoom-in; text-align: left;
  display: flex; flex-direction: column; gap: 12px;
}
.page-thumb img {
  width: 100%; aspect-ratio: 612 / 792; object-fit: cover; border-radius: 6px;
  box-shadow: var(--shadow); border: 1px solid var(--line);
  transition: transform .2s ease, box-shadow .2s ease;
}
.page-thumb:hover img { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.page-thumb span { font-size: 14.5px; color: var(--muted); }
.page-thumb strong { display: block; font-size: 15.5px; }
@media (max-width: 860px) { .pages { grid-template-columns: repeat(2, 1fr); } }

.lightbox {
  border: 0; padding: 0; background: transparent; max-width: min(860px, 94vw); max-height: 94vh;
  margin: auto; overflow: visible;
}
.lightbox::backdrop { background: rgba(8,20,34,.82); }
.lightbox img { width: auto; max-width: 100%; max-height: 84vh; border-radius: 6px; margin: 0 auto; }
.lightbox figcaption { color: #fff; text-align: center; margin-top: 12px; font-weight: 600; }
.lightbox__close {
  position: absolute; top: -14px; right: -14px; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: #fff; color: var(--navy); font-size: 22px; font-weight: 700; cursor: pointer;
  box-shadow: var(--shadow-lift);
}

/* --------------------------------------------------------------------------
   Free chapter band
   -------------------------------------------------------------------------- */
.lead {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(28px, 5vw, 64px); align-items: center;
  background: var(--blue-tint); border-radius: var(--r-lg); padding: clamp(28px, 4vw, 52px);
}
.lead__art { width: clamp(130px, 16vw, 190px); }
.lead__art img { border-radius: 4px; box-shadow: 0 18px 40px rgba(13,33,55,.22); transform: rotate(-3deg); }
.lead h2 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); font-weight: 850; margin-bottom: 10px; }
.lead p { color: var(--text); margin-bottom: 20px; max-width: 36em; }
@media (max-width: 720px) { .lead { grid-template-columns: 1fr; } .lead__art { margin: 0 auto; } }

/* Inline email form (lead + newsletter) */
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; max-width: 520px; }
.inline-form input[type="email"] {
  flex: 1 1 240px; min-height: 50px; padding: 12px 18px; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff;
}
.inline-form input[type="email"]:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(26,115,232,.15); }
.form-msg { margin-top: 12px; font-size: 15px; font-weight: 600; min-height: 1.2em; }
.form-msg--ok { color: var(--green-text); }
.form-msg--err { color: var(--red-text); }
.lead .unlock { display: none; margin-top: 14px; }
.lead .unlock.is-shown { display: inline-flex; }
.form-fine { font-size: 13px; color: var(--muted); margin-top: 10px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* --------------------------------------------------------------------------
   Tools
   -------------------------------------------------------------------------- */
.tabs {
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  border-bottom: 1px solid var(--line); margin-bottom: 0;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: 0 0 auto; background: none; border: 0; cursor: pointer;
  padding: 14px 16px 13px; font-weight: 700; font-size: 15.5px; color: var(--muted);
  border-bottom: 3px solid transparent; margin-bottom: -1px; border-radius: 8px 8px 0 0;
}
.tab:hover { color: var(--ink); background: rgba(13,33,55,.03); }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--yellow); }
.tool {
  background: var(--paper); border: 1px solid var(--line); border-top: 0;
  border-radius: 0 0 var(--r) var(--r); padding: clamp(22px, 3.5vw, 40px);
  box-shadow: var(--shadow);
}
.tool[hidden] { display: none; }
.tool h3 { font-size: 1.35rem; font-weight: 800; margin-bottom: 6px; }
.tool__intro { color: var(--muted); margin-bottom: 26px; max-width: 46em; }
.tool__source { font-size: 13.5px; color: var(--muted); margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }

.field { display: flex; flex-direction: column; gap: 7px; }
.field label, .field .label { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.field input, .field select, .field textarea {
  min-height: 48px; padding: 11px 14px; border-radius: 10px;
  border: 1.5px solid var(--line); background: #fff; width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(26,115,232,.14); }
.field .hint { font-size: 13.5px; color: var(--muted); }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }

/* Score simulator */
.sim { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 5vw, 56px); align-items: center; }
.gauge { width: 200px; height: 200px; border-radius: 50%; display: grid; place-items: center; position: relative; transition: background .3s ease; }
.gauge::before { content: ''; position: absolute; inset: 20px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.gauge > div { position: relative; text-align: center; }
.gauge b { display: block; font-size: 2.8rem; font-weight: 900; line-height: 1; letter-spacing: -0.03em; }
.gauge span { font-weight: 700; font-size: 15px; }
input[type="range"] { width: 100%; accent-color: var(--blue); height: 32px; cursor: pointer; }
.range-scale { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-top: 2px; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 22px; }
.fact { background: var(--mist); border-radius: 10px; padding: 13px 15px; font-size: 14px; color: var(--muted); }
.fact b { display: block; color: var(--ink); font-size: 16px; font-weight: 800; }
@media (max-width: 680px) { .sim { grid-template-columns: 1fr; justify-items: center; } .sim > div:last-child { width: 100%; } }

/* Utilization */
.util { margin-top: 22px; border-radius: var(--r); padding: 22px; display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; transition: background .3s ease; }
.util__pct { font-size: 3rem; font-weight: 900; line-height: 1; letter-spacing: -0.03em; }
.util__label { font-weight: 800; margin-top: 4px; }
.bar { height: 12px; border-radius: 999px; background: rgba(13,33,55,.1); overflow: hidden; }
.bar > i { display: block; height: 100%; width: 0; border-radius: 999px; transition: width .45s ease, background .3s ease; }
.util__tip { font-size: 15px; margin-top: 10px; }
@media (max-width: 560px) { .util { grid-template-columns: 1fr; } }

/* Impact estimator */
.impact { display: grid; grid-template-columns: 1fr 220px; gap: 28px; align-items: start; }
.checks { display: grid; gap: 8px; }
.check {
  display: grid; grid-template-columns: 26px 1fr auto; gap: 14px; align-items: center;
  width: 100%; text-align: left; background: var(--mist); border: 1.5px solid transparent;
  border-radius: 12px; padding: 13px 15px; cursor: pointer;
}
.check:hover { border-color: var(--line); }
.check__box { width: 24px; height: 24px; border-radius: 7px; border: 2px solid #b6c3d2; display: grid; place-items: center; background: #fff; font-weight: 900; color: #fff; font-size: 14px; }
.check[aria-pressed="true"] { background: var(--green-tint); border-color: rgba(52,168,83,.4); }
.check[aria-pressed="true"] .check__box { background: var(--green); border-color: var(--green); }
.check b { display: block; font-size: 15.5px; }
.check small { color: var(--muted); font-size: 13.5px; }
.check__pts { font-weight: 800; font-size: 14px; color: var(--green-text); white-space: nowrap; }
.impact__total { position: sticky; top: 110px; text-align: center; background: var(--navy); color: #fff; border-radius: var(--r); padding: 28px 20px; }
.impact__total b { display: block; font-size: 3.2rem; font-weight: 900; color: var(--yellow); line-height: 1; letter-spacing: -0.03em; }
.impact__total span { color: #a9bbd0; font-size: 14px; }
@media (max-width: 760px) { .impact { grid-template-columns: 1fr; } .impact__total { position: static; } }

/* Removal rates */
.rates { display: grid; gap: 14px; }
.rate { display: grid; grid-template-columns: 210px 1fr 52px; gap: 16px; align-items: center; font-size: 15.5px; }
.rate b { font-weight: 700; color: var(--ink); }
.rate .bar { height: 14px; }
.rate em { font-style: normal; font-weight: 800; text-align: right; color: var(--ink); }
@media (max-width: 600px) { .rate { grid-template-columns: 1fr 48px; } .rate .bar { grid-column: 1 / -1; grid-row: 2; } }

/* Result cards (deadline + debt age) */
.results { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 24px; }
.result { border-radius: 12px; padding: 16px 18px; background: var(--mist); border-left: 4px solid var(--line); }
.result small { display: block; font-size: 13.5px; color: var(--muted); font-weight: 600; }
.result b { display: block; font-size: 1.25rem; font-weight: 850; margin: 2px 0; }
.result p { font-size: 14px; color: var(--text); }
.result--blue { border-left-color: var(--blue); }
.result--yellow { border-left-color: var(--yellow); }
.result--red { border-left-color: var(--red); }
.result--green { border-left-color: var(--green); }
.tool-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.alert { margin-top: 18px; border-radius: 12px; padding: 14px 16px; font-size: 15px; }
.alert--warn { background: var(--yellow-tint); color: #5c4300; }
.alert--danger { background: var(--red-tint); color: #7a1c15; }
.alert--ok { background: var(--green-tint); color: #0d4d23; }

/* --------------------------------------------------------------------------
   90-day route tracker
   -------------------------------------------------------------------------- */
.plan-bar {
  display: grid; grid-template-columns: 1fr auto; gap: 18px 32px; align-items: end;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px; margin-bottom: 26px;
  box-shadow: var(--shadow);
}
.plan-bar__day { font-size: 1.6rem; font-weight: 850; color: var(--ink); letter-spacing: -0.02em; }
.plan-bar__day small { font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan-bar .bar { margin-top: 10px; }
.plan-bar .bar > i { background: var(--green); }
.plan-bar__start { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; }
.plan-bar__start .field { min-width: 190px; }
@media (max-width: 720px) { .plan-bar { grid-template-columns: 1fr; } }

.legs { display: grid; gap: 18px; }
.leg { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.leg > summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 52px 1fr auto; gap: 16px; align-items: center;
  padding: 18px 22px;
}
.leg > summary::-webkit-details-marker { display: none; }
.leg__mark { width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--yellow); display: grid; place-items: center; font-weight: 850; color: var(--navy); background: #fff; }
.leg--done .leg__mark { background: var(--green); border-color: var(--green); color: #fff; }
.leg--now .leg__mark { background: var(--yellow); }
.leg h3 { font-size: 1.12rem; font-weight: 800; }
.leg__when { font-size: 14px; color: var(--muted); font-weight: 600; }
.leg__count { font-size: 14px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.leg__count::after { content: '▾'; margin-left: 10px; display: inline-block; transition: transform .2s ease; }
.leg[open] .leg__count::after { transform: rotate(180deg); }
.tasks { list-style: none; padding: 0 22px 18px 90px; display: grid; gap: 6px; }
@media (max-width: 560px) { .tasks { padding-left: 22px; } }
.task { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; padding: 10px 0; border-top: 1px solid var(--mist); }
.task input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--green); cursor: pointer; }
.task label { cursor: pointer; }
.task b { display: block; font-size: 15.5px; font-weight: 700; color: var(--ink); }
.task span { font-size: 14.5px; color: var(--muted); }
.task input:checked + label b { text-decoration: line-through; text-decoration-color: rgba(13,33,55,.35); color: var(--muted); }
.plan-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 18px; align-items: center; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--blue-deep); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 14.5px; font-weight: 600; }

/* --------------------------------------------------------------------------
   Results (testimonials)
   -------------------------------------------------------------------------- */
.stories { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.story {
  background: var(--navy-2); border: 1px solid var(--navy-line); border-radius: var(--r);
  padding: 24px; display: flex; flex-direction: column; gap: 14px;
}
.story[hidden] { display: none; }
.story__scores { display: flex; align-items: baseline; gap: 10px; font-weight: 850; letter-spacing: -0.02em; }
.story__scores .from { color: #ff8a80; font-size: 1.5rem; }
.story__scores .to { color: #81c995; font-size: 2rem; }
.story__scores .arrow { color: #6f86a0; }
.story__who { font-size: 14.5px; color: #a9bbd0; }
.story__who b { color: #fff; }
.story blockquote { color: #dbe5f0; font-size: 15.5px; line-height: 1.65; }
.story__tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.story__tags span { font-size: 12.5px; font-weight: 600; color: #c9d6e6; background: rgba(255,255,255,.07); border-radius: 999px; padding: 4px 10px; }
.stories-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 28px; }
@media (max-width: 960px) { .stories { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .stories { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Pricing
   -------------------------------------------------------------------------- */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 940px; margin: 0 auto; }
.plan {
  background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(26px, 3.5vw, 38px); display: flex; flex-direction: column; position: relative;
}
.kit-live .plan--featured { border-color: var(--navy); box-shadow: var(--shadow-lift); }
.plan__flag {
  position: absolute; top: -14px; left: 28px; background: var(--yellow); color: var(--navy);
  font-size: 13.5px; font-weight: 800; padding: 5px 14px; border-radius: 999px;
}
.plan h3 { font-size: 1.3rem; font-weight: 800; }
.plan__desc { color: var(--muted); font-size: 15.5px; margin-top: 4px; }
.plan__price { display: flex; align-items: baseline; gap: 8px; margin: 18px 0 20px; }
.plan__price b { font-size: 3.2rem; font-weight: 900; color: var(--ink); letter-spacing: -0.04em; line-height: 1; }
.plan__price span { color: var(--muted); font-size: 15px; }
.plan ul { list-style: none; display: grid; gap: 10px; margin-bottom: 26px; }
.plan li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 15.5px; }
.plan li::before { content: '✓'; color: var(--green-text); font-weight: 900; }
.plan li.plus::before { content: '+'; color: var(--blue); }
.plan .btn { margin-top: auto; }
.plan__fine { font-size: 13.5px; color: var(--muted); text-align: center; margin-top: 12px; }
.guarantee {
  display: flex; gap: 18px; align-items: center; max-width: 940px; margin: 28px auto 0;
  background: var(--green-tint); border-radius: var(--r); padding: 18px 22px; color: #0d4d23;
}
.guarantee b { color: #0d4d23; }
.guarantee__seal { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 15px; line-height: 1; text-align: center; }
.trust-row { display: flex; justify-content: center; gap: 8px 24px; flex-wrap: wrap; margin-top: 18px; font-size: 14px; color: var(--muted); }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } .kit-live .plan--featured { order: -1; } }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 54px 18px 22px; position: relative;
  font-weight: 700; color: var(--ink); font-size: 1.04rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px;
  border-right: 2.5px solid var(--muted); border-bottom: 2.5px solid var(--muted);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > div { padding: 0 22px 20px; color: var(--text); }
.faq details > div p + p { margin-top: 10px; }

/* --------------------------------------------------------------------------
   Guides
   -------------------------------------------------------------------------- */
.guides { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.guide {
  display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--text);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 24px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.guide:hover { border-color: var(--ink); box-shadow: var(--shadow); color: var(--text); }
.guide small { font-weight: 700; color: var(--gold); font-size: 13.5px; }
.guide h3 { font-size: 1.15rem; font-weight: 800; }
.guide p { font-size: 15.5px; color: var(--muted); }
.guide__go { margin-top: auto; font-weight: 700; color: var(--blue-deep); font-size: 15px; }
@media (max-width: 860px) { .guides { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact { display: grid; grid-template-columns: 1.25fr .75fr; gap: 24px; align-items: start; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(22px, 3vw, 34px); }
.card h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 6px; }
.contact form { display: grid; gap: 16px; margin-top: 18px; }
.consent { display: none; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; background: var(--yellow-tint); border-radius: 10px; padding: 12px 14px; font-size: 14.5px; }
.consent.is-shown { display: grid; }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--blue); }
.side { display: grid; gap: 16px; }
.side .card p { font-size: 15.5px; color: var(--muted); }
.card--navy { background: var(--navy); border-color: var(--navy); color: #c9d6e6; }
.card--navy h3 { color: #fff; }
.card--navy p { color: #a9bbd0 !important; }
.card--navy .inline-form input[type="email"] { border-color: transparent; }
.card--navy .form-msg--ok { color: #81c995; }
.card--navy .form-msg--err { color: #ff8a80; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer { background: var(--navy); color: #8ea3bb; font-size: 15px; padding: clamp(56px, 7vw, 80px) 0 32px; }
.footer a { color: #c9d6e6; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 40px; border-bottom: 1px solid var(--navy-line); }
.footer__brand p { margin-top: 14px; max-width: 26em; }
.footer__brand .name { color: #fff; font-weight: 800; font-size: 1.15rem; margin-top: 14px; }
.footer h4 { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 14px; letter-spacing: 0; }
.footer ul { list-style: none; display: grid; gap: 9px; }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.07); }
.social a:hover { background: rgba(255,255,255,.16); }
.social svg { width: 18px; height: 18px; fill: #fff; }
.footer__legal { padding-top: 28px; display: grid; gap: 14px; font-size: 13.5px; line-height: 1.7; }
.footer__legal p { max-width: 90ch; }
.footer__legal b { color: #c9d6e6; }
@media (max-width: 860px) { .footer__top { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }

/* --------------------------------------------------------------------------
   Document pages (guides, legal, thank-you)
   -------------------------------------------------------------------------- */
.doc-hero { background: var(--navy); color: #c9d6e6; padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 5vw, 64px); position: relative; overflow: hidden; }
.doc-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 48px 48px; pointer-events: none;
}
.doc-hero .wrap { position: relative; }
.crumbs { font-size: 14px; margin-bottom: 18px; color: #8ea3bb; }
.crumbs a { color: #c9d6e6; }
.doc-hero h1 { color: #fff; font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 900; letter-spacing: -0.03em; line-height: 1.05; max-width: 18em; margin-bottom: 16px; }
.doc-hero p { font-size: 1.15rem; max-width: 40em; }
.doc-hero .meta { font-size: 14px; color: #8ea3bb; margin-top: 18px; }

.doc { display: grid; grid-template-columns: 1fr 280px; gap: clamp(32px, 5vw, 64px); align-items: start; }
.doc__aside { position: sticky; top: 104px; display: grid; gap: 16px; }
.toc-box { border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.toc-box h2 { font-size: 15px; margin-bottom: 10px; }
.toc-box ol { padding-left: 18px; display: grid; gap: 6px; font-size: 14.5px; }
.toc-box a { color: var(--text); text-decoration: none; }
.toc-box a:hover { color: var(--blue-deep); text-decoration: underline; }
.buy-box { background: var(--navy); color: #c9d6e6; border-radius: var(--r); padding: 22px; }
.buy-box img { width: 96px; border-radius: 3px; margin-bottom: 14px; transform: rotate(-2deg); box-shadow: 0 10px 22px rgba(0,0,0,.35); }
.buy-box b { color: #fff; display: block; font-size: 1.05rem; margin-bottom: 6px; }
.buy-box p { font-size: 14.5px; margin-bottom: 14px; }
@media (max-width: 960px) { .doc { grid-template-columns: 1fr; } .doc__aside { position: static; } }

.prose { max-width: 70ch; }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { font-size: clamp(1.55rem, 2.6vw, 2rem); font-weight: 850; margin-top: 2.1em; }
.prose h3 { font-size: 1.22rem; font-weight: 800; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--mist); color: var(--ink); font-weight: 700; }
.answer { background: var(--blue-tint); border-radius: var(--r); padding: 20px 22px; }
.answer b { display: block; color: var(--ink); margin-bottom: 4px; }
.callout { border-radius: 12px; padding: 16px 18px; border-left: 4px solid; }
.callout--warn { background: var(--yellow-tint); border-color: var(--yellow); }
.callout--danger { background: var(--red-tint); border-color: var(--red); }
.callout--ok { background: var(--green-tint); border-color: var(--green); }
.callout--info { background: var(--blue-tint); border-color: var(--blue); }

.letter {
  position: relative; background: #fbfaf6; border: 1px solid #e6e1d3; border-radius: 6px;
  box-shadow: 0 1px 0 #e6e1d3, 0 12px 28px rgba(13,33,55,.08);
  padding: 30px clamp(18px, 4vw, 40px) 26px;
}
.letter pre {
  font-family: var(--font-letter); font-size: 15.5px; line-height: 1.6; color: #22262b;
  white-space: pre-wrap; word-wrap: break-word;
}
.letter__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.letter__bar b { font-size: 14.5px; }
.copy-btn {
  border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 14px;
  font-size: 14px; font-weight: 700; cursor: pointer; color: var(--ink);
}
.copy-btn:hover { border-color: var(--ink); }

.steps-list { list-style: none; counter-reset: s; padding: 0 !important; display: grid; gap: 14px; }
.steps-list li { counter-increment: s; display: grid; grid-template-columns: 38px 1fr; gap: 14px; margin: 0 !important; }
.steps-list li::before {
  content: counter(s); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy); color: var(--yellow); font-weight: 850; font-size: 15px;
}

.cta-band { background: var(--navy); border-radius: var(--r-lg); padding: clamp(26px, 4vw, 44px); display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; color: #c9d6e6; }
.cta-band img { width: 92px; border-radius: 3px; transform: rotate(-3deg); box-shadow: 0 12px 26px rgba(0,0,0,.35); }
.cta-band h2 { color: #fff; font-size: 1.5rem; font-weight: 850; margin-bottom: 6px; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } .cta-band img { display: none; } }

.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }

/* --------------------------------------------------------------------------
   Thank-you + 404
   -------------------------------------------------------------------------- */
.ty-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: t; }
.ty-step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; counter-increment: t; }
.ty-step::before { content: counter(t); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--yellow); font-weight: 850; color: var(--navy); margin-bottom: 14px; }
.ty-step h3 { font-size: 1.12rem; font-weight: 800; margin-bottom: 6px; }
.ty-step p { font-size: 15.5px; color: var(--muted); margin-bottom: 14px; }
@media (max-width: 860px) { .ty-steps { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Reveal (used only for data bars) + reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0ms !important; transition-duration: .001ms !important; }
  .hero__route path { stroke-dashoffset: 0; }
  .hero__route .stop, .hero__route .pin { opacity: 1; }
}

@media print {
  .nav, .footer, .skip-link, .copy-btn, .buy-box { display: none !important; }
  .doc-hero { background: none; color: #000; padding: 0 0 16px; }
  .doc-hero h1 { color: #000; }
  .letter { box-shadow: none; border: 0; padding: 0; }
}
