/* Trecho — landing page.
   Direção visual no spec docs/superpowers/specs/2026-09-19-landing-page-design.md (§5).
   Violeta é a cor do produto e nenhum dos 15 concorrentes usa; nada de azul,
   laranja ou amarelo de sinalização. Claro e escuro seguem o sistema. */

:root {
  --bg: #f7f5f0;
  --bg-alt: #efece5;
  --surface: #ffffff;
  --ink: #17161d;
  --muted: #5c596a;
  --line: #e2ded4;
  --accent: #5646e0;
  --accent-ink: #ffffff;
  --accent-text: #5646e0;
  --accent-soft: rgba(86, 70, 224, 0.1);
  --gps: #1aa3d6;
  --road: #dcd8ce;
  --ok: #1f8a5b;
  --ok-soft: rgba(31, 138, 91, 0.12);
  --warn: #9a6400;
  --warn-soft: rgba(214, 150, 20, 0.16);
  --shot-frame: #0b0c12;
  --shadow: 0 1px 2px rgba(23, 22, 29, 0.06), 0 18px 40px -22px rgba(23, 22, 29, 0.28);

  --font-display: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 14px;
  --gutter: 20px;
  --maxw: 1160px;
  color-scheme: light;
}

/* Tema: sem escolha, vale o do aparelho. O botão de tema grava `data-theme`
   no <html>, e a escolha vence o aparelho nos dois sentidos. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0c12;
    --bg-alt: #10111a;
    --surface: #151622;
    --ink: #eeedf6;
    --muted: #a4a2b8;
    --line: #262838;
    --accent: #7c6fff;
    --accent-ink: #0b0c12;
    --accent-text: #9a90ff;
    --accent-soft: rgba(124, 111, 255, 0.14);
    --gps: #4fd1ff;
    --road: #2a2c3d;
    --ok: #5fd39d;
    --ok-soft: rgba(95, 211, 157, 0.14);
    --warn: #f3c354;
    --warn-soft: rgba(243, 195, 84, 0.14);
    --shot-frame: #05060a;
    --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 24px 50px -26px rgba(0, 0, 0, 0.8);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0b0c12;
  --bg-alt: #10111a;
  --surface: #151622;
  --ink: #eeedf6;
  --muted: #a4a2b8;
  --line: #262838;
  --accent: #7c6fff;
  --accent-ink: #0b0c12;
  --accent-text: #9a90ff;
  --accent-soft: rgba(124, 111, 255, 0.14);
  --gps: #4fd1ff;
  --road: #2a2c3d;
  --ok: #5fd39d;
  --ok-soft: rgba(95, 211, 157, 0.14);
  --warn: #f3c354;
  --warn-soft: rgba(243, 195, 84, 0.14);
  --shot-frame: #05060a;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 24px 50px -26px rgba(0, 0, 0, 0.8);
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* `hidden` vence o display de qualquer classe (ex.: .btn é inline-flex). */
[hidden] {
  display: none !important;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.narrow {
  max-width: 760px;
}

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

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 20;
  padding: 10px 14px;
  background: var(--surface);
  color: var(--ink);
  border-radius: 8px;
}

.skip:focus {
  top: 12px;
}

/* ── Botões ─────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 650;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.btn:hover {
  filter: brightness(1.08);
}

.btn:active {
  transform: translateY(1px);
}

.btn-small {
  min-height: 44px;
  padding: 0 18px;
  font-size: 0.95rem;
  border-radius: 10px;
}

/* Secundário: mesma forma, sem preenchimento. */
.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line);
}

.btn-ghost:hover {
  filter: none;
  box-shadow: inset 0 0 0 1.5px var(--accent);
}

/* ── Topo ───────────────────────────────────────────────────────────── */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  min-height: 44px;
}

.brand-mark {
  width: 34px;
  height: 14px;
  overflow: visible;
}

.brand-mark path {
  stroke: var(--accent);
  stroke-width: 3.2;
  stroke-linecap: round;
}

.brand-start {
  fill: var(--accent);
}

.brand-end {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  line-height: 1;
}

.nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.topbar-actions {
  display: flex;
  gap: 8px;
}

