/* EV xarita landing page. No framework, no script: one stylesheet, two self-hosted Onest subsets (OFL, OFL.txt).
   Colours are @evx/tokens `lightColors` / `darkColors` (packages/tokens/src/colors.ts) and a few `palette` steps for
   the night band, the road motif and the status marks; radii and type follow `radii` / `typeScale`. Copied by value
   because the page has no build step; `check.mjs` keeps them equal to the tokens.
   Design: direction "Yoʻlak" (docs/progress/landing.md): the app's own screens in phone frames, the green road that
   runs from the hero through the three steps to the last call, a night band for privacy. */

@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/onest-latin-400-normal.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/onest-latin-700-normal.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/onest-cyrillic-400-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/onest-cyrillic-700-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  color-scheme: light dark;
  /* tokens:light */
  --background: #f1f6f3;
  --surface: #ffffff;
  --surface-elevated: #ffffff;
  --surface-muted: #e6f0ea;
  --surface-strong: #d7e6dd;
  --border: #d5e1da;
  --border-strong: #76887f;
  --text-primary: #10201a;
  --text-secondary: #3f534a;
  --text-tertiary: #5a6d64;
  --primary: #0b6e4f;
  --primary-pressed: #095a41;
  --on-primary: #ffffff;
  --primary-text: #0b6e4f;
  --primary-tint: #d9efe3;
  --primary-tint-text: #095a41;
  --highlight-tint: #fcefd6;
  --highlight-text: #8a5200;
  --info-text: #035a8a;
  --info-tint: #e0f0fa;
  --success-text: #00764d;
  --success-tint: #e7f3ee;
  --danger-text: #b42318;
  --danger-tint: #fde8e6;
  --focus: #0b6e4f;
  /* /tokens */
  /* palette */
  --night-950: #0b0f14;
  --night-850: #202328;
  --night-775: #373d45;
  --night-300: #b9c0c6;
  --night-100: #ecf0f4;
  --green-950: #04140d;
  --green-750: #184030;
  --green-600: #0b6e4f;
  --green-450: #3fcb91;
  --green-350: #5fd9a5;
  --green-200: #7be3b6;
  --amber-500: #f5b43c;
  --red-400: #ff8a80;
  --slate-400: #939a9c;
  --gray-75: #edf3ee;
  --gray-0: #ffffff;
  /* /palette */
  /* the road and the land of the motif: the app's light map (`lightMapColors`) */
  --road: var(--green-600);
  --road-glow: rgba(11, 110, 79, 0.18);
  --land: var(--gray-75);
  --cta-bg: var(--green-600);
  --cta-text: var(--gray-0);
  --cta-soft: rgba(255, 255, 255, 0.82);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --font:
    'Onest', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --shadow-sm: 0 1px 2px rgba(16, 32, 26, 0.06), 0 4px 12px rgba(16, 32, 26, 0.06);
  --shadow: 0 2px 4px rgba(16, 32, 26, 0.06), 0 12px 32px rgba(16, 32, 26, 0.1);
  --shadow-phone: 0 2px 6px rgba(16, 32, 26, 0.12), 0 30px 60px -12px rgba(16, 32, 26, 0.32);
  --gutter: 16px;
  --max: 1200px;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* tokens:dark */
    --background: #16181b;
    --surface: #202328;
    --surface-elevated: #292d33;
    --surface-muted: #25292e;
    --surface-strong: #383e46;
    --border: #373d45;
    --border-strong: #717a85;
    --text-primary: #ecf0f4;
    --text-secondary: #b9c0c6;
    --text-tertiary: #99a0a6;
    --primary: #3fcb91;
    --primary-pressed: #5bd7a3;
    --on-primary: #04140d;
    --primary-text: #5fd9a5;
    --primary-tint: #184030;
    --primary-tint-text: #7be3b6;
    --highlight-tint: #493512;
    --highlight-text: #f8c462;
    --info-text: #7dd3fc;
    --info-tint: #133d51;
    --success-text: #6fdda2;
    --success-tint: #203f31;
    --danger-text: #ff8a80;
    --danger-tint: #622522;
    --focus: #5fd9a5;
    /* /tokens */
    --road: var(--green-450);
    --road-glow: rgba(63, 203, 145, 0.22);
    --land: #14171b;
    --cta-bg: var(--green-750);
    --cta-text: var(--night-100);
    --cta-soft: var(--night-300);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 12px rgba(0, 0, 0, 0.25);
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.35);
    --shadow-phone: 0 2px 6px rgba(0, 0, 0, 0.4), 0 30px 60px -12px rgba(0, 0, 0, 0.7);
  }
}

