/* iR Cars landing — brand tokens mirror config/brand.example.json (navy chrome, orange accent). */
:root {
  --navy: #102b4c;
  --navy-deep: #081d35;
  --navy-tint: #e7ecf3;
  --accent: #f58220;
  --accent-pressed: #d9680d;
  --accent-tint: #fdeedf;
  --bg: #f7f9fc;
  --surface: #ffffff;
  --hairline: #d9e1ea;
  --ink: #172033;
  --ink-soft: #667085;
  --radius: 16px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Arabic", "Noto Naskh Arabic", Tahoma, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1728;
    --surface: #12263f;
    --hairline: #26415f;
    --ink: #eaeef5;
    --ink-soft: #a7b0c2;
    --navy-tint: #183350;
    --accent-tint: #3b2916;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.55;
}

/* ── top bar ── */
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  background: var(--navy);
  color: #fff;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.2px;
}
.brand img { border-radius: 10px; background: #fff; }

.lang {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}
.lang button {
  appearance: none;
  border: 0;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  font: inherit;
  font-size: 0.85rem;
}
.lang button[aria-pressed="true"] { background: var(--accent); color: #fff; font-weight: 700; }
.lang button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ── hero ── */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px 32px;
  background:
    radial-gradient(900px 380px at 50% -80px, var(--navy-tint), transparent 70%),
    var(--bg);
}
.mark {
  border-radius: 32px;
  background: #fff;
  box-shadow: 0 18px 40px -18px rgba(16, 43, 76, 0.45);
  margin-bottom: 22px;
}
.pill {
  margin: 0 0 14px;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--accent-tint);
  color: var(--accent-pressed);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
@media (prefers-color-scheme: dark) { .pill { color: #ff9a45; } }

h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 1.15;
  color: var(--navy);
}
@media (prefers-color-scheme: dark) { h1 { color: #fff; } }
.lead {
  margin: 0 0 30px;
  max-width: 34ch;
  font-size: clamp(1.05rem, 2.6vw, 1.3rem);
  color: var(--ink-soft);
}

/* ── store buttons ── */
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 26px;
}
.store {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 232px;
  padding: 12px 18px;
  border-radius: var(--radius);
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  text-align: start;
  transition: transform 0.15s ease, background 0.15s ease;
}
.store svg { width: 28px; height: 28px; flex: none; }
.store-text { display: flex; flex-direction: column; line-height: 1.2; }
.store-text small { font-size: 0.72rem; opacity: 0.8; }
.store-text strong { font-size: 1.15rem; }
.tag {
  position: absolute;
  top: -10px;
  inset-inline-end: 12px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.store[aria-disabled="true"] { cursor: default; opacity: 0.92; }
.store[aria-disabled="false"] { cursor: pointer; background: var(--navy); }
.store[aria-disabled="false"]:hover { transform: translateY(-2px); background: var(--navy-deep); }
.store[aria-disabled="false"] .tag { display: none; }
.store:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.note { margin: 0; max-width: 42ch; color: var(--ink-soft); font-size: 0.95rem; }

/* ── footer ── */
.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 16px 20px;
  border-top: 1px solid var(--hairline);
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 0.85rem;
}
.foot a { color: var(--navy); text-decoration: none; font-weight: 600; }
.legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.legal a { font-weight: 500; color: var(--ink-soft); }
@media (prefers-color-scheme: dark) { .foot a { color: #ff9a45; } }
.foot a:hover { text-decoration: underline; }

@media (max-width: 480px) {
  .brand span { display: none; }
  .store { min-width: 100%; }
  .stores { width: 100%; max-width: 340px; }
}
@media (prefers-reduced-motion: reduce) { .store { transition: none; } }
