/* Second Steer — public web pages.
   Design language: "night showroom" — deep navy ink, brand-blue glow, soft cool paper.
   Brand palette source: apps/mobile/assets/branding (gradient #2E97FF → #0A5BD0, blue #1E7DE0). */

/* Fonts come from Google Fonts (layout <link>). The size-adjusted local fallbacks below are
   computed from the families' actual font tables at each *rendered weight* (frequency-weighted
   average glyph width vs Arial — the fontaine/next-font algorithm), bucketed by font-weight so
   bold headlines match too. local('Roboto') makes the metrics apply on Android, which has no
   Arial. Result: the webfont swap-in cannot change line wrapping. */
@font-face {
  font-family: 'Sora Fallback';
  src: local('Arial'), local('Roboto');
  font-weight: 100 699;
  size-adjust: 115.97%;
  ascent-override: 83.64%;
  descent-override: 25.01%;
  line-gap-override: 0%;
}

@font-face {
  font-family: 'Sora Fallback';
  src: local('Arial'), local('Roboto');
  font-weight: 700;
  size-adjust: 116.79%;
  ascent-override: 83.06%;
  descent-override: 24.83%;
  line-gap-override: 0%;
}

@font-face {
  font-family: 'Sora Fallback';
  src: local('Arial'), local('Roboto');
  font-weight: 701 900;
  size-adjust: 117.53%;
  ascent-override: 82.53%;
  descent-override: 24.67%;
  line-gap-override: 0%;
}

@font-face {
  font-family: 'IBM Plex Sans Fallback';
  src: local('Arial'), local('Roboto');
  font-weight: 100 449;
  size-adjust: 101.48%;
  ascent-override: 101%;
  descent-override: 27.1%;
  line-gap-override: 0%;
}

@font-face {
  font-family: 'IBM Plex Sans Fallback';
  src: local('Arial'), local('Roboto');
  font-weight: 450 549;
  size-adjust: 103.67%;
  ascent-override: 98.87%;
  descent-override: 26.53%;
  line-gap-override: 0%;
}

@font-face {
  font-family: 'IBM Plex Sans Fallback';
  src: local('Arial'), local('Roboto');
  font-weight: 550 900;
  size-adjust: 105.08%;
  ascent-override: 97.54%;
  descent-override: 26.17%;
  line-gap-override: 0%;
}

:root {
  --ink: #0b1b33;
  --ink-soft: #33445f;
  --ink-faint: #64748b;
  --brand: #1e7de0;
  --brand-strong: #0a5bd0;
  --brand-bright: #2e97ff;
  --paper: #eef3f9;
  --surface: #ffffff;
  --line: #dbe4f0;
  --gradient-brand: linear-gradient(135deg, var(--brand-bright), var(--brand-strong));
  --shadow-card: 0 24px 48px -16px rgba(11, 27, 51, 0.18), 0 4px 12px -4px rgba(11, 27, 51, 0.08);
  --radius-card: 22px;
  --radius-control: 12px;
  --font-display: 'Sora', 'Sora Fallback', sans-serif;
  --font-text: 'IBM Plex Sans', 'IBM Plex Sans Fallback', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-text);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0;
}

p {
  margin: 0;
}

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

:focus-visible {
  outline: 3px solid var(--brand-bright);
  outline-offset: 2px;
  border-radius: 4px;
}

.steering-mark {
  width: 1.6em;
  height: 1.6em;
  flex-shrink: 0;
}

/* ---------- Top bar + footer ---------- */

.topbar {
  display: flex;
  justify-content: center;
  padding: 20px 16px;
}

.topbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.topbar__brand .steering-mark {
  color: var(--brand-strong);
}

.topbar--hero .topbar__brand,
.topbar--hero .topbar__brand .steering-mark {
  color: #fff;
}

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 40px 16px 48px;
  color: var(--ink-faint);
  font-size: 0.85rem;
  text-align: center;
}

.site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink-soft);
}

