:root {
  --ink: #141414;
  --ink-soft: #3c3935;
  --muted: #655f59;
  --paper: #f3f0ea;
  --panel: #ffffff;
  --line: #e3ddd4;
  --deep: #121212;
  --red: #e03a2b;
  --red-btn: #d43326;
  --red-btn-hover: #b4271c;
  --green: #146c3a;
  --green-bg: #e7f4ec;
  --amber: #8a5a10;
  --amber-bg: #fbf3e2;
  --over: #9e2419;
  --over-bg: #fdecea;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Courier New", monospace;
  --shadow: 0 12px 32px rgba(18, 18, 18, 0.05);
  --radius: 16px;
  --header: 4.5rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.5;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: white;
  color: black;
  padding: 8px 12px;
  z-index: 20;
}
.skip:focus { top: 12px; }

.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

.site-header {
  background: var(--deep);
  color: #f7f4ef;
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  padding: 12px 0;
}
.brand img { display: block; height: 42px; width: auto; }
.nav-toggle {
  margin-left: auto;
  background: transparent;
  color: white;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
}
#site-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  order: 4;
  padding-bottom: 8px;
}
#site-nav.is-open { display: flex; }
#site-nav a {
  text-decoration: none;
  color: #f7f4ef;
  padding: 8px 2px;
  font-weight: 600;
  font-size: 0.95rem;
}
#site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--red); padding-left: 10px; }
.lo-card {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-left: auto;
}
.lo-card img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.7);
}
.lo-card strong { display: block; font-size: 0.95rem; }
.lo-card span, .lo-card a { display: block; color: #d9d3cb; font-size: 0.78rem; text-decoration: none; }
.lo-card a:hover { color: white; }

main { padding: 28px 0 64px; }

.hero { display: grid; gap: 22px; margin-bottom: 22px; }
.eyebrow {
  color: var(--red);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); max-width: 16ch; }
