/* The Simple Plan online (2026-10-14): the landing page and its form
   (/simple-plan) and the plan page (/simple-plan/plan). Page-scoped on top of
   styles.css; brand tokens are the site's. Phone first: one column by
   default, two where the screen allows. Spec:
   kb/planning-platform/simple-plan-online.md. */

.sp {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  --sp-card: #0a0a0a;
  --sp-well: #060606;
  --sp-dim: #a3a3a3;
  --sp-faint: #6a6a6a;
  --sp-good: #4ade80;
  --sp-warn: #e8a634;
  --sp-bad: #ff5a5a;
}
/* :where() keeps these defaults at element weight, so every class below (and the
   site's .legal-disclaimer p) wins without !important. */
:where(.sp) p, :where(.sp) li { font-size: 15px; line-height: 1.7; color: var(--sp-dim); }
.sp a { color: var(--blue); }
.sp a:hover { color: var(--ink); }
.sp strong { color: var(--ink); }
.sp :focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ── buttons ─────────────────────────────────────────────── */
.sp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 8px;
  border: 1px solid var(--accent); background: var(--accent); color: #fff;
  font-family: 'Space Mono', monospace; font-size: 14px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: background 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.sp a.sp-btn { color: #fff; }
.sp-btn:hover { background: var(--accent-glow); box-shadow: 0 0 20px rgba(255, 58, 58, 0.45); }
.sp-btn[disabled] { opacity: 0.45; cursor: not-allowed; box-shadow: none; background: var(--accent); }
.sp-btn--ghost { background: transparent; border-color: var(--rule-2); color: var(--ink); }
.sp a.sp-btn--ghost { color: var(--ink); }
.sp-btn--ghost:hover { background: #111; border-color: var(--ink-faint); box-shadow: none; }
.sp-btn--small { min-height: 44px; padding: 8px 14px; font-size: 12px; }
.sp-link {
  background: none; border: 0; padding: 10px 4px; min-height: 44px; cursor: pointer;
  font: inherit; font-size: 13px; color: var(--blue); text-decoration: underline;
  text-underline-offset: 3px;
}
.sp-link:hover { color: var(--ink); }

/* ── landing: hero ───────────────────────────────────────── */
.sp-hero { max-width: 760px; padding-top: 8px; }
.sp-hero .page__title { margin-bottom: 24px; }
.sp-hero .sp-lede { font-size: clamp(16px, 1.6vw, 19px); line-height: 1.65; color: var(--ink); margin: 0 0 28px; }
.sp-cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 18px; }
.sp-trust { font-size: 12px !important; letter-spacing: 0.08em; color: var(--sp-faint) !important; margin: 0; }

/* ── landing: sections ───────────────────────────────────── */
.sp-sec { margin-top: 72px; }
.sp-sec > h2, .sp-h2 {
  font-family: 'Bebas Neue', sans-serif; font-weight: 400; font-size: clamp(30px, 4vw, 42px);
  letter-spacing: 0.02em; line-height: 1.1; color: var(--ink); margin: 0 0 14px;
}
.sp-sec > p { max-width: 720px; margin: 0 0 16px; }
.sp-kicker {
  font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--ink-dim);
  display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
}
.sp-kicker::before { content: ''; width: 28px; height: 1px; background: var(--accent); }

.sp-get { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 0 32px; grid-template-columns: 1fr; }
.sp-get li { position: relative; padding: 14px 0 14px 28px; border-bottom: 1px solid var(--rule); }
.sp-get li::before { content: '✦'; position: absolute; left: 0; top: 14px; color: var(--accent); font-size: 12px; }

.sp-tiers { display: grid; gap: 20px; grid-template-columns: 1fr; margin-top: 24px; }
.sp-tier {
  background: var(--sp-card); border: 1px solid var(--rule-2); border-radius: 12px;
  padding: 28px 24px 24px; display: flex; flex-direction: column; gap: 12px;
}
.sp-tier--plus { border-color: var(--amber); box-shadow: 0 0 0 1px var(--amber), 0 12px 40px rgba(232, 166, 52, 0.1); }
.sp-tier__name { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-dim); font-weight: 700; }
.sp-tier--plus .sp-tier__name { color: var(--amber); }
.sp-tier__price { font-size: clamp(34px, 5vw, 44px); font-weight: 700; color: var(--ink); line-height: 1; }
.sp-tier__price small { font-size: 0.42em; font-weight: 400; color: var(--ink-dim); margin-left: 4px; }
.sp-tier ul { list-style: none; padding: 0; margin: 4px 0 8px; }
.sp-tier li { padding: 6px 0 6px 22px; position: relative; font-size: 14px; }
.sp-tier li::before { content: '+'; position: absolute; left: 2px; color: var(--accent); font-weight: 700; }
.sp-tier .sp-btn { margin-top: auto; }
.sp-credit { margin-top: 18px !important; font-size: 14px !important; }