@media (min-width: 720px) {
  :root {
    --gutter: 32px;
  }
}

/* ───────────── base ───────────── */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text-primary);
  font: 400 16px/1.55 var(--font);
  overflow-wrap: break-word;
  overflow-x: clip;
}

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

a {
  color: var(--primary-text);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible,
summary:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

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

h2 {
  font-size: clamp(30px, 4.6vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.025em;
}

h3 {
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: 12px;
  top: 12px;
  transform: translateY(-200%);
  z-index: 10;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text-primary);
  box-shadow: var(--shadow);
}

.skip:focus {
  transform: none;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--primary-text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kicker::before {
  content: '';
  width: 22px;
  height: 4px;
  border-radius: 2px;
  background: var(--road);
}

.lead {
  color: var(--text-secondary);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
}

/* ───────────── buttons ───────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 999px;
  border: 0;
  font: 700 16px/1.2 var(--font);
  text-decoration: none;
  transition:
    transform 0.15s ease,
    background-color 0.15s ease,
    box-shadow 0.15s ease;
}

.btn svg {
  flex: none;
}

.btn--primary {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow:
    0 8px 20px -6px var(--road-glow),
    0 2px 4px rgba(0, 0, 0, 0.08);
}

.btn--primary:hover {
  background: var(--primary-pressed);
  transform: translateY(-1px);
}

.btn--secondary {
  background: var(--surface);
  color: var(--text-primary);
  box-shadow: inset 0 0 0 1.5px var(--border-strong);
}

.btn--secondary:hover {
  background: var(--surface-muted);
}

.btn--soon {
  background: transparent;
  color: var(--text-secondary);
  box-shadow: inset 0 0 0 1.5px var(--border);
  font-weight: 400;
}

.btn--soon b {
  color: var(--text-primary);
}

.btn--small {
  min-height: 44px;
  padding: 0 18px;
  font-size: 15px;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ───────────── header ───────────── */

.top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--background);
  border-bottom: 1px solid transparent;
}

@supports (backdrop-filter: blur(12px)) {
  .top {
    background: color-mix(in srgb, var(--background) 82%, transparent);
    backdrop-filter: saturate(1.4) blur(12px);
  }
}

.top__bar {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-right: auto;
  color: var(--text-primary);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand svg {
  border-radius: 9px;
}

.nav {
  display: none;
  gap: 4px;
}

.nav a,
.lang {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--text-secondary);
  font-size: 15px;
  text-decoration: none;
}

.nav a:hover,
.lang:hover {
  background: var(--surface-muted);
  color: var(--text-primary);
}

.lang {
  box-shadow: inset 0 0 0 1px var(--border);
  font-weight: 700;
}

.top .btn {
  display: none;
}

@media (min-width: 560px) {
  .top .btn {
    display: inline-flex;
  }
}

@media (min-width: 1000px) {
  .nav {
    display: flex;
  }
}

/* ───────────── hero ───────────── */

.hero {
  position: relative;
  padding: 24px 0 56px;
  overflow: clip;
}

/* the land behind the hero: a quiet street grid in the map's colours, fading out at the bottom */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 55% at 78% 40%, var(--road-glow), transparent 70%),
    linear-gradient(var(--border) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, var(--border) 1px, transparent 1px) 0 0 / 56px 56px;
  mask-image: linear-gradient(to bottom, #000 30%, transparent 95%);
  opacity: 0.7;
}

.hero__grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  margin-bottom: 20px;
  padding: 4px 14px 4px 6px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: var(--text-secondary);
  font-size: 14px;
}

