.gate-estimate {
  --gate-ink: #172638;
  --gate-muted: #4d5f70;
  --gate-line: #d9e6e4;
  --gate-accent: #087b73;
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 76px);
  align-items: start;
  color: var(--gate-ink);
}

.gate-estimate__intro .gate-estimate__eyebrow {
  color: var(--gate-accent);
  font-size: .75rem;
  font-weight: 750;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.gate-estimate__intro h2 {
  margin: .55rem 0 .75rem;
  max-width: 17ch;
}

.gate-estimate__intro p:not(.gate-estimate__eyebrow) {
  margin: 0;
  max-width: 48ch;
  color: var(--gate-muted);
  line-height: 1.6;
}

.gate-estimate__intro p.gate-estimate__assumptions {
  margin-top: .75rem;
  font-size: .91rem;
}

.gate-estimate__panel {
  min-width: 0;
  padding: clamp(14px, 3vw, 26px);
  border: 1px solid var(--gate-line);
  border-radius: 18px;
  background: #fff;
}

.gate-estimate__presets:not([hidden]) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 16px;
}

.gate-estimate__presets > span {
  margin-right: 4px;
  color: var(--gate-muted);
  font-size: .8rem;
  font-weight: 650;
}

.gate-estimate__presets button {
  min-height: 38px;
  padding: 5px 10px;
  border: 1px solid #b8cacb;
  border-radius: 7px;
  background: #fff;
  color: #075850;
  font: inherit;
  font-size: .84rem;
  font-weight: 650;
  cursor: pointer;
}

.gate-estimate__presets button:hover,
.gate-estimate__presets button[aria-pressed="true"] {
  border-color: var(--gate-accent);
  background: #eaf7f4;
}

.gate-estimate__form,
.gate-estimate__results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 13px;
}

.gate-estimate__form label {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 6px;
  min-width: 0;
  font-size: .85rem;
  font-weight: 700;
}

.gate-estimate__form input {
  width: 100%;
  min-width: 0;
  padding: 8px 10px;
  min-height: 42px;
  border: 1px solid #b8cacb;
  border-radius: 7px;
  background: #fff;
  color: var(--gate-ink);
  font: inherit;
  font-size: 1rem;
  font-weight: 550;
}

.gate-estimate__form input:focus-visible,
.gate-estimate__presets button:focus-visible {
  outline: 2px solid var(--gate-accent);
  outline-offset: 2px;
}

.gate-estimate__form input[aria-invalid="true"] {
  border-color: #b03b27;
}

.gate-estimate__results {
  margin-top: 16px;
}

.gate-estimate__results div {
  display: grid;
  align-content: start;
  gap: 5px;
  padding: 12px;
  border-radius: 9px;
  background: #eaf7f4;
}

.gate-estimate__results div:last-child {
  grid-column: 1 / -1;
}

.gate-estimate__results strong {
  color: #075850;
  font-size: clamp(1.1rem, 2.6vw, 1.75rem);
  line-height: 1.2;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}

.gate-estimate__results span {
  color: var(--gate-muted);
  font-size: .8rem;
  line-height: 1.35;
}

.gate-estimate__note,
.gate-estimate__error {
  margin: 12px 0 0;
  color: var(--gate-muted);
  font-size: .8rem;
  line-height: 1.45;
}

.gate-estimate__error {
  color: #942e1e;
}

@media (max-width: 760px) {
  .gate-estimate {
    grid-template-columns: minmax(0, 1fr);
  }
}
