/* Light/dark + audience tokens for the 21 Nov 2026 redesign.
   Home uses Consumer Pulse; drivers use Night Shift; merchants and
   professionals use Business Counter. The wordmark gold is --logo-yellow. */

:root,
html[data-theme="dark"] {
  --bg: #191414;
  --bg-2: #211B1B;
  --surface: #2A2323;
  --surface-2: #352E2E;
  --line: #3A3333;
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #FFFFFF;
  --muted: #B3B3B3;
  --faint: #8A8A8A;
  --accent: #1DB954;
  --accent-2: #23D461;
  --accent-ink: #191414;
  --accent-text: #1DB954;
  --ok: #7CFFB2;
  --danger: #F15E6C;
  --header-bg: rgba(25, 20, 20, 0.88);
  --logo-yellow: #F5C518;
  --theme-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  --focus: #1DB954;
  --hero-glow-a: rgba(29, 185, 84, 0.18);
  --hero-glow-b: rgba(245, 197, 24, 0.10);
  --band-sage: var(--bg);
  --band-sand: var(--bg-2);
  --band-pistachio: var(--bg);
  --foot-bg: var(--bg);
  --foot-text: var(--text);
  --foot-muted: var(--muted);
  --on-photo: #F6F3EC;
  --on-photo-muted: rgba(246, 243, 236, 0.86);
  --on-photo-accent: #F5C518;
  --saffron: #F5C518;
  color-scheme: dark;
}

html[data-theme="light"] {
  /* Souq Morning: warm paper, not inverted dark. */
  --bg: #F4EBD9;
  --bg-2: #EDE1CC;
  --surface: #FFF8EE;
  --surface-2: #F0E2C9;
  --line: #E2D2B8;
  --line-2: #CDB892;
  --text: #2A1A12;
  --muted: #4F3C30;
  --faint: #6E5648;
  --accent: #0E6B32;
  --accent-2: #0B5A2A;
  --accent-ink: #FFF8EE;
  --accent-text: #0B5A2A;
  --ok: #0B5A2A;
  --danger: #9F1C28;
  --header-bg: rgba(244, 235, 217, 0.94);
  --focus: #0B5A2A;
  --theme-shadow: 0 18px 40px rgba(42, 26, 18, 0.10);
  --hero-glow-a: rgba(201, 150, 20, 0.22);
  --hero-glow-b: rgba(14, 107, 50, 0.12);
  --band-sage: #E4EFE6;
  --band-sand: #EFE2CC;
  --band-pistachio: #E7F2EA;
  --foot-bg: #2C2118;
  --foot-text: #F6EFE3;
  --foot-muted: #D4C4B0;
  --on-photo: #F6F3EC;
  --on-photo-muted: rgba(246, 243, 236, 0.90);
  --on-photo-accent: #F5C518;
  --saffron: #8A6410;
  color-scheme: light;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --bg: #F4EBD9;
    --bg-2: #EDE1CC;
    --surface: #FFF8EE;
    --surface-2: #F0E2C9;
    --line: #E2D2B8;
    --line-2: #CDB892;
    --text: #2A1A12;
    --muted: #4F3C30;
    --faint: #6E5648;
    --accent: #0E6B32;
    --accent-2: #0B5A2A;
    --accent-ink: #FFF8EE;
    --accent-text: #0B5A2A;
    --ok: #0B5A2A;
    --danger: #9F1C28;
    --header-bg: rgba(244, 235, 217, 0.94);
    --focus: #0B5A2A;
    --theme-shadow: 0 18px 40px rgba(42, 26, 18, 0.10);
    --hero-glow-a: rgba(201, 150, 20, 0.22);
    --hero-glow-b: rgba(14, 107, 50, 0.12);
    --band-sage: #E4EFE6;
    --band-sand: #EFE2CC;
    --band-pistachio: #E7F2EA;
    --foot-bg: #2C2118;
    --foot-text: #F6EFE3;
    --foot-muted: #D4C4B0;
    --on-photo: #F6F3EC;
    --on-photo-muted: rgba(246, 243, 236, 0.90);
    --on-photo-accent: #F5C518;
    --saffron: #8A6410;
    color-scheme: light;
  }
}

