/* =============================================================================
   iCar24 — icar24.uz
   Design system ported 1:1 from the iCar24 Flutter app
   (signal-orange + ink + paper · Archivo / Hanken Grotesk / JetBrains Mono).
   Voice: Aniq · Hurmatli · Tezkor · Halol.
   No glow, no surface gradients, restrained orange (≤ 8%), soft real shadows.
   ========================================================================== */

/* ----------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand */
  --signal: #f45b17;
  --signal-deep: #c9430c;
  --signal-tint: #fbd2bb;
  --orange-100: #fff5ee;
  --orange-200: #feddc6;
  --orange-300: #fcb68c;
  --orange-400: #f88a52;

  --ink: #0f1115;
  --ink-2: #2a2f38;
  --ink-700: #2a2f38;
  --ink-800: #1a1d22;
  --card-dark: #15181e;

  --paper: #f6f4ef;
  --paper-2: #eceae3;
  --white: #ffffff;

  --mute: #6b7280;
  --mute-2: #9ca3af;
  --rule: #e2dfd7;
  --rule-dark: #262a31;

  --success: #10b981;
  --warning: #f59e0b;
  --danger: #e11d48;
  --info: #3b82f6;

  /* Typography */
  --font-display: "Archivo", "Arial Black", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  /* Spacing — 4pt grid */
  --s-xxs: 4px;
  --s-xs: 8px;
  --s-s: 12px;
  --s-m: 16px;
  --s-l: 24px;
  --s-xl: 32px;
  --s-xxl: 48px;
  --s-xxxl: 64px;
  --page-pad: 20px;
  --section-gap: clamp(64px, 9vw, 120px);

  /* Radius */
  --r-xs: 6px;
  --r-s: 10px;
  --r-m: 14px;
  --r-l: 18px;
  --r-xl: 24px;
  --r-pill: 999px;

  /* Shadows — soft, real, no neon */
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 6px 14px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 16px 30px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-card-active: 0 12px 26px -16px rgba(0, 0, 0, 0.22);
  --shadow-device: 0 40px 80px -32px rgba(15, 17, 21, 0.45),
    0 8px 24px -12px rgba(15, 17, 21, 0.25);

  /* Motion */
  --dur-instant: 80ms;
  --dur-fast: 160ms;
  --dur-normal: 240ms;
  --dur-slow: 360ms;
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --ease-decel: cubic-bezier(0, 0, 0.2, 1);

  /* Layout */
  --container: 1200px;
  --nav-h: 72px;
}

/* ----------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

ul {
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

::selection {
  background: var(--signal);
  color: var(--white);
}

/* Icons — :where() keeps default size at zero specificity so any
   container rule (.card__icon svg, .btn svg, …) overrides it cleanly. */
:where(.ic, .ic--fill) {
  width: 24px;
  height: 24px;
  flex: none;
}

.ic {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ic--fill {
  fill: currentColor;
  stroke: none;
}

/* ----------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
.display-1,
.display-2,
h1,
h2,
h3 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.02;
  text-wrap: balance;
}

.display-1 {
  font-size: clamp(2.05rem, 6vw, 4.1rem);
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.display-2 {
  font-size: clamp(1.8rem, 5vw, 3.25rem);
  letter-spacing: -0.03em;
  line-height: 1;
}

h1 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  letter-spacing: -0.028em;
}

h2 {
  font-size: clamp(1.45rem, 2.2vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.022em;
}

h3 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

p {
  text-wrap: pretty;
}

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.5;
  color: var(--ink-2);
}

.muted {
  color: var(--mute);
}

/* Mono technical eyebrow — the brand's "tech" voice */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mute);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--signal);
}

.eyebrow--plain::before {
  display: none;
}

.eyebrow .idx {
  color: var(--signal);
}

.mono {
  font-family: var(--font-mono);
  font-feature-settings: "tnum" 1;
}