.site-footer__brand .steering-mark {
  color: var(--brand);
}

/* ---------- Signature motif: the road divider ---------- */

.road-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 28px 0;
  color: var(--brand);
}

.road-divider::before,
.road-divider::after {
  content: '';
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 18px, transparent 18px 30px);
}

.road-divider .steering-mark {
  width: 22px;
  height: 22px;
  opacity: 0.9;
}

.road-divider--page {
  max-width: 720px;
  margin: 0 auto;
  padding: 36px 24px;
}

/* ---------- Buttons + store badges ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-control);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
}

.btn--primary {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(10, 91, 208, 0.65);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn--primary:active {
  transform: scale(0.98);
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: 196px;
  padding: 10px 14px;
  border-radius: var(--radius-control);
  background: var(--ink);
  color: #fff;
  text-align: left;
  opacity: 0.92;
  cursor: default;
}

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

/* On the dark hero/CTA surfaces the ink background disappears — a faint glass tint keeps
   the badges reading as buttons (and visibly centered when they stack vertically). */
.hero .store-badge,
.cta-band__inner .store-badge {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.store-badge__text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.2;
}

.store-badge__text small {
  font-family: var(--font-text);
  font-weight: 400;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.75;
}

/* ---------- Share shell (vehicle / company / status pages) ---------- */

.share-shell {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 16px 24px;
}

.listing-card,
.status-card {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

/* Gradient accent strip on the image-less status cards only — a clipped inset element
   rather than border-image, which would ignore the rounded corners. Listing cards skip it
   so nothing sits on top of the vehicle photo. */
.status-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-brand);
}

.listing-card__cover {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--paper);
}

.listing-card__cover--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--line);
}

.listing-card__cover--placeholder .steering-mark {
  width: 84px;
  height: 84px;
}

.listing-card__body {
  padding: 24px 22px 28px;
}

.listing-card__price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.7rem;
  color: var(--brand-strong);
  letter-spacing: -0.01em;
}

.listing-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 4px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.chip {
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.dealer-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.dealer-row:active {
  transform: scale(0.99);
}

.dealer-row__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--gradient-brand);
  color: #fff;
}

.dealer-row__icon svg {
  width: 22px;
  height: 22px;
}

.dealer-row__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.dealer-row__text strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.97rem;
}

.dealer-row__text small {
  color: var(--ink-faint);
  font-size: 0.82rem;
}

.dealer-row__chevron {
  margin-left: auto;
  font-size: 1.5rem;
  color: var(--ink-faint);
}

.cta-block {
  text-align: center;
}

.cta-block h2 {
  font-size: 1.12rem;
  font-weight: 700;
}

.cta-block p {
  margin: 8px auto 18px;
  max-width: 40ch;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* ---------- Company page ---------- */

.company-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 36px 22px 8px;
  background:
    radial-gradient(420px 180px at 50% -40px, rgba(46, 151, 255, 0.16), transparent 70%),
    var(--surface);
}

.company-hero__logo {
  width: 92px;
  height: 92px;
  border-radius: 26px;
  object-fit: cover;
  box-shadow: 0 12px 28px -10px rgba(11, 27, 51, 0.35);
}

.company-hero__logo--initials {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-brand);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
}

.company-hero__name {
  margin-top: 18px;
  font-size: 1.4rem;
  font-weight: 700;
}

.company-hero__place {
  margin-top: 4px;
  color: var(--ink-faint);
}

.company-hero__count {
  margin-top: 12px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #e7f1fd;
  color: var(--brand-strong);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.contact-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ink-soft);
  transition: border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.contact-action:active {
  transform: scale(0.97);
}

.contact-action svg {
  width: 26px;
  height: 26px;
  color: var(--brand);
}

/* ---------- Status pages (unavailable / 404) ---------- */

.status-card {
  padding: 44px 24px 32px;
  text-align: center;
}

.status-card h1 {
  font-size: 1.45rem;
}

