.wealth-tool,
.wealth-stage-map,
.wealth-intent-map,
.wealth-platforms,
.wealth-tax-box,
.wealth-editorial-card {
  scroll-margin-top: 150px;
}

.wealth-kicker {
  margin: 0 0 8px;
  color: #0675df;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.wealth-tool {
  margin: 26px 0;
  padding: clamp(24px, 4vw, 38px);
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #0c3158, #105f77);
  border-radius: 26px;
  box-shadow: 0 20px 48px rgba(13, 48, 86, .16);
}

.wealth-tool--teal {
  background: linear-gradient(135deg, #08675f, #088873);
}

.wealth-tool--plum {
  background: linear-gradient(135deg, #3a1d54, #6d2e62);
}

.wealth-tool-head {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
}

.wealth-tool-head h2,
.wealth-tool-head h3 {
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(27px, 3.4vw, 40px);
  line-height: 1.08;
}

.wealth-tool-head p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, .86);
}

.wealth-tool-badge {
  flex: 0 0 auto;
  padding: 8px 12px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
  background: rgba(255, 255, 255, .13);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
}

.wealth-tool-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(340px, .94fr);
  gap: 18px;
  align-items: stretch;
}

.wealth-tool-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 14px;
  align-content: start;
}

.wealth-tool-fields label {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
}

.wealth-tool-fields label > span {
  display: flex;
  min-height: 2.7em;
  align-items: flex-end;
}

.wealth-tool-fields input,
.wealth-tool-fields select {
  width: 100%;
  min-width: 0;
  height: 54px;
  padding: 0 15px;
  color: #0d2848;
  font: inherit;
  font-weight: 800;
  background: #fff;
  border: 2px solid transparent;
  border-radius: 11px;
}

.wealth-tool-fields input:focus,
.wealth-tool-fields select:focus {
  outline: 3px solid #65dfff;
  outline-offset: 2px;
}

.wealth-tool-results {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  min-width: 0;
  padding: 16px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 18px;
}

.wealth-result {
  min-width: 0;
  padding: 16px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 13px;
}

.wealth-result--primary {
  background: #fff;
}

.wealth-result span {
  display: block;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, .72);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.25;
  text-transform: uppercase;
}

.wealth-result strong {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: #fff;
  font-size: clamp(23px, 3.2vw, 34px);
  font-variant-numeric: tabular-nums;
  line-height: 1.08;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wealth-result--primary span {
  color: #59708a;
}

.wealth-result--primary strong {
  color: #078374;
}

.wealth-result small {
  display: block;
  margin-top: 7px;
  color: rgba(255, 255, 255, .78);
  line-height: 1.45;
}

.wealth-result--primary small {
  color: #5e7087;
}

.wealth-tool-note {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  padding: 14px 16px;
  color: #193a54;
  background: #edf9f6;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.55;
}

.wealth-stage-map {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.wealth-stage {
  position: relative;
  padding: 20px 20px 20px 68px;
  background: #f7fbff;
  border: 1px solid #d3e2f0;
  border-radius: 18px;
}

.wealth-stage > span {
  position: absolute;
  top: 20px;
  left: 20px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  background: #0c77e8;
  border-radius: 50%;
}

.wealth-stage h3 {
  margin: 0 0 7px;
  font-size: 18px;
}

.wealth-stage p {
  margin: 0;
  color: #52667f;
}

.wealth-intent-map {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.wealth-intent-map a {
  display: block;
  padding: 18px;
  color: #0d2949;
  text-decoration: none;
  background: #fff;
  border: 1px solid #cfe0f0;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(16, 47, 82, .06);
}

.wealth-intent-map a:hover {
  border-color: #0c77e8;
  transform: translateY(-2px);
}

.wealth-intent-map strong,
.wealth-intent-map span {
  display: block;
}

.wealth-intent-map strong {
  margin-bottom: 7px;
}

.wealth-intent-map span {
  color: #5a6d84;
  font-size: 14px;
  line-height: 1.45;
}

.wealth-platforms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.wealth-platform {
  padding: 20px;
  background: #f7fbff;
  border: 1px solid #d2e1ef;
  border-radius: 18px;
}

.wealth-platform h3 {
  margin: 0 0 7px;
  font-size: 20px;
}

.wealth-platform p {
  margin: 0 0 14px;
  color: #53677e;
}

.wealth-platform .button {
  width: 100%;
  justify-content: center;
}

.wealth-affiliate-note {
  margin-top: 16px;
  padding: 15px 17px;
  color: #503f16;
  background: #fff7dc;
  border-left: 4px solid #f1b800;
  border-radius: 0 12px 12px 0;
  font-size: 13px;
}

#zaver .wealth-affiliate-note {
  color: #182d45;
  background: #ffffff;
  border: 1px solid rgba(13, 49, 88, .14);
  border-left: 5px solid #ffd21f;
  box-shadow: 0 10px 24px rgba(13, 49, 88, .12);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
}

.wealth-tax-box,
.wealth-editorial-card {
  margin-top: 22px;
  padding: 20px;
  color: #143650;
  background: #eef8f5;
  border-left: 5px solid #07927f;
  border-radius: 0 16px 16px 0;
}

.wealth-tax-box h3,
.wealth-editorial-card h3 {
  margin: 0 0 9px;
  color: #0d2949;
}

.wealth-tax-box p:last-child,
.wealth-editorial-card p:last-child {
  margin-bottom: 0;
}

@media (max-width: 1080px) {
  .wealth-tool-layout {
    grid-template-columns: 1fr;
  }

  .wealth-tool-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wealth-result--primary,
  .wealth-tool-note {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .wealth-tool {
    padding: 22px 18px;
    border-radius: 20px;
  }

  .wealth-tool-head {
    display: block;
  }

  .wealth-tool-badge {
    display: inline-block;
    margin-top: 12px;
  }

  .wealth-tool-fields,
  .wealth-tool-results,
  .wealth-stage-map,
  .wealth-intent-map,
  .wealth-platforms {
    grid-template-columns: 1fr;
  }

  .wealth-tool-fields label > span {
    min-height: 0;
  }

  .wealth-result--primary {
    grid-column: auto;
  }

  .wealth-result strong {
    font-size: clamp(23px, 7.6vw, 31px);
  }

  .wealth-stage {
    padding-left: 64px;
  }
}

@media (max-width: 390px) {
  .wealth-result strong {
    font-size: 22px;
  }
}