.badge b {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--primary-tint);
  color: var(--primary-tint-text);
  font-size: 13px;
}

.hero h1 {
  font-size: clamp(38px, 5.2vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

/* "bitta xaritada": the brand road under the words */
.hero h1 em {
  position: relative;
  font-style: normal;
  color: var(--primary-text);
  white-space: nowrap;
}

.hero h1 em::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.04em;
  height: 0.11em;
  border-radius: 1em;
  background:
    repeating-linear-gradient(90deg, var(--background) 0 10px, transparent 10px 22px) 0 50% / 100% 2px
      no-repeat,
    var(--road);
  transform-origin: left;
  animation: draw 1.1s 0.3s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero .lead {
  max-width: 34em;
  margin: 24px 0 32px;
}

.hero__note {
  margin-top: 16px;
  color: var(--text-tertiary);
  font-size: 14px;
}

/* the stage: two phones on a road, with the marks the app shows floating beside them */
.stage {
  position: relative;
  margin: 0;
  min-height: 520px;
  display: grid;
  place-items: center;
}

.stage__road {
  position: absolute;
  inset: -10% -30%;
  width: 160%;
  height: 120%;
  z-index: 0;
  pointer-events: none;
}

.stage__road path {
  fill: none;
  stroke-linecap: round;
}

.stage__road .casing {
  stroke: var(--road-glow);
  stroke-width: 44;
}

.stage__road .lane {
  stroke: var(--road);
  stroke-width: 12;
  stroke-dasharray: 1600;
  stroke-dashoffset: 1600;
  animation: road 2.2s 0.2s cubic-bezier(0.3, 0.6, 0.2, 1) forwards;
}

.stage__road .dash {
  stroke: var(--background);
  stroke-width: 2;
  stroke-dasharray: 10 14;
  opacity: 0.8;
}

.phones {
  position: relative;
  z-index: 1;
  width: min(100%, 460px);
  height: 520px;
}

.phone {
  position: absolute;
  width: 230px;
  padding: 8px;
  border-radius: 40px;
  background: var(--night-950);
  box-shadow:
    inset 0 0 0 1.5px var(--night-775),
    var(--shadow-phone);
}

.phone::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 50%;
  z-index: 1;
  width: 64px;
  height: 18px;
  margin-left: -32px;
  border-radius: 10px;
  background: var(--night-950);
}

.phone img {
  width: 100%;
  height: auto;
  border-radius: 32px;
  background: var(--land);
}

.phones .phone--back {
  left: 0;
  top: 32px;
  transform: rotate(-7deg);
}

.phones .phone--front {
  right: 0;
  top: 0;
  transform: rotate(4deg);
}

.float {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 10px;
  border-radius: 16px;
  background: var(--surface-elevated);
  box-shadow: var(--shadow);
  font-size: 14px;
  line-height: 1.3;
  animation: bob 6s ease-in-out infinite alternate;
}

.float small {
  display: block;
  color: var(--text-tertiary);
  font-size: 12px;
}

.float b {
  display: block;
}

.float__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.float--price {
  left: 0;
  bottom: 40px;
}

.float--price .float__icon {
  background: var(--highlight-tint);
  color: var(--highlight-text);
}

.float--mark {
  right: -8px;
  top: 110px;
  animation-delay: -3s;
}

.float--mark .float__icon {
  background: var(--success-tint);
  color: var(--success-text);
}

.stage__caption {
  position: relative;
  z-index: 2;
  justify-self: stretch;
  margin-top: 12px;
  color: var(--text-tertiary);
  font-size: 12px;
  line-height: 1.5;
  text-align: right;
}

/* the basemap's credit (ODbL): wherever a screen shows the map */
.stage__caption a,
.media__caption a {
  color: var(--text-secondary);
}

@media (max-width: 479px) {
  .stage {
    min-height: 440px;
  }
  .phones {
    height: 440px;
    max-width: 340px;
  }
  .phone {
    width: 190px;
    border-radius: 34px;
    padding: 7px;
  }
  .phone img {
    border-radius: 27px;
  }
  .float {
    font-size: 13px;
  }
  .float--mark {
    right: -4px;
    top: 70px;
  }
  .float--price {
    bottom: 24px;
  }
}

@media (min-width: 960px) {
  .hero {
    padding: 48px 0 88px;
  }
  .hero__grid {
    grid-template-columns: 1.08fr 1fr;
    gap: 48px;
  }
  .stage {
    min-height: 640px;
  }
  .phones {
    height: 620px;
    width: 520px;
  }
  .phone {
    width: 268px;
    border-radius: 46px;
    padding: 9px;
  }
  .phone img {
    border-radius: 37px;
  }
  .float--price {
    left: -36px;
    bottom: 72px;
  }
  .float--mark {
    right: -40px;
    top: 150px;
  }
}

/* ───────────── facts strip ───────────── */

.facts {
  padding: 0 0 24px;
}

.facts__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--border);
  box-shadow: var(--shadow-sm);
  list-style: none;
}

