/*!
 * MOTOX landing page. Plain CSS, no framework.
 * Colours: user/lib/core/theme/app_colors.dart · Fonts: Inter (Latin) + Cairo (Arabic only, unicode-range).
 * Direction-neutral: logical properties only, so the same rules serve dir="rtl" and dir="ltr".
 */
@font-face { font-family: 'Cairo'; font-weight: 400; font-display: swap; src: url('../brand/fonts/Cairo-400.ttf') format('truetype'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-089F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E, U+2010-2011, U+204F, U+2E41; }
@font-face { font-family: 'Cairo'; font-weight: 700; font-display: swap; src: url('../brand/fonts/Cairo-700.ttf') format('truetype'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-089F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E, U+2010-2011, U+204F, U+2E41; }
@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url('../brand/fonts/Inter-400.ttf') format('truetype'); }
@font-face { font-family: 'Inter'; font-weight: 700; font-display: swap; src: url('../brand/fonts/Inter-700.ttf') format('truetype'); }

:root {
  --primary: #ff6f00;        /* AppColors.primary */
  --primary-dark: #f54900;   /* AppColors.primaryDark */
  --primary-text: #c2410c;   /* primary darkened for text on white (WCAG AA) */
  --primary-light: #fce7cc;  /* AppColors.primaryLight */
  --primary-soft: #fff4eb;   /* AppColors.primarySoft */
  --navy: #021433;           /* AppColors.navy */
  --g25: #fcfcfd; --g50: #f9fafb; --g100: #f2f4f7; --g200: #eaecf0; --g300: #d0d5dd;
  --g500: #667085; --g600: #475467; --g700: #344054; --g900: #101828;
  --border: #eeeef1;         /* AppColors.cardBorder */
  --radius: 16px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-lg: 0 12px 32px -8px rgba(16, 24, 40, .12);
  --font: Inter, Cairo, system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--g700); background: #fff; }
[dir=rtl] body { line-height: 1.75; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { color: var(--g900); margin: 0; line-height: 1.25; }
[dir=rtl] h1, [dir=rtl] h2, [dir=rtl] h3 { line-height: 1.45; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--g900); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 768px) { .wrap { padding-inline: 32px; } }
.narrow { max-width: 780px; }
[dir=rtl] .flip-rtl { transform: scaleX(-1); }

/* ------------------------------------------------------------ header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.scrolled { border-bottom-color: var(--g200); box-shadow: var(--shadow); }
.header-row { display: flex; align-items: center; gap: 16px; height: 68px; }
.brand img { height: 34px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.main-nav a { text-decoration: none; color: var(--g600); font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 8px; }
.main-nav a:hover { color: var(--g900); background: var(--g100); }
.main-nav .nav-cta { background: var(--primary); color: #fff; margin-inline-start: 6px; }
.main-nav .nav-cta:hover { background: var(--primary-dark); color: #fff; }
.lang-switch { font-weight: 600; font-size: 14px; text-decoration: none; color: var(--g700); border: 1px solid var(--g300); border-radius: 999px; padding: 6px 14px; white-space: nowrap; }
.lang-switch:hover { border-color: var(--primary); color: var(--primary-text); }
.menu-btn { display: none; background: none; border: 1px solid var(--g300); border-radius: 10px; width: 42px; height: 42px; align-items: center; justify-content: center; color: var(--g900); cursor: pointer; }
.menu-btn .i-close { display: none; }
@media (max-width: 900px) {
  .menu-btn { display: inline-flex; }
  .lang-switch { margin-inline-start: auto; }
  .main-nav { position: absolute; inset-inline: 0; top: 68px; flex-direction: column; align-items: stretch; gap: 2px; background: #fff; border-bottom: 1px solid var(--g200); box-shadow: var(--shadow-lg); padding: 8px 16px 16px; display: none; margin: 0; }
  .main-nav a { padding: 12px; }
  .main-nav .nav-cta { margin: 6px 0 0; text-align: center; }
  .site-header.open .main-nav { display: flex; }
  .site-header.open .menu-btn .i-open { display: none; }
  .site-header.open .menu-btn .i-close { display: block; }
}

/* ------------------------------------------------------------ shared blocks */
.section { padding-block: 72px; }
@media (min-width: 1024px) { .section { padding-block: 96px; } }
.kicker { display: inline-block; color: var(--primary-text); font-weight: 700; font-size: 14px; letter-spacing: .02em; margin-bottom: 10px; }
.kicker a { text-decoration: none; }
h1 { font-size: clamp(32px, 5.2vw, 54px); font-weight: 700; letter-spacing: -.02em; }
[dir=rtl] h1 { letter-spacing: 0; }
h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 700; letter-spacing: -.01em; }
[dir=rtl] h2 { letter-spacing: 0; }
h3 { font-size: 18px; font-weight: 700; }
.lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--g600); margin-top: 14px; max-width: 640px; }
.prose { color: var(--g600); margin-top: 16px; font-size: 17px; max-width: 620px; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.ic-box { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; flex: none; border-radius: 12px; background: var(--primary-soft); color: var(--primary-dark); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 12px; font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { background: #fff; color: var(--g900); border-color: var(--g300); }
.btn-ghost:hover { border-color: var(--g900); }
.btn-light { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-light:hover { background: rgba(255, 255, 255, .16); }

/* ------------------------------------------------------------ phone mockup */
.phone { position: relative; margin: 0; background: var(--g900); border-radius: 38px; padding: 9px; box-shadow: 0 24px 48px -16px rgba(16, 24, 40, .35), inset 0 0 0 1px rgba(255, 255, 255, .08); }
.phone img { width: 100%; aspect-ratio: 750 / 1624; object-fit: cover; object-position: top; border-radius: 30px; background: var(--g100); }

/* ------------------------------------------------------------ hero */
.hero { padding-block: 40px 64px; background: linear-gradient(var(--g50), #fff); border-bottom: 1px solid var(--g100); overflow: hidden; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .hero { padding-block: 64px 88px; } .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 56px; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-stores { margin-top: 24px; }
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual::before { content: ""; position: absolute; width: min(460px, 92%); aspect-ratio: 1; border-radius: 50%; background: var(--primary-soft); top: 50%; left: 50%; transform: translate(-50%, -50%); }
.phones { position: relative; display: flex; align-items: flex-end; justify-content: center; }
.phones .phone { width: min(250px, 58vw); }
.phones-2 .phone-back { position: relative; transform: translateY(-28px) rotate(4deg); margin-inline-start: -64px; z-index: 0; opacity: .97; }
[dir=rtl] .phones-2 .phone-back { transform: translateY(-28px) rotate(-4deg); }
.phones-2 .phone-front { z-index: 1; }
@media (max-width: 560px) { .phones-2 .phone { width: 48vw; } .phones-2 .phone-back { margin-inline-start: -40px; } }

/* ------------------------------------------------------------ stores */
.stores { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.store { position: relative; }
.store-link { display: inline-flex; align-items: center; height: 48px; padding: 2px; border-radius: 10px; text-decoration: none; }
.store img { height: 44px; width: auto; }
.store.is-soon .store-link { cursor: default; }
.store.is-soon img, .store.is-soon .text-badge { filter: grayscale(1); opacity: .55; }
.soon-pill { position: absolute; top: -9px; inset-inline-end: -6px; background: var(--primary); color: #fff; font-size: 11px; font-weight: 700; line-height: 1; padding: 5px 8px; border-radius: 999px; box-shadow: 0 2px 6px rgba(255, 111, 0, .35); }
.text-badge { display: inline-flex; flex-direction: column; justify-content: center; height: 44px; min-width: 132px; padding: 0 14px; border-radius: 8px; background: #000; color: #fff; border: 1px solid #a6a6a6; line-height: 1.1; }
.text-badge small { font-size: 10px; opacity: .85; }
.text-badge b { font-size: 17px; font-weight: 600; font-family: Inter, system-ui, sans-serif; }

/* ------------------------------------------------------------ about */
.about-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 960px) { .about-grid { grid-template-columns: 1.1fr 1fr; gap: 72px; } }
.about-list { display: grid; gap: 16px; }
.about-list li { display: flex; gap: 16px; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.about-list p { color: var(--g600); margin-top: 4px; }

/* ------------------------------------------------------------ services */
.services { background: var(--g50); }
.card-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .card-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card h3 { margin-top: 16px; }
.card p { color: var(--g600); margin-top: 8px; }

/* ------------------------------------------------------------ how it works */
.steps { display: grid; gap: 16px; counter-reset: s; }
.step { position: relative; padding: 20px 20px 20px 0; padding-inline-start: 64px; }
.step-num { position: absolute; inset-inline-start: 0; top: 18px; width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 18px; box-shadow: 0 0 0 6px var(--primary-soft); }
.step-ic { display: none; }
.step p { color: var(--g600); margin-top: 6px; }
.step:not(:last-child)::after { content: ""; position: absolute; inset-inline-start: 21px; top: 70px; bottom: -14px; width: 2px; background: var(--primary-light); }
@media (min-width: 960px) {
  .steps { grid-template-columns: repeat(var(--steps), 1fr); gap: 24px; }
  .step { padding: 0; padding-top: 64px; }
  .step-num { top: 0; inset-inline-start: 0; }
  .step:not(:last-child)::after { top: 21px; bottom: auto; inset-inline-start: 60px; inset-inline-end: -12px; width: auto; height: 2px; }
}

/* ------------------------------------------------------------ screenshots */
.screens { background: var(--g50); border-block: 1px solid var(--g100); }
.shots-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 24px; }
.tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--g100); border-radius: 12px; }
.shots-nav { display: flex; gap: 8px; margin-inline-start: auto; }
.shots-nav button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--g300); background: #fff; color: var(--g900); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.shots-nav button:hover { border-color: var(--g900); }
.flip-prev { transform: scaleX(-1); }
[dir=rtl] .flip-prev { transform: none; }
@media (max-width: 640px) { .shots-nav { display: none; } }
.tabs button { font: inherit; font-weight: 700; font-size: 15px; border: 0; background: none; color: var(--g600); padding: 10px 18px; border-radius: 9px; cursor: pointer; }
.tabs button[aria-selected=true] { background: #fff; color: var(--g900); box-shadow: var(--shadow); }
.shots { display: grid; grid-auto-flow: column; grid-auto-columns: min(220px, 62vw); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 4px 24px; scrollbar-width: thin; overscroll-behavior-x: contain; }
.shots[hidden] { display: none; }
.shot { margin: 0; scroll-snap-align: start; }
.shot .phone { border-radius: 32px; padding: 7px; box-shadow: 0 16px 32px -14px rgba(16, 24, 40, .35); }
.shot .phone img { border-radius: 26px; }
.shot figcaption { text-align: center; font-weight: 600; color: var(--g700); margin-top: 14px; font-size: 15px; }

/* ------------------------------------------------------------ why */
.feature-grid { display: grid; gap: 28px 32px; }
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.feature-grid li { display: flex; gap: 14px; }
.ic-dot { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--primary-light); color: var(--primary-dark); display: inline-flex; align-items: center; justify-content: center; }
.feature-grid h3 { font-size: 17px; }
.feature-grid p { color: var(--g600); margin-top: 4px; font-size: 15px; }

/* ------------------------------------------------------------ providers */
.providers { background: var(--navy); color: #cfd6e4; }
.providers h2, .providers h3 { color: #fff; }
.providers .kicker { color: #ffb27a; }
.providers .prose { color: #cfd6e4; }
.providers-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 960px) { .providers-grid { grid-template-columns: 1fr 1.15fr; gap: 64px; } .providers-copy { position: sticky; top: 100px; } }
.type-grid { display: grid; gap: 12px; }
@media (min-width: 560px) { .type-grid { grid-template-columns: repeat(2, 1fr); } }
.type-grid li { display: flex; gap: 12px; padding: 16px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
.type-grid .ic-box { width: 42px; height: 42px; background: rgba(255, 111, 0, .16); color: #ffb27a; }
.type-grid h3 { font-size: 16px; }
.type-grid p { font-size: 14px; color: #aab4c8; margin-top: 2px; }

/* ------------------------------------------------------------ download */
.download-grid { display: grid; gap: 20px; }
@media (min-width: 860px) { .download-grid { grid-template-columns: repeat(2, 1fr); } }
.download-card { border: 1px solid var(--border); border-radius: 20px; padding: 28px; background: #fff; box-shadow: var(--shadow); }
.download-card h3 { font-size: 20px; margin-top: 16px; }
.download-card > p { color: var(--g600); margin: 6px 0 20px; }
.soon-note { margin-top: 16px; font-size: 14px; color: var(--g500); }

/* ------------------------------------------------------------ legal */
.legal h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 24px; }
.legal h2 { font-size: 22px; margin: 32px 0 8px; }
.legal p { margin-top: 14px; color: var(--g700); font-size: 17px; }

/* ------------------------------------------------------------ footer */
.site-footer { background: var(--g900); color: #c3c9d4; padding-top: 56px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr; padding-bottom: 40px; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer-brand img { height: 34px; width: auto; }
.footer-brand p { margin-top: 14px; max-width: 320px; font-size: 15px; }
.site-footer h2 { font-size: 15px; color: #fff; margin-bottom: 14px; }
.site-footer ul { display: grid; gap: 10px; font-size: 15px; }
.site-footer a { text-decoration: none; color: #c3c9d4; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.muted-link { color: #8a93a3; }
.contact-list li { display: flex; align-items: center; gap: 10px; }
.contact-list .ic { color: #ffb27a; flex: none; }
.social { display: flex; gap: 8px; margin-top: 16px; }
.social a { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .15); }
.social a:hover { border-color: #fff; text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding-block: 20px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px; }
