/* A live platform simulation in a platform page's hero (components/platform_sim.html, played by platform-sim.js).
   Everything is scoped to .ll-solo. The frame matches the landing page's (landing-live.css), which keeps its
   own copy of these rules for its hero and carousel. */
.ll-solo {
  color-scheme: dark;
  --ll-bg: #000; --ll-bezel: #1c1c21; --ll-line-2: rgba(255, 255, 255, .16);
  --ll-fg: #f6f4ee; --ll-muted: #aaa69c; --ll-amber: #f59e0b; --ll-amber-ink: #160f00;
  position: relative; min-width: 0;
}
.ll-solo *, .ll-solo *::before, .ll-solo *::after { box-sizing: border-box; }
.ll-solo-stage { position: relative; display: flex; justify-content: center; padding-bottom: 26px; }
.ll-solo .ll-dev { width: 100%; min-width: 0; }
.ll-solo .ll-screen { position: relative; overflow: hidden; background: var(--ll-bg); }
.ll-solo .ll-still { position: absolute; left: 0; top: 0; width: 100%; height: auto; display: block; max-width: none; }
.ll-solo .ll-screen iframe { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; background: var(--ll-bg); pointer-events: none; max-width: none; visibility: hidden; transition: transform .9s cubic-bezier(.45, 0, .2, 1), opacity .22s ease; }   /* same length and ease as the copy's own scroll */
.ll-solo .ll-dev.is-turning iframe { opacity: 0; transition: opacity .16s ease; }   /* a tour is changing screen: fade out, and let the zoom reset unseen */
.ll-solo .ll-dev.is-live iframe { visibility: visible; }
.ll-solo .ll-dev.is-live .ll-still { visibility: hidden; }
.ll-solo .ll-dev.is-active iframe { pointer-events: auto; }
.ll-solo .ll-dev.is-live .ll-screen { cursor: pointer; }
.ll-solo .ll-dev.is-active .ll-screen { cursor: auto; }
.ll-solo .ll-laptop .ll-screen { aspect-ratio: 1280 / 800; border: 10px solid var(--ll-bezel); border-bottom-width: 12px; border-radius: 18px 18px 4px 4px; box-shadow: 0 50px 120px -40px rgba(245, 158, 11, .45), 0 0 0 1px rgba(255, 255, 255, .07); }
.ll-solo .ll-dev.is-active .ll-screen { box-shadow: 0 0 0 2px var(--ll-amber), 0 50px 120px -40px rgba(245, 158, 11, .55); }
.ll-solo .ll-base { height: 14px; margin: 0 -4%; background: linear-gradient(#34343b, #17171b); border-radius: 2px 2px 16px 16px; position: relative; }
.ll-solo .ll-base::after { content: ""; position: absolute; left: 50%; top: 0; width: 13%; height: 5px; transform: translateX(-50%); background: #0e0e11; border-radius: 0 0 8px 8px; }
.ll-solo .ll-phone { width: min(72vw, 290px); }
.ll-solo .ll-phone .ll-screen { aspect-ratio: 390 / 800; border: 7px solid var(--ll-bezel); border-radius: 30px; box-shadow: 0 30px 80px rgba(0, 0, 0, .75), 0 40px 110px -40px rgba(245, 158, 11, .4), 0 0 0 1px rgba(255, 255, 255, .1); }
.ll-solo .ll-phone .ll-base { display: none; }
.ll-solo .ll-hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%) translateY(6px); z-index: 3; background: var(--ll-amber); color: var(--ll-amber-ink); font: 600 13.5px 'DM Sans', 'Helvetica Neue', Arial, sans-serif; padding: 8px 14px; border-radius: 999px; white-space: nowrap; opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; }
.ll-solo .ll-dev.is-live:hover .ll-hint { opacity: 1; transform: translateX(-50%); }
.ll-solo .ll-dev.is-active .ll-hint { opacity: 0 !important; }
.ll-solo .ll-phone .ll-hint { bottom: 62px; }

/* The caption of the move being played, attached to the lower edge of the frame. */
.ll-solo .ll-caption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; width: max-content; max-width: 100%; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; justify-content: center; padding: 10px 18px 10px 16px; border-radius: 999px; background: rgba(12, 12, 14, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid var(--ll-line-2); box-shadow: 0 18px 40px rgba(0, 0, 0, .55); font: 400 15px/1.35 'DM Sans', 'Helvetica Neue', Arial, sans-serif; color: var(--ll-muted); text-align: center; opacity: 0; transform: translateY(8px); pointer-events: none; }
.ll-solo .ll-caption b { color: var(--ll-fg); font-weight: 600; white-space: nowrap; }
.ll-solo .ll-caption b::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ll-amber); margin-right: 9px; vertical-align: 1px; }
.ll-solo .ll-caption.is-on { animation: ll-solo-caption .45s .22s cubic-bezier(.2, .8, .2, 1) forwards; }
@keyframes ll-solo-caption { to { opacity: 1; transform: none; } }
.ll-solo .ll-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* The tour's chapters under the frame: number and title, the one playing fills its line. A click plays that move. */
.ll-solo .ll-steps { display: flex; gap: clamp(8px, 1.2vw, 16px); margin-top: 16px; min-width: 0; }
.ll-solo .ll-step { position: relative; flex: 1 1 0; min-width: 0; padding-top: 12px; border-top: 2px solid var(--ll-line-2); cursor: pointer; text-align: left; }
.ll-solo .ll-step > i { position: absolute; left: 0; right: 0; top: -2px; height: 2px; border-radius: 2px; background: var(--ll-amber); transform: scaleX(0); transform-origin: left; transition: transform 0s linear; }
[dir="rtl"] .ll-solo .ll-step > i { transform-origin: right; }
.ll-solo .ll-step.is-done > i, .ll-solo .ll-step.is-on > i { transform: scaleX(1); }
.ll-solo .ll-step small { display: block; margin-bottom: 5px; font: 500 11px/1 'DM Mono', ui-monospace, Menlo, monospace; letter-spacing: .12em; color: #8b877e; transition: color .3s; }
.ll-solo .ll-step b { display: block; font: 600 13.5px/1.3 'DM Sans', 'Helvetica Neue', Arial, sans-serif; color: var(--ll-muted); transition: color .3s; overflow-wrap: anywhere; hyphens: auto; }   /* a long word in another language breaks inside its own chapter */
.ll-solo .ll-step span { display: none; }   /* the detail shows in the caption on the frame */
.ll-solo .ll-step.is-on small { color: var(--ll-amber); }
.ll-solo .ll-step.is-on b, .ll-solo .ll-step:hover b { color: var(--ll-fg); }
/* The next chapter while the tour is on its way to that move's screen: named, its line waiting to start. */
.ll-solo .ll-step.is-next > i { transform: scaleX(.07); animation: ll-solo-step-next .7s ease-in-out infinite alternate; }
.ll-solo .ll-step.is-next small { color: var(--ll-amber); }
.ll-solo .ll-step.is-next b { color: var(--ll-fg); }
@keyframes ll-solo-step-next { to { opacity: .3; } }
.ll-solo.is-still .ll-step { cursor: default; }

.ll-solo-foot { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 14px; font: 400 13.5px/1.4 'DM Sans', 'Helvetica Neue', Arial, sans-serif; color: var(--ll-muted); text-align: center; }
.ll-solo .ll-auto-toggle { flex: none; font: inherit; color: var(--ll-muted); background: none; border: 1px solid var(--ll-line-2); border-radius: 999px; padding: 7px 14px; min-height: 36px; cursor: pointer; }
.ll-solo .ll-auto-toggle:hover { color: var(--ll-fg); border-color: var(--ll-fg); }
.ll-solo .ll-auto-toggle:focus-visible { outline: 2px solid var(--ll-amber); outline-offset: 3px; }
.ll-solo .ll-auto-toggle[hidden] { display: none; }

/* The frame needs more of the hero than the drawn preview it replaces. */
@media (min-width: 992px) {
  body.mk-secondary-page .hero2-inner.hero2-inner--live { grid-template-columns: minmax(0, 6fr) minmax(0, 7fr); }
  body.mk-secondary-page .hero2-inner.hero2-inner--live.hero2-inner--phone { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
}
@media (max-width: 767px) {
  /* Phone: the frame comes straight after the calls to action, ahead of the supporting strips, and appears as soon as it scrolls in. */
  body.mk-secondary-page .hero2-inner.hero2-inner--live { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  body.mk-secondary-page .hero2-inner--live > .hero2-copy { display: contents; text-align: center; }
  body.mk-secondary-page .hero2-inner--live > .hero2-copy > * { align-self: center; }   /* centred, as on the landing page and from 768px up (connected-pages.css) */
  body.mk-secondary-page .hero2-inner--live > .hero2-copy > .az-d-flex.az-flex-wrap { align-self: stretch; }
  body.mk-secondary-page .hero2-inner--live > .hero2-visual { order: 1; margin: 30px 0 34px; transition-delay: 0s; }
  body.mk-secondary-page .hero2-inner--live > .hero2-copy > :is(.hero-eco-strip, .hero-trust-strip) { order: 2; align-self: stretch; justify-content: center; }
}
@media (max-width: 760px) {
  .ll-solo .ll-caption { border-radius: 16px; font-size: 13.5px; }
  .ll-solo-foot { flex-direction: column; gap: 10px; }
  .ll-solo .ll-auto-toggle { min-height: 44px; padding-inline: 20px; }
  /* The chapters are bare lines here; the caption on the frame says what is playing. */
  .ll-solo .ll-steps { gap: 6px; margin-top: 30px; }
  .ll-solo .ll-step { padding-top: 0; border-top-width: 3px; pointer-events: none; }
  .ll-solo .ll-step > i { top: -3px; height: 3px; }
  .ll-solo .ll-step small, .ll-solo .ll-step b { display: none; }
  .ll-solo-stage { padding-bottom: 0; }
  .ll-solo .ll-caption { bottom: -22px; }
  .ll-solo:has(.ll-caption.is-on) .ll-hint { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ll-solo .ll-screen iframe, .ll-solo .ll-hint { transition: none; }
  .ll-solo .ll-caption.is-on { animation: none; opacity: 1; transform: none; }
}
