:root {
  --ink: #081e4e;
  --muted: #4e5c75;
  --red: #c91d2c;
  --red-dark: #a31322;
  --gold: #c9a65f;
  --paper: #f7f8fc;
  --line: #dce2ee;
  --white: #fff;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.5; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
.masthead { border-bottom: 1px solid var(--line); background: var(--white); }
.masthead-inner { max-width: 1100px; margin: auto; padding: 17px 28px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; font-size: 13px; font-weight: 850; text-transform: uppercase; letter-spacing: .075em; }
.brand img { display: block; width: 55px; height: 55px; object-fit: contain; }
.masthead-tag { margin: 0; color: var(--muted); font-size: 12px; font-weight: 730; letter-spacing: .1em; text-transform: uppercase; }
.shell { max-width: 1100px; margin: auto; padding: 48px 28px 70px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--red-dark); font-size: 12px; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 20px; height: 3px; background: var(--red); }
h1 { max-width: 900px; margin: 16px 0 15px; font-size: clamp(38px, 5.2vw, 66px); line-height: 1.04; letter-spacing: -.055em; }
.lead { max-width: 780px; margin: 0; color: var(--muted); font-size: clamp(17px, 1.9vw, 21px); }
.chapter-list { display: grid; gap: 13px; margin: 37px 0 28px; }
.chapter { display: grid; grid-template-columns: 78px minmax(0, 1fr) auto; gap: 18px; align-items: center; min-height: 142px; padding: 19px 27px 19px 18px; border: 1px solid var(--line); border-radius: 15px; background: var(--white); text-decoration: none; box-shadow: 0 10px 35px rgba(19,44,61,.035); transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.chapter:hover { transform: translateY(-2px); border-color: var(--red); box-shadow: 0 16px 30px rgba(8,30,78,.09); }
.chapter.current { border-left: 5px solid var(--red); padding-left: 14px; }
.chapter-number { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 12px; background: var(--ink); color: var(--white); font-size: 24px; font-weight: 870; letter-spacing: -.05em; }
.chapter.current .chapter-number { background: var(--red); }
.chapter-copy { min-width: 0; }
.chapter-state { display: block; margin-bottom: 5px; color: var(--red-dark); font-size: 11px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.chapter h2 { margin: 0 0 6px; font-size: clamp(21px, 2.3vw, 28px); line-height: 1.16; letter-spacing: -.035em; }
.chapter p { margin: 0; color: var(--muted); font-size: 14px; }
.chapter-action { white-space: nowrap; color: var(--red-dark); font-size: 13px; font-weight: 850; }
.chapter-action::after { content: " →"; font-size: 20px; vertical-align: -1px; }
.hint { padding: 16px 18px; border-left: 4px solid var(--gold); border-radius: 0 9px 9px 0; background: #fff8e9; color: #68572f; font-size: 14px; }
.chapter-hero { margin-bottom: 28px; }
.chapter-hero .chapter-state { margin-top: 20px; }
.panel { padding: 27px 30px; margin-bottom: 18px; border: 1px solid var(--line); border-radius: 15px; background: var(--white); }
.panel h2 { margin: 0 0 12px; font-size: 23px; letter-spacing: -.03em; }
.panel p { margin: 0 0 12px; color: var(--muted); }
.panel p:last-child { margin-bottom: 0; }
.outline { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin-top: 18px; }
.outline div { min-height: 93px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; background: #fafbfe; }
.outline strong { display: block; margin-bottom: 4px; font-size: 15px; }
.outline span { color: var(--muted); font-size: 13px; }
.chapter-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 23px; }
.chapter-nav a { display: inline-flex; align-items: center; min-height: 47px; padding: 11px 16px; border: 1px solid var(--line); border-radius: 9px; background: var(--white); text-decoration: none; font-size: 14px; font-weight: 800; }
.chapter-nav a.next { border-color: var(--red); background: var(--red); color: var(--white); }
.chapter-nav a:hover { border-color: var(--red); }
.chapter-nav a.next:hover { background: var(--red-dark); }
.footer { display: flex; justify-content: space-between; gap: 10px; margin-top: 38px; color: var(--muted); font-size: 12px; }
.home-hero { display: flex; flex-direction: column; align-items: center; text-align: center; }
.home-logo { display: block; width: clamp(145px, 20vw, 205px); height: clamp(145px, 20vw, 205px); object-fit: contain; margin: 2px auto 23px; filter: drop-shadow(0 12px 18px rgba(8,30,78,.11)); }
.home-hero .lead { margin-inline: auto; }
.platform-page { max-width: 1230px; }
.platform-hero { padding: 14px 0 10px; }
.platform-hero h1 { max-width: 1000px; }
.platform-hero .lead { max-width: 900px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.hero-meta span { padding: 7px 11px; border-radius: 99px; background: #e9edf6; color: #415473; font-size: 12px; font-weight: 750; }
.decision-banner { position: relative; overflow: hidden; padding: 29px 34px 30px; border-radius: 18px; background: var(--ink); color: var(--white); box-shadow: 0 20px 50px rgba(8,30,78,.16); }
.decision-banner::after { content: ""; position: absolute; width: 230px; height: 230px; border: 44px solid rgba(201,166,95,.13); border-radius: 50%; top: -130px; right: -65px; }
.decision-banner > * { position: relative; z-index: 1; }
.decision-kicker, .section-index { color: var(--red-dark); font-size: 12px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.decision-kicker { color: #f0c972; }
.decision-banner h2 { max-width: 850px; margin: 10px 0; font-size: clamp(25px, 3vw, 36px); line-height: 1.14; letter-spacing: -.035em; }
.decision-banner p { max-width: 980px; margin: 0; color: #dbe3f3; font-size: 15px; line-height: 1.65; }
.page-jump { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.97); box-shadow: 0 5px 17px rgba(8,30,78,.07); }
.page-jump-inner { display: flex; align-items: center; gap: 7px; max-width: 1230px; margin: auto; padding: 9px 28px; overflow-x: auto; white-space: nowrap; }
.page-jump a { flex: 0 0 auto; padding: 8px 11px; border: 1px solid transparent; border-radius: 8px; text-decoration: none; font-size: 12px; font-weight: 800; }
.page-jump a:hover, .page-jump a:focus-visible { border-color: #efc5ca; background: #fff0f1; color: var(--red-dark); }
.page-jump .page-jump-home { margin-left: auto; padding: 8px 15px; border-color: var(--red); background: var(--red); color: #fff; box-shadow: 0 3px 9px rgba(163,19,34,.18); }
.page-jump .page-jump-home:hover, .page-jump .page-jump-home:focus-visible { border-color: var(--red-dark); background: var(--red-dark); color: #fff; }
.platform-intro { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.candidate { padding: 22px 21px; border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: 12px; background: var(--white); }
.candidate:first-child { border-top-color: var(--red); }
.candidate-order { color: var(--red-dark); font-size: 11px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.candidate h2 { margin: 7px 0 7px; font-size: 24px; letter-spacing: -.04em; }
.candidate p { margin: 0; color: var(--muted); font-size: 14px; }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 15px; padding: 16px 20px; margin: 22px 0 4px; border: 1px solid var(--line); border-radius: 10px; background: #eff2f8; font-size: 12px; }
.legend strong { margin-right: 6px; font-size: 13px; }
.legend > span { display: inline-flex; align-items: center; gap: 6px; }
.legend small { flex-basis: 100%; color: var(--muted); font-size: 12px; }
.status { display: inline-block; width: fit-content; padding: 4px 8px; border-radius: 6px; font-size: 11px; font-weight: 850; line-height: 1.2; white-space: nowrap; }
.status.yes { background: #e2f2e8; color: #17653d; }
.status.partial { background: #fff0d8; color: #77511a; }
.status.unknown { background: #e9edf4; color: #485a74; }
.status.separate { background: #f7e8ef; color: #8b3158; }
.status.no { background: var(--red); color: var(--white); }
.comparison-section, .money-section, .decision-section { scroll-margin-top: 78px; margin-top: 48px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 17px; }
.section-heading h2 { margin: 5px 0 0; font-size: clamp(26px, 3vw, 36px); line-height: 1.12; letter-spacing: -.045em; }
.section-heading p { max-width: 400px; margin: 0 0 3px; color: var(--muted); font-size: 14px; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 13px; background: var(--white); box-shadow: 0 8px 26px rgba(8,30,78,.035); }
.compare-table { width: 100%; min-width: 850px; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.compare-table caption { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.compare-table .criterion-col { width: 28%; }
.compare-table thead th { padding: 16px 18px; background: var(--ink); color: var(--white); text-align: left; font-size: 14px; }
.compare-table thead th:first-child { border-top-left-radius: 12px; }
.compare-table thead th:last-child { border-top-right-radius: 12px; }
.compare-table tbody th, .compare-table tbody td { padding: 14px 17px; border-bottom: 1px solid #e6eaf1; border-right: 1px solid #e9edf4; vertical-align: top; text-align: left; font-size: 13px; }
.compare-table tbody tr:last-child th, .compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table tbody td:last-child { border-right: 0; }
.compare-table tbody th { color: var(--ink); font-weight: 800; line-height: 1.35; }
.compare-table tbody td span { display: block; margin-top: 7px; color: #45546b; line-height: 1.4; }
.compare-table tbody tr:not(.group-row):nth-child(2n) { background: #fafbfe; }
.compare-table .group-row th { padding: 9px 17px; border-right: 0; background: #ecf0f7; color: #526587; font-size: 11px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.compare-table .accounting-gap-row th, .compare-table .accounting-gap-row td { border-top: 2px solid var(--red); border-bottom: 2px solid var(--red); background: #fff0f1; }
.compare-table .accounting-gap-row th { color: var(--red-dark); }
.compare-table .accounting-gap-row td span { color: #82323b; }
.compare-table.costs-table { min-width: 700px; }
.costs-table thead th:first-child { width: 43%; }
.costs-table tbody td { color: var(--ink); font-size: 15px; font-weight: 850; }
.costs-table tbody td small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; font-weight: 650; }
.costs-table .total-row th, .costs-table .total-row td { border-top: 2px solid var(--ink); background: #eaf0f9; color: var(--ink); font-size: 15px; font-weight: 900; }
.cost-clarity { padding: 18px 20px; margin-bottom: 14px; border: 1px solid #eddaa7; border-radius: 10px; background: #fffaf0; font-size: 13px; }
.cost-clarity > strong { display: block; margin-bottom: 12px; color: var(--ink); font-size: 15px; }
.cost-rule-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cost-rule-grid div { padding: 14px; border: 1px solid #ecdfc3; border-radius: 8px; background: var(--white); }
.cost-rule-grid span { display: block; color: var(--red-dark); font-size: 10px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.cost-rule-grid b { display: block; margin: 4px 0; color: var(--ink); font-size: 20px; letter-spacing: -.035em; }
.cost-rule-grid p { margin: 0; color: #5f553f; line-height: 1.5; }
.table-footnote { margin: 11px 2px 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.flow-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; }
.flow-grid div { padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.flow-grid div > span { display: grid; place-items: center; width: 29px; height: 29px; margin-bottom: 14px; border-radius: 50%; background: var(--red); color: var(--white); font-size: 13px; font-weight: 900; }
.flow-grid strong { display: block; line-height: 1.25; }
.flow-grid p { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.accounting-note, .cost-takeaway, .decision-close { margin-top: 14px; padding: 17px 20px; border-left: 4px solid var(--gold); border-radius: 0 9px 9px 0; background: #fff8e9; color: #594b2f; font-size: 14px; line-height: 1.6; }
.decision-list { display: grid; gap: 10px; padding-left: 27px; margin: 0; }
.decision-list li { padding: 12px 18px; border: 1px solid var(--line); border-radius: 9px; background: var(--white); color: var(--muted); font-size: 14px; }
.decision-list li::marker { color: var(--red); font-weight: 900; }
.decision-list strong { color: var(--ink); }
.decision-close { border-left-color: var(--red); background: #fff0f1; color: #5a2a31; }
.sources { margin-top: 35px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); font-size: 13px; }
.sources summary { padding: 13px 17px; font-weight: 820; cursor: pointer; }
.source-content { padding: 0 18px 17px; color: var(--muted); }
.source-content p { margin: 0 0 10px; }
.source-content ul { margin: 0; padding-left: 20px; }
.source-content li { margin: 5px 0; }
.source-content a { color: var(--red-dark); text-underline-offset: 2px; }
@media (max-width: 700px) {
  .masthead-inner, .shell { padding-left: 17px; padding-right: 17px; }
  .page-jump-inner { padding-left: 17px; padding-right: 17px; }
  .masthead-tag { display: none; }
  .shell { padding-top: 35px; }
  .chapter { grid-template-columns: 58px minmax(0, 1fr); gap: 13px; padding: 17px; }
  .chapter.current { padding-left: 13px; }
  .chapter-number { width: 53px; height: 53px; font-size: 21px; }
  .chapter-action { grid-column: 2; }
  .outline { grid-template-columns: 1fr; }
  .panel { padding: 21px 18px; }
  .footer { flex-direction: column; }
  .home-logo { width: 155px; height: 155px; }
  .platform-intro { grid-template-columns: 1fr; }
  .section-heading { display: block; }
  .section-heading p { margin-top: 9px; }
  .decision-banner { padding: 25px 22px; }
  .flow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cost-rule-grid { grid-template-columns: 1fr; }
}
@media (max-width: 460px) { .flow-grid { grid-template-columns: 1fr; } .hero-meta span { font-size: 11px; } }
@media (prefers-reduced-motion: reduce) { .chapter { transition: none; } }
@media print { body { background: var(--white); } .masthead, .chapter-nav, .page-jump { display: none; } .shell { padding: 0; } .chapter, .panel, .candidate, .flow-grid div { break-inside: avoid; box-shadow: none; } .table-scroll { overflow: visible; } .compare-table { min-width: 0; } }