.sp-fit { display: grid; gap: 20px; grid-template-columns: 1fr; margin-top: 20px; }
.sp-fit > div { background: var(--sp-card); border: 1px solid var(--rule-2); border-radius: 12px; padding: 22px 22px 14px; }
.sp-fit h3 { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink); margin: 0 0 10px; }
.sp-fit ul { padding-left: 18px; margin: 0 0 8px; }
.sp-fit li { margin-bottom: 6px; font-size: 14px; }
.sp-fit__call { border-color: var(--rule-2); }

.sp-how { list-style: none; counter-reset: how; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; grid-template-columns: 1fr; }
.sp-how li { counter-increment: how; position: relative; padding: 16px 16px 16px 60px; background: var(--sp-card); border: 1px solid var(--rule); border-radius: 10px; }
.sp-how li::before {
  content: counter(how); position: absolute; left: 16px; top: 14px; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--accent); color: var(--accent-glow); font-weight: 700; font-size: 14px;
  display: grid; place-items: center;
}
.sp-how strong { display: block; margin-bottom: 2px; }

.sp-need { columns: 1; padding-left: 18px; margin: 14px 0 0; }
.sp-need li { break-inside: avoid; margin-bottom: 8px; font-size: 14px; }

.sp-faq { margin-top: 18px; border-top: 1px solid var(--rule); }
.sp-faq details { border-bottom: 1px solid var(--rule); }
.sp-faq summary {
  list-style: none; cursor: pointer; padding: 16px 40px 16px 0; min-height: 48px; position: relative;
  font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.5;
}
.sp-faq summary::-webkit-details-marker { display: none; }
.sp-faq summary::after { content: '+'; position: absolute; right: 8px; top: 14px; font-size: 20px; color: var(--accent); }
.sp-faq details[open] summary::after { content: '−'; }
.sp-faq details p { margin: 0 0 16px; max-width: 760px; }

/* ── the sample page (landing) ───────────────────────────── */
.sp-sample {
  position: relative; margin-top: 22px; background: var(--sp-card); border: 1px solid var(--rule-2);
  border-radius: 12px; padding: 28px 22px 22px; overflow: hidden;
}
.sp-sample__tag {
  position: absolute; top: 0; right: 0; background: var(--amber); color: #0a0a0a; font-size: 10px; font-weight: 700;
  letter-spacing: 0.24em; text-transform: uppercase; padding: 6px 14px; border-bottom-left-radius: 10px;
}
.sp-sample__who { font-size: 12px !important; letter-spacing: 0.06em; color: var(--sp-faint) !important; margin: 0 0 12px; }
.sp-sample__headline {
  font-family: 'Instrument Serif', serif; font-style: italic; font-size: clamp(20px, 2.6vw, 26px) !important;
  line-height: 1.4 !important; color: var(--ink) !important; margin: 0 0 20px;
}
.sp-sample ol, .sp-sample ul { padding-left: 20px; margin: 4px 0 0; }
.sp-sample ol li, .sp-sample ul li { margin-bottom: 8px; font-size: 14px; }
.sp-sample__h { font-size: 11px !important; letter-spacing: 0.18em; text-transform: uppercase; color: var(--amber) !important; font-weight: 700; margin: 18px 0 4px; }
.sp-sample__start li { color: var(--ink) !important; }
.sp-privacy { margin: 18px 0 0 !important; font-size: 14px !important; color: var(--ink) !important; }
.sp-sample__foot { font-size: 12px !important; color: var(--sp-faint) !important; margin: 16px 0 0; }