.facts__list li {
  padding: 20px;
  background: var(--surface);
}

.facts__num {
  display: block;
  color: var(--text-primary);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.facts__num small {
  font-size: 0.5em;
  letter-spacing: 0;
}

.facts__list p {
  margin-top: 4px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.4;
}

.facts__date {
  margin-top: 12px;
  color: var(--text-tertiary);
  font-size: 13px;
}

@media (min-width: 840px) {
  .facts__list {
    grid-template-columns: repeat(4, 1fr);
  }
  .facts__list li {
    padding: 28px;
  }
}

/* ───────────── sections ───────────── */

.section {
  padding: 72px 0;
}

.section--surface {
  background: var(--surface);
}

.section__head {
  max-width: 760px;
  margin-bottom: 40px;
}

.section__head .lead {
  margin-top: 16px;
}

@media (min-width: 960px) {
  .section {
    padding: 112px 0;
  }
  .section__head {
    margin-bottom: 56px;
  }
}

/* three steps on one road: the pins are the stops, the dashed lane joins them */
.steps {
  position: relative;
  display: grid;
  gap: 16px;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 0 0 8px 72px;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50% 50% 50% 4px;
  transform: rotate(-45deg);
  background: var(--primary);
  color: var(--on-primary);
  font-size: 0;
  box-shadow: 0 0 0 6px var(--background);
}

/* the number upright again, on top of the turned pin */
.steps li::after {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: var(--on-primary);
  font-size: 22px;
  font-weight: 700;
}

.steps::before {
  content: '';
  position: absolute;
  left: 25px;
  top: 30px;
  bottom: 30px;
  width: 0;
  border-left: 4px dashed var(--road);
  opacity: 0.55;
}

.steps h3 {
  padding-top: 12px;
  font-size: 22px;
}

.steps p {
  margin-top: 8px;
  color: var(--text-secondary);
}

@media (min-width: 840px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
  .steps li {
    padding: 80px 0 0;
  }
  .steps::before {
    left: 30px;
    right: 30px;
    top: 24px;
    bottom: auto;
    width: auto;
    height: 0;
    border-left: 0;
    border-top: 4px dashed var(--road);
  }
}

/* a feature: words on one side, the app's own screen on the other */
.feature {
  display: grid;
  gap: 40px;
  align-items: center;
}

.feature + .feature {
  margin-top: 96px;
}

.feature__text h2 {
  font-size: clamp(30px, 4vw, 46px);
}

.feature__text .lead {
  margin-top: 16px;
}

.points {
  display: grid;
  gap: 14px;
  margin-top: 28px;
  list-style: none;
}

.points li {
  position: relative;
  padding-left: 36px;
  color: var(--text-secondary);
}

.points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary-tint);
}