/* ----------------------------------------------------------------------------
   4. Layout primitives
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(var(--page-pad), 5vw, 56px);
}

.section {
  padding-block: var(--section-gap);
  position: relative;
}

.section--tight {
  padding-block: clamp(48px, 6vw, 72px);
}

.section-head {
  max-width: 780px;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.section-head .lede {
  margin-top: var(--s-m);
}

.section--ink {
  background: var(--ink);
  color: var(--paper-2);
}

.section--ink h1,
.section--ink h2,
.section--ink h3,
.section--ink .display-2 {
  color: var(--white);
}

.section--ink .muted {
  color: var(--mute-2);
}

.section--ink .eyebrow {
  color: var(--mute-2);
}

.hairline {
  border: 0;
  border-top: 1px solid var(--rule);
}

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--dur-slow) var(--ease-decel),
    transform var(--dur-slow) var(--ease-decel);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ----------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  --btn-h: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--btn-h);
  padding-inline: 26px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--r-m);
  border: 1.5px solid transparent;
  transition: transform var(--dur-instant) var(--ease-standard),
    background var(--dur-fast) var(--ease-standard),
    border-color var(--dur-fast) var(--ease-standard),
    color var(--dur-fast) var(--ease-standard);
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn--primary {
  background: var(--ink);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--ink-800);
}

.btn--signal {
  background: var(--signal);
  color: var(--white);
}

.btn--signal:hover {
  background: var(--signal-deep);
}

.btn--secondary {
  border-color: var(--ink);
  color: var(--ink);
}

.btn--secondary:hover {
  background: var(--ink);
  color: var(--white);
}

.btn--ghost {
  color: var(--ink);
  padding-inline: 12px;
}

.btn--ghost:hover {
  color: var(--signal);
}

.btn--on-ink.btn--secondary {
  border-color: rgba(246, 244, 239, 0.3);
  color: var(--white);
}

.btn--on-ink.btn--secondary:hover {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
}

.btn--sm {
  --btn-h: 42px;
  padding-inline: 18px;
  font-size: 0.75rem;
}

.btn--lg {
  --btn-h: 58px;
  padding-inline: 32px;
}

.btn--block {
  display: flex;
  width: 100%;
}

/* App-store style download badges */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  padding: 0 20px;
  border-radius: var(--r-m);
  background: var(--ink);
  color: var(--white);
  border: 1.5px solid var(--ink);
  transition: transform var(--dur-instant) var(--ease-standard),
    background var(--dur-fast) var(--ease-standard);
}

.store-badge:hover {
  background: var(--ink-800);
  transform: translateY(-2px);
}

.store-badge:active {
  transform: scale(0.98);
}

.store-badge svg {
  width: 24px;
  height: 24px;
  flex: none;
}

.store-badge__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-align: left;
}

.store-badge__text small {
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute-2);
  font-family: var(--font-mono);
}

.store-badge__text strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.store-badge--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}

.store-badge--ghost .store-badge__text small {
  color: var(--mute);
}

.store-badge--ghost:hover {
  background: var(--white);
  border-color: var(--ink);
}

/* ----------------------------------------------------------------------------
   6. Pills & chips
   -------------------------------------------------------------------------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 28px;
  padding-inline: 13px;
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pill--signal {
  background: var(--signal);
  color: var(--white);
}

.pill--ink {
  background: var(--ink);
  color: var(--white);
}

.pill--outline {
  border: 1px solid var(--rule);
  color: var(--ink);
}

.pill--soft {
  background: var(--orange-100);
  color: var(--signal-deep);
}

.pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.pill--live .dot {
  background: var(--success);
  animation: pulse-dot 1.6s var(--ease-standard) infinite;
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.7);
  }
}

/* ----------------------------------------------------------------------------
   7. Header / navigation
   -------------------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 244, 239, 0.82);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-normal) var(--ease-standard),
    background var(--dur-normal) var(--ease-standard);
}

.header.is-scrolled {
  border-bottom-color: var(--rule);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--s-l);
  height: var(--nav-h);
}

.nav__logo {
  flex: none;
}

.nav__logo img {
  height: 26px;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.nav__link {
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-2);
  border-radius: var(--r-s);
  transition: color var(--dur-fast) var(--ease-standard),
    background var(--dur-fast) var(--ease-standard);
}

.nav__link:hover {
  color: var(--ink);
  background: var(--paper-2);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--s-s);
}

/* Language switcher */
.lang {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--r-pill);
}

.lang__btn {
  padding: 6px 11px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
  border-radius: var(--r-pill);
  transition: color var(--dur-fast) var(--ease-standard),
    background var(--dur-fast) var(--ease-standard);
}

.lang__btn:hover {
  color: var(--ink);
}

.lang__btn.is-active {
  background: var(--ink);
  color: var(--white);
}

/* Mobile menu toggle */
.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-s);
  color: var(--ink);
}

.nav__toggle:hover {
  background: var(--paper-2);
}

.nav__toggle svg {
  width: 24px;
  height: 24px;
}

/* ----------------------------------------------------------------------------
   8. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: clamp(48px, 7vw, 88px);
  padding-bottom: clamp(56px, 8vw, 100px);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero__title {
  margin-top: var(--s-l);
}

.hero__title .hl {
  color: var(--signal);
}

.hero__lede {
  margin-top: var(--s-l);
  max-width: 30ch;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-s);
  margin-top: var(--s-xl);
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 3vw, 40px);
  margin-top: clamp(36px, 5vw, 56px);
  padding-top: var(--s-l);
  border-top: 1px solid var(--rule);
}

.trust-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.trust-stat__num {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}

.trust-stat__num .unit {
  color: var(--signal);
}

.trust-stat__label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
}

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
}

/* Decorative background tick grid */
.bg-ticks {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(
    circle at 1px 1px,
    var(--rule) 1px,
    transparent 0
  );
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(
    ellipse 70% 60% at 70% 20%,
    #000 0%,
    transparent 75%
  );
  mask-image: radial-gradient(
    ellipse 70% 60% at 70% 20%,
    #000 0%,
    transparent 75%
  );
  opacity: 0.7;
  z-index: 0;
}

