/* liveev.app (owner 11-01: "i want the website to bang").
   Day = the app's desert daylight palette; night = a night drive. Both themes
   are tokens on :root; components only read tokens. */
:root {
  --ground: #f4ecda;
  --ground-2: #efe4cd;
  --surface: #fffaf0;
  --raised: #ffffff;
  --line: #e2d4b8;
  --line-strong: #cdbb98;
  --ink: #0f241c;
  --ink-2: #2b4037;
  --muted: #5f6c64;
  --accent: #0b7a5e;
  --accent-2: #0e9a76;
  --accent-soft: rgba(11, 122, 94, 0.12);
  --on-accent: #ffffff;
  --free: #0e9a6e;
  --busy: #c26f0c;
  --idle: #a9b3ab;
  --map-ground: #f9f2e3;
  --map-ink: rgba(15, 36, 28, 0.55);
  --shadow: 0 1px 2px rgba(41, 33, 15, 0.06), 0 12px 32px -12px rgba(41, 33, 15, 0.18);
  --shadow-lift: 0 2px 6px rgba(41, 33, 15, 0.08), 0 30px 60px -24px rgba(41, 33, 15, 0.35);
  --radius: 18px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
  --font-display: "Unbounded", "IBM Plex Sans", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ar: "IBM Plex Sans Arabic", "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #07130f;
    --ground-2: #0a1914;
    --surface: #0d1c17;
    --raised: #12241e;
    --line: #1e352c;
    --line-strong: #2c4a3e;
    --ink: #e9f4ef;
    --ink-2: #c4d6ce;
    --muted: #8ea69b;
    --accent: #1bc48e;
    --accent-2: #3ddca6;
    --accent-soft: rgba(27, 196, 142, 0.14);
    --on-accent: #04150f;
    --free: #2fe0a0;
    --busy: #f2a33a;
    --idle: #4c625a;
    --map-ground: #06110d;
    --map-ink: rgba(233, 244, 239, 0.55);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 40px -16px rgba(0, 0, 0, 0.7);
    --shadow-lift: 0 2px 8px rgba(0, 0, 0, 0.5), 0 40px 80px -30px rgba(0, 0, 0, 0.9);
  }
}

:root[data-theme="dark"] {
  --ground: #07130f;
  --ground-2: #0a1914;
  --surface: #0d1c17;
  --raised: #12241e;
  --line: #1e352c;
  --line-strong: #2c4a3e;
  --ink: #e9f4ef;
  --ink-2: #c4d6ce;
  --muted: #8ea69b;
  --accent: #1bc48e;
  --accent-2: #3ddca6;
  --accent-soft: rgba(27, 196, 142, 0.14);
  --on-accent: #04150f;
  --free: #2fe0a0;
  --busy: #f2a33a;
  --idle: #4c625a;
  --map-ground: #06110d;
  --map-ink: rgba(233, 244, 239, 0.55);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 40px -16px rgba(0, 0, 0, 0.7);
  --shadow-lift: 0 2px 8px rgba(0, 0, 0, 0.5), 0 40px 80px -30px rgba(0, 0, 0, 0.9);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body[data-lang="ar"] { font-family: var(--font-ar); }

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }

/* Bilingual: every phrase carries both; the body's language shows one. */
body[data-lang="en"] [lang="ar"]:not(html),
body[data-lang="ar"] [lang="en"]:not(html) { display: none !important; }

.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }

