/* Right Repay v5 visual system. White page, black type, one green accent used
   sparingly, one typeface (Public Sans, SIL OFL, self-hosted), thin rules
   instead of boxes, tables for comparisons, big tabular numbers. */

@font-face { font-family: "Bricolage Grotesque"; src: url("/assets/fonts/BricolageGrotesque-Variable.ttf") format("truetype"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("/assets/fonts/PublicSans-Variable.ttf") format("truetype"); font-weight: 300 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("/assets/fonts/PublicSans-Italic-Variable.ttf") format("truetype"); font-weight: 300 800; font-style: italic; font-display: swap; }

:root {
  --bg: #ffffff;
  --well: #f4f4f2;
  --ink: #0b0b0b;
  --ink-soft: #3b3b3b;
  --muted: #6b6b6b;
  --line: #e3e3e0;
  --line-strong: #bdbdb8;
  --accent: #0b0b0b;
  --accent-soft: #fff7bf;
  --mark: #ffe14d;
  --mark-deep: #f0c800;
  --warning: #9a6b12;
  --warning-soft: #fbf3df;
  --danger: #a3352b;
  --body: "Public Sans", "Helvetica Neue", Arial, sans-serif;
  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 14px;
  --shadow: none;
  --ring: 0 0 0 3px var(--accent-soft);
  /* legacy names still referenced by components */
  --paper: var(--well);
  --surface: var(--bg);
  --hairline: var(--line);
  --accent-deep: #000000;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; min-height: 100svh; display: flex; flex-direction: column; }
body > header, body > .top, body > main, body > section, body > div { width: 100%; }
body > main { flex: 1 0 auto; }
body > footer { margin-top: auto; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--display); font-variation-settings: "opsz" 96, "wdth" 100; font-weight: 700; letter-spacing: -0.03em; line-height: 1.02; margin: 0 0 0.4em; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
a:hover { text-decoration-color: var(--ink); }
strong, b { font-weight: 700; }
small { font-size: 0.86em; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.num { font-variant-numeric: tabular-nums; font-weight: 700; letter-spacing: -0.02em; }
.eyebrow { font-size: 0.95rem; font-weight: 700; color: var(--ink); margin: 0 0 8px; }
.eyebrow::before { content: ""; display: inline-block; width: 22px; height: 3px; background: currentColor; margin: 0 10px 5px 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 720px; }
.stack { display: grid; gap: 16px; }
.top-gap { margin-top: 24px; }
.linkish { background: none; border: 0; padding: 0; color: var(--ink); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.linkish:hover { text-decoration: underline; }
.linkish.quiet { color: var(--muted); }
.center { text-align: center; }

/* ---------- Header and footer ---------- */
.top { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; }
.wordmark { font-family: var(--display); font-weight: 700; font-size: 1.45rem; letter-spacing: -0.03em; color: var(--ink); text-decoration: none; }
.wordmark em { font-style: normal; }
.wordmark.small { font-size: 1.05rem; }
.wordmark:hover { text-decoration: none; }
.links { display: flex; align-items: center; gap: 22px; }
.links a { color: var(--ink); font-weight: 700; font-size: 0.95rem; text-decoration: none; }
.links a:hover { text-decoration: underline; }
.links .btn { margin-left: 4px; }
.links .btn-primary { color: var(--ink); }
.links .btn-primary:hover { color: var(--ink); }
footer { border-top: 2px solid var(--ink); margin-top: 72px; padding: 36px 24px 48px; width: 100%; }
body > footer.wrap { max-width: none; padding-left: 24px; padding-right: 24px; }
body > footer.wrap > * { max-width: 1120px; margin-left: auto; margin-right: auto; }
footer .row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: start; }
footer .row > span:first-child { display: block; }
footer .row a { color: var(--ink); font-size: 0.95rem; font-weight: 700; text-decoration: none; }
footer .row a:hover { text-decoration: underline; }
footer .row > span:last-child, footer .row .foot-links { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: flex-end; }
footer .legal { margin: 28px 0 0; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; max-width: 72ch; line-height: 1.5; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 3px; padding: 12px 20px; font: inherit; font-weight: 600; font-size: 0.95rem; text-decoration: none; cursor: pointer; line-height: 1.2; white-space: nowrap; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--mark); color: var(--ink); }
.btn-primary:hover { background: var(--mark-deep); }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { border-color: var(--ink); }
.btn-quiet { background: transparent; color: var(--ink-soft); }
.btn-quiet:hover { color: var(--ink); }
.btn[disabled] { opacity: 0.55; cursor: default; }
.btn-lg { padding: 15px 26px; font-size: 1.05rem; }
.btn-sm { padding: 9px 14px; font-size: 0.88rem; }
.btn-block { width: 100%; }
.status { color: var(--ink); font-weight: 700; background: var(--accent-soft); display: inline-block; padding: 4px 8px; }

/* ---------- Landing ---------- */
.hero-full { padding: 36px 0 32px; }
.hero-full h1 { max-width: 19ch; margin-bottom: 20px; font-size: clamp(2.2rem, 5vw, 3.8rem); }
.hero-row { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 18px 40px; margin-bottom: 32px; }
.hero-row .lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 44ch; margin: 0; }
.hero-full .hero-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.hero-micro { margin: 0; font-size: 0.85rem; color: var(--muted); }
.demo-wrap { width: 100%; }
.demo-table { width: 100%; border-collapse: collapse; border-top: 2px solid var(--ink); }
.demo-table th { text-align: left; font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); padding: 12px 16px 10px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.demo-table td { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 1.05rem; }
.demo-table .col-pos { width: 2.2em; padding-right: 8px; }
.demo-table .col-num { text-align: right; }
.demo-table td.col-num { font-size: 1.15rem; }
.demo-table .pos { color: var(--muted); font-weight: 700; }
.demo-table tr.first .pos { color: var(--accent); }
.demo-table tr.first td { font-weight: 700; }
.demo-table .plan-cell { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; }
.demo-table tr.first .plan-cell { font-weight: 700; }
.demo-table .plan-cell .short { display: none; }
.demo-table .ends { color: var(--ink-soft); font-weight: 400; }
.demo-table tr.first .ends { color: var(--ink); font-weight: 400; }
.demo-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; margin: 12px 0 0; font-size: 0.9rem; color: var(--muted); }
.demo-foot a { font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-micro { margin: 12px 0 0; font-size: 0.85rem; color: var(--muted); }
.stat-strip { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat-strip .num { font-size: 1.6rem; }
.stat-strip .proof { margin: 0; width: 100%; color: var(--muted); font-size: 0.9rem; }
.section { padding: 56px 0 8px; }
.section-title { margin: 0 0 18px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.section-head .section-title { margin-bottom: 0; }
.section-gap { height: 24px; }
.example-tag { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin: 0 0 12px; }
.band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: 56px 0; border-top: 1px solid var(--line); }
.band img { border-radius: 12px; }
.band h2 { max-width: 24ch; text-wrap: balance; }
.band p { color: var(--ink-soft); }
.closer { padding: 64px 0 24px; border-top: 1px solid var(--line); }
.closer h2 { max-width: 22ch; text-wrap: balance; margin-bottom: 20px; }
.hero-stat { padding: 18px 0; }

/* ---------- Page heads ---------- */
.page-title { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin: 4px 0 10px; max-width: 28ch; text-wrap: balance; }
.page-sub { color: var(--ink-soft); font-size: 1.05rem; max-width: 62ch; margin: 0 0 24px; }
.title-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.title-row .page-title { margin-bottom: 8px; }
.edit-link { font-weight: 600; white-space: nowrap; }
.deadline { padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 0 20px; max-width: 70ch; }
.assume { color: var(--muted); font-size: 0.85rem; margin: 14px 0 0; max-width: 80ch; }
.callout { padding: 4px 0 4px 16px; border-left: 3px solid var(--ink); margin: 0 0 12px; }
.callout.warn { border-left-color: var(--warning); background: var(--warning-soft); }
.callout.note { border-left-color: var(--accent); background: var(--accent-soft); }
.warnings { margin-top: 24px; }
.empty { padding: 48px 0; max-width: 60ch; }
.empty h1 { margin-bottom: 8px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 32px; }
.box { padding: 18px 0 6px; border-top: 1px solid var(--line); }
.box h3 { margin: 0 0 8px; font-size: 1rem; }
.box p { color: var(--ink-soft); margin: 0 0 8px; }

/* ---------- The flow ---------- */
.flow { padding: 8px 0 64px; display: flex; justify-content: center; }
.flow > #app { width: min(640px, 100%); }
.step { width: 100%; }
.progress-wrap { display: flex; align-items: center; gap: 14px; margin: 8px 0 40px; }
.progress-label { font-size: 0.82rem; font-weight: 700; color: var(--muted); white-space: nowrap; min-width: 4.5em; }
.progress { flex: 1; height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--ink); transition: width 200ms ease; }
.step .q { font-size: clamp(1.6rem, 3.2vw, 2.2rem); margin: 0 0 8px; max-width: 22ch; text-wrap: balance; }
.step .why { color: var(--ink-soft); margin: 0 0 22px; max-width: 56ch; }
.step .q + .choices, .step .q + .stack, .step .q + .two-up, .step .q + .file-summary { margin-top: 22px; }
.choices { display: grid; gap: 10px; }
.choice { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; text-align: left; padding: 16px 18px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; font: inherit; font-size: 1.05rem; font-weight: 600; cursor: pointer; color: var(--ink); }
.choice small { display: block; font-weight: 400; color: var(--muted); font-size: 0.88rem; margin-top: 2px; }
.choice:hover { border-color: var(--ink); }
.choice:active { background: var(--well); }
.choice[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--well); }
.choice .k { flex: none; min-width: 1.2em; text-align: right; font-size: 0.82rem; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.choice[aria-pressed="true"] .k { color: var(--ink); }
.field-lg { display: block; }
.field-lg .lbl { display: block; font-weight: 600; margin-bottom: 8px; }
.field-lg input { width: 100%; font: inherit; font-size: 1.25rem; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; color: var(--ink); }
.field-lg input::placeholder { color: #b5b5ae; }
.field-lg input:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 3px var(--accent-soft); }
.field-lg input[aria-invalid="true"] { border-color: var(--danger); }
.field-lg .hint { display: block; color: var(--muted); font-size: 0.86rem; margin-top: 8px; }
.err { color: var(--danger); font-size: 0.92rem; margin: 8px 0 0; }
.affix { position: relative; display: block; }
.affix.money::before { content: "$"; position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 1.25rem; }
.affix.money input { padding-left: 34px; }
.affix.pct::after { content: "%"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 1.25rem; }
.affix.pct input { padding-right: 40px; }
.two-up { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.counter { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 12px 12px 16px; border: 1px solid var(--line-strong); border-radius: 10px; }
.counter > span:first-child { font-weight: 600; }
.counter small { display: block; font-weight: 400; color: var(--muted); font-size: 0.86rem; }
.counter .ctl { display: flex; align-items: center; gap: 6px; }
.counter button { width: 42px; height: 42px; border: 1px solid var(--line-strong); background: #fff; border-radius: 8px; font-size: 1.3rem; cursor: pointer; color: var(--ink); }
.counter button:hover { border-color: var(--ink); }
.counter button[disabled] { opacity: 0.35; cursor: default; }
.counter output { min-width: 2.2ch; text-align: center; font-weight: 700; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.segmented { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; }
.segmented button { border: 0; background: #fff; padding: 10px 14px; font: inherit; font-size: 0.92rem; font-weight: 600; cursor: pointer; color: var(--ink-soft); white-space: nowrap; }
.segmented button + button { border-left: 1px solid var(--line-strong); }
.segmented button:hover { background: var(--well); }
.segmented button[aria-checked="true"] { background: var(--ink); color: #fff; }
.nav-row { display: flex; justify-content: space-between; align-items: center; margin-top: 32px; }
.hint-key { color: var(--muted); font-size: 0.9rem; }
.file-opt { margin-top: 22px; padding: 16px 18px; border: 1px dashed var(--line-strong); border-radius: 10px; }
.file-opt.over { border-color: var(--ink); background: var(--well); }
.file-opt input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.file-row b { display: block; }
.file-row .muted { display: block; font-size: 0.88rem; }
.file-row .btn { flex: none; }
.file-opt details { margin-top: 12px; }
.file-opt summary { cursor: pointer; font-size: 0.9rem; font-weight: 600; color: var(--ink-soft); list-style: none; }
.file-opt summary::-webkit-details-marker { display: none; }
.file-opt summary::before { content: "+ "; color: var(--muted); }
.file-opt details[open] summary::before { content: "\2212 "; }
.file-opt .how { color: var(--ink-soft); font-size: 0.92rem; margin: 8px 0 0; }
.file-summary { padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.file-summary .big { font-size: 1.2rem; margin: 0 0 6px; }
.file-summary .big .num { font-size: 1.35rem; }
.toggle { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle .track { flex: none; width: 42px; height: 24px; border-radius: 12px; background: var(--line-strong); position: relative; transition: background 120ms ease; margin-top: 2px; } /* check-design:allow P-01 switch control */
.toggle .knob { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform 120ms ease; } /* check-design:allow P-01 switch control */
.toggle input:checked + .track { background: var(--ink); }
.toggle input:checked + .track .knob { transform: translateX(18px); }
.toggle input:focus-visible + .track { box-shadow: 0 0 0 3px var(--accent-soft); }
.toggle-text { font-weight: 600; }
.toggle-text small { display: block; font-weight: 400; color: var(--muted); font-size: 0.86rem; }
.slider { display: block; }
.slider-head { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; margin-bottom: 6px; }
.slider-head .num { font-size: 1.1rem; }
.slider input[type="range"] { width: 100%; accent-color: var(--ink); }
.stripe-mark { height: 18px; width: auto; vertical-align: middle; color: var(--muted); }
.email-form { display: grid; gap: 14px; margin-top: 16px; }
.email-form .btn { justify-self: start; }

/* ---------- Plan identity: position, emblem, name ---------- */
.plan-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.plan-title .pos { flex: none; display: inline-block; min-width: 1.15em; text-align: center; color: var(--muted); font-weight: 700; font-size: 1.5rem; line-height: 1; font-variant-numeric: tabular-nums; }
.plan-title .pos.first { color: var(--ink); }
.plan-title.size-hero .pos { font-size: 2.2rem; }
.plan-title.size-row .pos { font-size: 1.05rem; }
.plan-mark { flex: none; display: block; }
.plan-title-text { display: flex; flex-direction: column; min-width: 0; }
.plan-name { font-weight: 700; letter-spacing: -0.015em; font-size: 1.3rem; line-height: 1.15; }
.plan-title.size-hero .plan-name { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
.plan-title.size-row .plan-name { font-weight: 600; font-size: 1rem; }
.plan-sub { font-size: 0.88rem; margin-top: 2px; }
.rank-card .plan-title { margin-bottom: 14px; }
.locked-mark { display: block; }

/* ---------- Ranking ---------- */

.rank-card { border: 0; border-top: 1px solid var(--line-strong); padding: 20px 0; background: #fff; }
.rank-card.first { border-top: 2px solid var(--ink); }
.rank-card.reveal { border-top: 2px solid var(--ink); }
.rc-figures { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.rc-figures > div { padding: 10px 16px 10px 0; border-right: 1px solid var(--line); }
.rc-figures > div:last-child { border-right: 0; }
.rc-figures .num { display: block; font-size: 1.6rem; line-height: 1.05; }
.rank-card.big .rc-figures .num { font-size: 1.9rem; }
.rc-figures small { display: block; color: var(--muted); font-size: 0.8rem; margin-top: 4px; }
.blur { filter: blur(7px); user-select: none; }
.factors { list-style: none; margin: 0; padding: 0; }
.factors li { display: grid; grid-template-columns: 150px 1fr; gap: 6px 14px; align-items: center; padding: 7px 0; border-top: 1px solid var(--line); }
.factors:not(.compact) li { grid-template-columns: 150px 96px 1fr; }
.factors.compact { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
.factors.compact li { grid-template-columns: 1fr 72px; font-size: 0.88rem; }
.f-label { color: var(--ink-soft); font-size: 0.9rem; }
.f-bar { display: flex; gap: 3px; height: 6px; }
.f-bar i { flex: 1; background: var(--line); border-radius: 2px; }
.f-bar i.on { background: var(--ink); }
.f-note { color: var(--ink-soft); font-size: 0.9rem; }
.see-why { display: block; width: 100%; margin-top: 12px; padding: 10px 0 0; border: 0; border-top: 1px solid var(--line); background: none; font: inherit; font-weight: 600; font-size: 0.92rem; color: var(--accent); cursor: pointer; text-align: left; }
.see-why:hover { text-decoration: underline; }
.rc-why { margin-top: 12px; }
.rc-notes { margin: 12px 0 0; padding-left: 18px; color: var(--ink-soft); font-size: 0.92rem; }
.rc-notes li { margin: 4px 0; }
.hook { list-style: none; margin: 4px 0 16px; padding: 0; }
.hook li { padding: 8px 0; border-top: 1px solid var(--line); }
.hook li b { color: var(--ink); }
.rest { display: grid; gap: 14px; }
.excluded { display: grid; gap: 0; border-top: 1px solid var(--line); }
.ex-row { display: grid; grid-template-columns: 260px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.ex-name { font-weight: 600; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 8px; }
.ex-name .plan-mark { opacity: 0.55; }
.chart { border-top: 1px solid var(--line); padding-top: 12px; }
.c-legend { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; color: var(--muted); font-size: 0.85rem; margin: 0 0 10px; }
.c-legend .sw { display: inline-block; width: 12px; height: 12px; border-radius: 2px; margin-left: 8px; }
.c-legend .sw:first-child { margin-left: 0; }
.c-row { padding: 8px 0; }
.c-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.c-label { font-weight: 600; display: inline-flex; align-items: center; gap: 6px; font-size: 0.95rem; }
.c-value { font-size: 1rem; }
.c-track { height: 12px; background: var(--well); border-radius: 3px; overflow: hidden; }
.c-bar { display: block; height: 100%; border-radius: 3px; }
.c-track.locked-track { background: repeating-linear-gradient(45deg, #ececе7 0 6px, #f5f5f2 6px 12px); display: flex; align-items: center; }
.c-locked { font-size: 0.78rem; color: var(--muted); padding-left: 10px; }
.whatif { border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px 24px; align-items: end; margin: 0 0 8px; }
.whatif .eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
.whatif-actions { grid-column: 1 / -1; margin: 0; font-size: 0.92rem; }
.cta-band { margin-top: 48px; padding: 32px 0 8px; border-top: 2px solid var(--ink); }
.cta-band h2 { max-width: 24ch; text-wrap: balance; }
.cta-band .muted { max-width: 60ch; }

/* ---------- Charts ---------- */
.chart-fig { margin: 0; border: 1px solid var(--line); border-radius: 12px; padding: 14px 14px 10px; }
.chart-svg { width: 100%; height: auto; display: block; }
.c-tick { font: 12px var(--body); fill: var(--muted); }
.c-legend2 { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.88rem; margin: 10px 0 0; color: var(--ink-soft); }
.c-legend2 .lg { display: inline-flex; align-items: center; gap: 6px; }
.c-legend2 .lg i { display: inline-block; width: 12px; height: 12px; border-radius: 2px; flex: none; }
.c-legend2 .lg-note { width: 100%; font-size: 0.82rem; color: var(--muted); }
.money-chart { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px 16px; }
.money-chart .keys { margin: 0 0 6px; }
.m-row { margin-top: 12px; }
.m-head { display: flex; justify-content: space-between; gap: 12px; font-size: 0.92rem; }
.m-label { font-weight: 600; }
.m-value { color: var(--muted); }
.m-track { display: flex; height: 16px; border-radius: 3px; overflow: hidden; background: var(--well); margin-top: 6px; }
.m-track i { display: block; height: 100%; }
.hatch { background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.55) 0 4px, transparent 4px 8px); }
.table-wrap { overflow-x: auto; }
.year-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.year-table th, .year-table td { padding: 9px 10px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.year-table th:first-child, .year-table td:first-child { text-align: left; }
.year-table th { font-weight: 700; color: var(--muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; }
.year-table td.down { color: var(--accent); }
.year-table td.up { color: var(--danger); }
.rc-math { margin-top: 12px; }
.rc-math .formula { font-size: 0.92rem; margin: 0 0 8px; color: var(--ink-soft); }
.rc-math .math { margin: 0; border-top: 1px solid var(--line); }
.rc-math .math-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.rc-math .math-row dt, .rc-math .math-row dd { margin: 0; }
.rc-math .math-row dd { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rc-math .math-row.total { border-top: 2px solid var(--ink); padding-top: 10px; border-bottom: none; margin-top: 4px; }

/* ---------- Checklist, account, FAQ, legal ---------- */
.checklist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.checklist li { border-bottom: 1px solid var(--line); }
.checklist label { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; cursor: pointer; }
.checklist input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.checklist .n { position: relative; flex: none; width: 30px; height: 30px; border: 1.5px solid var(--ink); border-radius: 15px; display: grid; place-items: center; font-weight: 700; font-size: 0.95rem; background: #fff; margin-top: 1px; } /* check-design:allow P-01 checkbox */
.checklist label:hover .n { background: var(--well); }
.checklist input:focus-visible + .n { box-shadow: 0 0 0 3px var(--accent-soft); }
.checklist .n-check { display: none; width: 12px; height: 7px; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.checklist li.done .t { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-strong); }
.checklist li.done .n { background: var(--ink); border-color: var(--ink); }
.checklist li.done .n-num { display: none; }
.checklist li.done .n-check { display: block; }
.print-row { margin-top: 20px; }
.account { max-width: 560px; padding: 24px 0 48px; }
.account h1 { margin-bottom: 8px; }
.account .stack { margin-top: 20px; }
.code-field input { font-size: 2rem; letter-spacing: 0.18em; text-align: center; font-weight: 700; }
.why-no-password { margin-top: 28px; color: var(--ink-soft); }
.why-no-password summary { cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; }
.why-no-password summary::-webkit-details-marker { display: none; }
.why-no-password summary::before { content: "+ "; color: var(--muted); }
.why-no-password[open] summary::before { content: "\2212 "; }
.why-no-password p { margin: 10px 0 0; font-size: 0.95rem; }
.faq { max-width: 760px; }
.faq h1 { margin-bottom: 18px; }
.faq details { border-top: 1px solid var(--line); padding: 14px 0; }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 10px 0 0; color: var(--ink-soft); max-width: 66ch; }
.faq-cta { margin-top: 28px; }
.legal-page { max-width: 720px; padding: 8px 0 48px; }
.legal-page h1 { margin-bottom: 16px; }
.legal-page p { color: var(--ink-soft); }
.sources-list, .sources-list li { list-style: none; }
.sources-list { margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.sources-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 24px; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--line); font-size: 0.98rem; }
.sources-list li a { font-weight: 600; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.sources-list li a:hover { text-decoration-color: var(--ink); }
.sources-list li .muted { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.78rem; color: var(--muted); white-space: nowrap; text-align: right; }
@media (max-width: 560px) { .sources-list li { grid-template-columns: 1fr; } .sources-list li .muted { text-align: left; white-space: normal; } }
.script { padding-left: 20px; color: var(--ink-soft); }
.script li { margin: 6px 0; }
.ext { font-weight: 600; }
.ext::after { content: " \2197"; font-size: 0.85em; }

/* ---------- Kit page ---------- */
.kit-grid { display: grid; gap: 0; border-top: 1px solid var(--line); }
.kit-item { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 36px; align-items: center; padding: 40px 0; border-bottom: 1px solid var(--line); }
.kit-item.flip .kit-visual { order: 2; }
.kit-text h2 { margin: 6px 0 10px; }
.kit-text p { color: var(--ink-soft); max-width: 52ch; }
.kit-n { display: block; font-weight: 700; font-size: 0.8rem; letter-spacing: 0.1em; color: var(--muted); }
.kit-n::before { content: "0"; }
.step-n { display: inline-block; font-weight: 700; font-size: 1.3rem; color: var(--ink); flex: none; min-width: 1.2em; }
.guide-fig { margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.guide-fig img { display: block; width: 100%; height: auto; }
.guide-fig figcaption { padding: 10px 14px; font-size: 0.85rem; color: var(--ink-soft); display: flex; gap: 10px; align-items: center; border-top: 1px solid var(--line); }
.guide-fig figcaption .fig-open { margin-left: auto; white-space: nowrap; }
.report-fan { position: relative; height: 320px; }
.report-fan img { position: absolute; width: 46%; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.report-fan img:nth-child(1) { left: 0; top: 24px; transform: rotate(-4deg); z-index: 1; }
.report-fan img:nth-child(2) { left: 27%; top: 0; z-index: 2; }
.report-fan img:nth-child(3) { right: 0; top: 24px; transform: rotate(4deg); z-index: 1; }
.buy-band { margin-top: 40px; border-top: 2px solid var(--ink); padding-top: 28px; }
.buy-band-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.price-big .num { font-size: 3rem; line-height: 1; }
.buy-band-cta .fine { margin: 10px 0 0; color: var(--muted); font-size: 0.85rem; display: flex; align-items: center; gap: 8px; }
.buy-top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 0 0 32px; }
.anchor-strip { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; margin: 8px 0 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.anchor-strip > div { padding: 18px 20px 18px 0; }
.anchor-strip > div + div { border-left: 1px solid var(--line); padding-left: 24px; }
.anchor-strip .anchor-h { display: block; font-size: 0.9rem; font-weight: 700; margin-bottom: 8px; }
.anchor-strip .anchor-them .anchor-h { color: var(--muted); }
.anchor-strip .num { display: block; font-size: 1.9rem; line-height: 1.05; color: var(--muted); text-decoration: line-through; text-decoration-thickness: 2px; }
.anchor-strip .anchor-ours .num { text-decoration: none; }
.anchor-strip small { display: block; margin-top: 6px; color: var(--ink-soft); }
.anchor-strip .anchor-ours .num { color: var(--ink); }
.kit-faq { padding: 8px 0 24px; }
.kit-faq details { border-top: 1px solid var(--line); padding: 12px 0; }
.kit-faq summary { cursor: pointer; font-weight: 600; list-style: none; }
.kit-faq summary::-webkit-details-marker { display: none; }
.kit-faq summary::before { content: "+ "; color: var(--muted); }
.kit-faq details[open] summary::before { content: "\2212 "; }
.kit-faq p { margin: 8px 0 0; color: var(--ink-soft); max-width: 66ch; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .band, .kit-item, .buy-band-inner, .anchor-strip { grid-template-columns: 1fr; }
  .kit-item.flip .kit-visual { order: 0; }
  .anchor-strip > div + div { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .podium { grid-template-columns: 1fr; }
  .grid2 { grid-template-columns: 1fr; }
  .ex-row { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 560px) {
  footer .row { grid-template-columns: 1fr; }
  footer .row > span:last-child, footer .row .foot-links { justify-content: flex-start; }
  .hero-full h1 { font-size: 2.1rem; }
  .demo-table .col-ends { display: none; }
  .demo-table th, .demo-table td { padding-right: 10px; font-size: 0.95rem; }
  .demo-table td.col-num { font-size: 1rem; }
  .demo-table .plan-cell .full { display: none; }
  .demo-table .plan-cell .short { display: inline; }
  .demo-table .plan-cell { gap: 8px; }
  .demo-table th:nth-child(2) { white-space: normal; }
  body { font-size: 15.5px; }
  .wrap { padding: 0 16px; }
  .top { padding: 14px 16px; }
  .links { gap: 14px; }
  .links .link-quiet { display: none; }
  .two-up { grid-template-columns: 1fr; }
  .btn-lg { width: 100%; }
  .step .q { font-size: 1.6rem; }
  .field-lg input { font-size: 1.1rem; }
  .file-row { flex-direction: column; align-items: flex-start; }
  .file-row .btn { width: 100%; }
  .factors.compact { grid-template-columns: 1fr; }
  .factors:not(.compact) li { grid-template-columns: 1fr; gap: 4px; }
  .rc-figures .num { font-size: 1.4rem; }
  .rank-card.big .rc-figures .num { font-size: 1.5rem; }
  .rank-card { padding: 16px; }
  .plan-name { font-size: 1.15rem; }
  .plan-title.size-hero .plan-name { font-size: 1.4rem; }
  .plan-title.size-hero .pos { font-size: 1.7rem; }
  .plan-title.size-hero .plan-mark { width: 44px; height: 44px; }
  .m-head { flex-direction: column; gap: 0; }
  .cta-band { padding: 24px 18px; }
  .report-fan { height: 240px; }
  .price-big .num { font-size: 2.4rem; }
}
@media print {
  header, footer, .whatif, .cta-band { display: none; }
  body { font-size: 12px; }
}

/* ---------- Results v7: one verdict block, one table with drawers ---------- */
.verdict-block { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px 56px; padding: 28px 0; border-top: 3px solid var(--ink); border-bottom: 1px solid var(--line); margin: 8px 0 40px; }
.vb-left { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: start; }
.vb-pos { font-family: var(--display); font-weight: 800; font-size: 4.2rem; line-height: 0.9; letter-spacing: -0.05em; }
.vb-title { margin: 0; font-family: var(--display); font-weight: 700; font-size: 1.7rem; letter-spacing: -0.03em; line-height: 1.05; display: flex; align-items: center; gap: 10px; }
.vb-sub { margin: 6px 0 14px; color: var(--ink-soft); }
.vb-right .hook { margin-top: 0; }
.vb-right .btn { margin-top: 6px; }
.vb-right .muted.small { margin: 10px 0 0; }
.section-lead { margin: -6px 0 14px; }
.results-table { width: 100%; border-collapse: collapse; }
.results-table th { text-align: left; font-size: 0.85rem; font-weight: 700; padding: 10px 12px 10px 0; border-bottom: 2px solid var(--ink); white-space: nowrap; }
.results-table td { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.results-table .col-pos { width: 2.4rem; padding-left: 10px; }
.results-table .pos { font-family: var(--display); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.03em; }
.results-table .col-num, .results-table th.col-num { text-align: right; white-space: nowrap; }
.results-table td.col-num { font-size: 1.1rem; }
.results-table .col-why { text-align: right; padding-right: 10px; white-space: nowrap; }
.results-table .plan-cell { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; }
.results-table tr.first td { background: var(--accent-soft); font-weight: 700; }
.results-table tr.is-open td { border-bottom-color: transparent; }
.results-table .why-link { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.results-table .why-link:hover { text-decoration-thickness: 2px; }
.results-table tr.drawer td { padding: 0 0 22px; }
.drawer-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 40px; padding: 16px 0 6px 18px; border-left: 3px solid var(--ink); margin-left: 10px; }
.drawer-h { margin: 0 0 8px; font-weight: 700; }
.lock-mark { display: inline-block; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); position: relative; } /* check-design:allow P-01 a lock glyph, not a badge */
.lock-mark::before { content: ""; position: absolute; left: 10px; top: 13px; width: 10px; height: 8px; background: #fff; }
.lock-mark::after { content: ""; position: absolute; left: 11px; top: 7px; width: 6px; height: 8px; border: 2px solid #fff; border-bottom: 0; border-radius: 4px 4px 0 0; }
.results-table .locked-row .blur { filter: blur(6px); }
@media (max-width: 760px) {
  .verdict-block { grid-template-columns: 1fr; gap: 20px; }
  .drawer-inner { grid-template-columns: 1fr; }
  .results-table .col-ends { display: none; }
  .results-table th, .results-table td { padding-right: 8px; font-size: 0.92rem; }
  .results-table td.col-num { font-size: 0.98rem; }
  .results-table .plan-cell { gap: 8px; }
  .results-table .col-pos { width: 1.6rem; padding-left: 4px; }
  .results-table .col-why { padding-right: 4px; }
  .hide-phone { display: none; }
}