/* Driver Night Shift */
html[data-audience="driver"][data-theme="dark"] {
  --bg: #0A0F14;
  --bg-2: #0D161C;
  --surface: #13232B;
  --surface-2: #0D161C;
  --line: #1E3A42;
  --line-2: #2A4A52;
  --text: #F4EEE5;
  --muted: #9DB0B4;
  --faint: #7A8E92;
  --accent: #E07A35;
  --accent-2: #F08A45;
  --accent-ink: #0A0F14;
  --accent-text: #E07A35;
  --ok: #F4EEE5;
  --danger: #FF6B6B;
  --header-bg: rgba(10, 15, 20, 0.9);
  --focus: #E07A35;
  --hero-glow-a: rgba(224, 122, 53, 0.18);
  --hero-glow-b: rgba(15, 61, 62, 0.35);
}
html[data-audience="driver"][data-theme="light"] {
  --bg: #F3E8D8;
  --bg-2: #E8D5C0;
  --surface: #FFF7EE;
  --surface-2: #F0DCC6;
  --line: #E0C8AE;
  --line-2: #CBAE90;
  --text: #1A1410;
  --muted: #4E3C30;
  --faint: #6B5648;
  --accent: #B84F16;
  --accent-2: #9A4212;
  --accent-ink: #FFF7EE;
  --accent-text: #8A3E12;
  --ok: #1F7A4D;
  --danger: #9F1C28;
  --header-bg: rgba(243, 232, 216, 0.94);
  --focus: #8A3E12;
  --theme-shadow: 0 18px 40px rgba(26, 20, 16, 0.12);
  --hero-glow-a: rgba(184, 79, 22, 0.18);
  --hero-glow-b: rgba(15, 61, 62, 0.14);
  --band-sage: #DDECEA;
  --band-sand: #EEDCC8;
  --band-pistachio: #E6EEE8;
  --foot-bg: #1A2428;
  --foot-text: #F4EEE5;
  --foot-muted: #C5B8A8;
  --saffron: #8A6410;
}

/* Business Counter — merchants and professionals */
html[data-audience="store"][data-theme="dark"],
html[data-audience="service"][data-theme="dark"] {
  --bg: #1A1A1A;
  --bg-2: #242424;
  --surface: #2B2B2B;
  --surface-2: #3A3A3A;
  --line: #3F3F3F;
  --line-2: #505050;
  --text: #FAFAFA;
  --muted: #C4C4C4;
  --faint: #9A9A9A;
  --accent: #FF9900;
  --accent-2: #FFB84D;
  --accent-ink: #1A1A1A;
  --accent-text: #FFB84D;
  --ok: #FFB84D;
  --danger: #FF8A80;
  --header-bg: rgba(26, 26, 26, 0.92);
  --focus: #FFB84D;
  --hero-glow-a: rgba(255, 153, 0, 0.16);
  --hero-glow-b: rgba(255, 184, 77, 0.08);
}
html[data-audience="store"][data-theme="light"],
html[data-audience="service"][data-theme="light"] {
  --bg: #F7EFE3;
  --bg-2: #F0E2CC;
  --surface: #FFF9F1;
  --surface-2: #F3E4CC;
  --line: #E6D3B5;
  --line-2: #D4BA92;
  --text: #1C140C;
  --muted: #4E3C2A;
  --faint: #6B5640;
  --accent: #9A5800;
  --accent-2: #8A4B00;
  --accent-ink: #FFF9F1;
  --accent-text: #8A4B00;
  --ok: #8A4B00;
  --danger: #9F1C28;
  --header-bg: rgba(247, 239, 227, 0.95);
  --focus: #8A4B00;
  --theme-shadow: 0 18px 40px rgba(28, 20, 12, 0.10);
  --hero-glow-a: rgba(184, 106, 0, 0.18);
  --hero-glow-b: rgba(138, 75, 0, 0.08);
  --band-sage: #F8EBD4;
  --band-sand: #F0E2CC;
  --band-pistachio: #F6E8D2;
  --foot-bg: #2A2116;
  --foot-text: #F7EFE3;
  --foot-muted: #D4C4B0;
  --saffron: #8A6410;
}

.hl { color: var(--accent-text); }
.eyebrow { color: var(--accent-text); }
:focus-visible { outline-color: var(--focus); }

.btn.primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: transparent;
  box-shadow: 0 10px 40px -12px color-mix(in srgb, var(--accent) 60%, transparent);
}
.btn.primary:hover { background: var(--accent-2); color: var(--accent-ink); }

.chip { background: color-mix(in srgb, var(--text) 6%, transparent); }
.chip.live { color: var(--ok); }
.chip.soon { color: var(--accent-text); }

