@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@600;700;800&display=swap");

:root {
  --ink: #16221c;
  --muted: #657169;
  --cream: #f4f1e9;
  --paper: #fffdf8;
  --green: #1d6145;
  --lime: #b8e34b;
  --line: #dcded7;
  --shadow: 0 24px 70px rgba(21, 42, 31, 0.12);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
}
button, input { font: inherit; }
button { cursor: pointer; }

main { min-height: 100vh; overflow: hidden; }
.site-header {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
}
.brand > span:last-child span { color: var(--green); }
.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 11px;
  background: var(--green);
  color: white;
}
.country-switch {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.5);
}
.country-switch button,
.country-switch a {
  border: 0;
  border-radius: 999px;
  background: transparent;
  padding: 8px 13px;
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}
.country-switch button.active,
.country-switch a.active { background: var(--ink); color: white; }

.hero {
  position: relative;
  width: min(1180px, calc(100% - 40px));
  margin: 48px auto 36px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
h1, h2, h3 { font-family: "Manrope", sans-serif; }
h1 {
  max-width: 800px;
  margin: 0;
  font-size: clamp(42px, 6vw, 76px);
  line-height: .98;
  letter-spacing: -.055em;
}
.lead {
  max-width: 610px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}
.year-badge {
  display: grid;
  width: 112px;
  height: 112px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(29,97,69,.3);
  border-radius: 50%;
  color: var(--green);
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  transform: rotate(8deg);
}
.year-picker {
  min-width: 150px;
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid #d8ded8;
  border-radius: 18px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 10px 30px rgba(29,97,69,.08);
}
.year-picker label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.year-picker select {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 0 36px 0 12px;
  background: #fff;
  color: var(--green);
  font: 800 18px/1 "Manrope", sans-serif;
}
.year-picker small {
  max-width: 220px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}
.year-picker.has-help { padding-right: 40px; }
.year-picker.has-help .help-info { top: 13px; right: 13px; }

.ad-slot {
  position: relative;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 32px;
  display: grid;
  place-items: center;
  border: 1px dashed #c5cbc4;
  border-radius: 15px;
  background: rgba(255,255,255,.38);
  color: #7c867f;
  text-align: center;
}
.ad-slot > span {
  position: absolute;
  align-self: start;
  margin-top: 9px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.ad-slot > div { display: grid; gap: 3px; }
.ad-slot strong {
  color: #7b847e;
  font-size: 12px;
  font-weight: 700;
}
.ad-slot small { font-size: 10px; }
.promo-banner {
  display: block;
  width: min(970px, calc(100% - 40px));
  margin: 0 auto 32px;
  border-radius: 8px;
  overflow: hidden;
  background: #001039;
  box-shadow: 0 10px 30px rgba(0, 16, 57, .12);
}
.promo-banner img {
  display: block;
  width: 100%;
  height: auto;
}
.promo-banner:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 4px;
}
.ad-slot-banner {
  min-height: 112px;
  max-width: 970px;
}
.ad-slot-after-calculator {
  margin-top: -58px;
  margin-bottom: 48px;
}
.ad-slot-rectangle {
  width: min(336px, calc(100% - 40px));
  min-height: 280px;
  margin-top: -54px;
  margin-bottom: 82px;
}

.calculator-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 100px;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  border-radius: 28px;
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.form-panel { padding: 42px; }
.result-panel {
  position: relative;
  padding: 48px 42px;
  background: var(--green);
  color: white;
}
.result-panel::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -120px;
  top: -120px;
  border: 60px solid rgba(184,227,75,.12);
  border-radius: 50%;
}
.field { display: grid; gap: 9px; }
.field label, .inline-field label {
  color: #4f5b53;
  font-size: 13px;
  font-weight: 700;
}
.field > input, .money-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
  transition: border-color .2s, box-shadow .2s;
}
.field > input { height: 52px; padding: 0 16px; }
.field > input:focus, .money-input:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(29,97,69,.09);
  outline: none;
}
.money-input { display: flex; align-items: center; padding-right: 16px; }
.money-input input {
  width: 100%;
  height: 52px;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0 16px;
}
.money-input span { color: var(--green); font-weight: 800; }
.gross-field .money-input input {
  height: 68px;
  font-family: "Manrope", sans-serif;
  font-size: 28px;
  font-weight: 800;
}
.gross-field .money-input span { font-size: 20px; }
.section-label {
  margin: 32px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  color: #88918b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.two-fields, .spouse-fields {
  display: grid;
  gap: 14px;
}
.two-fields { grid-template-columns: repeat(3, 1fr); }
.two-fields.two-fields-current { grid-template-columns: repeat(2, 1fr); }
.spouse-fields { grid-template-columns: 1fr 1fr; }

