.product-stage {
  min-width: 0;
  width: 100%;
  max-width: 560px;
  margin: 0 0 0 auto;
}
.demo-theatre {
  display: grid;
  align-items: center;
  min-height: 350px;
}
.demo-surface {
  --surface-height: 260px;
  position: relative;
  width: 100%;
  height: var(--surface-height);
  overflow: clip;
  border: 1px solid #e3eaf5bd;
  border-radius: 12px;
  background: linear-gradient(125deg, #fff, #f1f4fa);
  color: var(--ink);
  box-shadow:
    0 24px 64px #02091238,
    0 0 0 5px #ced9ef08;
  transition: height 650ms cubic-bezier(0.22, 0.7, 0.2, 1);
}
[data-phase="input"] .demo-surface {
  --surface-height: 236px;
}
[data-phase="context"] .demo-surface {
  --surface-height: 284px;
}
[data-phase="framework"] .demo-surface {
  --surface-height: 320px;
}
.demo-scene {
  position: absolute;
  inset: 0;
  padding: 30px 32px;
}
.demo-brief {
  max-width: 470px;
  margin: 0;
  font-size: clamp(1.125rem, 1.65vw, 1.4rem);
  line-height: 1.55;
  letter-spacing: -0.02em;
}
.typing-caret {
  display: inline-block;
  height: 1em;
  margin-left: 2px;
  border-left: 1px solid #5877aa;
  vertical-align: -2px;
}
.demo-submit {
  position: absolute;
  right: 28px;
  bottom: 24px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 5px;
  background: #3e5c92;
  color: #fff;
}
.demo-submit svg {
  width: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}
.demo-title {
  max-width: 450px;
  margin: 0;
  color: #283b58;
  font-size: clamp(1.25rem, 1.7vw, 1.5rem);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.035em;
}
.demo-fields {
  display: grid;
  grid-template-columns: 1fr 1.2fr 0.9fr;
  gap: 9px;
  margin: 26px 0 0;
}
.demo-fields > div {
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid #d7dfec;
  border-radius: 5px;
  background: #ffffff78;
}
.demo-fields dt {
  color: #5f708a;
  font-size: 0.75rem;
  line-height: 1.4;
}
.demo-fields dd {
  margin: 6px 0 0;
  color: #314a72;
  font-size: 0.875rem;
  line-height: 1.4;
}
.demo-fields .is-active {
  border-color: #7994bf;
  background: #f4f7fc;
}
.demo-fields .is-filled {
  border-color: #b1c2df;
}
.demo-layers {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.demo-layers li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  border-top: 1px solid #d9e1ed;
  color: #415979;
  font-size: 0.875rem;
  line-height: 1.5;
}
.demo-layers i {
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #92a6c7;
}
.scene-final {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.demo-ending {
  margin: 0;
  color: #293e60;
  font-size: clamp(1.45rem, 2vw, 1.85rem);
  line-height: 1.28;
  letter-spacing: -0.04em;
}
.demo-ending > span {
  color: #677fa8;
}
.demo-destinations {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 0;
  margin: 24px 0 0;
  color: #536a8b;
  font-size: 0.875rem;
  line-height: 1.65;
}
.demo-destinations > span:not(:last-child)::after {
  content: "·";
  display: inline-block;
  margin-inline: 8px;
  color: #8396b4;
}
.demo-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 32px;
  margin-top: 4px;
  color: #a6b5ce;
  font-size: 0.75rem;
}
.motion-control {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-right: -7px;
  padding: 7px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #a6b5ce;
}
.motion-control:hover {
  background: #ffffff09;
  color: #eff4ff;
}
.motion-control svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}
.motion-control .play-icon {
  display: none;
}
.motion-control[aria-pressed="true"] .pause-icon {
  display: none;
}
.motion-control[aria-pressed="true"] .play-icon {
  display: block;
}
.demo-cursor {
  position: absolute;
  z-index: 3;
  left: 0;
  top: 0;
  width: 20px;
  height: 25px;
  opacity: 0;
  pointer-events: none;
}
.demo-cursor > svg {
  position: relative;
  z-index: 1;
  width: 20px;
  fill: #263f6b;
  stroke: white;
  stroke-width: 1.5;
  filter: drop-shadow(0 2px 2px #1d315440);
}
.demo-cursor i {
  position: absolute;
  inset: -8px;
  border: 1px solid #809bc5;
  border-radius: 50%;
  opacity: 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.panel-label {
  display: block;
  margin: 0;
  color: #616e81;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.5;
}
@media (max-width: 1180px) and (min-width: 901px) {
  .demo-scene {
    padding: 26px 24px;
  }
  .demo-fields {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 18px;
  }
  .demo-fields > div:last-child {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .demo-fields > div:last-child dd {
    margin-top: 0;
  }
  [data-phase="context"] .demo-surface {
    --surface-height: 310px;
  }
}
@media (max-width: 900px) {
  .product-stage {
    max-width: 620px;
    margin: 0;
  }
  .demo-theatre {
    min-height: 330px;
  }
  .demo-brief {
    font-size: 1.3rem;
  }
  .demo-title {
    font-size: 1.4rem;
  }
}
@media (max-width: 600px) {
  .demo-theatre {
    min-height: 322px;
  }
  .demo-scene {
    padding: 25px 22px;
  }
  .demo-brief {
    font-size: 1.125rem;
  }
  .demo-title {
    font-size: 1.2rem;
  }
  .demo-fields {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 20px;
  }
  .demo-fields > div:last-child {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .demo-fields > div:last-child dd {
    margin-top: 0;
  }
  [data-phase="context"] .demo-surface {
    --surface-height: 298px;
  }
  [data-phase="framework"] .demo-surface {
    --surface-height: 302px;
  }
  .demo-ending {
    font-size: 1.6rem;
  }
  .demo-destinations {
    margin-top: 20px;
  }
  .demo-layers {
    margin-top: 18px;
  }
}
@media (max-width: 370px) {
  .demo-scene {
    padding-inline: 18px;
  }
  .demo-theatre {
    min-height: 335px;
  }
  [data-phase="context"] .demo-surface {
    --surface-height: 320px;
  }
  .demo-ending {
    font-size: 1.45rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .demo-cursor,
  .typing-caret {
    display: none;
  }
  .motion-control {
    display: none;
  }
}
