/* See it in action: zenpayoff's two cards: the list of conversations, then the stage where one plays. */
.demo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 24px; align-items: start; }
.demo__side { display: flex; flex-direction: column; gap: 18px; padding: 18px; }
.scn-list { display: grid; gap: 6px; }
.scn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 16px;
  transition: background-color var(--t-fast), border-color var(--t-fast);
}
.scn:hover { background: var(--c-paper-lit); border-color: var(--c-line); }
.scn.is-on { background: var(--c-green-wash); border-color: color-mix(in srgb, var(--c-green-text) 45%, transparent); }
.scn__ava { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--grad-btn); color: var(--c-white); font-weight: 600; }
.scn__b { display: grid; flex: 1; min-width: 0; line-height: 1.5; }
.scn__top { display: flex; justify-content: space-between; gap: 10px; }
.scn__label { font-weight: 600; }
.scn__time { flex: none; font-size: .78rem; color: var(--c-mute); }
.scn__who { font-size: .86rem; color: var(--c-green-text); }
.scn__last { overflow: hidden; color: var(--c-mute); font-size: .86rem; white-space: nowrap; text-overflow: ellipsis; }
.demo__live { display: grid; gap: 8px; padding: 16px 6px 4px; border-block-start: 1px solid var(--c-line); }
.demo__live .btn { justify-self: start; white-space: normal; text-align: start; line-height: 1.5; padding-block: 10px; }
.demo__livenote { color: var(--c-mute); font-size: .9rem; }

/* the stage: zenpayoff's result card (a white card with a green rim) */
.demo__stage { position: relative; padding: 30px; border-color: var(--c-line-strong); box-shadow: var(--sh-card), 0 0 0 6px color-mix(in srgb, var(--c-green) 6%, transparent); }
.scene { display: none; }
.scene.is-on, html:not(.js) .scene { display: grid; justify-items: center; gap: 18px; }
html:not(.js) .scene + .scene { margin-block-start: 40px; padding-block-start: 40px; border-block-start: 1px solid var(--c-line); }
.scene__frame { position: relative; display: flex; align-items: center; justify-content: center; gap: 22px; width: 100%; }
.scene__note { max-width: 32em; color: var(--c-slate); font-size: .95rem; text-align: center; }

/* what reached the dashboard: zenpayoff's tinted stat box */
.scard {
  align-self: center;
  width: 240px;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--c-green-text) 30%, transparent);
  border-radius: 18px;
  background: var(--c-green-wash);
}
.scard__h { display: flex; align-items: center; gap: 10px; margin-block-end: 10px; }
.scard__ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--c-white); color: var(--c-green-text); font-size: 1.15rem; }
.scard__h strong { font-weight: 600; }
.scard__rows { display: grid; gap: 6px; list-style: none; }
.scard__rows li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 10px; border-radius: 10px; background: var(--c-white); font-size: .88rem; }
.scard__rows span { color: var(--c-mute); }
.scard__rows b { font-weight: 600; }
.scard__rows .is-missing b { color: var(--c-amber); }

/* a website's chat window */
.browser { position: relative; width: 100%; max-width: 520px; height: 520px; overflow: hidden; border: 1px solid var(--c-line); border-radius: 18px; background: var(--c-paper-lit); }
.browser__bar { display: flex; align-items: center; gap: 6px; height: 34px; padding-inline: 12px; background: var(--c-white); border-block-end: 1px solid var(--c-line); }
.browser__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--c-line-strong); }
.browser__url { flex: 1; height: 16px; margin-inline-start: 10px; border-radius: 8px; background: var(--c-paper); }
.browser__page { display: grid; gap: 10px; padding: 22px; }
.browser__page b { width: 50%; height: 16px; border-radius: 6px; background: var(--c-line); }
.browser__page i { height: 9px; border-radius: 5px; background: var(--c-line); }
.browser__page span { height: 60px; border-radius: 12px; background: var(--c-white); border: 1px solid var(--c-line); }
.browser__chat { position: absolute; inset-block-end: 70px; inset-inline-end: 16px; display: flex; width: 280px; height: 380px; overflow: hidden; border-radius: 18px; box-shadow: var(--sh-float); background: var(--c-wall); }
.browser__fab { position: absolute; inset-block-end: 14px; inset-inline-end: 16px; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--grad-btn); color: var(--c-white); font-size: 1.2rem; }

.demo__ctl { position: absolute; inset-block-start: 18px; inset-inline-end: 18px; display: flex; gap: 8px; }
html:not(.js) .demo__ctl { display: none; }

/* beside the stage, a row keeps two lines (the scene and the business), so the list stands as tall as the phone */
@media (min-width: 1101px) {
  .scn__last { display: none; }
  .demo__side { align-self: stretch; }
}
@media (max-width: 1100px) {
  .demo { grid-template-columns: minmax(0, 1fr); }
  .scn-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .demo__side { padding: 10px; }
  .demo.is-tabbed .scn-list { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .demo.is-tabbed .scn { flex: none; width: 74%; scroll-snap-align: center; }
  .demo__stage { padding: 56px 10px 22px; }
  .scene__frame { flex-direction: column; }
  .scard { width: 100%; max-width: 300px; }
  .browser { height: 480px; }
  .browser__chat { inset-inline: 10px; width: auto; }
}
