/* AVERION DRIVER — home marketing page only (legal/support keep site.css) */
:root {
  color-scheme: dark light;
  --bg: #070b14;
  --bg-elevated: #0c1422;
  --surface: #121a2b;
  --surface-2: #182234;
  --text: #eef3fb;
  --muted: #9aa8c0;
  --line: rgba(140, 168, 210, 0.16);
  --blue: #2f6bff;
  --blue-2: #4d8bff;
  --blue-glow: rgba(47, 107, 255, 0.28);
  --ok: #3ecf9a;
  --ok-bg: rgba(62, 207, 154, 0.12);
  --radius: 18px;
  --max: 1120px;
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  max-width: 100%;
}

body.home {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(900px 480px at 10% -8%, rgba(47, 107, 255, 0.2), transparent 60%),
    radial-gradient(700px 420px at 100% 0%, rgba(62, 207, 154, 0.06), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-elevated) 42%, var(--bg) 100%);
  line-height: 1.6;
  overflow-x: clip;
  max-width: 100%;
}

body.home img { max-width: 100%; height: auto; display: block; }
body.home a:not(.btn):not(.btn-primary):not(.btn-ghost) { color: var(--blue-2); }
body.home a:not(.btn):not(.btn-primary):not(.btn-ghost):hover { text-decoration: underline; }
body.home :focus-visible {
  outline: 2px solid var(--blue-2);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--blue);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.container {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(7, 11, 20, 0.88);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  font-size: 0.86rem;
  color: var(--text);
  text-decoration: none;
}
.brand:hover { text-decoration: none; color: var(--text); }
.brand-mark {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue-2), var(--blue));
  box-shadow: 0 0 0 4px rgba(47, 107, 255, 0.18);
}
.nav-desktop {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
  align-items: center;
}
.nav-desktop a,
.nav-mobile a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
}
.nav-desktop a:hover,
.nav-mobile a:hover { color: var(--text); text-decoration: none; }
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}
.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.lang-switch button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.38rem 0.7rem;
  cursor: pointer;
}
.lang-switch button[aria-pressed="true"] {
  background: rgba(47, 107, 255, 0.22);
  color: var(--text);
}
.menu-toggle {
  display: none;
  appearance: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 12px;
  min-height: 42px;
  padding: 0.45rem 0.8rem;
  font-weight: 700;
  cursor: pointer;
}
.nav-mobile {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.25rem 0 1rem;
}
.nav-mobile[hidden] { display: none !important; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 46px;
  padding: 0.7rem 1.15rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; filter: brightness(1.06); }
