
:root {
--bg: #0a1120;
--bg-2: #0e1628;
--panel: rgba(17, 27, 50, 0.58);
--panel-2: rgba(28, 42, 70, 0.55);
--panel-solid: #121c31;
--line: rgba(150, 175, 220, 0.12);
--line-2: rgba(150, 175, 220, 0.22);
--ink: #e9eef8;
--ink-2: #b2bdd2;
--ink-3: #8592ab;
--accent: #86b4ec;
--accent-ink: #0b1528;
--focus: #a9ccff;

--c-net: #23a86e;
--c-gpm: #bf861c;
--c-psd: #b94b6e;
--c-vsd: #3176dc;
--c-pension2: #00999d;
--c-employer: #7b5da8;
--c-expenses: #66728a;

--radius: 16px;
--radius-s: 10px;
--shadow: 0 18px 50px rgba(2, 6, 16, 0.45);
--font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
margin: 0;
min-height: 100vh;
font-family: var(--font);
font-size: 15px;
line-height: 1.5;
color: var(--ink);
background: #070d1a;
-webkit-font-smoothing: antialiased;
overflow-x: hidden;
}
body::before {
content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
background:
radial-gradient(1100px 700px at 50% 42%, rgba(52, 92, 190, 0.20), transparent 65%),
radial-gradient(900px 600px at 90% 6%, rgba(110, 80, 190, 0.14), transparent 70%),
radial-gradient(800px 600px at 6% 94%, rgba(0, 150, 160, 0.10), transparent 70%),
radial-gradient(140% 120% at 50% 40%, transparent 55%, rgba(2, 4, 10, 0.6) 100%),
linear-gradient(180deg, #070c1a 0%, #0a1226 55%, #060a16 100%);
}
.bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg > * { position: absolute; }
.bg-glow { border-radius: 50%; will-change: transform; animation: bg-drift 38s ease-in-out infinite alternate; }
.bg-glow.g1 { left: 20%; top: 10%; width: 64vw; height: 66vh; background: radial-gradient(closest-side, rgba(49, 118, 220, 0.26), transparent); }
.bg-glow.g2 { right: -14%; top: -20%; width: 56vw; height: 62vh; background: radial-gradient(closest-side, rgba(214, 58, 63, 0.14), transparent); animation-duration: 46s; animation-delay: -12s; }
.bg-glow.g3 { left: -16%; bottom: -24%; width: 58vw; height: 64vh; background: radial-gradient(closest-side, rgba(31, 157, 92, 0.17), transparent); animation-duration: 52s; animation-delay: -20s; }
.bg-glow.g4 { left: -8%; top: -18%; width: 40vw; height: 46vh; background: radial-gradient(closest-side, rgba(253, 185, 19, 0.09), transparent); animation-duration: 60s; animation-delay: -30s; }
@keyframes bg-drift {
0% { transform: translate3d(0, 0, 0) scale(1); }
50% { transform: translate3d(3vw, 2vh, 0) scale(1.08); }
100% { transform: translate3d(-2vw, -1vh, 0) scale(0.95); }
}
.bg-dust, .bg-ribbon, .bg-layer { inset: 0; width: 100%; height: 100%; }
.bg-layer { will-change: transform; }
.bg-layer > .bg-ribbon { position: absolute; }
.bg-ribbon { will-change: transform; transform-origin: 50% 70%; animation: bg-sway 24s ease-in-out infinite alternate; }
.bg-high { animation-duration: 31s; animation-delay: -9s; }
.bg-left { animation-duration: 35s; animation-delay: -17s; }
@keyframes bg-sway {
from { transform: translate3d(0, -10px, 0) scaleY(0.98); }
to { transform: translate3d(0, 12px, 0) scaleY(1.03); }
}
.bg-dust .tw { animation: bg-twinkle 5s ease-in-out infinite alternate; }
@keyframes bg-twinkle { from { opacity: 0.2; } to { opacity: 1; } }
.bg::after {
content: ""; position: absolute; inset: 0; opacity: 0.05;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (prefers-reduced-motion: reduce) { .bg * { animation: none !important; } }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html.lang-pending body > :not(.bg) { opacity: 0; animation: lang-failsafe 0s 2.5s forwards; }
@keyframes lang-failsafe { to { opacity: 1; } }

.skip { position: absolute; left: 12px; top: -60px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { top: 12px; }
.muted { color: var(--ink-3); }
svg { flex: none; }


.top {
display: flex; align-items: center; gap: 28px;
padding: 18px clamp(16px, 3vw, 40px);
border-bottom: 1px solid var(--line);
position: sticky; top: 0; z-index: 30;
transition: background-color 0.25s, backdrop-filter 0.25s, -webkit-backdrop-filter 0.25s;
}
.top.is-frosted { background-color: rgba(7, 12, 25, 0.3); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none !important; }
.brand-mark { width: 40px; height: 40px; fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linejoin: round; filter: drop-shadow(0 0 8px rgba(134, 180, 236, 0.35)); }
.brand-name { font-weight: 700; font-size: 14px; line-height: 1.15; max-width: 120px; color: var(--ink-2); }
.nav { display: flex; gap: 26px; margin-left: 12px; }
.nav a { position: relative; color: var(--ink-2); font-weight: 500; font-size: 14px; }
.nav a:hover { color: var(--ink); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 10px rgba(134, 180, 236, 0.55); }
.top-tools { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.select-pill select, .lang-switch {
height: 38px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel); padding: 0 14px;
}
.select-pill select { appearance: none; padding-right: 30px; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 17px) 17px, calc(100% - 12px) 17px; background-size: 5px 5px; background-repeat: no-repeat; font-weight: 600; }
.select-pill option { background: var(--panel-solid); }
.lang-switch { display: flex; padding: 3px; gap: 2px; }
.lang-switch button { padding: 0 11px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--ink-3); }
.lang-switch button[aria-pressed="true"] { background: rgba(134, 180, 236, 0.16); color: var(--ink); }
.mode-switch { display: flex; height: 38px; padding: 3px; gap: 2px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel); }
.mode-switch button { display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--ink-3); }
.mode-switch button:hover { color: var(--ink); }
.mode-switch button[aria-pressed="true"] { background: rgba(134, 180, 236, 0.16); color: var(--ink); }
.mode-switch svg, .detail-more svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }


