/* ============================================================
   Atlas Car Rental — Landing page styles
   Ported from the Claude Design prototype (React/JSX) to plain
   CSS + Alpine.js. Mobile-first. Colors/spacing/typography come
   from the design tokens in styles.css (CSS variables) — NEVER
   hardcode brand colors here.
   ============================================================ */

/* ---------- Page scaffolding ---------- */
.atlas-body {
  margin: 0;
  overflow-x: clip;
  background: var(--color-bg);
  color: var(--text-body);
}
/* Reserve room for the mobile sticky reserve bar (76px) so the footer /
   chat launcher never hide behind it — but ONLY on pages that actually
   render the bar (landing). This file loads on every page, so an
   unconditional padding left a blank 76px strip at the bottom of
   fleet/checkout/checkin/etc. :has() supported iOS Safari 15.4+/Chrome 105+. */
body:has(.atlas-reservebar) { padding-bottom: 76px; }
html.atlas-chat-open body:has(.atlas-reservebar) { padding-bottom: 0; }
@media (min-width: 961px) {
  body:has(.atlas-reservebar) { padding-bottom: 0; }
}

.atlas-container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.atlas-section { padding-block: var(--section-y); }
/* Consecutive sections were stacking full --section-y top+bottom (~256px empty
   band on desktop between Why Atlas cards and The Fleet). Collapse both edges
   so the visual gap stays tight. :has() already used elsewhere on this sheet. */
.atlas-section + .atlas-section {
  padding-top: clamp(1.5rem, 3vw, 2.25rem);
}
.atlas-section:has(+ .atlas-section) {
  padding-bottom: clamp(1.5rem, 3vw, 2.25rem);
}
.atlas-section--subtle { background: var(--color-bg-subtle); }

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

/* Decorative racing top stripe (brand / gold / racing-blue) */
.atlas-topstripe {
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--brand) 0 33%, var(--gold) 33% 66%, var(--racing-500) 66%);
}

/* Speed-line texture overlay */
.atlas-speedlines {
  position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(115deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 26px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%);
          mask-image: linear-gradient(90deg, transparent, #000 40%);
  background-position: 0 0;
  animation: atlasSpeedDrift 18s linear infinite;
}
@keyframes atlasSpeedDrift { to { background-position: 520px 0; } }

/* Section eyebrow (mono overline) */
.atlas-eyebrow {
  font-family: var(--eyebrow-font);
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--brand);
}
.atlas-eyebrow--navy { color: var(--racing-navy); }
.atlas-eyebrow--gold { color: var(--gold); }

/* Italic uppercase motorsport headings */
.atlas-h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: var(--fw-extra);
  font-size: clamp(28px, 7vw, 48px);
  letter-spacing: -0.03em;
  line-height: 1.02;
  text-transform: uppercase;
  margin-top: 14px;
}

/* ============================================================
   Buttons (Button primitive → CSS)
   ============================================================ */
.atlas-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: var(--fw-semibold);
  letter-spacing: -0.01em;
  white-space: nowrap;
  border: 1.5px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
}
.atlas-btn:active { transform: scale(0.97); }
.atlas-btn[disabled], .atlas-btn.is-disabled { opacity: 0.5; cursor: not-allowed; }
.atlas-btn--block { display: flex; width: 100%; }

.atlas-btn--sm { height: 38px; padding: 0 16px; font-size: 13px; gap: 7px; border-radius: var(--radius-sm); }
.atlas-btn--md { height: 46px; padding: 0 22px; font-size: 15px; gap: 8px; }
.atlas-btn--lg { height: 56px; padding: 0 30px; font-size: 16px; gap: 10px; }