.btn:active { transform: translateY(1px); }
.btn-primary,
body.home a.btn-primary,
body.home .btn.btn-primary {
  background: linear-gradient(135deg, #4d8bff, #2f6bff);
  color: #ffffff !important;
  box-shadow: 0 10px 28px var(--blue-glow);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}
.btn-primary:hover,
body.home a.btn-primary:hover {
  color: #ffffff !important;
  filter: brightness(1.08);
}
.btn-primary:focus-visible,
body.home a.btn-primary:focus-visible {
  color: #ffffff !important;
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}
.btn-primary:active,
body.home a.btn-primary:active {
  color: #ffffff !important;
  filter: brightness(0.96);
}
.btn-ghost,
body.home a.btn-ghost {
  background: transparent;
  color: var(--text) !important;
  border-color: var(--line);
}
.btn-ghost:hover,
body.home a.btn-ghost:hover {
  color: var(--text) !important;
  border-color: rgba(77, 139, 255, 0.5);
  text-decoration: none;
}

/* Hero */
.hero {
  position: relative;
  padding: 2.5rem 0 1.75rem;
  overflow: hidden;
  max-width: 100%;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 11, 20, 0.72) 0%, rgba(7, 11, 20, 0.32) 46%, rgba(7, 11, 20, 0.1) 100%),
    linear-gradient(180deg, rgba(7, 11, 20, 0.08) 0%, rgba(7, 11, 20, 0.18) 58%, rgba(7, 11, 20, 0.7) 100%);
  pointer-events: none;
}
body.home .hero-media img,
.hero-media img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 48%;
  image-rendering: auto;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem;
  align-items: center;
  grid-template-columns: 1.15fr 0.85fr;
}
.kicker {
  display: inline-flex;
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(47, 107, 255, 0.1);
  color: var(--blue-2);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.85rem;
}
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; }
h1 {
  margin: 0 0 0.9rem;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.25rem, 5vw, 3.55rem);
}
h2 {
  margin: 0.55rem 0 0.8rem;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
}
h3 { margin: 0 0 0.5rem; font-size: 1.08rem; }
.lede {
  color: var(--muted);
  font-size: 1.06rem;
  max-width: 54ch;
  margin: 0 0 1.25rem;
}
.muted { color: var(--muted); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.benefit-row {
  display: grid;
  gap: 0.65rem;
  margin-top: 1.4rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.pill {
  background: rgba(18, 26, 43, 0.92);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.85rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 600;
}
.hero-visual { display: flex; justify-content: center; }

/* Phone demos */
.phone {
  width: min(320px, 100%);
  margin: 0 auto;
  background: #0b1220;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 0.75rem;
  box-shadow: var(--shadow);
}
.phone-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.35rem 0.55rem 0.7rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}
.phone-bar span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}
.phone-body {
  background: var(--surface);
  border-radius: 22px;
  padding: 1rem;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.demo-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  font-size: 0.92rem;
}
.demo-row span { color: var(--muted); font-size: 0.78rem; }

/* Offer + payment cards (no fake phone frames) */
.offer-panel {
  width: min(420px, 100%);
  margin: 0 auto;
  padding: 1rem;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.offer-heading {
  margin: 0 0 0.85rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}
.offer-grid,
.pay-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}
/* Fifth service card: full two-column width, compact horizontal layout */
.offer-grid > .offer-card--wide {
  grid-column: 1 / -1;
  width: 100%;
  max-width: none;
  flex-direction: row;
  align-items: center;
  gap: 0.85rem;
  min-height: 72px;
  padding: 0.75rem 2.6rem 0.75rem 0.85rem;
}
.offer-grid > .offer-card--wide .offer-label {
  flex: 1 1 auto;
  margin: 0;
  text-align: center;
  white-space: nowrap;
  line-height: 1.2;
}
.offer-grid > .offer-card--wide .offer-check {
  top: 50%;
  right: 0.85rem;
  transform: translateY(-50%);
}
@media (max-width: 380px) {
  .offer-grid > .offer-card--wide {
    gap: 0.65rem;
    padding: 0.7rem 2.35rem 0.7rem 0.75rem;
  }
  .offer-grid > .offer-card--wide .offer-label {
    font-size: 0.8rem;
  }
}
.offer-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  min-height: 108px;
  padding: 0.85rem 0.8rem 0.8rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  color: var(--text);
}
.offer-card.is-selected {
  border-color: rgba(77, 139, 255, 0.95);
  background: linear-gradient(180deg, rgba(47, 107, 255, 0.14), var(--surface-2));
  box-shadow:
    0 0 0 1px rgba(47, 107, 255, 0.28),
    0 10px 24px rgba(47, 107, 255, 0.16);
}
.offer-check {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1.6px solid rgba(186, 204, 228, 0.4);
  display: grid;
  place-items: center;
  background: transparent;
}
.offer-card.is-selected .offer-check {
  border: 0;
  background: #3d7dff;
  box-shadow: 0 0 0 3px rgba(61, 125, 255, 0.18);
}
.offer-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #4d8bff;
  background: rgba(47, 107, 255, 0.14);
  border: 1px solid rgba(77, 139, 255, 0.28);
  flex: 0 0 auto;
}
.offer-icon svg { display: block; }
.offer-label {
  font-size: 0.84rem;
  font-weight: 650;
  line-height: 1.25;
  color: var(--text);
}
.pay-stack {
  display: grid;
  gap: 0.9rem;
  width: min(420px, 100%);
  margin: 0 auto;
}
.pay-disclaimer {
  margin: 0.85rem 0 0;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(77, 139, 255, 0.28);
  background: rgba(47, 107, 255, 0.08);
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}
.pay-confirm {
  display: grid;
  gap: 0.7rem;
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.pay-confirm-title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--text);
}
.pay-confirm-note {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Hero readable copy panel */
.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 640px;
}
.hero-secondary {
  margin-top: 1rem;
  color: var(--muted);
}

