:root {
  color-scheme: light;
  --blue-950: #073754;
  --blue-900: #064b75;
  --blue-800: #075f92;
  --blue-700: #0874ad;
  --blue-600: #1688bd;
  --blue-200: #b9dce9;
  --blue-100: #dceef4;
  --blue-50: #f1f8fa;
  --ink: #17242e;
  --ink-soft: #536671;
  --line: #d6e1e6;
  --surface: #ffffff;
  --sand: #f8e8a7;
  --sand-soft: #fff9df;
  --success: #247252;
  --warning: #9a5c07;
  --danger: #b23a3a;
  --shadow: 0 24px 70px rgb(7 55 84 / 14%);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: #edf5f7;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, #f8fcfd 0, #edf5f7 50rem, #f8fbfc 100%);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: white;
  background: var(--blue-950);
  border-radius: 8px;
  transform: translateY(-160%);
  transition: transform 150ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid #e9ad21;
  outline-offset: 3px;
}

.page-backdrop {
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: 780px;
  overflow: hidden;
  pointer-events: none;
}

.backdrop-orb {
  position: absolute;
  display: block;
  border-radius: 999px;
  filter: blur(2px);
}

.backdrop-orb--one {
  top: -240px;
  right: -160px;
  width: 590px;
  height: 590px;
  background: radial-gradient(circle, rgb(185 220 233 / 62%), rgb(185 220 233 / 0) 70%);
}

.backdrop-orb--two {
  top: 310px;
  left: -220px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgb(248 232 167 / 42%), rgb(248 232 167 / 0) 70%);
}

.page-width {
  width: min(1380px, calc(100% - 64px));
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid rgb(7 55 84 / 8%);
  background: rgb(255 255 255 / 78%);
  backdrop-filter: blur(16px);
}

.site-header__inner {
  display: flex;
  min-height: 96px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}

.brand__logo {
  width: 110px;
  height: 59px;
  object-fit: contain;
}

.brand__product {
  font-size: 1.8rem;
  font-weight: 750;
}

.intro {
  padding-block: clamp(34px, 4vw, 54px) clamp(30px, 3.5vw, 46px);
}

