/* Real Oyster screens. Frames preserve the full landscape interface. */
[hidden] { display: none !important; }
.hero__app-preview {
  position: relative;
  width: 100%;
  max-width: 560px;
  padding: 18px 0 0;
  margin: 0 auto;
  isolation: isolate;
}
.hero__app-preview::before {
  content: "";
  position: absolute;
  inset: -20% -10%;
  background: radial-gradient(ellipse, rgba(130, 105, 255, .3), transparent 65%);
  z-index: -1;
}
.hero__app-link { display: block; color: #fff; }
.hero__app-link:hover { color: var(--star-gold); }
/* Landscape iPhone: titanium rim, side buttons, Dynamic Island and home indicator. */
.app-device {
  position: relative;
  isolation: isolate;
  margin: 0;
  padding: 1.5%;
  border: 2px solid #8e9095;
  border-radius: 8% / 17%;
  background: #050506;
  box-shadow: 0 25px 65px rgba(8, 12, 34, .3),
    0 0 0 1px #36363b, inset 0 0 0 2px #333338,
    inset 0 1px 2px 3px rgba(255, 255, 255, .22);
}
.app-device::before {
  content: "";
  position: absolute;
  z-index: 2;
  width: 2.8%;
  height: 27%;
  border-radius: 999px;
  left: 2.4%;
  top: 36.5%;
  background: radial-gradient(circle at 50% 15%, #101a2d 0 5%, #050506 8% 100%);
  box-shadow: 0 0 0 1px rgba(255,255,255,.05);
  pointer-events: none;
}
.app-device::after {
  content: "";
  position: absolute;
  z-index: 2;
  width: 25%;
  height: 1.2%;
  left: 37.5%;
  bottom: 5%;
  border-radius: 999px;
  background: #fff;
  mix-blend-mode: difference;
  pointer-events: none;
}
.app-device__buttons {
  position: absolute;
  top: -4px;
  left: 19%;
  width: 9%;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(#b8b8bd, #64646c);
  pointer-events: none;
}
.app-device__buttons::before,
.app-device__buttons::after {
  content: "";
  position: absolute;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: inherit;
}
.app-device__buttons::before { width: 100%; left: 125%; }
.app-device__buttons::after { width: 35%; left: -75%; }
.app-device img,
.app-device .app-film__video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2532 / 1170;
  border: 0;
  border-radius: 6.5% / 14%;
}
/* These recordings already include the iPhone's Dynamic Island. */
.app-device--video::before,
.app-device--video::after { display: none; }
.hero__app-main { transform: rotate(-4deg); }
.hero__app-detail {
  width: 76%;
  margin: -12px 0 0 auto;
  transform: rotate(5deg);
}
.hero__app-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 25px;
  font-size: .95rem;
  font-weight: 800;
}
.hero__app-caption span:last-child { font-size: 1.25rem; }
.app-showcase { background: #fff; scroll-margin-top: 96px; }
.app-showcase .section-head { max-width: 740px; }
.app-gallery__controls {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}
.app-gallery__button {
  border: 1px solid var(--line);
  border-radius: 999px;
  min-height: 48px;
  padding: 11px 20px;
  background: var(--cloud-soft);
  color: var(--ink-soft);
  font: 800 .95rem var(--font-body);
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.app-gallery__button:hover { border-color: var(--oyster-orange); color: var(--ink); }
.app-gallery__button[aria-pressed="true"] {
  background: var(--space-navy);
  border-color: var(--space-navy);
  color: #fff;
}
.app-gallery__stage {
  padding: clamp(18px, 5vw, 54px);
  border-radius: var(--radius-lg);
  background: radial-gradient(ellipse at 50% 30%, #493c78, transparent 70%), var(--grad-space);
  overflow: hidden;
}
.app-gallery__screen { margin: 0; }
.app-gallery__screen + .app-gallery__screen { margin-top: 32px; }
.app-gallery.is-enhanced .app-gallery__screen { margin-top: 0; }
.app-gallery__screen .app-device { max-width: 950px; margin: 0 auto; }
.app-gallery__screen figcaption {
  color: rgba(255,255,255,.85);
  max-width: 720px;
  text-align: center;
  margin: 24px auto 0;
  font-size: 1rem;
}
.app-gallery__screen figcaption strong { color: #fff; }
.app-gallery__status { text-align: center; margin: 14px 0 0; font-size: .9rem; }
.app-film {
  display: grid;
  align-items: center;
  gap: 28px;
  margin-top: 64px;
}
.app-film__copy h3 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.app-film__copy .eyebrow { margin-bottom: 16px; }
.app-film__cta { margin-top: 28px; text-align: center; }
.app-film__cta .btn { white-space: normal; }
.app-film__player { min-width: 0; margin: 0; }
.app-film__video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 50 / 23;
  background: #111422;
  border: 0;
}
.app-film__player figcaption { margin-top: 12px; color: var(--ink-soft); font-size: .85rem; }
.app-film__transcript { margin-top: 12px; color: var(--ink-soft); font-size: .9rem; }
.app-film__transcript summary { cursor: pointer; font-weight: 800; }
.app-film__transcript p { margin: 10px 0 0; }
@media (min-width: 861px) {
  .hero__app-preview { padding-top: 20px; }
  .app-film { grid-template-columns: minmax(0, .85fr) minmax(0, 1.4fr); gap: 48px; }
}
@media (max-width: 479px) {
  .hero__app-preview { max-width: 380px; }
  .app-device { border-width: 1px; }
  .app-device__buttons { top: -3px; height: 2px; }
  .app-device__buttons::before,
  .app-device__buttons::after { height: 2px; }
  .app-gallery__controls { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .app-gallery__button { padding: 10px; font-size: .85rem; }
  .app-gallery__stage { padding: 22px 10px; border-radius: 20px; }
  .app-gallery__screen figcaption { font-size: .9rem; margin-top: 18px; }
  .app-film { margin-top: 44px; }
}

/* Reuse the original hero's floating planet and orbit in the method section. */
.method-section { overflow: hidden; scroll-margin-top: 76px; }
.method-intro {
  display: grid;
  align-items: center;
  gap: 24px;
  margin-bottom: 44px;
}
.method-intro .section-head { margin: 0 auto; }
.method-intro .method-intro__visual {
  width: 100%;
  max-width: 300px;
  min-height: 0;
  aspect-ratio: 1;
  margin: 0 auto;
}
.method-intro__visual .hero__planet { width: 62%; }
.method-intro__visual .hero__orbit { width: 86%; }
.method-intro__visual .hero__chip--a { top: 8%; left: 5%; }
.method-intro__visual .hero__chip--b { bottom: 8%; left: 7%; }
.method-intro__visual .hero__chip--c { top: 24%; right: 3%; }
@media (min-width: 861px) {
  .method-intro { grid-template-columns: 1.15fr 1fr; gap: 48px; margin-bottom: 56px; }
  .method-intro .section-head { text-align: left; }
  .method-intro .method-intro__visual { max-width: 420px; }
}