.hero > .container {
  position: relative;
  z-index: 1;
}

/* ----------------------------------------------------------------------------
   9. Device / phone mockups (recreated app UI)
   -------------------------------------------------------------------------- */
.device {
  position: relative;
  width: 300px;
  aspect-ratio: 300 / 620;
  background: var(--ink);
  border-radius: 46px;
  padding: 11px;
  box-shadow: var(--shadow-device);
}

/* On the dark "how it works" section the ink bezel blends into the ink
   background — a hairline ring + deeper shadow keep it reading as a device. */
.section--ink .device {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07),
    0 34px 64px -30px rgba(0, 0, 0, 0.65);
}

.device::before {
  /* side button */
  content: "";
  position: absolute;
  right: -3px;
  top: 130px;
  width: 3px;
  height: 64px;
  border-radius: 0 3px 3px 0;
  background: var(--ink-800);
}

.device__screen {
  position: relative;
  height: 100%;
  background: var(--paper);
  border-radius: 36px;
  overflow: hidden;
}

.app {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  font-size: 11px;
}

.app__notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 92px;
  height: 22px;
  background: var(--ink);
  border-radius: var(--r-pill);
  z-index: 5;
}

.app__status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 22px 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
}

.app__status-icons {
  display: flex;
  gap: 5px;
  align-items: center;
}

.app__status-icons span {
  width: 16px;
  height: 10px;
  border-radius: 2px;
  background: var(--ink);
  opacity: 0.85;
}

.app__status-icons span:first-child {
  width: 17px;
  -webkit-mask: linear-gradient(90deg, #000 60%, transparent 60%);
  mask: linear-gradient(90deg, #000 70%, transparent 70%);
}

.app__body {
  flex: 1;
  overflow: hidden;
  padding: 6px 16px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.app__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 4px;
}

.app__bar img {
  height: 16px;
}

.app__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12px;
  color: var(--ink);
}

.app__greeting .k {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
}

.app__greeting .t {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-top: 3px;
}

.app__loc {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--r-m);
}

.app__loc .pin {
  width: 26px;
  height: 26px;
  border-radius: var(--r-s);
  background: var(--orange-100);
  color: var(--signal);
  display: grid;
  place-items: center;
  flex: none;
}

.app__loc .pin svg {
  width: 14px;
  height: 14px;
}

.app__loc .txt b {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  color: var(--ink);
}

.app__loc .txt small {
  display: block;
  font-size: 10px;
  color: var(--mute);
}

.app__loc .chev {
  margin-left: auto;
  color: var(--mute-2);
}

.app__services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.svc {
  position: relative;
  padding: 10px 8px 11px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--r-m);
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-height: 80px;
}

.svc--active {
  box-shadow: var(--shadow-card-active);
  border-color: var(--mute-2);
}

.svc__num {
  position: absolute;
  top: 7px;
  right: 9px;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 600;
  color: var(--signal);
}

.svc__icon {
  width: 30px;
  height: 30px;
  border-radius: var(--r-s);
  background: var(--paper-2);
  color: var(--ink);
  display: grid;
  place-items: center;
}

.svc__icon svg {
  width: 17px;
  height: 17px;
}

.svc__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.1;
}

.svc__sub {
  font-size: 8.5px;
  color: var(--mute);
  line-height: 1.2;
}

.app__banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: var(--ink);
  border-radius: var(--r-m);
  color: var(--paper);
  margin-top: auto;
}

.app__banner .b-badge {
  width: 30px;
  height: 30px;
  border-radius: var(--r-s);
  background: var(--signal);
  color: var(--white);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  flex: none;
}

.app__banner .b-txt b {
  font-size: 11px;
  font-weight: 600;
  color: var(--white);
}

.app__banner .b-txt small {
  display: block;
  font-size: 9px;
  color: var(--mute-2);
}

.app__nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 9px 8px calc(9px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--rule);
  background: var(--paper);
}

.app__nav span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--mute-2);
  font-size: 8px;
  font-weight: 600;
}

.app__nav span svg {
  width: 18px;
  height: 18px;
}

.app__nav span.is-active {
  color: var(--ink);
}

