/* qiwimobility.com — shared styles for /, /contact/, /privacy/ */
:root {
  --bg: #050505;
  --card: #0e0e0e;
  --card-2: #131313;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #ffffff;
  --muted: #a1a1a1;
  --lead: #9ca3af;            /* lead paragraphs in the original hero and 404 */
  --dim: #8c8c8c;            /* 5.8:1 on the cards, 6:1 on the page (was #6d6d6d, 3.8:1) */
  --lime: #CACA2C;
  --lime-soft: rgba(202, 202, 44, .14);
  --radius: 26px;
  --f-display: "Outfit", "Cairo", system-ui, sans-serif;
  --f-body: "Plus Jakarta Sans", "Cairo", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}
html[lang="ar"] {
  --f-display: "Cairo", "Outfit", system-ui, sans-serif;
  --f-body: "Cairo", "Plus Jakarta Sans", system-ui, sans-serif;
}
/* Arabic visitors: hold the first paint until the Arabic text is in (max 1.2 s) */
html.i18n-wait body { visibility: hidden; animation: i18n-reveal 0s 1.2s forwards; }
@keyframes i18n-reveal { to { visibility: visible; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--f-body); font-size: 1rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; } /* no single word left alone on a last line */
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--lime); color: #000; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.ltr { direction: ltr; unicode-bidi: isolate; }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(5, 5, 5, .72); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 76px; }
.brand img { height: 42px; width: auto; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { color: var(--muted); font-size: 0.90625rem; font-weight: 500; transition: color .2s; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-btn {
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); border-radius: 999px;
  padding: 8px 14px; font-size: 0.84375rem; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; transition: background .2s, border-color .2s;
}
.lang-btn svg { width: 16px; height: 16px; opacity: .75; }
.lang-btn [data-lang-label="ar"] { font-family: "Cairo", sans-serif; }
.btn-get {
  background: var(--lime); color: #000; border-radius: 999px; padding: 10px 18px;
  font-weight: 700; font-size: 0.875rem; white-space: nowrap; transition: transform .2s var(--ease), box-shadow .2s;
}
.menu-btn { display: none; position: relative; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); flex: none; }
.menu-btn i { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: #fff; transition: transform .3s var(--ease), top .3s var(--ease); }
.menu-btn i:first-child { top: 15px; }
.menu-btn i:last-child { top: 22px; }
.nav.menu-open .menu-btn i:first-child { top: 18.5px; transform: rotate(45deg); }
.nav.menu-open .menu-btn i:last-child { top: 18.5px; transform: rotate(-45deg); }
.nav.menu-open { background: rgba(8, 8, 8, .97); border-bottom-color: var(--line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.mnav { position: absolute; top: 100%; left: 0; right: 0; background: rgba(8, 8, 8, .97); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); padding: 6px 0 22px; animation: mnav-in .32s var(--ease) both; }
.mnav.closing { animation: mnav-out .18s ease-in both; }
.mnav a:not(.btn-get) { display: block; padding: 15px 2px; font: 600 1.25rem/1.3 var(--f-display); border-bottom: 1px solid var(--line); color: #e8e8e8; }
.mnav a:not(.btn-get):active { color: var(--lime); }
.mnav-get { display: none; text-align: center; margin-top: 20px; padding: 14px 18px; font-size: 1rem; }
@media (max-width: 340px) { .mnav-get { display: block; } }
html.menu-dim main, html.menu-dim .footer { opacity: .3; transition: opacity .25s ease; }
@keyframes mnav-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes mnav-out { to { opacity: 0; transform: translateY(-8px); } }
@media (max-width: 900px) { .nav-links { display: none; } .menu-btn { display: grid; } }
@media (min-width: 901px) { .mnav { display: none; } }
@media (max-width: 420px) { .nav-actions { gap: 8px; } .brand img { height: 34px; } .btn-get { padding: 9px 13px; font-size: 0.8125rem; } .lang-btn { padding: 8px 11px; } }
@media (max-width: 380px) { .lang-btn svg { display: none; } }
@media (max-width: 340px) { .nav-actions > .btn-get { display: none; } }

/* language switch: crossfade (View Transitions where supported, plain fade otherwise) */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .34s; animation-timing-function: cubic-bezier(.4, 0, .2, 1); }
main, .footer, .nav-inner > * { transition: opacity .16s ease; }
html.lang-out main, html.lang-out .footer, html.lang-out .nav-inner > * { opacity: 0; }
.lang-btn svg { transition: transform .5s var(--ease); }
.lang-btn.spin svg { transform: rotate(180deg); }

/* ---------- shared bits ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; color: var(--lime);
  font: 600 0.8125rem/1 var(--f-display); letter-spacing: .16em; text-transform: uppercase;
}
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: 0.9375rem; text-transform: none; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }
.section { padding: 110px 0; position: relative; }
.sec-head { max-width: 680px; margin-bottom: 56px; }
.sec-head h2, .h2 {
  font: 700 clamp(2.125rem, 4.6vw, 3.625rem)/1.06 var(--f-display); letter-spacing: -.03em; margin: 16px 0 14px;
}
html[lang="ar"] .sec-head h2, html[lang="ar"] .h2 { letter-spacing: 0; line-height: 1.3; }
.sub { color: var(--muted); font-size: 1.09375rem; line-height: 1.75; margin: 0; }
.ic { display: grid; place-items: center; color: var(--lime); background: var(--lime-soft); }
.ic svg { width: 55%; height: 55%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* store buttons: one style everywhere (the original hero buttons) */
.stores { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 16px; width: max-content; max-width: 100%; } /* both buttons as wide as the wider one */

/* reveal on scroll (only when JS runs) */
html.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
html.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- hero: the original qiwimobility.com hero ---------- */
.hero-old { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 80px 0 0; text-align: center; }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .4; }
.hero-bg .ov1 { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 5, 5, .8) 0%, rgba(5, 5, 5, .9) 50%, #050505 100%); }
.hero-bg .ov2 { position: absolute; inset: 0; opacity: .5; background: radial-gradient(ellipse at center, rgba(202, 202, 44, .1), transparent 70%); }
.hero-inner { position: relative; z-index: 1; max-width: 896px; margin: 0 auto; }
.hero-old .kicker { color: var(--lime); font: 500 1rem/1.5 var(--f-display); letter-spacing: .05em; text-transform: uppercase; margin: 0 0 16px; }
html[lang="ar"] .hero-old .kicker { letter-spacing: 0; text-transform: none; }
.hero-old h1 { font: 700 6rem/1 var(--f-display); letter-spacing: -.025em; color: #fff; margin: 0; }
html[lang="ar"] .hero-old h1 { letter-spacing: 0; }
.hero-old h1 .grad { background: linear-gradient(90deg, #fff, #6b7280); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[dir="rtl"] .hero-old h1 .grad { background: linear-gradient(270deg, #fff, #6b7280); -webkit-background-clip: text; background-clip: text; }
.hero-old .lead { color: var(--lead); font-size: 1.25rem; line-height: 1.75rem; max-width: 672px; margin: 32px auto 0; }
.hero-old .stores { margin-inline: auto; }
.hero-old .a3 { margin-top: 32px; }
.store-old {
  display: flex; align-items: center; justify-content: center; gap: 12px; min-width: 200px; padding: 12px 24px; border-radius: 8px;
  background: #fff; color: #000; border: 2px solid transparent;
  transition: background-color .3s, color .3s, border-color .3s, box-shadow .3s, transform .2s var(--ease);
}
html[dir="rtl"] .store-old { flex-direction: row-reverse; }
.store-old .si { width: 32px; height: 32px; display: grid; place-items: center; flex: none; transition: transform .3s; }
.store-old.dark { background: #0a0a0a; color: #fff; border-color: #0a0a0a; }
.store-old .si svg { width: 100%; height: 100%; }
.store-old .st { display: flex; flex-direction: column; text-align: left; }
html[dir="rtl"] .store-old .st { text-align: right; }
.store-old small { font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; opacity: .7; line-height: 1; margin-bottom: 2px; }
html[lang="ar"] .store-old small { letter-spacing: 0; font-size: 0.75rem; }
.store-old b { font: 700 1.125rem/1.2 var(--f-display); }
html[lang="ar"] .store-old b { font-family: "Outfit", sans-serif; }
@keyframes fade-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes pop-in { from { opacity: 0; transform: scale(.95); } to { opacity: 1; transform: none; } }
.hero-old .a1 { animation: fade-up .8s ease-out both; }
.hero-old .a2 { animation: fade-up .8s .2s ease-out both; }
.hero-old .a3 { animation: pop-in .8s .4s both; }
@media (max-width: 1023px) { .hero-old h1 { font-size: 4.5rem; } }
@media (max-width: 767px) { .hero-old .kicker { font-size: 0.875rem; line-height: 1.25rem; } .hero-old h1 { font-size: 3rem; line-height: 1.1; } .hero-old .lead { font-size: 1.125rem; line-height: 1.625; } }
@media (max-width: 639px) {
  .hero-old .stores { grid-auto-flow: row; }
  .cta .stores { grid-auto-flow: row; width: 100%; max-width: 340px; }
}

/* ---------- bento features ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(240px, auto); gap: 18px; }
.card {
  position: relative; overflow: hidden; border-radius: var(--radius); padding: 32px;
  background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--line);
  transition: border-color .3s, transform .4s var(--ease);
  display: flex; flex-direction: column; justify-content: flex-end;
}
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(202, 202, 44, .13), transparent 45%);
}
.card > * { position: relative; }
.card .ic { width: 54px; height: 54px; border-radius: 17px; margin-bottom: 26px; }
.card h3 { font: 700 1.5625rem/1.2 var(--f-display); letter-spacing: -.015em; margin: 0 0 10px; }
html[lang="ar"] .card h3 { letter-spacing: 0; }
.card p { color: var(--muted); margin: 0; line-height: 1.75; max-width: 440px; }
.card.big { grid-row: span 2; background: radial-gradient(120% 80% at 50% 0%, rgba(202, 202, 44, .14), transparent 60%), linear-gradient(180deg, var(--card-2), var(--card)); }
.card.wide { grid-column: span 2; }
.radar { position: absolute !important; top: 34px; left: 50%; width: 230px; height: 230px; transform: translateX(-50%); display: grid; place-items: center; }
.radar i { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(202, 202, 44, .35); animation: radar 3.6s var(--ease) infinite; opacity: 0; }
.radar i:nth-child(2) { animation-delay: 1.2s; }
.radar i:nth-child(3) { animation-delay: 2.4s; }
@keyframes radar { 0% { transform: scale(.35); opacity: .9; } 100% { transform: scale(1); opacity: 0; } }
.radar .core { width: 92px; height: 92px; border-radius: 30px; background: var(--lime); color: #000; display: grid; place-items: center; box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .75); }
.radar .core svg { width: 46px; height: 46px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card.big h3 { font-size: 2rem; }
.speed { display: flex; gap: 6px; margin-bottom: 22px; }
.speed i { height: 6px; border-radius: 6px; background: var(--lime); animation: speed 1.6s var(--ease) infinite; transform-origin: left; }
html[dir="rtl"] .speed i { transform-origin: right; }
.speed i:nth-child(1) { width: 56px; } .speed i:nth-child(2) { width: 34px; animation-delay: .15s; opacity: .7; } .speed i:nth-child(3) { width: 18px; animation-delay: .3s; opacity: .45; }
@keyframes speed { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(.45); } }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; position: relative; }
.step { position: relative; padding: 34px 32px 36px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.step .num { font: 800 4.25rem/1 var(--f-display); letter-spacing: -.04em; margin-bottom: 30px; direction: ltr; text-align: start; width: fit-content; background: linear-gradient(180deg, var(--lime) 10%, rgba(202, 202, 44, .12) 95%); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[dir="rtl"] .step .num { margin-inline-start: 0; }
.step .ic { position: absolute; top: 34px; inset-inline-end: 32px; width: 46px; height: 46px; border-radius: 15px; }
.step h3 { font: 700 1.4375rem/1.25 var(--f-display); margin: 0 0 10px; }
.step p { color: var(--muted); margin: 0; line-height: 1.75; }
.step::after { content: ""; position: absolute; inset: auto 0 0 0; height: 3px; background: linear-gradient(90deg, var(--lime), transparent); transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease) .3s; }
html[dir="rtl"] .step::after { background: linear-gradient(270deg, var(--lime), transparent); transform-origin: right; }
.step.in::after { transform: scaleX(1); }

/* ---------- app gallery ---------- */
.gallery-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.shots { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 20px 18px; margin: 0 -20px; scrollbar-width: none; overscroll-behavior-x: contain; }
.shots::-webkit-scrollbar { display: none; }
.shots.more { -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); }
html[dir="rtl"] .shots.more { -webkit-mask-image: linear-gradient(270deg, #000 82%, transparent); mask-image: linear-gradient(270deg, #000 82%, transparent); }
.shots img {
  height: min(540px, 118vw); width: auto; border-radius: 24px; scroll-snap-align: center; flex: none;
  border: 1px solid var(--line); background: #111; transition: transform .5s var(--ease);
}
.shots[data-lang="ar"] { display: none; }
html[lang="ar"] .shots[data-lang="en"] { display: none; }
html[lang="ar"] .shots[data-lang="ar"] { display: flex; }
.scroll-btns { display: flex; gap: 10px; }
.scroll-btns button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); display: grid; place-items: center; transition: background .2s, border-color .2s; }
.scroll-btns svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
html[dir="rtl"] .scroll-btns svg { transform: scaleX(-1); }

/* ---------- CTA band ---------- */
.cta { position: relative; overflow: hidden; border-radius: 38px; background: var(--lime); color: #000; padding: 76px 60px 170px; }
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 85% 0%, rgba(255, 255, 255, .35), transparent 70%); pointer-events: none; }
.cta > * { position: relative; }
.cta .h2 { color: #000; max-width: 640px; margin-top: 0; }
.cta p { font-size: 1.125rem; max-width: 520px; margin: 0 0 32px; color: rgba(0, 0, 0, .72); }
.road { position: absolute !important; inset: auto 0 0 0; height: 104px; background: #0b0b0b; overflow: hidden; }
.road::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .5) 0 34px, transparent 34px 72px); animation: lane .7s linear infinite; }
html[dir="rtl"] .road::before { animation-direction: reverse; }
@keyframes lane { to { background-position: -72px 0; } }
.road::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #0b0b0b, transparent 18%, transparent 82%, #0b0b0b); }
.road .car { position: absolute; z-index: 1; top: 50%; inset-inline-end: 14%; width: 84px; height: auto; transform: translateY(-50%) rotate(90deg); animation: bob 1.4s ease-in-out infinite; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .6)); }
html[dir="rtl"] .road .car { transform: translateY(-50%) rotate(-90deg); animation-name: bob-rtl; }
@keyframes bob { 50% { transform: translateY(calc(-50% - 2px)) rotate(90deg); } }
@keyframes bob-rtl { 50% { transform: translateY(calc(-50% - 2px)) rotate(-90deg); } }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 72px 0 34px; margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; }
.foot-brand img { height: 64px; width: auto; margin-bottom: 18px; }
.foot-brand p { color: var(--muted); max-width: 360px; margin: 0; line-height: 1.75; }
.foot-title { color: var(--lime); font: 700 0.8125rem var(--f-display); letter-spacing: .14em; text-transform: uppercase; margin: 0 0 18px; }
html[lang="ar"] .foot-title { letter-spacing: 0; font-size: 0.9375rem; text-transform: none; }
.contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact {
  display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 18px;
  background: rgba(255, 255, 255, .03); border: 1px solid var(--line); transition: border-color .25s, background .25s;
}
.contact .ic { width: 42px; height: 42px; border-radius: 13px; flex: none; }
.contact small { display: block; color: var(--dim); font-size: 0.71875rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 3px; }
html[lang="ar"] .contact small { letter-spacing: 0; font-size: 0.78125rem; text-transform: none; }
.contact a { font: 600 1.03125rem/1.3 var(--f-display); transition: color .2s; word-break: break-word; }
html[lang="ar"] .contact a { font-family: "Outfit", sans-serif; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--line); color: var(--dim); font-size: 0.875rem; }

