/* ============================================================
   app.css — app-first additions (store buttons, phone mock,
   download section, pricing toggle, captains app card)
   ============================================================ */

/* Arabic needs more leading than the original 0.95 */
.hero-title { line-height: 1.15; }

/* ---------- Store buttons ---------- */
.store-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 18px;
  min-width: 172px;
  background: #000; color: #fff;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  transition: transform 140ms ease, border-color 200ms ease, box-shadow 200ms ease, background 200ms ease;
}
.store-btn:hover {
  border-color: var(--yellow);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -18px rgba(255, 214, 10, 0.55);
}
.store-btn:active { transform: translateY(0) scale(0.98); }
.store-btn-logo { display: flex; flex-shrink: 0; color: #fff; }
.store-btn-text { display: flex; flex-direction: column; line-height: 1.1; text-align: start; }
.store-btn-text small { font-size: 11px; font-weight: 600; color: var(--ink-3); }
.store-btn-text strong {
  font-size: 19px; font-weight: 800; letter-spacing: -0.01em;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
.store-btn-lg { padding: 12px 22px; min-width: 198px; border-radius: 16px; }
.store-btn-lg .store-btn-text strong { font-size: 22px; }
.store-btn-lg .store-btn-text small { font-size: 12px; }
.store-btn-sm { padding: 8px 14px; min-width: 0; border-radius: 12px; gap: 9px; }
.store-btn-sm .store-btn-text strong { font-size: 15px; }
.store-btn-sm .store-btn-text small { font-size: 10px; }
/* on yellow surfaces */
.store-btn-light { border-color: #000; }
.store-btn-light:hover { border-color: #000; background: #141414; box-shadow: 0 18px 40px -18px rgba(0,0,0,0.7); }

/* ---------- Header ---------- */
.hdr-cta .btn { padding: 11px 18px; font-size: 15px; }
.hdr .hdr-mobile .hdr-mobile-stores { padding: 10px 20px 16px; display: flex; flex-direction: column; gap: 10px; }
.hdr .hdr-mobile .hdr-mobile-stores .store-btns { gap: 10px; }
.hdr .hdr-mobile .hdr-mobile-stores .store-btn { flex: 1; justify-content: center; }
.hdr .hdr-mobile .hdr-mobile-help {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  color: var(--ink-3); font-size: 14px; padding: 6px 0 0;
}
.hdr .hdr-mobile .hdr-mobile-help .num { color: var(--ink); font-weight: 700; }

/* ---------- Hero ---------- */
.hero-actions .store-btns { gap: 14px; }
.hero-secondary { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.hero-secondary .hero-phone { margin-top: 0; }
.hero-help { transition: color 160ms ease; }
.hero-help:hover { color: var(--whatsapp); }
.hero-help:hover .num { color: var(--whatsapp); }

.hero-art-app {
  aspect-ratio: auto;
  height: 600px;
  display: flex; justify-content: center; align-items: flex-start;
  padding-top: 46px;
}
.hero-mock { width: 292px; position: relative; z-index: 1; }
.hero-art-app .hero-chip { z-index: 2; }
.hero-chip-eta { max-width: 220px; }
@media (max-width: 920px) {
  .hero-art-app { height: 540px; padding-top: 36px; }
  .hero-mock { width: 270px; }
}
@media (max-width: 420px) {
  .hero-chip-eta { right: 10px; top: 12px; }
  .hero-chip-price { left: 10px; bottom: 12px; }
}

/* ---------- Phone mock ---------- */
.mock-phone {
  position: relative;
  width: 300px; max-width: 100%;
  aspect-ratio: 9 / 19.2;
  border-radius: 46px;
  background: #0b0b0b;
  border: 8px solid #202020;
  box-shadow: 0 40px 100px -30px rgba(0,0,0,0.85), 0 0 0 1px rgba(255,255,255,0.05), inset 0 0 0 1px rgba(255,255,255,0.03);
  overflow: hidden;
  direction: rtl;
  text-align: start;
}
.mock-island {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 26px; border-radius: 20px; background: #000; z-index: 3;
}
.mock-status {
  position: absolute; top: 13px; left: 22px; right: 22px; z-index: 3;
  display: flex; justify-content: space-between; align-items: center;
  direction: ltr;
  font-size: 12px; font-weight: 700; color: #fff;
}
.mock-status-r { display: flex; align-items: center; gap: 5px; }
.mock-bars { display: flex; gap: 1.5px; align-items: flex-end; height: 10px; }
.mock-bars i { width: 3px; background: #fff; border-radius: 1px; }
.mock-bars i:nth-child(1) { height: 4px; } .mock-bars i:nth-child(2) { height: 6px; }
.mock-bars i:nth-child(3) { height: 8px; } .mock-bars i:nth-child(4) { height: 10px; }
.mock-batt { width: 22px; height: 10px; border: 1.5px solid rgba(255,255,255,0.7); border-radius: 3px; padding: 1.5px; }
.mock-batt i { display: block; height: 100%; width: 80%; background: #fff; border-radius: 1px; }
.mock-screen {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; gap: 10px;
  padding: 50px 14px 16px;
  background: linear-gradient(180deg, #111 0%, #0a0a0a 100%);
  animation: mock-in 420ms ease both;
}
@keyframes mock-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.mock-appbar { display: flex; align-items: center; justify-content: space-between; padding: 2px 2px 0; }
.mock-appbar b { font-size: 15px; font-weight: 800; color: #fff; }
.mock-lang { font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: #1c1c1c; color: var(--ink-2); }
.mock-appbar-icon {
  position: relative; width: 30px; height: 30px; border-radius: 50%;
  background: #1c1c1c; color: var(--yellow); display: grid; place-items: center;
}
.mock-dot {
  position: absolute; top: 5px; right: 6px; width: 8px; height: 8px; border-radius: 50%;
  background: #ff4d4f; border: 2px solid #111;
}
.mock-title { font-size: 19px; font-weight: 900; color: #fff; margin-top: 6px; }
.mock-sub { font-size: 11.5px; color: var(--ink-3); line-height: 1.55; }
.mock-sub b { color: var(--ink-2); font-weight: 700; }
.mock-center { text-align: center; }
.mock-spacer { flex: 1; }
.mock-grow { flex: 1; min-width: 0; }
.mock-h { font-size: 11px; color: var(--ink-3); font-weight: 700; }
.mock-card {
  background: #171717; border: 1px solid #262626; border-radius: 16px;
  padding: 12px; display: flex; flex-direction: column; gap: 10px;
}
.mock-card-tight { gap: 8px; }
.mock-loc { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: center; }
.mock-pin { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; }
.mock-pin-a { background: var(--yellow); color: #000; }
.mock-pin-b { background: #fff; color: #000; }
.mock-pin-empty { background: transparent; color: var(--ink-4); border: 1.5px dashed #3a3a3a; }
.mock-loc-k { font-size: 10px; color: var(--ink-3); font-weight: 600; }
.mock-loc-v { font-size: 12.5px; font-weight: 700; color: #fff; line-height: 1.35; }
.mock-loc-v.is-muted { color: var(--ink-4); font-weight: 600; }
.mock-rail { height: 12px; margin-inline-start: 10px; border-inline-start: 2px dashed #3a3a3a; }
.mock-list { display: flex; flex-direction: column; gap: 6px; }
.mock-row {
  display: flex; gap: 8px; align-items: center;
  padding: 9px 12px; border-radius: 12px;
  border: 1px solid #2a2a2a; font-size: 12px; font-weight: 700; color: var(--ink-2);
}
.mock-row.is-on { border-color: var(--yellow); color: #fff; background: rgba(255,214,10,0.08); }
.mock-row.is-on svg { color: var(--yellow); }
.mock-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mock-seg span {
  padding: 8px 6px; border-radius: 10px; border: 1px solid #2a2a2a;
  text-align: center; font-size: 12px; font-weight: 800; color: var(--ink-2);
  display: flex; flex-direction: column; gap: 2px;
}
.mock-seg span small { font-size: 9.5px; color: var(--ink-3); font-weight: 600; }
.mock-seg span.is-on { background: rgba(255,214,10,0.12); border-color: var(--yellow); color: var(--yellow); }
.mock-seg span.is-on small { color: var(--yellow); opacity: 0.8; }
.mock-kv { display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.mock-kv span { color: var(--ink-3); font-weight: 600; }
.mock-kv b { color: #fff; font-weight: 700; }
.mock-price { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px; margin-top: auto; }
.mock-price-k { font-size: 13px; color: var(--ink-2); font-weight: 700; }
.mock-price-v { font-size: 24px; font-weight: 900; color: var(--yellow); display: flex; align-items: baseline; gap: 4px; }
.mock-price-v small { font-size: 11px; font-weight: 700; color: var(--ink-2); }
.mock-btn {
  background: var(--yellow); color: #000; font-weight: 900; font-size: 14px;
  text-align: center; padding: 13px; border-radius: 14px;
}
.mock-btn-ghost { background: #1c1c1c; color: #fff; margin-top: auto; }
.mock-otp { display: flex; gap: 6px; justify-content: center; direction: ltr; margin-top: 8px; }
.mock-otp span {
  width: 36px; height: 46px; border-radius: 10px;
  border: 1px solid #2a2a2a; background: #171717;
  display: grid; place-items: center; font-size: 18px; font-weight: 800; color: #fff;
}
.mock-otp span.is-cur { border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(255,214,10,0.15); }
.mock-map {
  position: relative; flex: 1; min-height: 190px;
  border-radius: 16px; overflow: hidden; border: 1px solid #262626;
  background: radial-gradient(60% 40% at 30% 30%, rgba(255,214,10,0.10), transparent 60%), #131313;
}
.mock-map-sm { flex: 0 0 auto; min-height: 96px; }
.mock-roads { position: absolute; inset: 0; width: 100%; height: 100%; }
.mock-map-captain {
  position: absolute; left: 27%; top: 50%;
  width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%;
  background: var(--yellow); color: #000; display: grid; place-items: center;
  box-shadow: 0 0 0 6px rgba(255,214,10,0.18), 0 8px 20px rgba(0,0,0,0.5);
  animation: mock-ride 4s ease-in-out infinite;
}
@keyframes mock-ride {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(14px, -4px); }
}
.mock-map-dest {
  position: absolute; left: 84.6%; top: 22.5%;
  width: 26px; height: 26px; margin: -26px 0 0 -13px;
  border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: #fff; color: #000; display: grid; place-items: center;
}
.mock-map-dest svg { transform: rotate(45deg); }
.mock-map-dest-c { left: 50%; top: 58%; }
.mock-progress { display: flex; gap: 4px; }
.mock-progress i { flex: 1; height: 4px; border-radius: 2px; background: #2a2a2a; }
.mock-progress i.is-on { background: var(--yellow); }
.mock-status-card {
  background: #171717; border: 1px solid #262626; border-radius: 14px;
  padding: 10px 12px; display: flex; gap: 10px; align-items: center;
}
.mock-avatar { width: 34px; height: 34px; border-radius: 50%; background: #2a2a2a; color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.mock-call { width: 30px; height: 30px; border-radius: 50%; background: var(--yellow); color: #000; display: grid; place-items: center; flex-shrink: 0; }

/* ---------- How it works (app steps) ---------- */
.how-step { text-align: start; width: 100%; cursor: pointer; }
.how-step:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
.how-foot {
  margin-top: 8px; padding: 18px 20px;
  border: 1px dashed var(--line-2); border-radius: var(--r-md);
  display: flex; flex-direction: column; gap: 12px; align-items: flex-start;
}
.how-foot-k { font-size: 14px; font-weight: 800; color: var(--ink-2); }
.how-app-preview { align-items: center; gap: 18px; position: sticky; top: 96px; }
.how-mock { width: 300px; }
.how-caption { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink-2); font-size: 15px; }
.how-caption-n { color: var(--yellow); }
@media (max-width: 920px) { .how-app-preview { position: static; } }

/* ---------- Download section ---------- */
.appdl {
  border-top: 1px solid var(--line);
  background:
    radial-gradient(900px 500px at 100% 0%, rgba(255,214,10,0.08), transparent 60%),
    var(--bg);
}
.appdl-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
@media (max-width: 920px) { .appdl-grid { grid-template-columns: 1fr; gap: 32px; } }
.appdl .appdl-head { align-items: flex-start; text-align: start; margin-bottom: 0; gap: 14px; }
.appdl-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
@media (max-width: 540px) { .appdl-feats { grid-template-columns: 1fr; } }
.appdl-feat {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px; border: 1px solid var(--line); background: var(--bg-2); border-radius: 14px;
  transition: border-color 200ms ease;
}
.appdl-feat:hover { border-color: var(--yellow-border); }
.appdl-feat-icon {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  background: var(--yellow-bg); color: var(--yellow); border: 1px solid var(--yellow-border);
  display: grid; place-items: center;
}
.appdl-feat h4 { font-size: 15px; font-weight: 800; }
.appdl-feat p { font-size: 13px; color: var(--ink-3); margin-top: 3px; line-height: 1.55; }
.appdl-card {
  border: 1px solid var(--yellow-border); border-radius: var(--r-xl);
  padding: 32px 28px;
  background: linear-gradient(180deg, rgba(255,214,10,0.06), rgba(255,214,10,0));
  box-shadow: var(--shadow-glow);
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px;
}
.appdl-icon {
  width: 104px; height: 104px; border-radius: 26px;
  box-shadow: 0 24px 50px -20px rgba(255,214,10,0.5);
  border: 1px solid rgba(255,255,255,0.08);
}
.appdl-card h3 { font-size: 26px; font-weight: 900; }
.appdl-meta { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 10px; }
.appdl-meta span {
  font-size: 12px; font-weight: 700; color: var(--ink-2);
  padding: 5px 10px; border-radius: 999px; background: var(--bg-3); border: 1px solid var(--line);
}
.appdl-btns { flex-direction: column; width: 100%; gap: 10px; }
.appdl-btns .store-btn { width: 100%; justify-content: center; }
.appdl-qr {
  display: none; align-items: center; gap: 14px;
  padding: 14px; border-radius: 16px; width: 100%;
  background: #fff; color: #000; text-align: start;
}
@media (min-width: 921px) { .appdl-qr { display: flex; } }
.appdl-qr img { width: 92px; height: 92px; flex-shrink: 0; border-radius: 8px; }
.appdl-qr b { display: block; font-size: 14px; font-weight: 800; line-height: 1.4; }
.appdl-qr small { display: block; font-size: 12px; color: #555; margin-top: 4px; line-height: 1.5; }
.appdl-help { font-size: 13px; color: var(--ink-3); }
.appdl-help a { color: var(--whatsapp); font-weight: 700; }

/* ---------- Pricing (delivery-type toggle, 5th tier) ---------- */
.seg-wrap { display: flex; justify-content: center; margin: -24px 0 36px; }
.seg { display: inline-flex; padding: 4px; gap: 4px; background: var(--bg-3); border: 1px solid var(--line); border-radius: 999px; }
.seg button {
  padding: 8px 18px; border-radius: 999px;
  font-weight: 800; font-size: 14px; color: var(--ink-2);
  display: flex; flex-direction: column; align-items: center; line-height: 1.15;
  transition: background 160ms ease, color 160ms ease;
}
.seg button small { font-size: 10.5px; font-weight: 600; color: var(--ink-3); }
.seg button.is-on { background: var(--yellow); color: #000; }
.seg button.is-on small { color: #000; opacity: 0.7; }
@media (min-width: 1081px) { .pricing-grid.has-5 { grid-template-columns: repeat(5, 1fr); gap: 14px; } }
.pricing-grid.has-3 { grid-template-columns: repeat(3, 1fr); max-width: 960px; margin: 0 auto; }
@media (max-width: 920px) { .pricing-grid.has-3 { grid-template-columns: 1fr; } }
.price-num-text { font-size: 22px; font-weight: 900; color: var(--yellow); line-height: 1.2; }
.price-note { text-align: center; color: var(--ink-3); font-size: 14px; margin-top: 20px; line-height: 1.6; }
.calc-result .btn-primary { flex-shrink: 0; }
.calc-result-manual { color: var(--yellow); font-weight: 800; font-size: 20px; }

/* ---------- Sections tweaks ---------- */
.faq-a a { color: var(--yellow); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.cta-actions .store-btns { gap: 12px; justify-content: center; }
.cta-card .store-btn { background: #000; border-color: #000; }
.cta-help { margin-top: 18px; font-size: 14px; color: rgba(0,0,0,0.7); font-weight: 600; }
.cta-help a { color: #000; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.ftr-store { margin-top: 18px; gap: 10px; }
.ftr-store .store-btn { background: var(--bg-2); }

/* ---------- Captains page ---------- */
.cap-app-card { text-align: center; }
.cap-mini { width: 100%; display: flex; flex-direction: column; gap: 8px; text-align: start; }
.cap-mini-step {
  display: flex; gap: 12px; align-items: center;
  padding: 10px 12px; border-radius: 12px;
  background: var(--bg-2); border: 1px solid var(--line);
}
.cap-mini-n {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  background: var(--yellow); color: #000; font-weight: 900; font-size: 13px;
  display: grid; place-items: center;
}
.cap-mini-step b { display: block; font-size: 14px; font-weight: 800; }
.cap-mini-step span { font-size: 12px; color: var(--ink-3); line-height: 1.5; }
.cap-docs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.cap-docs span {
  font-size: 12px; font-weight: 700; color: var(--ink-2);
  padding: 5px 10px; border-radius: 999px; background: var(--bg-3); border: 1px solid var(--line);
}
.cap-docs span.opt { color: var(--ink-3); border-style: dashed; }

/* keep the hero pill hugging its text (hero-copy is a stretch flex column) */
.hero-copy .eyebrow { align-self: flex-start; }
.appdl-qr small span { white-space: nowrap; font-weight: 700; }
@media (max-width: 540px) {
  .hero-actions .store-btns, .how-foot .store-btns, .cta-actions .store-btns { width: 100%; }
  .hero-actions .store-btn, .how-foot .store-btn, .cta-actions .store-btn { flex: 1 1 100%; justify-content: center; }
  .hero-secondary { flex-direction: column; align-items: stretch; }
  .hero-secondary .btn-ghost { justify-content: center; }
  .hero-secondary .hero-help { justify-content: center; }
}