main { padding: 0 clamp(16px, 3vw, 40px); }
.stage-grid {
display: grid;
grid-template-columns: minmax(290px, 350px) minmax(0, 1fr) minmax(310px, 370px);
gap: clamp(16px, 1.6vw, 26px);
padding: 34px 0 20px;
align-items: start;
}
.col-left, .col-right { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.col-centre { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

.eyebrow { font-size: 11.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); font-weight: 600; opacity: 0.85; }
.hero-title { font-size: clamp(36px, 3.05vw, 60px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.04; }
.hero-title span { white-space: nowrap; }
.hero-title em { font-style: normal; background: linear-gradient(100deg, #8fc1ff 0%, #5fa6f2 60%, #6fd0c8 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { color: var(--ink-2); font-size: 17px; line-height: 1.4; max-width: 34ch; }

.card {
background: var(--panel);
border: 1px solid var(--line);
border-radius: var(--radius);
box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.04);
backdrop-filter: blur(18px) saturate(1.2);
-webkit-backdrop-filter: blur(18px) saturate(1.2);
}

.scenario-tabs {
display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 5px;
border-radius: 14px; border: 1px solid var(--line-2); background: var(--panel);
}
.scenario-tabs button {
display: flex; align-items: center; justify-content: center; gap: 7px;
padding: 10px 6px; border-radius: 10px; font-weight: 600; font-size: 13px; color: var(--ink-2); line-height: 1.15; text-align: left;
}
.scenario-tabs svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.scenario-tabs button[aria-selected="true"] { background: linear-gradient(180deg, #e9f1ff, #cfe0fb); color: #10234a; box-shadow: 0 6px 20px rgba(120, 165, 240, 0.25); }
.scenario-tabs button:not([aria-selected="true"]):hover { background: rgba(255, 255, 255, 0.04); color: var(--ink); }

.input-card { padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 14px; }
.field-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.field-label { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.field-help { font-size: 12px; color: var(--ink-3); }
.amount {
display: flex; align-items: center; gap: 8px;
}
.amount-box {
flex: 1; display: flex; align-items: baseline; gap: 6px; min-width: 0;
background: rgba(5, 10, 22, 0.55); border: 1px solid var(--line-2); border-radius: 12px; padding: 6px 14px;
}
.amount-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(134, 180, 236, 0.18); }
.amount-box input {
min-width: 0; width: 100%; border: 0; background: none; outline: none;
font-size: 28px; font-weight: 700; letter-spacing: -0.02em; padding: 0;
}
.amount-box .unit { font-size: 18px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.stepper { display: flex; gap: 6px; }
.stepper button {
width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel-2);
display: grid; place-items: center; font-size: 20px; font-weight: 500; color: var(--ink);
}
.stepper button:hover { border-color: var(--accent); }
.range { width: 100%; accent-color: var(--accent); }
input[type="range"] { -webkit-appearance: none; appearance: none; height: 22px; background: transparent; width: 100%; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--accent) var(--fill, 30%), rgba(150, 175, 220, 0.2) var(--fill, 30%)); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(150, 175, 220, 0.2); }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--accent); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #eef4ff; margin-top: -8px; box-shadow: 0 0 0 4px rgba(134, 180, 236, 0.25), 0 2px 8px rgba(0, 0, 0, 0.4); }
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #eef4ff; border: 0; box-shadow: 0 0 0 4px rgba(134, 180, 236, 0.25); }
.range-ends { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); margin-top: -8px; }

.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(5, 10, 22, 0.4); }
.seg button { padding: 6px 11px; border-radius: 8px; font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
.seg button[aria-pressed="true"] { background: rgba(134, 180, 236, 0.17); color: var(--ink); }
.seg.full { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }

.check { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.check input { appearance: none; flex: none; width: 36px; height: 21px; border-radius: 999px; background: rgba(150, 175, 220, 0.22); position: relative; margin: 0; cursor: pointer; transition: background 0.15s; }
.check input::after { content: ""; position: absolute; left: 3px; top: 3px; width: 15px; height: 15px; border-radius: 50%; background: #dfe7f5; transition: transform 0.15s; }
.check input:checked { background: var(--accent); }
.check input:checked::after { transform: translateX(15px); background: #fff; }
.check small { display: block; color: var(--ink-3); font-size: 12px; margin-top: 1px; }

.select { height: 34px; border-radius: 9px; border: 1px solid var(--line-2); background: rgba(5, 10, 22, 0.45); padding: 0 10px; font-size: 13px; }
.select option { background: var(--panel-solid); }

@supports (appearance: base-select) {
.select-pill select, .select, .select-pill select::picker(select), .select::picker(select) { appearance: base-select; }
.select-pill select, .select { display: flex; align-items: center; gap: 8px; flex: none; white-space: nowrap; cursor: pointer; transition: border-color 0.15s, background-color 0.15s; }
.select-pill select { padding-right: 15px; background-image: none; }
.select-pill select:hover, .select:hover { border-color: rgba(150, 175, 220, 0.34); }
.select-pill select:open, .select:open { border-color: var(--accent); background-color: rgba(134, 180, 236, 0.1); }
.select-pill select::picker-icon, .select::picker-icon {
content: ""; width: 6px; height: 6px; margin: 0 1px 0 auto; border: solid var(--ink-2); border-width: 0 1.5px 1.5px 0;
transform: translateY(-25%) rotate(45deg); transition: transform 0.2s;
}
.select-pill select:open::picker-icon, .select:open::picker-icon { transform: translateY(25%) rotate(225deg); border-color: var(--ink); }
.select-pill select::picker(select), .select::picker(select) {
margin-block: 6px; padding: 5px; min-width: anchor-size(width);
border: 1px solid var(--line-2); border-radius: 14px; background: var(--panel-solid); color: var(--ink);
box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.04);
scrollbar-width: thin; scrollbar-color: var(--line-2) transparent;
opacity: 0; translate: 0 -4px;
transition: opacity 0.14s, translate 0.14s, overlay 0.14s allow-discrete, display 0.14s allow-discrete;
}
.select::picker(select) { position-area: block-end span-inline-start; position-try-fallbacks: flip-block; }
.select-pill select:open::picker(select), .select:open::picker(select) { opacity: 1; translate: 0; }
@starting-style { .select-pill select:open::picker(select), .select:open::picker(select) { opacity: 0; translate: 0 -4px; } }
.select-pill option, .select option {
display: flex; align-items: center; gap: 14px; padding: 8px 10px 8px 12px; border-radius: 9px;
background: none; color: var(--ink-2); font-size: 13.5px; font-weight: 500; white-space: nowrap; cursor: pointer;
}
.select-pill option:hover, .select option:hover, .select-pill option:focus-visible, .select option:focus-visible { background: rgba(134, 180, 236, 0.12); color: var(--ink); outline: none; }
.select-pill option:checked, .select option:checked { color: var(--ink); font-weight: 600; }
.select-pill option::checkmark, .select option::checkmark { order: 1; margin-left: auto; color: var(--accent); font-weight: 700; }
}
@media (prefers-reduced-motion: reduce) {
.select-pill select::picker(select), .select::picker(select), .select-pill select::picker-icon, .select::picker-icon { transition: none; }
}
.mini-amount { display: flex; align-items: baseline; gap: 6px; border: 1px solid var(--line-2); border-radius: 9px; padding: 4px 10px; background: rgba(5, 10, 22, 0.45); max-width: 170px; }
.mini-amount input { width: 100%; border: 0; background: none; outline: none; font-weight: 600; font-size: 14px; }
.mini-amount:focus-within { border-color: var(--accent); }

details.more { border-top: 1px solid var(--line); padding-top: 12px; }
details.more > summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--ink-2); list-style: none; display: flex; align-items: center; gap: 8px; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::before { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform 0.15s; margin-right: 2px; }
details.more[open] > summary::before { transform: rotate(45deg); }
.more-body { display: flex; flex-direction: column; gap: 13px; padding-top: 14px; }

.radio-list { display: flex; flex-direction: column; gap: 6px; }
.radio-list label { display: flex; align-items: flex-start; gap: 10px; padding: 9px 11px; border-radius: 10px; border: 1px solid var(--line); cursor: pointer; font-size: 13.5px; }
.radio-list label:has(input:checked) { border-color: var(--accent); background: rgba(134, 180, 236, 0.08); }
.radio-list input { accent-color: var(--accent); margin-top: 3px; }
.radio-list small { display: block; color: var(--ink-3); font-size: 12px; }

.mb-timeline { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; align-items: end; height: 46px; margin-top: 2px; }
.mb-timeline span { background: var(--c-vsd); border-radius: 3px 3px 0 0; min-height: 2px; opacity: 0.85; }
.mb-timeline span.is-now { outline: 2px solid var(--focus); outline-offset: 1px; }
.mb-timeline-axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-3); }