.atlas-btn--primary { background: var(--brand); color: var(--brand-fg); box-shadow: var(--shadow-brand); }
.atlas-btn--primary:hover { background: var(--brand-hover); }
.atlas-btn--secondary { background: var(--surface-card); color: var(--text-strong); border-color: var(--border-strong); box-shadow: var(--shadow-xs); }
.atlas-btn--secondary:hover { background: var(--gray-50); }
.atlas-btn--inverse { background: #fff; color: var(--gray-950); box-shadow: var(--shadow-md); }
.atlas-btn--inverse:hover { background: var(--gray-50); }
.atlas-btn i, .atlas-btn svg { width: 18px; height: 18px; flex: 0 0 auto; }
.atlas-btn--sm i, .atlas-btn--sm svg { width: 16px; height: 16px; }

/* ============================================================
   Logo lockup (text wordmark — emblem JPGs are white-on-white,
   so on dark surfaces we use the stylized type, as the design intends)
   ============================================================ */
.atlas-logo { display: inline-flex; align-items: center; gap: 12px; }
.atlas-logo__emblem {
  display: block; flex: 0 0 auto;
  width: 46px; height: 46px; object-fit: contain;  /* size 'md' do componente Logo (design system) */
  /* emblema é a arte reverse (branco/vermelho, fundo transparente) p/ o header navy —
     SEM background/padding: um fundo branco aqui reapareceria como caixa branca atrás do símbolo */
}
.atlas-logo__text { display: flex; flex-direction: column; line-height: 1; }
.atlas-logo__word {
  font-family: var(--font-display);
  font-weight: var(--fw-extra);
  font-size: 26px;
  letter-spacing: 0.04em;
}
.atlas-logo__sub {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-top: 5px;
  font-weight: var(--fw-medium);
}
.atlas-logo--inverse .atlas-logo__word { color: #fff; }
/* design system (Logo.reference.jsx, tone='inverse'): subtítulo é branco translúcido, NÃO gold.
   gold no header é só o ícone de telefone, eyebrows e a racing-stripe. */
.atlas-logo--inverse .atlas-logo__sub  { color: rgba(255,255,255,0.7); }
.atlas-logo--ink .atlas-logo__word { color: var(--text-strong); }
.atlas-logo--ink .atlas-logo__sub  { color: var(--racing-navy); }

/* Header lockup espelha o componente Logo (parts.jsx:52): size 'md' no desktop, 'sm' < 860px.
   Os valores base de .atlas-logo* já são o 'md' (emblema 46, word 26, sub 9.5, gap 12). */
@media (max-width: 859px) {
  .atlas-logo--header { gap: 9px; }
  .atlas-logo--header .atlas-logo__emblem { width: 32px; height: 32px; }
  .atlas-logo--header .atlas-logo__word { font-size: 18px; }
  .atlas-logo--header .atlas-logo__sub  { font-size: 8px; }
}

/* ============================================================
   Header
   ============================================================ */
.atlas-header {
  position: sticky; top: 0; z-index: 50;
  min-height: var(--header-h);
  background: color-mix(in srgb, var(--racing-navy) 92%, transparent);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.atlas-header__bar {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.atlas-nav { display: none; gap: 30px; align-items: center; }
.atlas-nav a {
  font-family: var(--font-sans); font-size: 13.5px; font-weight: var(--fw-semibold);
  text-transform: uppercase; letter-spacing: 0.04em;
  color: rgba(255,255,255,0.82); transition: color var(--dur-fast) var(--ease-out);
}
.atlas-nav a:hover, .atlas-nav a:focus-visible { color: var(--gold); }

.atlas-header__actions { display: none; align-items: center; gap: 14px; }
.atlas-header__phone {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 13px; font-weight: var(--fw-semibold); color: #fff;
}
.atlas-header__phone i, .atlas-header__phone svg { width: 16px; height: 16px; color: var(--gold); }

.atlas-hamburger {
  width: 44px; height: 44px; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius-md); color: #fff; cursor: pointer;
}
.atlas-hamburger i, .atlas-hamburger svg { width: 22px; height: 22px; }

.atlas-mobile-menu {
  border-top: 1px solid rgba(255,255,255,0.10);
  padding-top: 12px; padding-bottom: 18px;
  display: flex; flex-direction: column; gap: 4px;
}
.atlas-mobile-menu a {
  padding: 12px 4px; font-family: var(--font-sans); font-size: 16px; font-weight: var(--fw-semibold);
  color: rgba(255,255,255,0.9); text-transform: uppercase; letter-spacing: 0.03em;
  min-height: 44px; display: flex; align-items: center;
}
.atlas-mobile-menu .atlas-header__phone { padding: 12px 4px; font-size: 14px; min-height: 44px; }
.atlas-mobile-menu .atlas-btn { margin-top: 8px; }

@media (min-width: 961px) {
  .atlas-nav { display: flex; }
  .atlas-header__actions { display: flex; }
  .atlas-hamburger { display: none; }
  .atlas-mobile-menu { display: none !important; }
}

/* ============================================================
   Hero
   ============================================================ */
.atlas-hero {
  position: relative; color: #fff;
  /* sem overflow:hidden — o fundo já é contido por .atlas-hero__fx; o overflow cortava
     a booking bar flutuante (translateY) na borda inferior do hero */
  background: linear-gradient(155deg, var(--racing-deep) 0%, var(--racing-navy) 55%, var(--racing-700) 100%);
}
.atlas-hero__fx { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.atlas-hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(120% 90% at 70% 0%, #000 30%, transparent 75%);
          mask-image: radial-gradient(120% 90% at 70% 0%, #000 30%, transparent 75%);
  animation: atlasGridCruise 24s linear infinite;
}
@keyframes atlasGridCruise { to { background-position: 54px 27px; } }
.atlas-hero__glow-red {
  position: absolute; top: -180px; right: -120px; width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, rgba(182,22,49,0.45), transparent 62%); filter: blur(20px);
}
.atlas-hero__glow-gold {
  position: absolute; bottom: 40px; left: -80px; width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(244,194,13,0.16), transparent 60%); filter: blur(10px);
}
/* Rolling Start: no mobile o carro ganha palco próprio; no desktop ele ocupa o
   lado direito sem competir com o copy. A imagem fallback impede hero vazio. */
.atlas-hero__inner { position: relative; padding-top: 54px; padding-bottom: 96px; }
.atlas-hero__copy { position: relative; z-index: 2; max-width: 820px; }
/* Full-bleed também no mobile: presa ao container, a pista terminava em duas
   bordas retas no meio da tela enquanto o carro vazava por cima delas. */
.atlas-hero__vehicle-stage {
  position: relative; z-index: 1; height: 250px; margin-top: 6px;
  width: 100vw; max-width: 100vw; left: 50%; transform: translateX(-50%);
  overflow: visible; pointer-events: none;
}
/* No mobile o palco é uma FAIXA de 250px dentro do hero: sem máscara ela
   encosta em seco no navy, em cima e embaixo, e parece foto colada.
   Os limites (9% / 93%) ficam fora do corpo do carro, que ocupa ~20-85%. */
@media (max-width: 960px) {
  .atlas-hero__vehicle-stage {
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 9%, #000 93%, transparent 100%);
            mask-image: linear-gradient(180deg, transparent 0, #000 9%, #000 93%, transparent 100%);
  }
}
.atlas-hero__vehicle-stage .atlas-hero__vehicle-id { left: max(16px, var(--gutter)); }
.atlas-hero__vehicle-stage .atlas-motion-toggle { right: max(16px, var(--gutter)); }
.atlas-hero__car3d {
  position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; opacity: 0;
  transition: opacity 220ms var(--ease-out);
}
/* Céu e véu do texto saíram do canvas de propósito: são ESTÁTICOS e, como
   ocupam a tela inteira, custavam duas operações de preenchimento por frame
   (o custo estava na rasterização, não no JS). Em CSS o browser compõe a
   camada uma vez. O horizonte fica em 52% da altura do palco — o mesmo
   valor de horizonY() no hero_car3d.js: mexeu num, mexa no outro. */
.atlas-hero__vehicle-stage::before,
.atlas-hero__vehicle-stage::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
}
.atlas-hero__vehicle-stage::before {
  z-index: 0;
  background:
    radial-gradient(58% 74% at 80% 52%,
      rgba(255,214,128,0.55) 0%, rgba(244,194,13,0.20) 26%,
      rgba(206,59,87,0.09) 58%, rgba(206,59,87,0) 100%),
    linear-gradient(180deg,
      rgba(0,18,51,0) 0%, rgba(0,20,56,0.72) 8.3%, rgba(2,32,84,0.96) 21.8%,
      rgba(23,52,110,1) 36.4%, rgba(86,64,116,1) 45.8%, rgba(178,113,76,1) 52%,
      rgba(96,64,62,1) 55%, rgba(20,23,30,1) 62%, rgba(20,23,30,1) 100%);
}
.atlas-hero__vehicle-stage::after {
  z-index: 2;
  background: linear-gradient(90deg,
    rgba(0,16,46,0.82) 0%, rgba(0,18,50,0.52) 30%, rgba(0,18,50,0) 68%);
}
.atlas-hero__vehicle-id { z-index: 3; }
.atlas-hero__car3d.is-ready { opacity: 1; }
.atlas-hero__car-fallback {
  position: absolute; right: 0; bottom: -4%; width: 105%; max-width: none;
  height: auto; opacity: 1; filter: drop-shadow(0 20px 16px rgba(0,0,0,0.34));
  transition: opacity 220ms var(--ease-out);
}
.atlas-hero__vehicle-stage.is-canvas-ready .atlas-hero__car-fallback,
.atlas-hero__vehicle-stage:has(.atlas-hero__car3d.is-ready) .atlas-hero__car-fallback { opacity: 0; }
.atlas-hero__vehicle-id {
  position: absolute; left: 2px; bottom: 2px; display: inline-flex; align-items: center; gap: 8px;
  min-height: 28px; padding: 0 10px; border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-pill); background: rgba(2,20,55,0.62); backdrop-filter: blur(8px);
  color: rgba(255,255,255,0.74); font-family: var(--font-mono); font-size: 9px;
  font-weight: var(--fw-semibold); letter-spacing: 0.11em;
}
.atlas-hero__vehicle-dot {
  width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 0 4px rgba(244,194,13,0.12), 0 0 14px rgba(244,194,13,0.7);
}
/* Troca do rótulo acompanha o rodízio da frota, sem piscar o texto. */
.atlas-hero__vehicle-id [data-atlas-vehicle-name] {
  display: inline-block; white-space: nowrap;
  transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out);
}
.atlas-hero__vehicle-id [data-atlas-vehicle-name].is-swapping { opacity: 0; transform: translateY(-4px); }
.atlas-motion-toggle {
  position: absolute; top: 0; right: 0; bottom: auto; z-index: 4; width: 44px; height: 44px;
  pointer-events: auto; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.18); border-radius: 50%; cursor: pointer;
  color: #fff; background: rgba(2,20,55,0.72); backdrop-filter: blur(10px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.2); transition: background var(--dur-fast), transform var(--dur-fast);
}
.atlas-motion-toggle:hover, .atlas-motion-toggle:focus-visible { background: rgba(182,22,49,0.9); }
.atlas-motion-toggle:active { transform: scale(0.95); }
.atlas-motion-toggle:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.atlas-motion-toggle svg { width: 18px; height: 18px; }
.atlas-motion-toggle__play { display: none; }
.atlas-motion-toggle.is-paused .atlas-motion-toggle__pause { display: none; }
.atlas-motion-toggle.is-paused .atlas-motion-toggle__play { display: block; }
.atlas-hero__badge {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 20px; padding-left: 12px; border-left: 3px solid var(--brand);
}
.atlas-hero__badge i, .atlas-hero__badge svg { width: 14px; height: 14px; color: var(--gold); }
.atlas-hero__title {
  font-family: var(--font-display); font-style: italic; font-weight: var(--fw-extra);
  letter-spacing: -0.04em; line-height: 0.94; font-size: clamp(44px, 11vw, 104px);
  color: #fff; margin: 0; text-transform: uppercase;
}
/* --brand (#B61631) sobre o navy do hero dava só 2.22:1 (reprova WCAG AA p/ texto grande);
   --red-400 (#CE3B57) mantém o vermelho da marca e sobe p/ 3.10:1 (>= 3:1). */
