/* ios27.css (2026-11-15) — the Apple Music / iOS 27 pass, shared by / and /ar/.
   Loaded LAST, so it only refines what the page already draws:
   1. Apple Music light: deep navy washed into black, with soft violet, blue,
      teal and green blooms (never a flat band) — behind the hero, the phones
      and every section head.
   2. Liquid Glass: the top bar and the bottom tab bar float as frosted glass
      capsules; cards are glass tiles with a lit top edge.
   3. A truer iPhone 17 Pro: titanium band with highlights, glass reflection,
      and a coloured glow underneath, like the Apple Music hero. */

/* ---------------------------------------------------------------- 1. light */
/* no glow may widen the page (a wider layout viewport pushes the fixed tab bar off-screen on phones) */
html,body{overflow-x:clip}
.hero,.band,section{overflow-x:clip}
.hero{
  background:
    radial-gradient(90% 55% at 50% -8%, rgba(46,58,170,.55), transparent 70%),
    radial-gradient(60% 40% at 15% 30%, rgba(120,80,255,.20), transparent 70%),
    radial-gradient(55% 40% at 88% 40%, rgba(48,209,88,.14), transparent 70%),
    #000;
}
/* behind every section head, a small soft bloom (Apple Music tiles) */
.head{position:relative;isolation:isolate}
.head::after{
  content:"";position:absolute;z-index:-1;pointer-events:none;
  inset:-30% 0 -10%;
  background:
    radial-gradient(40% 55% at 30% 50%, rgba(94,110,255,.22), transparent 70%),
    radial-gradient(35% 50% at 72% 55%, rgba(45,212,191,.14), transparent 70%);
  filter:blur(40px);
}
.band{
  background:
    radial-gradient(70% 40% at 50% 0%, rgba(40,52,150,.28), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,.05), transparent 45%);
}

/* the hero phone stands in light: violet/blue fringe left, green right,
   blurred like the Apple Music equaliser glow */
.phone-shot{position:relative;isolation:isolate}
.phone-shot::before{
  content:"";position:absolute;z-index:-1;pointer-events:none;
  left:50%;top:18%;width:min(150%,560px,100vw);height:70%;transform:translateX(-50%);
  background:
    radial-gradient(32% 45% at 30% 50%, rgba(98,92,255,.75), transparent 70%),
    radial-gradient(28% 40% at 70% 52%, rgba(48,209,88,.55), transparent 70%),
    radial-gradient(30% 35% at 50% 70%, rgba(20,200,230,.45), transparent 72%);
  filter:blur(48px) saturate(1.3);
  animation:glow-drift 16s ease-in-out infinite alternate;
}

/* --------------------------------------------------------- 2. liquid glass */
@media (max-width:820px){
  /* the top bar floats as a glass capsule */
  header{
    top:8px;margin:8px 10px 0;border-radius:24px;border:0;
    background:rgba(28,28,34,.55);
    -webkit-backdrop-filter:blur(24px) saturate(1.8);backdrop-filter:blur(24px) saturate(1.8);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.16),inset 0 0 0 1px rgba(255,255,255,.07),0 10px 30px -12px rgba(0,0,0,.8);
  }
  header nav{padding-inline:.35rem}
  /* the tab bar floats too, like iOS 27 */
  .botnav{
    inset-inline:10px;bottom:calc(8px + env(safe-area-inset-bottom));
    padding:.42rem .3rem;border-radius:30px;
    background:rgba(28,28,34,.55);
    -webkit-backdrop-filter:blur(26px) saturate(1.8);backdrop-filter:blur(26px) saturate(1.8);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.18),inset 0 0 0 1px rgba(255,255,255,.08),0 14px 34px -10px rgba(0,0,0,.85);
  }
  .botnav::before{inset-inline:18%;border-radius:1px}
  .botnav a{border-radius:22px}
  .botnav a:active{background:rgba(255,255,255,.10)}
  body{padding-bottom:90px}
}

