.don-v4-hero,
.don-v4-teaser {
  background: #f0f4fb;
}

.don-v4-hero {
  padding-block: clamp(28px, 5vw, 70px);
  border-block-end: 1px solid #dbe3f3;
}

.don-v4-crumb {
  margin-block-end: clamp(18px, 4vw, 43px);
  color: #475675;
  font-size: .78rem;
}

.don-v4-crumb span { margin-inline: 6px; }

.don-v4-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
}

.don-v4-hero h1 {
  max-width: 18ch;
  margin-block: 9px 17px;
  font-size: clamp(2.15rem, 4.65vw, 4.35rem);
  line-height: 1.04;
  letter-spacing: -.045em;
}

.don-v4-lead {
  max-width: 55ch;
  margin-block: 0 21px;
  color: #344567;
  font-size: clamp(1rem, 1.5vw, 1.16rem);
}

.don-v4-hero-photo,
.don-v4-calc-photo,
.don-v4-budget-illustration { margin: 0; }

.don-v4-hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 5;
  border-radius: 20px;
  background: #dce4f0;
  object-fit: cover;
}

.don-v4-hero-photo figcaption,
.don-v4-calc-photo figcaption,
.don-v4-budget-illustration figcaption {
  margin-block-start: 6px;
  color: #475675;
  font-size: .67rem;
  line-height: 1.45;
}

.don-v4-cta.btn-primary {
  min-height: 48px;
  border-color: #2247ca;
  border-radius: 999px;
  background: #2247ca;
  color: #fff;
  white-space: normal;
}

.don-v4-cta.btn-primary:hover { background: #1537ac; }

.don-v4-small { color: #475675; font-size: .77rem; }
.don-v4-hero .don-v4-small { max-width: 49ch; }

.don-v4-teaser-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 25px;
  margin-block-end: 21px;
}

.don-v4-teaser-heading h2,
.don-v4-page h2 {
  margin-block: 8px 12px;
  font-size: clamp(1.75rem, 3.6vw, 3rem);
  line-height: 1.12;
  letter-spacing: -.04em;
}

.don-v4-teaser-heading p { max-width: 60ch; margin: 0; }

.don-v4-budgets {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0 13px;
  padding: 0;
  list-style: none;
}

.don-v4-budgets > li {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: clamp(14px, 1.85vw, 22px);
  border: 1px solid #d6dff1;
  border-radius: 14px;
  background: #fff;
}

.don-v4-index {
  color: #2546a3;
  font-size: .73rem;
  font-weight: 750;
  letter-spacing: .09em;
}

.don-v4-budgets h3 {
  margin-block: 7px;
  font-size: 1.03rem;
  line-height: 1.2;
  overflow-wrap: break-word;
}

.don-v4-budget-illustration {
  margin-block: 6px 10px;
}

.don-v4-budget-illustration img,
.don-v4-calc-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  padding: 4px;
  background: radial-gradient(ellipse at 45% 55%, #edf2fb, #f8faff 82%);
  object-fit: contain;
}

.don-v4-budget-illustration img { border-radius: 9px; }
.don-v4-budget-illustration figcaption { margin-block-start: 3px; }

.don-v4-budgets p {
  margin-block: 2px 16px;
  color: #475675;
  font-size: .87rem;
  line-height: 1.5;
}

.don-v4-benchmark {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 3px 8px;
  margin-block-start: auto;
  font-size: .68rem;
  color: #475675;
}

.don-v4-benchmark b { color: #2847a2; font-size: .92rem; }

.don-v4-page { display: grid; gap: clamp(32px, 6vw, 72px); }

.don-v4-calc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 45px);
  padding: clamp(20px, 4vw, 44px);
  border: 1px solid #d6dff1;
  border-radius: 22px;
  background: #f0f4fb;
}

.don-v4-calc[hidden] { display: none; }
.don-v4-controls > p { margin-block: 0 18px; }

.don-v4-frequency,
.don-v4-presets {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 12px 0 0;
  padding: 0;
  border: 0;
}

