/* "See it in action": the real studio on a laptop (landing page) */
.demo { display: grid; grid-template-columns: minmax(250px, 320px) 1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .demo { grid-template-columns: 1fr; gap: 30px; } .demo .laptop-col { order: -1; } }

.demo-steps { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.demo-step { width: 100%; display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; text-align: left; border: 0; cursor: pointer; font: inherit; color: inherit; background: var(--background); border-radius: var(--radius); padding: 14px 16px; transition: background .2s, box-shadow .2s, transform .2s; }
.demo-step:hover { transform: translateX(3px); }
.demo-step .n { width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font: italic 600 19px/40px var(--font-display); text-align: center; transition: .2s; }
.demo-step b { display: block; color: var(--accent); font-size: 17px; }
.demo-step .d { display: block; max-height: 0; overflow: hidden; color: var(--latte-text); font-size: 15px; transition: max-height .3s ease; }
.demo-step[aria-selected="true"] { background: var(--panel); box-shadow: var(--shadow-raised); }
.demo-step[aria-selected="true"] .n { background: var(--accent); color: var(--accent-text); }
.demo-step[aria-selected="true"] .d { max-height: 110px; margin-top: 2px; }
.demo-note { margin-top: 20px; font-size: 14px; color: var(--muted); }

.laptop-col { display: grid; gap: 18px; justify-items: center; min-width: 0; }
.laptop { width: 100%; max-width: 760px; filter: drop-shadow(0 28px 30px rgba(58, 44, 46, .22)); }
.lid { position: relative; background: linear-gradient(180deg, #2b2b2f, #17171a); border-radius: 18px 18px 6px 6px; padding: 16px 16px 20px; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .12); }
.lid::before { content: ""; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 6px; height: 6px; border-radius: 50%; background: #3a3a40; box-shadow: inset 0 0 0 1px #0c0c0e; }
.screen { position: relative; overflow: hidden; border-radius: 4px; background: var(--background); aspect-ratio: 16 / 10; isolation: isolate; }
.base { position: relative; height: 15px; width: 108%; margin-left: -4%; background: linear-gradient(180deg, #e4e4e8, #b4b4ba 70%, #9d9da3); border-radius: 0 0 22px 22px / 0 0 14px 14px; }
.base::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 17%; height: 6px; background: linear-gradient(180deg, #9a9aa0, #c4c4ca); border-radius: 0 0 10px 10px; }

.views { position: absolute; inset: 0; }
.view { position: absolute; inset: 0; background: var(--background); opacity: 0; transform: scale(.985); transition: opacity .35s ease, transform .35s ease; pointer-events: none; }
.view.on { opacity: 1; transform: none; pointer-events: auto; }
.view img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.pager { display: flex; align-items: center; gap: 14px; }
.pager button { width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; background: var(--panel); color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--border); font-size: 18px; transition: .15s; }
.pager button:hover { background: var(--accent); color: var(--accent-text); }
.dots { display: flex; gap: 8px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--latte); transition: .25s; }
.dots i.on { width: 26px; border-radius: 99px; background: var(--pop-strong); }
.caption { min-height: 24px; text-align: center; font-size: 14px; color: var(--muted); max-width: 520px; }
@media (min-width: 901px) { .caption { display: none; } }

#see { overflow-x: hidden; overflow-x: clip; }

/* phones: the arrows change the screen, and only the open step is shown, right under them */
@media (max-width: 900px) {
  .demo { gap: 18px; }
  .demo-steps li { display: none; }
  .demo-steps li.on { display: block; animation: stepin .35s ease; }
  .demo-step { pointer-events: none; cursor: default; }
  .demo-step:hover { transform: none; }
  .demo .caption { display: none; }
  .demo-note { text-align: center; }
}
@keyframes stepin { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
