/**
 * Order-live section — ala.menu layout + flow-strip UX (pills, captions, centered stage).
 */

.landing-order-straight.landing-order-live {
  --lm-ost-stage-w: clamp(18rem, 88vw, 22.5rem);
}

@media (min-width: 640px) {
  .landing-order-straight.landing-order-live {
    --lm-ost-stage-w: clamp(19rem, 72vw, 26rem);
  }
}

@media (min-width: 1024px) {
  .landing-order-straight.landing-order-live {
    --lm-ost-stage-w: clamp(22rem, 36vw, 32rem);
  }
}

.lm-ost-inner {
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
}

.lm-ost-head.landing-section-head {
  margin-bottom: clamp(1.35rem, 3.5vw, 2rem);
}

/* —— Layout (mirrors landing-flow-layout) —— */
.lm-ost-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1rem, 2.8vw, 1.45rem);
  max-width: min(100%, calc(var(--lm-ost-stage-w) + 2rem));
  margin-inline: auto;
}

.lm-ost-visual-col {
  order: 0;
  width: 100%;
  min-width: 0;
}

.lm-ost-caption {
  order: 1;
  position: relative;
  display: grid;
  grid-template-areas: 'stack';
  width: 100%;
  max-width: min(100%, 22rem);
  min-height: clamp(5rem, 20vw, 6.5rem);
  margin-inline: auto;
  padding: 0 0.5rem;
  text-align: center;
  overflow: hidden;
}

/* Legacy phase pills — removed from markup */
.lm-ost-phases,
.lm-ost-phase {
  display: none !important;
}

/* —— Captions (flow mobile captions) —— */
.lm-ost-caption__panel {
  grid-area: stack;
  position: relative;
  width: 100%;
  margin: 0;
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transition:
    opacity var(--lm-mock-exit-ms, 340ms) var(--lm-mock-ease-out, cubic-bezier(0.22, 1, 0.36, 1)),
    transform calc(var(--lm-mock-exit-ms, 340ms) + 40ms) var(--lm-mock-ease-pop, cubic-bezier(0.34, 1.25, 0.64, 1));
  pointer-events: none;
}

.lm-ost-caption__panel[hidden] {
  display: none !important;
}

.lm-ost-caption__panel.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  z-index: 1;
}

.lm-ost-caption__panel.is-exiting {
  opacity: 0;
  transform: translateY(-8px) scale(0.99);
  z-index: 0;
}

.lm-ost-caption__panel.is-entering {
  animation: lm-mock-caption-in var(--lm-mock-enter-ms, 460ms) var(--lm-mock-ease-pop, cubic-bezier(0.34, 1.25, 0.64, 1)) forwards;
  z-index: 2;
}

.lm-ost-caption__title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--lm-ala-stone-900, #1c1917);
  text-wrap: balance;
}

.lm-ost-caption__text {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--lm-ala-stone-500, #78716c);
  text-wrap: pretty;
}

/* —— Visual stage —— */
.lm-ost-visual {
  width: 100%;
  max-width: var(--lm-ost-stage-w);
  margin-inline: auto;
}

.lm-ost-orbit {
  position: relative;
  padding:
    clamp(1.5rem, 3.5vw, 2rem)
    clamp(1.25rem, 3vw, 1.75rem)
    clamp(2.35rem, 5vw, 3rem);
}

.lm-ost-orbit::before {
  inset: 6% 2% 4%;
  border-radius: 2var(--radius-tiny);
  background:
    radial-gradient(ellipse 72% 62% at 50% 40%, rgba(15, 165, 107, 0.1), transparent 68%),
    radial-gradient(ellipse 44% 38% at 84% 74%, rgba(254, 243, 199, 0.22), transparent 58%);
}

.landing-order-live.is-immersed .lm-ost-orbit .lm-ost-stage {
  animation: lm-ost-stage-float 4.4s ease-in-out infinite;
}

@keyframes lm-ost-stage-float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(4px, -8px, 0); }
}

.lm-ost-stage {
  width: 100%;
  max-width: var(--lm-ost-stage-w);
  height: clamp(20.5rem, 62vw, 28rem);
  margin-inline: auto;
  padding:
    clamp(1rem, 2.5vw, 1.5rem)
    clamp(1rem, 2.5vw, 1.5rem)
    clamp(1.25rem, 3vw, 1.75rem);
}

@media (min-width: 640px) {
  .lm-ost-stage {
    height: clamp(22rem, 58vw, 30rem);
  }
}

@media (min-width: 1024px) {
  .lm-ost-stage {
    height: clamp(24rem, 34vw, 34rem);
    max-width: var(--lm-ost-stage-w);
    width: var(--lm-ost-stage-w);
  }
}

.lm-ost-stage.is-parallax {
  animation: none;
}

.landing-order-live.is-immersed .lm-ost-stage.is-parallax {
  animation: lm-ost-stage-float 4.4s ease-in-out infinite;
}

/* Dashboard — top-right anchor */
.lm-ost-dash {
  width: 90%;
  max-width: 19.5rem;
}

@media (min-width: 1024px) {
  .lm-ost-dash {
    width: 88%;
    max-width: 22rem;
  }
}

/* Phone — bottom-left, scales with stage */
.lm-ost-phone {
  width: min(100%, 16rem);
  height: 14.5rem;
  transform: scale(0.68);
}

@media (min-width: 640px) {
  .lm-ost-phone {
    width: min(100%, 17rem);
    height: 16rem;
    transform: scale(0.76);
  }
}

@media (min-width: 1024px) {
  .lm-ost-phone {
    width: 17.5rem;
    height: 25.625rem;
    transform: scale(1);
  }
}

/* CTA — single centered row */
.lm-ost-cta-row {
  margin-top: clamp(1.35rem, 3.5vw, 2rem);
  text-align: center;
}

.lm-ost-cta-row .landing-btn {
  min-width: min(100%, 14rem);
}

/* Legacy split layout — retired */
.lm-ost-grid,
.lm-ost-copy,
.lm-ost-cta--desktop,
.lm-ost-cta--mobile {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .landing-order-live.is-immersed .lm-ost-orbit .lm-ost-stage,
  .landing-order-live.is-immersed .lm-ost-stage.is-parallax {
    animation: none !important;
  }

  .lm-ost-caption__panel.is-entering {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
