/* ── Hero stage ─────────────────────────────────────────────
   The panel the hero window (landing-window.css) rises out of, and the
   scenario tabs above it. Split from landing-window.css to keep both files
   under the size ceiling. */

/* The stage: one step off the page in either theme (a shade lighter on dark,
   a shade greyer on light), so the product reads as lifted off the page
   rather than as a new section. A faint hairline grid, a thin
   accent line along the top edge, the window flush with the bottom, and the
   window settling from a slight tilt as it scrolls in (below). Flat colour,
   no gradients beyond the grid's hairlines. */
.lp-stage {
  position: relative;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding: 24px clamp(16px, 4.5vw, 64px) 0;
  border-radius: 28px;
  overflow: hidden;
  perspective: 1800px;
  background-color: var(--lp-stage);
  background-image:
    linear-gradient(var(--lp-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--lp-grid) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center -1px;
  box-shadow: inset 0 0 0 1px var(--lp-hair), inset 0 1px 0 var(--lp-stage-edge);
}

/* A light line along the top edge in the three hues, as flat segments
   (hard stops, no blending). */
.lp-stage::before {
  content: "";
  position: absolute;
  top: 0;
  left: 14%;
  right: 14%;
  height: 1px;
  background: linear-gradient(90deg,
    var(--lp-cyan) 0 33.33%, var(--lp-accent) 33.33% 66.66%, var(--lp-violet) 66.66% 100%);
  opacity: 0.75;
}

/* The settle: the window starts tipped back and lands flat as it scrolls into
   view, the way current product sites reveal the app. Scroll-linked, so it
   never plays on its own; skipped for reduced motion and older browsers. */
.lp-stage .lp-win { transform-origin: 50% 100%; }

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .lp-stage .lp-win {
      animation: lp-win-settle linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 40%;
    }
  }
}

@keyframes lp-win-settle {
  from { transform: rotateX(18deg) scale(0.94); }
  to { transform: none; }
}

.lp-tabs {
  position: relative;
  z-index: 2;
  display: inline-flex;
  gap: 2px;
  max-width: 100%;
  padding: 4px;
  border-radius: var(--r-pill);
  background: var(--lp-panel);
  box-shadow: 0 0 0 1px var(--lp-hair);
  overflow-x: auto;
  scrollbar-width: none;
}

.lp-tabs::-webkit-scrollbar { display: none; }

.lp-tab {
  flex: none;
  padding: 7px 16px;
  border: none;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--subtle);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.lp-tab:hover { color: var(--text); }

.lp-tab.is-active { color: var(--lp-on-accent); background: var(--lp-accent); }

@media (max-width: 600px) {
  .lp-stage { gap: 14px; padding: 12px 10px 0; border-radius: 22px; background-size: 40px 40px; }
  .lp-tab { padding: 6px 13px; font-size: 13px; }
}