.don-v4-frequency legend,
.don-v4-presets legend,
.don-v4-field label {
  display: block;
  margin-block-end: 7px;
  padding: 0;
  font-size: .9rem;
  font-weight: 720;
}

.don-v4-frequency label,
.don-v4-presets button {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border: 1px solid #c5d1eb;
  border-radius: 10px;
  background: #fff;
  color: #1c376f;
  font-size: .84rem;
  font-weight: 670;
}

.don-v4-frequency input { accent-color: #2247ca; }
.don-v4-presets button[aria-pressed="true"] { border-color: #2247ca; background: #2247ca; color: #fff; }

.don-v4-field { margin-block-start: 13px; }
.don-v4-field input,
.don-v4-field select {
  width: 100%;
  min-height: 44px;
  padding: 6px 11px;
  border: 1px solid #b9c9e6;
  border-radius: 9px;
  background: #fff;
  color: #172956;
}
.don-v4-field input[aria-invalid="true"] { border-color: #bd2442; }
.don-v4-field small { color: #475675; font-size: .73rem; }

.don-v4-impact {
  align-self: start;
  overflow: hidden;
  border: 1px solid #d6dff1;
  border-radius: 15px;
  background: #fff;
}

.don-v4-calc-photo img { padding: clamp(12px, 2.5vw, 27px); }
.don-v4-calc-photo figcaption { margin-inline: clamp(15px, 2.5vw, 25px); }
.don-v4-impact-copy { padding: clamp(15px, 2.5vw, 25px); }
.don-v4-impact-amount { margin: 2px 0 7px; color: #2646a7; font-size: clamp(1.6rem, 3.6vw, 2.8rem); line-height: 1.12; font-weight: 790; }
.don-v4-impact-copy h3 { margin-block: 5px; font-size: 1.14rem; line-height: 1.25; }
.don-v4-impact-copy p { margin-block-end: 0; }

.don-v4-trust {
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid #d6dff1;
  border-radius: 18px;
}
.don-v4-trust p { max-width: 77ch; }
.don-v4-trust-actions { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.don-v4-trust-actions .btn { white-space: normal; }

.don-v4-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

[data-theme="dark"] :is(.don-v4-hero,.don-v4-teaser,.don-v4-calc) { background: #172440; border-color: #374a71; }
[data-theme="dark"] :is(.don-v4-budgets > li,.don-v4-impact,.don-v4-trust) { background: #213050; border-color: #445675; }
[data-theme="dark"] :is(.don-v4-small,.don-v4-budgets p,.don-v4-benchmark,.don-v4-lead,.don-v4-crumb,.don-v4-field small,.don-v4-hero-photo figcaption,.don-v4-calc-photo figcaption,.don-v4-budget-illustration figcaption) { color: #d4ddf0; }
[data-theme="dark"] :is(.don-v4-index,.don-v4-benchmark b,.don-v4-impact-amount) { color: #afc1ff; }
[data-theme="dark"] :is(.don-v4-frequency label,.don-v4-presets button,.don-v4-field input,.don-v4-field select) { background: #22304e; border-color: #60759e; color: #edf1ff; }
[data-theme="dark"] .don-v4-presets button[aria-pressed="true"] { background: #315ad6; border-color: #90a5f9; }
[data-contrast="true"] :is(.don-v4-small,.don-v4-crumb,.don-v4-benchmark,.don-v4-lead,.don-v4-budgets p) { color: currentColor; }

@media (prefers-reduced-motion: no-preference) {
  html:not([data-motion="off"]) .don-v4-calc-photo img { animation: don-v4-illustration-in .4s ease-out both; }
}

@keyframes don-v4-illustration-in {
  from { opacity: .4; }
  to { opacity: 1; }
}

@media (max-width: 960px) {
  .don-v4-budgets { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .don-v4-hero-grid,
  .don-v4-calc { grid-template-columns: minmax(0, 1fr); }
  .don-v4-teaser-heading { flex-direction: column; align-items: flex-start; gap: 13px; }
  .don-v4-budgets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 360px) {
  .don-v4-budgets { grid-template-columns: minmax(0, 1fr); }
}