/* KPI tiles, shared by the sample, the snapshot and the plan */
.sp-kpis { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 0 18px; }
.sp-kpi { background: var(--sp-well); border: 1px solid var(--rule-2); border-radius: 10px; padding: 12px 14px; min-width: 0; }
.sp-kpi__label { font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-dim); margin: 0 0 6px; line-height: 1.4; }
.sp-kpi__value { font-size: clamp(19px, 2.6vw, 24px); font-weight: 700; color: var(--ink); line-height: 1.15; overflow-wrap: anywhere; }
.sp-kpi__note { font-size: 11.5px; color: var(--sp-faint); margin-top: 4px; line-height: 1.45; }
.sp-kpi--good .sp-kpi__value { color: var(--sp-good); }
.sp-kpi--warn .sp-kpi__value { color: var(--sp-warn); }
.sp-kpi--bad .sp-kpi__value { color: var(--sp-bad); }

/* ── the form ────────────────────────────────────────────── */
.spf {
  margin-top: 24px; background: var(--sp-card); border: 1px solid var(--rule-2); border-radius: 14px;
  padding: 22px 18px 20px; scroll-margin-top: calc(var(--bar-h) + 12px);
}
.spf-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.spf-of { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-dim); }
.spf-of b { color: var(--ink); }
.spf-saved { font-size: 12px; color: var(--sp-faint); }
.spf-saved.ok { color: var(--sp-good); }
.spf-bar { height: 4px; background: var(--rule-2); border-radius: 4px; margin: 12px 0 10px; overflow: hidden; }
.spf-bar i { display: block; height: 100%; background: var(--accent); border-radius: 4px; transition: width 0.25s ease; }
.spf-dots { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; list-style: none; padding: 0; margin: 0 0 18px; }
.spf-dots button {
  width: 100%; min-height: 44px; border-radius: 8px; border: 1px solid var(--rule-2); background: var(--sp-well);
  color: var(--ink-dim); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; padding: 0;
}
.spf-dots button:hover { border-color: var(--ink-faint); color: var(--ink); }
.spf-dots button.done { color: var(--sp-good); border-color: rgba(74, 222, 128, 0.35); }
.spf-dots button[aria-current="step"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.spf-dots .lbl { display: none; }

.spf-head { font-family: 'Bebas Neue', sans-serif; font-weight: 400; font-size: clamp(30px, 4vw, 38px); letter-spacing: 0.02em; line-height: 1.1; margin: 0 0 6px; color: var(--ink); }
.spf-head:focus { outline: none; }
.spf-intro { margin: 0 0 18px !important; }

.spf-group { border: 1px solid var(--rule-2); border-radius: 12px; padding: 16px 14px 6px; margin: 0 0 16px; min-width: 0; }
.spf-group > legend, .spf-group__title {
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink); font-weight: 700; padding: 0 6px;
}
.spf-group__title { padding: 0; margin: 0 0 12px; display: block; }
.spf-grid { display: grid; grid-template-columns: 1fr; gap: 4px 16px; }
.spf-f { min-width: 0; margin: 0 0 14px; }
fieldset.spf-f { border: 0; padding: 0; }
.spf-f > label, .spf-f > .spf-q { display: block; font-size: 14px; color: var(--ink); margin-bottom: 6px; line-height: 1.45; font-weight: 700; }
.spf-f .opt { font-weight: 400; color: var(--sp-faint); font-size: 12px; }
.spf-help { font-size: 12.5px !important; line-height: 1.55 !important; color: var(--sp-faint) !important; margin: 6px 0 0; }
.spf input[type="text"], .spf select {
  width: 100%; min-height: 48px; background: var(--sp-well); border: 1px solid var(--rule-2); border-radius: 8px;
  color: var(--ink); font-family: 'Space Mono', monospace; font-size: 16px; padding: 10px 12px;
}
.spf input[type="text"]:focus, .spf select:focus { outline: none; border-color: var(--blue); }
.spf input[aria-invalid="true"] { border-color: var(--sp-bad); }
.spf-adorn { position: relative; display: flex; align-items: center; }
.spf-adorn > span { position: absolute; color: var(--ink-dim); font-size: 16px; pointer-events: none; }
.spf-adorn--pre > span { left: 12px; }
.spf-adorn--pre input[type="text"] { padding-left: 28px; }
.spf-adorn--post > span { right: 12px; }
.spf-adorn--post input[type="text"] { padding-right: 34px; }
.spf-err { color: var(--sp-bad) !important; font-size: 13px !important; margin: 6px 0 0; }

