/* GS Connect — mobile hero (phones ≤630px): the four provider cards start as a stacked deck and
   fan out like a hand of cards while the hero scrolls through the viewport. Tapping a card behind
   brings it to the front. Geometry and motion come from hero-mobile.js via CSS custom properties;
   without JS nothing here applies. */
@media (max-width:630px){
  #gs26Stage.hm-ready{
    height:var(--hm-stage-h)!important;
    perspective:1100px;
    perspective-origin:50% 40%;
    touch-action:pan-y;
  }
  #gs26Stage.hm-ready .gs26-phone{
    left:50%!important;
    top:var(--hm-top)!important;
    width:var(--hm-w)!important;
    height:var(--hm-h)!important;
    margin:0 0 0 calc(var(--hm-w) / -2)!important;
    padding:calc(var(--hm-w) * .085) calc(var(--hm-w) * .06) calc(var(--hm-w) * .065)!important;
    border-radius:calc(var(--hm-w) * .155)!important;
    transform:var(--hm-tf,none)!important;
    transform-origin:50% 50%!important;
    z-index:var(--hm-z,1)!important;
    transition:box-shadow .35s ease,translate .28s cubic-bezier(.2,.9,.25,1.15),scale .28s cubic-bezier(.2,.9,.25,1.15)!important;
    will-change:transform;
    backface-visibility:hidden;
    -webkit-tap-highlight-color:transparent;
    box-shadow:0 calc(var(--hm-w) * .12) calc(var(--hm-w) * .22) rgba(0,6,20,.55),0 0 0 1px rgba(255,255,255,.06) inset!important;
  }
  /* Bringing a card to the front: glide between the two fan positions. */
  #gs26Stage.hm-ready.hm-swap .gs26-phone{
    transition:transform .6s cubic-bezier(.22,1,.36,1),box-shadow .35s ease,translate .28s cubic-bezier(.2,.9,.25,1.15),scale .28s cubic-bezier(.2,.9,.25,1.15)!important;
  }

  /* Typography scaled from the desktop card (214px wide) to the mobile card width. */
  #gs26Stage.hm-ready .gs26-phone .gs26-phone-top{font-size:max(9px,calc(var(--hm-w) * .046))!important;margin-bottom:calc(var(--hm-w) * .02)}
  #gs26Stage.hm-ready .gs26-phone .gs26-brand{font-size:calc(var(--hm-w) * .27)!important;min-height:calc(var(--hm-w) * .56)!important;line-height:1!important}
  #gs26Stage.hm-ready .gs26-phone .gs26-brand small{font-size:calc(var(--hm-w) * .102)!important;margin-top:calc(var(--hm-w) * .04)!important}
  #gs26Stage.hm-ready .gs26-phone .gs26-type{font-size:max(11.5px,calc(var(--hm-w) * .064))!important;line-height:1.3!important}
  #gs26Stage.hm-ready .gs26-phone .gs26-promo{margin-top:calc(var(--hm-w) * .07)!important;padding:calc(var(--hm-w) * .055) calc(var(--hm-w) * .035)!important;border-radius:calc(var(--hm-w) * .075)!important;min-height:0!important}
  #gs26Stage.hm-ready .gs26-phone .gs39-label{font-size:max(11px,calc(var(--hm-w) * .058))!important}
  #gs26Stage.hm-ready .gs26-phone .gs39-value{font-size:calc(var(--hm-w) * .122)!important}
  #gs26Stage.hm-ready .gs26-phone .gs26-details{font-size:max(11px,calc(var(--hm-w) * .057))!important;margin-top:calc(var(--hm-w) * .06)!important;line-height:1.35!important}
  #gs26Stage.hm-ready .gs26-phone .gs26-phone-action{font-size:max(11px,calc(var(--hm-w) * .056))!important;min-height:calc(var(--hm-w) * .17)!important;padding:calc(var(--hm-w) * .03) calc(var(--hm-w) * .03)!important;margin-top:auto!important;border-radius:999px!important}

  /* Depth: cards behind the front card are dimmed a little; the front card gets a light sweep. */
  #gs26Stage.hm-ready .gs26-phone::before{
    content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:5;
    background:linear-gradient(180deg,rgba(3,12,28,.05) 0%,rgba(3,12,28,.62) 100%);
    opacity:var(--hm-dim,0);
    transition:opacity .45s ease;
  }
  #gs26Stage.hm-ready .gs26-phone.hm-front::after{
    content:"";position:absolute;top:-30%;bottom:-30%;left:-80%;width:70%;pointer-events:none;z-index:6;
    background:linear-gradient(100deg,transparent 0%,rgba(255,255,255,0) 30%,rgba(255,255,255,.34) 50%,rgba(255,255,255,0) 70%,transparent 100%);
    transform:translateX(var(--hm-glare,0%)) rotate(8deg);
    opacity:var(--hm-glare-o,0);
  }
  #gs26Stage.hm-ready .gs26-glow{
    inset:auto!important;left:50%!important;top:calc(var(--hm-top) + var(--hm-h) * .38)!important;
    width:calc(var(--hm-w) * 2.1)!important;height:calc(var(--hm-h) * 1.05)!important;
    margin:calc(var(--hm-h) * -.525) 0 0 calc(var(--hm-w) * -1.05);
    opacity:calc(.32 + var(--hm-p,0) * .68)!important;
    transform:scale(calc(.72 + var(--hm-p,0) * .4));
    will-change:transform,opacity;
  }

  /* Press / keyboard: lift the card straight up (individual transform properties compose with the
     scroll-driven transform, so the fan pose is kept). */
  #gs26Stage.hm-ready .gs26-phone:active{translate:0 calc(var(--hm-w) * -.045);scale:1.035}
  #gs26Stage.hm-ready .gs26-phone.is-selected,#gs26Stage.hm-ready .gs26-phone:focus-visible{translate:0 calc(var(--hm-w) * -.06);scale:1.03;z-index:9!important}
  #gs26Stage.hm-ready .gs26-phone:focus-visible{outline:3px solid #f5ba60!important;outline-offset:3px}
  /* The lifted card already shows the choice; keep the status text for screen readers only
     (visually it would cover the front card). */
  #gs26Stage.hm-ready .gs26-selected{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;border:0!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important}

  /* First paint: the deck rises in once. */
  #gs26Stage.hm-ready.hm-intro .gs26-phone{animation:hm-rise .9s cubic-bezier(.2,.8,.2,1) both}
  #gs26Stage.hm-ready.hm-intro .gs26-one{animation-delay:.05s}
  #gs26Stage.hm-ready.hm-intro .gs26-telekom{animation-delay:.1s}
  #gs26Stage.hm-ready.hm-intro .gs26-o2{animation-delay:.15s}
  #gs26Stage.hm-ready.hm-intro .gs26-vodafone{animation-delay:.22s}
  @keyframes hm-rise{from{translate:0 calc(var(--hm-w) * .35);opacity:0}to{translate:0 0;opacity:1}}
}
@media (max-width:630px) and (prefers-reduced-motion:reduce){
  #gs26Stage.hm-ready .gs26-phone,#gs26Stage.hm-ready.hm-swap .gs26-phone{transition:none!important;animation:none!important}
  #gs26Stage.hm-ready .gs26-phone::before{transition:none}
  #gs26Stage.hm-ready .gs26-phone.hm-front::after{display:none}
}
