.demo-main {
  padding-bottom: 110px;
}
.demo-intro {
  padding-top: 80px;
  padding-bottom: 48px;
}
.demo-intro .eyebrow {
  margin-bottom: 20px;
}
.demo-intro h1 {
  max-width: 880px;
  margin-bottom: 20px;
  font-size: clamp(46px, 5.6vw, 76px);
  line-height: 1.06;
  letter-spacing: -0.06em;
}
.demo-intro h1 em {
  color: #388269;
  font-style: normal;
}
.demo-intro > p:not(.eyebrow) {
  max-width: 690px;
  color: #526561;
  font-size: 18px;
  line-height: 1.6;
}
.demo-disclosure {
  display: flex;
  gap: 15px;
  max-width: 860px;
  margin-top: 30px;
  padding: 14px 18px;
  border: 1px solid #d6e4d9;
  border-radius: 6px;
  background: #eaf2ea;
  color: #355c50;
  font-size: 13px;
  line-height: 1.5;
}
.demo-disclosure strong {
  white-space: nowrap;
}
.demo-workspace {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #cfddd2;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(25, 64, 54, 0.08);
}
.demo-rail {
  padding: 27px 18px;
  border-right: 1px solid #dbe6de;
  background: #eff4ee;
}
.rail-heading {
  display: grid;
  gap: 7px;
  padding: 0 9px 25px;
  border-bottom: 1px solid #d6e2d8;
}
.rail-kicker,
.stage-kicker,
.panel-head > span,
.sample-card small {
  color: #3d7b65;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
}
.rail-heading strong {
  color: #153b35;
  font-size: 16px;
  line-height: 1.35;
}
.rail-heading > span:last-child {
  color: #61746d;
  font-size: 12px;
}
.demo-tabs {
  display: grid;
  gap: 8px;
  margin-top: 24px;
}
.demo-tabs button {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 2px 9px;
  width: 100%;
  padding: 14px 12px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: #38564d;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.demo-tabs button:hover {
  background: #e3eee4;
}
.demo-tabs button[aria-selected='true'] {
  border-color: #bcd6c5;
  background: #fff;
  color: #143c33;
  box-shadow: 0 5px 15px rgba(24, 75, 57, 0.07);
}
.demo-tabs button > span {
  grid-row: span 2;
  padding-top: 2px;
  color: #569172;
  font-size: 12px;
  font-weight: 800;
}
.demo-tabs button strong {
  font-size: 13px;
}
.demo-tabs button small {
  color: #6b7a73;
  font-size: 11px;
}
.rail-note {
  margin: 25px 9px 0;
  color: #718079;
  font-size: 11px;
  line-height: 1.5;
}
.demo-stage {
  display: flex;
  min-height: 580px;
  flex-direction: column;
}
.stage-top,
.stage-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 34px;
}
.stage-top {
  border-bottom: 1px solid #e7ece6;
}
.sample-pill {
  padding: 6px 9px;
  border-radius: 3px;
  background: #eef3e8;
  color: #5d805e;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
}
.demo-panel {
  flex: 1;
  padding: 35px 34px 30px;
}
.demo-panel[hidden] {
  display: none;
}
.panel-head h2 {
  margin: 12px 0 12px;
  color: #173a32;
  font-size: clamp(29px, 3vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.045em;
}
.panel-head p {
  max-width: 640px;
  margin-bottom: 30px;
  color: #64736d;
  font-size: 14px;
  line-height: 1.65;
}
.sample-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.sample-card {
  min-height: 184px;
  padding: 21px;
  border: 1px solid #e1e8df;
  border-radius: 6px;
  background: #fafcf9;
}
.sample-card strong {
  display: block;
  margin: 12px 0 11px;
  color: #24483c;
  font-size: 17px;
  line-height: 1.3;
}
.sample-card p,
.sample-card li {
  margin: 5px 0;
  color: #697870;
  font-size: 12px;
  line-height: 1.5;
}
.sample-card ol {
  margin: 0;
  padding-left: 18px;
}
.status {
  display: inline-block;
  margin-top: 12px;
  padding: 5px 9px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
}
.status-amber {
  background: #f8ecd7;
  color: #8d692d;
}
.status-green {
  background: #e6f1e9;
  color: #377354;
}
.sample-files {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 13px;
}
.sample-files span {
  padding: 6px 8px;
  border: 1px solid #dce8dd;
  border-radius: 3px;
  color: #53735d;
  font-size: 10px;
  font-weight: 700;
}
.sample-next {
  display: grid;
  gap: 5px;
  margin-top: 20px;
  padding: 16px 20px;
  border-left: 3px solid #72aa87;
  background: #f1f6ef;
}
.sample-next span {
  color: #52806a;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.sample-next strong {
  color: #285344;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.5;
}
.stage-footer {
  border-top: 1px solid #e7ece6;
  color: #66776c;
  font-size: 12px;
}
.stage-footer > div {
  display: flex;
  gap: 9px;
}
.step-button {
  padding: 10px 14px;
  border: 1px solid #c6d9cc;
  border-radius: 4px;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}
.step-button-back {
  background: #fff;
  color: #356b54;
}
.step-button-next {
  border-color: #133e34;
  background: #133e34;
  color: #fff;
}
.step-button:disabled {
  opacity: 0.4;
  cursor: default;
}
button:focus-visible {
  outline: 3px solid #b58a49;
  outline-offset: 3px;
}
.demo-end {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 35px;
  color: #385e4f;
}
.demo-end p {
  margin: 0;
  font-size: 14px;
}
.demo-end a {
  padding-bottom: 5px;
  border-bottom: 1px solid #427864;
  font-size: 13px;
  font-weight: 750;
}
@media (max-width: 800px) {
  .demo-workspace {
    grid-template-columns: 1fr;
  }
  .demo-rail {
    border-right: 0;
    border-bottom: 1px solid #dbe6de;
  }
  .demo-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .rail-note {
    display: none;
  }
}
@media (max-width: 580px) {
  .demo-intro {
    padding-top: 55px;
    padding-bottom: 30px;
  }
  .demo-intro > p:not(.eyebrow) {
    font-size: 16px;
  }
  .demo-disclosure {
    display: grid;
  }
  .stage-top,
  .stage-footer {
    padding-inline: 19px;
  }
  .demo-panel {
    padding: 27px 19px;
  }
  .sample-grid {
    grid-template-columns: 1fr;
  }
  .sample-card {
    min-height: auto;
  }
  .stage-footer {
    align-items: flex-start;
    flex-direction: column;
  }
  .demo-end {
    align-items: flex-start;
    flex-direction: column;
  }
}
