.demo-hero {
  background: radial-gradient(ellipse at 86% 5%, #183e44, transparent 55%), var(--navy);
  color: var(--white);
}

.demo-hero-inner {
  padding-block: clamp(36px, 5vw, 68px);
}

.demo-home {
  display: inline-flex;
  gap: 10px;
  margin-bottom: 26px;
  color: #b9d2db;
  font-size: 14px;
}

.demo-home:hover {
  text-decoration: underline;
}

.demo-hero .eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 13px;
  color: #88dec9;
}

.demo-hero h1 {
  max-width: 880px;
  margin-bottom: 16px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.13;
}

.demo-hero .demo-intro {
  max-width: 675px;
  margin-bottom: 0;
  color: #c7dbe1;
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.7;
}

.demo-lab {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(36px, 5vw, 64px);
}

.demo-lab-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 26px;
  margin-bottom: 24px;
}

.demo-lab h2,
.demo-pilot h2 {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.2;
  margin-bottom: 10px;
}

.demo-lab-heading p,
.demo-pilot p {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 0;
  max-width: 660px;
}

.demo-picker {
  flex: 0 0 250px;
}

.demo-picker label {
  margin-bottom: 6px;
  font-size: 13px;
}

.demo-picker select {
  appearance: auto;
  width: 100%;
  background: var(--white);
  border: 1px solid #8aa3a9;
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  min-height: 44px;
  padding: 8px 12px;
}

.demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 20px;
}

.demo-panel {
  align-self: start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: clamp(18px, 2.7vw, 31px);
}

.demo-panel-heading {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.demo-step {
  display: inline-grid;
  place-items: center;
  border: 1px solid #b5dcd2;
  background: #eaf6f2;
  color: #075f50;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 650;
}

.demo-panel h3 {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.2;
  margin: 0;
}

.demo-panel h4 {
  font-size: 14px;
  margin: 0 0 8px;
}

.demo-state {
  border-radius: 999px;
  margin-inline-start: auto;
  background: #eaf0f3;
  color: #334f5e;
  font-size: 12px;
  font-weight: 650;
  padding: 4px 10px;
}

.demo-state[data-stage="ready"] {
  background: #fff1cf;
  color: #6a4803;
}

.demo-state[data-stage="approved"] {
  background: #dff3e9;
  color: #075f50;
}

.demo-email {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.demo-email dl {
  background: #f1f5f7;
  border-bottom: 1px solid var(--line);
  margin: 0;
  padding: 12px 16px;
}

.demo-email dl div {
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: baseline;
  gap: 10px;
  padding-block: 4px;
}

.demo-email dt,
.demo-fields dt {
  color: #44616a;
  font-size: 13px;
}

.demo-email dd,
.demo-fields dd {
  color: var(--ink);
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.demo-email p {
  margin: 0;
  padding: 18px 16px;
  font-size: 15px;
  line-height: 1.85;
}

.demo-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px 15px;
  margin: 0 0 19px;
}

.demo-fields > div {
  min-width: 0;
  border-bottom: 1px solid var(--line);
  padding-bottom: 7px;
}

.demo-quote,
.demo-reply,
.demo-review {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px 15px;
}

.demo-quote {
  background: #eef8f5;
}

.demo-reply,
.demo-review {
  margin-top: 12px;
}

.demo-quote p,
.demo-reply p,
.demo-review p {
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
}

.demo-quote .demo-total {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
  border-top: 1px solid #c6ded7;
  margin-top: 9px;
  padding-top: 9px;
  color: var(--ink);
}

.demo-total strong {
  white-space: nowrap;
  font-size: 20px;
  color: #075f50;
}

.demo-button {
  min-height: 44px;
  margin-top: 18px;
  font-size: 14px;
  border: 1px solid transparent;
}

.demo-button:disabled {
  background: #e8edf0;
  color: #40545f;
  border-color: #d4dfe3;
  cursor: default;
  transform: none;
}

.demo-status,
.demo-noscript {
  font-size: 14px;
  color: var(--ink);
  margin: 14px 0 0;
}

.demo-status:empty {
  margin: 0;
}

.demo-pilot {
  padding-block: clamp(38px, 5vw, 66px);
}

.demo-pilot-inner {
  display: flex;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
}

.demo-pilot-inner .button {
  flex-shrink: 0;
  max-width: 100%;
}

@media (max-width: 740px) {
  .demo-lab-heading,
  .demo-pilot-inner {
    display: grid;
    justify-content: stretch;
    gap: 15px;
  }

  .demo-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .demo-button {
    width: 100%;
    justify-content: space-between;
  }

  .demo-pilot-inner .button {
    justify-self: start;
  }
}

@media (max-width: 400px) {
  .demo-state {
    margin-inline-start: 0;
  }

  .demo-panel-heading {
    gap: 8px;
  }

  .demo-email dl div {
    grid-template-columns: 47px 1fr;
    gap: 7px;
  }
}
