.cz-lesson {
  grid-area: scene;
  align-self: center;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid #e7dfe8;
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 11px 26px #39253f0b;
}
.cz-lesson__content { display: grid; align-items: center; min-height: 290px; padding: clamp(13px, 2.5vw, 30px); background: #fff; font-size: 12px; line-height: 1.3; }
.cz-lesson__content > div { width: 100%; max-width: 360px; margin-inline: auto; }
.cz-lesson figcaption { display: grid; gap: 5px; padding: 15px clamp(13px, 2.5vw, 24px); border-top: 1px solid #eee8ef; }
.cz-lesson figcaption strong { font-size: clamp(15px, 1.4vw, 19px); letter-spacing: -.022em; line-height: 1.2; }
.cz-lesson figcaption > span { color: var(--academy-muted); font-size: 12px; line-height: 1.35; }
.cz-lesson svg { width: 21px; height: 21px; display: block; }

.cz-demo-revenue { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; font-variant-numeric: tabular-nums; }
.cz-demo-revenue__column { display: grid; justify-items: center; gap: 8px; padding: 10px 6px; text-align: center; }
.cz-demo-revenue__column > span { color: var(--academy-muted); font-weight: 650; }
.cz-demo-revenue__column strong { font-size: clamp(19px, 2.2vw, 29px); line-height: 1; }
.cz-demo-revenue__stack { display: grid; grid-template-rows: 1fr var(--retained); width: 65%; height: 100px; margin: 3px 0; overflow: hidden; border-radius: 9px; background: #9c79be; }
.cz-demo-revenue__stack i:first-child { background: #ddcfe8; }
.cz-demo-revenue__stack i:last-child { background: #7a559d; }
.cz-demo-revenue__column:nth-child(2) i:first-child { background: #f4cde1; }
.cz-demo-revenue__column:nth-child(2) i:last-child { background: #c34885; }
.cz-demo-revenue__column small { min-height: 2em; color: var(--academy-muted); font-size: 10px; }
.cz-demo-revenue__column b { padding: 5px 7px; border-radius: 6px; background: var(--academy-mint); color: var(--academy-green); font-size: 10px; }
.cz-lesson[data-academy-demo="01"][data-phase="start"] .cz-demo-revenue__stack i:first-child { background: #9c79be; }
.cz-lesson[data-academy-demo="01"][data-phase="start"] .cz-demo-revenue__column:nth-child(2) .cz-demo-revenue__stack i:first-child { background: #df80b0; }
.cz-lesson[data-academy-demo="01"]:not([data-phase="final"]) .cz-demo-revenue__column b { visibility: hidden; }

.cz-demo-funnel { --token-size: 21px; }
.cz-demo-funnel__labels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; text-align: center; }
.cz-demo-funnel__labels > div { display: grid; justify-items: center; gap: 4px; font-size: 11px; color: var(--academy-muted); }
.cz-demo-funnel__labels b { color: var(--academy-ink); font-size: 19px; font-variant-numeric: tabular-nums; }
.cz-demo-funnel__tokens { position: relative; height: 173px; margin-top: 10px; border-radius: 11px; background: repeating-linear-gradient(90deg, #f6f0f7 0 24.4%, transparent 24.4% 25%); }
.cz-demo-funnel__tokens > div { position: absolute; left: calc((var(--lane) + .5) * 25%); top: calc(8px + var(--row) * 31px); display: grid; place-items: center; width: var(--token-size); height: var(--token-size); translate: calc(-50% + var(--shift, 0px)) 0; border-radius: 50%; background: #e6d9f2; color: #624084; transition: left .55s, translate .55s, opacity .5s, color .4s, background .4s; }
.cz-demo-funnel__tokens > div:nth-child(n+6) { --shift: 13px; }
.cz-demo-funnel__tokens > div:nth-child(-n+5) { --shift: -10px; }
.cz-demo-funnel__tokens > div.is-inactive { opacity: .45; }
.cz-demo-funnel__tokens > div.is-client,
.cz-lesson[data-phase="final"] .cz-demo-funnel__tokens > div:nth-child(-n+2) { background: var(--academy-mint); color: var(--academy-green); }
.cz-demo-funnel__tokens svg { width: 14px; height: 14px; }

.cz-demo-rank { position: relative; min-height: 216px; }
.cz-demo-rank__item { --slot: var(--rank); position: absolute; top: calc(var(--slot) * 74px); inset-inline: 0; display: grid; grid-template-columns: minmax(0, 1fr) max-content max-content; align-items: center; gap: 9px; min-height: 65px; padding: 8px; border: 1px solid var(--academy-line); border-radius: 10px; background: #fff; transition: top .7s cubic-bezier(.22,.7,.25,1); }
.cz-lesson[data-phase="start"] .cz-demo-rank__item, .cz-lesson[data-phase="middle"] .cz-demo-rank__item { --slot: var(--original); }
.cz-demo-rank__item strong, .cz-demo-rank__item small { display: block; }
.cz-demo-rank__item small { margin-top: 4px; color: var(--academy-muted); font-size: 10px; }
.cz-demo-rank__item em { padding: 5px; border-radius: 5px; background: var(--academy-mint); color: var(--academy-green); font-size: 11px; font-style: normal; font-weight: 650; }
.cz-lesson[data-phase="start"] .cz-demo-rank__item :is(em,small) { visibility: hidden; }

.cz-demo-match { position: relative; display: grid; gap: 12px; text-align: center; }
.cz-demo-match__surfaces, .cz-demo-match__bottles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.cz-demo-match__surfaces span, .cz-demo-match__bottles span { display: grid; place-items: center; align-content: center; gap: 6px; min-height: 58px; padding: 5px 2px; border: 1px solid var(--academy-line); border-radius: 8px; background: #fff; font-size: 10px; font-weight: 600; }
.cz-demo-match__surfaces i { width: 39px; height: 25px; border-radius: 4px; background: repeating-linear-gradient(100deg, #c49b7a 0px 6px, #d5aa83 6px 9px); }
.cz-demo-match__surfaces span:nth-child(2) i { border: 1px solid #ded9db; background: repeating-linear-gradient(-24deg, #f3f1f2 0 7px, #d2cbd1 8px, #eee9ec 10px 19px); }
.cz-demo-match__surfaces span:nth-child(3) i { background: conic-gradient(#c7d0cf 25%, #eef2f1 0 50%, #c7d0cf 0 75%, #eef2f1 0) 0 0 / 16px 16px; }
.cz-demo-match__bottles i { position: relative; width: 19px; height: 21px; margin: 6px 0 0; border-radius: 5px 5px 8px 8px; background: #eaa1b1; border-bottom: 6px solid #f4d8df; }
.cz-demo-match__bottles i::before { content: ""; position: absolute; left: 25%; width: 50%; height: 6px; top: -5px; border-radius: 2px 2px 0 0; background: #78667a; }
.cz-demo-match__bottles span:nth-child(2) i { background: #7fc5a4; border-bottom-color: #c6e8d7; }
.cz-demo-match__bottles span:nth-child(3) i { background: #b8a3dc; border-bottom-color: #e9e0f5; }
.cz-demo-match .cz-academy-cursor { left: var(--cursor-x, 79%); top: var(--cursor-y, 60%); }
.cz-demo-match__bottles span:nth-child(2) i { transform: translateY(var(--bottle-lift, 0)); z-index: 1; }
.cz-lesson[data-phase="final"] :is(.cz-demo-match__surfaces,.cz-demo-match__bottles) span:nth-child(2) { border-color: #8bc5a7; background: var(--academy-mint); }
.cz-lesson:not([data-phase="final"]) .cz-demo-match__surfaces span:nth-child(2) { border-color: #d682ab; background: #fff5f9; }
.cz-lesson:is([data-phase="middle"],[data-phase="final"]) .cz-demo-match::after {
  position: absolute;
  inset: 38% auto auto 50%;
  width: 1px;
  height: 11%;
  background: #569472;
  content: "";
  pointer-events: none;
}
.cz-demo-match__coach { display: flex; align-items: center; gap: 7px; min-height: 39px; margin: 0; padding: 4px 7px; border-radius: 8px; background: #f3e9f4; text-align: left; font-size: 10px; }
.cz-demo-match__coach img { width: 26px; height: 26px; border-radius: 50%; }
.cz-lesson:not([data-phase="final"]) .cz-demo-match__coach { visibility: hidden; }

.cz-demo-logistics { position: relative; display: grid; gap: 19px; }
.cz-demo-logistics__house { display: grid; justify-items: center; gap: 7px; width: fit-content; min-width: 132px; margin: 0 auto; padding: 11px; border-radius: 12px; background: #f2e7f6; line-height: 1.2; }
.cz-demo-logistics__house svg { width: 31px; height: 31px; color: #915491; }
.cz-demo-ready { padding: 4px 6px; border-radius: 5px; background: var(--academy-mint); color: var(--academy-green); font-weight: 650; }
.cz-demo-logistics__supplies { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; text-align: center; }
.cz-demo-logistics__supplies > div { display: grid; justify-items: center; align-content: start; gap: 6px; padding: 7px 2px; border: 1px solid var(--academy-line); border-radius: 8px; background: #fff; }
.cz-demo-logistics__supplies > div > span { display: grid; place-items: center; height: 24px; color: #966187; }
.cz-demo-logistics__supplies b { color: var(--academy-green); }
.cz-demo-logistics__supplies small { font-size: 9px; }
.cz-demo-linen { display: block; width: 21px; height: 14px; border: 1px solid #b092bf; border-radius: 4px; background: repeating-linear-gradient(0deg,#dbc6e9 0 3px,#a581b6 3px 4px); }
.cz-demo-logistics__incoming { position: absolute; top: var(--incoming-y, 72%); left: var(--incoming-x, 50%); display: grid; place-items: center; width: 29px; height: 29px; border-radius: 8px; background: #eeddf0; color: #764578; opacity: var(--incoming-opacity, 0); transform: translate(-50%, -50%); }
.cz-lesson[data-phase="start"] :is(.cz-demo-logistics__linen,.cz-demo-logistics__access) b,
.cz-lesson[data-phase="middle"] .cz-demo-logistics__access b,
.cz-lesson:not([data-phase="final"]) .cz-demo-ready { visibility: hidden; }

.cz-demo-retain { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.75fr); gap: 12px; }
.cz-demo-retain__track, .cz-demo-retain__calendar { display: grid; align-content: center; gap: 8px; }
.cz-demo-retain__track { position: relative; }
.cz-demo-retain__track::before { content: ""; position: absolute; top: 12px; bottom: 12px; left: 7px; width: 1px; background: #decfe0; }
.cz-demo-retain__track span { z-index: 0; display: flex; align-items: center; gap: 7px; min-height: 22px; font-size: 10px; }
.cz-demo-retain__track i { flex: 0 0 15px; height: 15px; border: 1px solid #ccb9ca; border-radius: 50%; background: #fdfbfd; }
.cz-demo-retain__track .is-complete i, .cz-lesson[data-phase="final"] .cz-demo-retain__track i { display: grid; place-items: center; border-color: #e6a0bd; background: var(--academy-blush); color: var(--academy-pink); }
.cz-demo-retain__track .is-complete i::before, .cz-lesson[data-phase="final"] .cz-demo-retain__track i::before { content: "✓"; font-size: 9px; font-style: normal; }
.cz-demo-retain__calendar { padding: 8px; border: 1px solid var(--academy-line); border-radius: 9px; background: #fff; }
.cz-demo-retain__calendar strong { font-size: 10px; }
.cz-demo-retain__calendar span { display: flex; justify-content: space-between; gap: 3px; padding: 5px; border-radius: 4px; background: var(--academy-mint); color: var(--academy-green); font-size: 10px; }
.cz-lesson:not([data-phase="final"]) .cz-demo-retain__calendar span:not(.is-complete) { visibility: hidden; }

.cz-demo-price { display: grid; gap: 10px; font-variant-numeric: tabular-nums; }
.cz-demo-price__total, .cz-demo-price__result, .cz-demo-price__scale { display: flex; align-items: center; justify-content: space-between; gap: 5px; }
.cz-demo-price__total strong { font-size: clamp(20px, 2.5vw, 29px); }
.cz-demo-price__scale, .cz-demo-price > small { color: var(--academy-muted); font-size: 9px; }
.cz-demo-price__slider { --position: var(--price-position, 100%); margin-inline: 6px 10px; }
.cz-demo-price__costs { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 5px; }
.cz-demo-price__costs span { display: flex; justify-content: space-between; gap: 3px; padding: 5px; border-radius: 5px; background: #f1edf2; font-size: 10px; }
.cz-demo-price__costs span b { white-space: nowrap; }
.cz-lesson:not([data-phase="final"]) .cz-demo-price__costs span:not(.is-complete) { visibility: hidden; }
.cz-demo-price__result { font-size: 10px; }
.cz-demo-price__result strong { padding: 4px 5px; border-radius: 4px; background: var(--academy-mint); color: var(--academy-green); font-size: 11px; }
.cz-demo-price__result strong.is-loss { background: #feeae9; color: #963b46; }

.cz-demo-plan { display: grid; gap: 10px; }
.cz-demo-plan__header { display: flex; justify-content: space-between; margin-left: 35px; color: var(--academy-muted); font-size: 10px; }
.cz-demo-plan__body { display: grid; grid-template-columns: 35px minmax(0, 1fr); }
.cz-demo-plan__labels { display: grid; grid-template-rows: repeat(3, 42px); align-items: center; font-size: 10px; }
.cz-demo-plan__time { position: relative; height: 126px; border-radius: 7px; background: repeating-linear-gradient(90deg, transparent 0 32.9%, #ddd1e0 33% 33.3%), repeating-linear-gradient(0deg, #f7f2f8 0 41px,#e9e0eb 41px 42px); }
.cz-demo-plan__time > span { position: absolute; top: calc(8px + var(--lane) * 42px); left: calc(var(--start) + 1px); width: calc(var(--duration) - 2px); padding: 5px 1px; overflow: hidden; border-radius: 5px; background: #e8dcf2; color: #513464; text-align: center; font-size: clamp(8px, .75vw, 10px); white-space: nowrap; }
.cz-demo-plan__time > span:nth-child(2n) { background: #f8deeb; color: #842856; }
.cz-demo-plan__time > .cz-demo-plan__moving { --lane: var(--drag-lane, 2); z-index: 1; }
.cz-lesson[data-phase="start"] .cz-demo-plan__moving, .cz-lesson[data-phase="middle"] .cz-demo-plan__moving { background: #bc475b; color: #fff; }
.cz-demo-plan__time .cz-academy-cursor { top: calc(18px + var(--drag-lane, 2) * 42px); left: 48%; }
.cz-demo-plan__summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 10px; }
.cz-demo-plan__summary b { padding: 5px; border-radius: 5px; }
.cz-demo-plan__conflict { color: #963b46; background: #feeae9; }
.cz-demo-plan__clear { color: var(--academy-green); background: var(--academy-mint); }
.cz-lesson[data-phase="final"] .cz-demo-plan__conflict, .cz-lesson:not([data-phase="final"]) .cz-demo-plan__clear { display: none; }

@media (max-width: 360px) {
  .cz-lesson__content { padding-inline: 8px; }
  .cz-demo-funnel { --token-size: 17px; }
  .cz-demo-funnel__labels > div { font-size: 9px; }
  .cz-demo-rank__item { gap: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  .cz-academy *, .cz-academy *::after { animation-duration: 0s !important; transition-duration: 0s !important; }
}

.cz-demo-funnel__tokens > div svg + svg { display: none; }
.cz-demo-funnel__tokens > div.is-client svg:first-child,
.cz-lesson[data-phase="final"] .cz-demo-funnel__tokens > div:nth-child(-n+2) svg:first-child { display: none; }
.cz-demo-funnel__tokens > div.is-client svg + svg,
.cz-lesson[data-phase="final"] .cz-demo-funnel__tokens > div:nth-child(-n+2) svg + svg { display: block; }