.demo-input {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(77, 139, 255, 0.45);
  background: rgba(47, 107, 255, 0.1);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  padding: 0.75rem 0.85rem;
}
.demo-btn {
  appearance: none;
  border: 0;
  border-radius: 12px;
  min-height: 44px;
  padding: 0.65rem 0.9rem;
  font: inherit;
  font-weight: 700;
  cursor: default;
  background: linear-gradient(135deg, var(--blue), #1f4fd6);
  color: #fff;
}
.demo-btn.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}
.status-ok {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ok);
  background: var(--ok-bg);
  border: 1px solid rgba(62, 207, 154, 0.35);
}
.chat-bubble {
  max-width: 92%;
  padding: 0.7rem 0.85rem;
  border-radius: 14px;
  font-size: 0.88rem;
}
.chat-bubble.in {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
}
.map-demo {
  position: relative;
  height: 140px;
  border-radius: 14px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(47, 107, 255, 0.18), transparent 50%),
    repeating-linear-gradient(0deg, transparent, transparent 18px, rgba(255, 255, 255, 0.04) 18px, rgba(255, 255, 255, 0.04) 19px),
    repeating-linear-gradient(90deg, transparent, transparent 18px, rgba(255, 255, 255, 0.04) 18px, rgba(255, 255, 255, 0.04) 19px),
    #0e1728;
  border: 1px solid var(--line);
}
.map-car {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--blue-2);
  box-shadow: 0 0 0 6px rgba(47, 107, 255, 0.2);
  left: 18%;
  top: 58%;
}

