/* MIGA landing site — shared styles (index, privacy, terms). Arabic first, right-to-left. */
@font-face { font-family: Tajawal; font-weight: 500; font-display: swap; src: url("fonts/Tajawal-Medium.ttf") format("truetype"); }
@font-face { font-family: Tajawal; font-weight: 700; font-display: swap; src: url("fonts/Tajawal-Bold.ttf") format("truetype"); }
@font-face { font-family: Tajawal; font-weight: 800; font-display: swap; src: url("fonts/Tajawal-ExtraBold.ttf") format("truetype"); }

:root {
  --brand: #c4011a;
  --brand-dark: #8e0013;
  --brand-light: #e8334a;
  --brand-soft: #fdecee;
  --ink: #16161a;
  --text: #1c1c21;
  --muted: #6b6b78;
  --line: #ebebf0;
  --bg: #f7f7f9;
  --card: #ffffff;
  --radius: 22px;
  --shadow: 0 18px 40px -22px rgba(22, 22, 26, 0.35);
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: Tajawal, -apple-system, "Segoe UI", sans-serif; font-weight: 500; color: var(--text); background: var(--bg); line-height: 1.75; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }

/* header */
.top { position: absolute; inset: 0 0 auto; z-index: 5; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 26px; color: #fff; }
.brand img { width: 44px; height: 44px; }
.top nav { display: flex; gap: 26px; }
.top nav a { color: rgba(255, 255, 255, 0.85); text-decoration: none; font-weight: 700; font-size: 15px; }
.top nav a:hover { color: #fff; }

/* hero */
.hero { position: relative; overflow: hidden; color: #fff; padding: 130px 0 0;
  background: radial-gradient(70% 60% at 90% 0%, var(--brand-light), transparent 65%), linear-gradient(160deg, var(--brand) 0%, #a0001a 55%, #7a0012 100%); }
.hero::after { content: ""; position: absolute; width: 760px; height: 760px; border-radius: 50%; left: -260px; bottom: -380px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.13), transparent 65%); }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: end; gap: 40px; }
.hero h1 { font-weight: 800; font-size: clamp(38px, 6vw, 66px); line-height: 1.2; }
.hero p.lead { margin-top: 18px; font-size: clamp(17px, 2vw, 21px); color: rgba(255, 255, 255, 0.88); max-width: 34em; }
.hero .copy { padding-bottom: 150px; }
.badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.store-badge { display: inline-flex; align-items: center; gap: 12px; background: #000; color: #fff; text-decoration: none;
  border-radius: 14px; padding: 10px 20px 10px 18px; border: 1px solid rgba(255, 255, 255, 0.25); }
.store-badge svg { width: 30px; height: 30px; flex: none; }
.store-badge small { display: block; font-size: 12px; opacity: 0.8; line-height: 1.2; }
.store-badge b { display: block; font-size: 19px; line-height: 1.25; }
.store-badge[aria-disabled="true"] { cursor: default; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chip { background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 700; }

/* phone mockup */
.phone { width: min(340px, 100%); margin-inline: auto; border-radius: 52px; background: #0e0e10; padding: 11px;
  box-shadow: 0 40px 80px -30px rgba(40, 0, 6, 0.6), inset 0 0 0 2px #2a2a2e; }
.phone img { border-radius: 42px; aspect-ratio: 1320 / 2868; object-fit: cover; width: 100%; height: auto; }
.hero .phone { margin-bottom: 56px; }

/* sections */
section { padding: 96px 0; }
.eyebrow { color: var(--brand); font-weight: 800; font-size: 15px; letter-spacing: 0.02em; }
h2 { font-weight: 800; font-size: clamp(28px, 4vw, 42px); line-height: 1.25; margin-top: 6px; color: var(--ink); }
.sub { color: var(--muted); font-size: 18px; margin-top: 10px; max-width: 40em; }
.center { text-align: center; }
.center .sub { margin-inline: auto; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 44px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow); }
.step .n { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-weight: 800; font-size: 20px; }
.step h3 { font-weight: 800; font-size: 20px; margin-top: 16px; color: var(--ink); }
.step p { color: var(--muted); font-size: 15.5px; margin-top: 6px; }

.showcase { background: #fff; }
.screens { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; margin-top: 50px; }
.screen figcaption { text-align: center; margin-top: 18px; }
.screen figcaption b { display: block; font-weight: 800; font-size: 19px; color: var(--ink); }
.screen figcaption span { color: var(--muted); font-size: 15px; }
.screen .phone { width: min(290px, 100%); border-radius: 44px; padding: 9px; box-shadow: var(--shadow); }
.screen .phone img { border-radius: 36px; }

.roles { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 44px; }
.role { border-radius: var(--radius); padding: 34px 30px; color: #fff; position: relative; overflow: hidden; }
.role.merchant { background: linear-gradient(150deg, #16161a, #2c2c33); }
.role.driver { background: linear-gradient(150deg, var(--brand-dark), var(--brand)); }
.role h3 { font-weight: 800; font-size: 26px; }
.role p { color: rgba(255, 255, 255, 0.82); margin-top: 8px; }
.role ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.role li { padding-inline-start: 26px; position: relative; }
.role li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.62em; width: 14px; height: 8px;
  border-inline-start: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(-45deg); opacity: 0.9; }
.role .tag { display: inline-block; margin-top: 22px; font-size: 14px; font-weight: 700; background: rgba(255, 255, 255, 0.14); border-radius: 999px; padding: 5px 14px; }

.faq { max-width: 820px; margin: 40px auto 0; display: grid; gap: 12px; }
details { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px 22px; }
summary { cursor: pointer; font-weight: 800; font-size: 18px; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--brand); font-size: 24px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin-top: 10px; }

.support { background: var(--ink); color: #fff; border-radius: 30px; padding: 46px; display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; }
.support h2 { color: #fff; }
.support .sub { color: rgba(255, 255, 255, 0.75); }
.contacts { display: grid; gap: 10px; min-width: 260px; }
.contacts a, .contacts span { display: flex; align-items: center; gap: 12px; background: rgba(255, 255, 255, 0.08); border-radius: 14px; padding: 12px 16px; text-decoration: none; font-weight: 700; }
.contacts svg { width: 22px; height: 22px; flex: none; color: var(--brand-light); }

/* footer */
footer { background: #0d0d10; color: rgba(255, 255, 255, 0.72); padding: 46px 0 34px; font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; }
footer .links { display: flex; flex-wrap: wrap; gap: 10px; }
footer .links a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: #fff; font-weight: 700;
  background: rgba(255, 255, 255, 0.07); border-radius: 12px; padding: 9px 14px; }
footer .links a:hover { background: rgba(255, 255, 255, 0.13); }
footer .links svg { width: 19px; height: 19px; color: var(--brand-light); }
footer .copy { width: 100%; border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 22px; font-size: 14px; }

/* legal pages */
.legal-hero { background: linear-gradient(160deg, var(--brand), #7a0012); color: #fff; padding: 120px 0 56px; }
.legal-hero h1 { font-weight: 800; font-size: clamp(32px, 5vw, 48px); }
.legal-hero p { color: rgba(255, 255, 255, 0.85); margin-top: 6px; }
.legal { padding: 50px 0 80px; }
.legal article { background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: clamp(24px, 4vw, 48px); max-width: 860px; margin-inline: auto; }
.legal h2 { font-size: 24px; margin-top: 34px; }
.legal p, .legal li { color: #3a3a44; margin-top: 10px; }
.legal ul { padding-inline-start: 22px; }
.legal .toc { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.legal .toc a { text-decoration: none; background: var(--brand-soft); color: var(--brand); font-weight: 700; border-radius: 999px; padding: 6px 14px; font-size: 14px; }
.legal [lang="en"] { direction: ltr; text-align: left; font-family: -apple-system, "Segoe UI", Tajawal, sans-serif; }
.legal hr { border: 0; border-top: 1px solid var(--line); margin: 46px 0; }

@media (max-width: 900px) {
  .top nav { display: none; }
  .hero { padding-top: 110px; }
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin-inline: auto; }
  .badges, .chips { justify-content: center; }
  .hero .copy { padding-bottom: 30px; }
  .hero .phone { width: min(280px, 80%); }
  .steps { grid-template-columns: 1fr 1fr; }
  .screens { grid-template-columns: 1fr; gap: 46px; }
  .roles { grid-template-columns: 1fr; }
  .support { grid-template-columns: 1fr; padding: 32px 22px; }
  section { padding: 70px 0; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
}