.answer { display: flex; flex-direction: column; }
.note-list { display: flex; flex-direction: column; gap: 6px; }
.note { font-size: 12.5px; color: var(--ink-2); padding: 8px 10px; border-radius: 10px; background: rgba(191, 134, 28, 0.08); border: 1px solid rgba(191, 134, 28, 0.25); }


.view-toggle { display: inline-flex; align-self: center; padding: 4px; gap: 2px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel); }
.view-toggle button { padding: 7px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.view-toggle button[aria-pressed="true"] { background: rgba(134, 180, 236, 0.17); color: var(--ink); }
.stage { position: relative; }
.stage-3d { position: relative; aspect-ratio: 1 / 1.02; max-height: 720px; min-height: 380px; border-radius: var(--radius); overflow: hidden; }
.stage-3d .flow-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; }
.stage-3d .flow-canvas, .stage-3d .flow-labels { animation: scene-in 0.7s ease-out both; }
@keyframes scene-in { from { opacity: 0; transform: scale(0.985); } }

.stage-loader { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 18px; pointer-events: none; }
.stage-3d.is-loading .stage-loader { display: flex; animation: loader-in 0.5s ease-out 0.2s both; }
@keyframes loader-in { from { opacity: 0; transform: translateY(6px); } }
.stage-loader svg { width: min(52%, 240px); overflow: visible; }
.stage-loader path { stroke-linejoin: round; stroke-linecap: round; }
.sl-base { fill: rgba(134, 180, 236, 0.05); stroke: var(--line-2); stroke-width: 0.45; }
.sl-glow { fill: rgba(134, 180, 236, 0.07); stroke: var(--accent); stroke-width: 0.6; filter: drop-shadow(0 0 1.6px rgba(134, 180, 236, 0.85)); animation: sl-breathe 1.5s ease-in-out infinite alternate; }
@keyframes sl-breathe { from { opacity: 0.12; } }
.stage-loader span { font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
@media (prefers-reduced-motion: reduce) {
.stage-3d .flow-canvas, .stage-3d .flow-labels, .stage-3d.is-loading .stage-loader { animation: none; }
}
.stage-2d { position: relative; padding: 12px 6px 4px; }

.flow-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.flow-label { position: absolute; left: 0; top: 0; white-space: nowrap; text-align: center; display: flex; flex-direction: column; align-items: center; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8); transition: opacity 0.25s; will-change: transform; }
.flow-label .fl-name { font-size: 12px; font-weight: 700; color: var(--ink); }
.flow-label .fl-value { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; }
.flow-label .fl-sub { font-size: 11px; color: var(--ink-2); font-weight: 600; }
.flow-label.is-source { display: block; font-size: clamp(19px, 1.9vw, 26px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; color: var(--ink); background: rgba(10, 17, 32, 0.66); border: 1px solid var(--line-2); padding: 5px 16px 6px; border-radius: 999px; text-shadow: none; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.flow-label.is-source small { font-size: 0.55em; font-weight: 700; color: var(--ink-2); margin-left: 3px; letter-spacing: 0; }
.flow-label.is-dim { opacity: 0.32; }

.flow-label.is-jar { display: block; padding: 0; border-radius: 12px; pointer-events: auto; cursor: pointer; background: none; text-shadow: none; }
.flow-label.is-jar:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.flow-label.is-place { flex-direction: row; gap: 5px; padding: 3px 9px 3px 6px; border-radius: 999px; font-size: 11.5px; font-weight: 700; color: var(--ink); text-shadow: none; background: rgba(8, 14, 28, 0.78); border: 1px solid color-mix(in srgb, var(--c) 60%, transparent); box-shadow: 0 0 14px color-mix(in srgb, var(--c) 35%, transparent); }
.flow-label.is-place svg { width: 14px; height: 14px; fill: none; stroke: color-mix(in srgb, var(--c) 40%, white); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.flow-label.is-pod { font-size: 11.5px; font-weight: 700; color: var(--ink-2); }

.sankey { display: block; width: 100%; height: auto; overflow: visible; font-family: var(--font); }
.sk-link { opacity: 0.32; transition: opacity 0.15s; cursor: pointer; }
.sk-link.is-modelled { opacity: 0.16; }
.sk-node { cursor: pointer; }
.sk-node:focus { outline: none; }
.sk-node:focus-visible { stroke: var(--focus); stroke-width: 3px; }
.sk-node.is-modelled { opacity: 0.6; }
.sankey.has-focus .sk-link { opacity: 0.08; }
.sankey.has-focus .sk-link.is-on { opacity: 0.6; }
.sankey.has-focus .sk-node:not(.is-on) { opacity: 0.35; }
.sk-name { font-size: 12px; font-weight: 600; fill: var(--ink-2); }
.sk-value { font-size: 13px; font-weight: 700; fill: var(--ink); font-variant-numeric: tabular-nums; }
.sk-top { font-size: 12px; font-weight: 600; fill: var(--ink-3); }
.sk-tag { font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; fill: var(--ink-3); }
.sk-tag.is-modelled { fill: #d9b27a; }
.sk-leader { stroke: var(--line-2); fill: none; }
.sankey-tip { position: absolute; left: 0; top: 0; pointer-events: none; background: var(--panel-solid); border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 11px; font-size: 12.5px; display: flex; flex-direction: column; gap: 1px; box-shadow: var(--shadow); z-index: 3; min-width: 140px; }
.sankey-tip b { font-weight: 700; }
.sankey-tip .tag, .badge.model { align-self: flex-start; }


.panel { padding: 16px 16px 14px; display: flex; flex-direction: column; gap: 12px; }
.panel-head { display: flex; align-items: flex-start; gap: 11px; }
.panel-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; color: color-mix(in srgb, var(--c) 35%, white);
background: linear-gradient(160deg, color-mix(in srgb, var(--c) 38%, transparent), color-mix(in srgb, var(--c) 12%, transparent));
border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); box-shadow: 0 0 22px color-mix(in srgb, var(--c) 28%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.12); }
.panel-icon svg { width: 22px; height: 22px; fill: color-mix(in srgb, var(--c) 60%, transparent); stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.panel-title { font-size: 16.5px; font-weight: 700; display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.panel-title button { text-align: left; font-weight: 700; }
.panel-title button:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.panel-amount { text-align: right; flex: none; }
.panel-amount b { display: block; font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.panel-amount span { font-size: 12.5px; color: var(--accent); font-weight: 600; }
.bars { display: flex; flex-direction: column; gap: 9px; }
.bar-row { display: grid; grid-template-columns: 1fr auto auto; gap: 4px 10px; align-items: baseline; font-size: 13px; }
.bar-row .bl { color: var(--ink-2); min-width: 0; }
.bar-row .bv { font-weight: 700; font-variant-numeric: tabular-nums; }
.bar-row .bp { color: var(--ink-3); font-size: 11.5px; font-variant-numeric: tabular-nums; min-width: 44px; text-align: right; }
.bar-row .bt { grid-column: 1 / -1; height: 5px; border-radius: 5px; background: rgba(150, 175, 220, 0.12); overflow: hidden; }
.bar-row .bt i { display: block; height: 100%; border-radius: 5px; background: var(--c); }
.bar-row.is-modelled .bt i { opacity: 0.75; }
.bar-row.has-icon { grid-template-columns: 36px minmax(0, 1fr) auto auto; column-gap: 11px; }
.bar-row.has-icon .bt { grid-column: 2 / -1; }
.bar-row .bi { grid-row: 1 / span 2; align-self: center; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(5, 10, 22, 0.45); border: 1px solid var(--line-2); color: color-mix(in srgb, var(--c) 45%, white); }
.bars.is-simple .bar-row { grid-template-columns: minmax(0, 1fr) auto; }
.bars.is-simple .bar-row.has-icon { grid-template-columns: 36px minmax(0, 1fr) auto; }
.bars.is-simple .bp { display: none; }
.bar-row .bi svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.fn-cell .fi svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.fn-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.fn-cell { grid-column: span 2; padding: 8px 7px; border-radius: 11px; background: rgba(5, 10, 22, 0.35); border: 1px solid var(--line); font-size: 12px; display: flex; align-items: center; gap: 7px; min-width: 0; }
.fn-cell:nth-child(4):nth-last-child(2), .fn-cell:nth-child(5):nth-last-child(1) { grid-column: span 3; }
.fn-cell .fi { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; flex: none; background: color-mix(in srgb, var(--c) 16%, transparent); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); color: color-mix(in srgb, var(--c) 45%, white); }
.fn-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.fn-text span { color: var(--ink-2); line-height: 1.2; font-size: 11.5px; }
.fn-text b { font-size: 13.5px; }

.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); white-space: nowrap; }
.badge.exact { color: #9fe0bf; border-color: rgba(35, 168, 110, 0.45); background: rgba(35, 168, 110, 0.1); }
.badge.statutory { color: #a9c6f5; border-color: rgba(49, 118, 220, 0.45); background: rgba(49, 118, 220, 0.1); }
.badge.model { color: #e8c48d; border-color: rgba(191, 134, 28, 0.5); background: rgba(191, 134, 28, 0.12); }
.tag { font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #e8c48d; }

.detail-back { align-self: flex-start; font-size: 12.5px; font-weight: 600; color: var(--ink-3); display: inline-flex; gap: 6px; align-items: center; }
.detail-back:hover { color: var(--ink); }
.detail-head { display: flex; flex-direction: column; gap: 6px; }
.detail-name { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px; }
.detail-name::before { content: ""; width: 12px; height: 12px; border-radius: 4px; background: var(--c); flex: none; }
.detail-long { font-size: 13px; color: var(--ink-3); }
.detail-amount { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.detail-amount b { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; }
.detail-amount span { color: var(--ink-2); font-size: 13.5px; }
.detail-text { font-size: 13.5px; color: var(--ink-2); line-height: 1.55; }
.simple-label { font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: -2px; }
.simple-label span { text-transform: none; letter-spacing: 0; font-weight: 600; }
.detail-more { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(5, 10, 22, 0.35); font-size: 13px; font-weight: 700; color: var(--ink); }
.detail-more:hover { border-color: var(--accent); }

.why { border: 1px solid var(--line-2); border-radius: 12px; background: rgba(5, 10, 22, 0.35); }
.why > summary { padding: 10px 12px; cursor: pointer; font-weight: 700; font-size: 13.5px; list-style: none; display: flex; align-items: center; gap: 8px; }
.why > summary::-webkit-details-marker { display: none; }
.why > summary::after { content: "+"; margin-left: auto; color: var(--ink-3); font-weight: 600; }
.why[open] > summary::after { content: "−"; }
.why-body { padding: 0 12px 12px; display: flex; flex-direction: column; gap: 12px; }
.formula-step { display: flex; flex-direction: column; gap: 5px; }
.formula-step .fs-label { font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.formula { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 4px 6px; font-variant-numeric: tabular-nums; }
.tok { display: inline-flex; flex-direction: column; align-items: center; line-height: 1.15; }
.tok b { font-size: 14px; font-weight: 700; white-space: nowrap; }
.tok small { font-size: 10px; color: var(--ink-3); white-space: nowrap; max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
.tok.rate b { color: var(--accent); }
.tok.op { font-size: 15px; color: var(--ink-3); padding-top: 1px; }
.tok.result b { color: #fff; }
.facts { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--line); padding-top: 10px; }
.fact { font-size: 12.5px; display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; }
.fact .fv { font-weight: 700; text-align: right; }
.fact .fs { grid-column: 1 / -1; color: var(--ink-3); font-size: 11.5px; }

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs button { padding: 8px 10px; font-size: 13px; font-weight: 600; color: var(--ink-3); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--c, var(--accent)); }
.tab-body { display: flex; flex-direction: column; gap: 12px; font-size: 13.5px; color: var(--ink-2); }
.tab-body p { line-height: 1.55; }
.callout { padding: 10px 12px; border-radius: 10px; background: rgba(191, 134, 28, 0.08); border: 1px solid rgba(191, 134, 28, 0.3); font-size: 12.5px; color: var(--ink-2); }
.callout.blue { background: rgba(49, 118, 220, 0.08); border-color: rgba(49, 118, 220, 0.3); }
.source-card { padding: 11px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(5, 10, 22, 0.3); display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; }
.source-card .si { font-weight: 800; color: var(--ink); font-size: 13px; }
.source-card .st { color: var(--ink-2); }
.source-card dl { display: grid; grid-template-columns: auto 1fr; gap: 1px 10px; margin: 4px 0 2px; color: var(--ink-3); }
.source-card dd { margin: 0; color: var(--ink-2); }
.source-card a { font-weight: 700; }
.seg-inline { align-self: flex-start; }


.disclaimer-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); font-size: 13px; color: var(--ink-2); margin: 8px 0 10px; }
.disclaimer-bar svg { width: 20px; height: 20px; fill: none; stroke: var(--ink-3); stroke-width: 1.7; stroke-linecap: round; }
.disclaimer-bar a { margin-left: auto; white-space: nowrap; font-weight: 600; }
.disclaimer-bar a::after { content: " \2192"; }

.section { padding: 46px 0 10px; }
.section-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.section-head h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.section-sub { color: var(--ink-3); font-size: 14px; flex-basis: 100%; max-width: 70ch; }
.section-tools { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.btn { height: 38px; padding: 0 16px; border-radius: 10px; font-weight: 700; font-size: 13.5px; background: linear-gradient(180deg, #e9f1ff, #cfe0fb); color: #10234a; }
.btn:hover { filter: brightness(1.05); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-2); }

.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
table.result { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 640px; }
table.result th, table.result td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.result th { font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
table.result td.num, table.result th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.result tr.sub td:first-child { padding-left: 34px; color: var(--ink-2); }
table.result tr.total td { font-weight: 800; }
table.result .sw { display: inline-block; width: 9px; height: 9px; border-radius: 3px; background: var(--c); margin-right: 8px; }
table.result tr:last-child td { border-bottom: 0; }
table.result.is-simple { min-width: 0; }
table.result.is-simple :is(th, td):nth-child(n + 4) { display: none; }

.budget-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.budget-card { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.budget-card h3 { font-size: 17px; }
.budget-card .bc-total { font-size: 13px; color: var(--ink-3); }
.budget-card .bc-total b { color: var(--ink); }
.budget-card .bars { gap: 8px; }

.faq { display: flex; flex-direction: column; gap: 8px; max-width: 900px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.faq summary { padding: 13px 16px; font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq .faq-a { padding: 12px 16px 14px; color: var(--ink-2); font-size: 14px; line-height: 1.6; }

.foot { margin-top: 50px; padding: 28px clamp(16px, 3vw, 40px) 40px; border-top: 1px solid var(--line); display: flex; gap: 30px; flex-wrap: wrap; justify-content: space-between; color: var(--ink-3); font-size: 12.5px; }
.foot-text { max-width: 760px; display: flex; flex-direction: column; gap: 8px; line-height: 1.6; }
.foot-nav { display: flex; gap: 18px; flex-wrap: wrap; align-items: flex-start; }
.foot-nav a { color: var(--ink-2); font-weight: 600; }
.foot-nav a[aria-current="page"] { color: var(--accent); }
.foot-by { flex-basis: 100%; margin: 0; }
.foot-by a { color: var(--ink-2); font-weight: 600; }
.foot-by a:hover { color: var(--accent); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--panel-solid); border: 1px solid var(--line-2); padding: 10px 16px; border-radius: 12px; font-size: 13.5px; font-weight: 600; box-shadow: var(--shadow); z-index: 60; }


.page { max-width: 880px; margin: 0 auto; padding: 40px clamp(16px, 3vw, 40px) 20px; }
.page h1 { font-size: clamp(32px, 4vw, 46px); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 14px; }
.page h2 { font-size: 22px; margin: 34px 0 10px; }
.page h3 { font-size: 16px; margin: 22px 0 8px; }
.page p, .page li { color: var(--ink-2); line-height: 1.7; font-size: 15px; }
.page p + p { margin-top: 10px; }
.page ul, .page ol { padding-left: 22px; margin: 8px 0; }
.page .lead { font-size: 17.5px; color: var(--ink); line-height: 1.55; }
.page code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 0.9em; background: rgba(5, 10, 22, 0.5); padding: 1px 5px; border-radius: 5px; }
.page pre { background: rgba(5, 10, 22, 0.55); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; overflow-x: auto; font-size: 13px; line-height: 1.6; color: var(--ink-2); }
.kinds { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin: 14px 0; }
.kinds > div { padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; color: var(--ink-2); }
.src-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.src-table th, .src-table td { text-align: left; padding: 10px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.src-table th { color: var(--ink-3); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.src-table td { color: var(--ink-2); }
.status { font-weight: 700; font-size: 12px; }
.status.ok { color: #9fe0bf; }
.status.review { color: #e8c48d; }
.dl-list { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.dl-list a { display: flex; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); }
.dl-list a span { color: var(--ink-3); font-size: 12.5px; }


@media (max-width: 1500px) and (min-width: 1281px) {
.stage-grid { grid-template-columns: minmax(270px, 315px) minmax(0, 1fr) minmax(290px, 335px); }
.eyebrow { letter-spacing: 0.16em; }
.scenario-tabs button { flex-direction: column; text-align: center; gap: 4px; font-size: 12.5px; }
.amount-box input { font-size: 24px; }
.amount-box .unit { font-size: 15px; }
}
@media (max-width: 1280px) {
.stage-grid { grid-template-columns: minmax(290px, 340px) minmax(0, 1fr); }
.col-right { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.col-right > .is-detail { grid-column: 1 / -1; }
.nav { gap: 18px; }
}
@media (max-width: 980px) {
.nav { display: none; }
}
@media (max-width: 820px) {
.stage-grid { grid-template-columns: minmax(0, 1fr); padding-top: 22px; }
.hero-title { font-size: clamp(34px, 10vw, 46px); }
.stage { min-height: 0; }
.stage-3d { aspect-ratio: 1 / 1.1; }
.col-right { display: flex; }
.col-right > .is-detail {
position: fixed; left: 0; right: 0; bottom: 0; max-height: 82vh; overflow-y: auto; z-index: 40;
border-radius: 20px 20px 0 0; background: var(--panel-solid); padding-bottom: calc(18px + env(safe-area-inset-bottom));
box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.5);
animation: sheet 0.22s ease-out;
}
.col-right > .is-detail::before { content: ""; display: block; width: 44px; height: 4px; border-radius: 4px; background: var(--line-2); margin: -4px auto 4px; }
.sheet-scrim { position: fixed; inset: 0; background: rgba(3, 7, 15, 0.55); z-index: 39; }
.top { gap: 12px; padding: 12px 16px; }
.brand-name { display: none; }
.disclaimer-bar { flex-wrap: wrap; }
.disclaimer-bar a { margin-left: 32px; }
.section-tools { margin-left: 0; }
}
@media (max-width: 820px) and (prefers-reduced-motion: reduce) { .col-right > .is-detail { animation: none; } }
@keyframes sheet { from { transform: translateY(40px); opacity: 0; } }
@media (min-width: 821px) { .sheet-scrim { display: none !important; } }
@media (max-width: 560px) {
.select-pill.is-single { display: none; }
.mode-switch button, .lang-switch button { padding: 0 9px; }
}
@media (max-width: 420px) {
.scenario-tabs button { flex-direction: column; text-align: center; gap: 4px; font-size: 12px; }
.amount-box input { font-size: 24px; }
.fn-grid { grid-template-columns: repeat(2, 1fr); }
.fn-cell, .fn-cell:nth-child(4):nth-last-child(2), .fn-cell:nth-child(5):nth-last-child(1) { grid-column: auto; }
}

body.is-booting .answer { visibility: hidden; }

@media print {
body { background: #fff; color: #111; }
.top-tools, .view-toggle, .stage-3d, .section-tools, .scenario-tabs, .skip, .sheet-scrim, .toast, #faq, .nav { display: none !important; }
body::before, .bg { display: none; }
.top { position: static; backdrop-filter: none; }
.card, .table-wrap, .panel { background: #fff; border-color: #ccc; box-shadow: none; backdrop-filter: none; }
:root { --ink: #111; --ink-2: #333; --ink-3: #555; --line: #ddd; --line-2: #ccc; }
.stage-grid { grid-template-columns: 1fr; }
.stage-2d { display: block !important; }
}

.sk-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 8px 8px 0; font-size: 11.5px; color: var(--ink-3); font-weight: 600; }
.sk-legend span { display: inline-flex; align-items: center; gap: 6px; }
.sk-legend i { width: 10px; height: 10px; border-radius: 3px; }
.sk-legend .is-modelled i { opacity: 0.55; outline: 1px dashed rgba(232, 196, 141, 0.7); outline-offset: 1px; }
.sk-legend .is-modelled { color: #d9b27a; }
.sk-legend .sk-foot { flex-basis: 100%; font-weight: 500; }
.src-table td:nth-child(2), .src-table td:nth-child(3) { white-space: nowrap; }