/* glass tiles */
.card,.step,.who,.clipbox{
  border-radius:24px;
  border:1px solid rgba(255,255,255,.10);
  background:linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.02));
  -webkit-backdrop-filter:blur(18px) saturate(1.5);backdrop-filter:blur(18px) saturate(1.5);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12), 0 20px 40px -28px rgba(0,0,0,.9);
}
.card:hover{border-color:rgba(255,255,255,.28)}

/* buttons: the main one keeps its gold, gets a glass top light */
.btn-gold{box-shadow:inset 0 1px 0 rgba(255,255,255,.55), 0 10px 30px -10px rgba(48,209,88,.55)}

/* ------------------------------------------------------------- 3. iPhone */
.device{
  background:
    linear-gradient(145deg,#b4b5bb 0%,#6b6c73 8%,#2e2f35 26%,#1c1d22 50%,#2e2f35 74%,#7a7b82 92%,#c3c4ca 100%);
  box-shadow:
    inset 0 0 0 .5px rgba(255,255,255,.35),
    0 0 0 1px rgba(0,0,0,.65),
    0 50px 100px -40px rgba(0,0,0,.95),
    0 40px 90px -45px rgba(98,92,255,.45),
    0 30px 80px -50px rgba(48,209,88,.35);
}
.device::before,.device::after{background:linear-gradient(90deg,#3a3b40,#8d8e95 60%,#4a4b50)}
.device::before{box-shadow:0 70px 0 #6d6e75}
/* glass reflection over the screen */
.device .pdeck{position:relative}
.device .pdeck::after,.iph .device .screen::after{
  content:"";position:absolute;inset:0;z-index:4;pointer-events:none;border-radius:inherit;
  background:linear-gradient(118deg, rgba(255,255,255,.10) 0%, rgba(255,255,255,.03) 26%, transparent 40%);
}
.iph .device .screen{position:relative}
.iph .device .screen::after{content:"";top:0;left:0;right:0;width:auto;height:auto;border:0;padding:0}

/* iPhone row on phones: the phone in the middle is the one in focus (full size,
   lit); its neighbours step back — smaller and dimmed — like Apple's carousels.
   slides.js already marks the centred slide with .on. */
@media (max-width:900px){
  .iph-row .iph{transition:transform .45s cubic-bezier(.2,.8,.2,1),opacity .45s ease;transform:scale(.86);opacity:.4}
  .iph-row .iph.on{transform:none;opacity:1}
  .iph-row .iph figcaption{transition:opacity .3s ease;opacity:0}
  .iph-row .iph.on figcaption{opacity:1}
}
@media (max-width:900px) and (prefers-reduced-motion:reduce){ .iph-row .iph{transition:none} }

/* Buttons on a laptop: one size everywhere (they were 45, 50 and 58 px tall),
   like apple.com — 17 px semibold, ~46 px pill, snug sides. The small
   "Get started" in the top bar keeps its own compact size. */
.btn{min-height:46px;padding:.7rem 1.45rem;gap:.5rem;font-size:1.0625rem;font-weight:600;letter-spacing:-.015em;line-height:1.2;box-sizing:border-box}
.btn svg{width:18px;height:18px}
nav .btn{min-height:0}
.cta .btn{align-self:center}   /* the CTA row was stretching the button to the App Store badge's height */

/* Buttons on phones, sized like Apple's own (apple.com / iOS): a 44 pt touch
   target, 17 pt text, snug padding — not a fat slab. */
@media (max-width:820px){
  .btn{min-height:44px;padding:.62rem 1.25rem;gap:.45rem;font-size:1.0625rem;font-weight:600;letter-spacing:-.015em;line-height:1.2}
  .btn svg{width:17px;height:17px}
  .hero .cta .btn-gold{width:auto;max-width:none;padding-inline:1.5rem}
}
