/* iphone.css — the "On your iPhone" section and the App Store badge.
   Shared by the English (/) and Arabic (/ar/) landing pages, so the two can
   not drift apart. It builds on the page's own `.device` phone (index.html),
   only re-sizing it: these screenshots are full-screen, status bar included,
   so the screen has no empty strip above the app and the island sits over
   the status bar exactly where it does on the real phone (iPhone 17: island
   11pt from the top, 126 x 37pt, on a 402pt-wide screen). */

/* ---------------------------------------------------------- badge */
.appstore-cta{position:relative;display:inline-flex;flex-direction:column;align-items:center;vertical-align:middle}
.appstore{display:block;line-height:0;border-radius:10px;transition:transform .16s ease,filter .16s ease}
.appstore:hover{transform:translateY(-1px);filter:brightness(1.15)}
.appstore:focus-visible{outline:2px solid #fff;outline-offset:3px}
.appstore img{height:var(--badge-h,58px);width:auto;margin:0}
/* under the badge, out of the flow so the CTA row keeps the height of its
   buttons; hidden as soon as app-store.js has a real link */
.appstore-soon{position:absolute;top:100%;inset-inline:0;margin-top:5px;text-align:center;white-space:nowrap;
  font-size:.72rem;font-weight:600;letter-spacing:.04em;color:var(--mist)}
.app-live .appstore-soon{display:none}
/* room for that note before whatever follows the CTA row (padding, not margin:
   a margin on the badge would stretch the row's buttons with it) */
.cta:has(>.appstore-cta){padding-bottom:1.1rem}
.app-live .cta:has(>.appstore-cta){padding-bottom:0}

/* the pricing row: the page's `.setup` box with a badge at the end */
.setup.app-row{align-items:center;flex-wrap:wrap}
.setup.app-row>div{flex:1 1 260px}
.setup.app-row .appstore-cta{--badge-h:44px;margin-bottom:1rem}
.setup.app-row .appstore img{width:auto;height:var(--badge-h)}

/* -------------------------------------------------------- section */
.iph-sec .head{text-align:center;margin-inline:auto}
.iph-sec .head .lede{margin-inline:auto}
.iph-sec .head .appstore-cta{margin-top:1.1rem;--badge-h:52px}

.iph-row{display:flex;justify-content:center;align-items:flex-start;padding:.5rem 0 1rem}
.iph{margin:0;width:clamp(200px,20vw,262px);container-type:inline-size;position:relative;flex:none}
/* a little overlap and a gentle stagger, the middle pair in front */
.iph+.iph{margin-inline-start:-12px}
.iph:nth-child(2),.iph:nth-child(3){z-index:2}
.iph:nth-child(even){margin-top:64px}

.iph .device{
  width:100%;padding:3.1cqi;border-radius:15.5cqi;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.16),
    0 0 0 1px rgba(0,0,0,.7),
    0 40px 80px -30px rgba(0,0,0,.95),
    0 18px 50px -24px rgba(255,255,255,.14);
}
.iph .device .screen{padding-top:0;background:#000;border-radius:12.4cqi}
.iph .device .screen::before,.iph .device .screen::after{content:none}   /* the hero phone's drawn status bar; these screenshots have their own */
.iph .device .island{top:2.6cqi;width:31%;height:8.6cqi;border-radius:99px}
.iph img{display:block;width:100%;height:auto;aspect-ratio:600/1304}
.iph figcaption{margin-top:1.1rem;text-align:center;font-weight:600;font-size:.98rem;color:#fff;letter-spacing:-.01em}
.iph figcaption span{display:block;margin-top:.15rem;font-weight:400;font-size:.86rem;color:var(--mist)}

/* phone width: one row that scrolls and snaps, a phone at a time */
@media (max-width:900px){
  .iph-row{justify-content:flex-start;gap:18px;overflow-x:auto;scroll-snap-type:x mandatory;
    margin-inline:calc(50% - 50vw);padding-inline:calc(50vw - 31vw);scrollbar-width:none;overscroll-behavior-x:contain}
  .iph-row::-webkit-scrollbar{display:none}
  .iph{width:min(62vw,280px);scroll-snap-align:center}
  .iph+.iph{margin-inline-start:0}
  .iph:nth-child(even){margin-top:0}
}
@media (min-width:600px) and (max-width:900px){ .iph-row{padding-inline:calc(50vw - 140px)} }
