@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=DM+Sans:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&display=swap");
:root {
  --paper: #f3efe8;
  --ink: #191918;
  --muted: #756f65;
  --line: #d7d0c5;
  --brick: #bb4d32;
  --yellow: #e8c06b;
  --green: #2e614c;
  --shadow: 0 24px 70px rgba(37, 28, 18, 0.12);
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 86% 4%, #e6d8bb 0, transparent 29rem),
    var(--paper);
}
a {
  color: inherit;
}
.shell {
  width: min(1100px, calc(100% - 2.5rem));
  margin: auto;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}
.brand {
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.brand span {
  color: var(--brick);
  margin: 0 0.35rem;
}
.brand strong {
  font-weight: 700;
}
.status-pill {
  font-family: "DM Mono", monospace;
  font-size: 0.68rem;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--muted);
}
.hero {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(4rem, 10vw, 8rem) 0 4rem;
}
.eyebrow {
  color: var(--brick);
  font-family: "DM Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.65rem;
}
.hero h1 {
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  font-size: clamp(3.5rem, 8vw, 6.6rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  max-width: 760px;
  margin: 0;
}
.lede {
  max-width: 550px;
  color: var(--muted);
  font-size: 1.1rem;
  margin: 1.8rem 0 0;
  line-height: 1.6;
}
.hero-mark {
  font-family: "DM Mono", monospace;
  color: var(--brick);
  font-size: 0.78rem;
  align-self: flex-end;
  white-space: nowrap;
}
.hero-mark span {
  color: var(--ink);
  padding: 0 0.35rem;
}
.calculator-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 1.25rem;
  align-items: start;
}
.calculator-card,
.result-card {
  background: #fffdf9;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: clamp(1.5rem, 4vw, 2.6rem);
}
.step-heading {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}
.step-heading > span {
  font-family: "DM Mono", monospace;
  color: var(--brick);
  font-size: 0.75rem;
  padding-top: 0.3rem;
}
.step-heading h2 {
  font-size: 1.25rem;
  margin: 0;
  font-weight: 600;
}
.step-heading .eyebrow {
  margin-bottom: 0.25rem;
}
.step-heading--compact {
  margin-top: 2.8rem;
}
.field-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.calculator-card input {
  width: 100%;
  height: 3.4rem;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 0 1rem;
  color: var(--ink);
  font-size: 1rem;
  border-radius: 0.15rem;
  outline: none;
}
.calculator-card input:focus {
  border-color: var(--brick);
  box-shadow: 0 0 0 3px rgba(187, 77, 50, 0.14);
}
.field-help {
  color: var(--muted);
  font-size: 0.8rem;
  margin: 0.65rem 0 0;
}
.search-results {
  display: grid;
  gap: 0.4rem;
  margin-top: 0.6rem;
}
.search-result {
  display: flex;
  width: 100%;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  background: transparent;
  border: 1px solid var(--line);
  padding: 0.8rem;
  color: var(--ink);
  cursor: pointer;
}
.search-result:hover,
.search-result.is-selected {
  border-color: var(--brick);
  background: #fff7ef;
}
.search-result strong {
  display: block;
  font-size: 0.9rem;
}
.search-result small {
  display: block;
  color: var(--muted);
  margin-top: 0.18rem;
}
.search-result span {
  font-family: "DM Mono", monospace;
  color: var(--brick);
  font-size: 0.7rem;
}
.condition-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.6rem;
}
.condition-option {
  border: 1px solid var(--line);
  background: transparent;
  padding: 0.65rem 0.75rem;
  font-size: 0.8rem;
  cursor: pointer;
}
.condition-option:hover,
.condition-option.is-selected {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}
.button {
  border: 0;
  background: var(--brick);
  color: #fff;
  padding: 1rem 1.1rem;
  font-weight: 700;
  width: 100%;
  cursor: pointer;
  transition:
    transform 0.16s ease,
    background 0.16s ease;
}
.button:hover:not(:disabled) {
  background: var(--ink);
  transform: translateY(-2px);
}
.button:active:not(:disabled) {
  transform: scale(0.98);
}
.button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.result-card {
  background: var(--ink);
  color: #fff;
  min-height: 410px;
  position: relative;
  overflow: hidden;
}
.result-card:after {
  content: "";
  position: absolute;
  width: 230px;
  height: 230px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  right: -80px;
  bottom: -90px;
}
.result-card .eyebrow {
  color: var(--yellow);
}
.result-empty {
  display: flex;
  min-height: 250px;
  justify-content: center;
  flex-direction: column;
}
.result-number {
  font-family: "Instrument Serif", serif;
  color: var(--yellow);
  font-size: 7rem;
  line-height: 0.7;
  margin-bottom: 2rem;
}
.result-empty h2 {
  font-family: "Instrument Serif", serif;
  font-size: 2.2rem;
  font-weight: 400;
  line-height: 1;
  margin: 0 0 0.8rem;
  max-width: 300px;
}
.result-empty p,
.disclaimer,
.unavailable p {
  color: #b9b5ae;
  font-size: 0.82rem;
  line-height: 1.6;
}
.result-kicker {
  color: #b9b5ae;
  font-family: "DM Mono", monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 2.4rem 0 0.2rem;
}
.offer-value {
  font-family: "Instrument Serif", serif;
  color: var(--yellow);
  font-size: clamp(4rem, 7vw, 6.5rem);
  line-height: 0.9;
  margin: 0 0 2.6rem;
}
.result-lines {
  border-top: 1px solid #494944;
  border-bottom: 1px solid #494944;
}
.result-lines div {
  display: flex;
  justify-content: space-between;
  padding: 0.8rem 0;
  font-size: 0.8rem;
}
.result-lines strong {
  font-family: "DM Mono", monospace;
  color: var(--yellow);
  font-weight: 500;
}
.result-card-label {
  font-weight: 600;
  margin: 1rem 0 0;
}
.disclaimer {
  position: absolute;
  bottom: 1.5rem;
  left: clamp(1.5rem, 4vw, 2.6rem);
  right: clamp(1.5rem, 4vw, 2.6rem);
  margin: 0;
}
.unavailable {
  margin: 5rem 0 7rem;
  max-width: 300px;
}
.unavailable strong {
  font-size: 1.25rem;
  line-height: 1.2;
  display: block;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: 0.65rem;
  padding: 1.25rem 0 2rem;
}
.footer-row a {
  text-decoration: none;
}
.footer-row a:hover {
  color: var(--brick);
}
[hidden] {
  display: none !important;
}
@media (max-width: 760px) {
  .shell {
    width: min(100% - 1.5rem, 600px);
  }
  .hero {
    padding-top: 4rem;
  }
  .hero-mark {
    display: none;
  }
  .calculator-grid {
    grid-template-columns: 1fr;
  }
  .result-card {
    min-height: 460px;
  }
  .footer-row {
    flex-direction: column;
    gap: 0.5rem;
  }
  .topbar {
    padding: 1.1rem 0;
  }
}
