/* QuickDelivery Pro — landing site
   One stylesheet, no framework: the page must render fast on a 3G phone in
   Fès, which is exactly the device our customers use. */

:root {
  --primary: #C1272D;
  --primary-dark: #9B1F24;
  --secondary: #006233;
  --ink: #0B1220;
  --ink-soft: #334155;
  --muted: #64748B;
  --line: #E4E8EF;
  --canvas: #F7F8FA;
  --surface: #FFFFFF;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(11,18,32,.04), 0 12px 32px -12px rgba(11,18,32,.12);
  --max: 1120px;
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--ink);
  background: var(--surface); line-height: 1.6; font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
html[dir="rtl"] body { font-family: 'Noto Sans Arabic', var(--font); }

img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }

/* ---------- Typography ---------- */
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1rem; }
.lead { font-size: clamp(1.02rem, 1.8vw, 1.18rem); color: var(--muted); max-width: 56ch; }
.eyebrow {
  font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--primary); margin: 0 0 14px;
}
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--alt { background: var(--canvas); border-block: 1px solid var(--line); }
.section-head { max-width: 60ch; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.section-head .lead { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
  text-decoration: none; font-family: inherit; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid rgba(193,39,45,.4); outline-offset: 2px; }
.btn--primary { background: var(--primary); color: #fff; box-shadow: 0 10px 24px -10px rgba(193,39,45,.7); }
.btn--primary:hover { background: var(--primary-dark); }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--muted); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--block { display: flex; width: 100%; }
.btn[disabled] { opacity: .55; cursor: progress; transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 8px; flex: none;
  object-fit: contain; background: #fff;
}
.nav-links { display: flex; gap: 26px; margin-inline-start: auto; }
.nav-links a { color: var(--ink-soft); font-weight: 600; font-size: .92rem; }
.nav-links a:hover { color: var(--primary); text-decoration: none; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch { display: flex; gap: 2px; background: var(--canvas); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang-switch button {
  border: 0; background: transparent; padding: 5px 11px; border-radius: 999px; cursor: pointer;
  font: 700 .72rem/1 var(--font); color: var(--muted); text-transform: uppercase; letter-spacing: .06em;
}
.lang-switch button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(11,18,32,.12); }
@media (max-width: 860px) { .nav-links { display: none; } }

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 8vw, 96px) 0 clamp(64px, 8vw, 104px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { margin-bottom: 20px; }
.hero .lead { font-size: clamp(1.05rem, 2vw, 1.22rem); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 20px; }
.hero-note { font-size: .85rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.badge {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; border-radius: 999px;
  background: var(--canvas); border: 1px solid var(--line); font-size: .78rem; font-weight: 700; color: var(--ink-soft);
}
.badge svg { width: 13px; height: 13px; }

/* ---------- Phone mockup ---------- */
.phone-stage { position: relative; display: grid; place-items: center; min-height: 480px; }
.phone-stage::before {
  content: ''; position: absolute; inset: 8% 4%; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, rgba(193,39,45,.22), transparent 62%),
              radial-gradient(circle at 68% 70%, rgba(0,98,51,.18), transparent 60%);
  filter: blur(46px);
}
.phone {
  position: relative; width: min(300px, 78vw); aspect-ratio: 9 / 19;
  background: var(--ink); border-radius: 40px; padding: 9px;
  box-shadow: 0 40px 80px -28px rgba(11,18,32,.5), 0 0 0 1px rgba(255,255,255,.08) inset;
}
.phone-screen {
  width: 100%; height: 100%; background: var(--canvas); border-radius: 32px; overflow: hidden;
  display: flex; flex-direction: column;
}
.phone-notch {
  position: absolute; top: 9px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 20px; background: var(--ink); border-radius: 0 0 14px 14px; z-index: 3;
}
.pui-header {
  background: var(--primary); color: #fff; padding: 26px 16px 14px;
  display: flex; align-items: center; justify-content: space-between; flex: none;
}
.pui-header strong { font-size: .82rem; letter-spacing: -.01em; }
.pui-body { padding: 12px; display: flex; flex-direction: column; gap: 9px; overflow: hidden; flex: 1; }
.pui-row { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.pui-card { background: #fff; border-radius: 15px; padding: 11px; box-shadow: 0 1px 3px rgba(11,18,32,.06); }
.pui-label { font-size: .5rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #94A3B8; }
.pui-value { font-size: 1.02rem; font-weight: 800; margin-top: 3px; }
.pui-value.red { color: var(--primary); } .pui-value.green { color: var(--secondary); }
.pui-cta {
  background: var(--primary); color: #fff; border-radius: 16px; padding: 13px;
  text-align: center; font-weight: 800; font-size: .82rem;
}
.pui-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pui-avatar { width: 26px; height: 26px; border-radius: 9px; background: var(--canvas); display: grid; place-items: center; font-size: .72rem; flex: none; }
.pui-name { font-size: .68rem; font-weight: 800; }
.pui-meta { font-size: .52rem; color: #94A3B8; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.pui-amt { font-size: .72rem; font-weight: 800; color: var(--secondary); white-space: nowrap; }
.pui-bars { display: flex; align-items: flex-end; gap: 5px; height: 54px; padding-top: 8px; }
.pui-bars span { flex: 1; background: var(--primary); border-radius: 4px; opacity: .85; }
.pui-nav {
  background: #fff; border-top: 1px solid var(--line); display: flex; justify-content: space-around;
  padding: 8px 0 11px; flex: none;
}
.pui-nav i { font-style: normal; font-size: .78rem; opacity: .32; }
.pui-nav i:first-child { opacity: 1; }

/* ---------- Logo strip ---------- */
.strip { padding: 26px 0; border-bottom: 1px solid var(--line); }
.strip-inner { display: flex; flex-wrap: wrap; gap: 14px 40px; justify-content: center; align-items: center; }
.strip-item { font-size: .8rem; font-weight: 700; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.strip-item svg { width: 15px; height: 15px; color: var(--secondary); flex: none; }

/* ---------- Cards / features ---------- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 880px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; color: var(--muted); font-size: .93rem; }
.card-icon {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  margin-bottom: 16px; background: rgba(193,39,45,.09); color: var(--primary);
}
.card-icon svg { width: 20px; height: 20px; }
.card-icon.green { background: rgba(0,98,51,.09); color: var(--secondary); }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 52px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; inset-inline-start: 0; width: 38px; height: 38px; border-radius: 12px;
  background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .95rem;
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--muted); font-size: .93rem; margin: 0; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
@media (max-width: 900px) { .price-grid { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; } }
.plan {
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 30px;
  display: flex; flex-direction: column; box-shadow: var(--shadow); position: relative;
}
.plan--featured { border: 2px solid var(--primary); box-shadow: 0 24px 56px -24px rgba(193,39,45,.45); }
@media (min-width: 901px) { .plan--featured { transform: scale(1.035); } }
.plan-flag {
  position: absolute; top: -13px; inset-inline-start: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff; font-size: .68rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase; padding: 6px 15px; border-radius: 999px; white-space: nowrap;
}
html[dir="rtl"] .plan-flag { transform: translateX(50%); }
.plan-name { font-size: 1.02rem; font-weight: 800; margin-bottom: 4px; }
.plan-tag { font-size: .84rem; color: var(--muted); margin-bottom: 20px; min-height: 2.6em; }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; flex-wrap: wrap; }
.plan-amount { font-size: 2.5rem; font-weight: 800; letter-spacing: -.03em; }
.plan-period { color: var(--muted); font-weight: 600; font-size: .92rem; }
.plan-sub { font-size: .8rem; color: var(--secondary); font-weight: 700; min-height: 1.4em; margin-bottom: 22px; }
.plan ul { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 11px; flex: 1; }
.plan li { display: flex; gap: 10px; font-size: .9rem; align-items: flex-start; color: var(--ink-soft); }
.plan li svg { width: 17px; height: 17px; color: var(--secondary); flex: none; margin-top: 3px; }
.plan li.off { color: #A3AEC0; }
.plan li.off svg { color: #CBD5E1; }
.price-foot { margin-top: 26px; text-align: center; font-size: .85rem; color: var(--muted); }

/* ---------- Currency picker ---------- */
.currency-picker {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 22px;
  padding: 7px 8px 7px 16px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface);
}
.currency-picker label { font-size: .82rem; font-weight: 600; color: var(--muted); }
.currency-picker select {
  appearance: none; border: 0; background: var(--canvas); color: var(--ink);
  font: 800 .82rem/1 var(--font); padding: 8px 30px 8px 12px; border-radius: 999px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='3'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 11px;
}
.currency-picker select:focus-visible { outline: 3px solid rgba(193,39,45,.4); outline-offset: 2px; }
.currency-note {
  margin: 10px auto 0; font-size: .78rem; color: var(--muted); max-width: 46ch;
}

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px;
}
.faq details[open] { border-color: #CBD5E1; }
.faq summary {
  cursor: pointer; font-weight: 700; font-size: .96rem; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.3rem; color: var(--muted); font-weight: 400; flex: none; }
.faq details[open] summary::after { content: '−'; }
.faq p { margin: 12px 0 0; color: var(--muted); font-size: .92rem; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: #fff; padding: clamp(56px, 7vw, 88px) 0; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band .lead { color: #94A3B8; margin-inline: auto; margin-bottom: 30px; }
.cta-band .btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.28); }
.cta-band .btn--ghost:hover { border-color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--canvas); border-top: 1px solid var(--line); padding: 56px 0 32px; font-size: .88rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 0 0 14px; font-weight: 800; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-grid a { color: var(--ink-soft); }
.footer-bottom {
  border-top: 1px solid var(--line); padding-top: 24px; display: flex; flex-wrap: wrap;
  gap: 12px; justify-content: space-between; color: var(--muted); font-size: .82rem;
}

/* ---------- Utility ---------- */
.notice {
  border-radius: 12px; padding: 14px 16px; font-size: .9rem; font-weight: 600; margin-top: 16px;
  border: 1px solid; display: none;
}
.notice.show { display: block; }
.notice--error { background: #FEF2F2; border-color: #FECACA; color: #991B1B; }
.notice.ok { background: #F0FDF4; border-color: #BBF7D0; color: #166534; }
.skip-link {
  position: absolute; inset-inline-start: -9999px; top: 8px; background: var(--ink); color: #fff;
  padding: 10px 18px; border-radius: 8px; z-index: 100;
}
.skip-link:focus { inset-inline-start: 8px; }

/* Legal / account pages */
.doc { max-width: 760px; margin: 0 auto; padding: 56px 24px 88px; }
.doc h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 6px; }
.doc .updated { color: var(--muted); font-size: .86rem; margin-bottom: 40px; }
.doc h2 { font-size: 1.2rem; margin: 36px 0 10px; }
.doc p, .doc li { color: var(--ink-soft); font-size: .95rem; }
.doc ul { padding-inline-start: 22px; }
.doc li { margin-bottom: 7px; }
.field { display: block; margin-bottom: 16px; }
.field span { display: block; font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.field input {
  width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px;
  font: 700 1rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .06em;
  text-transform: uppercase; background: var(--surface); color: var(--ink);
}
.field input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(193,39,45,.14); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