.points li::after {
  content: '';
  position: absolute;
  left: 8px;
  top: 6px;
  width: 6px;
  height: 11px;
  border: solid var(--primary-tint-text);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

.points strong {
  color: var(--text-primary);
}

.media {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 460px;
  padding: 32px 16px;
  border-radius: var(--radius-xl);
  background: radial-gradient(70% 60% at 50% 45%, var(--road-glow), transparent 75%), var(--surface-muted);
  overflow: clip;
}

.section--surface .media {
  background: radial-gradient(70% 60% at 50% 45%, var(--road-glow), transparent 75%), var(--background);
}

.media .phone {
  position: relative;
  width: 240px;
}

.media--pair {
  grid-auto-flow: column;
  gap: 16px;
}

.media--pair .phone {
  width: 200px;
}

.media--pair .phone:first-child {
  transform: rotate(-3deg) translateY(12px);
}

.media--pair .phone:last-child {
  transform: rotate(3deg) translateY(-12px);
}

.media__caption {
  position: absolute;
  bottom: 8px;
  left: 16px;
  right: 16px;
  color: var(--text-tertiary);
  font-size: 12px;
  text-align: center;
}

@media (max-width: 479px) {
  .media--pair {
    gap: 10px;
    padding-inline: 8px;
  }
  .media--pair .phone {
    width: 148px;
    padding: 6px;
    border-radius: 26px;
  }
  .media--pair .phone img {
    border-radius: 21px;
  }
  .media--pair .phone::before {
    top: 11px;
    width: 40px;
    height: 12px;
    margin-left: -20px;
  }
}

@media (min-width: 960px) {
  .feature {
    grid-template-columns: 1fr 1fr;
    gap: 72px;
  }
  .feature--flip .feature__text {
    order: 2;
  }
  .media {
    min-height: 620px;
  }
  .media .phone {
    width: 280px;
  }
  .media--pair .phone {
    width: 240px;
  }
}

/* price cards beside the phone: what a known price carries, and what an unknown one says */
.pricecards {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 40px;
  z-index: 2;
  display: grid;
  gap: 10px;
  max-width: 300px;
}

.pricecard {
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--surface-elevated);
  box-shadow: var(--shadow);
  font-size: 14px;
  line-height: 1.35;
}

.pricecard b {
  display: block;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.pricecard small {
  display: block;
  margin-top: 2px;
  color: var(--text-tertiary);
  font-size: 12.5px;
}

.pricecard--unknown b {
  color: var(--highlight-text);
}

.pricecard--unknown {
  box-shadow:
    inset 4px 0 0 var(--amber-500),
    var(--shadow);
}

.pricecard--known {
  box-shadow:
    inset 4px 0 0 var(--road),
    var(--shadow);
}

@media (min-width: 960px) {
  .pricecards {
    left: 24px;
    bottom: 64px;
    max-width: 230px;
  }
}

@media (max-width: 959px) {
  .pricecards {
    position: static;
    max-width: none;
    margin-top: 24px;
    width: 100%;
  }
  .media--prices {
    display: flex;
    flex-direction: column;
  }
}

/* the drivers' marks, in the app's status colours (`statusStyles`), each with its own glyph */
.marks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
  list-style: none;
}

.marks li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 700;
}

.section--surface .marks li {
  background: var(--background);
}

.marks svg {
  flex: none;
}

.mk-ok {
  color: var(--success-text);
}
.mk-bad {
  color: var(--danger-text);
}
.mk-queue {
  color: var(--highlight-text);
}
.mk-info {
  color: var(--info-text);
}

.small-note {
  margin-top: 20px;
  color: var(--text-tertiary);
  font-size: 14px;
}

/* the charge itself: EV xarita → the button → the operator's app */
.handoff {
  display: grid;
  gap: 16px;
  margin-top: 8px;
  list-style: none;
}

.handoff li {
  position: relative;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.handoff__icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: var(--primary-tint);
  color: var(--primary-tint-text);
}

.handoff p {
  margin-top: 6px;
  color: var(--text-secondary);
}

.handoff .handoff__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 14px;
  font-weight: 700;
}

.handoff li:last-child {
  background: var(--night-950);
  color: var(--night-100);
}

.handoff li:last-child p {
  color: var(--night-300);
}

.handoff li:last-child .handoff__icon {
  background: var(--green-750);
  color: var(--green-200);
}