.top {
  background: var(--header-bg);
}
.nav-links {
  background: color-mix(in srgb, var(--text) 5%, transparent);
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
  background: color-mix(in srgb, var(--text) 8%, transparent);
}
.lang-btn, .theme-btn, .menu-btn {
  background: transparent;
  border: 1px solid var(--line-2);
  color: var(--text);
}
.lang-btn:hover, .theme-btn:hover { background: color-mix(in srgb, var(--text) 6%, transparent); }

.theme-btn {
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.theme-btn .ico { width: 16px; height: 16px; display: none; flex: none; }
html[data-theme="dark"] .theme-btn .ico-moon { display: block; }
html[data-theme="light"] .theme-btn .ico-sun { display: block; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .theme-btn .ico-sun { display: block; }
  :root:not([data-theme]) .theme-btn .ico-moon { display: none; }
}

.wordmark { position: relative; }
.wordmark img.logo-light,
.wordmark img.logo-dark { height: 34px; width: auto; }
html[data-theme="light"] .logo-dark,
html[data-theme="dark"] .logo-light { display: none; }
html[data-theme="light"] .logo-light,
html[data-theme="dark"] .logo-dark { display: block; }
html[data-theme="light"] .foot-logo-dark { display: none; }
html[data-theme="dark"] .foot-logo-light { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .logo-dark,
  :root:not([data-theme]) .foot-logo-dark { display: none; }
  :root:not([data-theme]) .logo-light,
  :root:not([data-theme]) .foot-logo-light { display: block; }
}

.hero::before {
  background:
    radial-gradient(40% 50% at 78% 18%, var(--hero-glow-a), transparent 70%),
    radial-gradient(40% 50% at 18% 30%, var(--hero-glow-b), transparent 70%);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  position: relative;
}
.hero-grid .hero-copy,
.hero-copy-start { text-align: start; align-items: flex-start; }
.hero-grid .hero-copy .lead { margin-inline: 0; }
.hero-grid .hero-cta { justify-content: flex-start; }
.hero-media {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--theme-shadow);
  background: var(--surface);
  aspect-ratio: 16 / 9;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
}
.page-hero-visual {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--theme-shadow);
  aspect-ratio: 16 / 9;
  background: var(--surface);
}
.page-hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::before {
  background: radial-gradient(50% 80% at 85% 0%, var(--hero-glow-a), transparent 70%);
}

/* Keep a dark (warm) scrim in both themes so text on the photo stays cream,
   never black-on-photo or black-on-a-white-fade. */
.city-stage::after {
  background: linear-gradient(180deg, rgba(20, 12, 8, 0) 22%, rgba(20, 12, 8, 0.72) 58%, rgba(20, 12, 8, 0.96) 100%);
}
@media (max-width: 620px) {
  .city-stage::after {
    background: linear-gradient(180deg, rgba(20, 12, 8, 0.08) 8%, rgba(20, 12, 8, 0.82) 42%, rgba(20, 12, 8, 0.97) 100%);
  }
}

.legal-body .legal-callout {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
}

@media (max-width: 900px) {
  .hero-grid, .page-hero-grid { grid-template-columns: 1fr; }
}

/* Staff / legal inherit tokens so light mode is not broken */
.staff-top { background: var(--header-bg) !important; }