/* Floating notification card (matches app spec) */
.device__notif {
  position: absolute;
  top: 16%;
  left: -8%;
  width: 248px;
  max-width: 78vw;
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 13px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--r-l);
  box-shadow: var(--shadow-lg);
  z-index: 3;
  animation: floaty 5s var(--ease-standard) infinite;
}

.device__notif .n-badge {
  width: 38px;
  height: 38px;
  border-radius: var(--r-s);
  background: var(--signal);
  color: var(--white);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  flex: none;
}

.device__notif .n-txt b {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
}

.device__notif .n-txt small {
  display: block;
  font-size: 11px;
  color: var(--mute);
  margin-top: 1px;
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* ---- Map / tracking variant ---- */
.device--map .app__map {
  position: relative;
  flex: 1;
  background: var(--paper-2);
  background-image: linear-gradient(
      var(--rule) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 38px 38px;
  overflow: hidden;
}

.app__map .road {
  position: absolute;
  background: var(--rule);
}

.app__map .road--h {
  height: 14px;
  left: -10%;
  right: -10%;
  top: 38%;
  transform: rotate(-4deg);
}

.app__map .road--v {
  width: 13px;
  top: -10%;
  bottom: -10%;
  left: 58%;
  transform: rotate(6deg);
}

.app__map .route {
  position: absolute;
  left: 26%;
  top: 70%;
  width: 42%;
  height: 30%;
  border-left: 3px solid var(--signal);
  border-top: 3px solid var(--signal);
  border-top-left-radius: 30px;
}

.map-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.map-pin--me {
  left: 26%;
  top: 84%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--signal);
  border: 3px solid var(--white);
  box-shadow: var(--shadow-md);
}

.map-pin--pro {
  left: 68%;
  top: 70%;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--white);
  color: var(--white);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-md);
}

.map-pin--pro svg {
  width: 16px;
  height: 16px;
}

.app__sheet {
  background: var(--white);
  border-top: 1px solid var(--rule);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  padding: 12px 16px calc(14px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 11px;
  box-shadow: 0 -10px 30px -20px rgba(0, 0, 0, 0.25);
}

.app__sheet .handle {
  width: 38px;
  height: 4px;
  border-radius: 99px;
  background: var(--rule);
  margin: 0 auto 2px;
}

.sheet-eta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.sheet-eta .k {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
}

.sheet-eta .v {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.sheet-eta .v .u {
  font-size: 12px;
  color: var(--mute);
}

.sheet-pro {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px;
  border: 1px solid var(--rule);
  border-radius: var(--r-m);
}

.sheet-pro .av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--paper-2);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  color: var(--ink);
  flex: none;
}

.sheet-pro .info b {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}

.sheet-pro .info small {
  display: block;
  font-size: 9.5px;
  color: var(--mute);
}

.sheet-pro .rate {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 11px;
  color: var(--ink);
}

.sheet-pro .rate svg {
  width: 12px;
  height: 12px;
  color: var(--signal);
}

.sheet-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.sheet-actions button {
  height: 38px;
  border: 1.5px solid var(--ink);
  border-radius: var(--r-s);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.sheet-actions button svg {
  width: 13px;
  height: 13px;
}

.sheet-timeline {
  display: flex;
  align-items: center;
  gap: 0;
  padding-top: 2px;
}

.sheet-timeline .node {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--rule);
  flex: none;
}

.sheet-timeline .node.done {
  background: var(--ink);
}

.sheet-timeline .node.now {
  background: var(--signal);
  box-shadow: 0 0 0 3px var(--orange-200);
}

.sheet-timeline .seg {
  flex: 1;
  height: 2px;
  background: var(--rule);
}

.sheet-timeline .seg.done {
  background: var(--ink);
}

/* ----------------------------------------------------------------------------
   10. Marquee (service ticker)
   -------------------------------------------------------------------------- */
.marquee {
  border-block: 1px solid var(--rule);
  background: var(--white);
  overflow: hidden;
  padding-block: 16px;
}

.marquee__track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: marquee 32s linear infinite;
}

.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding-inline: 28px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}

.marquee__item::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal);
  margin-left: 14px;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

/* ----------------------------------------------------------------------------
   11. Service cards grid
   -------------------------------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 1.6vw, 18px);
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s-m);
  padding: clamp(20px, 2.4vw, 28px);
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--r-l);
  transition: transform var(--dur-normal) var(--ease-standard),
    box-shadow var(--dur-normal) var(--ease-standard),
    border-color var(--dur-normal) var(--ease-standard);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--mute-2);
}

.card__num {
  position: absolute;
  top: clamp(20px, 2.4vw, 28px);
  right: clamp(20px, 2.4vw, 28px);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--signal);
}

.card__icon {
  width: 54px;
  height: 54px;
  border-radius: var(--r-m);
  background: var(--paper-2);
  color: var(--ink);
  display: grid;
  place-items: center;
  transition: background var(--dur-normal) var(--ease-standard),
    color var(--dur-normal) var(--ease-standard);
}

.card:hover .card__icon {
  background: var(--ink);
  color: var(--white);
}

.card__icon svg {
  width: 26px;
  height: 26px;
}

.card__title {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.card__text {
  font-size: 0.95rem;
  color: var(--mute);
  line-height: 1.5;
}

.card__meta {
  margin-top: auto;
  padding-top: var(--s-s);
}

/* Feature cards (on ink) */
.section--ink .card {
  background: var(--card-dark);
  border-color: var(--rule-dark);
}