/* segmented choice: real radios, styled as big pills */
.spf-seg { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.spf-seg label {
  position: relative; flex: 1 1 auto; min-width: 0; min-height: 48px; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 10px 14px; border: 1px solid var(--rule-2); border-radius: 8px; background: var(--sp-well);
  color: var(--ink-dim); font-size: 14px; line-height: 1.3; cursor: pointer;
}
.spf-seg label:hover { border-color: var(--ink-faint); color: var(--ink); }
.spf-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.spf-seg input:checked + span { color: #fff; }
.spf-seg label:has(input:checked) { border-color: var(--accent); background: rgba(214, 40, 40, 0.14); color: #fff; }
.spf-seg label:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }

/* list rows: debts, children */
.spf-row { border: 1px solid var(--rule-2); border-radius: 12px; padding: 14px 14px 4px; margin: 0 0 12px; background: var(--sp-well); }
.spf-row__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.spf-row__head b { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink); }
.spf-remove {
  min-height: 44px; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--rule-2); background: transparent;
  color: var(--ink-dim); font: inherit; font-size: 12px; cursor: pointer;
}
.spf-remove:hover { color: var(--sp-bad); border-color: var(--sp-bad); }
.spf-add { margin: 0 0 16px; }
/* round 8: the question that opens a list (other pensions, other accounts), and the accounts list inside the savings group */
.spf-q--lead { font-size: 14px !important; font-weight: 700; color: var(--ink) !important; line-height: 1.45 !important; margin: 0 0 4px; }
.spf-sub { border-top: 1px solid var(--rule); margin-top: 6px; padding-top: 14px; }
.spf-sub > .spf-help { margin: 0 0 12px; }
.spf-empty { font-size: 13px !important; color: var(--sp-faint) !important; margin: 0 0 12px; }

.spf-nav { display: flex; gap: 12px; justify-content: space-between; align-items: center; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--rule); }
.spf-nav .sp-btn { flex: 1 1 0; }
.spf-nav .sp-btn--ghost { flex: 0 1 auto; }
.spf-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 14px; }
.spf-foot p { font-size: 12px !important; color: var(--sp-faint) !important; margin: 0; }
.spf-confirm { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--ink); }

/* the last step: review, snapshot, tier, pay */
.spf-review { list-style: none; padding: 0; margin: 0 0 18px; border-top: 1px solid var(--rule); }
.spf-review li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--rule); font-size: 14px; }
.spf-review li span { min-width: 0; }
.spf-review li span b { display: block; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-dim); }
.spf-snap { border: 1px solid var(--rule-2); border-radius: 12px; padding: 18px 16px; margin: 0 0 20px; background: var(--sp-well); }
.spf-snap__headline { font-family: 'Instrument Serif', serif; font-style: italic; font-size: 21px !important; line-height: 1.45 !important; color: var(--ink) !important; margin: 0 0 14px; }
.spf-note { border-left: 2px solid var(--sp-warn); padding: 4px 0 4px 14px; margin: 0 0 16px; }
.spf-note p { margin: 0 0 8px; font-size: 14px; color: var(--ink); }
.spf-note--bad { border-left-color: var(--sp-bad); }
.spf-tiers { display: grid; gap: 10px; grid-template-columns: 1fr; border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.spf-tiers legend { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 10px; padding: 0; }
.spf-tier {
  display: grid; grid-template-columns: auto 1fr auto; gap: 4px 12px; align-items: start; padding: 14px; cursor: pointer;
  border: 1px solid var(--rule-2); border-radius: 12px; background: var(--sp-well);
}
.spf-tier:has(input:checked) { border-color: var(--accent); background: rgba(214, 40, 40, 0.1); }
.spf-tier:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }
.spf-tier input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); }
.spf-tier b { color: var(--ink); font-size: 15px; }
.spf-tier em { font-style: normal; color: var(--ink); font-weight: 700; white-space: nowrap; }
.spf-tier small { grid-column: 2 / -1; color: var(--sp-dim); font-size: 13px; line-height: 1.5; }
.spf-pay { width: 100%; }
.spf-fine { font-size: 12.5px !important; color: var(--sp-faint) !important; margin: 12px 0 0; }
.spf-privacy { font-size: 13px !important; color: var(--ink) !important; margin: 10px 0 0; padding-left: 10px; border-left: 2px solid var(--sp-good); }
.spf-say { min-height: 1.6em; font-size: 14px !important; margin: 12px 0 0; color: var(--ink) !important; }
.spf-say.bad { color: var(--sp-bad) !important; }

