/* Umbin Taxi — umbintaxi.com
   Brand tokens from docs/brand.md: gold is the Sumerian wheel, ink is the road.
   One deliberate visual world (ink + gold, with paper for reading), so no dark-mode swap. */

:root {
  --ink: #0d0d0f;
  --ink-2: #141417;
  --ink-3: #1d1d22;
  --ink-line: rgba(232, 213, 168, 0.14);
  --gold: #c9a24b;
  --gold-bright: #e2c27a;
  --gold-dark: #8b6b2e;
  --gold-light: #e8d5a8;
  --paper: #fafaf8;
  --paper-2: #f3efe6;
  --paper-line: #e6dfcf;
  --text: #0d0d0f;
  --muted: #5b5b63;
  --muted-light: #b3aea3;
  --on-ink: #ededef;
  --success: #2e9e5b;
  --danger: #c43b3b;

  --font-display: "Reem Kufi", "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --font-body: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, system-ui, sans-serif;

  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 18px;
  --nav-h: 72px;

  /* type scale (1.25) */
  --t-xs: 0.8125rem;
  --t-sm: 0.9375rem;
  --t-md: 1.0625rem;
  --t-lg: 1.3125rem;
  --t-xl: 1.75rem;
  --t-2xl: clamp(2rem, 4.2vw, 2.9rem);
  --t-3xl: clamp(2.5rem, 6.4vw, 4.6rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--t-md);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.25; margin: 0; text-wrap: balance; font-weight: 600; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100;
  background: var(--gold); color: var(--ink); padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--gold); font-size: var(--t-sm); font-weight: 600; letter-spacing: 0.04em;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow--dark { color: var(--gold-dark); }
.gold { color: var(--gold); }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: 600 var(--t-sm) / 1 var(--font-body); text-decoration: none; cursor: pointer; border: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn--gold { background: linear-gradient(180deg, var(--gold-bright), var(--gold)); color: var(--ink); box-shadow: 0 8px 24px -10px rgba(201, 162, 75, 0.7); }
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(201, 162, 75, 0.85); }
.btn--sm { min-height: 40px; padding: 0 16px; }

/* ------------------------------------------------------------------ nav */
.nav {
  position: fixed; inset-inline: 0; top: 0; z-index: 50; height: var(--nav-h);
  color: var(--on-ink);
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}
.nav.is-solid, .nav.is-page {
  background: rgba(13, 13, 15, 0.82);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 1px 0 var(--ink-line);
}
.nav__inner {
  height: 100%; max-width: calc(var(--wrap) + 80px); margin-inline: auto; padding-inline: var(--gutter);
  display: flex; align-items: center; gap: 20px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand img { width: 40px; height: 40px; }
.brand__name { font-family: var(--font-display); font-size: var(--t-lg); color: var(--gold-light); }
.nav__links { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.nav__links a, .nav__pages a {
  color: rgba(237, 237, 239, 0.82); text-decoration: none; font-size: var(--t-sm); font-weight: 500;
  padding: 8px 12px; border-radius: 999px; transition: color 0.2s, background 0.2s; white-space: nowrap;
}
.nav__links a:hover, .nav__pages a:hover, .nav__pages a[aria-current="page"] { color: var(--gold-light); background: rgba(232, 213, 168, 0.08); }
.nav__pages { display: contents; }
.nav__tools { display: flex; align-items: center; gap: 12px; }
.lang { display: inline-flex; border: 1px solid var(--ink-line); border-radius: 999px; padding: 3px; }
.lang button {
  font: 600 var(--t-xs) / 1 var(--font-body); color: rgba(237, 237, 239, 0.7);
  background: none; border: 0; padding: 7px 10px; border-radius: 999px; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--gold); color: var(--ink); }
.burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--ink-line); background: none; cursor: pointer; padding: 0; }
.burger span { display: block; width: 18px; height: 2px; margin: 4px auto; background: var(--gold-light); border-radius: 2px; transition: transform 0.25s, opacity 0.25s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ------------------------------------------------------------------ the road */
/* clip, not hidden: nothing on the road may widen the page, and sticky still works inside. */
.journey { position: relative; isolation: isolate; overflow-x: clip; }
/* Above the section backgrounds, below their content: the gold lane shows on ink the way
   it does in the mark, and faintly on paper. */
.road {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; overflow: visible;
}
.road path { fill: none; vector-effect: non-scaling-stroke; }
.road__asphalt { stroke: rgba(13, 13, 15, 0.07); stroke-width: 54px; stroke-linecap: round; }
.road__lane {
  stroke: rgba(201, 162, 75, 0.55); stroke-width: 3px; stroke-dasharray: 16 18; stroke-linecap: round;
  animation: lane 1.6s linear infinite;
}
@keyframes lane { to { stroke-dashoffset: -34; } }
/* On the road's layer, so it drives under the words rather than across them. */
.car {
  position: absolute; top: 0; left: 0; z-index: 1; width: 34px; height: 20px;
  pointer-events: none; will-change: transform; opacity: 0; transition: opacity 0.4s;
}
.car.is-on { opacity: 1; }
.car span {
  display: block; width: 100%; height: 100%; border-radius: 7px 9px 9px 7px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-bright));
  box-shadow: 0 0 0 2px var(--ink), 0 6px 18px -4px rgba(201, 162, 75, 0.9);
  position: relative;
}
.car span::after { /* the lit taxi sign */
  content: ""; position: absolute; inset-block: 5px; inset-inline-end: 7px; width: 7px; border-radius: 2px; background: var(--ink);
}
.section, .hero { position: relative; }
.journey .wrap { position: relative; z-index: 2; }