.atlas-hero__title .accent { color: var(--red-400); }
.atlas-hero__sub {
  margin-top: 24px; font-size: 16px; line-height: 1.55;
  color: rgba(255,255,255,0.74); max-width: 580px; font-weight: var(--fw-regular);
}
.atlas-hero-enter .atlas-hero__badge { animation: atlasHeroIn 620ms 80ms both var(--ease-out); }
.atlas-hero-enter .atlas-hero__title { animation: atlasHeroIn 760ms 170ms both var(--ease-out); }
.atlas-hero-enter .atlas-hero__sub { animation: atlasHeroIn 720ms 300ms both var(--ease-out); }
@keyframes atlasHeroIn {
  from { opacity: 0; transform: translate3d(0, 18px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
/* Booking bar floats and overlaps the hero bottom */
.atlas-hero__booking {
  position: relative; z-index: 5; transform: translateY(34px);
  animation: atlasBookingIn 760ms 470ms both var(--ease-out);
}
@keyframes atlasBookingIn {
  from { opacity: 0; transform: translateY(52px); }
  to { opacity: 1; transform: translateY(34px); }
}

@media (min-width: 641px) {
  .atlas-hero__inner { padding-top: 78px; padding-bottom: 120px; }
  .atlas-hero__sub { font-size: 19px; }
}
@media (min-width: 961px) {
  .atlas-hero__inner { min-height: 570px; padding-top: 92px; padding-bottom: 150px; }
  .atlas-hero__copy { max-width: 680px; }
  /* --hero-bleed cobre a faixa que a booking bar ocupa no fluxo: sem isso
     sobrava uma tira de navy cru entre o asfalto e a barra de busca. A barra
     tem z-index 5 e continua por cima. Chip e botão de pausa compensam o
     mesmo valor, senão descem junto e somem atrás da barra. */
  .atlas-hero__vehicle-stage {
    --hero-bleed: 86px;
    position: absolute; top: 0; bottom: calc(-1 * var(--hero-bleed)); left: 50%;
    width: 100vw; height: auto; margin: 0; transform: translateX(-50%);
  }
  .atlas-hero__vehicle-stage .atlas-hero__vehicle-id { left: auto; }
  .atlas-hero__car-fallback { right: 0; bottom: 6%; width: min(650px, 54%); }
  .atlas-hero__vehicle-id { left: auto; right: 120px; bottom: calc(32px + var(--hero-bleed, 0px)); }
  .atlas-motion-toggle { top: auto; right: max(20px, var(--gutter)); bottom: calc(24px + var(--hero-bleed, 0px)); }
  .atlas-hero__booking { transform: translateY(50%); }
  @keyframes atlasBookingIn {
    from { opacity: 0; transform: translateY(calc(50% + 18px)); }
    to { opacity: 1; transform: translateY(50%); }
  }
}
@media (min-width: 961px) and (max-width: 1150px) {
  .atlas-hero__sub { max-width: 500px; }
}

/* ============================================================
   Florida road reel — product imagery in continuous motion
   ============================================================ */
.atlas-roadreel {
  position: relative; overflow: hidden; color: #fff;
  padding: calc(var(--space-8) + 46px) 0 clamp(3.5rem, 7vw, 5.75rem);
  background:
    radial-gradient(circle at 86% 18%, rgba(182,22,49,0.28), transparent 30%),
    linear-gradient(150deg, var(--racing-deep), var(--racing-navy));
}
.atlas-roadreel::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(115deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 34px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}
.atlas-roadreel__head {
  position: relative; z-index: 1; display: grid; gap: 14px; align-items: end; margin-bottom: 28px;
}
.atlas-roadreel__head .atlas-h2 { max-width: 720px; margin-bottom: 0; color: #fff; }
.atlas-roadreel__head p {
  max-width: 520px; margin: 0; color: rgba(255,255,255,0.72); font-size: 15px; line-height: 1.55;
}
.atlas-roadreel__viewport {
  position: relative; z-index: 1; width: 100%; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.atlas-roadreel__track { display: flex; width: max-content; animation: atlasRoadReel 34s linear infinite; }
.atlas-roadreel__group { display: flex; gap: 16px; padding-right: 16px; }
@keyframes atlasRoadReel { to { transform: translate3d(-50%, 0, 0); } }
.atlas-roadreel__viewport:hover .atlas-roadreel__track,
.atlas-roadreel__viewport:focus-within .atlas-roadreel__track { animation-play-state: paused; }

/* Esteira em 3D (roadreel3d.js assume o comando). A perspectiva vive no
   viewport e o track precisa de preserve-3d para repassá-la aos cards —
   sem isso o rotateY achata e vira só um "squeeze" horizontal.
   Enquanto o JS não confirma a medição, a animação CSS acima segue valendo. */
.atlas-roadreel__viewport.is-3d { perspective: 1050px; perspective-origin: 50% 46%; }
.atlas-roadreel__viewport.is-3d .atlas-roadreel__track {
  animation: none; transform-style: preserve-3d; will-change: transform;
}
/* transform e filter são escritos pelo JS a cada frame: qualquer transition
   neles brigaria com o loop e faria o card "arrastar" atrás da esteira.
   O card NÃO leva preserve-3d: ele já tem overflow:hidden (que o força a
   flat) e, com o drop-shadow da foto dentro, o Chromium simplesmente para
   de pintar o carro. Só o track precisa repassar a perspectiva. */
.atlas-roadreel__viewport.is-3d .atlas-roadcard {
  transition: border-color 220ms ease, box-shadow 220ms ease;
}
.atlas-roadcard {
  position: relative; isolation: isolate; width: clamp(270px, 31vw, 390px); height: 220px;
  overflow: hidden; flex: 0 0 auto; border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-lg); background: linear-gradient(145deg, #12326f, #061a43);
  box-shadow: 0 24px 50px rgba(0,0,0,0.24); color: inherit; text-decoration: none;
  cursor: pointer; transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}
.atlas-roadcard:hover { border-color: rgba(244,194,13,0.72); box-shadow: 0 28px 58px rgba(0,0,0,0.34); transform: translateY(-3px); }
.atlas-roadcard:active { transform: translateY(-1px) scale(0.99); }
.atlas-roadcard:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; border-color: var(--gold); }
.atlas-roadcard::before {
  content: ""; position: absolute; inset: auto -8% 38px -8%; height: 62px; z-index: -1;
  transform: rotate(-3deg); background: linear-gradient(180deg, #2f3440, #171a22);
  border-top: 1px solid rgba(255,255,255,0.16); border-bottom: 1px solid rgba(255,255,255,0.08);
}
.atlas-roadcard::after {
  content: ""; position: absolute; left: -10%; right: -10%; bottom: 68px; height: 3px;
  transform: rotate(-3deg); background: repeating-linear-gradient(90deg, var(--gold) 0 42px, transparent 42px 78px);
  opacity: 0.68;
}
.atlas-roadcard--parks { background: linear-gradient(145deg, #173776, #34153e); }
.atlas-roadcard--family { background: linear-gradient(145deg, #4b1630, #101d49); }
.atlas-roadcard--city { background: linear-gradient(145deg, #17386d, #0b3550); }
.atlas-roadcard__route {
  position: absolute; top: 2px; right: 14px; z-index: -1; color: rgba(255,255,255,0.07);
  font-family: var(--font-display); font-size: 76px; font-style: italic; font-weight: var(--fw-extra);
  letter-spacing: -0.06em; line-height: 1;
}
.atlas-roadcard__action {
  position: absolute; top: 14px; left: 14px; z-index: 3; display: inline-flex; align-items: center; gap: 6px;
  min-height: 32px; padding: 7px 10px; border: 1px solid rgba(255,255,255,0.22); border-radius: var(--radius-pill);
  background: rgba(2,12,34,0.76); color: #fff; backdrop-filter: blur(8px);
  font-family: var(--font-mono); font-size: 9px; font-weight: var(--fw-semibold); letter-spacing: 0.1em; text-transform: uppercase;
  transition: background 220ms ease, border-color 220ms ease, color 220ms ease;
}
.atlas-roadcard__action svg { width: 14px; height: 14px; color: var(--gold); }
.atlas-roadcard:hover .atlas-roadcard__action,
.atlas-roadcard:focus-visible .atlas-roadcard__action { background: var(--brand); border-color: var(--brand); }
.atlas-roadcard:hover .atlas-roadcard__action svg,
.atlas-roadcard:focus-visible .atlas-roadcard__action svg { color: #fff; }
.atlas-roadcard img {
  position: absolute; z-index: 1; width: 92%; height: 72%; left: 9%; top: 13px;
  object-fit: contain; filter: drop-shadow(0 18px 13px rgba(0,0,0,0.45));
  transform: translate3d(0, 0, 0); transition: transform 480ms var(--ease-out), filter 480ms var(--ease-out);
}
.atlas-roadcard:hover img { transform: translate3d(-7px, -3px, 0) scale(1.035); filter: drop-shadow(0 24px 18px rgba(0,0,0,0.52)); }
.atlas-roadcard__copy {
  position: absolute; inset: auto 0 0; z-index: 2; display: flex; flex-direction: column; gap: 3px;
  padding: 24px 18px 16px; background: linear-gradient(transparent, rgba(2,12,34,0.94) 38%);
}
.atlas-roadcard__copy span {
  color: var(--gold); font-family: var(--font-mono); font-size: 9px; font-weight: var(--fw-semibold);
  letter-spacing: 0.14em; text-transform: uppercase;
}
.atlas-roadcard__copy strong { color: #fff; font-size: 14px; line-height: 1.3; }
.atlas-roadreel + .atlas-trust { padding-top: var(--space-6); }
@media (min-width: 721px) {
  .atlas-roadreel__head { grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr); gap: 36px; }
  .atlas-roadreel__head p { justify-self: end; }
}
@media (min-width: 961px) {
  .atlas-roadreel { padding-top: calc(var(--space-8) + 62px); }
  .atlas-roadreel + .atlas-trust { padding-top: var(--space-8); }
}

/* ============================================================
   Booking bar
   ============================================================ */
.atlas-bookingbar {
  position: relative;
  display: flex; flex-direction: column; align-items: stretch;
  background: var(--surface-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-xl);
  padding: 8px; gap: 8px;
}
.atlas-bookingbar__fields { display: flex; flex-direction: column; flex: 1; min-width: 0; position: relative; }
.atlas-field { position: relative; flex: 1 1 auto; min-width: 0; width: 100%; }
.atlas-field__inner {
  display: flex; align-items: center; gap: 11px; padding: 0 16px; height: 58px;
  cursor: pointer; border-bottom: 1px solid var(--border);
  width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0;
  text-align: left; font-family: inherit; color: inherit;
}
.atlas-field:last-child .atlas-field__inner { border-bottom: 0; }
.atlas-field__inner > i.lead, .atlas-field__inner > svg.lead { width: 19px; height: 19px; color: var(--brand); flex: 0 0 auto; }
.atlas-field__text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.atlas-field__label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-muted);
}
.atlas-field__value {
  font-family: var(--font-sans); font-size: 15px; font-weight: var(--fw-semibold);
  color: var(--text-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.atlas-field__chev { width: 16px; height: 16px; color: var(--text-muted); flex: 0 0 auto; }
.atlas-field--readonly .atlas-field__inner { cursor: default; }
/* Native date input overlay (transparent, full-bleed) */
.atlas-field__date {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: 0; cursor: pointer;
  font-size: 16px; /* anti-zoom iOS */
}

/* Field popover */
.atlas-popover {
  position: absolute; top: calc(100% + 10px); left: 6px; right: 6px; z-index: 40;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); padding: 6px; max-height: 264px; overflow-y: auto;
}
.atlas-popover button {
  display: flex; align-items: center; gap: 9px; width: 100%; text-align: left;
  padding: 10px 12px; border: 0; border-radius: var(--radius-sm); cursor: pointer;
  background: transparent; color: var(--text-body);
  font-family: var(--font-sans); font-size: 14px; font-weight: var(--fw-medium);
  min-height: 44px;
}
.atlas-popover button:hover { background: var(--gray-50); }
.atlas-popover button.is-active { background: var(--racing-50); color: var(--racing-navy); font-weight: var(--fw-semibold); }
.atlas-popover button svg { width: 15px; height: 15px; flex: 0 0 auto; }
.atlas-popover--locations button { align-items: flex-start; }
.atlas-popover--locations button > span:not(:first-child) {
  display: flex; flex-direction: column; gap: 3px; min-width: 0;
}
.atlas-popover--locations strong {
  color: var(--text-strong); font-size: 14px; line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.atlas-popover--locations small {
  color: var(--text-muted); font-size: 11.5px; line-height: 1.35; font-weight: var(--fw-medium);
}
.atlas-bookingbar__cta { border-radius: var(--radius-md); flex: 0 0 auto; }

@media (min-width: 861px) {
  .atlas-bookingbar { flex-direction: row; align-items: center; flex-wrap: wrap; border-radius: var(--radius-xl); }
  .atlas-bookingbar__fields { flex-direction: row; align-items: center; }
  .atlas-field { flex: 1 1 148px; }
  .atlas-field__inner { height: 64px; padding-inline: 14px; border-bottom: 0; border-right: 1px solid var(--border); }
  .atlas-field:last-child .atlas-field__inner { border-right: 0; }
  .atlas-bookingbar__cta { width: auto; }
}

/* ============================================================
   Trust strip / stats
   padding-top clears the floating booking bar (translateY overhang);
   padding-bottom stays tight so stats → Why Atlas has no dead band.
   ============================================================ */
.atlas-trust {
  padding-top: calc(var(--space-6) + 40px); /* ~34px bar hang + breathing room */
  padding-bottom: var(--space-3);
}
.atlas-trust__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 12px; }
.atlas-stat { padding-left: 14px; border-left: 3px solid var(--brand); }
.atlas-stat__value {
  font-family: var(--font-display); font-weight: var(--fw-extra); font-size: clamp(30px, 7.5vw, 44px);
  line-height: 1; letter-spacing: -0.03em; color: var(--text-strong);
}
.atlas-stat__label { font-family: var(--font-sans); font-size: 13.5px; font-weight: var(--fw-semibold); color: var(--text-strong); margin-top: 3px; }
.atlas-stat__sub { font-size: 12.5px; font-weight: var(--fw-medium); color: var(--text-muted); margin-top: 2px; }
@media (min-width: 641px) {
  .atlas-trust {
    padding-top: calc(var(--space-8) + 48px);
    padding-bottom: var(--space-4);
  }
  .atlas-trust__grid { grid-template-columns: repeat(4, 1fr); gap: 28px; }
  .atlas-stat { padding-left: 18px; }
  .atlas-stat__label { font-size: 14px; margin-top: 4px; }
  .atlas-stat__sub { font-size: 13px; margin-top: 4px; }
}
@media (min-width: 961px) {
  /* Desktop booking bar uses translateY(50%) — keep clearance, not excess air */
  .atlas-trust { padding-top: calc(var(--space-8) + 52px); }
}

/* Trust → Why Atlas: collapse the empty white strip (was trust-bottom + full --section-y) */
.atlas-trust + .atlas-section {
  padding-top: clamp(1rem, 2.25vw, 2rem);
}

/* Promise band → CTA: bottom was full --section-y while top collapsed (~128px dead gray) */
.atlas-section:has(+ .atlas-cta) {
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

/* ============================================================
   Feature trio
   ============================================================ */
.atlas-features__head { max-width: 560px; margin-bottom: 22px; }
.atlas-features__grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.atlas-feature {
  position: relative; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-sm); overflow: hidden;
}
.atlas-feature::before {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--racing-navy), var(--brand));
}
.atlas-feature__icon {
  width: 48px; height: 48px; border-radius: var(--radius-md); background: var(--racing-navy);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.atlas-feature__icon i, .atlas-feature__icon svg { width: 22px; height: 22px; color: var(--gold); }
.atlas-feature h3 { font-family: var(--font-display); font-weight: var(--fw-extra); font-size: 20px; margin-bottom: 8px; }
.atlas-feature p { font-size: 15px; line-height: 1.55; color: var(--text-body); }
@media (min-width: 641px) {
  .atlas-features__head { margin-bottom: 36px; }
  .atlas-features__grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .atlas-feature { padding: 28px; }
  .atlas-feature__icon { width: 52px; height: 52px; margin-bottom: 20px; }
  .atlas-feature__icon i, .atlas-feature__icon svg { width: 24px; height: 24px; }
  .atlas-feature h3 { font-size: 21px; margin-bottom: 10px; }
  .atlas-feature p { line-height: 1.6; }
}

/* ============================================================
   How it works
   ============================================================ */
.atlas-how__head { max-width: 520px; margin-bottom: 32px; }
.atlas-how__grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
.atlas-step__num {
  font-family: var(--font-display); font-style: italic; font-size: 34px; font-weight: var(--fw-extra);
  color: var(--brand); margin-bottom: 14px; -webkit-text-stroke: 1px var(--racing-navy);
}
.atlas-step > i, .atlas-step > svg { width: 28px; height: 28px; color: var(--racing-navy); }
.atlas-step h3 { font-family: var(--font-display); font-weight: var(--fw-extra); font-size: 20px; margin: 18px 0 10px; }
.atlas-step p { font-size: 15px; line-height: 1.6; color: var(--text-body); }
@media (min-width: 961px) {
  .atlas-how__head { margin-bottom: 48px; }
  .atlas-how__grid { grid-template-columns: repeat(3, 1fr); gap: 0; }
  .atlas-step { padding: 0 32px; }
  .atlas-step + .atlas-step { border-left: 1px solid var(--border); }
}

/* ============================================================
   Fleet grid
   ============================================================ */
.atlas-fleet__head {
  display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap;
  gap: 18px; margin-bottom: 34px;
}
.atlas-fleet__head-copy { max-width: 540px; }
.atlas-fleet__filters { display: flex; gap: 8px; flex-wrap: wrap; }
.atlas-chip {
  padding: 9px 16px; border-radius: var(--radius-pill); cursor: pointer;
  font-family: var(--font-sans); font-size: 13.5px; font-weight: var(--fw-semibold);
  border: 1.5px solid var(--border-strong); background: var(--surface-card); color: var(--text-body);
  transition: all var(--dur-fast) var(--ease-out); min-height: 38px;
}
.atlas-chip:hover { border-color: var(--racing-navy); }
.atlas-chip.is-active { border-color: var(--racing-navy); background: var(--racing-navy); color: #fff; }

.atlas-fleet__grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 641px) { .atlas-fleet__grid { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
@media (min-width: 961px) { .atlas-fleet__grid { grid-template-columns: repeat(3, 1fr); } }

/* Vehicle card */
.atlas-vcard {
  background: var(--surface-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.atlas-vcard:hover, .atlas-vcard:focus-within { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.atlas-vcard__media {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  background: #fff;  /* mesmo padrão do SVS /fleet/vehicles/ (.ad-vimg) */
}
/* Espelha SVS (.ad-vimg img): absolute + contain + padding — carro inteiro. */
.atlas-vcard__media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; object-position: center;
  background: #fff; padding: 10px; box-sizing: border-box;
}
.atlas-vcard__ph {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--racing-navy), var(--racing-deep));
}
.atlas-vcard__ph img { width: 46px; height: auto; opacity: 0.28; }
.atlas-vcard__ph-label {
  position: absolute; bottom: 10px; left: 12px; font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.45);
}
.atlas-vcard__badge { position: absolute; top: 12px; left: 12px; }
.atlas-vcard__promo { position: absolute; top: 12px; right: 12px; }
.atlas-vcard__body { padding: 18px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.atlas-vcard__name {
  font-family: var(--font-display); font-weight: var(--fw-extra); font-size: 18px; line-height: 1.15;
  color: var(--text-strong); letter-spacing: -0.01em; min-height: 42px;
  display: flex; align-items: flex-start;
}
.atlas-vcard__specs { display: flex; gap: 16px; flex-wrap: wrap; padding-top: 2px; }
.atlas-spec {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 12.5px; color: var(--text-body); white-space: nowrap;
}
.atlas-spec i, .atlas-spec svg { width: 15px; height: 15px; color: var(--text-muted); }
.atlas-vcard__divider { height: 1px; background: var(--border); margin: 4px 0; }
.atlas-vcard__footer { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.atlas-vcard__price { white-space: nowrap; display: flex; flex-direction: column; align-items: flex-start; gap: 0; line-height: 1.15; }
.atlas-vcard__price .from { font-family: var(--font-sans); font-size: 11px; font-weight: var(--fw-medium); letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-muted); }
.atlas-vcard__price .amt { font-family: var(--font-mono); font-weight: var(--fw-semibold); font-size: 26px; color: var(--text-strong); }
.atlas-vcard__price .per { font-family: var(--font-mono); font-size: 13px; color: var(--text-muted); }

/* Rating */
.atlas-rating { display: inline-flex; align-items: center; gap: 7px; }
.atlas-rating__stars { display: inline-flex; gap: 2px; }
.atlas-rating__stars svg { width: 16px; height: 16px; display: block; }
.atlas-rating__count { font-family: var(--font-mono); font-size: 12px; font-weight: var(--fw-medium); color: var(--text-muted); white-space: nowrap; }

/* Badge */
.atlas-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-sans); font-weight: var(--fw-semibold); font-size: 12px;
  letter-spacing: 0.01em; line-height: 1; padding: 6px 11px;
  border-radius: var(--radius-pill); white-space: nowrap; border: 1px solid transparent;
}
.atlas-badge--brand   { background: var(--brand); color: #fff; }
.atlas-badge--neutral { background: var(--gray-900); color: #fff; }
.atlas-badge--info    { background: var(--blue-500); color: #fff; }
.atlas-badge--warning { background: var(--amber-500); color: #fff; }
.atlas-badge--success { background: var(--green-500); color: #fff; }

/* Empty state */
.atlas-empty {
  grid-column: 1 / -1; text-align: center; padding: 56px 24px;
  border: 1px dashed var(--border-strong); border-radius: var(--radius-lg);
  background: var(--color-bg-subtle); color: var(--text-muted);
}
.atlas-empty i, .atlas-empty svg { width: 36px; height: 36px; color: var(--text-muted); margin: 0 auto 12px; }
.atlas-empty h3 { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: 20px; color: var(--text-strong); margin-bottom: 6px; }
.atlas-empty p { font-size: 15px; }

/* ============================================================
   Locations (dark)
   ============================================================ */
.atlas-locations {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(155deg, var(--racing-navy), var(--racing-deep));
}
.atlas-locations__dots {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(80% 80% at 80% 50%, #000, transparent 70%);
          mask-image: radial-gradient(80% 80% at 80% 50%, #000, transparent 70%);
}
.atlas-locations__grid {
  position: relative; display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center;
}
.atlas-locations h2 { color: #fff; margin: 16px 0 18px; }
.atlas-locations__lead { font-size: 17px; line-height: 1.6; color: rgba(255,255,255,0.66); max-width: 440px; margin-bottom: 28px; }
.atlas-loc-card {
  display: inline-flex; align-items: center; gap: 12px; padding: 16px 18px;
  border-radius: var(--radius-md); border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.04);
}
.atlas-loc-card + .atlas-loc-card { margin-top: 10px; }
.atlas-loc-card i, .atlas-loc-card svg { width: 22px; height: 22px; color: var(--gold); flex: 0 0 auto; }
.atlas-loc-card .k { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.5); }
.atlas-loc-card .v { font-family: var(--font-sans); font-size: 15px; font-weight: var(--fw-semibold); color: #fff; }
.atlas-locations__map {
  order: -1; aspect-ratio: 4 / 3; border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,0.14); position: relative; overflow: hidden;
  background: radial-gradient(120% 90% at 74% 30%, var(--racing-700), var(--racing-deep) 78%);
  box-shadow: var(--shadow-xl);
  perspective: 1300px;
}
/* --- tilted tabletop: only the GRID goes into 3D depth (data stays flat & legible) --- */
.atlas-map-floor {
  position: absolute; inset: -18% -6% -6% -6%; transform-style: preserve-3d;
  transform: rotateX(30deg) rotateZ(-4deg) scale(1.04);
  transform-origin: center 62%;
  transition: transform 0.45s cubic-bezier(0.25, 0.8, 0.3, 1);
  -webkit-mask-image: radial-gradient(95% 85% at 60% 55%, #000 55%, transparent 100%);
          mask-image: radial-gradient(95% 85% at 60% 55%, #000 55%, transparent 100%);
}
.atlas-locations__map:hover .atlas-map-floor { transform: rotateX(34deg) rotateZ(-4deg) scale(1.06); }
.atlas-locations__map-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 34px 34px;
}
.atlas-map-floor__glow {
  position: absolute; inset: 0;
  background: radial-gradient(50% 40% at 74% 34%, rgba(244,194,13,0.10), transparent 70%);
}
.atlas-map-shadow {
  position: absolute; left: 10%; right: 10%; bottom: 8%; height: 26%;
  background: radial-gradient(50% 100% at 50% 100%, rgba(0,0,0,0.45), transparent 72%);
  filter: blur(6px); pointer-events: none;
}

/* --- Orlando service map: real points + self-drawing delivery routes from Atlas HQ --- */
.atlas-map-svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.atlas-route {
  stroke: var(--gold); stroke-width: 1.3; stroke-linecap: round;
  stroke-dasharray: 0.12 0.05; opacity: 0.55;
  animation: atlasRouteDraw 3.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
.atlas-route--1 { animation-delay: 0s;   }
.atlas-route--2 { animation-delay: 0.4s; }
.atlas-route--3 { animation-delay: 0.8s; }
.atlas-route--4 { animation-delay: 1.2s; }
@keyframes atlasRouteDraw {
  0%   { stroke-dashoffset: 0.24; opacity: 0;    }
  15%  { opacity: 0.6;  }
  55%  { stroke-dashoffset: 0;    opacity: 0.6;  }
  80%  { opacity: 0.35; }
  100% { stroke-dashoffset: -0.24; opacity: 0;   }
}
.atlas-map-point circle {
  fill: var(--gold); stroke: rgba(0,0,0,0.35); stroke-width: 1;
  filter: drop-shadow(0 0 5px rgba(244,194,13,0.6));
}
/* roving delivery car */
.atlas-map-car__dot   { fill: #fff; filter: drop-shadow(0 0 5px rgba(244,194,13,0.95)); }
.atlas-map-car__trail { fill: var(--gold); opacity: 0.22; }
/* Atlas HQ radar */
.atlas-map-hq__dot   { fill: var(--brand); filter: drop-shadow(0 0 6px rgba(182,22,49,0.8)); }
.atlas-map-hq__ring  { fill: none; stroke: #fff; stroke-width: 1.4; opacity: 0.9; }
.atlas-map-hq__radar { fill: none; stroke: var(--brand); stroke-width: 1.6;
  transform-box: fill-box; transform-origin: center;
  animation: atlasRadar 2.8s ease-out infinite; }
.atlas-map-hq__radar--b { animation-delay: 1.4s; }
@keyframes atlasRadar {
  0%   { transform: scale(0.4); opacity: 0.9; }
  100% { transform: scale(2.6); opacity: 0;   }
}
@media (prefers-reduced-motion: reduce) {
  .atlas-route, .atlas-map-hq__radar { animation: none; }
  .atlas-route { stroke-dashoffset: 0; opacity: 0.5; }
  .atlas-map-hq__radar { display: none; }
  .atlas-map-car { display: none; }
}

.atlas-map-label {
  position: absolute; pointer-events: none; z-index: 2;
  font-family: var(--font-sans); font-size: 11.5px; font-weight: var(--fw-semibold);
  line-height: 1.15; letter-spacing: 0.01em; color: rgba(255,255,255,0.9);
  white-space: nowrap; text-shadow: 0 1px 4px rgba(0,0,0,0.75), 0 0 2px rgba(0,0,0,0.6);
}
.atlas-map-label__code {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.08em;
  color: var(--gold); margin-left: 3px;
}
/* positions: cx/400, cy/300 → % ; offsets keep text clear of the dot */
.atlas-map-label--universal { left: 37.5%;  top: 17.3%; transform: translate(-50%, 12px); }
.atlas-map-label--idrive    { left: 45%;    top: 56.7%; transform: translate(-50%, 14px); }
.atlas-map-label--disney    { left: 14.5%;  top: 86%;   transform: translate(-42%, -30px); }
.atlas-map-label--mco       { left: 66.25%; top: 86%;   transform: translate(-50%, -30px); }
.atlas-map-label--hq {
  left: 75%; top: 40%; transform: translate(-50%, -34px); text-align: center;
}
.atlas-map-label--hq b {
  display: block; font-size: 13px; font-weight: var(--fw-bold); color: #fff;
}
.atlas-map-label--hq em {
  display: block; font-style: normal; font-family: var(--font-mono);
  font-size: 8.5px; letter-spacing: 0.09em; text-transform: uppercase; color: #ff8ea0;
}
@media (max-width: 520px) {
  /* lighter perspective + fewer labels so nothing crowds on small phones */
  .atlas-map-floor { transform: rotateX(24deg) rotateZ(-3deg) scale(1.02); }
  .atlas-map-label--universal, .atlas-map-label--idrive { display: none; }
  .atlas-map-label { font-size: 10.5px; }
}
.atlas-locations__caption {
  position: absolute; bottom: 14px; left: 16px; font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.6); /* 0.4 dava 3.52:1 (reprova WCAG AA p/ texto pequeno); 0.6 ~5.3:1 */
}
@media (min-width: 861px) {
  .atlas-locations__grid { grid-template-columns: 1fr 1fr; gap: 60px; }
  .atlas-locations__map { order: 0; }
}

/* ============================================================
   Testimonial
   ============================================================ */
.atlas-testimonial { text-align: center; max-width: 860px; }
.atlas-testimonial__stars { display: inline-flex; gap: 4px; margin-bottom: 24px; }
.atlas-testimonial__stars i, .atlas-testimonial__stars svg { width: 22px; height: 22px; color: var(--gold); }
.atlas-testimonial__quote {
  font-family: var(--font-display); font-weight: var(--fw-bold); font-size: clamp(22px, 5vw, 38px);
  line-height: 1.25; letter-spacing: -0.02em; color: var(--text-strong); text-wrap: balance;
}
.atlas-testimonial__by { margin-top: 26px; font-family: var(--font-sans); font-weight: var(--fw-semibold); color: var(--text-strong); }
.atlas-testimonial__by span { color: var(--text-muted); font-weight: var(--fw-medium); }

/* ============================================================
   CTA band
   ============================================================ */
.atlas-cta {
  position: relative; overflow: hidden; padding-block: var(--space-10);
  background: linear-gradient(120deg, var(--racing-navy), var(--racing-700));
}
.atlas-cta__glow {
  position: absolute; top: -120px; right: -80px; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(244,194,13,0.18), transparent 62%); filter: blur(12px);
}
.atlas-cta__inner { position: relative; }
.atlas-cta h2 { color: #fff; margin: 14px 0 0; max-width: 720px; }
.atlas-cta p { font-size: 17px; color: rgba(255,255,255,0.85); margin: 14px 0 0; max-width: 540px; }
.atlas-cta__actions { margin-top: 30px; }

/* ============================================================
   Footer
   ============================================================ */
.atlas-footer {
  position: relative; background: var(--racing-deep); color: #fff;
  padding-top: var(--space-10); padding-bottom: var(--space-7);
}
.atlas-footer__top {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px 24px;
  padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.12);
}
.atlas-footer__brand { grid-column: 1 / -1; max-width: 340px; }
.atlas-footer__brand p { margin-top: 18px; font-size: 14px; line-height: 1.6; color: rgba(255,255,255,0.6); }
.atlas-footer__addr { margin-top: 14px; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.7; color: rgba(255,255,255,0.55); }
.atlas-footer__addr a { color: rgba(255,255,255,0.8); }
.atlas-footer__addr a:hover { color: var(--gold); }
.atlas-socials { display: flex; gap: 10px; margin-top: 20px; }
.atlas-socials a {
  width: 40px; height: 40px; border-radius: var(--radius-md); border: 1px solid rgba(255,255,255,0.16);
  display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.8);
  transition: all var(--dur-fast) var(--ease-out);
}
.atlas-socials a:hover, .atlas-socials a:focus-visible { border-color: var(--gold); color: var(--gold); }
.atlas-socials svg { width: 18px; height: 18px; }
.atlas-footer__col-h { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.atlas-footer__col-list { display: flex; flex-direction: column; gap: 12px; }
.atlas-footer__col-list a { font-size: 14.5px; color: rgba(255,255,255,0.75); }
.atlas-footer__col-list a:hover { color: #fff; }
.atlas-footer__legal {
  padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-family: var(--font-mono); font-size: 12px; color: rgba(255,255,255,0.6); /* 0.45 dava 4.44:1 sobre --racing-deep (reprova WCAG AA); 0.6 ~6:1 */
}
@media (min-width: 641px) {
  .atlas-footer__top { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
  .atlas-footer__brand { grid-column: auto; }
}

/* ============================================================
   Mobile sticky reserve bar
   ============================================================ */
.atlas-reservebar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
  background: #fff; border-top: 1px solid var(--border);
  box-shadow: 0 -6px 20px rgba(12,17,25,0.10);
  padding: 12px 16px; padding-bottom: calc(12px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 14px;
}
.atlas-reservebar__price { display: flex; flex-direction: column; line-height: 1.05; }
.atlas-reservebar__from { font-family: var(--font-mono); font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; }
.atlas-reservebar__amt { font-family: var(--font-display); font-weight: var(--fw-extra); font-size: 22px; color: var(--text-strong); }
.atlas-reservebar__amt small { font-size: 13px; color: var(--text-muted); font-weight: var(--fw-semibold); }
.atlas-reservebar__btn {
  flex: 1; height: 52px; border: 0; border-radius: var(--radius-md); background: var(--brand);
  color: #fff; font-family: var(--font-sans); font-weight: var(--fw-bold); font-size: 16px; cursor: pointer;
  box-shadow: var(--shadow-brand); display: flex; align-items: center; justify-content: center; gap: 9px;
}
.atlas-reservebar__btn i, .atlas-reservebar__btn svg { width: 19px; height: 19px; }
@media (min-width: 961px) { .atlas-reservebar { display: none; } }
.atlas-chat-open .atlas-reservebar { display: none; }

/* ============================================================
   Mobile booking sheet (bottom-sheet stepper)
   ============================================================ */
.atlas-sheet-overlay {
  position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; justify-content: flex-end;
}
.atlas-sheet-scrim { position: absolute; inset: 0; background: rgba(12,17,25,0.55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.atlas-sheet {
  position: relative; background: #fff; border-top-left-radius: var(--radius-xl); border-top-right-radius: var(--radius-xl);
  max-height: calc(var(--vh, 1vh) * 92); display: flex; flex-direction: column; box-shadow: var(--shadow-xl);
  animation: atlassheet 0.28s var(--ease-out);
}
@keyframes atlassheet { from { transform: translateY(100%); } to { transform: none; } }
.atlas-sheet__head { padding: 14px 18px 10px; }
.atlas-sheet__handle { width: 40px; height: 5px; border-radius: 99px; background: var(--gray-200); margin: 0 auto 14px; }
.atlas-sheet__titlerow { display: flex; align-items: center; justify-content: space-between; }
.atlas-sheet__title { font-family: var(--font-display); font-weight: var(--fw-extra); font-style: italic; font-size: 22px; text-transform: uppercase; color: var(--racing-navy); }
.atlas-sheet__close {
  width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--color-bg-subtle);
  color: var(--text-muted); cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.atlas-sheet__close i, .atlas-sheet__close svg { width: 18px; height: 18px; }
.atlas-sheet__progress { display: flex; gap: 6px; margin-top: 14px; }
.atlas-sheet__seg { flex: 1; height: 4px; border-radius: 99px; background: var(--gray-200); transition: background var(--dur-base); }
.atlas-sheet__seg.is-on { background: var(--brand); }
.atlas-sheet__body { flex: 1; overflow-y: auto; padding: 8px 18px 18px; }
.atlas-sheet__group-label {
  margin: 14px 0 8px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-muted);
}
.atlas-sheet__group-label:first-child { margin-top: 2px; }
.atlas-sheet__foot {
  padding: 12px 18px; padding-bottom: calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border); display: flex; gap: 10px;
}
.atlas-sheet__back {
  width: 56px; height: 54px; border-radius: var(--radius-md); border: 1.5px solid var(--border-strong);
  background: #fff; color: var(--text-strong); cursor: pointer; display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.atlas-sheet__back i, .atlas-sheet__back svg { width: 20px; height: 20px; }
.atlas-sheet__next {
  flex: 1; height: 54px; border-radius: var(--radius-md); border: 0; background: var(--brand); color: #fff;
  font-family: var(--font-sans); font-weight: var(--fw-bold); font-size: 16px; cursor: pointer;
  box-shadow: var(--shadow-brand); display: flex; align-items: center; justify-content: center; gap: 9px;
}
.atlas-sheet__next i, .atlas-sheet__next svg { width: 18px; height: 18px; }

.atlas-sheet-row {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 16px; min-height: 56px; border: 1.5px solid var(--border); border-radius: var(--radius-md);
  background: #fff; cursor: pointer; font-family: var(--font-sans); font-size: 16px; font-weight: var(--fw-semibold);
  color: var(--text-strong); margin-bottom: 10px;
}
.atlas-sheet-row.is-active { border-color: var(--brand); background: var(--brand-tint); }
.atlas-sheet-row__icon { color: var(--text-muted); display: flex; }
.atlas-sheet-row.is-active .atlas-sheet-row__icon { color: var(--brand); }
.atlas-sheet-row__icon i, .atlas-sheet-row__icon svg { width: 19px; height: 19px; }
.atlas-sheet-row__text { flex: 1; }
.atlas-sheet-row__copy { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 3px; }
.atlas-sheet-row__copy .atlas-sheet-row__text {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.atlas-sheet-row__copy small {
  color: var(--text-muted); font-size: 12px; line-height: 1.35; font-weight: var(--fw-medium);
}
.atlas-sheet-row__check { color: var(--brand); display: flex; }
.atlas-sheet-row__price { font-family: var(--font-mono); font-size: 15px; font-weight: var(--fw-semibold); color: var(--text-strong); }
.atlas-sheet-row__price small { color: var(--text-muted); font-size: 12px; }

.atlas-sheet-date { display: block; margin-bottom: 14px; }
.atlas-sheet-date__label { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.atlas-sheet-date__field {
  position: relative; display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 16px;
  border: 1.5px solid var(--border); border-radius: var(--radius-md); background: #fff;
}
.atlas-sheet-date__field > i.lead, .atlas-sheet-date__field > svg.lead { color: var(--brand); width: 20px; height: 20px; }
.atlas-sheet-date__val { font-family: var(--font-sans); font-size: 17px; font-weight: var(--fw-semibold); color: var(--text-strong); }
.atlas-sheet-date__input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: 0; cursor: pointer; font-size: 16px; }
.atlas-sheet__hint { font-family: var(--font-sans); font-size: 14px; color: var(--text-muted); margin-top: 4px; }

.atlas-sheet-review__row { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); cursor: pointer; width: 100%; text-align: left; background: none; border-left: 0; border-right: 0; border-top: 0; }
.atlas-sheet-review__icon { color: var(--brand); display: flex; }
.atlas-sheet-review__icon i, .atlas-sheet-review__icon svg { width: 19px; height: 19px; }
.atlas-sheet-review__copy { flex: 1; min-width: 0; }
.atlas-sheet-review__k { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.atlas-sheet-review__v { font-family: var(--font-sans); font-size: 16px; font-weight: var(--fw-semibold); color: var(--text-strong); }
.atlas-sheet-review__k, .atlas-sheet-review__v { display: block; }
.atlas-sheet-review__edit { color: var(--text-muted); font-family: var(--font-sans); font-size: 13px; font-weight: var(--fw-semibold); }
.atlas-sheet-total {
  display: flex; justify-content: space-between; align-items: center; margin-top: 20px; padding: 16px;
  background: var(--color-bg-subtle); border-radius: var(--radius-md);
}
.atlas-sheet-total__label { font-family: var(--font-sans); font-weight: var(--fw-semibold); font-size: 15px; }
.atlas-sheet-total__amt { font-family: var(--font-mono); font-weight: var(--fw-semibold); font-size: 26px; color: var(--text-strong); }

/* ============================================================
   Chat widget
   ============================================================ */
.atlas-chat-launcher {
  position: fixed; right: 24px; bottom: 94px; z-index: 120;
  width: 62px; height: 62px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-xl); transition: transform var(--dur-fast) var(--ease-out);
  animation: atlaspulse 2.4s infinite;
}
.atlas-chat-launcher:active { transform: scale(0.92); }
.atlas-chat-launcher.is-open { animation: none; }
.atlas-chat-launcher i, .atlas-chat-launcher svg { width: 26px; height: 26px; }
@keyframes atlaspulse {
  0%   { box-shadow: 0 0 0 0 rgba(182,22,49,0.45); }
  70%  { box-shadow: 0 0 0 16px rgba(182,22,49,0); }
  100% { box-shadow: 0 0 0 0 rgba(182,22,49,0); }
}
@media (min-width: 961px) { .atlas-chat-launcher { bottom: 24px; } }
.atlas-chat-open .atlas-chat-launcher { bottom: calc(18px + env(safe-area-inset-bottom)); }
@media (min-width: 961px) { .atlas-chat-open .atlas-chat-launcher { bottom: 24px; } }

/* Pill minimizado — conversa ativa sem cobrir a página (checkout visível atrás).
   Fica COLADO no rodapé (feedback André 2026-07-03: flutuando no meio era ruim);
   só sobe nas páginas que têm a reservebar fixa (landing/vehicle) via :has(). */
.atlas-chat-pill {
  position: fixed; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 120;
  max-width: min(360px, calc(100vw - 32px));
  display: flex; align-items: stretch; gap: 0;
  background: linear-gradient(135deg, var(--racing-navy), var(--racing-deep));
  color: #fff; border-radius: var(--radius-pill); box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255,255,255,0.12); overflow: hidden;
  animation: atlaspillin var(--dur-base) var(--ease-out);
}
@keyframes atlaspillin { from { opacity: 0; transform: translateY(14px) scale(0.96); } to { opacity: 1; transform: none; } }
/* Páginas com reservebar fixa no rodapé: pill sobe para não colidir com "Reserve now". */
body:has(.atlas-reservebar) .atlas-chat-pill { bottom: calc(94px + env(safe-area-inset-bottom)); }
/* Desktop: o pill OCUPA o lugar do launcher de propósito (estados mutuamente exclusivos —
   o launcher usa x-show="!minimized || open" e some quando o pill aparece). */
@media (min-width: 961px) { .atlas-chat-pill, body:has(.atlas-reservebar) .atlas-chat-pill { bottom: 24px; right: 24px; } }
.atlas-chat-pill__main:focus-visible, .atlas-chat-pill__x:focus-visible {
  outline: 2px solid #fff; outline-offset: -3px; border-radius: var(--radius-pill);
}
.atlas-chat-pill__main {
  display: flex; align-items: center; gap: 10px; border: 0; cursor: pointer;
  background: transparent; color: #fff; padding: 10px 6px 10px 12px; min-height: 52px;
  text-align: left; flex: 1; min-width: 0;
}
.atlas-chat-pill__txt { display: flex; flex-direction: column; min-width: 0; }
.atlas-chat-pill__name {
  font-family: var(--font-display); font-weight: var(--fw-extra); font-size: 13.5px;
  line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.atlas-chat-pill__hint {
  display: flex; align-items: center; gap: 6px; font-size: 12px;
  color: rgba(255,255,255,0.78); margin-top: 2px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.atlas-chat-pill__badge {
  flex: 0 0 auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px;
  background: var(--brand); color: #fff; font-family: var(--font-sans);
  font-size: 11.5px; font-weight: var(--fw-semibold);
  display: inline-flex; align-items: center; justify-content: center;
  animation: atlaspulse 2.4s infinite;
}
.atlas-chat-pill__chev { flex: 0 0 auto; width: 18px; height: 18px; opacity: 0.85; }
.atlas-chat-pill__x {
  flex: 0 0 auto; border: 0; cursor: pointer; width: 44px; min-height: 52px;
  background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.75);
  display: flex; align-items: center; justify-content: center;
  border-left: 1px solid rgba(255,255,255,0.12);
}
.atlas-chat-pill__x svg { width: 15px; height: 15px; }
.atlas-chat-pill__x:active, .atlas-chat-pill__main:active { background: rgba(255,255,255,0.12); }

/* Modo COMPACTO (anti-bloqueio): CTA crítico na viewport → o pill vira bolha pequena
   (avatar + badge) e libera o botão da página. Transição suave nos dois sentidos. */
.atlas-chat-pill { transition: max-width var(--dur-base) var(--ease-out), border-radius var(--dur-base) var(--ease-out); }
.atlas-chat-pill.is-compact {
  max-width: 64px; border-radius: 50%;
  /* anel claro: a bolha compacta não pode sumir sobre fundos navy (footer/checkout) */
  box-shadow: var(--shadow-xl), 0 0 0 2px rgba(255,255,255,0.28);
}
.atlas-chat-pill.is-compact .atlas-chat-pill__txt,
.atlas-chat-pill.is-compact .atlas-chat-pill__chev,
.atlas-chat-pill.is-compact .atlas-chat-pill__x { display: none; }
.atlas-chat-pill.is-compact .atlas-chat-pill__main {
  padding: 0; width: 56px; height: 56px; min-height: 56px; justify-content: center;
}
.atlas-chat-pill.is-compact .atlas-chat-pill__badge {
  position: absolute; top: -4px; right: -4px;
  box-shadow: 0 0 0 2px var(--racing-navy);
}
.atlas-chat-pill.is-compact { overflow: visible; }

.atlas-chat-panel {
  position: fixed; right: 24px; bottom: 164px; z-index: 1000;
  width: min(384px, calc(100vw - 32px)); height: min(560px, calc((var(--vh, 1vh) * 100) - 200px));
  background: #fff; border-radius: var(--radius-xl); box-shadow: var(--shadow-xl);
  border: 1px solid var(--border); display: flex; flex-direction: column; overflow: hidden;
  animation: atlaspop var(--dur-base) var(--ease-out);
}
@keyframes atlaspop { from { opacity: 0; transform: translateY(16px) scale(0.96); } to { opacity: 1; transform: none; } }
@media (min-width: 961px) { .atlas-chat-panel { bottom: 100px; } }
.atlas-chat-open .atlas-chat-panel {
  bottom: calc(88px + env(safe-area-inset-bottom));
  height: min(560px, calc((var(--vh, 1vh) * 100) - 132px));
}
@media (min-width: 961px) {
  .atlas-chat-open .atlas-chat-panel {
    bottom: 100px;
    height: min(560px, calc((var(--vh, 1vh) * 100) - 200px));
  }
}

/* ============================================================
   Mobile: chat em TELA CHEIA (padrão WhatsApp — 2026-07-03)
   Card flutuante + teclado iOS = painel "solto" no meio da tela,
   launcher órfão embaixo e página vazando atrás. Em vez disso:
   painel ocupa o viewport estável do modal (--vh vem de window.innerHeight),
   sem colapsar quando o teclado altera o visualViewport no iPhone.
   ============================================================ */
@media (max-width: 960px) {
  .atlas-chat-panel,
  .atlas-chat-open .atlas-chat-panel {
    top: var(--atlas-chat-vv-top, 0px); left: 0; right: 0; bottom: auto;
    width: 100%; max-width: none;
    height: var(--atlas-chat-vv-height, calc(var(--vh, 1vh) * 100));
    min-height: 0;
    z-index: 1000;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto auto;
    isolation: isolate;
    border-radius: 0; border: 0;
    animation: atlasslideup var(--dur-base) var(--ease-out);
  }
  /* Launcher some com o painel aberto (não flutua sob o teclado) */
  .atlas-chat-open .atlas-chat-launcher { display: none; }
  /* Respiro do notch + home indicator */
  .atlas-chat-open .atlas-chat__head { padding-top: calc(16px + env(safe-area-inset-top)); }
  .atlas-chat-open .atlas-chat__input-row { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
  /* Com o teclado aberto, usa o visualViewport real para manter o compositor acima do teclado. */
  .atlas-chat-keyboard-open .atlas-chat__input-row { padding-bottom: 8px; }
}
@keyframes atlasslideup { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .atlas-chat-panel { animation: none; } }

.atlas-chat__head {
  padding: 16px 18px; color: #fff; display: flex; align-items: center; gap: 12px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--racing-navy), var(--racing-deep));
}
.atlas-chat__head-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(80% 120% at 100% 0%, #000, transparent 70%);
          mask-image: radial-gradient(80% 120% at 100% 0%, #000, transparent 70%);
}
.atlas-chat__avatar {
  width: 38px; height: 38px; border-radius: 50%; background: var(--racing-navy); position: relative;
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.18) inset;
}
.atlas-chat__avatar--sm { width: 30px; height: 30px; }
.atlas-chat__avatar .mono { font-family: var(--font-display); font-weight: var(--fw-extra); font-size: 16px; color: #fff; }
.atlas-chat__avatar--sm .mono { font-size: 13px; }
.atlas-chat__title { position: relative; flex: 1; }
.atlas-chat__name { font-family: var(--font-display); font-weight: var(--fw-extra); font-size: 16px; }
.atlas-chat__status { display: flex; align-items: center; gap: 6px; font-size: 12px; color: rgba(255,255,255,0.7); margin-top: 2px; }
.atlas-chat__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green-500); box-shadow: 0 0 0 3px rgba(28,154,102,0.25); }
.atlas-chat__min {
  position: relative; background: rgba(255,255,255,0.1); border: 0; cursor: pointer;
  min-width: 44px; height: 44px; padding: 0 10px; border-radius: 10px; color: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
}
.atlas-chat__min i, .atlas-chat__min svg { width: 18px; height: 18px; }
.atlas-chat__min-label { font-family: var(--font-sans); font-size: 12px; font-weight: var(--fw-semibold); white-space: nowrap; }

.atlas-chat__body { min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 18px; background: var(--color-bg-subtle); display: flex; flex-direction: column; gap: 12px; }
.atlas-chat__msg { display: flex; gap: 9px; align-items: flex-end; }
.atlas-chat__msg.is-me { flex-direction: row-reverse; }
.atlas-chat__bubble {
  max-width: 78%; padding: 10px 14px; font-size: 14px; line-height: 1.55;
  border-radius: 16px 16px 16px 4px; background: #fff; color: var(--text-body);
  border: 1px solid var(--border); box-shadow: var(--shadow-xs);
  word-break: break-word; overflow-wrap: anywhere;
}
.atlas-chat__bubble strong { font-weight: 700; color: var(--text-strong, #161c27); }
.atlas-chat__msg.is-me .atlas-chat__bubble {
  border-radius: 16px 16px 4px 16px; background: var(--brand); color: #fff; border: 0; box-shadow: var(--shadow-brand);
}
/* Cards de veículos sob a bolha da IA — sutis, roláveis na horizontal, tocáveis. */
.atlas-chat__cards {
  display: flex; gap: 8px; overflow-x: auto; padding: 6px 2px 2px 39px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.atlas-chat__cards::-webkit-scrollbar { display: none; }
.atlas-chat__card {
  flex: 0 0 auto; width: 136px; border: 1px solid var(--border); border-radius: 12px;
  background: #fff; cursor: pointer; padding: 0 0 8px; overflow: hidden; text-align: left;
  box-shadow: var(--shadow-xs); transition: transform var(--dur-fast) var(--ease-out);
}
.atlas-chat__card:active { transform: scale(0.97); }
.atlas-chat__card img {
  width: 100%; height: 74px; object-fit: contain; background: #f6f8fb; display: block;
}
.atlas-chat__card-name {
  display: block; font-family: var(--font-sans); font-weight: var(--fw-semibold);
  font-size: 11.5px; line-height: 1.3; color: var(--text-strong); padding: 6px 9px 0;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.atlas-chat__card-rate {
  display: block; font-size: 11px; font-weight: 700; color: var(--brand); padding: 3px 9px 0;
}

.atlas-chat__dots { display: inline-flex; gap: 4px; padding: 2px 0; }
.atlas-chat__dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--gray-400); animation: atlasdot 1s infinite ease-in-out; }
.atlas-chat__dots span:nth-child(2) { animation-delay: 0.15s; }
.atlas-chat__dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes atlasdot { 0%,80%,100% { transform: translateY(0); opacity: 0.4; } 40% { transform: translateY(-4px); opacity: 1; } }

.atlas-chat__quicks { flex: 0 0 auto; display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 12px; background: var(--color-bg-subtle); }
.atlas-chat__quick {
  padding: 8px 13px; border-radius: var(--radius-pill); border: 1.5px solid var(--racing-100);
  background: var(--racing-50); color: var(--racing-navy); font-family: var(--font-sans);
  font-size: 13px; font-weight: var(--fw-semibold); cursor: pointer; min-height: 44px;
}
.atlas-chat__quick:disabled,.atlas-chat__send:disabled{cursor:not-allowed;opacity:.52;box-shadow:none}
.atlas-chat__input:disabled,.atlas-chat__input[aria-disabled="true"]{cursor:wait;opacity:.68;background:#eef1f6}
.atlas-chat__input-row { flex: 0 0 auto; padding: 12px; border-top: 1px solid var(--border); background: #fff; display: flex; align-items: center; gap: 8px; }
.atlas-chat__input {
  flex: 1; border: 0; outline: none; background: var(--color-bg-subtle); border-radius: var(--radius-pill);
  min-height: 44px; padding: 12px 16px; font-family: var(--font-sans); font-size: 16px;
  line-height: 20px; color: var(--text-strong); -webkit-appearance: none; appearance: none;
}
.atlas-chat__input::placeholder { color: var(--gray-400); }
.atlas-chat__input::-webkit-search-decoration,
.atlas-chat__input::-webkit-search-cancel-button,
.atlas-chat__input::-webkit-search-results-button,
.atlas-chat__input::-webkit-search-results-decoration { display: none; }
.atlas-chat__input:focus-visible { box-shadow: 0 0 0 2px var(--racing-300); }
.atlas-chat__send {
  width: 44px; height: 44px; flex: 0 0 auto; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-brand);
}
.atlas-chat__send i, .atlas-chat__send svg { width: 20px; height: 20px; }

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .atlas-chat-launcher { animation: none; }
  .atlas-sheet, .atlas-chat-panel, .atlas-chat-pill { animation: none; }
  .atlas-chat-pill__badge { animation: none; }
  .atlas-chat__dots span { animation: none; }
  .atlas-vcard, .atlas-btn { transition: none; }
  .atlas-speedlines, .atlas-hero__grid, .atlas-roadreel__track,
  .atlas-hero-enter .atlas-hero__badge, .atlas-hero-enter .atlas-hero__title,
  .atlas-hero-enter .atlas-hero__sub, .atlas-hero__booking { animation: none; }
  .atlas-roadreel__viewport { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-mask-image: none; mask-image: none; }
  .atlas-roadreel__group[aria-hidden="true"] { display: none; }
  .atlas-roadcard { scroll-snap-align: center; }
  .atlas-roadcard img { transition: none; }
  .atlas-roadcard:hover img { transform: none; }
  .atlas-roadcard, .atlas-roadcard:hover, .atlas-roadcard:active { transition: none; transform: none; }
  .atlas-motion-toggle { display: none; }
}

/* JS progressive enhancement: elements stay visible when JS is unavailable. */
.atlas-motion-enhanced [data-atlas-reveal] {
  opacity: 0; transform: translate3d(0, 24px, 0);
  transition: opacity 620ms var(--ease-out), transform 620ms var(--ease-out);
}
.atlas-motion-enhanced [data-atlas-reveal].is-visible { opacity: 1; transform: translate3d(0, 0, 0); }
.atlas-motion-enhanced [data-atlas-reveal][data-atlas-delay="1"] { transition-delay: 70ms; }
.atlas-motion-enhanced [data-atlas-reveal][data-atlas-delay="2"] { transition-delay: 140ms; }
.atlas-motion-paused .atlas-speedlines,
.atlas-motion-paused .atlas-hero__grid,
.atlas-motion-paused .atlas-roadreel__track,
.atlas-motion-paused .atlas-route,
.atlas-motion-paused .atlas-map-hq__radar,
.atlas-motion-paused .atlas-chat-launcher,
.atlas-motion-paused .atlas-chat-pill__badge,
.atlas-motion-paused .atlas-chat__dots span { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .atlas-motion-enhanced [data-atlas-reveal] { opacity: 1; transform: none; transition: none; }
}
