/* ==========================================================================
   NonQM Capital — Base + Components
   Depends on tokens.css. No build step; plain CSS.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--ice);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--blue-600); text-underline-offset: 2px; }
a:hover { color: var(--navy); }

h1, h2, h3, h4 { line-height: var(--lh-tight); color: var(--navy); font-weight: 700; letter-spacing: -0.015em; }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-lg); letter-spacing: -0.01em; }
p { line-height: var(--lh-body); }
strong { font-weight: 650; color: var(--navy); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-sm); }

/* ---- Skip link ---- */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: var(--navy); color: #fff; padding: var(--sp-3) var(--sp-4);
  border-radius: 0 0 var(--r) 0; font-weight: 600;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---- Layout ---- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container.narrow { max-width: var(--container-narrow); }
.container.wide { max-width: var(--container-wide); }
main { flex: 1 0 auto; }
.section { padding-block: clamp(2.75rem, 6vw, 5.5rem); }
.section.tight { padding-block: clamp(2rem, 4vw, 3.25rem); }
.section--navy { background: var(--navy); color: #dbe6f0; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--ice { background: var(--ice); }
.section--white { background: var(--white); }
.section--deep { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%); color: #cddae7; }

.grid { display: grid; gap: var(--sp-5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-size: var(--fs-sm); font-weight: 650; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--blue);
}
.section--navy .eyebrow, .section--deep .eyebrow { color: var(--gold); }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; display: inline-block; }
.lede { font-size: var(--fs-md); color: var(--ink-soft); max-width: 62ch; }
.section--navy .lede, .section--deep .lede { color: #b9c9d8; }
.section-head { max-width: 66ch; margin-bottom: var(--sp-6); }
.center { text-align: center; margin-inline: auto; }

/* ---- Header / nav ---- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(255,255,255,0.88);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: var(--sp-5); height: 68px; }
.brand { display: inline-flex; align-items: center; gap: var(--sp-3); font-weight: 700; color: var(--navy); text-decoration: none; letter-spacing: -0.02em; }
.brand:hover { color: var(--navy); }
.brand img { width: 34px; height: 34px; }
.brand .brand-text { font-size: 1.16rem; }
.brand .brand-text b { color: var(--navy); }
.brand .brand-text span { color: var(--blue); font-weight: 500; }
.nav-spacer { flex: 1; }
.nav-menu { display: contents; }
.nav-links { display: flex; align-items: center; gap: var(--sp-2); list-style: none; }
.nav-links a {
  display: inline-block; padding: var(--sp-2) var(--sp-3); border-radius: var(--r-sm);
  color: var(--ink-soft); text-decoration: none; font-weight: 550; font-size: var(--fs-sm);
}
.nav-links a:hover { background: var(--ice-2); color: var(--navy); }
.nav-links a[aria-current="page"] { color: var(--navy); background: var(--ice-2); }
.nav-cta { margin-left: var(--sp-2); }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--r-sm);
    padding: 9px 12px; font-weight: 600; color: var(--navy); cursor: pointer; font-size: var(--fs-sm);
  }
  .nav-menu {
    position: absolute; left: 0; right: 0; top: 68px; background: var(--white);
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    display: none; flex-direction: column; padding: var(--sp-4) var(--gutter) var(--sp-5);
    gap: var(--sp-2);
  }
  .nav-menu.open { display: flex; }
  .nav-links { flex-direction: column; align-items: stretch; gap: var(--sp-1); }
  .nav-links a { padding: var(--sp-3); font-size: var(--fs-base); border: 1px solid transparent; }
  .nav-links a:hover { border-color: var(--line); }
  .nav-cta { margin-left: 0; margin-top: var(--sp-2); }
  .nav-cta .btn { width: 100%; }
}

/* ---- Buttons ---- */
.btn {
  --btn-pad: 0.72rem 1.25rem;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  padding: var(--btn-pad); border-radius: var(--r-sm); font-weight: 650; font-size: var(--fs-sm);
  text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  line-height: 1.1; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-lg { --btn-pad: 0.95rem 1.6rem; font-size: var(--fs-base); }
.btn-block { width: 100%; }
.btn-primary { background: var(--gold); color: var(--navy); box-shadow: var(--shadow-xs); }
.btn-primary:hover { background: var(--gold-600); color: var(--navy); box-shadow: var(--shadow-sm); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-700); color: #fff; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-600); color: #fff; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--navy); background: var(--ice-2); color: var(--navy); }
.btn-ghost { background: transparent; color: var(--blue-600); border-color: transparent; padding-inline: 0.5rem; }
.btn-ghost:hover { color: var(--navy); }
.on-navy .btn-outline, .section--navy .btn-outline, .section--deep .btn-outline { color: #fff; border-color: rgba(255,255,255,0.35); }
.on-navy .btn-outline:hover, .section--navy .btn-outline:hover, .section--deep .btn-outline:hover { background: rgba(255,255,255,0.08); border-color: #fff; }
.btn .arrow { transition: transform var(--dur) var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

/* ---- Cards ---- */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--sp-5); box-shadow: var(--shadow-xs);
}
.card-hover { transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
a.card { text-decoration: none; color: inherit; display: block; }
.card h3 { margin-bottom: var(--sp-2); }
.card p { color: var(--ink-soft); font-size: var(--fs-sm); }

.tool-card { display: flex; flex-direction: column; height: 100%; }
.tool-card .tool-icon {
  width: 44px; height: 44px; border-radius: var(--r); background: var(--info-bg);
  display: grid; place-items: center; margin-bottom: var(--sp-4); color: var(--blue); flex: none;
}
.tool-card .tool-icon svg { width: 24px; height: 24px; }
.tool-card .card-foot { margin-top: auto; padding-top: var(--sp-4); font-weight: 650; color: var(--blue-600); font-size: var(--fs-sm); display: inline-flex; align-items: center; gap: 6px; }
.tag {
  display: inline-block; font-size: var(--fs-xs); font-weight: 650; letter-spacing: 0.03em;
  padding: 3px 9px; border-radius: var(--r-pill); background: var(--ice-2); color: var(--slate);
  border: 1px solid var(--line);
}
.tag-gold { background: var(--warn-bg); color: var(--gold-ink); border-color: #eddcae; }
.tag-blue { background: var(--info-bg); color: var(--blue-600); border-color: var(--blue-100); }

/* Audience pill grid */
.audience {
  display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-4);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
  text-decoration: none; color: var(--navy); font-weight: 600; font-size: var(--fs-sm);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.audience:hover { border-color: var(--blue-200); background: var(--info-bg); color: var(--navy); }
.audience .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--blue); flex: none; }

/* ---- Hero ---- */
.hero { position: relative; overflow: hidden; background: linear-gradient(165deg, var(--navy) 0%, var(--navy-deep) 100%); color: #dfe9f2; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(120deg, transparent 60%, rgba(31,92,138,0.18) 100%),
    radial-gradient(circle at 85% 15%, rgba(214,168,79,0.10), transparent 40%);
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: var(--sp-8); align-items: center; padding-block: clamp(3rem, 7vw, 6rem); }
.hero h1 { color: #fff; font-size: var(--fs-3xl); letter-spacing: -0.03em; margin-bottom: var(--sp-4); }
.hero h1 .accent { color: var(--gold); }
.hero p.lede { color: #b9c9d8; font-size: var(--fs-md); margin-bottom: var(--sp-6); }
.hero .btn-row { margin-bottom: var(--sp-5); }
.hero .microtrust { font-size: var(--fs-sm); color: #8ea6bd; display: flex; gap: var(--sp-4); flex-wrap: wrap; }
.hero .microtrust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-visual { position: relative; }
.hero-visual .glass {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--r-xl); padding: var(--sp-5); backdrop-filter: blur(6px);
}
.route-preview { list-style: none; display: grid; gap: var(--sp-3); }
.route-preview li { display: flex; align-items: center; gap: var(--sp-3); color: #cfdcea; font-size: var(--fs-sm); }
.route-preview .rp-mark { width: 34px; height: 34px; border-radius: 9px; background: rgba(31,92,138,0.35); display: grid; place-items: center; color: var(--blue-200); flex: none; }
.route-preview .rp-mark.gold { background: rgba(214,168,79,0.18); color: var(--gold); }
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; gap: var(--sp-6); } .hero-visual { display: none; } }

/* ---- Forms ---- */
.form-grid { display: grid; gap: var(--sp-4); grid-template-columns: repeat(2, 1fr); }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.col-span { grid-column: 1 / -1; }
.field label, .field .label { font-weight: 600; font-size: var(--fs-sm); color: var(--navy); }
.field .hint { font-size: var(--fs-xs); color: var(--slate); }
.input-wrap { position: relative; display: flex; align-items: stretch; }
.input-wrap .affix {
  display: inline-flex; align-items: center; padding: 0 12px; background: var(--ice-2);
  border: 1.5px solid var(--line-strong); color: var(--slate); font-weight: 600; font-size: var(--fs-sm);
}
.input-wrap .affix.prefix { border-right: 0; border-radius: var(--r-sm) 0 0 var(--r-sm); }
.input-wrap .affix.suffix { border-left: 0; border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.input-wrap.has-prefix input { border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.input-wrap.has-suffix input { border-radius: var(--r-sm) 0 0 var(--r-sm); }
input[type="text"], input[type="number"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; font-family: inherit; font-size: var(--fs-base); color: var(--ink);
  background: var(--white); border: 1.5px solid var(--line-strong); border-radius: var(--r-sm);
  padding: 0.66rem 0.8rem; transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: var(--focus); }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--alert); }
input::placeholder { color: #9aa8b6; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23526579' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 2.4rem; }
.field-error { font-size: var(--fs-xs); color: var(--alert); font-weight: 600; display: none; }
.field.invalid .field-error { display: block; }

/* Segmented / choice controls */
.choice-set { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.choice {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding: 0.6rem 0.95rem; border: 1.5px solid var(--line-strong); border-radius: var(--r-sm);
  background: var(--white); cursor: pointer; font-weight: 600; font-size: var(--fs-sm); color: var(--ink-soft);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.choice:hover { border-color: var(--blue-200); }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--blue); background: var(--info-bg); color: var(--navy); box-shadow: inset 0 0 0 1px var(--blue); }
.choice:has(input:focus-visible) { box-shadow: var(--focus); }
.choice-set.stack { flex-direction: column; align-items: stretch; }
.choice-set.stack .choice { justify-content: flex-start; }

.toggle-annual { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--r-sm); overflow: hidden; }
.toggle-annual button { border: 0; background: var(--white); padding: 5px 12px; font-size: var(--fs-xs); font-weight: 650; color: var(--slate); cursor: pointer; }
.toggle-annual button[aria-pressed="true"] { background: var(--navy); color: #fff; }

/* ---- Result panels ---- */
.result-panel { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); overflow: hidden; box-shadow: var(--shadow-sm); }
.result-head { background: var(--navy); color: #fff; padding: var(--sp-5); display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; }
.result-head h3 { color: #fff; margin: 0; }
.result-head .headline-metric { text-align: right; }
.result-head .headline-metric .num { font-size: var(--fs-2xl); font-weight: 750; line-height: 1; font-family: var(--font-num); letter-spacing: -0.02em; }
.result-head .headline-metric .lbl { font-size: var(--fs-xs); color: #a9c0d5; text-transform: uppercase; letter-spacing: 0.06em; }
.result-body { padding: var(--sp-5); }

.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
@media (max-width: 620px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
.stat { background: var(--white); padding: var(--sp-4); }
.stat .stat-label { font-size: var(--fs-xs); color: var(--slate); font-weight: 600; letter-spacing: 0.02em; }
.stat .stat-value { font-size: var(--fs-lg); font-weight: 700; color: var(--navy); font-family: var(--font-num); margin-top: 3px; }
.stat .stat-value.neg { color: var(--alert); }
.stat .stat-value.pos { color: var(--ok); }
.stat .stat-sub { font-size: var(--fs-xs); color: var(--slate); }

/* Meter (DSCR/coverage) */
.meter { margin-top: var(--sp-4); }
.meter-track { height: 12px; border-radius: var(--r-pill); background: var(--ice-2); position: relative; overflow: hidden; border: 1px solid var(--line); }
.meter-fill { height: 100%; border-radius: var(--r-pill); background: var(--blue); transition: width 400ms var(--ease); }
.meter-fill.pos { background: var(--ok); }
.meter-fill.warn { background: var(--gold); }
.meter-fill.neg { background: var(--alert); }
.meter-scale { display: flex; justify-content: space-between; font-size: var(--fs-xs); color: var(--slate); margin-top: 5px; }

.result-list { list-style: none; display: grid; gap: 2px; }
.result-list li { display: flex; justify-content: space-between; gap: var(--sp-4); padding: 0.55rem 0; border-bottom: 1px dashed var(--line); font-size: var(--fs-sm); }
.result-list li:last-child { border-bottom: 0; }
.result-list .rl-label { color: var(--ink-soft); }
.result-list .rl-value { font-weight: 650; color: var(--navy); font-family: var(--font-num); }
.result-list li.total { border-top: 2px solid var(--navy); border-bottom: 0; margin-top: 4px; padding-top: 0.7rem; }
.result-list li.total .rl-value { font-size: var(--fs-md); }

/* ---- Alerts / callouts ---- */
.callout {
  display: flex; gap: var(--sp-3); padding: var(--sp-4); border-radius: var(--r);
  border: 1px solid var(--line); background: var(--ice-2); font-size: var(--fs-sm); color: var(--ink-soft);
  border-left-width: 4px;
}
.callout .ic { flex: none; margin-top: 2px; }
.callout strong { display: block; color: var(--navy); margin-bottom: 2px; }
.callout-info { background: var(--info-bg); border-color: var(--blue-100); border-left-color: var(--blue); }
.callout-warn { background: var(--warn-bg); border-color: #eddcae; border-left-color: var(--gold); }
.callout-disclaimer { background: #fbfcfd; border-color: var(--line); border-left-color: var(--slate); color: var(--slate); font-size: var(--fs-xs); line-height: 1.55; }

/* ---- Route result card ---- */
.route-result { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.route-result .rr-head { padding: var(--sp-5); background: linear-gradient(135deg, var(--navy), var(--navy-deep)); color: #fff; }
.route-result .rr-cat { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-xs); font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); margin-bottom: var(--sp-2); }
.route-result .rr-head h3 { color: #fff; font-size: var(--fs-xl); }
.route-result .rr-body { padding: var(--sp-5); background: var(--white); display: grid; gap: var(--sp-4); }
.rr-section h4 { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: 0.05em; color: var(--slate); margin-bottom: var(--sp-2); }
.rr-section ul { padding-left: 1.1rem; display: grid; gap: 5px; }
.rr-section ul li { font-size: var(--fs-sm); color: var(--ink-soft); }
.next-action { display: flex; gap: var(--sp-4); align-items: center; flex-wrap: wrap; padding: var(--sp-4); border: 1px dashed var(--blue-200); border-radius: var(--r); background: var(--info-bg); }
.next-action .na-text { flex: 1 1 260px; }
.next-action .na-text b { color: var(--navy); }

/* ---- Stepper (route finder) ---- */
.stepper { display: flex; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-5); flex-wrap: wrap; }
.step-dot { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-xs); font-weight: 650; color: var(--slate); }
.step-dot .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--ice-2); border: 1.5px solid var(--line-strong); color: var(--slate); }
.step-dot[data-state="active"] .n { background: var(--navy); color: #fff; border-color: var(--navy); }
.step-dot[data-state="done"] .n { background: var(--ok); color: #fff; border-color: var(--ok); }
.step-dot[data-state="active"] { color: var(--navy); }
.step-sep { flex: 1; height: 2px; background: var(--line); min-width: 12px; }
.progress-bar { height: 6px; background: var(--ice-2); border-radius: var(--r-pill); overflow: hidden; margin-bottom: var(--sp-5); }
.progress-bar span { display: block; height: 100%; background: var(--blue); transition: width 300ms var(--ease); }
.question-block { display: none; }
.question-block.active { display: block; animation: fade 240ms var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.question-block h2 { font-size: var(--fs-xl); margin-bottom: var(--sp-2); }
.question-block .q-help { color: var(--slate); font-size: var(--fs-sm); margin-bottom: var(--sp-4); }

/* ---- Breadcrumbs ---- */
.breadcrumbs { font-size: var(--fs-sm); color: var(--slate); padding-block: var(--sp-4) 0; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.breadcrumbs a { color: var(--blue-600); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: var(--line-strong); }
.breadcrumbs [aria-current="page"] { color: var(--ink-soft); }

/* ---- FAQ ---- */
.faq { display: grid; gap: var(--sp-3); }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 0; overflow: hidden; }
.faq summary { cursor: pointer; padding: var(--sp-4); font-weight: 650; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: var(--sp-3); align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; color: var(--blue); font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq .faq-body { padding: var(--sp-4); color: var(--ink-soft); font-size: var(--fs-sm); }
.faq .faq-body p + p { margin-top: var(--sp-3); }

/* ---- Prose ---- */
.prose { max-width: 72ch; }
.prose p, .prose ul, .prose ol { margin-bottom: var(--sp-4); color: var(--ink-soft); }
.prose h2 { margin-top: var(--sp-7); margin-bottom: var(--sp-3); font-size: var(--fs-xl); }
.prose h3 { margin-top: var(--sp-5); margin-bottom: var(--sp-2); }
.prose ul, .prose ol { padding-left: 1.35rem; display: grid; gap: 8px; }
.prose li { line-height: 1.55; }
.prose a { font-weight: 600; }
.prose strong { color: var(--navy); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: var(--sp-6); }

/* ---- Feature list / how it works ---- */
.steps-flow { counter-reset: step; display: grid; gap: var(--sp-5); }
.steps-flow .flow-item { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-4); align-items: start; }
.steps-flow .flow-num { counter-increment: step; width: 42px; height: 42px; border-radius: var(--r); background: var(--navy); color: #fff; font-weight: 700; display: grid; place-items: center; font-family: var(--font-num); }
.steps-flow .flow-num::before { content: counter(step); }
.section--navy .steps-flow .flow-num, .section--deep .steps-flow .flow-num { background: var(--gold); color: var(--navy); }

/* ---- Footer ---- */
.site-footer { background: var(--navy-deep); color: #a7bccf; padding-block: var(--sp-8) var(--sp-6); margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: var(--sp-6); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .brand-text b { color: #fff; }
.footer-brand .brand-text span { color: var(--blue-200); }
.footer-brand p { font-size: var(--fs-sm); color: #8ba3b8; margin-top: var(--sp-3); max-width: 34ch; }
.footer-col h4 { color: #fff; font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: var(--sp-3); }
.footer-col ul { list-style: none; display: grid; gap: 9px; }
.footer-col a { color: #a7bccf; text-decoration: none; font-size: var(--fs-sm); }
.footer-col a:hover { color: #fff; }
.footer-col a .ext { font-size: 0.65rem; opacity: 0.7; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: var(--sp-7); padding-top: var(--sp-5); display: flex; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; font-size: var(--fs-xs); color: #7f97ac; }
.footer-bottom a { color: #9fb4c8; }

/* ---- Misc utilities ---- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.hidden { display: none !important; }
.mt-4 { margin-top: var(--sp-4); } .mt-5 { margin-top: var(--sp-5); } .mt-6 { margin-top: var(--sp-6); }
.mb-0 { margin-bottom: 0; }
.text-muted { color: var(--slate); }
.stack { display: grid; gap: var(--sp-4); }
.stack-sm { display: grid; gap: var(--sp-2); }
.divider { border: 0; border-top: 1px solid var(--line); margin-block: var(--sp-5); }
.pill-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.badge-live { font-size: var(--fs-xs); font-weight: 700; color: var(--ok); background: var(--ok-bg); padding: 2px 8px; border-radius: var(--r-pill); }
.badge-soon { font-size: var(--fs-xs); font-weight: 700; color: var(--slate); background: var(--ice-2); padding: 2px 8px; border-radius: var(--r-pill); border: 1px solid var(--line); }

/* Two-column tool layout */
.tool-layout { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-6); align-items: start; }
@media (max-width: 940px) { .tool-layout { grid-template-columns: 1fr; } }
.tool-layout .sticky-result { position: sticky; top: 88px; }
@media (max-width: 940px) { .tool-layout .sticky-result { position: static; } }

.result-empty { border: 1px dashed var(--line-strong); border-radius: var(--r-lg); padding: var(--sp-6); text-align: center; color: var(--slate); background: var(--white); }
.result-empty .re-icon { width: 48px; height: 48px; margin: 0 auto var(--sp-3); color: var(--blue-200); }

.assumptions { font-size: var(--fs-sm); }
.assumptions summary { cursor: pointer; font-weight: 650; color: var(--navy); padding: var(--sp-2) 0; }
.assumptions ul { padding-left: 1.2rem; display: grid; gap: 5px; color: var(--slate); margin-top: var(--sp-2); }

.cta-band { background: linear-gradient(135deg, var(--navy), var(--navy-deep)); border-radius: var(--r-xl); padding: clamp(1.75rem, 4vw, 3rem); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; margin-bottom: var(--sp-3); }
.cta-band p { color: #b9c9d8; max-width: 54ch; margin: 0 auto var(--sp-5); }

/* Label row with inline unit toggle */
.label-row { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-2); }
.label-row label { margin: 0; }
.form-error-summary { background: var(--alert-bg); border: 1px solid #f0c4c0; border-left: 4px solid var(--alert); color: #7a1a15; padding: var(--sp-3) var(--sp-4); border-radius: var(--r-sm); font-size: var(--fs-sm); font-weight: 600; margin-bottom: var(--sp-4); }
.form-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-5); }
.result-note { font-size: var(--fs-xs); color: var(--slate); margin-top: var(--sp-3); }
.share-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-4); padding-top: var(--sp-4); border-top: 1px solid var(--line); }
.copied { color: var(--ok); font-weight: 650; font-size: var(--fs-sm); }
fieldset { border: 0; padding: 0; margin: 0; }
fieldset legend { font-weight: 650; color: var(--navy); font-size: var(--fs-sm); padding: 0; margin-bottom: var(--sp-2); }
.field-group { border: 1px solid var(--line); border-radius: var(--r); padding: var(--sp-4); }
.field-group + .field-group { margin-top: var(--sp-4); }
.adv-toggle { background: transparent; border: 0; color: var(--blue-600); font-weight: 650; cursor: pointer; padding: var(--sp-2) 0; font-size: var(--fs-sm); display: inline-flex; align-items: center; gap: 6px; }
.adv-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
.chev { transition: transform var(--dur) var(--ease); }
.icon-list { list-style: none; display: grid; gap: var(--sp-2); }
.icon-list li { display: flex; gap: var(--sp-2); align-items: flex-start; font-size: var(--fs-sm); color: var(--ink-soft); }
.icon-list li svg { flex: none; margin-top: 3px; color: var(--blue); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-6); }
@media (max-width: 760px){ .two-col { grid-template-columns: 1fr; } }
.mini-cards { display: grid; grid-template-columns: repeat(2,1fr); gap: var(--sp-3); }
@media (max-width: 560px){ .mini-cards { grid-template-columns: 1fr; } }
.mini-card { border: 1px solid var(--line); border-radius: var(--r); padding: var(--sp-4); background: var(--white); }
.mini-card h4 { color: var(--navy); font-size: var(--fs-base); margin-bottom: 4px; }
.mini-card p { font-size: var(--fs-sm); color: var(--slate); }
.section-sep { border: 0; border-top: 1px solid var(--line); }