/* ------------------------------------------------------------------ hero */
.hero {
  background:
    radial-gradient(900px 520px at 78% 38%, rgba(201, 162, 75, 0.16), transparent 62%),
    radial-gradient(700px 400px at 10% 100%, rgba(139, 107, 46, 0.18), transparent 60%),
    var(--ink);
  color: var(--on-ink);
  padding: calc(var(--nav-h) + clamp(40px, 8vw, 96px)) 0 clamp(48px, 7vw, 80px);
  overflow: hidden;
}
.hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.hero__copy { display: grid; gap: 22px; justify-items: start; }
.hero__title { font-size: var(--t-3xl); font-weight: 700; display: grid; gap: 4px; }
.hero__lead { font-size: var(--t-lg); color: rgba(237, 237, 239, 0.78); max-width: 34em; line-height: 1.8; }
.hero__more { color: var(--gold-light); font-weight: 600; text-underline-offset: 6px; font-size: var(--t-sm); }

.wheel { position: relative; width: min(100%, 440px); aspect-ratio: 1; margin-inline: auto; }
.wheel__mark { position: relative; width: 100%; height: 100%; object-fit: contain; animation: float 7s ease-in-out infinite; }
.wheel__glow { position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(circle, rgba(201, 162, 75, 0.45), transparent 70%); filter: blur(30px); }
.wheel__ring { /* a ring of wedge marks, like the inscriptions on the ancient wheel */
  position: absolute; inset: -6%; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(201, 162, 75, 0.55) 0deg 1.2deg, transparent 1.2deg 9deg);
  -webkit-mask: radial-gradient(circle, transparent 66%, #000 66.5%, #000 70%, transparent 70.5%);
  mask: radial-gradient(circle, transparent 66%, #000 66.5%, #000 70%, transparent 70.5%);
  animation: spin 60s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 50% { transform: translateY(-10px) rotate(-2deg); } }

.live {
  margin-top: clamp(32px, 5vw, 56px); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  color: rgba(237, 237, 239, 0.7); font-size: var(--t-sm);
}
.live__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 0 rgba(46, 158, 91, 0.6); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(46, 158, 91, 0); } 100% { box-shadow: 0 0 0 0 rgba(46, 158, 91, 0); } }
.live__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.live__list li { border: 1px solid var(--ink-line); border-radius: 999px; padding: 3px 12px; color: var(--gold-light); }