.salary-charts {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 76px;
}
.charts-heading {
  max-width: 720px;
  margin-bottom: 28px;
}
.charts-heading h2 {
  margin: 7px 0 10px;
  font-family: "Manrope", sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -.04em;
}
.charts-heading > p:last-child { margin: 0; color: var(--muted); }
.charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.chart-card {
  display: grid;
  grid-template-columns: minmax(190px, 230px) 1fr;
  gap: 24px 30px;
  align-items: center;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: 0 16px 44px rgba(21, 42, 31, .07);
}
.chart-card > div:first-child { grid-column: 1 / -1; }
.chart-card h3 {
  margin: 4px 0 0;
  font-family: "Manrope", sans-serif;
  font-size: 22px;
  letter-spacing: -.025em;
}
.chart-kicker {
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.pie-chart {
  position: relative;
  width: min(100%, 220px);
  aspect-ratio: 1;
  border-radius: 50%;
  transition: background .25s ease;
}
.pie-chart::after {
  content: "";
  position: absolute;
  inset: 25%;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 0 0 1px rgba(22, 34, 28, .04);
}
.pie-center {
  position: absolute;
  z-index: 1;
  inset: 25%;
  display: grid;
  place-content: center;
  text-align: center;
}
.pie-center span { color: var(--muted); font-size: 11px; font-weight: 700; }
.pie-center strong { margin-top: 2px; font-size: 13px; }
.chart-legend { display: grid; gap: 11px; }
.legend-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.legend-label { display: flex; gap: 8px; align-items: flex-start; color: var(--muted); }
.legend-label i {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  margin-top: 3px;
  border-radius: 3px;
}
.legend-row strong { display: grid; justify-items: end; white-space: nowrap; }
.legend-row strong span { font-weight: 700; }
.legend-row strong b { color: var(--green); font-size: 11px; }
.chart-note {
  max-width: 820px;
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.child-options {
  margin-top: 12px;
  padding: 4px 14px;
  border-radius: 14px;
  background: #f3f5f1;
}
.toggle-stack { display: grid; gap: 6px; }
.toggle-row {
  position: relative;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 8px 0;
  cursor: pointer;
}
.toggle-row > span:first-child { display: grid; gap: 3px; }
.toggle-row strong { font-size: 14px; }
.toggle-row small { color: var(--muted); font-size: 12px; }
.toggle-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.toggle {
  position: relative;
  width: 46px;
  height: 26px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #d6dad6;
  transition: .2s;
}
.toggle::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  top: 3px;
  left: 3px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 2px 5px rgba(0,0,0,.18);
  transition: .2s;
}
.toggle-row input:checked + .toggle { background: var(--green); }
.toggle-row input:checked + .toggle::after { transform: translateX(20px); }
.toggle-row input:focus-visible + .toggle { outline: 3px solid rgba(29,97,69,.25); }
.inline-field {
  display: grid;
  grid-template-columns: 1fr 170px;
  align-items: center;
  gap: 16px;
  padding: 10px 14px;
  border-radius: 13px;
  background: #f0f3ed;
}
.inline-field > input {
  height: 44px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 12px;
  background: white;
}
.select-field {
  display: grid;
  gap: 8px;
  padding: 10px 0;
}
.select-field label {
  color: #4f5b53;
  font-size: 13px;
  font-weight: 700;
}
.select-field select {
  width: 100%;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 13px;
  background: white;
  color: var(--ink);
}
.select-field select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(29,97,69,.09);
  outline: none;
}
.money-input.small input { height: 44px; }
.has-help { position: relative; }
.help-info {
  position: absolute;
  z-index: 8;
  top: -1px;
  right: 0;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border: 1px solid #9aa79e;
  border-radius: 50%;
  background: #fff;
  color: var(--green);
  font: 800 11px/1 "Manrope", sans-serif;
  cursor: help;
  user-select: none;
}
.toggle-row.has-help .help-info {
  top: 19px;
  right: 58px;
}
.inline-field.has-help .help-info {
  top: 12px;
  right: 184px;
}
.help-info:hover,
.help-info:focus-visible {
  border-color: var(--green);
  outline: 3px solid rgba(29,97,69,.12);
}
.help-tooltip {
  position: absolute;
  z-index: 20;
  top: calc(100% + 10px);
  right: -4px;
  width: min(310px, calc(100vw - 48px));
  padding: 12px 14px;
  border-radius: 12px;
  background: #153c2c;
  box-shadow: 0 12px 30px rgba(13,45,32,.24);
  color: #fff;
  font: 500 12px/1.5 "Inter", sans-serif;
  text-align: left;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.help-tooltip::before {
  content: "";
  position: absolute;
  right: 8px;
  bottom: 100%;
  border: 6px solid transparent;
  border-bottom-color: #153c2c;
}
.help-info:hover .help-tooltip,
.help-info:focus-visible .help-tooltip,
.has-help.is-help-open > .help-info .help-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.two-fields .help-info {
  width: 16px;
  height: 16px;
  font-size: 10px;
}
.two-fields .help-tooltip {
  top: auto;
  bottom: calc(100% + 8px);
  width: 230px;
  padding: 10px 11px;
  font-size: 11px;
}
.two-fields .help-tooltip::before {
  top: 100%;
  bottom: auto;
  border-top-color: #153c2c;
  border-bottom-color: transparent;
}
.spouse-fields {
  margin-top: 14px;
  padding: 18px;
  border: 1px solid #d7dfd8;
  border-radius: 16px;
  background: #f5f8f2;
}
.eligibility-note {
  grid-column: 1 / -1;
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.full-row { grid-column: 1 / -1; }
.result-panel > p:first-child {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(255,255,255,.68);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.net {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  font-family: "Manrope", sans-serif;
  font-size: clamp(44px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -.05em;
}
.per-month { color: rgba(255,255,255,.65); }
.bar {
  height: 9px;
  margin-top: 34px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  overflow: hidden;
}
.bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--lime);
  transition: width .35s ease;
}
.keep { color: rgba(255,255,255,.7); font-size: 13px; }
.keep strong { color: var(--lime); }
dl { margin: 34px 0 0; }
dl > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255,255,255,.13);
}
dt { color: rgba(255,255,255,.7); }
dd { margin: 0; font-weight: 700; }
.positive dd { color: var(--lime); }
.result-breakdown { margin-top: 34px; }
.result-detail {
  border-bottom: 1px solid rgba(255,255,255,.13);
}
.result-detail summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 15px 28px 15px 0;
  color: rgba(255,255,255,.72);
  cursor: pointer;
  list-style: none;
}
.result-detail summary::-webkit-details-marker { display: none; }
.result-detail summary::after {
  content: "+";
  position: absolute;
  right: 2px;
  top: 50%;
  color: var(--lime);
  font: 700 20px/1 "Manrope", sans-serif;
  transform: translateY(-50%);
}
.result-detail[open] summary::after { content: "−"; }
.result-detail summary:hover span,
.result-detail summary:focus-visible span { color: #fff; }
.result-detail summary:focus-visible {
  border-radius: 8px;
  outline: 2px solid rgba(184,227,75,.5);
  outline-offset: 2px;
}
.result-detail summary strong {
  color: #fff;
  font-size: 14px;
  white-space: nowrap;
}
.result-detail.positive summary strong { color: var(--lime); }
.detail-lines {
  display: grid;
  gap: 8px;
  padding: 2px 28px 14px 12px;
}
.detail-lines > div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: rgba(255,255,255,.58);
  font-size: 11px;
  line-height: 1.35;
}
.detail-lines strong {
  color: rgba(255,255,255,.82);
  font-weight: 700;
  white-space: nowrap;
}
.annual-card {
  display: grid;
  gap: 5px;
  margin-top: 26px;
  padding: 18px;
  border: 1px solid rgba(184,227,75,.35);
  border-radius: 16px;
  background: rgba(184,227,75,.1);
}
.employer-cost {
  margin-top: 20px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 18px;
  background: rgba(255,255,255,.08);
}
.nczd-card {
  margin-top: 20px;
  padding: 16px 18px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  background: rgba(255,255,255,.06);
}
.nczd-card > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.nczd-card > div span { color: rgba(255,255,255,.72); font-size: 13px; }
.nczd-card > div strong { color: #fff; font-family: "Manrope", sans-serif; font-size: 20px; }
.nczd-card dl { margin-top: 10px; }
.nczd-card dl div { padding: 7px 0; }
.nczd-card small { display: block; margin-top: 10px; color: rgba(255,255,255,.68); line-height: 1.45; }
.nczd-card.is-reduced {
  border-color: rgba(255,196,92,.55);
  background: rgba(255,173,51,.1);
}
.nczd-card.is-reduced > div strong,
.nczd-card.is-reduced dl dd { color: #ffd07a; }
.child-bonus-card {
  margin-top: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  background: rgba(255,255,255,.06);
}
.child-bonus-card > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.child-bonus-card > div span { color: rgba(255,255,255,.72); font-size: 13px; }
.child-bonus-card > div strong { color: #fff; font-family: "Manrope", sans-serif; font-size: 20px; }
.child-bonus-card dl { margin-top: 10px; }
.child-bonus-card dl div { padding: 7px 0; }
.child-bonus-card small { display: block; margin-top: 10px; color: rgba(255,255,255,.68); line-height: 1.45; }
.child-bonus-card.is-reduced {
  border-color: rgba(255,196,92,.55);
  background: rgba(255,173,51,.1);
}
.child-bonus-card.is-reduced > div strong,
.child-bonus-card.is-reduced dl dd { color: #ffd07a; }
.employer-cost > span,
.employer-cost > small {
  display: block;
  color: rgba(255,255,255,.72);
}
.employer-cost > span { font-size: 13px; font-weight: 700; }
.employer-cost > strong {
  display: block;
  margin: 4px 0 2px;
  color: var(--lime);
  font-family: "Manrope", sans-serif;
  font-size: clamp(26px, 4vw, 34px);
}
.employer-cost > small { font-size: 11px; }
.employer-cost dl { margin-top: 14px; }
.employer-cost dl div { padding: 8px 0; }
.employer-breakdown { margin-top: 14px; }
.employer-breakdown .result-detail summary { padding-top: 11px; padding-bottom: 11px; font-size: 12px; }
.employer-breakdown .detail-lines { padding-left: 8px; padding-right: 25px; }
.annual-card span { color: rgba(255,255,255,.75); font-size: 12px; }
.annual-card strong { color: var(--lime); font-family: "Manrope", sans-serif; font-size: 26px; }
.annual-card small { color: rgba(255,255,255,.7); line-height: 1.4; }

.user-guide {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto 88px;
  scroll-margin-top: 30px;
}
.guide-intro {
  max-width: 820px;
  margin-bottom: 52px;
}
.guide-intro h2 {
  margin: 8px 0 16px;
  font-family: "Manrope", sans-serif;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -.045em;
}
.guide-intro > p:last-of-type {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}
.guide-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
}
.guide-nav a {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.55);
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.guide-nav a:hover,
.guide-nav a:focus-visible {
  border-color: var(--green);
  background: var(--paper);
}
.guide-section {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 26px;
  padding: 42px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 24px;
}
.guide-number {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 15px;
  background: var(--green);
  color: white;
  font-family: "Manrope", sans-serif;
  font-size: 13px;
  font-weight: 800;
}
.guide-section h3,
.guide-faq h3 {
  margin: 4px 0 24px;
  font-family: "Manrope", sans-serif;
  font-size: clamp(24px, 3vw, 33px);
  letter-spacing: -.035em;
}
.guide-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.guide-items section {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,253,248,.72);
}
.guide-items h4 {
  margin: 0 0 10px;
  font-size: 17px;
}
.guide-items p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
.guide-items .impact {
  margin-top: 13px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  color: var(--ink);
}
.guide-items .impact strong { color: var(--green); }
.guide-faq {
  margin-top: 24px;
  padding: 34px;
  border-radius: 24px;
  background: var(--ink);
  color: white;
}
.guide-faq .eyebrow { color: var(--lime); }
.guide-faq details { border-top: 1px solid rgba(255,255,255,.16); }
.guide-faq summary {
  position: relative;
  padding: 18px 42px 18px 0;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.guide-faq summary::-webkit-details-marker { display: none; }
.guide-faq summary::after {
  content: "+";
  position: absolute;
  top: 14px;
  right: 2px;
  color: var(--lime);
  font-size: 24px;
}
.guide-faq details[open] summary::after { content: "−"; }
.guide-faq details p {
  max-width: 760px;
  margin: -3px 0 19px;
  color: rgba(255,255,255,.7);
  font-size: 14px;
  line-height: 1.7;
}

.explanation {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 90px;
}
.explanation h2 {
  max-width: 580px;
  margin: 0 0 38px;
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -.04em;
}
.explanation-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.explanation article {
  padding: 26px;
  border-top: 1px solid #bfc5bf;
}
.explanation article > span { color: var(--green); font-size: 12px; font-weight: 800; }
.explanation h3 { margin: 24px 0 9px; font-size: 20px; }
.explanation article p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 30px max(20px, calc((100% - 1180px) / 2));
  background: var(--ink);
  color: white;
}
footer p { max-width: 650px; margin: 0; color: rgba(255,255,255,.55); font-size: 12px; text-align: right; }
.cookie-settings-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--lime);
  font-size: 12px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookie-consent {
  position: fixed;
  z-index: 1000;
  right: 20px;
  bottom: 20px;
  left: 20px;
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 22px;
  background: #16221c;
  color: white;
  box-shadow: 0 24px 80px rgba(0,0,0,.3);
}
.cookie-copy {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 16px;
}
.cookie-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  background: var(--lime);
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  font-weight: 800;
}
.cookie-copy h2 {
  margin: 0 0 6px;
  font: 800 19px/1.2 "Manrope", sans-serif;
}
.cookie-copy p {
  max-width: 790px;
  margin: 0;
  color: rgba(255,255,255,.68);
  font-size: 13px;
  line-height: 1.55;
}
.cookie-preferences {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-top: 18px;
}
.cookie-preferences label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 13px;
  background: rgba(255,255,255,.05);
}
.cookie-preferences label span { display: grid; gap: 3px; }
.cookie-preferences strong { font-size: 12px; }
.cookie-preferences small { color: rgba(255,255,255,.55); font-size: 10px; line-height: 1.35; }
.cookie-preferences input { width: 18px; height: 18px; accent-color: var(--lime); }
.cookie-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.cookie-button {
  min-height: 42px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 11px;
  padding: 9px 14px;
  font-weight: 700;
}
.cookie-button.primary { border-color: var(--lime); background: var(--lime); color: var(--ink); }
.cookie-button.secondary { background: transparent; color: white; }
.cookie-button:hover { filter: brightness(1.08); }
.cookie-button:focus-visible,
.cookie-settings-link:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }

