:root {
  color-scheme: light;
  --ink: #1b302c;
  --muted: #546962;
  --deep: #12362f;
  --paper: #f3f5ef;
  --line: #dce5dc;
  --soft: #edf4ed;
  --neutral: #147461;
  font: 16px/1.49 "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
button, select, input { font: inherit; }
button, select, summary { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #60946f; outline-offset: 3px; }
.wrap { width: min(1190px, calc(100% - 64px)); margin-inline: auto; }
header { background: white; }
.topbar, .footer-inner { min-height: 65px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; gap: 9px; align-items: center; font-weight: 780; letter-spacing: -.045em; font-size: 1.16rem; text-decoration: none; white-space: nowrap; }
.mark { display: grid; place-items: center; color: #d6efad; background: var(--deep); border-radius: 8px; width: 31px; height: 31px; }
nav { display: flex; gap: 26px; }
nav a, .jump { font-size: .88rem; font-weight: 650; text-decoration: none; }
nav a:hover, .jump:hover { text-decoration: underline; }
.jump { border: 1px solid #c1d3c4; padding: 8px 12px; border-radius: 8px; }
.hero { background: var(--deep); color: #fff; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 5vw, 72px); padding-block: clamp(25px, 4vw, 52px); }
.eyebrow { font-weight: 800; font-size: .75rem; letter-spacing: .14em; color: #376550; margin: 0 0 6px; }
.hero .eyebrow { color: #d2eaa9; }
h1, h2 { font: 400 clamp(2.1rem, 3.5vw, 3rem)/1.07 Georgia, serif; margin: 0; letter-spacing: -.045em; }
h1 { font-size: clamp(2.7rem, 5.3vw, 5rem); }
h1 em { color: #dcf2b8; font-weight: inherit; }
.hero-lead { color: #d9e7dd; margin: 18px 0 0; max-width: 46ch; }
.action-link { display: inline-flex; align-items: center; min-height: 46px; margin-top: 23px; padding: 9px 16px; border-radius: 8px; background: #dcf2b8; color: #17362d; font-weight: 720; text-decoration: none; }
.action-link:hover { background: #ebf8d7; }
.hero-visual { position: relative; display: flex; align-items: flex-end; justify-content: stretch; min-width: 0; min-height: clamp(320px, 34vw, 450px); overflow: hidden; isolation: isolate; border: 1px solid #678477; border-radius: 15px; background: #2b5447; }
.hero-image { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 49%; }
.hero-visual::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 53%, #102b25a6); }
.hero-rates { min-width: 0; width: calc(100% - 24px); margin: 12px; border: 1px solid #c9dbc44f; border-radius: 9px; background: #14332cee; }
.hero-rates dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
.hero-rates dl > div { padding: 7px 10px 9px; }
.hero-rates dl > div + div { border-left: 1px solid #577168; }
.hero-rates dt { color: #e3ebe3; font-size: .79rem; }
.hero-rates dd { font: 400 1.65rem/1.12 Georgia, serif; margin: 4px 0 0; }
.hero .rate-caption { border-bottom: 1px solid #577168; padding: 6px 10px; color: #e3ebe3; font-size: .82rem; margin: 0; }
.dot { display: inline-block; vertical-align: 1px; border-radius: 50%; width: 8px; height: 8px; margin-right: 4px; background: currentColor; }
.dot.defensive { background: #9dcafa; }
.dot.neutral { background: #8ed7bb; }
.dot.offensive { background: #f4ad84; }
.dot.very-offensive { background: #eab5de; }
.workspace { display: grid; grid-template-columns: 310px minmax(0, 1fr); gap: 24px; align-items: start; padding-block: 31px 40px; }
.card { background: white; border: 1px solid var(--line); border-radius: 13px; }
.inputs { padding: 19px; }
.inputs h2 { font-size: 1.68rem; margin-bottom: 20px; }
.tax-options { margin-bottom: 15px; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.tax-options summary { font-size: .91rem; }
.tax-fields { display: grid; gap: 11px; margin-top: 9px; }
fieldset { margin: 0 0 15px; padding: 0 0 13px; border: 0; border-bottom: 1px solid var(--line); display: grid; gap: 11px; min-width: 0; }
legend { padding: 0; font-size: .91rem; font-weight: 760; margin-bottom: 8px; }
label { display: grid; gap: 4px; font-size: .86rem; font-weight: 630; }
label small { color: var(--muted); font-weight: 400; font-size: .8rem; }
.pairs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.input, select { border: 1px solid #cad9ce; border-radius: 7px; background: white; color: var(--ink); min-height: 39px; }
.input { display: flex; align-items: center; padding-inline: 9px; gap: 5px; font-size: .96rem; }
.input input { border: 0; outline: 0; padding: 5px 0; width: 100%; min-width: 0; background: transparent; color: var(--ink); }
.input span { color: var(--muted); }
.input:focus-within { outline: 2px solid #60946f; outline-offset: 1px; }
.inline { display: flex; align-items: flex-start; gap: 7px; font-weight: 550; }
input[type=checkbox] { margin: 3px 0 0; width: 16px; height: 16px; accent-color: var(--neutral); flex-shrink: 0; }
.primary { width: 100%; min-height: 42px; border: 0; border-radius: 8px; background: var(--deep); color: white; padding: 9px; font-weight: 700; }
.primary:hover { background: #215346; }
.outputs { display: grid; gap: 13px; min-width: 0; }
.output-head { display: flex; justify-content: space-between; align-items: end; gap: 10px; }
.output-head h2 { font-size: clamp(1.95rem, 3vw, 2.85rem); }
.output-head p { margin: 6px 0 0; }
.output-head .tax-summary { font-size: .86rem; }
.chip { align-self: center; padding: 5px 9px; background: #e3ece1; border-radius: 6px; color: #335749; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.metric { padding: 12px 14px; border-left: 3px solid var(--neutral); }
.metric.defensive { border-left-color: #366a9a; }
.metric.offensive { border-left-color: #a2542e; }
.metric.very-offensive { border-left-color: #8a477d; }
.metric .label { font-size: .85rem; font-weight: 760; display: block; }
.metric strong { font: 400 clamp(1.35rem, 2.65vw, 2.1rem)/1.15 Georgia, serif; display: block; margin-block: 3px; }
.muted, .metric small { font-size: .83rem; color: var(--muted); }
.chart-card, .impact { min-width: 0; padding: 16px; }
.chart-head { display: flex; justify-content: space-between; align-items: start; gap: 10px; margin-bottom: 6px; }
h3 { margin: 0; font-size: 1.09rem; }
select { padding: 5px 27px 5px 9px; max-width: 100%; appearance: none; background-image: linear-gradient(45deg, transparent 50%, #496459 50%), linear-gradient(135deg, #496459 50%, transparent 50%); background-position: calc(100% - 13px) 53%, calc(100% - 8px) 53%; background-size: 5px 5px; background-repeat: no-repeat; font-size: .86rem; }
#chart { display: block; width: 100%; height: 290px; }
.legend, .chart-controls { display: flex; flex-wrap: wrap; gap: 7px 17px; }
.legend { color: var(--muted); font-size: .84rem; margin: 3px 0 11px; }
.legend i { display: inline-block; vertical-align: 3px; margin-right: 5px; border-top: 3px solid var(--neutral); width: 19px; }
.legend .defensive { border-color: #366a9a; }
.legend .offensive { border-color: #a2542e; }
.legend .very-offensive { border-color: #8a477d; }
.legend .dashed { border-top-style: dashed; }
.chart-controls { padding-top: 10px; border-top: 1px solid var(--line); }
.stress-note { margin: 10px 0 0; padding: 7px 9px; background: #f8efe9; color: #6d3b24; border-radius: 6px; font-size: .87rem; }
.inspect { margin-top: 10px; }
summary { font-weight: 670; }
.inspect summary { font-size: .86rem; color: #32614f; }
#age-detail { display: grid; gap: 5px; margin-top: 8px; font-size: .88rem; }
#age-detail input { width: min(100%, 360px); accent-color: var(--neutral); }
.insights { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-block: 9px 13px; }
.insights > div { background: var(--soft); border-radius: 7px; padding: 8px 10px; font-size: .86rem; }
.insights strong { display: block; margin-bottom: 2px; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; min-width: 610px; text-align: left; font-size: .88rem; }
th, td { padding: 8px; border-bottom: 1px solid var(--line); }
thead { background: var(--soft); }
th { font-weight: 680; }
.method { background: white; border-top: 1px solid var(--line); }
.method-wrap { display: grid; grid-template-columns: 310px 1fr; gap: 24px; padding-block: 32px 42px; }
.method h2 { font-size: 2.3rem; }
.method details { padding-block: 9px; border-bottom: 1px solid var(--line); }
.method details p { color: var(--muted); margin: 6px 0 1px; }
footer { background: var(--deep); color: #e2ece4; }
.footer-inner { flex-wrap: wrap; padding-block: 13px; font-size: .85rem; }
footer .mark { background: #ffffff1a; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 890px) {
  .wrap { width: min(1190px, calc(100% - 36px)); }
  .workspace, .method-wrap { grid-template-columns: 260px minmax(0, 1fr); gap: 14px; }
  .hero-rates dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-rates dl > div:nth-child(odd) { border-left: 0; }
  .hero-rates dl > div:nth-child(n + 3) { border-top: 1px solid #577168; }
}
@media (max-width: 720px) {
  .workspace, .method-wrap { grid-template-columns: minmax(0, 1fr); }
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 23px; padding-block: 28px; }
  .hero-visual { min-height: clamp(225px, 58vw, 360px); }
  .hero-rates dd { font-size: 1.45rem; }
  nav { display: none; }
  .inputs { padding: 16px; }
}
@media (max-width: 420px) {
  .wrap { width: calc(100% - 26px); }
  .topbar { gap: 8px; }
  .jump { padding: 5px 8px; }
  .chart-card, .impact { padding: 11px; }
  #chart { height: 245px; }
  .insights { grid-template-columns: 1fr; }
  .chip { font-size: .71rem; }
}
@media (prefers-reduced-motion: reduce) { :root { scroll-behavior: auto; } }

.advice { padding-block: 35px 43px; border-top: 1px solid var(--line); }
.advice-wrap { display: grid; grid-template-columns: minmax(230px, .75fr) minmax(0, 1.65fr); gap: 16px clamp(18px, 4vw, 56px); align-items: start; }
.advice-heading {
  grid-column: 1 / -1;
  background: var(--deep);
  color: white;
  padding: clamp(20px, 4vw, 42px);
  border-radius: 13px;
}
.advice-heading .eyebrow { color: #dcf2b8; }
.advice-title { font-size: clamp(1.8rem, 3.8vw, 3.25rem); text-wrap: balance; overflow-wrap: anywhere; }
.advice-lead { max-width: 61ch; margin: 14px 0 0; color: #e4efe5; }
.advice-intro a { display: inline-block; margin-top: 11px; font-size: .9rem; font-weight: 680; }
.advice-form { padding: clamp(15px, 3vw, 23px); }
.advice-form h3 { margin-bottom: 13px; }
.advice-form .advice-status { margin: 0; color: var(--muted); text-align: center; font-size: .88rem; }
.advice-form .advice-status:not(:empty) { margin-top: 8px; }
.advice-form .pairs { gap: 11px; }
.advice-fields > label { align-content: start; }
@supports (grid-template-rows: subgrid) {
  @media (min-width: 451px) {
    .advice-form .advice-fields { row-gap: 4px; }
    .advice-fields > label { grid-row: span 2; grid-template-rows: subgrid; padding-bottom: 7px; }
    .advice-fields > .with-hint { grid-row: span 3; }
    .advice-fields > .with-hint + label { grid-row: span 3; }
  }
}
.advice-form select { width: 100%; }
.advice-form input[readonly] { font-weight: 700; }
.advice-form button:disabled { opacity: .6; cursor: default; }
.advice-intro h3 { margin: 19px 0 8px; }
.advice-steps { margin: 0 0 16px; padding-left: 1.35rem; }
.advice-steps li { padding: 8px 0 8px 4px; border-top: 1px solid var(--line); }
.advice-steps li::marker { color: var(--deep); font-weight: 750; }
.advice-steps li p, .advice-intro details p { margin: 3px 0 0; color: var(--muted); font-size: .9rem; }
.advice-intro summary { font-weight: 680; }
.advice-description { margin: 0 0 15px; color: var(--muted); }
.advice-form .situatie, .advice-form .contact { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.advice-form .contact { display: grid; gap: 11px; }
.advice-form .situatie h3 { margin: 0 0 7px; font-size: 1rem; }
.advice-form .situatie fieldset { display: block; margin: 0; padding: 0; border: 0; }
.advice-form .situatie legend { margin-bottom: 4px; }
.advice-form .choices { display: flex; flex-wrap: wrap; gap: 7px; }
.advice-form .choices label { display: flex; align-items: center; gap: 6px; min-height: 36px; border: 1px solid #cad9ce; border-radius: 7px; padding: 4px 10px; cursor: pointer; }
.advice-form .choices label:has(input:checked) { background: var(--soft); border-color: #60946f; }
.advice-form .choices input { margin: 0; accent-color: var(--deep); }
.advice-sharing { margin: 12px 0; padding: 9px 11px; background: var(--soft); border-radius: 7px; font-size: .9rem; }
.advice-sharing strong { display: block; }
@media (max-width: 720px) { .advice-wrap { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 450px) { .advice-form .pairs { grid-template-columns: minmax(0, 1fr); } }

.planner-notice { font-style: italic; margin: 11px 0 0; padding: 9px 13px; border: 1px solid var(--line); border-left: 3px solid #6f9180; border-radius: 7px; background: var(--soft); color: var(--muted); font-size: .88rem; }
.planner-notice strong { color: var(--ink); }
@media (max-width: 420px) {
  .topbar .brand { gap: 7px; font-size: 1rem; }
  .topbar .jump { font-size: .8rem; }
}

.hero-copy .eyebrow { text-transform: uppercase; }
.selection-callout { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 18px; border-radius: 13px; background: var(--deep); color: white; }
.selection-callout > div { flex: 1 1 270px; }
.selection-callout p { max-width: 46ch; margin: 5px 0 0; color: #d9e7dd; font-size: .9rem; }
.selection-callout .action-link { margin: 0; }

.comparison-toggle { margin-top: 9px; min-height: 41px; padding: 6px 12px; border: 1px solid #cad9ce; border-radius: 7px; background: var(--soft); color: var(--deep); font-weight: 680; }
.comparison-toggle:hover { background: #e3eee3; }

.match-banner { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; padding: 6px 9px 6px 12px; border: 1px solid var(--line); border-left: 3px solid #6f9180; border-radius: 7px; background: var(--soft); color: var(--muted); font-size: .88rem; }
.match-banner-viewport { flex: 1; min-width: 0; overflow: hidden; }
.match-banner-track p { margin: 0; }
.match-banner-track strong { color: var(--ink); }
.match-banner-copy, .match-banner-toggle { display: none; }
.match-banner-toggle { flex-shrink: 0; min-height: 34px; padding: 3px 8px; border: 1px solid #bbcec1; border-radius: 6px; background: white; color: var(--deep); font-weight: 650; }
.match-banner-toggle:hover { background: #e3eee3; }
@media (prefers-reduced-motion: no-preference) {
  .match-banner-toggle { display: block; }
  .match-banner[data-motion="on"] .match-banner-track { display: flex; width: max-content; animation: match-banner-scroll 48s linear infinite; }
  .match-banner[data-motion="on"] .match-banner-track p { flex: 0 0 auto; padding: 4px 4rem 4px 0; white-space: nowrap; }
  .match-banner[data-motion="on"] .match-banner-copy { display: block; }
}
@keyframes match-banner-scroll { to { transform: translateX(-50%); } }
