/* ============================================================
   Dang! Payoff — THE STAGE, the calculator pages' approved layout (founder rulings
   2026-09-20A/B/D; the pixel-level authority is _design/calculator-reference.html).

   ⛔ OWNERSHIP BY CONSTRUCTION (ruling 2026-09-20D). css/seo-page.css imports this
   sheet into the top cascade LAYER (`stage`), above `chart` (payoff-chart.css) and
   `base` (seo.css): every declaration here wins over those sheets by layer, never
   by specificity or source order. This sheet owns every element inside .seo-stage
   EXCEPT the chart figure, which payoff-chart.css owns; it never names a .po-chart*
   class (the chart sits in the stage-owned slot .seo-stage__chart). A modifier
   compounds its base class (.seo-stage__hero.seo-stage__hero--flag) so it outranks
   the base at every breakpoint. _design/tools/cascade_audit.mjs measures all of this
   on the served page and refuses a candidate where any owner's declaration lost.
   ============================================================ */
.seo-page--stage, .seo-page--stage .legal, .seo-page--stage .cine { background: var(--payoff-canvas); }
.seo-page--stage .cine2-nav { background: var(--payoff-canvas); border-bottom: 1px solid rgba(23,25,27,0.11); }
/* the live nav paints its phone menu toggle cream for the dark landing hero; on the light SEO header it was invisible */
.seo-page .cine2-nav .cine2-navtoggle { color: var(--payoff-text-2); }
.seo-page--stage .cine2-nav .po-cta, .seo-page--stage a.seo-cta { background: var(--payoff-brown); }
.seo-page--stage a.seo-cta:hover { background: var(--payoff-coral-press); }
.seo-page--stage {
  --t-hero: clamp(44px, 4.45vw, 64px); --t-h: clamp(24px, 2.3vw, 33px); --t-ctl: clamp(18px, 1.74vw, 25px);
  --t-name: clamp(16px, 1.32vw, 19px); --t-figs: clamp(15px, 1.25vw, 18px); --t-body: clamp(14px, 1.18vw, 17px);
  --t-kpi: clamp(20px, 1.74vw, 25px); --t-small: clamp(13px, 1.04vw, 15px); --t-label: 12px;
  --pad-x: clamp(20px, 3.06vw, 44px); --hit: 44px; --s-line: rgba(23,25,27,0.11); --s-line-soft: rgba(23,25,27,0.06);
  --s-wash: rgba(255,255,255,0.5); --s-ink-3: #6F6B66;
}
.legal--stage { padding-top: 70px; padding-bottom: 0; }
.seo-stage { margin: 0 0 clamp(36px, 6vw, 64px); }
.seo-stage__grid { display: grid; grid-template-columns: minmax(300px, 28fr) minmax(0, 72fr); max-width: 1760px; margin: 0 auto; padding: 0; }
.seo-stage__rail { border-right: 1px solid var(--s-line); padding: 40px clamp(20px, 2vw, 28px) 32px var(--pad-x); min-width: 0; }
.seo-stage__main { display: flex; flex-direction: column; padding: 40px var(--pad-x) 24px; min-width: 0; }
.seo-stage .seo-crumb { margin: 0 0 18px; }
.seo-stage__title {
  font-family: var(--payoff-font-display); font-weight: 600; font-size: var(--t-h); letter-spacing: -0.02em; line-height: 1; margin: 0 0 8px; text-wrap: balance; color: var(--payoff-text);
}
.seo-stage__invite { font-size: var(--t-small); color: var(--s-ink-3); margin: 0 0 24px; line-height: 1.35; }