.section--ink .card:hover {
  border-color: #3a4049;
}

.section--ink .card__title {
  color: var(--white);
}

.section--ink .card__text {
  color: var(--mute-2);
}

.section--ink .card__icon {
  background: var(--ink-800);
  color: var(--signal);
}

.section--ink .card:hover .card__icon {
  background: var(--signal);
  color: var(--white);
}

/* ----------------------------------------------------------------------------
   12. How it works — steps
   -------------------------------------------------------------------------- */
.how {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
}

.steps {
  display: flex;
  flex-direction: column;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-l);
  padding-block: clamp(20px, 2.4vw, 28px);
  border-top: 1px solid var(--rule-dark);
}

.step:first-child {
  border-top: 0;
}

.step__n {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--signal);
  padding-top: 5px;
}

.step__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.018em;
  color: var(--white);
  margin-bottom: 8px;
}

.step__text {
  color: var(--mute-2);
  font-size: 0.98rem;
}

.how__visual {
  display: flex;
  justify-content: center;
}

/* ----------------------------------------------------------------------------
   13. Split / providers
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
}

.benefits {
  display: flex;
  flex-direction: column;
  gap: var(--s-s);
  margin-top: var(--s-xl);
}

.benefit {
  display: flex;
  gap: var(--s-m);
  align-items: flex-start;
  padding: var(--s-m) 0;
  border-bottom: 1px solid var(--rule);
}

.benefit__check {
  width: 26px;
  height: 26px;
  border-radius: var(--r-xs);
  background: var(--signal);
  color: var(--white);
  display: grid;
  place-items: center;
  flex: none;
}

.benefit__check svg {
  width: 15px;
  height: 15px;
}

.benefit__txt b {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 2px;
}

.benefit__txt span {
  font-size: 0.92rem;
  color: var(--mute);
}

/* Big visual stat panel */
.statpanel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--r-xl);
  overflow: hidden;
}

.statpanel__cell {
  background: var(--white);
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.statpanel__cell .v {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--ink);
  line-height: 1;
}

.statpanel__cell .v .u {
  color: var(--signal);
}

.statpanel__cell .k {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
}

/* ----------------------------------------------------------------------------
   14. Pricing / fee highlight
   -------------------------------------------------------------------------- */
.fee {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
  padding: clamp(32px, 4vw, 56px);
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
}

.fee__amount {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 7vw, 5.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: var(--ink);
}

.fee__amount .cur {
  color: var(--signal);
  font-size: 0.42em;
  vertical-align: super;
  letter-spacing: 0;
  margin-left: 6px;
}

.fee__list {
  display: flex;
  flex-direction: column;
  gap: var(--s-s);
}

.fee__list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.96rem;
  color: var(--ink-2);
}

.fee__list li svg {
  width: 20px;
  height: 20px;
  color: var(--signal);
  flex: none;
  margin-top: 2px;
}

/* ----------------------------------------------------------------------------
   15. Cities
   -------------------------------------------------------------------------- */
.cities {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-s);
}

.city {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
  transition: border-color var(--dur-fast) var(--ease-standard),
    background var(--dur-fast) var(--ease-standard);
}

.city:hover {
  border-color: var(--ink);
}

.city .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
}

.city--soon {
  color: var(--mute-2);
  border-style: dashed;
}

.city--soon .dot {
  background: var(--mute-2);
}

/* ----------------------------------------------------------------------------
   16. CTA band
   -------------------------------------------------------------------------- */
.cta {
  position: relative;
  background: var(--ink);
  border-radius: var(--r-xl);
  padding: clamp(40px, 6vw, 80px);
  overflow: hidden;
  text-align: center;
}

.cta__badge {
  position: absolute;
  right: -40px;
  bottom: -60px;
  width: 300px;
  height: 300px;
  opacity: 0.08;
  transform: rotate(-12deg);
}

.cta__inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin-inline: auto;
}

.cta__inner h2 {
  color: var(--white);
  margin-top: var(--s-m);
}

.cta__inner .lede {
  color: var(--mute-2);
  margin-top: var(--s-m);
}

