/* S11 illustrative product sequences. Every screen stays readable without JavaScript. */
.lm-product-time__inner {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5.5rem);
}

.lm-product-time__inner > * { min-width: 0; }
.lm-product-time__copy { max-width: 570px; }
.lm-product-time__copy h2 { max-width: 17ch; }
.lm-product-time__copy p:not(.lm-eyebrow) { max-width: 56ch; line-height: 1.65; }

.lm-operation-demo {
  --lm-demo-ink: #17344c;
  --lm-demo-muted: #536b7b;
  --lm-demo-line: #d8e6e9;
  width: 100%;
  max-width: 690px;
  margin-inline: auto;
  color: var(--lm-demo-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: .92rem;
  line-height: 1.45;
}

.lm-operation-demo *, .lm-operation-demo *::before, .lm-operation-demo *::after { box-sizing: border-box; }
.lm-operation-demo [hidden] { display: none !important; }
.lm-operation-demo__frame {
  overflow: hidden;
  border: 1px solid #cbdce1;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 22px 58px rgba(7, 26, 46, .13);
}
.lm-operation-demo__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  min-height: 52px;
  padding: .72rem 1.25rem;
  background: #0f3453;
  color: #fff;
  font-size: .79rem;
  font-weight: 800;
}
.lm-operation-demo__bar > * { min-width: 0; }
.lm-operation-demo__bar span { overflow-wrap: anywhere; }
.lm-operation-demo__body {
  display: grid;
  gap: .8rem;
  padding: clamp(.9rem, 2vw, 1.45rem);
}
.lm-operation-demo .lm-operation-demo__eyebrow {
  margin: 0;
  color: #147d94;
  font-size: .69rem;
  font-weight: 850;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.lm-operation-demo__title {
  margin: .1rem 0 0;
  color: #17344c;
  font-size: clamp(1.02rem, 1.5vw, 1.26rem);
  font-weight: 850;
  letter-spacing: -.025em;
  line-height: 1.2;
}
.lm-operation-demo__screens {
  display: grid;
  gap: .55rem;
  min-width: 0;
}
.lm-operation-demo__screen {
  min-width: 0;
  padding: .82rem .95rem;
  border: 1px solid var(--lm-demo-line);
  border-radius: 11px;
  background: #f7fafb;
}
.lm-operation-demo__screen:nth-child(even) { background: #fff; }
.lm-operation-demo__screen > :last-child { margin-bottom: 0; }
.lm-operation-demo .lm-operation-demo__screen-label {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 0 0 .65rem;
  color: #31576b;
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .035em;
}
.lm-operation-demo__screen-label span {
  display: inline-block;
  padding: .2rem .42rem;
  border-radius: 5px;
  background: #dfeef0;
  color: #166c7b;
  font-size: .67rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.lm-operation-demo .lm-operation-demo__fiscal-note {
  margin: .7rem 0 0;
  color: var(--lm-demo-muted);
  font-size: .76rem;
  line-height: 1.35;
}
.lm-operation-demo__panel {
  min-width: 0;
  padding: .75rem .9rem;
  border: 1px solid var(--lm-demo-line);
  border-radius: 11px;
  background: #fff;
}
.lm-operation-demo__panel:nth-of-type(even) { background: #f4f9fa; }
.lm-operation-demo__panel > :first-child { margin-top: 0; }
.lm-operation-demo__panel > :last-child { margin-bottom: 0; }
.lm-operation-demo__panel > p { margin: .58rem 0; }
.lm-operation-demo .lm-operation-demo__panel-label {
  margin: 0 0 .4rem !important;
  color: #587483;
  font-size: .67rem;
  font-weight: 850;
  letter-spacing: .085em;
  text-transform: uppercase;
}
.lm-operation-demo__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
  min-width: 0;
  padding-block: .26rem;
  border-bottom: 1px solid #eaf0f2;
}
.lm-operation-demo__row:last-child { border-bottom: 0; }
.lm-operation-demo__row > * { min-width: 0; overflow-wrap: anywhere; }
.lm-operation-demo__row > :last-child { text-align: right; }
.lm-operation-demo__row span:first-child { color: var(--lm-demo-muted); }
.lm-operation-demo__row strong { color: var(--lm-demo-ink); font-weight: 800; }
.lm-operation-demo .lm-operation-demo__status {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  max-width: 100%;
  padding: .3rem .55rem;
  border-radius: 999px;
  background: #dff2eb;
  color: #176046;
  font-size: .78rem;
  font-weight: 850;
  line-height: 1.3;
}
.lm-operation-demo__status::before {
  content: "";
  flex: 0 0 .43rem;
  width: .43rem;
  height: .43rem;
  border-radius: 50%;
  background: #248763;
}
.lm-operation-demo .lm-operation-demo__status--ready { background: #fff0d2; color: #77511e; }
.lm-operation-demo__status--ready::before { background: #bd8229; }
.lm-operation-demo__calendar {
  display: flex;
  gap: .22rem;
  min-width: 0;
  margin-top: .48rem;
}
.lm-operation-demo__calendar > * {
  display: grid;
  place-items: center;
  flex: 1 1 0;
  min-width: 0;
  min-height: 2.2rem;
  padding: .25rem;
  border-radius: 5px;
  background: #eff4f5;
  color: #355669;
  font-size: .73rem;
  font-style: normal;
  font-weight: 750;
  line-height: 1.15;
  text-align: center;
}
.lm-operation-demo__calendar > :last-child { background: #c9e9dc; color: #176046; }
.lm-operation-demo[data-lm-demo-kind="scooter"] .lm-operation-demo__calendar > *,
.lm-operation-demo[data-lm-demo-kind="immobiliare"] .lm-operation-demo__calendar > * { background: #c9e9dc; color: #176046; }
.lm-operation-demo__calendar .is-available,
.lm-operation-demo__calendar .is-selected { background: #c9e9dc; color: #176046; }
.lm-operation-demo__calendar .is-unavailable { background: #ffe5dc; color: #8c4434; }
.lm-operation-demo__summary,
.lm-operation-demo .lm-operation-demo__message {
  min-width: 0;
  margin: 0;
  padding: .65rem .75rem;
  border-radius: 8px;
  background: #eff6f8;
  color: #405a6b;
  overflow-wrap: anywhere;
}
.lm-operation-demo__message { border-left: 3px solid #80bfc4; }
.lm-operation-demo__message > span { display: block; margin-bottom: .2rem; color: #17344c; font-weight: 800; }
.lm-operation-demo__action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .55rem .8rem;
  min-width: 0;
  margin-top: .55rem;
  padding-top: .6rem;
  border-top: 1px solid #e6edef;
  color: var(--lm-demo-muted);
  font-size: .82rem;
}
.lm-operation-demo__action-row > * { min-width: 0; }
.lm-operation-demo__button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  max-width: 100%;
  padding: .45rem .8rem;
  border-radius: 8px;
  background: #2456d7;
  color: #fff;
  font-size: .8rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  overflow-wrap: anywhere;
}
.lm-operation-demo__cursor {
  position: absolute;
  z-index: 1;
  right: -.55rem;
  bottom: -.62rem;
  display: block;
  width: auto;
  height: auto;
  color: #0c2844;
  font-size: 1.4rem;
  font-weight: 900;
  line-height: 1;
  text-shadow: 1px 1px 0 #fff, -1px -1px 0 #fff;
  pointer-events: none;
}
.lm-operation-demo .lm-operation-demo__disclaimer {
  margin: .75rem 0 0;
  color: #5a6e7c;
  font-size: .72rem;
  line-height: 1.45;
}
.lm-operation-demo__replay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: .7rem;
  padding: .5rem .85rem;
  border: 1px solid #b2ccd2;
  border-radius: 999px;
  background: #fff;
  color: #155c6d;
  font: inherit;
  font-size: .79rem;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
}
.lm-operation-demo__replay:hover { background: #e9f3f4; }
.lm-operation-demo__replay:focus-visible { outline: 3px solid #18899b; outline-offset: 3px; }

/* JavaScript overlays the five screen slots. The tallest one fixes the
   frame height throughout playback; the static fallback stacks all five. */
.lm-operation-demo.is-enhanced .lm-operation-demo__screens { gap: 0; }
.lm-operation-demo.is-enhanced [data-lm-demo-screen] {
  grid-area: 1 / 1;
  visibility: hidden;
  opacity: 0;
  transform: translateX(12px);
  pointer-events: none;
  transition: opacity .35s ease, transform .35s ease, visibility .35s ease;
}
.lm-operation-demo.is-enhanced [data-lm-demo-screen].is-active {
  visibility: visible;
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.lm-operation-demo.is-enhanced [data-lm-demo-reveal]:not(.is-revealed) {
  visibility: hidden;
  opacity: 0;
  transform: translateY(8px);
}
.lm-operation-demo.is-enhanced [data-lm-demo-reveal] {
  transition: opacity .3s ease, transform .3s ease, visibility .3s ease;
}
.lm-operation-demo.is-enhanced [data-lm-demo-reveal].is-revealed {
  visibility: visible;
  opacity: 1;
  transform: none;
}
.lm-operation-demo.is-authorizing [data-lm-demo-action] {
  background: #173f9f;
  box-shadow: 0 0 0 4px rgba(36, 86, 215, .18);
  transform: scale(.985);
}
.lm-operation-demo [data-lm-demo-action] {
  transition: background-color .22s ease, box-shadow .22s ease, transform .22s ease;
}
.lm-operation-demo.is-playing .is-revealed [data-lm-demo-action] [data-lm-demo-cursor] {
  animation: lm-demo-cursor-approach .45s ease-out both;
}
@keyframes lm-demo-cursor-approach {
  from { opacity: 0; transform: translate(18px, 15px); }
  to { opacity: 1; transform: translate(0, 0); }
}

@media (max-width: 900px) {
  .lm-product-time__inner { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .lm-product-time__copy { max-width: 680px; }
  .lm-product-time__copy h2 { max-width: 25ch; }
  .lm-operation-demo { max-width: 690px; margin-inline: 0; }
}
@media (max-width: 520px) {
  .lm-operation-demo { font-size: .88rem; }
  .lm-operation-demo__frame { border-radius: 15px; }
  .lm-operation-demo__bar { min-height: 47px; padding-inline: .85rem; font-size: .73rem; }
  .lm-operation-demo__body { gap: .6rem; padding: .8rem; }
  .lm-operation-demo__screen { padding: .65rem .72rem; }
  .lm-operation-demo__row { gap: .4rem; }
  .lm-operation-demo__calendar > * { min-height: 2rem; font-size: .68rem; }
}
@media (prefers-reduced-motion: reduce) {
  .lm-operation-demo *, .lm-operation-demo *::before, .lm-operation-demo *::after {
    animation: none !important;
    transition: none !important;
  }
}