/* ── the rail: rows with visible controls, editing in place ── */
.seo-debts { list-style: none; margin: 0; padding: 0; }
.seo-debt { position: relative; padding: 0 0 18px; border-bottom: 1px solid var(--s-line); margin-bottom: 24px; border-radius: 6px; }
.seo-debt__top { display: flex; align-items: center; gap: 4px; min-height: var(--hit); }
.seo-debt__name { font-size: var(--t-name); font-weight: 600; margin: 0; line-height: 1.15; flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; color: var(--payoff-text); }
.seo-debt[data-fresh] .seo-debt__name { color: var(--s-ink-3); }
.seo-debt__figs { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: var(--t-figs); color: var(--payoff-text-2); font-variant-numeric: tabular-nums; margin: 6px 0 0; line-height: 1.2; }
.seo-debt__figs i { font-style: normal; color: var(--s-ink-3); }
.seo-debt__figs small { display: none; }
.seo-debt__figs em { font-style: normal; }
.seo-act { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: var(--hit); height: var(--hit); padding: 0 10px; border: 0; background: transparent; font: 600 14.5px var(--payoff-font-sans); color: var(--payoff-forest); cursor: pointer; flex: 0 0 auto; }
.seo-act--remove { color: var(--s-ink-3); font-size: 22px; font-weight: 400; margin-right: -10px; }
.seo-act::before { content: ""; position: absolute; inset: 6px 0; border-radius: 10px; z-index: -1; }
.seo-act:hover::before { background: rgba(31,60,47,0.08); }
.seo-act:focus-visible { outline: 0; }
.seo-act:focus-visible::before { outline: 2px solid var(--payoff-sage); outline-offset: 1px; }
.seo-debt:hover { background: var(--s-wash); box-shadow: 0 0 0 10px var(--s-wash); }
.seo-debt__edit { display: none; }
.seo-debt.is-editing .seo-debt__figs { display: none; }
.seo-debt.is-editing .seo-act--edit { display: none; }
.seo-debt.is-editing .seo-debt__edit { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px 14px; margin-top: 8px; }
/* ⛔ specificity: the article-era `.seo-field > span` / `.seo-field input` rules above are 0,1,1 and would restyle the
   wrapper and the input (a 52px input inside a 44px box was measured on every single-card page); every stage rule
   here carries `.seo-stage` so it wins on its own weight, never by source order */
