/* CCDelivery website — same colours and font as the apps */
@font-face { font-family: 'Zain'; src: url('fonts/Zain/Zain-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Zain'; src: url('fonts/Zain/Zain-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Zain'; src: url('fonts/Zain/Zain-ExtraBold.ttf') format('truetype'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Zain'; src: url('fonts/Zain/Zain-Black.ttf') format('truetype'); font-weight: 900; font-display: swap; }

:root {
  --primary: #FF6C44;
  --primary-dark: #E8552D;
  --primary-soft: #FFF0EB;
  --ink: #1A1D26;
  --night: #181920;
  --night-card: #252836;
  --muted: #6A6F7D;
  --bg: #F8F9FA;
  --card: #FFFFFF;
  --border: #EAEBEE;
  --success: #22C55E;
  --radius: 22px;
  --shadow: 0 18px 50px -20px rgba(26, 29, 38, .25);
  --max: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Zain', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 18px;
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
[hidden] { display: none !important; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 249, 250, .85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-color: var(--border); }
.nav { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 22px; letter-spacing: -.2px; }
.brand img { width: 40px; height: 40px; border-radius: 11px; }
.brand span { direction: ltr; }
.nav-links { display: flex; gap: 22px; margin-inline-start: auto; font-weight: 700; color: var(--muted); font-size: 17px; }
.nav-links a:hover { color: var(--primary); }
.lang { display: flex; background: var(--card); border: 1px solid var(--border); border-radius: 999px; padding: 4px; gap: 2px; }
.lang button {
  font: inherit; font-size: 14px; font-weight: 700; border: 0; background: none; color: var(--muted);
  padding: 4px 12px; border-radius: 999px; cursor: pointer;
}
.lang button.active { background: var(--primary); color: #fff; }
.menu-btn { display: none; background: none; border: 0; cursor: pointer; padding: 6px; color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; font: inherit; font-weight: 800; font-size: 17px;
  border-radius: 16px; padding: 12px 22px; border: 0; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 12px 26px -10px rgba(255, 108, 68, .7); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { background: var(--card); color: var(--ink); border: 1px solid var(--border); }
.store {
  display: inline-flex; align-items: center; gap: 12px; background: var(--ink); color: #fff;
  padding: 10px 20px 10px 18px; border-radius: 16px; min-width: 190px; transition: transform .15s, background .15s;
}
.store:hover { transform: translateY(-2px); background: #000; }
.store svg { width: 30px; height: 30px; flex: none; }
.store small { display: block; font-size: 13px; opacity: .75; line-height: 1.2; }
.store strong { display: block; font-size: 21px; line-height: 1.15; direction: ltr; font-family: -apple-system, 'Segoe UI', sans-serif; font-weight: 600; }
.store.soon { background: var(--card); color: var(--ink); border: 1px solid var(--border); cursor: default; }
.store.soon:hover { transform: none; background: var(--card); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 56px 0 80px; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: -30% -10% auto auto; width: 720px; height: 720px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 108, 68, .22), rgba(255, 108, 68, 0) 65%); z-index: -1;
}
[dir="rtl"] .hero::before { inset: -30% auto auto -10%; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; background: var(--primary-soft); color: var(--primary-dark);
  font-weight: 800; font-size: 15px; padding: 6px 14px; border-radius: 999px;
}
.pill i { width: 8px; height: 8px; background: var(--primary); border-radius: 50%; box-shadow: 0 0 0 4px rgba(255, 108, 68, .25); }
.hero h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.15; font-weight: 900; margin: 18px 0 16px; letter-spacing: -.5px; }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero p.lead { font-size: 21px; color: var(--muted); max-width: 560px; }
.store-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-stats { display: flex; gap: 28px; margin-top: 34px; flex-wrap: wrap; }
.hero-stats div { display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 700; font-size: 16px; }
.hero-stats svg { width: 22px; height: 22px; color: var(--primary); flex: none; }

/* phones */
.phones { position: relative; height: 640px; }
.phone {
  position: absolute; width: 290px; aspect-ratio: 1290 / 2796; border-radius: 46px; background: #0d0e12; padding: 10px;
  box-shadow: 0 40px 80px -30px rgba(26, 29, 38, .55), inset 0 0 0 2px #2a2c35;
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 37px; background: #fff; }
.phone.front { left: 50%; top: 0; transform: translateX(-30%) rotate(-3deg); z-index: 2; }
.phone.back { left: 50%; top: 60px; transform: translateX(-95%) rotate(-10deg) scale(.9); opacity: .96; }
.float-card {
  position: absolute; z-index: 3; background: var(--card); border-radius: 18px; box-shadow: var(--shadow);
  padding: 12px 16px; display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 15px; white-space: nowrap; line-height: 1.35;
  animation: bob 5s ease-in-out infinite;
}
.float-card .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.float-card .ic svg { width: 20px; height: 20px; }
.float-card small { display: block; color: var(--muted); font-weight: 600; font-size: 13px; }
.float-card.one { top: 90px; right: 0; }
.float-card.two { bottom: 70px; left: 0; animation-delay: -2.5s; }
.float-card.two .ic { background: #E8FBEF; color: var(--success); }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Sections ---------- */
section { padding: 90px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 50px; }
.eyebrow { color: var(--primary); font-weight: 900; font-size: 15px; letter-spacing: .5px; text-transform: uppercase; }
.section-head h2 { font-size: clamp(32px, 4.4vw, 46px); font-weight: 900; line-height: 1.2; margin: 8px 0 12px; }
.section-head p { color: var(--muted); font-size: 19px; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; transition: transform .2s, box-shadow .2s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature .ic { width: 52px; height: 52px; border-radius: 16px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; margin-bottom: 16px; }
.feature .ic svg { width: 26px; height: 26px; }
.feature h3 { font-size: 21px; font-weight: 900; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 17px; line-height: 1.6; }

/* screenshots */
.shots-wrap { background: var(--night); color: #fff; border-radius: 40px; margin: 0 20px; padding: 80px 0; overflow: hidden; position: relative; }
.shots-wrap::after {
  content: ''; position: absolute; width: 600px; height: 600px; border-radius: 50%; left: 50%; top: 40%; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 108, 68, .25), rgba(255, 108, 68, 0) 65%); pointer-events: none;
}
.shots-wrap .section-head p { color: #A0A5BA; }
.shots { display: flex; gap: 26px; justify-content: center; align-items: flex-end; position: relative; z-index: 1; padding: 0 20px; }
.shot { flex: 0 0 240px; text-align: center; }
.shot .phone { position: relative; width: 100%; left: auto; top: auto; transform: none; box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .8), inset 0 0 0 2px #333644; }
.shot:nth-child(2) .phone, .shot:nth-child(4) .phone { transform: translateY(-36px); }
.shot p { margin-top: 18px; font-weight: 800; font-size: 17px; color: #fff; }
.shot:nth-child(2) p, .shot:nth-child(4) p { transform: translateY(-36px); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 26px; }
.step::before {
  counter-increment: step; content: counter(step); position: absolute; top: -18px; inset-inline-start: 26px;
  width: 40px; height: 40px; border-radius: 12px; background: var(--primary); color: #fff; font-weight: 900; display: grid; place-items: center;
  box-shadow: 0 10px 20px -8px rgba(255, 108, 68, .8);
}
.step h3 { font-size: 21px; font-weight: 900; margin: 8px 0 6px; }
.step p { color: var(--muted); font-size: 17px; }

/* apps */
.apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.app-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.app-card .top { display: flex; align-items: center; gap: 14px; }
.app-card img { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .5); border: 1px solid var(--border); }
.app-card h3 { font-size: 22px; font-weight: 900; line-height: 1.2; }
.app-card .who { color: var(--primary); font-weight: 800; font-size: 15px; }
.app-card ul { list-style: none; display: grid; gap: 8px; color: var(--muted); font-size: 17px; flex: 1; }
.app-card li { display: flex; gap: 10px; align-items: flex-start; }
.app-card li::before { content: ''; flex: none; width: 18px; height: 18px; margin-top: 6px; border-radius: 6px; background: var(--primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF6C44' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.app-card .store { align-self: flex-start; min-width: 0; padding: 8px 16px 8px 14px; }
.app-card .store strong { font-size: 18px; }
.app-card .store svg { width: 24px; height: 24px; }

/* join */
.join { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.join-card { border-radius: 30px; padding: 40px; position: relative; overflow: hidden; min-height: 260px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; }
.join-card h3 { font-size: 30px; font-weight: 900; line-height: 1.2; }
.join-card p { font-size: 18px; opacity: .85; max-width: 420px; }
.join-card .btn { align-self: flex-start; margin-top: 8px; }
.join-card.driver { background: var(--night); color: #fff; }
.join-card.driver .btn { background: var(--primary); color: #fff; }
.join-card.vendor { background: var(--primary); color: #fff; }
.join-card.vendor .btn { background: #fff; color: var(--primary-dark); }
.join-card .mark { position: absolute; top: 24px; inset-inline-end: 24px; width: 120px; opacity: .18; }

/* faq */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 4px 22px; }
.faq summary { cursor: pointer; list-style: none; font-weight: 800; font-size: 19px; padding: 14px 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 26px; color: var(--primary); font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 0 16px; font-size: 17px; }

/* cta */
.cta { background: linear-gradient(135deg, #FF6C44, #FF8F5E); color: #fff; border-radius: 36px; padding: 60px 40px; text-align: center; position: relative; overflow: hidden; }
.cta h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 900; line-height: 1.2; }
.cta p { font-size: 19px; opacity: .9; margin: 10px auto 26px; max-width: 520px; }
.cta .store-row { justify-content: center; margin-top: 0; }
.cta .store { background: #fff; color: var(--ink); }
.cta .store.soon { background: rgba(255, 255, 255, .18); color: #fff; border-color: rgba(255, 255, 255, .35); }

/* footer */
.site-footer { background: var(--night); color: #A0A5BA; padding: 60px 0 30px; margin-top: 90px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.site-footer .brand { color: #fff; }
.site-footer p.about { margin-top: 12px; font-size: 16px; max-width: 360px; }
.site-footer h4 { color: #fff; font-size: 17px; font-weight: 900; margin-bottom: 12px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; font-size: 16px; }
.site-footer a:hover { color: var(--primary); }
.copy { border-top: 1px solid var(--night-card); margin-top: 40px; padding-top: 20px; font-size: 14px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.ltr { direction: ltr; unicode-bidi: embed; display: inline-block; }

/* ---------- Document pages (privacy, terms, support, delete account) ---------- */
.doc-hero { padding: 56px 0 30px; text-align: center; }
.doc-hero h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 900; line-height: 1.2; }
.doc-hero p { color: var(--muted); margin-top: 8px; }
.doc { max-width: 820px; margin: 0 auto; background: var(--card); border: 1px solid var(--border); border-radius: 28px; padding: 44px; }
.doc h2 { font-size: 24px; font-weight: 900; margin: 30px 0 8px; }
.doc h2:first-child { margin-top: 0; }
.doc p, .doc li { color: #3B3F4C; font-size: 18px; }
.doc ul, .doc ol { padding-inline-start: 22px; display: grid; gap: 6px; margin: 6px 0; }
.doc strong { color: var(--ink); }
.doc .note { background: var(--primary-soft); border-radius: 16px; padding: 16px 20px; margin: 18px 0; color: var(--ink); }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 10px 0 26px; }
.contact { border: 1px solid var(--border); border-radius: 18px; padding: 20px; display: grid; gap: 4px; transition: border-color .2s, transform .2s; }
.contact:hover { border-color: var(--primary); transform: translateY(-2px); }
.contact .ic { width: 44px; height: 44px; border-radius: 14px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; margin-bottom: 6px; }
.contact .ic svg { width: 22px; height: 22px; }
.contact strong { font-size: 18px; }
.contact span { color: var(--muted); font-size: 16px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-card { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .nav-links {
    display: none; position: absolute; top: 100%; inset-inline: 0; flex-direction: column; gap: 0;
    background: var(--card); border-bottom: 1px solid var(--border); padding: 8px 20px 16px; box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav-links a:last-child { border-bottom: 0; }
  .lang { margin-inline-start: auto; }
  .menu-btn { display: block; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin: 0 auto; }
  .store-row, .hero-stats { justify-content: center; }
  .phones { height: 560px; max-width: 460px; margin: 10px auto 0; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .apps { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .shots { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; scrollbar-width: none; }
  .shots::-webkit-scrollbar { display: none; }
  .shot { scroll-snap-align: center; flex-basis: 220px; }
  .shot:nth-child(n) .phone, .shot:nth-child(n) p { transform: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .nav { gap: 12px; height: 64px; }
  .lang button { padding: 3px 9px; font-size: 13px; }
  .brand { font-size: 19px; }
  .brand img { width: 34px; height: 34px; }
  .hero { padding: 30px 0 50px; }
  .phones { height: 470px; }
  .phone { width: 230px; border-radius: 38px; padding: 8px; }
  .phone img { border-radius: 31px; }
  .float-card { font-size: 13px; padding: 10px 12px; }
  .float-card.one { right: -6px; top: 40px; }
  .float-card.two { left: -6px; bottom: 40px; }
  section { padding: 64px 0; }
  .features, .steps, .join, .contact-grid { grid-template-columns: 1fr; }
  .steps { gap: 30px; }
  .shots-wrap { margin: 0; border-radius: 28px; padding: 60px 0; }
  .join-card { padding: 30px; min-height: 0; }
  .cta { padding: 44px 22px; border-radius: 28px; }
  .doc { padding: 26px 20px; border-radius: 22px; }
  .store { min-width: 0; }
  .foot-grid { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .site-header .brand span { display: none; }
  .phones { height: 430px; }
  .phone { width: 210px; }
  .phone.front { transform: translateX(-35%) rotate(-3deg); }
  .phone.back { transform: translateX(-90%) rotate(-10deg) scale(.88); }
}
/* floating cards sit over the back phone and the bottom edge, not the front screen */
.float-card.one { top: 150px; left: -10px; right: auto; }
.float-card.two { bottom: 30px; right: -10px; left: auto; }
@media (max-width: 760px) {
  .float-card.one { top: 110px; left: -6px; }
  .float-card.two { bottom: 20px; right: -6px; }
}
/* hero without phone pictures (until real photos are ready) */
.hero-solo { grid-template-columns: 1fr; text-align: center; max-width: 860px; }
.hero-solo p.lead { margin: 0 auto; }
.hero-solo .store-row, .hero-solo .hero-stats { justify-content: center; }
.hero:has(.hero-solo) { padding: 80px 0 70px; }
/* driver card: large logo mark (no background) behind the text */
.join-card .mark {
  top: auto; bottom: -6%; inset-inline-end: -8%; width: 78%; max-width: 520px; opacity: .16; z-index: 0; pointer-events: none;
}
.join-card > :not(.mark) { position: relative; z-index: 1; }
.join-card .mark { top: 50%; bottom: auto; transform: translateY(-45%); inset-inline-end: -6%; width: 88%; max-width: 560px; opacity: .17; }
.brand img { flex: none; }
.brand { min-width: 0; }
/* restaurant card: same mark in white on the orange card */
.join-card.vendor .mark { filter: brightness(0) invert(1); opacity: .2; }
