:root {
  color-scheme: light;
  --ink: #1d1c30;
  --muted: #55536b;
  --paper: #f8f7fc;
  --line: #dedbea;
  --purple: #4b349d;
  --deep: #29204e;
  --lavender: #c9bbff;
  --peach: #f0bd9c;
  font-family: Inter, "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.65; }
p { margin: 0 0 1em; }
a { color: var(--purple); text-underline-offset: .2em; }
button { font: inherit; }
:focus-visible { outline: 3px solid #7353e4; outline-offset: 4px; }
.wrap { width: min(1100px, calc(100% - 96px)); margin-inline: auto; }
.skip { position: absolute; top: .7rem; left: .7rem; padding: .65rem; background: #fff; transform: translateY(-160%); }
.skip:focus { transform: none; z-index: 2; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.topbar { border-bottom: 1px solid var(--line); }
.topbar-inner { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.wordmark { color: var(--ink); text-decoration: none; letter-spacing: .075em; font-weight: 900; white-space: nowrap; }
.wordmark span { border-left: 1px solid var(--line); padding-left: .75rem; margin-left: .45rem; color: var(--muted); font-size: .76rem; font-weight: 700; letter-spacing: 0; }
nav { display: flex; flex-wrap: wrap; gap: 1.4rem; font-size: .88rem; margin-left: auto; }
nav a { text-decoration: none; color: var(--muted); }
nav a:hover { color: var(--purple); text-decoration: underline; }
.share { background: #fff; border: 1px solid var(--line); padding: .45rem .85rem; color: var(--deep); border-radius: 7px; cursor: pointer; white-space: nowrap; font-size: .85rem; }
.share:hover { border-color: var(--purple); }
.hero { padding: clamp(50px, 8vw, 108px) 0 clamp(40px, 6vw, 78px); display: grid; grid-template-columns: 1.17fr .83fr; gap: clamp(25px, 6vw, 74px); align-items: center; }
.eyebrow { color: var(--purple); font-size: clamp(.74rem, 1.4vw, .88rem); font-weight: 750; margin-bottom: 1rem; }
h1, h2 { margin: 0; letter-spacing: -.06em; line-height: 1.2; word-break: keep-all; }
h1 { font-size: clamp(2.45rem, 5.3vw, 4.25rem); font-weight: 850; }
h2 { font-size: clamp(1.6rem, 3.3vw, 2.5rem); }
.lead { color: var(--muted); font-size: clamp(1.05rem, 1.9vw, 1.29rem); max-width: 27em; margin: 1.25rem 0 1.4rem; word-break: keep-all; }
.lead strong { color: var(--deep); }
.action { display: inline-flex; align-items: center; gap: .9rem; background: var(--purple); color: #fff; text-decoration: none; border-radius: 8px; font-weight: 700; padding: .7rem .95rem; font-size: .9rem; }
.action:hover { background: var(--deep); }
.amount { background: var(--deep); color: #fff; padding: clamp(24px, 3.7vw, 42px); border-radius: 16px; }
.amount > p { font-size: .88rem; color: #e1d8ff; margin-bottom: .25rem; }
.amount-value { font-variant-numeric: tabular-nums; font-size: clamp(3.5rem, 7vw, 6.2rem); line-height: 1.08; font-weight: 800; letter-spacing: -.075em; }
.amount-value span { font-size: .37em; font-weight: 700; margin-left: .3em; letter-spacing: -.045em; }
.split { display: grid; grid-template-columns: 4fr 1fr; gap: 4px; height: 8px; margin: 1.35rem 0 1rem; }
.split span { background: var(--lavender); border-radius: 5px 0 0 5px; }
.split span + span { background: var(--peach); border-radius: 0 5px 5px 0; }
.split-labels { display: flex; justify-content: space-between; gap: .5rem; }
.split-labels > div { display: grid; gap: .1rem; }
.split-labels > div + div { text-align: right; }
.split-labels strong { font-size: 1.18rem; }
.split-labels span { color: #e1d8ff; font-size: .82rem; }
.calculation { padding: clamp(24px, 4vw, 42px); display: grid; grid-template-columns: 1.25fr .75fr; align-items: start; gap: clamp(24px, 5vw, 60px); border-radius: 16px; background: white; border: 1px solid var(--line); }
.calculation h2 { font-size: clamp(1.4rem, 2.65vw, 2rem); }
.calculation p { color: var(--muted); font-size: .95rem; }
.calculation p:last-child { margin-bottom: 0; }
.calculation .formula { color: var(--deep); font-weight: 650; margin: .7rem 0 .9rem; font-size: clamp(1.1rem, 2vw, 1.55rem); letter-spacing: -.035em; }
.formula span { color: var(--purple); margin-inline: .09em; }
.ledger { margin: 0; }
.ledger div { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; border-bottom: 1px solid var(--line); padding: .65rem 0; }
.ledger dt { color: var(--muted); font-size: .87rem; }
.ledger dd { margin: 0; font-size: 1rem; font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ledger .ledger-total { border: 0; color: var(--purple); }
.ledger-total dt { color: inherit; font-weight: 750; }
.section { margin-top: clamp(48px, 7vw, 86px); scroll-margin-top: 1rem; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: .8rem; margin-bottom: 1.25rem; }
.section-head a { font-weight: 650; font-size: .9rem; white-space: nowrap; }
.primary-evidence { margin: 0; border-radius: 12px; background: #fff; border: 1px solid var(--line); overflow: hidden; }
figcaption { display: flex; align-items: baseline; gap: .65rem 1rem; flex-wrap: wrap; background: #efebf8; padding: .85rem 1.1rem; }
figcaption span { color: var(--muted); font-size: .85rem; }
.primary-evidence a { display: block; padding: clamp(12px, 3vw, 30px); }
img { display: block; width: 100%; height: auto; }
.primary-evidence img { max-width: 960px; margin-inline: auto; }
.evidence-list { border-top: 1px solid var(--line); margin-top: .9rem; }
details { border-bottom: 1px solid var(--line); }
summary { padding: .9rem .25rem; cursor: pointer; font-weight: 680; word-break: keep-all; }
summary:hover { color: var(--purple); }
details img { max-width: 700px; margin: 0 auto 1.1rem; border: 1px solid var(--line); }
.downloads { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; margin: 1.2rem 0 0; font-size: .9rem; }
.checklist { list-style: none; counter-reset: item; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.checklist li { counter-increment: item; padding: 1.1rem 0 1.1rem 3.1rem; border-bottom: 1px solid var(--line); position: relative; }
.checklist li::before { content: counter(item); position: absolute; left: 0; top: 1.1rem; background: #ece6fa; color: var(--purple); border-radius: 50%; width: 2rem; height: 2rem; display: grid; place-items: center; font-weight: 800; }
.checklist strong { font-size: 1.06rem; }
.checklist p { margin: .35rem 0 0; color: var(--muted); max-width: 51rem; }
.contact { margin-top: 1.1rem; display: flex; flex-wrap: wrap; gap: .3rem 1rem; align-items: baseline; }
.contact a { white-space: nowrap; }
.footer { border-top: 1px solid var(--line); margin-top: clamp(48px, 7vw, 86px); padding: 1.3rem 0 2rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; color: var(--muted); font-size: .82rem; }
.footer p { margin: 0; }

@media (max-width: 800px) {
  .wrap { width: calc(100% - 48px); }
  .hero { grid-template-columns: 1fr; gap: 1.65rem; }
  .calculation { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .wrap { width: calc(100% - 36px); }
  .topbar-inner { min-height: 58px; }
  nav { display: none; }
  .hero { padding-top: 38px; }
  .section-head { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
