/* App screens gallery — switchable bubbles */

.slide.cine.apps { overflow: hidden; }

.apps-layout {
  position: relative;
  z-index: 2;
  height: 100%;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: var(--content-top) var(--pad) calc(28px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 14px;
  min-height: 0;
}

.apps-head .kicker {
  margin: 0 0 6px;
}
.apps-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: -.03em;
  line-height: 1.1;
}
.apps-head .lede {
  margin: 8px 0 0;
  max-width: 54ch;
  color: rgba(255,255,255,.72);
  font-size: 15px;
  line-height: 1.45;
}

.apps-bubbles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.app-bubble {
  appearance: none;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.32);
  color: rgba(255,255,255,.82);
  font: inherit;
  font-size: 12.5px;
  font-weight: 750;
  padding: 9px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.app-bubble:hover {
  border-color: rgba(255,255,255,.32);
  transform: translateY(-1px);
}
.app-bubble.is-on {
  background: #1f6a3a;
  border-color: rgba(125,206,160,.55);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(47,138,78,.35), 0 8px 22px rgba(0,0,0,.28);
}
.app-bubble.ai {
  border-color: rgba(240,195,93,.55);
  background:
    linear-gradient(rgba(0,0,0,.35), rgba(0,0,0,.35)),
    linear-gradient(125deg, rgba(240,195,93,.18), rgba(47,138,78,.12));
  color: #fff1c2;
}
.app-bubble.ai.is-on {
  background: linear-gradient(125deg, #fff1c2 0%, #e8a23a 55%, #c96f12);
  color: #1a1408;
  border-color: rgba(240,195,93,.8);
  box-shadow: 0 0 24px rgba(232,162,58,.35);
}
.app-bubble .spark {
  display: inline-block;
  margin-right: 4px;
  font-size: 11px;
  line-height: 1;
}

.apps-stage {
  min-height: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 12px;
}

.apps-shot {
  margin: 0;
  min-height: 0;
  height: 100%;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 28px 60px rgba(0,0,0,.42);
  background: #0a1a12;
  position: relative;
}
.apps-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: opacity .28s ease, transform .45s cubic-bezier(.16,1,.3,1);
}
.apps-shot.is-swap img {
  opacity: 0;
  transform: translateY(18px) scale(.985);
}

.apps-cap {
  display: grid;
  gap: 2px;
  padding-left: 2px;
}
.apps-cap strong {
  font-family: var(--display);
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: -.03em;
}
.apps-cap span {
  color: rgba(255,255,255,.62);
  font-size: 14px;
  font-weight: 650;
}

@media (max-width: 900px) {
  .apps-layout {
    height: auto;
    min-height: 100%;
    overflow: auto;
    gap: 12px;
  }
  .apps-bubbles {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .apps-bubbles::-webkit-scrollbar { display: none; }
  .apps-stage {
    min-height: 52vh;
  }
  .apps-shot {
    min-height: 48vh;
  }
}