/* Botão de tema: sol no escuro (vai pro claro), lua no claro. */
.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.theme-toggle:hover {
  color: var(--ink);
  background: var(--accent-soft);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle[data-mode='dark'] .icon-moon,
.theme-toggle[data-mode='light'] .icon-sun {
  display: none;
}

.footer .theme-toggle {
  margin-left: auto;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 8px;
}

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

@media (max-width: 880px) {
  .nav {
    display: none;
  }

  .topbar-actions {
    margin-left: auto;
  }
}

/* ── Manchete ───────────────────────────────────────────────────────── */

.hero {
  padding: 72px 0 88px;
}

.eyebrow {
  color: var(--accent-text);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.5rem, 6.4vw, 5rem);
  font-weight: 800;
  max-width: 14ch;
}

.lede {
  margin-top: 22px;
  max-width: 44ch;
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin-top: 32px;
}

.hero-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Foto real da estrada; a linha da viagem sobe por cima da parte de baixo. */
.hero-photo {
  margin-top: 48px;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  border-radius: 20px;
  background: var(--road);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-photo + .trip {
  position: relative;
  margin: -140px 28px 0;
}

/* ── Linha da viagem ────────────────────────────────────────────────── */

.trip {
  margin: 56px 0 0;
  padding: 26px 28px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.trip-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
}

.trip-route {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  letter-spacing: -0.015em;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
}

.chip-transit {
  background: var(--warn-soft);
  color: var(--warn);
}

.chip-done {
  background: var(--ok-soft);
  color: var(--ok);
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gps);
  box-shadow: 0 0 0 0 var(--gps);
  animation: pulse 1.6s ease-out infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 7px transparent;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

/* Estado final é o padrão (sem JS ou com movimento reduzido). O main.js põe
   .is-waiting até a linha aparecer na tela e depois .is-playing / .is-done. */
.st-transit {
  display: none;
}

.trip.is-waiting .st-transit,
.trip.is-playing:not(.is-done) .st-transit {
  display: inline-flex;
}

.trip.is-waiting .st-done,
.trip.is-playing:not(.is-done) .st-done {
  display: none;
}

.trip-track {
  position: relative;
  height: 232px;
  margin: 8px 6px 0;
}

.trip-road {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 8px;
  margin-top: -4px;
  border-radius: 999px;
  background:
    repeating-linear-gradient(90deg, transparent 0 14px, color-mix(in srgb, var(--muted) 35%, transparent) 14px 26px)
      center / 100% 2px no-repeat,
    var(--road);
}

.trip-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.trip-truck {
  position: absolute;
  right: -18px;
  top: 50%;
  width: 36px;
  height: 36px;
  margin-top: -18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 0 0 4px var(--surface);
}

.trip-truck svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trip-events {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ev {
  --w: 170px;
  position: absolute;
  left: var(--at);
  width: var(--w);
  margin-left: calc(var(--w) / -2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  line-height: 1.3;
}

.ev b {
  font-weight: 650;
  font-size: 0.98rem;
}

.ev span {
  color: var(--muted);
  font-size: 0.875rem;
}

/* Um evento acima da estrada, o seguinte abaixo. */
.ev:nth-child(odd) {
  bottom: calc(50% + 26px);
}

.ev:nth-child(even) {
  top: calc(50% + 26px);
}

.ev::after {
  content: '';
  width: 2px;
  height: 18px;
  margin-top: 8px;
  background: var(--line);
}

.ev:nth-child(even)::after {
  order: -1;
  margin-top: 0;
  margin-bottom: 8px;
}

.ev::before {
  content: '';
  position: absolute;
  left: 50%;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--accent);
}

.ev:nth-child(odd)::before {
  bottom: -33px;
}

.ev:nth-child(even)::before {
  top: -33px;
}

.trip-sum {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 6px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  transition: opacity 0.6s ease;
}

.trip-sum dt {
  color: var(--muted);
  font-size: 0.85rem;
}

.trip-sum dd {
  margin: 2px 0 0;
  font-weight: 650;
  font-size: 1.1rem;
  font-variant-numeric: tabular-nums;
}

.trip-sum .is-key dd {
  color: var(--accent-text);
}

.trip-caption {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.85rem;
}

/* Animação: a estrada enche em 4 s e cada evento aparece quando o caminhão
   passa pelo ponto dele (--d de cada evento, no index.html). */
.trip.is-waiting .trip-fill {
  width: 0;
}

.trip.is-waiting .ev,
.trip.is-waiting .trip-sum,
.trip.is-playing:not(.is-done) .trip-sum {
  opacity: 0;
}

.trip.is-playing .trip-fill {
  animation: fill-x 4s cubic-bezier(0.35, 0.1, 0.35, 1) both;
}

.trip.is-playing .ev {
  animation: ev-in 0.45s ease-out both;
  animation-delay: var(--d);
}

@keyframes fill-x {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes ev-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Celular: a estrada fica em pé e os eventos viram lista. */
@media (max-width: 720px) {
  .hero {
    padding: 44px 0 64px;
  }

  .trip {
    margin-top: 40px;
    padding: 20px 18px 18px;
  }

  .trip-track {
    height: auto;
    margin: 20px 0 26px;
    padding-left: 44px;
  }

  .trip-road {
    left: 14px;
    right: auto;
    top: 6px;
    bottom: 6px;
    width: 8px;
    height: auto;
    margin: 0;
    background:
      repeating-linear-gradient(180deg, transparent 0 14px, color-mix(in srgb, var(--muted) 35%, transparent) 14px 26px)
        center / 2px 100% no-repeat,
      var(--road);
  }

  .trip-fill {
    right: 0;
    bottom: auto;
    width: auto;
    height: 100%;
  }

  .trip-truck {
    right: 50%;
    top: auto;
    bottom: -18px;
    margin: 0 -18px 0 0;
  }

  .ev,
  .ev:nth-child(odd),
  .ev:nth-child(even) {
    position: relative;
    left: auto;
    top: auto;
    bottom: auto;
    width: auto;
    margin: 0;
    padding: 10px 0;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .ev::after {
    display: none;
  }

  .ev::before,
  .ev:nth-child(odd)::before,
  .ev:nth-child(even)::before {
    left: -33px;
    top: 50%;
    bottom: auto;
    margin: -7px 0 0;
  }

  .trip.is-waiting .trip-fill {
    width: auto;
    height: 0;
  }

  .trip.is-playing .trip-fill {
    animation-name: fill-y;
  }

  .trip-sum {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 12px;
  }
}

@keyframes fill-y {
  from {
    height: 0;
  }
  to {
    height: 100%;
  }
}

/* ── Seções ─────────────────────────────────────────────────────────── */

.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section h2 {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  font-weight: 800;
}

.section-lede {
  margin-top: 14px;
  max-width: 52ch;
  color: var(--muted);
  font-size: 1.1rem;
}

.steps {
  list-style: none;
  margin: 44px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.steps h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-top: 14px;
}

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

/* Marco quilométrico: o número do passo. */
.km {
  display: inline-block;
  padding: 3px 10px 4px;
  border: 2px solid var(--accent);
  border-radius: 8px 8px 3px 3px;
  color: var(--accent-text);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.shot {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--shot-frame);
  border: 1px solid color-mix(in srgb, var(--line) 60%, #000 10%);
  box-shadow: var(--shadow);
}

.shot img {
  width: 100%;
}

.shot-wide {
  margin-top: 48px;
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 40px 56px;
  align-items: center;
  margin-top: 72px;
}

.feature-flip {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}

.feature-flip .feature-text {
  order: 2;
}

.feature-wide {
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
}

.feature-stack {
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

.feature-stack .feature-text {
  max-width: 62ch;
}

.feature h3 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 750;
}

.feature-text p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 1.05rem;
}

.acerto-text {
  max-width: 62ch;
}

.acerto-lede {
  margin-top: 16px;
  font-size: 1.15rem;
}

.acerto-text .muted {
  margin-top: 12px;
}

/* Colunas na proporção de cada print, pra os dois ficarem da mesma altura. */
.acerto-shots {
  display: grid;
  grid-template-columns: minmax(0, 1.884fr) minmax(0, 3.013fr);
  gap: 20px;
  align-items: start;
  margin-top: 40px;
}

@media (max-width: 880px) {
  .section {
    padding: 72px 0;
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .feature,
  .feature-flip,
  .feature-wide {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    margin-top: 56px;
  }

  .feature-flip .feature-text {
    order: 0;
  }

  .acerto-shots {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 28px;
  }
}

/* ── Na estrada: fotos reais ────────────────────────────────────────── */
/* Sem pôr do sol nem rastro de luz à noite (clichê dos concorrentes), sem
   nome de transportadora e com placa desfocada. Fotos do Pexels, crédito no
   rodapé. */

.road {
  padding: 24px 0 96px;
}

.road h2 {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  font-weight: 800;
}

.road-grid {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.road-grid figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  background: var(--road);
}

.road-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.road-grid figcaption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(11, 12, 18, 0.72);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
}

@media (max-width: 880px) {
  .road-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .hero-photo + .trip {
    margin: -64px 12px 0;
  }

  .hero-photo {
    aspect-ratio: 4 / 3;
  }
}

/* ── Quem usa o quê ─────────────────────────────────────────────────── */

.uses {
  list-style: none;
  margin: 44px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.uses li {
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.uses-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-text);
}

.uses-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.uses h3 {
  margin-top: 16px;
  font-size: 1.3rem;
  font-weight: 700;
}

.uses p {
  margin-top: 10px;
  color: var(--muted);
}

@media (max-width: 880px) {
  .uses {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
}

/* ── Planos ─────────────────────────────────────────────────────────── */
/* Um valor fixo + um valor por caminhão; a calculadora faz a conta da frota
   de quem está lendo. Os números vêm do SITE.pricing (main.js). */

.price {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  margin-top: 40px;
  align-items: stretch;
}

.price-rule,
.calc {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.price-base {
  color: var(--muted);
  font-size: 1.05rem;
}

.price-big {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 5vw, 3.4rem);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}

.price-per {
  margin-top: 10px;
  font-size: 1.15rem;
}

.price-per strong {
  color: var(--accent-text);
}

.price-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
}

.price-list li {
  position: relative;
  padding-left: 28px;
}

.price-list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 12px;
  height: 7px;
  border-left: 2.5px solid var(--accent);
  border-bottom: 2.5px solid var(--accent);
  transform: rotate(-45deg);
}

.calc h3 {
  font-size: 1.3rem;
  font-weight: 700;
}

.calc-label {
  display: block;
  margin: 20px 0 8px;
  padding: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.stepper {
  display: inline-flex;
  align-items: stretch;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.stepper button {
  width: 48px;
  min-height: 48px;
  border: 0;
  background: transparent;
  color: var(--accent-text);
  font-size: 1.4rem;
  cursor: pointer;
}

.stepper button:hover {
  background: var(--accent-soft);
}

.stepper input {
  width: 72px;
  border: 0;
  border-left: 1.5px solid var(--line);
  border-right: 1.5px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 650;
  font-size: 1.15rem;
  text-align: center;
  -moz-appearance: textfield;
}

.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.billing {
  margin: 18px 0 0;
  padding: 0;
  border: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.billing .calc-label {
  margin-top: 0;
  width: 100%;
}

.billing label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  cursor: pointer;
}

.billing input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.tag {
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--ok-soft);
  color: var(--ok);
  font-size: 0.8rem;
  font-weight: 650;
}

.calc-total {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.calc-total [data-total] {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 4.4vw, 2.8rem);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.calc-unit {
  color: var(--muted);
}

.calc-note {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
}

.calc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

/* Sem telefone, WhatsApp e e-mail configurados, não sobra botão: some a área. */
.calc-actions:not(:has(> :not([hidden]))) {
  display: none;
}

/* Planos por faixa de veículos (modelo do mercado: competitor-profiles/_pricing.md).
   O cartão da faixa de quem está lendo fica destacado. */
.plans-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px 40px;
  margin-top: 28px;
}

.plans-controls .calc-label {
  margin-top: 0;
}

.plans-controls .billing {
  margin: 0;
}

.plans {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.plan {
  position: relative;
  padding: 24px 22px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 18px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.plan h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

.plan-price {
  margin-top: 14px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.plan-price small {
  display: block;
  margin-top: 4px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.9rem;
  letter-spacing: 0;
  color: var(--muted);
}

.plan-note {
  min-height: 1.3em;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.85rem;
}

/* O que já vem no valor do plano. */
.plan-included {
  list-style: none;
  margin: 14px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.95rem;
}

.plan.is-match {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow);
}

.plan.is-match::before {
  content: 'Para a sua frota';
  position: absolute;
  top: -12px;
  left: 18px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.78rem;
  font-weight: 650;
}

.plans-match {
  margin-top: 18px;
  font-weight: 600;
}

.plans-included {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 32px;
}

@media (max-width: 980px) {
  .plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .plans {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  /* Empilhados, os cartões não precisam alinhar a linha da nota. */
  .plan-note:empty {
    display: none;
  }

  .plans-included {
    grid-template-columns: minmax(0, 1fr);
  }
}

.plans-extra {
  margin-top: 18px;
  max-width: 70ch;
  color: var(--muted);
}

.plans-extra a {
  font-weight: 600;
}

/* Letra pequena, de propósito: condição que a Alana pediu pra ficar discreta. */
.price-fine {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.8rem;
}

@media (max-width: 880px) {
  .price {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .price-rule,
  .calc {
    padding: 22px 18px;
  }

  .calc-actions .btn,
  .hero-actions .btn {
    width: 100%;
  }
}

/* ── Perguntas ──────────────────────────────────────────────────────── */

.faq {
  margin-top: 32px;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 14px 0;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 1.1rem;
}

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

.faq summary::after {
  content: '+';
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1;
  transition: transform 0.2s ease;
}

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

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

/* ── Lista de espera ────────────────────────────────────────────────── */
/* Ninguém tem conta ainda: quem se interessa deixa contato e a gente chama.
   O motivo da recusa vem da API, em português. */

.waitlist {
  max-width: 720px;
  margin: 32px auto 0;
  text-align: left;
}

.waitlist-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 120px;
  gap: 14px;
}

.waitlist label {
  display: grid;
  gap: 6px;
}

.waitlist-wide {
  grid-column: 1 / -1;
}

.waitlist input::placeholder {
  color: var(--muted);
  opacity: 0.7;
}

.waitlist label span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.waitlist input {
  min-height: 52px;
  padding: 0 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}

.waitlist input:focus-visible {
  border-color: var(--accent);
}

.waitlist .btn {
  margin-top: 18px;
}

.waitlist-note {
  margin-top: 14px;
  min-height: 1.4em;
  font-size: 0.95rem;
}

.waitlist-note.is-good {
  color: var(--ok);
}

.waitlist-note.is-bad {
  color: var(--warn);
}

@media (max-width: 720px) {
  .waitlist-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .waitlist .btn {
    width: 100%;
  }
}

/* ── Chamada final e rodapé ─────────────────────────────────────────── */

.final {
  padding: 120px 0;
  text-align: center;
  background:
    linear-gradient(color-mix(in srgb, var(--bg) 58%, transparent), color-mix(in srgb, var(--bg) 78%, transparent)),
    url('img/faixa.jpg') center / cover no-repeat;
}

.final h2 {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 800;
}

.final p {
  margin: 16px auto 0;
  max-width: 44ch;
  color: var(--ink);
  font-size: 1.1rem;
}

.final .btn {
  margin-top: 32px;
}

.final .final-whatsapp {
  margin-top: 28px;
}

.final .contact {
  margin-top: 20px;
  font-size: 1rem;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 36px;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 28px;
}

.footer-inner .credits {
  flex-basis: 100%;
  font-size: 0.8rem;
}

.brand-small .brand-name {
  font-size: 1.2rem;
}

@media (max-width: 560px) {
  :root {
    --gutter: 16px;
  }

  /* Marca + "Entrar" + "Chamar agora" cabem numa linha só em 375 px. */
  .topbar-inner {
    gap: 12px;
  }

  .topbar .btn-small {
    padding: 0 12px;
    font-size: 0.875rem;
  }

  .topbar .brand-name {
    font-size: 1.3rem;
  }

  .topbar .theme-toggle {
    display: none;
  }

  body {
    font-size: 16px;
  }

  .hero-actions .btn,
  .final .btn {
    width: 100%;
  }

  .footer-inner .credits {
    font-size: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .pulse {
    animation: none;
  }

  .trip-fill,
  .ev,
  .trip-sum {
    animation: none !important;
    transition: none !important;
  }
}