/* Sections */
.section { padding: 2.75rem 0; overflow: hidden; max-width: 100%; }
.section-head { max-width: 42rem; margin-bottom: 1.25rem; }
.cards-4 {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.card {
  background: linear-gradient(180deg, rgba(18, 26, 43, 0.96), rgba(13, 20, 36, 0.92));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.25rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.note-box {
  margin-top: 1.35rem;
  padding: 1rem 1.15rem;
  border-left: 3px solid var(--blue);
  background: rgba(47, 107, 255, 0.08);
  border-radius: 0 12px 12px 0;
  color: var(--muted);
}

/* Stories */
.story {
  padding: 2.35rem 0;
  border-top: 1px solid rgba(140, 168, 210, 0.08);
  overflow: hidden;
  max-width: 100%;
}
.story.alt { background: rgba(10, 16, 28, 0.55); }
.story-grid {
  display: grid;
  gap: 1.35rem;
  align-items: center;
  grid-template-columns: 1fr 1fr;
  max-width: 100%;
}
.media-frame {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  max-width: 100%;
  isolation: isolate;
}
.media-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
  image-rendering: auto;
  display: block;
}
/* QR connection panel: beside photo, never covering it */
.connection-visual {
  display: grid;
  gap: 0.85rem;
  max-width: 100%;
}
.connection-visual .media-frame img {
  aspect-ratio: 16 / 11;
}
.connection-panel {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: center;
  background: rgba(10, 16, 28, 0.92);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.85rem 1rem;
}
.connection-roles {
  display: grid;
  gap: 0.45rem;
  font-size: 0.88rem;
}
.connection-roles .role {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
}
.connection-roles .role strong { color: var(--text); }
.connection-roles .role-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--blue-2);
  flex: 0 0 auto;
}
.demo-qr {
  width: 84px;
  height: 84px;
  border-radius: 10px;
  background: #fff;
  padding: 0.35rem;
  margin: 0;
  flex: 0 0 auto;
}
.overlay-card {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  background: rgba(10, 16, 28, 0.9);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.7rem;
  backdrop-filter: blur(10px);
  max-width: calc(100% - 1.5rem);
}
.soon-badge {
  display: inline-flex;
  margin-bottom: 0.65rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(47, 107, 255, 0.16);
  color: var(--blue-2);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(200px, 240px);
  gap: 0.85rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  padding: 0.85rem 0.35rem 1rem;
  margin-inline: -0.35rem;
  max-width: calc(100% + 0.7rem);
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
}
.carousel-card {
  scroll-snap-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.95rem 1rem;
  transition: transform 0.25s ease, opacity 0.25s ease;
  opacity: 0.78;
  transform: scale(0.98);
  transform-origin: center center;
  max-width: 100%;
}
.carousel-card.is-active {
  opacity: 1;
  transform: scale(1.03);
}
.vehicle-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
  max-width: 100%;
  overflow: hidden;
}
.vehicle-strip figure {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}
.vehicle-strip img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
  image-rendering: auto;
  display: block;
}
.vehicle-strip figcaption {
  padding: 0.55rem 0.7rem;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  counter-reset: step;
}
.steps li {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem 1.05rem;
  background: rgba(18, 26, 43, 0.8);
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  margin-bottom: 0.55rem;
  background: rgba(47, 107, 255, 0.18);
  color: var(--blue-2);
  font-weight: 800;
  font-size: 0.82rem;
}
.compare {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
  margin-top: 1.5rem;
}
.compare-col {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.15rem 1.2rem;
  background: rgba(18, 26, 43, 0.75);
}
.compare-col ul {
  margin: 0.6rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}
.compare-col li { margin: 0.35rem 0; }

.trust {
  text-align: center;
}
.trust h2 { max-width: 18ch; margin-inline: auto; }
.trust p {
  max-width: 58ch;
  margin: 0.75rem auto 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1rem;
}
.social-soon {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  color: var(--muted);
  font-weight: 700;
  background: rgba(255, 255, 255, 0.02);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1.2fr 1fr 1fr;
}
.footer-grid a {
  display: inline-block;
  margin: 0.25rem 0.85rem 0.25rem 0;
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}
.footer-grid a:hover { color: var(--text); }

/* Scroll-linked stages: JS drives opacity/transform per viewport position.
   Photos stay sharp — transforms apply to wrappers, never stretch img assets. */
.reveal {
  opacity: 1;
  transform: none;
  transform-origin: center center;
}
html.motion-ok .reveal.scroll-stage {
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
}
html.motion-ok .reveal.scroll-stage img,
html.motion-ok .reveal.scroll-stage picture {
  /* Keep photos crisp; do not cascade extra scales onto image pixels. */
  transform: none !important;
  image-rendering: auto;
}
html.motion-ok .reveal.scroll-stage.is-active-stage {
  /* Centered: fully sharp, no extra effects. */
  filter: none;
}

.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;
}