.cta__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-s);
  justify-content: center;
  margin-top: var(--s-xl);
}

/* ----------------------------------------------------------------------------
   17. FAQ accordion
   -------------------------------------------------------------------------- */
.faq {
  max-width: 820px;
}

.faq__item {
  border-bottom: 1px solid var(--rule);
}

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-m);
  width: 100%;
  padding: clamp(18px, 2.2vw, 24px) 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  font-weight: 700;
  letter-spacing: -0.012em;
  color: var(--ink);
}

.faq__icon {
  flex: none;
  width: 30px;
  height: 30px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink);
  transition: transform var(--dur-normal) var(--ease-standard),
    background var(--dur-fast) var(--ease-standard),
    color var(--dur-fast) var(--ease-standard);
}

.faq__icon svg {
  width: 16px;
  height: 16px;
}

.faq__item.is-open .faq__icon {
  transform: rotate(45deg);
  background: var(--ink);
  color: var(--white);
}

.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-normal) var(--ease-standard);
}

.faq__item.is-open .faq__a {
  grid-template-rows: 1fr;
}

.faq__a-inner {
  overflow: hidden;
}

.faq__a p {
  padding-bottom: clamp(18px, 2.2vw, 24px);
  max-width: 64ch;
  color: var(--mute);
  font-size: 1rem;
}

/* ----------------------------------------------------------------------------
   18. Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--ink);
  color: var(--mute-2);
  padding-block: clamp(56px, 7vw, 88px) 32px;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: var(--s-xxl);
  border-bottom: 1px solid var(--rule-dark);
}

.footer__brand img {
  height: 26px;
  margin-bottom: var(--s-m);
}

.footer__brand p {
  max-width: 32ch;
  color: var(--mute-2);
  font-size: 0.95rem;
}

.footer__brand .socials {
  display: flex;
  gap: 10px;
  margin-top: var(--s-l);
}

.footer__brand .socials a {
  width: 40px;
  height: 40px;
  border: 1px solid var(--rule-dark);
  border-radius: var(--r-s);
  display: grid;
  place-items: center;
  color: var(--paper-2);
  transition: background var(--dur-fast) var(--ease-standard),
    border-color var(--dur-fast) var(--ease-standard);
}

.footer__brand .socials a:hover {
  background: var(--signal);
  border-color: var(--signal);
  color: var(--white);
}

.footer__brand .socials svg {
  width: 18px;
  height: 18px;
}

.footer__col h4 {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: var(--s-m);
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer__col a {
  font-size: 0.95rem;
  color: var(--paper-2);
  transition: color var(--dur-fast) var(--ease-standard);
}

.footer__col a:hover {
  color: var(--signal);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-m);
  justify-content: space-between;
  align-items: center;
  padding-top: var(--s-l);
}

.footer__bottom p {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--mute);
}

.footer__bottom .legal {
  display: flex;
  gap: var(--s-l);
}

.footer__bottom .legal a {
  font-size: 0.85rem;
  color: var(--mute-2);
}

.footer__bottom .legal a:hover {
  color: var(--paper);
}

/* ----------------------------------------------------------------------------
   19. Legal pages
   -------------------------------------------------------------------------- */
.legal {
  max-width: 820px;
  margin-inline: auto;
}

.legal__head {
  padding-block: clamp(40px, 6vw, 72px) clamp(28px, 3vw, 40px);
  border-bottom: 1px solid var(--rule);
  margin-bottom: clamp(32px, 4vw, 48px);
}

.legal__head .updated {
  margin-top: var(--s-m);
}

.legal__section {
  margin-bottom: var(--s-xl);
}

.legal__section h2 {
  font-size: 1.3rem;
  margin-bottom: var(--s-s);
}

.legal__section p,
.legal__section li {
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.65;
}

.legal__section ul {
  list-style: none;
  margin-top: var(--s-xs);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal__section li {
  padding-left: 22px;
  position: relative;
}

.legal__section li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--signal);
}

.legal__note {
  margin-top: var(--s-xl);
  padding: var(--s-l);
  background: var(--paper-2);
  border-radius: var(--r-m);
  border-left: 3px solid var(--signal);
  font-size: 0.96rem;
  color: var(--ink-2);
}

/* ----------------------------------------------------------------------------
   20. Utilities
   -------------------------------------------------------------------------- */
.center {
  text-align: center;
  margin-inline: auto;
}

.section-head.center {
  margin-inline: auto;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--r-s);
  transition: top var(--dur-fast) var(--ease-standard);
}

.skip-link:focus {
  top: 16px;
}