/* ---------- inner pages ---------- */
.page-hero { position: relative; padding: 156px 0 56px; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: -40% -20% auto; height: 120%; background: radial-gradient(560px 300px at 50% 30%, rgba(202, 202, 44, .14), transparent 70%); pointer-events: none; }
.page-hero > .wrap { position: relative; }
.page-hero h1 { font: 700 clamp(2.625rem, 6.4vw, 5rem)/1.04 var(--f-display); letter-spacing: -.04em; margin: 18px 0 16px; }
html[lang="ar"] .page-hero h1 { letter-spacing: 0; line-height: 1.3; }
.back { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 0.875rem; font-weight: 600; transition: color .2s; }
.back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
html[dir="rtl"] .back svg { transform: scaleX(-1); }

.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.contact-grid .contact { padding: 24px; border-radius: 22px; }
.contact-grid .contact .ic { width: 52px; height: 52px; border-radius: 16px; }
.contact-grid .contact a { font-size: 1.3125rem; }
.contact.wide { grid-column: 1 / -1; }
.note { margin-top: 18px; padding: 24px 26px; border-radius: 22px; background: var(--lime-soft); border: 1px solid rgba(202, 202, 44, .3); color: #e9e9b8; display: flex; gap: 16px; align-items: flex-start; line-height: 1.75; }
.note svg { width: 24px; height: 24px; flex: none; color: var(--lime); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }

.legal-wrap { display: grid; grid-template-columns: 270px 1fr; gap: 64px; align-items: start; padding-bottom: 40px; }
.toc { position: sticky; top: 100px; max-height: calc(100vh - 130px); overflow: auto; padding-inline-end: 6px; scrollbar-width: thin; }
.toc p { color: var(--dim); font-size: 0.75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 14px; }
html[lang="ar"] .toc p { letter-spacing: 0; font-size: 0.8125rem; }
.toc a { display: block; padding: 7px 14px; border-inline-start: 2px solid var(--line); color: var(--muted); font-size: 0.875rem; line-height: 1.45; transition: color .2s, border-color .2s; }
.toc a.on { color: var(--lime); border-color: var(--lime); }
.legal-sec { padding: 34px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 96px; }
.legal-sec:first-child { padding-top: 0; }
.legal-sec h2 { font: 700 1.5rem/1.3 var(--f-display); letter-spacing: -.01em; margin: 0 0 14px; }
html[lang="ar"] .legal-sec h2 { letter-spacing: 0; }
.legal-sec p { color: #cfcfcf; line-height: 1.9; margin: 0 0 14px; max-width: 36rem; } /* ~75 characters; ch is no good here, Plus Jakarta's zero is 12px wide */
.legal-sec ul { margin: 0 0 14px; padding-inline-start: 22px; max-width: 36rem; }
html[lang="ar"] .legal-sec p, html[lang="ar"] .legal-sec ul { max-width: 30rem; } /* Cairo is narrower: ~75 characters */
.legal-sec li { color: #bdbdbd; line-height: 1.85; margin: 6px 0; }
.legal-sec li::marker { color: var(--lime); }
.legal-sec .extra { padding-top: 14px; border-top: 1px dashed var(--line-2); }
.legal-cta { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 18px; padding: 16px; border-radius: 16px; border: 1px solid rgba(202, 202, 44, .5); background: var(--lime-soft); color: var(--lime); font-weight: 700; transition: background .2s, color .2s; }
.legal-cta svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[data-lang="ar"].legal { display: none; }
html[lang="ar"] [data-lang="en"].legal { display: none; }
html[lang="ar"] [data-lang="ar"].legal { display: block; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .card.big { grid-row: auto; grid-column: 1 / -1; min-height: 420px; }
  .card.wide { grid-column: 1 / -1; }
  .steps { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 40px; }
  .legal-wrap { grid-template-columns: 1fr; }
  .toc { display: none; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .section { padding: 64px 0; }
  #why { padding-top: 8px; }
  .sec-head { margin-bottom: 36px; }
  .card.big { min-height: 330px; }
  .radar { top: 22px; width: 190px; height: 190px; }
  .radar .core { width: 80px; height: 80px; border-radius: 26px; }
  .scroll-btns { display: none; }
  .gallery-head .sec-head { margin-bottom: 28px !important; }
  .step { padding: 28px 24px 30px; }
  .step .num { font-size: 3.5rem; margin-bottom: 22px; }
  .step .ic { top: 28px; inset-inline-end: 24px; }
  .footer { padding-top: 56px; }
  .foot-brand img { height: 52px; }
  .bento { grid-template-columns: 1fr; }
  .card { padding: 26px; }
  .contacts, .contact-grid { grid-template-columns: 1fr; }
  .cta { padding: 52px 26px 150px; border-radius: 28px; }
  .shots { padding: 6px 16px 18px; margin: 0 -16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  html { scroll-behavior: auto; }
  html.js [data-reveal] { opacity: 1; transform: none; }
}

/* decorative bits (kept after the media queries on purpose) */
.big247 {
  position: absolute !important; inset-inline-end: 28px; top: 50%; transform: translateY(-50%);
  font: 800 clamp(5.625rem, 13vw, 10.5rem)/1 var(--f-display); letter-spacing: -.05em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(202, 202, 44, .32); pointer-events: none;
}
@media (max-width: 640px) { .big247 { top: 26px; transform: none; font-size: 5.25rem; } }

@media (min-width: 641px) { .card.wide h3, .card.wide p { max-width: min(520px, calc(100% - 330px)); } }
.scroll-btns.off { visibility: hidden; }

/* ---------- 404: the original design (phone with a map + "Wrong Turn?"), rebuilt ---------- */
.p404-body { min-height: 100vh; overflow-x: hidden; }
.p404-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.p404-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .2; filter: grayscale(1); }
.p404-bg .ov1 { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 5, 5, .8), rgba(5, 5, 5, .95) 50%, #050505); }
.p404-bg .ov2 { position: absolute; inset: 0; background: radial-gradient(circle at center, rgba(202, 202, 44, .05), transparent 60%); }
.p404-top { position: absolute; z-index: 5; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; }
.p404-top .brand img { height: 40px; width: auto; }
.p404 { position: relative; z-index: 1; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 84px 24px 72px; }
.p404-main { width: 100%; max-width: 1152px; display: flex; align-items: center; justify-content: center; gap: 96px; }

/* phone: drawn at 320x650 and scaled with --k so everything inside stays in proportion */
.phone-wrap { --k: 1; position: relative; flex: none; width: calc(320px * var(--k)); height: calc(650px * var(--k)); }
.phone {
  position: absolute; left: 50%; top: 50%; width: 320px; height: 650px;
  transform: translate(-50%, -50%) scale(var(--k)) rotate(-6deg); transition: transform .7s ease-out;
  background: #000; border: 8px solid #18181b; border-radius: 40px; box-shadow: 0 20px 60px -10px rgba(0, 0, 0, .7);
}
.screen { position: relative; width: 100%; height: 100%; border-radius: 32px; overflow: hidden; background: #0f0f0f; }
.p404-map { position: absolute; inset: 0; width: 100%; height: 100%; }
.route-dash { animation: route-flow 1.2s linear infinite; }
@keyframes route-flow { to { stroke-dashoffset: -32; } }
.ping404 { transform-box: fill-box; transform-origin: center; animation: ping404 1.6s cubic-bezier(0, 0, .2, 1) infinite; }
@keyframes ping404 { 75%, 100% { transform: scale(2.2); opacity: 0; } }
.ring404 { transform-box: fill-box; transform-origin: center; animation: ring404 2s cubic-bezier(.4, 0, .6, 1) infinite; }
@keyframes ring404 { 0% { transform: scale(.8); opacity: 1; } 100% { transform: scale(2.5); opacity: 0; } }
.search-pill { position: absolute; z-index: 3; top: 24px; left: 16px; right: 16px; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 999px; background: rgba(39, 39, 42, .9); border: 1px solid rgba(255, 255, 255, .1); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 10px 20px rgba(0, 0, 0, .3); }
.sdot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }
.sbar { width: 96px; height: 8px; border-radius: 999px; background: #52525b; }
.sheet { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; padding: 24px; border-radius: 24px 24px 0 0; background: #18181b; border-top: 1px solid rgba(255, 255, 255, .05); }
.handle { width: 48px; height: 4px; margin: 0 auto 24px; border-radius: 999px; background: #3f3f46; }
.sheet-row { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 8px; }
.s-label { margin: 0 0 4px; color: #71717a; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
html[lang="ar"] .s-label { letter-spacing: 0; text-transform: none; font-size: 13px; }
.s-value { margin: 0; font-size: 18px; font-weight: 700; color: #fff; }
.s-code { margin: 0; font: 700 36px/1 var(--f-display); color: var(--lime); text-shadow: 0 2px 6px rgba(0, 0, 0, .4); }
html[lang="ar"] .s-code { font-family: "Outfit", sans-serif; }
.loadbar { height: 4px; border-radius: 999px; background: #27272a; overflow: hidden; }
.loadbar i { display: block; height: 100%; width: 33%; background: var(--lime); animation: load404 2s ease-in-out infinite; }
@keyframes load404 { 0% { width: 0%; margin-inline-start: 0; } 50% { width: 50%; } 100% { width: 0%; margin-inline-start: 100%; } }

/* text column */
.p404-text { max-width: 512px; text-align: start; }
.p404-text h1 { margin: 0; }
.p404-text .code { display: block; font: 700 8rem/1 var(--f-display); background: linear-gradient(135deg, var(--lime), #fff); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[lang="ar"] .p404-text .code { font-family: "Outfit", sans-serif; }
html[dir="rtl"] .p404-text .code { text-align: right; }
@media (max-width: 767px) { html[dir="rtl"] .p404-text .code { text-align: center; } }
.p404-text .t { display: block; margin-top: 16px; font: 700 3rem/1.25 var(--f-body); letter-spacing: .025em; color: #fff; }
html[lang="ar"] .p404-text .t { letter-spacing: 0; font-family: "Cairo", sans-serif; }
.p404-text .desc { margin: 32px 0 0; color: var(--lead); font-size: 1.25rem; line-height: 1.625; }
.home-btn {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 32px; padding: 16px 32px; border-radius: 12px;
  background: #fff; color: #000; font-weight: 700; font-size: 1.125rem;
  transition: background-color .3s, box-shadow .3s, transform .3s;
}
.home-btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s; }
.help { margin: 22px 0 0; color: #8b93a1; font-size: 0.9375rem; }
.help a { color: #d4d4d8; text-decoration: underline; text-decoration-color: rgba(202, 202, 44, .5); text-underline-offset: 4px; transition: color .2s; }
.p404-foot { position: absolute; bottom: 24px; left: 0; right: 0; margin: 0; text-align: center; color: #8b93a1; font-size: 0.875rem; }

/* entrance, same feel as the home hero */
.p404 .phone-wrap { animation: pop-in .9s ease-out both; }
.p404-text > * { animation: fade-up .8s ease-out both; }
.p404-text > :nth-child(2) { animation-delay: .1s; } .p404-text > :nth-child(3) { animation-delay: .2s; } .p404-text > :nth-child(4) { animation-delay: .3s; }

@media (max-width: 1023px) { .p404-main { gap: 56px; } .p404-text .code { font-size: 7rem; } }
/* phones: smaller phone so the message and the button fit on the first screen */
@media (max-width: 767px) {
  .p404 { padding: 76px 20px 32px; justify-content: flex-start; }
  .p404-main { flex-direction: column; gap: 22px; }
  .phone-wrap { --k: .6; }
  .p404-text { text-align: center; }
  .p404-text .code { font-size: 4.5rem; }
  .p404-text .t { margin-top: 6px; font-size: 1.875rem; }
  .p404-text .desc { margin-top: 14px; font-size: 1.03125rem; }
  .home-btn { margin-top: 20px; padding: 14px 26px; font-size: 1rem; }
  .help { margin-top: 16px; }
  .p404-foot { position: static; margin-top: 28px; }
  .p404-top { padding: 14px 16px; }
  .p404-top .brand img { height: 34px; }
}
@media (max-width: 767px) and (max-height: 700px) { .phone-wrap { --k: .5; } }

/* ---------- a11y fixes (audit 2026-10-26) ---------- */
/* skip link: first Tab stop on every page */
.skip { position: absolute; z-index: 100; top: -64px; inset-inline-start: 16px; padding: 12px 18px; border-radius: 12px; background: var(--lime); color: #000; font-weight: 700; transition: top .2s var(--ease); }
.skip:focus { top: 12px; }
main:focus { outline: none; }
/* contact cards: the whole card is the tap target when it holds one number/address */
.contact { position: relative; }
.contact.one a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.contact.one a:focus-visible { outline: none; }
.contact.one:has(a:focus-visible) { outline: 2px solid var(--lime); outline-offset: 3px; }
/* small text links get a 44px-tall hit area without moving the layout */
.contact:not(.one) a, .foot-bottom a, .back, .help a { display: inline-block; padding-block: 12px; margin-block: -12px; }
.back { display: inline-flex; }
/* the screenshot strip is keyboard-scrollable, so it shows focus like everything else */
.shots:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; border-radius: 26px; }

/* hover effects only where a pointer can hover, so a tap on a phone never leaves a button "hovered" */
@media (hover: hover) {
  .nav-links a:hover { color: #fff; }
  .lang-btn:hover { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .25); }
  .btn-get:hover { transform: translateY(-1px); box-shadow: 0 10px 30px -10px rgba(202, 202, 44, .7); }
  .store-old:hover { background: var(--lime); border-color: var(--lime); box-shadow: 0 0 20px rgba(0, 224, 124, .3); }
  .store-old:hover .si { transform: scale(1.1); }
  .store-old.dark:hover { background: #fff; color: #000; border-color: #fff; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .45); }
  .card:hover { border-color: rgba(202, 202, 44, .28); }
  .card:hover::before { opacity: 1; }
  .shots img:hover { transform: translateY(-6px) rotate(-.6deg); }
  .scroll-btns button:hover { background: var(--lime); border-color: var(--lime); color: #000; }
  .contact:hover { border-color: rgba(202, 202, 44, .3); background: rgba(202, 202, 44, .04); }
  .contact a:hover { color: var(--lime); }
  .foot-bottom a:hover { color: var(--lime); }
  .back:hover { color: var(--lime); }
  .toc a:hover { color: #fff; }
  .legal-cta:hover { background: var(--lime); color: #000; }
  .phone-wrap:hover .phone { transform: translate(-50%, -50%) scale(var(--k)) rotate(0deg); }
  .home-btn:hover { background: var(--lime); transform: scale(1.05); box-shadow: 0 0 30px rgba(202, 202, 44, .4); }
  .home-btn:hover svg { transform: translateX(4px); }
  html[dir="rtl"] .home-btn:hover svg { transform: translateX(-4px); }
  .help a:hover { color: var(--lime); }
}

/* press feedback for touch and mouse alike */
a, button { -webkit-tap-highlight-color: transparent; }
.btn-get:active, .store-old:active, .home-btn:active, .legal-cta:active, .lang-btn:active, .menu-btn:active, .scroll-btns button:active { transform: scale(.97); }
.contact.one:active { transform: scale(.985); }
.contact { transition: border-color .25s, background .25s, transform .15s var(--ease); }
.lang-btn, .menu-btn, .scroll-btns button, .legal-cta { transition: background .2s, border-color .2s, color .2s, transform .15s var(--ease); }

/* phone numbers line up digit for digit */
.contact a { font-variant-numeric: tabular-nums; }

/* the page scrollbar, as on the original site: dark, lime under the pointer */
html { scrollbar-color: #2e2e2e var(--bg); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2e2e2e; border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--lime); }

/* tablets: the three steps fit side by side */
@media (min-width: 700px) and (max-width: 1000px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .step { padding: 26px 22px 28px; }
  .step .ic { top: 26px; inset-inline-end: 22px; width: 40px; height: 40px; border-radius: 13px; }
  .step .num { font-size: 3.25rem; margin-bottom: 22px; }
  .step h3 { font-size: 1.25rem; }
}

/* phones held sideways: keep the hero message and the 404 inside the short screen */
@media (orientation: landscape) and (max-height: 500px) {
  .hero-old { padding-top: 76px; }
  .hero-old .kicker { font-size: 0.8125rem; margin-bottom: 8px; }
  .hero-old h1 { font-size: 2.5rem; line-height: 1.1; }
  .hero-old .lead { font-size: 0.9375rem; line-height: 1.5rem; margin-top: 12px; }
  .hero-old .a3 { margin-top: 16px; }
  .hero-old .stores { grid-auto-flow: column; }
  .store-old { min-width: 0; padding: 8px 16px; }
  .p404 { padding: 64px 24px 16px; justify-content: center; }
  .p404-main { flex-direction: row; gap: 40px; }
  .phone-wrap { --k: .42; }
  .p404-text { text-align: start; }
  .p404-text .code { font-size: 4rem; }
  .p404-text .t { margin-top: 4px; font-size: 1.75rem; }
  .p404-text .desc { margin-top: 10px; font-size: 0.9375rem; }
  .home-btn { margin-top: 14px; padding: 10px 20px; font-size: 0.9375rem; }
  .help { margin-top: 10px; }
  .p404-foot { display: none; }
}
