/* ═══════════════════════════════════════════════════════════════════════════
   APP SECTION · PHONE SIDE, transplanted 1:1 from the live site
   (sites/landing-premium/styles.css, the .app-showcase rules) at the owner's request.

   Rule values are copied verbatim. The only changes:
   - every selector is scoped under .lx so nothing collides with v2's styles;
   - the old tokens it used (--glass-*) are re-declared on .lx;
   - .app-showcase::before (the faint "WASH ME" watermark) is re-pointed at the v2
     section (.app.lx), since this file owns only the phone side.
   This section deliberately keeps the old motion (infinite pill float, the pulsing
   halo, and slides that scale as they fade). Fidelity beats the page-wide perf
   rules here by owner decision. Reduced motion is still honoured (bottom of file).
   ═══════════════════════════════════════════════════════════════════════════ */

.lx {
  --glass-border: rgba(255, 255, 255, 0.27);
  --glass-bg-gradient: linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(5, 13, 18, 0.25));
  --glass-blur: blur(24px) saturate(180%);
}

/* Old: .app-showcase::before (watermark) and .app-beat (pulsing cyan halo). */
.app.lx::before { content: "WASH ME"; position: absolute; z-index: -1; inset: auto auto -9vw -2vw; color: rgba(255,255,255,.022); font-family: Inter, "Helvetica Neue", Arial, sans-serif; font-weight: 800; font-size: 22vw; line-height: 1; letter-spacing: -.08em; white-space: nowrap; pointer-events: none; }
.lx .app-beat { position: absolute; z-index: 0; top: 50%; right: 3%; width: min(610px, 48vw); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(12,199,225,.2) 0%, rgba(12,199,225,.09) 30%, rgba(12,199,225,.025) 52%, transparent 72%); filter: blur(28px); transform: translateY(-50%); animation: lx-app-pulse 4.6s ease-in-out infinite; pointer-events: none; }
@keyframes lx-app-pulse {
  0%, 100% { opacity: .34; transform: translateY(-50%) scale(.92); }
  50% { opacity: .68; transform: translateY(-50%) scale(1.04); }
}
.lx .app-grid { position: relative; z-index: 1; }
/* Old: .app-showcase { min-height: 900px } (auto at ≤520px). It sets where the
   watermark sits at the bottom of the section. */
.app.lx { min-height: 900px; }

/* Old: .phone-stage … .slide-dots, verbatim. */
.lx .phone-stage { position: relative; display: grid; place-items: center; min-height: 650px; }
.lx .phone-halo { display: none; }
.lx .phone { position: relative; z-index: 2; width: 300px; height: 618px; padding: 10px; border: 1px solid rgba(255,255,255,.7); border-radius: 48px; background: #071017; box-shadow: 0 38px 100px rgba(0,0,0,.44), inset 0 0 0 3px rgba(255,255,255,.1); transform: rotate(3deg); }
.lx .phone-speaker { position: absolute; z-index: 4; top: 18px; left: 50%; width: 74px; height: 22px; border-radius: 16px; background: #030506; transform: translateX(-50%); }
.lx .phone-screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 39px; background: #111; }
.lx .phone-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.03); transition: opacity .7s ease, transform 1s ease; }
.lx .phone-screen img.active { opacity: 1; transform: scale(1); }
.lx .app-pill { position: absolute; z-index: 4; isolation: isolate; overflow: hidden; display: flex; align-items: center; gap: 11px; padding: 12px 16px; border: 1px solid var(--glass-border); border-radius: 18px; background: var(--glass-bg-gradient); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); box-shadow: 0 22px 55px rgba(0,0,0,.25); }
.lx .app-pill img, .lx .app-pill i { width: 38px; height: 38px; border-radius: 10px; }
.lx .app-pill i { display: grid; place-items: center; background: var(--cyan); color: #08232b; font-style: normal; }
.lx .app-pill span { display: grid; gap: 3px; }
.lx .app-pill strong { font-size: 12px; }
.lx .app-pill small { color: rgba(255,255,255,.65); font-size: 9px; }
.lx .app-pill-top { top: 100px; right: 7%; animation: lx-float 4s ease-in-out infinite; }
.lx .app-pill-bottom { bottom: 112px; left: 2%; animation: lx-float 4s 1s ease-in-out infinite; }
@keyframes lx-float { 50% { transform: translateY(-10px); } }
.lx .slide-dots { position: absolute; z-index: 5; bottom: 34px; display: flex; gap: 1px; rotate: 3deg; transform-origin: center; }
.lx .slide-dots button { position: relative; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.lx .slide-dots button::after { content: ""; position: absolute; top: 50%; left: 50%; width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.35); transform: translate(-50%, -50%); transition: width .2s, border-radius .2s, background .2s; }
.lx .slide-dots button.active::after { width: 22px; border-radius: 5px; background: white; }

/* Old reveal on the phone stage (.reveal → .visible). The hidden state is gated on
   html.js, and home.js's failsafe removes .js if the script never runs. */
.lx .reveal { transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.js .lx .reveal { opacity: 0; transform: translateY(28px); }
.js .lx .reveal.visible { opacity: 1; transform: none; }

/* Old ≤900px block (app-showcase parts). */
@media (max-width: 900px) {
  .lx .phone-stage { min-height: 650px; }
  .lx .app-pill-top { right: 0; }
  .lx .app-pill-bottom { left: 0; }
}

/* Old ≤520px block (app-showcase parts). */
@media (max-width: 520px) {
  .app.lx { min-height: auto; }
  .lx .phone { width: 254px; height: 524px; border-radius: 41px; }
  .lx .phone-screen { border-radius: 32px; }
  .lx .phone-stage { min-height: 550px; }
  .lx .app-beat { right: -42%; width: 125vw; }
  .lx .app-pill { scale: .82; }
  .lx .app-pill-top { right: 4px; top: 92px; transform-origin: right center; }
  .lx .app-pill-bottom { left: 4px; bottom: 84px; transform-origin: left center; }
}

/* Allowed deviation: reduced-motion users get the static first slide, no float,
   no pulse, no reveal. */
@media (prefers-reduced-motion: reduce) {
  .lx .app-beat, .lx .app-pill-top, .lx .app-pill-bottom { animation: none; }
  .js .lx .reveal { opacity: 1; transform: none; }
}
@media print { .js .lx .reveal { opacity: 1; transform: none; } }