@media (max-width: 1024px) {
  .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .nav-desktop { display: none; }
  .menu-toggle { display: inline-flex; }
  .hero-grid,
  .story-grid,
  .compare,
  .footer-grid { grid-template-columns: 1fr; }
  .benefit-row { grid-template-columns: 1fr; }
  .vehicle-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .cards-4,
  .steps { grid-template-columns: 1fr; }
  .header-actions .btn-ghost { display: none; }
  h1 { font-size: clamp(2rem, 9vw, 2.6rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal,
  html.motion-ok .reveal,
  html.motion-ok .reveal.scroll-stage {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    will-change: auto !important;
  }
  .hero-media img,
  .media-frame img {
    transform: none !important;
  }
  .carousel-card,
  .carousel-card.is-active {
    transition: none;
    transform: none !important;
    opacity: 1;
  }
  .btn { transition: none; }
}

/* ========== Site-wide body (all pages) ========== */
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(900px 480px at 10% -8%, rgba(47, 107, 255, 0.2), transparent 60%),
    radial-gradient(700px 420px at 100% 0%, rgba(62, 207, 154, 0.06), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-elevated) 42%, var(--bg) 100%);
  line-height: 1.6;
  overflow-x: clip;
  max-width: 100%;
}
body img { max-width: 100%; height: auto; display: block; }
body a:not(.btn):not(.btn-primary):not(.btn-ghost) { color: var(--blue-2); }
body a:not(.btn):not(.btn-primary):not(.btn-ghost):hover { text-decoration: underline; }
body :focus-visible {
  outline: 2px solid var(--blue-2);
  outline-offset: 3px;
}

.site-header {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
}

.theme-toggle {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  cursor: pointer;
  position: relative;
  flex: 0 0 auto;
}
.theme-toggle:hover { border-color: rgba(77, 139, 255, 0.5); }
.theme-toggle .theme-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: none;
}
.theme-toggle[data-mode="dark"] .theme-icon--sun { display: block; }
.theme-toggle[data-mode="light"] .theme-icon--moon { display: block; }
.theme-toggle .theme-icon--sun { color: #f5c542; }
.theme-toggle .theme-icon--moon { color: var(--blue-2); }

/* Stronger ghost buttons — never look disabled when enabled */
.btn-ghost,
a.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text) !important;
  border-color: rgba(140, 168, 210, 0.35);
}
.btn-ghost:hover,
a.btn-ghost:hover {
  background: rgba(47, 107, 255, 0.12);
  border-color: var(--blue-2);
  color: var(--text) !important;
}
.btn-primary,
a.btn-primary {
  background: linear-gradient(135deg, #4d8bff, #2f6bff);
  color: #ffffff !important;
  border-color: transparent;
  box-shadow: 0 10px 28px var(--blue-glow);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.22);
  opacity: 1;
  filter: none;
}
.btn[aria-disabled="true"],
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.2);
}

/* QR connection card (non-scannable) */
.qr-illus {
  width: 84px;
  height: 84px;
  border-radius: 14px;
  border: 1px dashed rgba(77, 139, 255, 0.55);
  background:
    linear-gradient(135deg, rgba(47,107,255,0.18), rgba(18,26,43,0.9)),
    repeating-linear-gradient(0deg, transparent, transparent 9px, rgba(77,139,255,0.25) 9px, rgba(77,139,255,0.25) 10px),
    repeating-linear-gradient(90deg, transparent, transparent 9px, rgba(77,139,255,0.25) 9px, rgba(77,139,255,0.25) 10px);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.qr-illus::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 2px solid rgba(238, 243, 251, 0.55);
  border-radius: 8px;
  background: rgba(7, 11, 20, 0.35);
}
.qr-illus-label {
  position: relative;
  z-index: 1;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  text-align: center;
  padding: 0.25rem;
  line-height: 1.15;
}