/* ------------------------------------------------------------------ store buttons */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.stores--center { justify-content: center; }
.store {
  display: inline-flex; align-items: center; gap: 12px; min-width: 190px; padding: 10px 18px 10px 16px;
  border-radius: 14px; text-decoration: none; background: var(--ink-2); color: var(--on-ink);
  border: 1px solid rgba(232, 213, 168, 0.28);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.store:hover { transform: translateY(-2px); border-color: var(--gold); box-shadow: 0 12px 28px -14px rgba(201, 162, 75, 0.8); }
.store svg { width: 28px; height: 28px; flex-shrink: 0; }
.store__text { display: grid; line-height: 1.25; text-align: start; }
.store__small { font-size: var(--t-xs); color: rgba(237, 237, 239, 0.66); }
.store__big { font-size: var(--t-md); font-weight: 700; font-family: var(--font-body); }
.store--soon { opacity: 0.62; cursor: default; }
.store--soon:hover { transform: none; box-shadow: none; border-color: rgba(232, 213, 168, 0.28); }
.store__badge { font-size: var(--t-xs); color: var(--ink); background: var(--gold-light); border-radius: 999px; padding: 1px 9px; margin-inline-start: 4px; font-weight: 600; }

/* ------------------------------------------------------------------ sections */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section--paper { background: transparent; }
.section--features { padding-top: 0; }
.section__title { font-size: var(--t-2xl); margin: 14px 0 clamp(32px, 5vw, 56px); max-width: 18em; }
.section__title--light { color: var(--on-ink); }

.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s;
}
.step {
  background: #fff; border: 1px solid var(--paper-line); border-radius: var(--radius);
  padding: 26px 22px; display: grid; gap: 10px; align-content: start;
  backdrop-filter: blur(4px);
}
.step__n {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  font: 700 var(--t-lg) / 1 var(--font-display); color: var(--ink);
  background: linear-gradient(160deg, var(--gold-light), var(--gold));
  font-variant-numeric: tabular-nums;
}
.step h3 { font-size: var(--t-lg); }
.step p, .feature p { color: var(--muted); font-size: var(--t-sm); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature {
  background: #fff; border: 1px solid var(--paper-line); border-radius: var(--radius);
  padding: 28px 24px; display: grid; gap: 10px; align-content: start;
  transition: transform 0.25s ease, border-color 0.25s ease;
  backdrop-filter: blur(4px);
}
.feature:hover { transform: translateY(-4px); border-color: var(--gold); }
.feature__icon { width: 44px; height: 44px; fill: none; stroke: var(--gold-dark); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: var(--t-lg); }

.section--ink {
  background: radial-gradient(800px 480px at 15% 20%, rgba(201, 162, 75, 0.14), transparent 60%), var(--ink);
  color: var(--on-ink);
}
.drivers { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 6vw, 72px); align-items: start; }
.drivers__copy { display: grid; gap: 18px; justify-items: start; position: sticky; top: calc(var(--nav-h) + 32px); }
.drivers__copy .section__title { margin: 0; }
.drivers__lead { color: rgba(237, 237, 239, 0.76); font-size: var(--t-lg); }
.perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.perk {
  border: 1px solid var(--ink-line); border-radius: var(--radius); padding: 24px;
  /* Opaque, so the road passes under the card rather than through its words. */
  background: linear-gradient(180deg, #19191d, var(--ink-2));
  display: grid; gap: 6px;
}
.perk h3 { color: var(--gold-light); font-size: var(--t-lg); }
.perk p { color: rgba(237, 237, 239, 0.72); font-size: var(--t-sm); }

.section--download { text-align: center; }
.download { display: grid; justify-items: center; }
.download .section__title { margin-bottom: 12px; }
.download__lead { color: var(--muted); margin-bottom: 28px; }

/* ------------------------------------------------------------------ content page */
.page { background: var(--paper); min-height: 70vh; padding: calc(var(--nav-h) + 48px) 0 96px; }
.page__wrap { max-width: 780px; }
.page__back { display: inline-block; color: var(--gold-dark); font-weight: 600; font-size: var(--t-sm); margin-bottom: 24px; text-underline-offset: 5px; }
.page__title { font-size: var(--t-2xl); margin-bottom: 18px; }
.page__note { background: var(--paper-2); border: 1px solid var(--paper-line); border-radius: 12px; padding: 10px 14px; color: var(--muted); font-size: var(--t-sm); margin-bottom: 20px; }
.page__body { display: grid; gap: 16px; font-size: var(--t-md); line-height: 1.95; max-width: 68ch; }
.page__body h2 { font-size: var(--t-lg); margin-top: 12px; }
.page__body ul { margin: 0; padding-inline-start: 1.3em; display: grid; gap: 6px; }

/* ------------------------------------------------------------------ delete account */
.del-form { display: grid; gap: 10px; margin-top: 12px; padding: 22px; border: 1px solid var(--paper-line); border-radius: var(--radius); background: #fff; }
.del-form h2 { margin: 0 0 6px; }
.del-form label { font-weight: 600; font-size: var(--t-sm); }
.del-form input[type="tel"], .del-form input[type="password"] {
  font: inherit; font-size: var(--t-md); padding: 12px 14px; border: 1px solid var(--paper-line); border-radius: 12px;
  background: var(--paper); color: var(--text); width: 100%; max-width: 360px; text-align: start;
}
.del-form input:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 1px; border-color: var(--gold); }
.del-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; line-height: 1.7; margin-top: 6px; }
.del-check input { width: 20px; height: 20px; margin-top: 4px; accent-color: var(--danger); flex: none; }
.del-error { color: var(--danger); font-size: var(--t-sm); background: rgba(196, 59, 59, 0.07); border-radius: 10px; padding: 10px 12px; margin: 0; }
.del-hint { color: var(--muted); font-size: var(--t-sm); margin: 4px 0 0; }
.del-done { font-size: var(--t-lg); color: var(--success); font-weight: 600; }
.btn--danger { background: var(--danger); color: #fff; justify-self: start; margin-top: 6px; }
.btn--danger:hover:not(:disabled) { transform: translateY(-2px); }
.btn--danger:disabled { opacity: 0.45; cursor: not-allowed; }

/* ------------------------------------------------------------------ footer */
.footer { background: var(--ink); color: rgba(237, 237, 239, 0.74); padding: 64px 0 28px; position: relative; z-index: 1; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer__brand { display: grid; gap: 8px; justify-items: start; }
.footer__name { font-family: var(--font-display); color: var(--gold-light); font-size: var(--t-xl); }
.footer__tag { font-size: var(--t-sm); }
.footer__h { font-family: var(--font-body); font-size: var(--t-sm); color: var(--gold); letter-spacing: 0.04em; margin-bottom: 14px; }
.footer__pages { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer__pages a { text-decoration: none; font-size: var(--t-sm); }
.footer__pages a:hover { color: var(--gold-light); text-decoration: underline; text-underline-offset: 4px; }
.social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.social a {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  border: 1px solid var(--ink-line); color: var(--gold-light); transition: background 0.2s, color 0.2s, transform 0.2s;
}
.social a:hover { background: var(--gold); color: var(--ink); transform: translateY(-2px); }
.social svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.footer__rights { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--ink-line); font-size: var(--t-xs); color: var(--muted-light); }

/* ------------------------------------------------------------------ reveal
   Visible by default; only elements below the fold at load get the hidden start state,
   and only when motion is welcome (site.js). */
.reveal.is-waiting { opacity: 0; transform: translateY(18px); }
.reveal { transition: opacity 0.7s ease, transform 0.7s ease; }

/* ------------------------------------------------------------------ small screens */
@media (max-width: 1020px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .nav__cta { display: none; }
}
@media (max-width: 860px) {
  .burger { display: block; }
  .nav__links {
    position: fixed; inset-inline: 0; top: var(--nav-h); margin: 0;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 12px var(--gutter) 20px;
    background: rgba(13, 13, 15, 0.96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--ink-line);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  }
  .nav__links.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__links a { padding: 12px 10px; font-size: var(--t-md); border-radius: 10px; }
  .nav__tools { margin-inline-start: auto; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: -1; }
  .wheel { width: min(72vw, 300px); }
  .drivers { grid-template-columns: 1fr; }
  .drivers__copy { position: static; }
  .footer__grid { grid-template-columns: 1fr; }
  .road__asphalt { stroke-width: 34px; }
}
@media (max-width: 560px) {
  .steps, .features { grid-template-columns: 1fr; }
  .brand__name { display: none; }
  .store { min-width: 0; flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .road__lane, .wheel__mark, .wheel__ring, .live__dot { animation: none; }
  .reveal, .btn, .store, .feature { transition: none; }
}
