/* «حمّل التطبيق» — band B on the home page + the phones' bottom sheet (inc/app-promo.php). */

/* ── Band ─────────────────────────────────────────────── */
.zv-app__band{position:relative;overflow:hidden;display:flex;align-items:stretch;min-height:480px;border-radius:28px;background:#163F3E;color:#fff}
.zv-app__bg{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.zv-app__bg svg{position:absolute;inset:0;width:100%;height:100%}
.zv-app__orb{position:absolute;border-radius:50%}
.zv-app__orb--a{top:-160px;left:12%;width:460px;height:460px;background:radial-gradient(circle,rgba(111,211,198,.2),rgba(111,211,198,0) 68%)}
.zv-app__orb--b{bottom:-200px;right:16%;width:520px;height:520px;background:radial-gradient(circle,rgba(212,104,86,.15),rgba(212,104,86,0) 68%)}
.zv-app__routes path{stroke:rgba(255,255,255,.09);stroke-width:1.6}
.zv-app__routes .zv-app__dots{stroke:rgba(255,255,255,.05);stroke-dasharray:2 10}
.zv-app__draw{stroke-dasharray:1600;stroke-dashoffset:0}
.zv-app__couriers{fill:#6FD3C6;opacity:.55}
.zv-app__paws{fill:rgba(255,255,255,.11)}
.zv-app__step{opacity:0}

.zv-app__copy{position:relative;z-index:1;flex:1;display:flex;flex-direction:column;justify-content:center;gap:24px;padding:48px 64px}
.zv-app__title{margin:0;color:#fff;font-family:Tajawal,system-ui,sans-serif;font-size:44px;font-weight:800;line-height:1.2}
.zv-app__perks{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}
.zv-app__perks li{display:flex;align-items:center;gap:12px;font-size:17px;font-weight:500}
.zv-app__ic{width:34px;height:34px;border-radius:10px;background:rgba(255,255,255,.1);display:grid;place-items:center;flex-shrink:0}
.zv-app__get{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.zv-app__badge{height:48px;display:inline-flex;align-items:center;gap:10px;padding:0 16px;border-radius:12px;background:#000;color:#fff;text-decoration:none;border:1px solid rgba(255,255,255,.28);transition:transform .2s ease,border-color .2s ease}
.zv-app__badge:hover,.zv-app__badge:focus-visible{color:#fff;transform:translateY(-2px);border-color:rgba(255,255,255,.6)}
.zv-app__badge span{display:flex;flex-direction:column;line-height:1.1;text-align:start}
.zv-app__badge small{font-size:10.5px;opacity:.8}
.zv-app__badge b{font-size:16px;font-weight:700}
.zv-app__qr{width:54px;height:54px;padding:4px;border-radius:10px;background:#fff;box-sizing:border-box}
.zv-app__cta{display:none}

.zv-app__stage{position:relative;z-index:1;width:500px;flex-shrink:0}
.zv-app__dog{position:absolute;right:0;bottom:0;width:130px;height:auto}
.zv-app__phone{position:absolute;right:96px;top:34px;width:262px;height:540px;box-sizing:border-box;padding:10px;border-radius:44px;background:#0B1414;box-shadow:0 0 0 1.5px #2A3A3A inset,0 40px 80px rgba(0,0,0,.4)}
.zv-app__screen{height:100%;box-sizing:border-box;border-radius:35px;background:#3B6E6C;overflow:hidden;display:flex;flex-direction:column;align-items:center;gap:4px;padding:14px 12px}
.zv-app__island{width:82px;height:23px;border-radius:999px;background:#0B1414}
.zv-app__date{margin-top:14px;font-size:12.5px;opacity:.85}
.zv-app__clock{font-size:62px;font-weight:700;line-height:1;letter-spacing:-1px}
.zv-app__live{width:100%;box-sizing:border-box;margin-top:18px;padding:13px;border-radius:20px;background:rgba(16,24,24,.72);display:flex;flex-direction:column;gap:6px}
.zv-app__live-head{display:flex;align-items:center;gap:8px;margin-bottom:3px}
.zv-app__live-head b{flex:1;font-size:11.5px;font-weight:700}
.zv-app__live-head em{font-style:normal;font-size:11px;color:#9FD3CF}
.zv-app__live-logo{width:24px;height:24px;border-radius:7px;background:#fff;display:grid;place-items:center}
.zv-app__live-logo img{width:20px;height:auto}
.zv-app__live small{font-size:11px;color:#B8CFCD}
.zv-app__live strong{font-size:25px;font-weight:800;line-height:1.1;text-align:end}
.zv-app__bar{display:block;height:5px;margin-top:4px;border-radius:999px;background:rgba(255,255,255,.22);overflow:hidden}
.zv-app__bar i{display:block;width:78%;height:100%;border-radius:999px;background:#6FD3C6;transform-origin:right center}
[dir=ltr] .zv-app__bar i{transform-origin:left center}

.zv-app__card{position:absolute;box-sizing:border-box;background:#fff;color:#2B1E1F;border-radius:18px;box-shadow:0 20px 40px rgba(0,0,0,.28);font-size:12.5px;line-height:1.5}
.zv-app__card--map{left:0;top:150px;width:184px;padding:9px;display:flex;flex-direction:column;gap:7px;font-weight:700}
.zv-app__card--map svg{display:block;width:100%;height:auto;border-radius:10px;background:#EEF3F1}
.zv-app__card--food{left:0;top:400px;width:224px;padding:10px 12px;display:flex;align-items:center;gap:10px;color:#6F5B59;opacity:0}
.zv-app__card--food b{color:#2B1E1F;font-weight:700}
.zv-app__card--food img{width:44px;height:auto;flex-shrink:0}

/* Motion: only while the band is on screen (zv-app.js adds .is-on), never for reduced motion. */
@keyframes zvAppFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-10px)}}
@keyframes zvAppPeek{0%,100%{transform:translateY(18px)}40%,70%{transform:translateY(0)}}
@keyframes zvAppWave{0%,100%{transform:rotate(0)}25%{transform:rotate(-6deg)}75%{transform:rotate(6deg)}}
@keyframes zvAppFill{0%{transform:scaleX(0)}60%,100%{transform:scaleX(1)}}
@keyframes zvAppPop{0%{opacity:0;transform:translateY(14px) scale(.96)}12%,88%{opacity:1;transform:none}100%{opacity:0;transform:translateY(-6px)}}
@keyframes zvAppPulse{0%{transform:scale(1);opacity:.55}100%{transform:scale(2.6);opacity:0}}
@keyframes zvAppDraw{0%{stroke-dashoffset:1600}55%,100%{stroke-dashoffset:0}}
@keyframes zvAppStep{0%,100%{opacity:0}8%,40%{opacity:1}55%{opacity:0}}
@keyframes zvAppOrbA{to{transform:translate(140px,60px)}}
@keyframes zvAppOrbB{to{transform:translate(-160px,-50px)}}
@keyframes zvAppIn{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}

@media (prefers-reduced-motion:no-preference){
  .zv-app.is-on .zv-app__phone{animation:zvAppFloat 5s ease-in-out infinite}
  .zv-app.is-on .zv-app__dog{animation:zvAppPeek 4.5s ease-in-out infinite}
  .zv-app.is-on .zv-app__card--food img{animation:zvAppWave 2.4s ease-in-out infinite;transform-origin:50% 90%}
  .zv-app.is-on .zv-app__bar i{animation:zvAppFill 4s ease-out infinite}
  .zv-app.is-on .zv-app__card--map{animation:zvAppPop 6s ease-in-out infinite}
  .zv-app.is-on .zv-app__card--food{animation:zvAppPop 6s ease-in-out 3s infinite}
  .zv-app.is-on .zv-app__pulse{animation:zvAppPulse 1.6s ease-out infinite;transform-box:fill-box;transform-origin:center}
  .zv-app.is-on .zv-app__draw{animation:zvAppDraw 9s ease-in-out infinite}
  .zv-app.is-on .zv-app__draw--late{animation:zvAppDraw 11s ease-in-out 2s infinite}
  .zv-app.is-on .zv-app__step{animation:zvAppStep 5.6s ease-in-out infinite}
  .zv-app.is-on .zv-app__orb--a{animation:zvAppOrbA 14s ease-in-out infinite alternate}
  .zv-app.is-on .zv-app__orb--b{animation:zvAppOrbB 17s ease-in-out infinite alternate}
  .zv-app.is-on .zv-app__copy>*{animation:zvAppIn .6s ease-out both}
  .zv-app.is-on .zv-app__copy>*:nth-child(2){animation-delay:.12s}
  .zv-app.is-on .zv-app__copy>*:nth-child(3){animation-delay:.24s}
}
@media (prefers-reduced-motion:reduce){
  .zv-app__card--food{display:none}
  .zv-app__step{opacity:1}
  .zv-app__couriers{display:none}
}

@media (max-width:1100px){
  .zv-app__copy{padding:40px 36px}
  .zv-app__title{font-size:36px}
  .zv-app__stage{width:420px}
  .zv-app__phone{right:70px}
  .zv-app__card--map,.zv-app__card--food{left:0}
}

/* Phones: one column, a single download button that picks the right store. */
@media (max-width:760px){
  .zv-app__band{flex-direction:column;min-height:0;border-radius:24px}
  .zv-app__copy{padding:28px 22px 4px;gap:18px}
  .zv-app__title{font-size:30px}
  .zv-app__perks li{font-size:15px}
  .zv-app__ic{width:30px;height:30px;border-radius:9px}
  .zv-app__get{display:none}
  .zv-app__cta{display:flex;align-items:center;justify-content:center;height:52px;border-radius:14px;background:#fff;color:#163F3E;font-size:16px;font-weight:800;text-decoration:none}
  .zv-app__cta:hover,.zv-app__cta:focus-visible{color:#163F3E;background:#E3F0EF}
  .zv-app__stage{width:auto;height:290px}
  .zv-app__phone{right:auto;left:50%;margin-left:-110px;top:14px;width:220px;height:320px;padding:9px 9px 0;border-radius:36px 36px 0 0}
  .zv-app__screen{border-radius:28px 28px 0 0;padding:14px 10px 0}
  .zv-app__date{margin-top:8px}
  .zv-app__clock{font-size:46px}
  .zv-app__live{margin-top:12px;padding:10px}
  .zv-app__live strong{font-size:21px}
  .zv-app__card{display:none}
  .zv-app__dog{right:6px;width:108px}
}

/* ── Phones' bottom sheet (A) ─────────────────────────── */
.zv-app-sheet{position:fixed;inset:0;z-index:100000;display:flex;align-items:flex-end}
.zv-app-sheet[hidden]{display:none}
.zv-app-sheet__scrim{position:absolute;inset:0;background:rgba(20,16,16,.42);opacity:0;transition:opacity .25s ease}
.zv-app-sheet__panel{position:relative;width:100%;box-sizing:border-box;background:#fff;color:#2B1E1F;border-radius:26px 26px 0 0;padding:24px 20px calc(22px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:16px;box-shadow:0 -10px 30px rgba(0,0,0,.12);transform:translateY(105%);transition:transform .32s cubic-bezier(.2,.8,.2,1)}
.zv-app-sheet.is-open .zv-app-sheet__scrim{opacity:1}
.zv-app-sheet.is-open .zv-app-sheet__panel{transform:none}
.zv-app-sheet__peek{position:absolute;top:-62px;left:30px;width:112px;height:auto;pointer-events:none}
.zv-app-sheet__grip{width:38px;height:5px;border-radius:999px;background:#E2D9CF;align-self:center;margin-top:-10px}
.zv-app-sheet__head{display:flex;align-items:center;gap:12px}
.zv-app-sheet__head strong{font-size:20px;font-weight:800;line-height:1.3}
.zv-app-sheet__logo{width:52px;height:52px;border-radius:14px;background:#FBF6EE;border:1px solid #EFE5D8;display:grid;place-items:center;flex-shrink:0}
.zv-app-sheet__logo img{width:44px;height:auto}
.zv-app-sheet__perks{list-style:none;margin:0;padding:16px;border-radius:18px;background:#F8F5F1;display:flex;flex-direction:column;gap:12px}
.zv-app-sheet__perks li{display:flex;align-items:center;gap:12px;font-size:15px;font-weight:700}
.zv-app-sheet__ic{width:36px;height:36px;border-radius:10px;display:grid;place-items:center;flex-shrink:0}
.zv-app-sheet__ic--0{background:#E3F0EF;color:#1E5B5A}
.zv-app-sheet__ic--1{background:#FDF3E1;color:#8A5608}
.zv-app-sheet__ic--2{background:#FBEDEA;color:#B24A35}
.zv-app-sheet__cta{height:54px;border-radius:16px;background:#163F3E;color:#fff;text-decoration:none;display:flex;align-items:center;justify-content:center;font-size:16.5px;font-weight:800}
.zv-app-sheet__cta:hover,.zv-app-sheet__cta:focus-visible{color:#fff;background:#1E5B5A}
.zv-app-sheet__later{height:44px;margin-top:-6px;border:0;background:none;color:#6F5B59;font:inherit;font-size:14.5px;cursor:pointer}
@media (prefers-reduced-motion:reduce){.zv-app-sheet__panel,.zv-app-sheet__scrim{transition:none}}

/* ── Phones: «أكمل في التطبيق» strip (store links open the app) ─── */
.zv-app-open{display:none}
@media (max-width:760px){
  .zv-app-open{display:flex;align-items:center;gap:10px;padding:8px 12px;background:#163F3E;color:#fff;font-size:13px;line-height:1.3}
  .zv-app-open[hidden]{display:none}
  .zv-app-open__logo{width:36px;height:36px;border-radius:10px;background:#FBF6EE;display:grid;place-items:center;flex-shrink:0}
  .zv-app-open__logo img{width:30px;height:auto}
  .zv-app-open__text{flex:1;min-width:0;display:flex;flex-direction:column}
  .zv-app-open__text b{font-size:14px;font-weight:800}
  .zv-app-open__text small{font-size:12px;opacity:.8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .zv-app-open__cta{height:34px;padding:0 18px;border-radius:999px;background:#fff;color:#163F3E;font-weight:800;font-size:14px;text-decoration:none;display:flex;align-items:center}
  .zv-app-open__cta:hover,.zv-app-open__cta:focus-visible{color:#163F3E;background:#E3F0EF}
  .zv-app-open__close{width:28px;height:28px;border:0;background:none;color:#fff;opacity:.7;font-size:22px;line-height:1;cursor:pointer;padding:0}
}
@media (display-mode:standalone){.zv-app-open{display:none}}

/* The home page's «افتح التطبيق» chip — the strip, shrunk into the header (pick A, 2026-11-09). */
.zv-app-chip{display:none}
@media (max-width:760px){
  .zv-app-chip{display:inline-flex;align-items:center;gap:7px;height:36px;padding:0 13px 0 5px;border-radius:999px;background:#fff;border:1px solid var(--line,#EFE5D8);color:var(--ink,#3A2224);font-size:13px;font-weight:800;white-space:nowrap;text-decoration:none}
  .zv-app-chip:hover,.zv-app-chip:focus-visible{border-color:var(--teal,#297978);color:var(--teal-d,#1F5C5B)}
  .zv-app-chip__ic{width:26px;height:26px;border-radius:8px;background:#FBF6EE;display:grid;place-items:center;box-shadow:0 0 0 1px var(--line,#EFE5D8)}
  .zv-app-chip__ic img{width:22px;height:auto}
}
@media (display-mode:standalone){.zv-app-chip{display:none}}

/* Phones (owner 2026-11-09: «بانر التطبيق خليه أصغر»): a short card — one-line title,
   three tight lines, a small button, and the dog peeking from the far corner. No phone. */
@media (max-width:760px){
  .zv-app__band{border-radius:20px}
  .zv-app__copy{padding:16px 16px 16px;padding-inline-end:88px;gap:9px}
  .zv-app__title{font-size:19px;line-height:1.3}
  .zv-app__title br{display:none}
  .zv-app__perks{gap:5px}
  .zv-app__perks li{font-size:13px;gap:8px;line-height:1.35}
  .zv-app__ic{width:24px;height:24px;border-radius:7px}
  .zv-app__ic svg{width:14px;height:14px}
  /* the two store badges instead of the single button (owner, 2026-11-09) */
  .zv-app__cta,.zv-app__qr{display:none}
  .zv-app__get{display:flex;flex-wrap:nowrap;gap:8px;margin-top:4px}
  .zv-app__badge{height:40px;gap:6px;padding:0 10px;border-radius:10px}
  .zv-app__badge svg{width:18px;height:18px;flex:none}
  .zv-app__badge small{font-size:9px}
  .zv-app__badge b{font-size:13.5px}
  .zv-app__stage{position:absolute;inset-inline-end:0;bottom:0;width:104px;height:150px;pointer-events:none}
  .zv-app__phone,.zv-app__card{display:none}
  .zv-app__dog{left:-8px;right:auto;width:90px;scale:-1 1}
  [dir="ltr"] .zv-app__dog{left:auto;right:-6px;scale:1 1}
}
@media (max-width:370px){
  .zv-app__copy{padding-inline-end:70px}
  .zv-app__dog{width:72px}
  .zv-app__badge{padding:0 8px}
  .zv-app__badge b{font-size:12.5px}
}