.page-main {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.25rem 0 3.5rem;
}
.page-main--narrow { width: min(760px, calc(100% - 2rem)); }
.page-hero { padding: 0.5rem 0 1.25rem; }
.page-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.note-box, .note {
  margin-top: 1.25rem;
  padding: 1rem 1.15rem;
  border-radius: 14px;
  border: 1px solid rgba(77, 139, 255, 0.35);
  background: rgba(47, 107, 255, 0.1);
  color: var(--text);
}
.empty-state {
  margin-top: 1.5rem;
  padding: 1.5rem 1.35rem;
  border-radius: var(--radius);
  border: 1px dashed var(--line);
  background: var(--surface);
  color: var(--muted);
}
.empty-state strong { color: var(--text); display: block; margin-bottom: 0.35rem; }
.auth-methods {
  display: grid;
  gap: 0.65rem;
  margin: 1.25rem 0 0;
}
.auth-pill {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-weight: 700;
  color: var(--text);
}
.auth-cta {
  margin: 1.35rem 0 0;
  padding: 1.15rem 1.2rem;
  border-radius: var(--radius);
  border: 1px solid rgba(77, 139, 255, 0.35);
  background: rgba(47, 107, 255, 0.1);
}
.auth-cta-copy {
  margin: 0;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.45;
}
.auth-cta-hint {
  margin: 0.55rem 0 0;
  font-size: 0.95rem;
  line-height: 1.45;
}
.auth-cta-btn {
  display: inline-flex;
  margin-top: 1rem;
}
@media (max-width: 640px) {
  .auth-cta-btn {
    width: 100%;
    justify-content: center;
  }
}
.list-clean {
  margin: 1.25rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
}
.list-clean li { margin: 0.45rem 0; }
.faq-stack { display: grid; gap: 1rem; margin-top: 1.5rem; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  color: var(--text);
}
.faq-item h2 {
  margin: 0 0 0.55rem;
  font-family: var(--font);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}
.faq-item p { margin: 0.45rem 0 0; color: var(--muted); }

/* Legal body on unified shell */
.legal-toolbar { width: min(var(--max), calc(100% - 2rem)); margin: 1rem auto 0; }
.legal-body { color: var(--text); }
.legal-body h1, .legal-body h2, .legal-body h3 { color: var(--text); }
.legal-meta { color: var(--muted); font-size: 0.92rem; }
.legal-toc {
  margin: 1.5rem 0;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}
.legal-toc h2 { font-size: 1rem; margin: 0 0 0.5rem; font-family: var(--font); }
.legal-toc ul { margin: 0; padding-left: 1.1rem; }
.legal-toc a { color: var(--blue-2); }
.legal-section { margin: 1.75rem 0; padding-top: 0.5rem; border-top: 1px solid var(--line); }
.legal-section p { color: var(--muted); }
.legal-callout {
  margin: 1rem 0;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.1);
  color: var(--text);
  font-size: 0.92rem;
}

/* ========== Light theme ========== */
html[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f7fd;
  --bg-elevated: #eef2fb;
  --surface: #ffffff;
  --surface-2: #f7f9fd;
  --text: #10203a;
  --muted: #4d5d78;
  --line: rgba(16, 32, 58, 0.12);
  /* Keep the same Averion blues as dark / iPhone SE (do not darken). */
  --blue: #2f6bff;
  --blue-2: #4d8bff;
  --blue-glow: rgba(47, 107, 255, 0.22);
  --ok: #0f9f6e;
  --ok-bg: rgba(15, 159, 110, 0.12);
  --shadow: 0 18px 50px rgba(16, 32, 58, 0.08);
}