/* ── Light v2: unique paper treatment + readable text on imagery ── */
.card .media::after {
  background: linear-gradient(180deg, rgba(20, 12, 8, 0) 28%, rgba(20, 12, 8, 0.78) 78%, rgba(20, 12, 8, 0.92) 100%);
}
.card-title,
.card .body,
.rail-card figcaption,
.city-stage .inner,
.city-stage .inner .section-title,
.city-stage .inner h2,
.city strong {
  color: var(--on-photo);
}
.card p,
.city-stage .inner .lead,
.city span.gov,
.rail-card figcaption {
  color: var(--on-photo-muted);
}
.city-stage .eyebrow,
.city-stage .hl {
  color: var(--on-photo-accent);
}
.card .chip,
.city-stage .chip {
  background: rgba(20, 14, 10, 0.5);
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--on-photo);
}
.card .chip.new {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: transparent;
}
.city-stage .chip.live { color: #B6F0CC; }
.city-stage .chip.soon { color: var(--on-photo-accent); }
.city {
  background: rgba(28, 18, 12, 0.72);
  border-color: rgba(255, 255, 255, 0.14);
}

.store-btn { background: #111; color: #F6F3EC; }
.store-btn[aria-disabled="true"] { color: #F6F3EC; }

.btn.light { background: var(--text); color: var(--bg); }

html[data-theme="light"] {
  font-weight: 450;
}
html[data-theme="light"] body {
  font-weight: 450;
  -webkit-font-smoothing: auto;
}
html[data-theme="light"] .display,
html[data-theme="light"] h1,
html[data-theme="light"] h2,
html[data-theme="light"] h3,
html[data-theme="light"] .card-title,
html[data-theme="light"] .btn,
html[data-theme="light"] .nav-links a {
  font-weight: 800;
}
html[data-theme="light"] .lead,
html[data-theme="light"] .eyebrow {
  font-weight: 600;
}
html[data-theme="light"] .eyebrow {
  color: var(--saffron);
}

html[data-theme="light"] #about { background: var(--band-sage); }
html[data-theme="light"] #how { background: var(--band-sand); }
html[data-theme="light"] #join { background: var(--band-sage); }
html[data-theme="light"] #apps { background: var(--band-pistachio); }
html[data-theme="light"] #faq { background: var(--bg); }

html[data-theme="light"] .panel,
html[data-theme="light"] .step,
html[data-theme="light"] .faq details,
html[data-theme="light"] .app:not(.app-live) {
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 10px 24px rgba(42, 26, 18, 0.05);
}

html[data-theme="light"] .form-card {
  background: var(--surface);
  box-shadow: var(--theme-shadow);
  border-top: 4px solid var(--accent);
}
html[data-theme="light"] .input,
html[data-theme="light"] .choice label,
html[data-theme="light"] .phone-row .prefix {
  background: #FFFCF6;
  color: var(--text);
}
html[data-theme="light"] .input:focus {
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent);
}
html[data-theme="light"] .choice label:hover {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line-2));
}
html[data-theme="light"] .choice input:checked + label {
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
}
html[data-theme="light"] .alert.error {
  color: #7A1520;
  background: #FDE8E8;
  border-color: #E8A0A6;
}
html[data-theme="light"] .consent label a {
  color: var(--accent-text);
  font-weight: 700;
}

html[data-theme="light"] .band {
  background: var(--band-sand);
}
html[data-theme="light"] .foot {
  background: var(--foot-bg);
  color: var(--foot-text);
}
html[data-theme="light"] .foot .muted,
html[data-theme="light"] .foot h4,
html[data-theme="light"] .foot-bottom {
  color: var(--foot-muted);
}
html[data-theme="light"] .foot a {
  color: var(--foot-text);
  opacity: 0.92;
}
html[data-theme="light"] .foot a:hover {
  color: var(--on-photo-accent);
  opacity: 1;
}
/* Clay footer needs the on-dark wordmark even in light mode. */
html[data-theme="light"] .foot .foot-logo-light { display: none; }
html[data-theme="light"] .foot .foot-logo-dark { display: block; }

/* Apps + countdown */
.app-live {
  border-color: color-mix(in srgb, var(--accent) 50%, var(--line));
  box-shadow: var(--theme-shadow);
  background:
    radial-gradient(90% 70% at 100% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 62%),
    var(--surface);
}
.app-live .app-status {
  align-self: flex-start;
  margin: 0;
}
.play-badge {
  display: inline-block;
  margin-top: auto;
  padding-top: 12px;
  line-height: 0;
  text-decoration: none;
}
.play-badge img {
  height: 58px;
  width: auto;
  max-width: 196px;
  display: block;
}
html[lang="en"] .play-badge .badge-ar { display: none; }
html:not([lang="en"]) .play-badge .badge-en { display: none; }

.countdown {
  margin-top: auto;
  padding-top: 14px;
  display: grid;
  gap: 8px;
}
.countdown-label {
  font-weight: 800;
  font-size: 14px;
  color: var(--accent-text);
  margin: 0;
}
.countdown-units {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.countdown-unit {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 4px 8px;
  text-align: center;
}
.countdown-unit b {
  display: block;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.countdown-unit span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  margin-top: 4px;
}
.countdown-date { margin: 0; font-size: 13.5px; color: var(--text); font-weight: 700; }
.countdown-note { margin: 0; font-size: 12.5px; color: var(--faint); line-height: 1.5; }

.aside-download {
  margin: 14px 0 0;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  display: grid;
  gap: 8px;
  justify-items: start;
}
.aside-download .eyebrow { margin: 0; }

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .foot .foot-logo-light { display: none; }
  :root:not([data-theme]) .foot .foot-logo-dark { display: block; }
}
