.home-impact [hidden] { display: none; }
.home-impact {
  background: #f5e8d8;
  color: #441525;
  position: relative;
  color-scheme: light;
  scroll-margin-block-start: 72px;
}
.home-impact .shell {
  padding-block: clamp(44px, 6vw, 88px);
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  gap: clamp(32px, 5vw, 78px);
  align-items: start;
}
.impact-intro h2 {
  max-width: 16ch;
  font: 400 clamp(38px, 4.65vw, 72px)/1.04 var(--serif);
  letter-spacing: -.05em;
  text-wrap: balance;
}
.impact-intro h2 em { color: #78374c; }
.impact-intro p {
  margin-top: 20px;
  max-width: 43ch;
  color: #65434e;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.55;
}
.impact-estimate {
  min-width: 0;
  container-type: inline-size;
}
.impact-summary {
  padding: clamp(22px, 3.2vw, 46px);
  border: 1px solid #d2b6ab;
  border-radius: 24px;
  background: #fcf3e7;
}
.impact-summary-label {
  font: 600 16px/1.35 var(--sans);
  color: #633d4a;
}
.impact-amount {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 12px;
  margin: 8px 0 12px;
}
.impact-amount strong {
  max-width: 100%;
  color: #541e34;
  font: 400 clamp(54px, 14cqi, 100px)/1.07 var(--serif);
  letter-spacing: -.055em;
  font-variant-numeric: lining-nums tabular-nums;
  overflow-wrap: anywhere;
}
.impact-amount span {
  color: #78515e;
  font: 500 16px/1.35 var(--sans);
  white-space: nowrap;
}
.impact-benefit {
  max-width: 50ch;
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.5;
}
.impact-formula {
  margin: 18px 0 14px;
  font: 600 16px/1.45 var(--sans);
}
.impact-money {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin: 22px 0 5px;
  padding-top: 16px;
  border-top: 1px solid #b99b94;
  font: 600 16px/1.4 var(--sans);
}
.impact-money strong {
  max-width: 100%;
  font: 400 clamp(28px, 6cqi, 40px)/1.12 var(--serif);
  letter-spacing: -.035em;
  font-variant-numeric: lining-nums tabular-nums;
  overflow-wrap: anywhere;
}
.impact-note { color: #674550; font-size: 15px; line-height: 1.5; }
.impact-payback {
  margin: 15px 0 0;
  color: #633d4a;
  font-size: 16px;
  line-height: 1.5;
}
.impact-payback strong { color: #441525; }
.impact-settings { margin-top: 14px; }
.impact-settings summary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  min-height: 46px;
  padding: 10px 21px;
  border: 1px solid #502035;
  border-radius: 999px;
  background: #502035;
  color: #fff3e1;
  cursor: pointer;
  font: 600 15px/1.35 var(--sans);
  list-style: none;
}
.impact-settings summary::-webkit-details-marker { display: none; }
.impact-settings summary::after {
  content: '';
  flex: 0 0 7px;
  height: 7px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-2px) rotate(45deg);
}
.impact-settings[open] summary::after { transform: translateY(2px) rotate(225deg); }
.impact-settings summary:focus-visible,
.impact-options input:focus-visible + span,
.impact-pill:focus-within { outline: 2px solid #793c52; outline-offset: 3px; }

.impact-mode, .impact-usecases {
  min-inline-size: 0;
  margin: 22px 0 16px;
  padding: 0;
  border: 0;
}
.impact-mode legend, .impact-usecases legend {
  margin-bottom: 8px;
  padding: 0;
  font: 600 15px/1.4 var(--sans);
}
.impact-case {
  margin: 14px 0 18px;
  padding-left: 14px;
  border-left: 2px solid #b68b91;
  color: #65434e;
  font-size: 16px;
  line-height: 1.5;
}
.impact-case-label {
  display: block;
  margin-bottom: 4px;
  color: #76394e;
  font: 600 12px/1.35 var(--sans);
  letter-spacing: .07em;
  text-transform: uppercase;
}
.impact-case [data-case] { display: block; }
.impact-options { display: flex; flex-wrap: wrap; gap: 8px; }
.impact-options label { position: relative; max-width: 100%; }
.impact-options input {
  position: absolute;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.impact-options span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid #b69496;
  border-radius: 999px;
  background: #fbf1e4;
  color: #593343;
  font: 500 15px/1.35 var(--sans);
}
.impact-options span::before {
  content: '';
  flex: 0 0 12px;
  height: 12px;
  border: 1px solid currentColor;
  border-radius: 50%;
}
.impact-options input:checked + span { background: #652c42; border-color: #652c42; color: #fff3e1; }
.impact-options input:checked + span::before { background: radial-gradient(circle, currentColor 32%, transparent 36%); }
.impact-usecases .impact-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  max-width: 30rem;
}
.impact-usecases .impact-options span {
  width: 100%;
  height: 100%;
  padding-inline: 13px;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.impact-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 10px;
}
.impact-pill {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
  padding: 10px 22px 4px;
  border: 1px solid #b69496;
  border-radius: 999px;
  background: #fcf4e8;
  color: #441525;
  cursor: text;
}
.impact-label { font: 500 14px/1.3 var(--sans); color: #674550; }
.impact-input { display: flex; align-items: center; gap: 7px; }
.impact-input input {
  flex: 1;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: 600 20px/1.2 var(--sans);
  font-variant-numeric: tabular-nums;
}
.impact-input input:focus { outline: none; }
.impact-pill:focus-within { background: #fff9f0; border-color: #793c52; }
.impact-pill:has([aria-invalid=true]) { border-color: #9c2239; }
.impact-unit { font: 500 14px/1.3 var(--sans); color: #674550; white-space: nowrap; }
.impact-error { margin-top: 10px; color: #8d1936; }
.impact-threshold {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #c8aba3;
  color: #633d4a;
  font: 400 15px/1.5 var(--sans);
}
.impact-threshold strong { color: #441525; }
.impact-threshold + .impact-threshold { padding-top: 0; margin-top: 8px; border: 0; }
@media (hover: hover) {
  .impact-settings summary:hover { background: #6a3147; }
  .impact-pill:hover, .impact-options label:hover span { border-color: #78475a; }
}
@media (max-width: 850px) {
  .home-impact .shell { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .impact-intro p { margin-top: 12px; max-width: 58ch; }
  .impact-usecases { margin-bottom: 0; }
}
@media (max-width: 440px) {
  .impact-usecases .impact-options span { padding-inline: 10px; gap: 6px; }
  .impact-usecases .impact-options span::before { flex-basis: 9px; height: 9px; }
}
@media (max-width: 305px) {
  .impact-usecases .impact-options { grid-template-columns: minmax(0, 1fr); }
}
@container (max-width: 395px) {
  .impact-fields { grid-template-columns: minmax(0, 1fr); }
}
@media (forced-colors: active) {
  .impact-options input:checked + span { border: 2px solid Highlight; }
  .impact-options input:checked + span::before { background: Highlight; forced-color-adjust: none; }
}
