/* Apple-style device presentation — quiet, spacious, one product at a time */

.phone-frame {
  --w: min(280px, 72vw);
  position: relative;
  width: var(--w);
  margin: 0 auto;
  padding: 10px;
  border-radius: calc(var(--w) * 0.175);
  background: #1d1d1f;
  box-shadow:
    0 0 0 0.5px rgba(255, 255, 255, 0.12) inset,
    0 50px 100px -20px rgba(0, 0, 0, 0.35);
}
.phone-frame--sm { --w: min(220px, 56vw); padding: 9px; }
.phone-frame--lg { --w: min(300px, 78vw); }
.phone-frame--xl { --w: min(310px, 80vw); padding: 11px; }

.phone-frame__screen {
  position: relative;
  border-radius: calc(var(--w) * 0.14);
  overflow: hidden;
  background: #000;
  aspect-ratio: 9 / 19.5;
}
.phone-frame__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.phone-frame__btn {
  position: absolute;
  width: 3px;
  background: #2c2c2e;
  border-radius: 1px;
  z-index: 2;
}
.phone-frame__btn--silent { left: -2px; top: 16%; height: 20px; }
.phone-frame__btn--vol-up { left: -2px; top: 26%; height: 40px; }
.phone-frame__btn--vol-down { left: -2px; top: 40%; height: 40px; }
.phone-frame__btn--power { right: -2px; top: 30%; height: 56px; }

.ipad-frame {
  position: relative;
  width: min(720px, 90vw);
  margin: 0 auto;
  padding: 14px;
  border-radius: 24px;
  background: #1d1d1f;
  box-shadow:
    0 0 0 0.5px rgba(255, 255, 255, 0.12) inset,
    0 50px 100px -24px rgba(0, 0, 0, 0.3);
}
.ipad-frame__screen {
  border-radius: 12px;
  overflow: hidden;
  background: #f5f5f7;
  aspect-ratio: 3 / 4;
}
.ipad-frame__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Hero product — single phone, centered */
.hero-product {
  margin: 64px auto 0;
  width: 100%;
  display: flex;
  justify-content: center;
  position: relative;
}
.hero-product::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 6%;
  width: min(420px, 70vw);
  height: 80px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.14), transparent 70%);
  filter: blur(8px);
  pointer-events: none;
  z-index: 0;
}
.hero-product .phone-frame {
  position: relative;
  z-index: 1;
  animation: appleFloat 8s ease-in-out infinite;
}

/* Inside-phone crossfade (very slow, Apple-like) */
.phone-fade {
  position: absolute;
  inset: 0;
}
.phone-fade__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.phone-fade__slide.is-active {
  opacity: 1;
  z-index: 1;
}
.phone-fade__slide img,
.phone-fade__slide picture,
.phone-fade__slide picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.phone-fade__slide picture {
  position: absolute;
  inset: 0;
}

/* Feature bands — one screen, one story */
.feature-band {
  padding: clamp(80px, 12vw, 140px) clamp(20px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.25, 0.1, 0.25, 1), transform 0.9s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.feature-band.is-in {
  opacity: 1;
  transform: none;
}
.feature-band__eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0fbf37;
}
.feature-band h2 {
  margin: 0 0 14px;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: #1d1d1f;
  max-width: 16ch;
}
.feature-band p {
  margin: 0 auto 48px;
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 400;
  line-height: 1.47;
  color: rgba(29, 29, 31, 0.56);
  max-width: 32ch;
}
.feature-band .phone-frame {
  animation: none;
}
.feature-band.is-in .phone-frame {
  animation: appleFloat 9s ease-in-out infinite;
}

.feature-band--muted {
  background: #f5f5f7;
}
.feature-band--muted h2 { color: #1d1d1f; }

/* iPad closer */
.feature-band--ipad .ipad-frame {
  margin-top: 8px;
}
.feature-band--ipad h2 {
  max-width: 18ch;
}

.shot-caption {
  margin-top: 20px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(29, 29, 31, 0.4);
  text-align: center;
}

@keyframes appleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-product .phone-frame,
  .feature-band.is-in .phone-frame {
    animation: none !important;
  }
  .feature-band {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .phone-fade__slide {
    transition: none;
  }
}

/* Compact single product for other pages */
.product-hero-shot {
  display: flex;
  justify-content: center;
  padding: 8px;
}
.product-hero-shot .phone-frame {
  animation: appleFloat 8s ease-in-out infinite;
}

/* Legacy no-ops so old class names don't break layout */
.device-stage,
.showcase,
.shot-row {
  width: 100%;
}