html[data-theme="light"] body,
html[data-theme="light"] body.home {
  background:
    radial-gradient(900px 480px at 12% -10%, rgba(47,107,255,0.16), transparent 60%),
    linear-gradient(180deg, #f4f7fd 0%, #eef2fb 45%, #f7f9fd 100%);
}

html[data-theme="light"] .site-header {
  background: rgba(244, 247, 253, 0.92);
}

html[data-theme="light"] .hero-media::after {
  background:
    linear-gradient(90deg, rgba(244, 247, 253, 0.72) 0%, rgba(244, 247, 253, 0.22) 48%, rgba(244, 247, 253, 0.06) 100%),
    linear-gradient(180deg, rgba(244, 247, 253, 0.04) 0%, rgba(244, 247, 253, 0.12) 58%, rgba(244, 247, 253, 0.68) 100%);
}

html[data-theme="light"] .pill,
html[data-theme="light"] .card,
html[data-theme="light"] .phone,
html[data-theme="light"] .connection-panel,
html[data-theme="light"] .faq-item,
html[data-theme="light"] .empty-state,
html[data-theme="light"] .auth-pill,
html[data-theme="light"] .legal-toc {
  background: #ffffff;
  box-shadow: var(--shadow);
}

html[data-theme="light"] .btn-ghost,
html[data-theme="light"] a.btn-ghost {
  background: #ffffff;
  border-color: rgba(16, 32, 58, 0.18);
  color: var(--text) !important;
}

html[data-theme="light"] .btn-primary,
html[data-theme="light"] a.btn-primary,
html[data-theme="light"] body.home a.btn-primary,
html[data-theme="light"] body.home .btn.btn-primary {
  background: linear-gradient(135deg, #4d8bff, #2f6bff);
  color: #ffffff !important;
  box-shadow: 0 10px 28px var(--blue-glow);
}

html[data-theme="light"] .brand {
  color: var(--blue-2);
}

html[data-theme="light"] .lang-switch button[aria-pressed="true"] {
  background: rgba(47, 107, 255, 0.14);
  color: var(--blue);
}

html[data-theme="light"] .qr-illus {
  background:
    linear-gradient(135deg, rgba(47,107,255,0.12), #fff),
    repeating-linear-gradient(0deg, transparent, transparent 9px, rgba(47,107,255,0.2) 9px, rgba(47,107,255,0.2) 10px),
    repeating-linear-gradient(90deg, transparent, transparent 9px, rgba(47,107,255,0.2) 9px, rgba(47,107,255,0.2) 10px);
}
html[data-theme="light"] .qr-illus::after {
  border-color: rgba(16, 32, 58, 0.35);
  background: rgba(244, 247, 253, 0.65);
}
html[data-theme="light"] .qr-illus-label { color: var(--text); }

/* Light hero: frosted panel for readable text over bright vehicle areas */
html[data-theme="light"] .hero-copy {
  padding: 1.15rem 1.2rem 1.25rem;
  border-radius: 22px;
  border: 1px solid rgba(16, 32, 58, 0.12);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px rgba(16, 32, 58, 0.12);
}
html[data-theme="light"] .hero-copy h1 {
  color: #10203a;
}
html[data-theme="light"] .hero-copy .lede,
html[data-theme="light"] .hero-copy .hero-secondary {
  color: #334155;
}
html[data-theme="light"] .hero-copy .kicker {
  background: rgba(47, 107, 255, 0.1);
  color: #2f6bff;
}
html[data-theme="light"] .hero-media::after {
  background:
    linear-gradient(90deg, rgba(244, 247, 253, 0.55) 0%, rgba(244, 247, 253, 0.18) 42%, rgba(244, 247, 253, 0.04) 100%),
    linear-gradient(180deg, rgba(244, 247, 253, 0.05) 0%, rgba(244, 247, 253, 0.14) 58%, rgba(244, 247, 253, 0.62) 100%);
}
html[data-theme="light"] .offer-panel,
html[data-theme="light"] .pay-confirm {
  background: #ffffff;
}
html[data-theme="light"] .offer-card {
  background: #f7f9fd;
  box-shadow: 0 8px 18px rgba(16, 32, 58, 0.06);
}
html[data-theme="light"] .offer-card.is-selected {
  background: linear-gradient(180deg, rgba(47, 107, 255, 0.1), #ffffff);
}
html[data-theme="light"] .offer-icon {
  background: rgba(47, 107, 255, 0.1);
  color: #2f6bff;
}

/* Dark hero keeps existing overlay; no frosted white panel */
html[data-theme="dark"] .hero-copy,
html:not([data-theme="light"]) .hero-copy {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.85rem;
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 42px;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text) !important;
  font-weight: 700;
  font-size: 0.82rem;
  text-decoration: none !important;
}
.social-link:hover {
  border-color: var(--blue-2);
  color: var(--text) !important;
}
.social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex: 0 0 auto;
}
.footer .social-links,
.footer-inner .social-links {
  margin-top: 0.75rem;
}
