/* LumaGlow setup page (/support/lumaglow-setup): three steps beside real app screens,
   on the storefront theme. Phone frames follow the App Store picture renderer
   (titanium rim, thin black bezel, Dynamic Island) around
   real iPhone captures. */

body[data-site-page="lumaglow-setup"] .lg-setup-main {
  position: relative;
  overflow: hidden;
}

.lg-setup {
  position: relative;
  padding: clamp(32px, 5vw, 64px) 0 clamp(56px, 7vw, 96px);
}

.lg-setup::before {
  content: "";
  position: absolute;
  inset: -10% -10% auto 35%;
  height: 90%;
  background: radial-gradient(ellipse at 60% 45%, rgba(150, 94, 250, 0.22), transparent 62%);
  pointer-events: none;
}

.lg-setup-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
}

.lg-setup .seo-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
  color: rgba(232, 227, 247, 0.56);
  font-size: 0.86rem;
}

.lg-setup .seo-breadcrumbs a {
  color: rgba(255, 255, 255, 0.78);
}

.lg-setup-eyebrow {
  margin: 0 0 0.6rem;
  color: var(--i3-violet-200);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lg-setup-copy h1 {
  margin: 0;
  color: #fff;
  font-family: var(--i3-font);
  font-size: clamp(2.2rem, 3.7vw, 3.15rem);
  font-weight: 850;
  line-height: 1;
  letter-spacing: -0.01em;
}

.lg-setup-lead {
  margin: 0.8rem 0 0;
  color: var(--i3-grey-300);
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  line-height: 1.55;
}

.lg-setup-list {
  display: grid;
  gap: 0;
  margin: clamp(22px, 3vw, 32px) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--i3-line-dark);
}

.lg-setup-step {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--i3-line-dark);
}

.lg-setup-num {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--i3-radius-pill);
  background: var(--i3-gradient-cta);
  color: var(--i3-ink);
  font-weight: 900;
}

.lg-setup-step h2 {
  margin: 0.35rem 0 0;
  color: #fff;
  font-family: var(--i3-font);
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  font-weight: 800;
  line-height: 1.2;
}

.lg-setup-step h2 em {
  font-style: normal;
  color: var(--i3-violet-200);
}

.lg-setup-step p {
  margin: 0.35rem 0 0;
  color: var(--i3-grey-300);
  font-size: 0.98rem;
  line-height: 1.5;
}

.lg-setup-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 0.8rem;
}

.lg-setup-badge {
  display: inline-flex;
  line-height: 0;
  border-radius: 9px;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.lg-setup-badge img {
  width: auto;
  height: 44px;
}

.lg-setup-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(150, 94, 250, 0.3);
}

.lg-setup-badge:focus-visible {
  outline: 2px solid var(--i3-violet-200);
  outline-offset: 3px;
}

.lg-setup-code {
  display: block;
  width: min(100%, 230px);
  height: auto;
  margin-top: 0.8rem;
  border-radius: 14px;
  box-shadow: 0 0 0 1px var(--i3-line-dark);
}

.lg-setup-help {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--i3-grey-400);
  font-size: 0.9rem;
  line-height: 1.6;
}

.lg-setup-help a {
  color: var(--i3-violet-200);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Stage: two real phones, the second one lower and overlapping. */
.lg-setup-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 0;
}

.lg-phone {
  --sw: clamp(150px, 17vw, 240px);
  position: relative;
  margin: 0;
  flex: 0 0 auto;
}

.lg-phone--second {
  margin: clamp(40px, 5vw, 72px) 0 0 calc(var(--sw) * -0.08);
  z-index: 1;
}

.lg-phone-body {
  position: relative;
  width: var(--sw);
  padding: calc(var(--sw) * 0.041);
  border-radius: calc(var(--sw) * 0.169);
  background: linear-gradient(135deg, #3b3a44, #8d8a99 14%, #4a4856 32%, #19181f 52%, #5d5a6a 74%, #a9a5b6 88%, #3a3844);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    inset 0 1px 1px rgba(255, 255, 255, 0.28),
    0 calc(var(--sw) * 0.06) calc(var(--sw) * 0.16) rgba(0, 0, 0, 0.6),
    0 0 calc(var(--sw) * 0.22) rgba(154, 102, 255, 0.18);
}

/* Side buttons: power on the right, volume on the left. */
.lg-phone-body::after {
  content: "";
  position: absolute;
  right: calc(var(--sw) * -0.012);
  top: 22%;
  width: calc(var(--sw) * 0.014);
  height: 11%;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(90deg, #4a4856, #9a97a7 60%, #5d5a6a);
}

.lg-phone::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: calc(var(--sw) * -0.012);
  top: 14%;
  width: calc(var(--sw) * 0.014);
  height: 17%;
  border-radius: 3px 0 0 3px;
  background: linear-gradient(90deg, #5d5a6a, #9a97a7 40%, #4a4856);
}

.lg-phone-body::before {
  content: "";
  position: absolute;
  inset: calc(var(--sw) * 0.011);
  border-radius: calc(var(--sw) * 0.158);
  background: #040306;
}

.lg-phone-screen {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--sw) * 0.128);
}

.lg-phone-screen img {
  display: block;
  width: 100%;
  height: auto;
}

/* Dynamic Island, as in the App Store pictures. */
.lg-phone-island {
  position: absolute;
  left: 50%;
  top: calc(var(--sw) * 0.026);
  width: calc(var(--sw) * 0.285);
  height: calc(var(--sw) * 0.084);
  margin-left: calc(var(--sw) * -0.1425);
  border-radius: 999px;
  background: #000;
}

/* Tap marker: a glowing outline around the real button in the capture. */
.lg-setup-tap {
  position: absolute;
  left: var(--tap-x);
  top: var(--tap-y);
  width: var(--tap-w);
  height: var(--tap-h);
  border: 2px solid #fff;
  border-radius: var(--tap-r, 999px);
  box-shadow: 0 0 0 3px rgba(150, 94, 250, 0.75), 0 0 14px 2px rgba(171, 127, 251, 0.45);
  animation: lg-setup-tap 1.6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes lg-setup-tap {
  0%, 100% { box-shadow: 0 0 0 3px rgba(150, 94, 250, 0.75), 0 0 14px 2px rgba(171, 127, 251, 0.45); }
  50% { box-shadow: 0 0 0 6px rgba(150, 94, 250, 0.5), 0 0 26px 8px rgba(171, 127, 251, 0.6); }
}

@media (prefers-reduced-motion: reduce) {
  .lg-setup-tap {
    animation: none;
  }
}

.lg-phone figcaption {
  margin-top: 14px;
  color: var(--i3-grey-300);
  font-size: 0.9rem;
  text-align: center;
}

.lg-phone figcaption span {
  color: var(--i3-grey-400);
}

.lg-phone figcaption strong {
  color: #fff;
}

@media (max-width: 900px) {
  .lg-setup-grid {
    grid-template-columns: 1fr;
  }

  .lg-setup-stage {
    gap: 5vw;
  }

  .lg-phone {
    --sw: min(41vw, 230px);
  }

  .lg-phone--second {
    margin: 28px 0 0;
  }

  .lg-phone figcaption {
    font-size: 0.82rem;
  }
}