.seo-stage .seo-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.seo-stage .seo-field > span { display: block; font-size: var(--t-label); font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; color: var(--s-ink-3); margin: 0; }
.seo-stage .seo-field > .seo-field__in { display: flex; align-items: center; gap: 4px; height: var(--hit); padding: 0 12px; border: 1px solid rgba(23,25,27,0.2); border-radius: 10px; background: #fff; font: 500 17px var(--payoff-font-num); color: var(--payoff-text); font-variant-numeric: tabular-nums; text-transform: none; letter-spacing: 0; }
.seo-stage .seo-field__in i { font-style: normal; color: var(--s-ink-3); font-size: 14px; flex: 0 0 auto; }
.seo-stage .seo-field__in input { flex: 1 1 0; min-width: 0; width: 100%; height: auto; border: 0; border-radius: 0; background: transparent; padding: 0; font: inherit; color: inherit; -moz-appearance: textfield; }
.seo-stage .seo-field__in input:focus { outline: 0; }
.seo-stage .seo-field__in input::-webkit-outer-spin-button, .seo-stage .seo-field__in input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.seo-stage .seo-field__in input::placeholder { color: var(--s-ink-3); font-weight: 400; }
.seo-stage .seo-field__in:focus-within { border-color: transparent; outline: 2px solid var(--payoff-sage); outline-offset: 1px; }
.seo-stage .seo-field.is-error .seo-field__in { border-color: var(--payoff-warn); }
.seo-field__err { grid-column: 1 / -1; font-size: 13.5px; color: var(--payoff-warn); margin: -2px 0 0; line-height: 1.4; }
.seo-field__err:empty { display: none; }
.seo-field--name { grid-column: 1 / -1; }
.seo-done { grid-column: 1 / -1; justify-self: start; height: var(--hit); padding: 0 20px; border: 0; border-radius: 12px; background: var(--payoff-forest); color: #fff; font: 600 15px var(--payoff-font-sans); cursor: pointer; }
.seo-done:focus-visible { outline: 2px solid var(--payoff-sage); outline-offset: 2px; }
.seo-debt--single { border-bottom: 0; padding-bottom: 0; }
.seo-debt--single .seo-debt__edit { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 0; }
.seo-debt--single:hover { background: transparent; box-shadow: none; }
.seo-add { display: flex; align-items: center; gap: 14px; width: 100%; min-height: var(--hit); padding: 0 22px; border: 1px dashed rgba(23,25,27,0.28); border-radius: 12px; color: var(--payoff-text-2); font-size: var(--t-body); font-family: var(--payoff-font-sans); background: transparent; cursor: pointer; text-align: left; }
.seo-add b { font-weight: 400; font-size: 22px; line-height: 1; color: var(--s-ink-3); }
.seo-add:hover { border-color: var(--payoff-forest); color: var(--payoff-text); }
.seo-add:focus-visible { outline: 2px solid var(--payoff-sage); outline-offset: 2px; }

/* ── the rail: controls ── */
.seo-stage__controls { margin-top: 36px; }
.seo-stage__controls > * + * { margin-top: 28px; }
.seo-stage__ctl-label { display: block; font-family: var(--payoff-font-display); font-weight: 600; font-size: var(--t-ctl); letter-spacing: -0.02em; line-height: 1; margin: 0 0 18px; color: var(--payoff-text); }
.seo-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.seo-chips button { height: 40px; min-width: 0; padding: 0 14px; border-radius: 20px; border: 1px solid rgba(23,25,27,0.2); background: transparent; font: 600 var(--t-small) var(--payoff-font-sans); color: var(--payoff-text); font-variant-numeric: tabular-nums; white-space: nowrap; cursor: pointer; line-height: 1; }
.seo-chips button[aria-pressed="true"] { background: var(--payoff-forest); border-color: var(--payoff-forest); color: #fff; }
.seo-chips button:focus-visible { outline: 2px solid var(--payoff-sage); outline-offset: 2px; }
.seo-stage .seo-seg { display: grid; grid-template-columns: 1fr 1fr; height: 40px; padding: 0; border: 1px solid rgba(23,25,27,0.2); border-radius: 12px; overflow: hidden; width: 100%; max-width: 335px; background: transparent; gap: 0; }
.seo-stage .seo-seg button { min-height: 0; border: 0; border-radius: 0; background: transparent; font: 600 var(--t-body) var(--payoff-font-sans); color: var(--payoff-text); white-space: nowrap; padding: 0 8px; }
.seo-stage .seo-seg button[aria-pressed="true"] { background: var(--payoff-forest); color: #fff; }
.seo-stage .seo-presets { margin: 28px 0 0; }
.seo-stage .seo-presets .seo-eyebrow { color: var(--payoff-text-2); }
.seo-stage .seo-presets__row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.seo-stage .seo-presets__row button { min-height: 40px; padding: 0 14px; border: 1px solid var(--payoff-border); border-radius: 12px; background: var(--payoff-bg-warm); font: 600 14.5px var(--payoff-font-sans); color: var(--payoff-text-2); cursor: pointer; text-align: left; }
.seo-stage .seo-presets__row button[aria-pressed="true"] { background: #fff; color: var(--payoff-text); border-color: rgba(23,25,27,0.2); }
.seo-stage .seo-presets__row button:focus-visible { outline: 2px solid var(--payoff-sage); outline-offset: 2px; }
.seo-stage__nosave { font-size: var(--t-small); color: var(--s-ink-3); margin: 32px 0 0; }

/* ── the stage: head, chart, slider, foot ── */
.seo-stage__result { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: flex-start; row-gap: 18px; margin: 0 0 20px; }
.seo-stage__heroblock { text-align: right; padding-right: clamp(18px, 2.2vw, 32px); border-right: 1px solid var(--s-line); }
.seo-stage__heroblock:last-child { border-right: 0; padding-right: 0; }
.seo-stage__hero { font-family: var(--payoff-font-display); font-weight: 600; font-size: var(--t-hero); letter-spacing: -0.03em; line-height: 0.9; margin: 0; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--payoff-text); text-wrap: none; }
.seo-stage__hero.seo-stage__hero--flag { font-size: clamp(24px, 2.6vw, 38px); line-height: 1.1; color: var(--payoff-warn-deep); letter-spacing: -0.02em; white-space: normal; text-align: left; }
.seo-stage__sub { font-size: var(--t-small); color: var(--s-ink-3); margin: 8px 0 0; line-height: 1.2; }
.seo-stage__hero--flag + .seo-stage__sub { font-size: var(--t-body); color: var(--payoff-text-2); max-width: 62ch; text-align: left; line-height: 1.45; }
.seo-stage__heroblock.seo-stage__heroblock--flag { text-align: left; border-right: 0; padding-right: 0; flex: 1 1 100%; }
.seo-stage__tiles { display: flex; align-items: flex-start; }
.seo-stage__tile { padding: 2px clamp(18px, 2.1vw, 30px) 0; border-right: 1px solid var(--s-line); }
.seo-stage__tile:last-child { border-right: 0; padding-right: 0; }
.seo-stage__tile-k { font-size: var(--t-small); color: var(--s-ink-3); margin: 0 0 8px; line-height: 1; white-space: nowrap; }
.seo-stage__tile-v { font-size: var(--t-kpi); font-weight: 500; margin: 0; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; line-height: 1; white-space: nowrap; color: var(--payoff-text); }
.seo-stage__line { display: none; }
.seo-stage__rule { border: 0; border-top: 1px solid var(--s-line); margin: 28px 0 26px; }
.seo-slider { display: block; }
.seo-slider__label { display: block; font-family: var(--payoff-font-display); font-weight: 600; font-size: var(--t-ctl); margin: 0 0 20px; line-height: 1; color: var(--payoff-text); }
.seo-slider__row { display: flex; align-items: center; gap: 22px; max-width: 668px; min-height: var(--hit); }
.seo-slider input[type="range"] { flex: 1 1 auto; width: 100%; height: var(--hit); margin: 0; -webkit-appearance: none; appearance: none; background: transparent; cursor: pointer; }
.seo-slider input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(to right, var(--payoff-forest) 0, var(--payoff-forest) var(--fill, 0%), rgba(23,25,27,0.12) var(--fill, 0%), rgba(23,25,27,0.12) 100%); }
.seo-slider input[type="range"]::-moz-range-track { height: 4px; border-radius: 2px; background: rgba(23,25,27,0.12); }
.seo-slider input[type="range"]::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--payoff-forest); }
.seo-slider input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 24px; height: 24px; margin-top: -10px; border-radius: 50%; background: var(--payoff-forest); box-shadow: 0 0 0 4px var(--payoff-canvas); }
.seo-slider input[type="range"]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--payoff-forest); border: 0; box-shadow: 0 0 0 4px var(--payoff-canvas); }
.seo-slider input[type="range"]:focus-visible { outline: 2px solid var(--payoff-sage); outline-offset: 2px; border-radius: 3px; }
.seo-slider__value { font-size: clamp(18px, 1.46vw, 21px); font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--payoff-text); letter-spacing: normal; }
.seo-stage__foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; margin-top: 18px; }
.seo-stage__whatif { flex: 1 1 320px; font-size: var(--t-body); color: var(--payoff-text-2); margin: 0; line-height: 1.4; max-width: 60ch; min-height: 0; }
.seo-stage__whatif:empty { display: none; }
.seo-stage__cta { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex: 0 1 auto; margin-left: auto; }
.seo-stage__cta a.seo-cta { width: auto; margin: 0; min-height: var(--hit); padding: 0 30px; border-radius: 22px; font-size: var(--t-body); white-space: nowrap; text-align: start; }
.seo-stage__cta .seo-note { margin: 0; text-align: right; font-size: 13px; line-height: 1.47; color: var(--s-ink-3); }
.seo-stage__eyebrow { display: block; font-family: var(--payoff-font-sans); font-size: 11px; line-height: 1.47; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--payoff-text-2); margin: 0 0 14px; }
.seo-stage--embedded { margin-top: var(--dang-s-10); }
.seo-stage ~ .po-wrap .seo-answer { margin-top: 0; }
.seo-assum-wrap.seo-panel { margin: 0 0 var(--dang-s-10); }
.seo-assum-wrap.seo-panel .seo-assumptions { margin-top: var(--dang-s-3); }