.eyebrow,
.section-kicker,
.results-eyebrow {
  margin: 0 0 10px;
  color: var(--blue-700);
  font-size: 0.77rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.intro h1 {
  max-width: none;
  margin: 0;
  color: var(--blue-950);
  font-size: clamp(2.35rem, 3.7vw, 3.75rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
  text-wrap: balance;
  white-space: nowrap;
}

.intro__lead {
  max-width: 900px;
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.2vw, 1.15rem);
}

.calculator {
  display: grid;
  grid-template-columns: minmax(400px, 0.64fr) minmax(680px, 1.36fr);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgb(7 55 84 / 9%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.embed-brand {
  display: none;
}

.calculator__inputs {
  padding: clamp(32px, 2.5vw, 36px);
  background: white;
}

.section-heading {
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.section-heading h2 {
  margin: 0;
  color: var(--blue-950);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.section-heading > p:last-child {
  margin: 14px 0 0;
  color: var(--ink-soft);
}

.error-summary {
  margin-top: 28px;
  padding: 16px 18px;
  color: #771f1f;
  background: #fff2f2;
  border: 1px solid #efb6b6;
  border-radius: var(--radius-sm);
}

.error-summary ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.form-section {
  min-width: 0;
  margin: 8px 0 0;
  padding: 8px 0 20px;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.form-section--last {
  padding-bottom: 0;
  border-bottom: 0;
}

.form-section legend {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 11px;
  margin-bottom: 4px;
  padding: 0;
  color: var(--blue-950);
  font-size: 1.05rem;
  font-weight: 800;
}

.form-section legend span {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  color: white;
  background: var(--blue-800);
  border-radius: 50%;
  font-size: 0.78rem;
}

.form-grid {
  display: grid;
  gap: 22px;
}

.form-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field + .field,
.form-grid + .field,
.field + .compensation-fields,
.compensation-fields + .field {
  margin-top: 26px;
}

.form-grid .field + .field {
  margin-top: 0;
}

.field {
  position: relative;
}

.field label,
.field-label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 760;
}

.field-label-row {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  margin-bottom: 8px;
}

.field .field-label-row > label {
  margin-bottom: 0;
}

.range-heading .field-label-row {
  margin-bottom: 0;
}

.field-help {
  position: static;
  display: inline-flex;
  flex: 0 0 auto;
}

.field-help__button {
  display: grid;
  width: 22px;
  height: 22px;
  padding: 0;
  place-items: center;
  color: white;
  background: linear-gradient(145deg, #22a0ce, var(--blue-900));
  border: 2px solid white;
  border-radius: 50%;
  box-shadow:
    0 0 0 1px rgb(7 95 146 / 28%),
    0 3px 8px rgb(7 55 84 / 24%);
  font-size: 0.75rem;
  font-weight: 900;
  line-height: 1;
  cursor: help;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.field-help__button:hover,
.field-help__button[aria-expanded="true"] {
  background: linear-gradient(145deg, #37b9e7, var(--blue-800));
  box-shadow:
    0 0 0 2px rgb(22 136 189 / 18%),
    0 5px 12px rgb(7 55 84 / 28%);
  transform: translateY(-1px) scale(1.05);
}

.field-help__popover {
  position: absolute;
  z-index: 12;
  top: 30px;
  left: 0;
  width: min(320px, calc(100vw - 32px));
  padding: 12px 14px;
  color: white;
  background: linear-gradient(145deg, var(--blue-950), var(--blue-800));
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 12px;
  box-shadow: 0 14px 30px rgb(7 55 84 / 28%);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.5;
}

.field-help__popover[hidden] {
  display: none;
}

.field-help__title {
  display: block;
  margin-bottom: 5px;
  color: #a9e8f7;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.035em;
}

.form-grid--two > .field:nth-child(even) .field-help__popover {
  right: 0;
  left: auto;
}

.field input[type="date"],
.field input[type="number"],
.field input[data-whole-dollar],
.field input[data-whole-number],
.field input[data-hourly-wage] {
  width: 100%;
  min-height: 49px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fbfdfe;
  border: 1px solid #b9c9d1;
  border-radius: var(--radius-sm);
  font-variant-numeric: tabular-nums;
  transition: border-color 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.field input[type="date"]:hover,
.field input[type="number"]:hover,
.field input[data-whole-dollar]:hover,
.field input[data-whole-number]:hover,
.field input[data-hourly-wage]:hover {
  border-color: var(--blue-600);
}

.field input[type="date"]:focus,
.field input[type="number"]:focus,
.field input[data-whole-dollar]:focus,
.field input[data-whole-number]:focus,
.field input[data-hourly-wage]:focus {
  outline: 0;
  background: white;
  border-color: var(--blue-700);
  box-shadow: 0 0 0 3px rgb(22 136 189 / 18%);
}

.field input[aria-invalid="true"] {
  background: #fff8f8;
  border-color: var(--danger);
}

.input-prefix {
  position: relative;
}

.input-prefix > span {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 13px;
  color: var(--ink-soft);
  transform: translateY(-50%);
  pointer-events: none;
}

.input-prefix input {
  padding-left: 30px !important;
}

.field-error {
  margin: 7px 0 0;
  font-size: 0.77rem;
  line-height: 1.45;
}

.field-error {
  min-height: 0;
  color: var(--danger);
  font-weight: 650;
}

.field-error:empty {
  display: none;
}

.field--range {
  padding-top: 2px;
}

.range-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.range-heading output {
  min-width: 78px;
  padding: 6px 10px;
  color: white;
  background: var(--blue-900);
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 800;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

input[type="range"] {
  width: 100%;
  height: 26px;
  margin: 2px 0 0;
  padding: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 7px;
  background: linear-gradient(to right, var(--blue-800) var(--range-progress, 50%), #dbe6eb var(--range-progress, 50%));
  border-radius: 999px;
}

input[type="range"]::-moz-range-track {
  height: 7px;
  background: #dbe6eb;
  border-radius: 999px;
}

input[type="range"]::-moz-range-progress {
  height: 7px;
  background: var(--blue-800);
  border-radius: 999px;
}

input[type="range"]::-webkit-slider-thumb {
  width: 22px;
  height: 22px;
  margin-top: -7.5px;
  appearance: none;
  background: white;
  border: 3px solid var(--blue-800);
  border-radius: 50%;
  box-shadow: 0 2px 7px rgb(7 55 84 / 24%);
}

input[type="range"]::-moz-range-thumb {
  width: 17px;
  height: 17px;
  background: white;
  border: 3px solid var(--blue-800);
  border-radius: 50%;
  box-shadow: 0 2px 7px rgb(7 55 84 / 24%);
}

input[type="range"]:focus-visible {
  outline: 3px solid #e9ad21;
  outline-offset: 4px;
  border-radius: 999px;
}

.range-scale {
  display: flex;
  justify-content: space-between;
  color: #71818a;
  font-size: 0.7rem;
}

.segmented-control {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding: 4px;
  background: #eaf1f4;
  border-radius: 12px;
}

.segmented-control label {
  margin: 0;
  cursor: pointer;
}

.segmented-control input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.segmented-control span {
  display: grid;
  min-height: 42px;
  place-items: center;
  color: var(--ink-soft);
  border-radius: 9px;
  font-size: 0.85rem;
  font-weight: 780;
  transition: color 120ms ease, background 120ms ease, box-shadow 120ms ease;
}

.segmented-control input:checked + span {
  color: var(--blue-950);
  background: white;
  box-shadow: 0 3px 12px rgb(7 55 84 / 12%);
}

.segmented-control input:focus-visible + span {
  outline: 3px solid #e9ad21;
  outline-offset: 1px;
}

.compensation-fields[hidden] {
  display: none;
}

.calculator__results {
  position: relative;
  min-width: 0;
  padding: clamp(32px, 4vw, 60px);
  color: white;
  background:
    radial-gradient(circle at 90% 8%, rgb(66 166 206 / 40%), transparent 34%),
    linear-gradient(145deg, var(--blue-950), var(--blue-800));
}

.results-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  gap: 26px;
}

.results-hero {
  position: relative;
  padding-bottom: 26px;
  border-bottom: 1px solid rgb(255 255 255 / 18%);
}

.results-eyebrow {
  color: #aedaea;
}

.results-hero h2 {
  margin: 0;
  color: white;
  font-size: clamp(2.75rem, 6vw, 5.2rem);
  line-height: 1;
  letter-spacing: -0.055em;
  font-variant-numeric: tabular-nums;
}

.results-hero > p:not(.results-eyebrow) {
  margin: 13px 0 0;
  color: rgb(255 255 255 / 76%);
}

.results-hero strong {
  color: white;
}

.additional-value {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  margin-top: 10px;
}

.additional-value__amount {
  color: rgb(255 255 255 / 82%);
  font-size: 0.82rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.additional-value__help {
  display: grid;
  width: 20px;
  height: 20px;
  padding: 0;
  place-items: center;
  color: var(--blue-950);
  background: #8bd4ea;
  border: 0;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 900;
  cursor: help;
}

.additional-value__help:hover {
  background: white;
}

.additional-value__help:focus-visible {
  outline: 3px solid var(--sand);
  outline-offset: 3px;
}

.additional-value__popover {
  position: absolute;
  z-index: 6;
  top: calc(100% + 12px);
  left: 0;
  width: min(310px, calc(100vw - 48px));
  color: var(--ink);
  background: white;
  border: 1px solid #bdcbd2;
  border-radius: 8px;
  box-shadow: 0 14px 32px rgb(2 33 51 / 28%);
  font-size: 0.76rem;
  line-height: 1.5;
  text-align: left;
}

.additional-value__popover::before {
  position: absolute;
  top: -7px;
  left: 72px;
  width: 12px;
  height: 12px;
  background: white;
  border-top: 1px solid #bdcbd2;
  border-left: 1px solid #bdcbd2;
  content: "";
  transform: rotate(45deg);
}

.additional-value__popover strong {
  display: block;
  padding: 10px 13px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  font-size: 0.8rem;
}

.additional-value__popover p {
  margin: 0;
  padding: 11px 13px 13px;
}

.additional-value__popover[hidden] {
  display: none;
}

.model-badge {
  position: absolute;
  top: 0;
  right: 0;
  padding: 7px 10px;
  color: var(--blue-950);
  background: var(--sand);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.result-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.result-stat {
  min-width: 0;
  padding: 15px;
  background: rgb(255 255 255 / 8%);
  border: 1px solid rgb(255 255 255 / 11%);
  border-radius: 13px;
}

.result-stat__label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgb(255 255 255 / 70%);
  font-size: 0.7rem;
  line-height: 1.25;
}

.result-stat strong {
  display: block;
  overflow: hidden;
  margin-top: 9px;
  color: white;
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.legend-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
}

.legend-dot--start { background: #fff; }
.legend-dot--contributions { background: #7ec1db; }
.legend-dot--growth { background: var(--sand); }

.chart-card {
  padding: clamp(16px, 2.5vw, 26px);
  color: var(--ink);
  background: white;
  border-radius: var(--radius-md);
  box-shadow: 0 16px 40px rgb(2 33 51 / 20%);
}

.chart-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.chart-heading p {
  margin: 0;
}

.chart-heading__title {
  color: var(--blue-950);
  font-size: 0.94rem;
  font-weight: 800;
}

.chart-heading__description {
  margin-top: 3px !important;
  color: var(--ink-soft);
  font-size: 0.7rem;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px 14px;
  color: var(--ink-soft);
  font-size: 0.65rem;
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.legend-swatch {
  width: 15px;
  height: 7px;
  border-radius: 2px;
}

.legend-swatch--principal { background: var(--blue-700); }
.legend-swatch--growth { background: #efd66f; }

.chart-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 760 / 390;
  min-height: 250px;
}

#projection-chart {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.chart-grid-line {
  stroke: #dfe7ea;
  stroke-width: 1;
}

.chart-axis-label {
  fill: #667982;
  font-size: 12px;
  font-family: inherit;
}

.chart-year-label {
  font-size: 11px;
}

.chart-principal-area {
  fill: #0874ad;
  opacity: 0.92;
}

.chart-growth-area {
  fill: #efd66f;
  opacity: 0.92;
}

.chart-total-line {
  fill: none;
  stroke: #073754;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-data-point {
  fill: #0a6f9f;
  stroke: white;
  stroke-width: 1.5;
  pointer-events: none;
  transition: fill 100ms ease, r 100ms ease, stroke 100ms ease, stroke-width 100ms ease;
}

.chart-interaction-point {
  fill: transparent;
  cursor: crosshair;
  outline: none;
  pointer-events: all;
}

.chart-interaction-point:hover + .chart-data-point,
.chart-interaction-point:focus + .chart-data-point {
  r: 6px;
  fill: #073754;
  stroke: #efd66f;
  stroke-width: 3;
}

.chart-tooltip {
  position: absolute;
  z-index: 3;
  width: max-content;
  min-width: 225px;
  max-width: calc(100% - 16px);
  padding: 12px 13px;
  color: white;
  background: #17252e;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgb(7 55 84 / 24%);
  font-size: 0.68rem;
  line-height: 1.35;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 12px));
}

.chart-tooltip--below {
  transform: translate(-50%, 12px);
}

.chart-tooltip__date {
  display: block;
  margin-bottom: 8px;
  font-size: 0.76rem;
}

.chart-tooltip__row {
  display: grid;
  grid-template-columns: 9px 1fr auto;
  align-items: center;
  gap: 5px;
  padding-block: 2px;
}

.chart-tooltip__swatch {
  width: 8px;
  height: 8px;
  border: 1px solid rgb(255 255 255 / 55%);
}

.chart-tooltip__swatch--principal { background: #1688bd; }
.chart-tooltip__swatch--growth { background: #efd66f; }

.chart-tooltip__value {
  margin-left: 8px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.chart-tooltip__total {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px solid rgb(255 255 255 / 28%);
  font-size: 0.74rem;
  font-weight: 800;
}

.chart-tooltip__total strong {
  font-variant-numeric: tabular-nums;
}

.yearly-details {
  min-width: 0;
  color: white;
  background: rgb(255 255 255 / 7%);
  border: 1px solid rgb(255 255 255 / 13%);
  border-radius: 12px;
}

.yearly-details__title {
  margin: 0;
  padding: 14px 16px;
  font-size: 0.82rem;
  font-weight: 750;
}

.table-scroll {
  width: 100%;
  min-width: 0;
  max-height: 330px;
  overflow: auto;
  scrollbar-gutter: stable;
  border-top: 1px solid rgb(255 255 255 / 12%);
}

table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.73rem;
  font-variant-numeric: tabular-nums;
}

th,
td {
  padding: 9px 12px;
  text-align: right;
  white-space: nowrap;
}

th:first-child,
td:first-child {
  text-align: left;
}

th:last-child,
td:last-child {
  padding-right: 26px;
}

.table-heading--mobile {
  display: none;
}

thead {
  position: sticky;
  z-index: 1;
  top: 0;
  color: white;
  background: #075681;
}

tfoot {
  position: sticky;
  z-index: 1;
  bottom: 0;
  color: white;
  background: #064e76;
  border-top: 2px solid rgb(255 255 255 / 28%);
  font-weight: 800;
}

tfoot th {
  text-align: left;
}

tbody tr + tr {
  border-top: 1px solid rgb(255 255 255 / 9%);
}

tbody tr:hover {
  background: rgb(255 255 255 / 6%);
}

.results-unavailable {
  display: grid;
  min-height: 580px;
  place-content: center;
  padding: 40px;
  text-align: center;
}

.results-unavailable[hidden] {
  display: none;
}

.results-unavailable > span {
  display: grid;
  width: 50px;
  height: 50px;
  margin: 0 auto 18px;
  place-items: center;
  color: var(--blue-950);
  background: var(--sand);
  border-radius: 50%;
  font-size: 1.4rem;
  font-weight: 900;
}

.results-unavailable h2 {
  margin: 0;
  font-size: 1.45rem;
}

.results-unavailable p {
  margin: 8px 0 0;
  color: rgb(255 255 255 / 72%);
}

.disclaimer {
  margin-block: clamp(34px, 6vw, 74px) clamp(18px, 3vw, 28px);
  padding: clamp(24px, 3.5vw, 38px);
  color: var(--ink-soft);
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 34px rgb(7 55 84 / 6%);
}

.disclaimer h2 {
  margin: 0 0 7px;
  color: var(--blue-950);
  font-size: 1rem;
}

.disclaimer p {
  margin: 0;
  font-size: 0.8rem;
}

.attribution {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: clamp(34px, 6vw, 74px);
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 34px rgb(7 55 84 / 6%);
}

.attribution__item {
  display: flex;
  min-height: 190px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 26px 38px;
  text-align: center;
}

.attribution__item + .attribution__item {
  border-left: 1px solid var(--line);
}

.attribution__label {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.attribution__logo {
  width: min(300px, 100%);
  height: auto;
}

.attribution__logo--dev {
  width: min(141px, 100%);
}

.site-footer {
  padding-block: 28px;
  color: rgb(255 255 255 / 72%);
  background: var(--blue-950);
  font-size: 0.76rem;
}

.site-footer .page-width {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

body.is-embed {
  background: transparent;
}

body.is-embed .page-backdrop,
body.is-embed .site-header,
body.is-embed .intro,
body.is-embed .site-footer {
  display: none;
}

body.is-embed main {
  padding: 0;
}

body.is-embed .calculator,
body.is-embed .disclaimer,
body.is-embed .attribution {
  width: 100%;
  max-width: none;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}

body.is-embed .embed-brand {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  gap: 13px;
  padding: 15px clamp(20px, 4vw, 46px);
  color: var(--blue-950);
  background: white;
  border-bottom: 1px solid var(--line);
}

body.is-embed .embed-brand > img:first-child {
  width: 76px;
  height: 41px;
  object-fit: contain;
}

body.is-embed .embed-brand span {
  display: grid;
}

body.is-embed .embed-brand strong {
  font-size: 0.94rem;
}

body.is-embed .embed-brand small {
  color: var(--ink-soft);
  font-size: 0.7rem;
}

@media (min-width: 701px) {
  .form-grid--account {
    row-gap: 0;
  }

  /* Share label, input, and error rows so wrapping never offsets the inputs. */
  .form-grid--account > .field {
    display: grid;
    grid-row: span 3;
    grid-template-rows: subgrid;
    min-width: 0;
  }

  .form-grid--account .field-label-row {
    align-self: start;
  }
}

@media (max-width: 1120px) {
  .page-width {
    width: min(920px, calc(100% - 40px));
  }

  .intro h1 {
    white-space: normal;
  }

  .calculator {
    grid-template-columns: 1fr;
  }

  .calculator__inputs,
  .calculator__results {
    padding: clamp(32px, 7vw, 60px);
  }

  body.is-embed .embed-brand {
    grid-column: 1;
  }
}

@media (max-width: 700px) {
  .page-width {
    width: min(100% - 24px, 620px);
  }

  .site-header__inner {
    min-height: 80px;
  }

  .brand__logo {
    width: 80px;
    height: 43px;
  }

  .brand__product {
    font-size: 1.16rem;
  }

  .intro {
    padding-block: 30px 26px;
  }

  .intro h1 {
    font-size: clamp(2.05rem, 10vw, 2.65rem);
  }

  .calculator {
    border-radius: 18px;
  }

  .calculator__inputs,
  .calculator__results {
    padding: 27px 20px;
  }

  .form-grid--two,
  .result-stats {
    grid-template-columns: 1fr;
  }

  .form-grid--two > .field:nth-child(even) .field-help__popover {
    right: auto;
    left: 0;
  }

  .form-grid .field + .field {
    margin-top: 0;
  }

  .result-stats {
    gap: 8px;
  }

  .result-stat {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
  }

  .result-stat__label {
    min-width: 0;
  }

  .result-stat strong {
    overflow: visible;
    margin-top: 0;
    font-size: 1rem;
    text-overflow: clip;
  }

  .model-badge {
    position: static;
    display: inline-block;
    margin-top: 16px;
  }

  .chart-heading {
    display: grid;
  }

  .chart-legend {
    justify-content: flex-start;
  }

  .chart-wrap {
    min-height: 230px;
  }

  .site-footer .page-width {
    display: grid;
  }

  .attribution {
    grid-template-columns: 1fr;
  }

  .attribution__item {
    min-height: 154px;
    padding: 22px 24px;
  }

  .attribution__item + .attribution__item {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .attribution__logo {
    width: min(250px, 100%);
  }

  .attribution__logo--dev {
    width: min(112px, 100%);
  }

  body.is-embed .calculator,
  body.is-embed .disclaimer,
  body.is-embed .attribution {
    width: 100%;
    border-inline: 0;
  }

  body.is-embed .embed-brand {
    padding-inline: 17px;
  }
}

@media (max-width: 440px) {
  .brand {
    gap: 10px;
  }

  .result-stat {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .result-stat strong {
    justify-self: start;
  }

  .range-heading {
    align-items: flex-start;
  }

  .results-hero h2 {
    font-size: 2.75rem;
  }

  .chart-card {
    padding: 14px 10px;
  }

  .chart-wrap {
    min-height: 205px;
  }

  table {
    min-width: 100%;
    table-layout: fixed;
    font-size: 0.61rem;
  }

  th,
  td {
    padding: 8px 4px;
  }

  th:nth-child(1) { width: 26%; }
  th:nth-child(2) { width: 24%; }
  th:nth-child(3) { width: 26%; }
  th:nth-child(4) { width: 24%; }

  th:last-child,
  td:last-child {
    padding-right: 8px;
  }

  .table-heading--desktop {
    display: none;
  }

  .table-heading--mobile {
    display: inline;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (forced-colors: active) {
  .field-help__button,
  .form-section legend span,
  .range-heading output,
  .model-badge,
  .results-unavailable > span {
    border: 1px solid currentColor;
  }
}