@media (max-width: 850px) {
  .hero { margin-top: 28px; }
  .year-badge { display: none; }
  .year-picker { min-width: 135px; }
  .calculator-shell { grid-template-columns: 1fr; }
  .result-panel { order: -1; }
  .charts-grid { grid-template-columns: 1fr; }
  .guide-items { grid-template-columns: 1fr; }
  .explanation-grid { grid-template-columns: 1fr; }
  .explanation article { padding-left: 0; }
}
@media (max-width: 560px) {
  .site-header { width: min(100% - 28px, 1180px); height: 76px; }
  .hero, .calculator-shell, .explanation, .user-guide { width: min(100% - 24px, 1180px); }
  .salary-charts { width: min(100% - 24px, 1180px); }
  .hero { margin-bottom: 24px; }
  .ad-slot {
    width: min(100% - 24px, 1180px);
    margin-bottom: 24px;
  }
  .promo-banner {
    width: min(100% - 24px, 970px);
    margin-bottom: 24px;
  }
  .ad-slot-banner { min-height: 100px; }
  .ad-slot-after-calculator { margin-top: -34px; margin-bottom: 38px; }
  .ad-slot-rectangle {
    width: min(300px, calc(100% - 24px));
    min-height: 250px;
    margin-top: -42px;
    margin-bottom: 62px;
  }
  h1 { font-size: 42px; }
  .lead { font-size: 16px; }
  .form-panel, .result-panel { padding: 28px 22px; }
  .two-fields, .two-fields.two-fields-current, .spouse-fields { grid-template-columns: 1fr; }
  .charts-grid, .chart-card { grid-template-columns: 1fr; }
  .guide-section { grid-template-columns: 1fr; gap: 16px; padding: 34px 0; }
  .guide-items section { padding: 19px; }
  .guide-faq { padding: 27px 21px; }
  .pie-chart { width: min(220px, 78vw); margin: 0 auto; }
  .year-picker { width: 100%; }
  .eligibility-note { grid-column: auto; }
  .inline-field { grid-template-columns: 1fr; }
  .inline-field.has-help .help-info { top: 10px; right: 10px; }
  .help-tooltip {
    position: fixed;
    top: auto;
    right: 18px;
    bottom: 18px;
    width: calc(100vw - 36px);
  }
  .two-fields .help-tooltip {
    bottom: 18px;
    width: calc(100vw - 36px);
    padding: 12px 14px;
    font-size: 12px;
  }
  .help-tooltip::before { display: none; }
  .calculator-shell { border-radius: 21px; margin-bottom: 70px; }
  footer { display: grid; }
  footer p { text-align: left; }
  .cookie-consent {
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: calc(100% - 24px);
    max-height: calc(100vh - 24px);
    padding: 19px;
    overflow-y: auto;
  }
  .cookie-copy { grid-template-columns: 1fr; }
  .cookie-icon { display: none; }
  .cookie-preferences { grid-template-columns: 1fr; }
  .cookie-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .cookie-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