.lede { max-width: 62ch; color: var(--ink-soft); font-size: 1.05rem; margin-top: 12px; }
.hero-figure {
  background: var(--deep);
  color: white;
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.hero-figure::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: var(--red);
}
.hero-label { display: block; color: #d9d3cb; font-size: 0.85rem; margin-bottom: 6px; }
.hero-num { display: block; font-family: var(--serif); font-size: clamp(2.6rem, 7vw, 4.2rem); line-height: 1; font-weight: 600; }
.hero-sub { display: block; margin-top: 10px; color: #efeae3; max-width: 42ch; }

.layout { display: grid; gap: 16px; }
.layout > *,
.panel,
.table-scroll { min-width: 0; }
.table-scroll { max-width: 100%; }
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}
.panel h2 { font-size: 1.55rem; }
.panel h3 { font-size: 1.25rem; margin-bottom: 8px; }
.section-gap { margin-top: 16px; }

.fields { display: grid; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 0.92rem; font-weight: 600; }
.field .hint, .hint { font-weight: 400; color: var(--muted); font-size: 0.82rem; }
.field input, .field select, .inline-input {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 11px 12px;
  font-weight: 500;
}
.field input:focus, .field select:focus, .inline-input:focus {
  outline: 2px solid var(--deep);
  outline-offset: 1px;
  border-color: var(--deep);
}
.down-row { display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: center; }
.segmented { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.segmented button {
  background: white;
  border: 0;
  padding: 11px 12px;
  cursor: pointer;
  font-weight: 700;
}
.segmented button.is-on { background: var(--deep); color: white; }
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 500;
  font-size: 0.95rem;
}
.check input { width: 18px; height: 18px; margin-top: 3px; flex: none; }
.summary { margin-top: 12px; color: var(--ink-soft); font-size: 0.92rem; }
.rate-status { margin-top: 8px; color: var(--muted); font-size: 0.85rem; }

.structures { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.structure {
  text-align: left;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  cursor: pointer;
  min-height: 148px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.structure:hover { border-color: #c9c2b8; }
.structure.is-selected {
  background: var(--deep);
  color: white;
  border-color: var(--deep);
  box-shadow: inset 0 -4px 0 var(--red);
}
.structure.is-blocked { opacity: 0.55; cursor: not-allowed; }
.structure .tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--red);
}
.structure.is-selected .tag { color: #ffb1a8; }
.structure strong { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; }
.structure em { font-style: normal; font-family: var(--mono); font-size: 0.95rem; }
.structure small { color: var(--muted); display: block; }
.structure.is-selected small { color: #d9d3cb; }

.results-grid, .two, .steps, .strategy-grid, .cash-grid { display: grid; gap: 12px; }
.stat-label { color: var(--muted); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.stat-value { font-family: var(--serif); font-size: 1.8rem; display: block; margin: 4px 0; }
.pay-line { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.pay-line span:last-child { font-family: var(--mono); }

.chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.78rem;
  font-weight: 700;
}
.chip-covered { background: var(--green-bg); color: var(--green); }
.chip-needs { background: var(--amber-bg); color: var(--amber); }
.chip-over { background: var(--over-bg); color: var(--over); }

.table-scroll { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 0.92rem; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); font-weight: 700; }
td.num, th.num { text-align: right; font-family: var(--mono); }
tr.is-selected { background: #f7f1ee; }
.note {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 8px;
}

.steps { counter-reset: step; }
.step {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
}
.step span {
  display: inline-flex;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--deep);
  color: white;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 8px;
}
.step h3 { font-size: 1.2rem; margin-bottom: 6px; }

.btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-primary { background: var(--red-btn); color: white; }
.btn-primary:hover { background: var(--red-btn-hover); }
.btn-primary:disabled { opacity: 0.65; cursor: progress; }
.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-block { width: 100%; }

.banner {
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 12px;
}
.banner.error { background: var(--over-bg); color: var(--over); }
.banner.success { background: var(--green-bg); color: #0f4d2b; }
.banner.info { background: #f7f1ee; color: var(--ink-soft); }
[hidden] { display: none !important; }

.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.file-row { font-size: 0.92rem; }
.file-row input { margin-top: 6px; }

.cash-card, .strategy {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: #fff;
}
.cash-card.is-promo { border-color: var(--deep); box-shadow: inset 0 -4px 0 var(--red); }
.cash-card h3, .strategy h3 { font-size: 1.3rem; margin-bottom: 6px; }
.debt {
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
  margin-top: 10px;
}
.debt-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }

.site-footer {
  background: var(--deep);
  color: #efeae3;
  padding: 36px 0 28px;
  font-size: 0.92rem;
}
.footer-grid { display: grid; gap: 18px; }
.footer-logo { height: 48px; width: auto; margin-bottom: 10px; }
.site-footer a { color: white; }
.footer-legal { margin-top: 18px; color: #cfc8bf; font-size: 0.82rem; display: grid; gap: 8px; }
.eho { display: flex; gap: 10px; align-items: center; }
.eho svg { width: 42px; height: 42px; flex: none; }

.fine-print { font-size: 0.82rem; color: var(--muted); margin-top: 10px; }

.method h2 { margin: 28px 0 8px; font-size: 1.7rem; }
.method h3 { margin: 18px 0 6px; }
.method p, .method li { max-width: 72ch; }
.method ul, .method ol { padding-left: 1.2rem; display: grid; gap: 6px; }
.method .panel { margin-top: 12px; }
.formula {
  font-family: var(--mono);
  background: var(--deep);
  color: #f7f4ef;
  border-radius: 12px;
  padding: 12px 14px;
  overflow-x: auto;
  font-size: 0.85rem;
}

#flyer-host {
  position: absolute;
  left: -12000px;
  top: 0;
  width: 816px;
}
/* Flyer: navy and gold, Sora. 816 x 1056 CSS px = US letter at 96 dpi. */
.flyer-sheet {
  --fz-navy: #16182d;
  --fz-card: #1e213e;
  --fz-line: #303458;
  --fz-gold: #e0b44a;
  --fz-muted: #b8bccc;
  --fz-muted2: #8c91a8;
  width: 816px;
  height: 1056px;
  background: var(--fz-navy);
  color: #ffffff;
  font-family: 'Sora', var(--sans);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0 38px 14px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.flyer-sheet p { margin: 0; }
.fz-topbar { height: 8px; background: var(--fz-gold); margin: 0 -38px; }
.fz-kicker { color: var(--fz-gold); font-weight: 600; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; margin: 13px 0 11px !important; }
.fz-kicker span, .fz-sign span, .fz-lo span { opacity: 0.7; padding: 0 4px; }
.fz-photo {
  position: relative;
  height: 336px;
  border: 1.5px solid rgba(224, 180, 74, 0.75);
  border-radius: 16px;
  overflow: hidden;
  background: var(--fz-card);
  flex: none;
}
.flyer-sheet[data-cards="4"] .fz-photo { height: 212px; }
.flyer-sheet[data-cards="4"] .fz-big { font-size: 58px; }
.flyer-sheet[data-cards="4"] .fz-lead { font-size: 28px; }
.flyer-sheet[data-cards="4"] .fz-cards { gap: 11px; margin-top: 14px; }
.flyer-sheet[data-cards="4"] .fz-card-amt { font-size: 29px; }
.flyer-sheet[data-cards="4"] .fz-bar { padding: 10px 16px; font-size: 23px; margin-top: 12px; }
.flyer-sheet[data-cards="4"] .fz-explain { font-size: 13.5px; margin-top: 10px !important; }
.fz-photo-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fz-photo-ph {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 78% 18%, rgba(224, 180, 74, 0.22), rgba(224, 180, 74, 0) 46%),
    linear-gradient(150deg, #262a52 0%, #1b1e3b 55%, #14162a 100%);
  display: flex; align-items: center; justify-content: center;
}
.fz-photo-ph::before {
  content: ""; position: absolute; inset: 18px; border: 1px solid rgba(224, 180, 74, 0.35); border-radius: 10px;
}
.fz-ph-logo { width: 150px; height: auto; border-radius: 10px; opacity: 0.95; margin-bottom: 70px; }
.fz-photo-shade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 52%;
  background: linear-gradient(to bottom, rgba(22, 24, 45, 0) 0%, rgba(22, 24, 45, 0.55) 55%, rgba(22, 24, 45, 0.85) 100%);
}
.fz-photo-text { position: absolute; left: 22px; right: 22px; bottom: 18px; text-align: left; }
.fz-addr { font-weight: 700; font-size: 25px; line-height: 1.15; color: #ffffff; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35); }
.fz-facts { font-weight: 500; font-size: 15px; color: var(--fz-gold); margin-top: 5px !important; }
.fz-hero { margin-top: 16px; }
.fz-lead { font-weight: 400; font-size: 31px; line-height: 1.1; }
.fz-big { font-weight: 700; font-size: 66px; line-height: 1.06; color: var(--fz-gold); letter-spacing: -0.01em; }
.fz-meta { font-size: 15px; color: var(--fz-muted); margin-top: 1px !important; }
.fz-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; }
.fz-card {
  background: var(--fz-card);
  border: 1.5px solid var(--fz-line);
  border-radius: 14px;
  padding: 18px 10px 16px;
}
.flyer-sheet[data-cards="4"] .fz-card { padding: 9px 8px 8px; }
.fz-card.is-hi { border-color: var(--fz-gold); }
.fz-card-lbl { font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--fz-muted); }
.fz-card.is-hi .fz-card-lbl { color: var(--fz-gold); }
.fz-card-amt { font-size: 34px; font-weight: 700; line-height: 1.2; margin: 3px 0 2px !important; }
.fz-card-sub { font-size: 13px; line-height: 1.3; color: var(--fz-muted2); }
.fz-bar {
  margin-top: 16px;
  background: var(--fz-gold);
  color: #16182d;
  border-radius: 14px;
  font-weight: 700;
  font-size: 25px;
  padding: 13px 16px;
}
.fz-explain { font-size: 14.5px; line-height: 1.45; margin-top: 12px !important; color: #ffffff; white-space: pre-line; }
.fz-fine { margin-top: 8px; }
.fz-fine p { font-size: 9.5px; line-height: 1.38; color: var(--fz-muted2); margin-top: 3px !important; }
.fz-fine p.fz-legal { font-size: 8px; line-height: 1.35; }
.fz-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--fz-line);
  padding-top: 10px;
  text-align: left;
}
.fz-lo, .fz-agent { display: flex; align-items: center; gap: 9px; }
.fz-agent { margin-left: auto; text-align: right; flex-direction: row-reverse; }
.fz-agent[hidden] { display: none; }
.fz-foot p { font-size: 9.5px; line-height: 1.35; color: var(--fz-muted); }
.fz-foot p.fz-name { font-size: 11.5px; font-weight: 600; color: #ffffff; }
.fz-foot p.fz-name span { font-weight: 400; color: var(--fz-gold); font-size: 9.5px; }
.fz-head { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; object-position: center 18%; border: 1.5px solid var(--fz-gold); }
.fz-agent img { width: 38px; height: 38px; object-fit: cover; border-radius: 8px; background: #ffffff; }
.fz-agent img[hidden] { display: none; }
.fz-eho { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 7.5px; color: var(--fz-muted); width: 62px; text-align: center; line-height: 1.15; }
.fz-agent:not([hidden]) + .fz-eho { margin-left: 4px; }
.fz-agent[hidden] + .fz-eho { margin-left: auto; }
.fz-eho svg { width: 18px; height: 18px; }
.fz-sign { font-size: 12px; font-weight: 500; color: #ffffff; margin-top: 7px !important; }

@media (min-width: 720px) {
  .fields { grid-template-columns: 1fr 1fr; }
  .field-wide { grid-column: 1 / -1; }
  .hero { grid-template-columns: 1.2fr 0.8fr; align-items: end; }
  .results-grid, .two, .steps, .strategy-grid { grid-template-columns: 1fr 1fr; }
  .cash-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.3fr 1fr auto; align-items: start; }
  .structures { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 980px) {
  .nav-toggle { display: none; }
  #site-nav {
    display: flex;
    flex-direction: row;
    width: auto;
    order: 0;
    padding: 0;
    gap: 16px;
  }
  #site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--red); padding-left: 2px; }
  .lo-card { margin-left: auto; }
  .layout-main { grid-template-columns: 360px 1fr; align-items: start; }
  .structures { grid-template-columns: repeat(3, 1fr); }
}