@media (min-width: 840px) {
  .handoff {
    grid-template-columns: repeat(3, 1fr);
  }
  .handoff li:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -16px;
    top: 46px;
    z-index: 1;
    width: 16px;
    border-top: 4px dashed var(--road);
  }
}

/* ───────────── FAQ ───────────── */

.faq-grid {
  display: grid;
  gap: 32px;
}

@media (min-width: 960px) {
  .faq-grid {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 72px;
  }
  .faq-grid .section__head {
    position: sticky;
    top: 100px;
    align-self: start;
  }
}

.faq {
  display: grid;
  gap: 10px;
}

.faq details {
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.faq summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 16px 64px 16px 22px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '';
  position: absolute;
  right: 18px;
  top: 50%;
  width: 32px;
  height: 32px;
  margin-top: -16px;
  border-radius: 50%;
  background:
    linear-gradient(var(--primary-tint-text), var(--primary-tint-text)) 50% 50% / 12px 2px no-repeat,
    linear-gradient(var(--primary-tint-text), var(--primary-tint-text)) 50% 50% / 2px 12px no-repeat,
    var(--primary-tint);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  padding: 0 22px 22px;
  color: var(--text-secondary);
}

/* ───────────── operators: one contact strip ───────────── */

.section--slim {
  padding: 48px 0;
}

.ops__contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding: 24px 28px;
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 0 1.5px var(--primary);
}

.ops__contact p {
  max-width: 40em;
  color: var(--text-secondary);
}

.ops__contact strong {
  display: block;
  color: var(--text-primary);
  font-size: 19px;
}

/* ───────────── the last call ───────────── */

.final {
  position: relative;
  padding: 72px 0;
  background: var(--cta-bg);
  color: var(--cta-text);
  overflow: clip;
}

.final__road {
  position: absolute;
  right: -120px;
  bottom: -40px;
  width: 720px;
  max-width: none;
  height: auto;
  opacity: 0.5;
  pointer-events: none;
}

.final__road path {
  fill: none;
  stroke-linecap: round;
}

.final .wrap {
  position: relative;
}

.final h2 {
  max-width: 12em;
  color: var(--cta-text);
  font-size: clamp(34px, 5.4vw, 64px);
}

.final p {
  max-width: 34em;
  margin: 20px 0 32px;
  color: var(--cta-soft);
  font-size: 18px;
}

.final .btn--primary {
  background: var(--gray-0);
  color: var(--green-600);
}

.final .btn--primary:hover {
  background: var(--gray-75);
}

.final .btn--secondary,
.final .btn--soon {
  background: transparent;
  color: var(--cta-text);
  box-shadow: inset 0 0 0 1.5px var(--cta-soft);
}

.final .btn--soon b {
  color: var(--cta-text);
}

.final a:focus-visible,
.final .btn:focus-visible {
  outline-color: var(--cta-text);
}

@media (prefers-color-scheme: dark) {
  .final .btn--primary {
    background: var(--green-450);
    color: var(--green-950);
  }
  .final .btn--primary:hover {
    background: var(--green-350);
  }
}

@media (min-width: 960px) {
  .final {
    padding: 120px 0;
  }
}

/* ───────────── footer ───────────── */

.foot {
  padding: 40px 0 48px;
  color: var(--text-tertiary);
  font-size: 14px;
}

.foot__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
}

.foot nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-secondary);
}

.foot p + p {
  margin-top: 6px;
}

/* ───────────── motion ───────────── */

@keyframes road {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes draw {
  from {
    transform: scaleX(0);
  }
}

@keyframes bob {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-8px);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 var(--road-glow);
  }
  70% {
    box-shadow: 0 0 0 10px transparent;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

.live {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse 2s infinite;
}

/* at night the road glows, as the app's dark map draws it (`darkMapColors.glow`) */
@media (prefers-color-scheme: dark) {
  .stage__road .lane {
    filter: drop-shadow(0 0 10px rgba(63, 203, 145, 0.7));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .stage__road .lane {
    stroke-dashoffset: 0;
  }
}