/* ----------------------------------------------------------------------------
   21. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 880px) {
  /* Single column — copy leads, visual follows (natural DOM order) */
  .hero__grid,
  .how,
  .split,
  .fee {
    grid-template-columns: 1fr;
  }
  .hero__visual,
  .how__visual,
  .split__visual {
    margin-top: var(--s-l);
  }
  .nav {
    gap: var(--s-m);
  }
  .nav__links {
    display: none;
  }
  .nav__actions {
    margin-left: auto;
  }
  .nav__toggle {
    display: inline-flex;
  }
  .nav__actions .btn--primary {
    display: none;
  }
  .section-head {
    margin-bottom: clamp(28px, 6vw, 44px);
  }
}

@media (max-width: 640px) {
  /* Floating notification clutters small screens — let the phone stand alone */
  .device__notif {
    display: none;
  }
}

@media (max-width: 560px) {
  .cards {
    grid-template-columns: 1fr;
  }
  .statpanel {
    grid-template-columns: 1fr;
  }
  .fee {
    text-align: left;
  }
  .footer__top {
    grid-template-columns: 1fr;
  }
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  /* Full-width stacked hero CTAs read cleaner on phones */
  .hero__cta {
    flex-direction: column;
    align-items: stretch;
  }
  .hero__cta .btn {
    width: 100%;
  }
  .cta {
    padding-inline: 22px;
  }
}

@media (max-width: 420px) {
  .nav {
    gap: var(--s-s);
  }
  .lang__btn {
    padding: 6px 9px;
  }
}

/* Very small phones: the mockup uses fixed-px internals, so scale the whole
   device down uniformly (zoom reflows layout, unlike transform). */
@media (max-width: 360px) {
  .device {
    zoom: 0.86;
  }
}

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: var(--paper);
  padding: var(--s-l) var(--page-pad);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--dur-normal) var(--ease-standard);
  visibility: hidden;
}

.drawer.is-open {
  transform: none;
  visibility: visible;
}

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--s-xl);
}

.drawer__head img {
  height: 26px;
}

.drawer__close {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--r-s);
  color: var(--ink);
}

.drawer__close svg {
  width: 26px;
  height: 26px;
}

.drawer__links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.drawer__links a {
  padding: 16px 8px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
}

.drawer__footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: var(--s-m);
}

/* ----------------------------------------------------------------------------
   22. Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ----------------------------------------------------------------------------
   23. Realistic app mockups (map-first home + live tracking)
   Supersedes the earlier paper-grid mockup; matches the real iCar24 app UI.
   Reuses .device / .device__screen / .device__notif / .app / .app__notch.
   -------------------------------------------------------------------------- */
.app--home,
.app--track {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  font-size: 11px;
}

/* ---- Map ---- */
.amap {
  position: relative;
  flex: 1;
  background: var(--paper-2);
  overflow: hidden;
}

.amap__road {
  position: absolute;
  background: #fff;
  border-radius: 2px;
}
.amap__road--1 {
  height: 22px;
  left: -10%;
  right: -10%;
  top: 30%;
  transform: rotate(-7deg);
}
.amap__road--2 {
  width: 20px;
  top: -10%;
  bottom: -10%;
  left: 52%;
  transform: rotate(9deg);
}
.amap__road--3 {
  height: 13px;
  left: -10%;
  right: 30%;
  top: 64%;
  transform: rotate(5deg);
}

