:root {
  color: #17120a;
  background: #eee7d5;
  font-family: "Iowan Old Style", Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 196, 67, .52), transparent 30rem),
    radial-gradient(circle at 82% 0%, rgba(55, 117, 83, .28), transparent 28rem),
    linear-gradient(135deg, #f5efde, #dce6d1 55%, #f0dba9);
}

button,
input {
  font: inherit;
}

.page {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 42px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
  gap: 18px;
  align-items: stretch;
}

.panel,
.survey-card,
.result-card {
  border: 1px solid rgba(23, 18, 10, .18);
  background: rgba(255, 253, 245, .74);
  box-shadow: 0 26px 80px rgba(46, 53, 35, .16);
  border-radius: 30px;
}

.panel {
  padding: clamp(24px, 5vw, 54px);
}

.eyebrow {
  margin: 0 0 10px;
  color: #66501a;
  font: 800 12px ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .18em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(46px, 8vw, 104px);
  letter-spacing: -.075em;
  line-height: .86;
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 46px);
  letter-spacing: -.045em;
  line-height: .95;
}

.lead {
  max-width: 760px;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.45;
}

.truth-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.truth-list div {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(23, 18, 10, .07);
}

.stack {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.survey-card,
.result-card {
  padding: 24px;
}

.options {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.option {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 16px;
  border: 1px solid rgba(23, 18, 10, .16);
  border-radius: 18px;
  background: rgba(255, 255, 255, .58);
  cursor: pointer;
}

.option[data-selected="true"] {
  background: #17120a;
  color: #fff7dc;
}

.receipt-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 18px;
}

.receipt-row input {
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid rgba(23, 18, 10, .25);
  border-radius: 16px;
  background: rgba(255, 255, 255, .78);
}

.primary {
  border: 0;
  border-radius: 16px;
  padding: 14px 18px;
  background: #bd6b26;
  color: #fff7dc;
  cursor: pointer;
}

.primary:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.notice {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .55);
  overflow-wrap: anywhere;
}

.notice[data-kind="error"] {
  background: #f7d2c6;
}

.bars {
  display: grid;
  gap: 12px;
}

.bar-row {
  display: grid;
  gap: 6px;
}

.bar-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font: 700 13px ui-monospace, SFMono-Regular, Menlo, monospace;
}

.bar-track {
  height: 16px;
  border-radius: 999px;
  background: rgba(23, 18, 10, .1);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #bd6b26, #253e2e);
}

.meta {
  color: rgba(23, 18, 10, .66);
  font-size: 14px;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .receipt-row {
    grid-template-columns: 1fr;
  }
}