.status-card > p {
  margin: 12px auto 0;
  max-width: 46ch;
  color: var(--ink-soft);
}

.status-card .btn {
  margin-top: 24px;
}

.status-card__mark {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.status-card__mark--muted .steering-mark {
  width: 64px;
  height: 64px;
  color: var(--line);
}

.status-card__code {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 4.4rem;
  letter-spacing: 0.03em;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Landing page ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 480px at 80% -10%, rgba(46, 151, 255, 0.35), transparent 65%),
    radial-gradient(700px 420px at 10% 110%, rgba(10, 91, 208, 0.45), transparent 70%),
    var(--ink);
  color: #fff;
  padding-bottom: 84px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.035) 0 2px, transparent 2px 96px);
  pointer-events: none;
}

.hero__content {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px 0;
  text-align: center;
}

.hero__headline {
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero__highlight {
  background: linear-gradient(90deg, var(--brand-bright), #8cc8ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__sub {
  margin: 20px auto 30px;
  max-width: 52ch;
  color: #c0d4ee;
  font-size: 1.02rem;
}

.hero__glow {
  position: absolute;
  left: 50%;
  bottom: -130px;
  width: 480px;
  height: 200px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(46, 151, 255, 0.5), transparent);
  filter: blur(40px);
  animation: glow-breathe 7s ease-in-out infinite;
}

.section-heading {
  text-align: center;
  font-size: clamp(1.4rem, 3.4vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 36px;
}

.features {
  max-width: 1060px;
  margin: 0 auto;
  padding: 28px 24px 20px;
}

.features__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--gradient-brand);
  color: #fff;
  margin-bottom: 16px;
}

.feature-card__icon svg {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
}

.feature-card p {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.steps {
  max-width: 880px;
  margin: 0 auto;
  padding: 44px 24px 28px;
}

.steps__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.step {
  text-align: center;
  padding: 0 12px;
}

.step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px dashed var(--brand);
  color: var(--brand-strong);
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 12px;
}

.step h3 {
  font-size: 1.02rem;
}

.step p {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.cta-band {
  padding: 30px 16px 8px;
}

.cta-band__inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  background:
    radial-gradient(520px 240px at 50% -60px, rgba(46, 151, 255, 0.4), transparent 70%),
    var(--ink);
  color: #fff;
  border-radius: var(--radius-card);
  padding: 44px 24px;
}

.cta-band__inner .steering-mark {
  width: 44px;
  height: 44px;
  color: var(--brand-bright);
}

.cta-band__inner h2 {
  margin-top: 14px;
  font-size: 1.5rem;
}

.cta-band__inner p {
  margin: 8px 0 22px;
  color: #c0d4ee;
}

/* ---------- Motion ---------- */

/* Hover lifts only on devices that actually hover — on touch, :hover sticks after a tap. */
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px -10px rgba(10, 91, 208, 0.7);
  }

  .dealer-row:hover {
    border-color: var(--brand);
    background: #f6faff;
  }

  .contact-action:hover {
    border-color: var(--brand);
    color: var(--brand-strong);
    transform: translateY(-2px);
  }

  .feature-card:hover {
    transform: translateY(-4px);
    border-color: transparent;
    box-shadow: var(--shadow-card);
  }

  .store-badge:hover {
    opacity: 1;
  }
}

.reveal {
  animation: rise-in 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.reveal--late {
  animation-delay: 0.12s;
}

.reveal--later {
  animation-delay: 0.24s;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glow-breathe {
  0%,
  100% {
    opacity: 0.7;
  }

  50% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .hero__glow {
    animation: none;
  }
}

/* ---------- Wider screens ---------- */

@media (min-width: 640px) {
  .listing-card__body {
    padding: 28px 32px 32px;
  }

  .road-divider .steering-mark {
    width: 30px;
    height: 30px;
  }

  .features__grid {
    grid-template-columns: 1fr 1fr;
  }

  .steps__list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .features__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