.amap__poi {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 4px;
  transform: translate(-50%, -50%);
  z-index: 2;
}
.amap__poi b {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 8px;
  color: var(--ink-2);
  white-space: nowrap;
  background: rgba(246, 244, 239, 0.7);
  padding: 0 3px;
  border-radius: 3px;
}
.amap__poi .d {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: var(--shadow-sm);
  flex: none;
}
.d--blue { background: #2563eb; }
.d--red { background: #ef4444; }
.d--navy { background: #1e3a8a; }
.d--green { background: #10b981; }
.d--gray { background: #9ca3af; }

.amap__status {
  position: absolute;
  top: 12px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 22px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  z-index: 6;
}
.amap__status-ic {
  display: flex;
  gap: 3px;
  align-items: center;
}
.amap__status-ic i {
  width: 14px;
  height: 9px;
  border-radius: 2px;
  background: var(--ink);
}
.amap__status-ic i.bat {
  width: 17px;
  border: 1.5px solid var(--ink);
  background: transparent;
  position: relative;
}
.amap__status-ic i.bat::after {
  content: "";
  position: absolute;
  inset: 1.5px;
  width: 60%;
  background: var(--success);
  border-radius: 1px;
}

.amap__logo {
  position: absolute;
  top: 40px;
  left: 14px;
  background: #fff;
  border-radius: var(--r-pill);
  padding: 6px 11px;
  box-shadow: var(--shadow-md);
  z-index: 4;
}
.amap__logo img { height: 13px; }

/* user pin (orange teardrop + accuracy ring) */
.upin {
  position: absolute;
  left: 44%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
}
.upin__ring {
  position: absolute;
  left: 50%;
  top: 60%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.16);
  border: 1px solid rgba(37, 99, 235, 0.3);
}
.upin__drop {
  position: relative;
  display: block;
  width: 20px;
  height: 20px;
  background: var(--signal);
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 0;
  transform: rotate(45deg);
  box-shadow: var(--shadow-md);
  margin: 0 auto;
}
.upin__drop::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
}
.upin--sm .upin__drop {
  width: 15px;
  height: 15px;
  border-width: 2.5px;
}

/* provider pin */
.ppin {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid #fff;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-md);
  z-index: 3;
}
.ppin svg { width: 15px; height: 15px; }

/* route */
.aroute {
  position: absolute;
  left: 28%;
  top: 46%;
  width: 38%;
  height: 32%;
  border-left: 3px solid var(--signal);
  border-top: 3px solid var(--signal);
  border-top-left-radius: 26px;
  z-index: 1;
}

/* ---- Bottom sheet ---- */
.asheet {
  position: relative;
  background: #fff;
  border-radius: 22px 22px 0 0;
  padding: 9px 14px calc(12px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 -12px 28px -18px rgba(0, 0, 0, 0.28);
  z-index: 5;
}
.asheet__handle {
  width: 40px;
  height: 4px;
  border-radius: 99px;
  background: var(--rule);
  margin: 0 auto;
}
.asheet__fab {
  position: absolute;
  right: 14px;
  top: -44px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-md);
  color: var(--ink);
}
.asheet__fab svg { width: 16px; height: 16px; }

.aaddr {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--rule);
  border-radius: var(--r-m);
}
.aaddr__pin svg { width: 14px; height: 14px; }
.aaddr__txt {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 10.5px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.aaddr__x {
  margin-left: auto;
  color: var(--mute-2);
}
.aaddr__x svg { width: 13px; height: 13px; }

.asvc-scroll {
  display: flex;
  gap: 8px;
  overflow: hidden;
  margin: 0 -14px;
  padding: 2px 14px;
  -webkit-mask: linear-gradient(90deg, #000 86%, transparent);
  mask: linear-gradient(90deg, #000 86%, transparent);
}
.asvc {
  flex: none;
  width: 104px;
  padding: 10px;
  border: 1.5px solid var(--rule);
  border-radius: var(--r-m);
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #fff;
}
.asvc.is-selected {
  border-color: var(--signal);
  background: var(--orange-100);
}
.asvc__ic {
  width: 30px;
  height: 30px;
  border-radius: var(--r-s);
  background: var(--signal);
  color: #fff;
  display: grid;
  place-items: center;
}
.asvc__ic svg { width: 17px; height: 17px; }
.asvc__eta {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 7.5px;
  font-weight: 600;
  color: var(--mute);
  background: var(--paper-2);
  padding: 2px 6px;
  border-radius: var(--r-pill);
}
.asvc__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.asvc__price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.asvc__nego {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 7.5px;
  color: var(--mute);
}
.asvc__nego i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--success);
}

.aorder-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.amenu {
  width: 40px;
  height: 40px;
  flex: none;
  border: 1px solid var(--rule);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink);
}
.amenu svg { width: 17px; height: 17px; }
.aorder {
  flex: 1;
  height: 40px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-m);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.aorder svg { width: 15px; height: 15px; }

/* ---- Track sheet ---- */
.atrack-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.atrack-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11px;
  color: var(--ink);
}
.atrack-status .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
}
.atrack-eta {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.atrack-eta .k {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
}
.atrack-eta b {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.atrack-eta b .u { font-size: 10px; color: var(--mute); }

.apro {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px;
  border: 1px solid var(--rule);
  border-radius: var(--r-m);
}
.apro__av {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--paper-2);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  color: var(--ink);
  flex: none;
}
.apro__info b { font-size: 11.5px; font-weight: 600; color: var(--ink); }
.apro__info small { display: block; font-size: 9px; color: var(--mute); }
.apro__rate {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 11px;
  color: var(--ink);
}
.apro__rate svg { width: 12px; height: 12px; color: var(--signal); }

.aactions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.aactions__btn {
  height: 36px;
  border: 1.5px solid var(--ink);
  border-radius: var(--r-s);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}
.aactions__btn svg { width: 13px; height: 13px; }

.atimeline {
  display: flex;
  align-items: center;
  padding-top: 2px;
}
.atimeline .node {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--rule);
  flex: none;
}
.atimeline .node.done { background: var(--ink); }
.atimeline .node.now {
  background: var(--signal);
  box-shadow: 0 0 0 3px var(--orange-200);
}
.atimeline .seg { flex: 1; height: 2px; background: var(--rule); }
.atimeline .seg.done { background: var(--ink); }
