/* glow.css — Apple-style ambient light (the Apple Music / iPhone pages look):
   a few large, very soft colour fields on black, never a flat gradient band.
   Blue-violet and teal for depth, the money green for warmth, all blurred far
   enough that no edge is ever visible. Shared by / and /ar/.

   Each lit section gets `position:relative; isolation:isolate` and paints its
   light in ::before, BEHIND its content (z-index:-1). overflow-x:clip keeps a
   wide glow from making the page scroll sideways (the page already hides x). */

.glow{position:relative;isolation:isolate;overflow-x:clip}
.glow::before{
  content:"";position:absolute;z-index:-1;pointer-events:none;
  inset:var(--glow-inset,8% -10% 0);
  background:
    radial-gradient(38% 42% at 30% 45%, rgba(80,100,255,.62), transparent 70%),
    radial-gradient(34% 40% at 70% 50%, rgba(48,209,88,.42), transparent 70%),
    radial-gradient(30% 34% at 50% 62%, rgba(20,200,230,.34), transparent 72%),
    radial-gradient(60% 50% at 50% 55%, rgba(34,46,140,.45), transparent 75%);
  filter:blur(70px) saturate(1.2);
  opacity:var(--glow-o,1);
  animation:glow-drift 18s ease-in-out infinite alternate;
}
/* the light moves a little, the way it breathes on Apple's pages */
@keyframes glow-drift{
  from{transform:translate3d(-2%,0,0) scale(1)}
  to{transform:translate3d(2%,-2%,0) scale(1.06)}
}
@media (prefers-reduced-motion:reduce){.glow::before{animation:none}}

/* per section: where the light sits */
#iphone.glow{--glow-inset:12% -18% -4%}
#price.glow{--glow-inset:14% -8% 10%;--glow-o:.85}
#how.glow{--glow-inset:30% -10% 0;--glow-o:.7}

/* The small section labels pick up the same light — green into teal, like the
   coloured eyebrows on apple.com. Solid white stays as the fallback. */
@supports (-webkit-background-clip:text) or (background-clip:text){
  .eyebrow{
    background:linear-gradient(90deg,#30D158 0%,#2DD4BF 55%,#5E8BFF 100%);
    -webkit-background-clip:text;background-clip:text;color:transparent;
  }
  [dir="rtl"] .eyebrow{background:linear-gradient(270deg,#30D158 0%,#2DD4BF 55%,#5E8BFF 100%);-webkit-background-clip:text;background-clip:text}
}