/* ── the plan page ───────────────────────────────────────── */
.spp-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.spp-head .page__title { margin-bottom: 8px; }
.spp-meta { font-size: 12px !important; color: var(--sp-faint) !important; margin: 0; letter-spacing: 0.04em; }
.spp-tools { display: flex; flex-wrap: wrap; gap: 10px; }
.spp-banner { border: 1px dashed var(--sp-warn); border-radius: 10px; padding: 12px 14px; margin: 16px 0; color: var(--sp-warn); font-size: 13px; }
.spp-state { background: var(--sp-card); border: 1px solid var(--rule-2); border-radius: 12px; padding: 24px 20px; margin-top: 24px; }
.spp-state h2 { font-family: 'Bebas Neue', sans-serif; font-weight: 400; font-size: 30px; letter-spacing: 0.02em; color: var(--ink); margin: 0 0 10px; }
.spp-headline {
  font-family: 'Instrument Serif', serif; font-style: italic; font-size: clamp(22px, 3vw, 30px); line-height: 1.4;
  color: var(--ink); border-left: 2px solid var(--accent); padding: 4px 0 4px 18px; margin: 24px 0 28px;
}
.spp-sec { margin: 0 0 18px; background: var(--sp-card); border: 1px solid var(--rule-2); border-radius: 12px; padding: 22px 18px 16px; break-inside: avoid-page; }
.spp-sec > h2 {
  font-family: 'Bebas Neue', sans-serif; font-weight: 400; font-size: clamp(26px, 3.4vw, 32px); letter-spacing: 0.02em;
  color: var(--ink); margin: 0 0 12px; display: flex; align-items: baseline; gap: 12px;
}
.spp-sec > h2 .n { font-family: 'Space Mono', monospace; font-size: 12px; color: var(--accent-glow); letter-spacing: 0.1em; }
.spp-sec h3 { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); margin: 16px 0 8px; }
.spp-sec p { margin: 0 0 10px; }
.spp-sec ul { padding-left: 18px; margin: 0 0 10px; }
.spp-sec ol:not(.spp-actions) { padding-left: 28px; margin: 0 0 10px; }   /* the reset leaves a numbered list's numbers outside the card */
.spp-sec li { margin-bottom: 6px; font-size: 14px; }
.spp-cols { display: grid; gap: 0 24px; grid-template-columns: 1fr; }
.spp-table-wrap { overflow-x: auto; margin: 0 0 12px; }
.spp-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.spp-table th, .spp-table td { text-align: left; padding: 8px 8px 8px 0; border-bottom: 1px solid var(--rule); color: var(--sp-dim); vertical-align: top; }
.spp-table th { font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-dim); font-weight: 700; }
.spp-table td.num, .spp-table th.num { text-align: right; padding-right: 0; padding-left: 8px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.spp-table tr.total td { color: var(--ink); font-weight: 700; border-bottom: 0; border-top: 1px solid var(--rule-2); }
.spp-table td b { color: var(--ink); }
.spp-tag { display: inline-block; font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; padding: 2px 8px; border-radius: 999px; border: 1px solid currentColor; white-space: nowrap; }
.spp-tag--good { color: var(--sp-good); }
.spp-tag--warn { color: var(--sp-warn); }
.spp-tag--bad { color: var(--sp-bad); }
.spp-chart { margin: 8px 0 12px; }
.spp-chart svg { display: block; width: 100%; height: auto; }
.spp-chart figcaption { font-size: 12px; color: var(--sp-faint); margin-top: 6px; line-height: 1.5; }
.spp-actions { list-style: none; padding: 0 !important; margin: 0; counter-reset: act; }
.spp-actions > li { counter-increment: act; position: relative; padding: 14px 0 14px 46px; border-bottom: 1px solid var(--rule); margin: 0 !important; }
.spp-actions > li:last-child { border-bottom: 0; }
.spp-actions > li::before {
  content: counter(act); position: absolute; left: 0; top: 14px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 14px; display: grid; place-items: center;
}
.spp-act__title { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; color: var(--ink); font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.spp-act__amt { color: var(--amber); white-space: nowrap; }
/* a retirement amount with its words ("spend about $3,100 a month in retirement") wraps on a phone, its figure whole */
.spp-act__amt--words { white-space: normal; max-width: 100%; }
.spp-act__amt--words [data-f] { white-space: nowrap; }
.spp-actions p { margin: 0 0 4px; font-size: 14px; }
.spp-actions p b { color: var(--ink-dim); font-weight: 700; }
/* round 1 of the client-eyes review: start here, the one-line reasons, the tap-to-open words, the notes */
.spp-start { margin: 0 0 18px; border: 1px solid var(--amber); border-radius: 12px; padding: 16px 18px 8px; background: rgba(232, 166, 52, 0.06); }
.spp-start h2 { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--amber); margin: 0 0 8px; font-weight: 700; }
.spp-start ol { padding-left: 24px; margin: 0 0 8px; }
.spp-start li { color: var(--ink); font-size: 15px; margin-bottom: 6px; }
.spp-act__first { color: var(--amber) !important; font-size: 13px !important; font-style: italic; }
.spp-term {
  display: inline; background: none; border: 0; padding: 2px 0; margin: 0; font: inherit; color: inherit; cursor: pointer;
  text-decoration: underline dotted var(--blue); text-underline-offset: 3px; text-decoration-thickness: 1.5px;
}
.spp-term[aria-expanded="true"] { color: var(--ink); }
.spp-term__note {
  display: block; margin: 6px 0 8px; padding: 8px 12px; border-left: 2px solid var(--blue); background: var(--sp-well);
  font-size: 13px; line-height: 1.55; color: var(--sp-dim); font-style: normal; font-weight: 400; text-transform: none; letter-spacing: 0;
}
.spp-term__note[hidden] { display: none; }
/* a word explained in a line anyone sees, beside it (round 2 of the client-eyes review) */
.spp-gloss { color: var(--sp-faint); font-style: normal; font-weight: 400; text-transform: none; letter-spacing: 0; }
/* the plan page: one calm line after a run-out, and why the savings line climbs, under the chart */
.spp-calm { color: var(--ink) !important; font-size: 14px; font-weight: 400 !important; }
.spp-climb { margin: 4px 0 14px; font-size: 13.5px; color: var(--sp-dim); }
/* the preview's Review pill (site/assets/review-overlay.js, preview hosts only) sat over the surplus tile on a phone:
   on this page it rides at the top, beside the title, and scrolls away with it (round 2) */
@media (max-width: 639px) {
  body.spp-page .mgrv-pill { position: absolute; top: 118px; bottom: auto; right: 16px; padding: 7px 12px; }
}
.spp-fix { margin: 4px 0 12px; padding: 10px 14px; border-left: 2px solid var(--amber); font-size: 14px; line-height: 1.65; color: var(--sp-dim); }
.spp-fix b { color: var(--ink); }
.spp-note { margin: 8px 0 14px; padding: 10px 14px; border: 1px dashed var(--rule-2); border-radius: 10px; font-size: 13.5px; line-height: 1.6; color: var(--sp-dim); }
.spp-note b { color: var(--ink); }
.spp-fine { font-size: 12.5px !important; color: var(--sp-faint) !important; }
/* round 8: the pensions under the verdict, and how each account is counted under "Where you stand" */
.spp-pensions, .spp-notes { margin: 6px 0 14px; }
.spp-pensions h3, .spp-notes h3 { margin: 0 0 6px; }
.spp-pensions ul, .spp-notes ul { margin: 0; padding-left: 22px; }
.spp-pensions li, .spp-notes li { font-size: 14px; line-height: 1.6; margin: 0 0 6px; }
.spp-more { margin: 10px 0 0; border-top: 1px solid var(--rule); }
.spp-more summary { cursor: pointer; padding: 12px 0; min-height: 44px; font-size: 13px; font-weight: 700; color: var(--ink); }
.spp-more[open] summary { color: var(--blue); }
.spp-next { display: grid; gap: 14px; grid-template-columns: 1fr; }
.spp-next > div { border: 1px solid var(--rule-2); border-radius: 10px; padding: 16px; background: var(--sp-well); }
.spp-next h3 { margin-top: 0; }
.spp-print-only { display: none; }

/* a table that becomes label and value rows on a phone */
@media (max-width: 639px) {
  .spp-table--stack thead { display: none; }
  .spp-table--stack tr { display: block; border-bottom: 1px solid var(--rule); padding: 8px 0; }
  .spp-table--stack td, .spp-table--stack td.num { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border: 0; padding: 3px 0; text-align: right; white-space: normal; }
  .spp-table--stack td::before { content: attr(data-label); color: var(--ink-dim); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; text-align: left; }
  .spp-table--stack td:first-child { justify-content: flex-start; text-align: left; }
  .spp-table--stack td:first-child::before { content: none; }
}

/* ── wider screens ───────────────────────────────────────── */
@media (min-width: 640px) {
  .spf { padding: 28px 28px 24px; }
  .spf-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spf-tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sp-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sp-kpis--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .spp-sec { padding: 26px 26px 18px; }
  .sp-need { columns: 2; column-gap: 32px; }
}
@media (min-width: 860px) {
  .sp-get { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sp-tiers, .sp-fit { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sp-how { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spp-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spp-next { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sp-sample { padding: 34px 34px 26px; }
}
@media (min-width: 1000px) {
  .spf-dots .lbl { display: block; font-size: 10px; font-weight: 400; letter-spacing: 0.02em; line-height: 1.2; padding: 0 4px 4px; }
  .spf-dots button { min-height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
}
@media (max-width: 680px) {
  /* The site's fixed ticker and status bar take the bottom 90-odd pixels of a phone screen and sat over the plan's
     words and the Pay button (round 1). On these two pages only, they sit at the end of the page instead. */
  .bottombar { position: static; }
  .page.page--calc { padding-bottom: 24px; }
  .sp { padding: 0 16px; }
  .sp-sec--sample { margin-top: 36px; }   /* the sample's first lines on the second phone screen */
  .spf { padding: 18px 14px 18px; margin-left: -4px; margin-right: -4px; }
  .spf-group { padding: 14px 12px 4px; }
  .sp-sec { margin-top: 56px; }
}

/* ── print: the plan as a clean document ─────────────────── */
@media print {
  @page { margin: 16mm 14mm; }
  html, body { background: #fff !important; color: #000 !important; }
  body::before, body::after, .topbar, .bottombar, .ghost-type, .spp-tools, .spp-no-print, [class^="mgrv-"] { display: none !important; }
  .page { padding: 0 !important; min-height: 0 !important; }
  .sp { max-width: none; padding: 0; --sp-dim: #222; --sp-faint: #555; }
  .sp p, .sp li, .spp-table td { color: #222 !important; }
  .sp strong, .spp-table td b, .spp-act__title, .spp-sec > h2, .spp-sec h3, .page__title, .spp-headline, .sp-kpi__value { color: #000 !important; text-shadow: none !important; }
  .page__eyebrow, .spp-meta, .sp-kpi__label, .spp-table th { color: #444 !important; }
  .spp-sec, .sp-kpi, .spp-next > div { background: #fff !important; border-color: #bbb !important; box-shadow: none !important; }
  .spp-sec { padding: 10px 0 6px; border: 0 !important; border-top: 1px solid #999 !important; border-radius: 0; }
  .spp-table th, .spp-table td { border-color: #ccc !important; }
  .spp-actions > li::before { background: #000 !important; color: #fff !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .spp-act__amt, .sp-kpi--good .sp-kpi__value, .sp-kpi--warn .sp-kpi__value, .sp-kpi--bad .sp-kpi__value { color: #000 !important; }
  .spp-tag { color: #000 !important; }
  .spp-chart svg { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .spp-print-only { display: block; }
  .spp-start, .spp-fix, .spp-note { background: #fff !important; border-color: #999 !important; }
  .spp-start h2, .spp-start li, .spp-act__first, .spp-fix, .spp-note, .spp-fix b, .spp-note b { color: #000 !important; }
  .spp-term { text-decoration: none; color: #000 !important; }
  .legal-disclaimer { color: #555 !important; border-color: #bbb !important; }
  .legal-disclaimer__label { color: #444 !important; }
  a { color: #000 !important; text-decoration: underline; }
}
@media (prefers-reduced-motion: reduce) {
  .spf-bar i { transition: none; }
}