.mono {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body[data-lang="ar"] .mono { font-family: var(--font-ar); letter-spacing: 0; text-transform: none; font-size: 0.9rem; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}

body[data-lang="ar"] .kicker { font-family: var(--font-ar); letter-spacing: 0; text-transform: none; font-size: 0.95rem; font-weight: 600; }

.kicker::before {
  content: "";
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

h1, h2, h3 { margin: 0; text-wrap: balance; }

.display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
}

body[data-lang="ar"] .display { font-family: var(--font-ar); letter-spacing: 0; line-height: 1.2; }

h2.display { font-size: clamp(2rem, 4.4vw, 3.4rem); }

.lede { color: var(--ink-2); font-size: clamp(1.05rem, 1.5vw, 1.2rem); max-width: 60ch; }
.muted { color: var(--muted); }

/* ---- top bar ---- */
.bar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  background: color-mix(in srgb, var(--ground) 78%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

.bar .wrap { display: flex; align-items: center; gap: 18px; min-height: 64px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand span { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; font-size: 1.15rem; }

.bar nav { display: flex; gap: 4px; margin-inline-start: auto; }
.bar nav a {
  text-decoration: none;
  color: var(--ink-2);
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.95rem;
}
.bar nav a:hover { background: var(--accent-soft); color: var(--ink); }

.lang {
  display: inline-flex;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.lang button {
  border: 0;
  background: transparent;
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--muted);
}
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--ground); }

.theme {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease;
}
.theme:hover { border-color: var(--accent); color: var(--ink); }
.theme svg { width: 18px; height: 18px; grid-area: 1 / 1; }
/* Shows what a press switches to: the moon by day, the sun by night. */
.theme .sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme .sun { display: block; }
  :root:not([data-theme="light"]) .theme .moon { display: none; }
}
:root[data-theme="dark"] .theme .sun { display: block; }
:root[data-theme="dark"] .theme .moon { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  border-radius: 14px;
  padding: 13px 20px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-accent { background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 24px -12px var(--accent); }
.btn-accent:hover { background: var(--accent-2); }
.btn-ghost { border-color: var(--line-strong); background: var(--surface); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-small { padding: 9px 14px; border-radius: 12px; font-size: 0.92rem; }

.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px 10px 14px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--ground);
  text-decoration: none;
  transition: transform 0.18s ease;
  min-width: 176px;
}
.store:hover { transform: translateY(-2px); }
.store svg { width: 26px; height: 26px; flex: none; }
.store small { display: block; font-size: 0.68rem; opacity: 0.75; line-height: 1.1; }
.store b { display: block; font-size: 1.08rem; line-height: 1.15; font-weight: 600; }

:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; border-radius: 8px; }

/* ---- sections ---- */
section { padding-block: clamp(64px, 9vw, 120px); }
section[id], [id="report"], [id="contact"] { scroll-margin-top: 72px; }
.section-head { display: grid; gap: 16px; margin-bottom: clamp(32px, 5vw, 56px); max-width: 760px; }

/* ---- devices ---- */
.phone {
  position: relative;
  border-radius: 44px;
  padding: 10px;
  background: linear-gradient(160deg, #2a2f2d, #0c0f0e 60%);
  box-shadow: var(--shadow-lift), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  width: min(300px, 72vw);
}
.phone img { border-radius: 35px; width: 100%; height: auto; aspect-ratio: 640 / 1391; object-fit: cover; }

.carscreen {
  position: relative;
  border-radius: 22px;
  padding: 12px;
  background: linear-gradient(180deg, #23292a, #0a0d0d);
  box-shadow: var(--shadow-lift), inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}
.carscreen img { border-radius: 12px; width: 100%; height: auto; aspect-ratio: 1600 / 870; object-fit: cover; }

/* ---- footer ---- */
footer { border-top: 1px solid var(--line); padding-block: 40px 56px; color: var(--muted); font-size: 0.92rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }
footer .grow { flex: 1; }

/* Reveal: visible at rest; motion only adds a lift. */
.reveal { transition: transform 0.7s cubic-bezier(.2, .7, .2, 1), opacity 0.7s ease; }
.js .reveal.pending { transform: translateY(18px); opacity: 0.001; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .btn, .store { transition: none !important; }
  .js .reveal.pending { transform: none; opacity: 1; }
}

@media (max-width: 760px) {
  .bar nav { display: none; }
  .bar .wrap { gap: 10px; }
  .bar .lang { margin-inline-start: auto; }
  body { font-size: 16px; }
}

/* A phone keeps the name, the language and the theme; the stores sit right
   under the headline anyway. */
@media (max-width: 480px) {
  .bar .btn-small { display: none; }
}