/* ── a narrow stage (768–1023): one column, the desktop hierarchy ── */
@media (max-width: 1023px) {
  .seo-stage__grid { grid-template-columns: minmax(0, 1fr); }
  .seo-stage__rail { border-right: 0; border-bottom: 1px solid var(--s-line); padding-right: var(--pad-x); }
  .seo-stage__result { justify-content: flex-start; }
  .seo-stage__heroblock { text-align: left; padding-right: clamp(18px, 3vw, 32px); }
}

/* ── phones (≤ 767): the mobile composition ── */
@media (max-width: 767px) {
  .seo-stage__grid { display: flex; flex-direction: column; padding: 0 var(--pad-x) 28px; }
  .seo-stage__rail, .seo-stage__main { display: contents; }
  .seo-stage .seo-crumb { order: 0; margin: 18px 0 0; }
  .seo-stage__eyebrow { display: block; order: 0; font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--payoff-text-2); margin: 18px 0 8px; }
  .seo-stage__result { order: 1; display: block; margin: 0 0 18px; }
  .seo-stage__heroblock { text-align: left; padding: 0; border: 0; }
  .seo-stage__hero { font-size: clamp(40px, 12vw, 46px); line-height: 1; }
  .seo-stage__sub { font-family: var(--payoff-font-display); font-size: 17px; font-weight: 600; color: var(--payoff-text); margin-top: 8px; }
  .seo-stage__hero--flag + .seo-stage__sub { font-family: var(--payoff-font-sans); font-size: 14px; font-weight: 400; color: var(--payoff-text-2); }
  .seo-stage__tiles { display: none; }
  .seo-stage__line { display: block; text-align: start; font-size: 13.5px; color: var(--payoff-text-2); margin: 8px 0 0; font-variant-numeric: tabular-nums; line-height: 1.4; }
  .seo-stage__line .seo-stage__item { display: inline; white-space: nowrap; }
  .seo-stage__line .seo-stage__dot { color: var(--s-ink-3); margin: 0 4px; }
  .seo-stage__chart { order: 2; margin: 0 0 16px; padding: 0 0 14px; border-bottom: 1px solid var(--s-line-soft); }
  .seo-stage__controls { order: 3; margin: 0 0 18px; display: flex; flex-direction: column; align-items: stretch; gap: 14px; padding: 0 0 18px; border-bottom: 1px solid var(--s-line-soft); }
  .seo-stage__controls > * + * { margin-top: 0; }
  .seo-stage__controls > div { min-width: 0; }
  .seo-stage__ctl-label { font-size: 20px; line-height: 1; letter-spacing: -0.02em; margin: 0 0 4px; width: fit-content; }
  .seo-chips { gap: 6px; }
  .seo-chips button { height: var(--hit); min-width: var(--hit); padding: 0 14px; font-size: 13px; }
  .seo-stage .seo-seg { height: auto; flex: 1 1 200px; max-width: 335px; border-radius: 23px; }
  .seo-stage .seo-seg button { font-size: 13px; height: var(--hit); }
  /* ⛔ THE PHONE RHYTHM IS WRITTEN ON THE SAME SELECTOR AS ITS DESKTOP COUNTERPART (gate 1 F-4,
     founder ruling 20E). `.seo-stage .seo-presets { margin: 28px 0 0 }` (0,2,0) beat the phone's
     `.seo-stage__controls > * + * { margin-top: 0 }` (0,1,0) — an INTRA-owner loss layers cannot
     settle, because both rules are the stage's own. Same selector, later in the sheet: the phone
     value wins by order, and the flex `gap` governs the rhythm as it does for every sibling. */
  .seo-stage .seo-presets { flex: 1 1 100%; margin-top: 0; }
  .seo-stage .seo-presets__row button { min-height: var(--hit); }
  .seo-stage__debts { order: 4; }
  .seo-stage__title { font-size: 20px; margin: 0 0 4px; }
  .seo-stage__invite { font-size: 13px; margin: 0 0 12px; }
  .seo-debts { display: grid; gap: 9px; }
  .seo-debt { border: 1px solid rgba(23,25,27,0.12); border-radius: 12px; padding: 4px 12px 12px; margin: 0; background: var(--s-wash); box-shadow: none; }
  .seo-debt:hover { background: rgba(255,255,255,0.8); box-shadow: none; }
  .seo-debt--single { border: 0; background: transparent; padding: 0; }
  .seo-debt__name { font-size: 14px; }
  .seo-act { padding: 0 8px; font-size: 13px; }
  .seo-act--remove { margin-right: -12px; }
  .seo-debt__figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 2px; }
  .seo-debt__figs i { display: none; }
  .seo-debt__figs span { display: flex; flex-direction: column; gap: 4px; padding-left: 12px; border-left: 1px solid var(--s-line-soft); min-width: 0; }
  .seo-debt__figs span:first-child { padding-left: 0; border: 0; }
  .seo-debt__figs small { display: block; font-size: 10px; color: var(--s-ink-3); line-height: 1; }
  .seo-debt__figs em { font-size: 14px; font-weight: 600; color: var(--payoff-text); line-height: 1; white-space: normal; overflow-wrap: anywhere; }
  .seo-debt.is-editing .seo-debt__edit { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
  .seo-add { min-height: var(--hit); justify-content: center; margin: 9px 0 0; font-size: 15px; font-weight: 600; color: var(--payoff-text); border-radius: 10px; }
  .seo-add b { font-size: 18px; }
  .seo-stage__rule, .seo-slider { display: none; }
  /* ⛔ ruling 2026-10-05N §8A: the no-signup line is VISIBLE on a phone too (it was hidden here). */
  .seo-stage__nosave { margin: var(--dang-s-4) 0 0; font-size: var(--dang-text-caption); }
  .seo-stage__foot { order: 5; margin: 0; }
  .seo-stage__whatif { display: none; }
  .seo-stage__cta { align-items: stretch; width: 100%; margin-top: 10px; }
  .seo-stage__cta a.seo-cta { border-radius: 12px; font-size: 15px; width: 100%; }
  .seo-stage__cta .seo-note { text-align: center; font-size: 11px; }
}
@media (max-width: 359px) {
  .seo-debt__figs { grid-template-columns: 1fr 1fr; }
  .seo-debt__figs span:nth-child(5) { grid-column: 1 / -1; padding-left: 0; border-left: 0; margin-top: 6px; }
}
