/* ==========================================================================
   Denúncia de motos barulhentas
   A página segue a identidade clara do site. Só três blocos ficam pretos,
   com grafite e degradê escuro da campanha: o formulário, o mapa e a
   chamada final "Barulho acontecendo agora?".
   ========================================================================== */

/* ---------- Blocos pretos da campanha ---------- */
.motos-form, .motos-mapa, .motos-chamada {
  --m-grafite-3: #2a2a2d;
  --m-linha: rgba(255, 255, 255, 0.1);
  --m-linha-forte: rgba(255, 255, 255, 0.16);
  --m-texto: #f5f5f7;
  --m-texto-2: #a1a1a6;
  --m-texto-3: #8e8e93;
  --m-azul: #0a84ff;
  --m-azul-claro: #64d2ff;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--raio-g);
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(255, 255, 255, 0.06), transparent 60%),
    linear-gradient(180deg, #1d1d1f 0%, #0a0a0b 100%);
  color: var(--m-texto);
  box-shadow: 0 30px 60px -36px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}
.motos-form a:not(.btn), .motos-mapa a:not(.btn) { color: var(--m-azul-claro); }
.motos-form :focus-visible, .motos-mapa :focus-visible, .motos-chamada :focus-visible { outline-color: var(--m-azul); }

/* ---------- Abertura (padrão das páginas internas) ---------- */
.motos-topo { padding-bottom: clamp(40px, 5vw, 64px); }
.motos-numeros {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  width: min(100%, 640px);
  margin: clamp(36px, 4vw, 48px) 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--linha-suave);
}
.motos-numeros > div { min-width: 0; }
.motos-numeros dd { margin: 0; font-size: clamp(28px, 3vw, 40px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.motos-numeros dt { margin-top: 6px; font-size: 14px; line-height: 1.43; letter-spacing: -0.016em; color: var(--tinta-2); }

/* ---------- Formulário e mapa ---------- */
.motos-grade { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 20px; align-items: start; }

.motos-form { position: sticky; top: calc(var(--topo-h) + 24px); padding: clamp(24px, 3vw, 32px); }
.motos-form h2 { font-size: 26px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; }
.motos-form .form__sub { margin: 4px 0 8px; font-size: 15px; color: var(--m-texto-2); }
.motos-form .campo label { color: var(--m-texto-2); }
.motos-form .campo input {
  background: rgba(0, 0, 0, 0.55);
  color: var(--m-texto);
  box-shadow: inset 0 0 0 1px var(--m-linha-forte);
}
.motos-form .campo input::placeholder { color: #6e6e73; }
.motos-form .campo input:focus-visible { box-shadow: inset 0 0 0 2px var(--m-azul), 0 0 0 4px rgba(10, 132, 255, 0.22); }
.motos-form .campo input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px #ff453a; }
.motos-form .campo select {
  background: #0b0b0c url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a1a1a6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 18px;
  color: var(--m-texto);
  box-shadow: inset 0 0 0 1px var(--m-linha-forte);
}
.motos-form .campo select:invalid { color: #6e6e73; }
/* a lista aberta (Windows e Android usam as cores do campo): fundo grafite e texto claro, sempre legíveis */
.motos-form .campo select option { color: #f5f5f7; background-color: #1c1c1e; }
.motos-form .campo select option:disabled { color: #8e8e93; }
.motos-form .campo select:focus-visible { box-shadow: inset 0 0 0 2px var(--m-azul), 0 0 0 4px rgba(10, 132, 255, 0.22); }
.motos-form .campo select[aria-invalid="true"] { box-shadow: inset 0 0 0 2px #ff453a; }
.motos-form .form__legal { color: var(--m-texto-3); }
.motos-form .form__retorno--ok { color: #30d158; }
.motos-form .form__retorno--erro { color: #ff6961; }

.motos-mapa { padding: 14px; }
.motos-mapa__topo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; padding: 8px 10px 14px; }
.motos-mapa__topo h2 { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.motos-vivo { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--m-texto-2); }
.motos-vivo i { width: 7px; height: 7px; border-radius: 50%; background: #30d158; animation: motos-pulso 2s ease-in-out infinite; }
@keyframes motos-pulso { 50% { box-shadow: 0 0 0 5px rgba(48, 209, 88, 0.18); } }
.motos-mapa__tela {
  height: clamp(380px, 62vh, 620px);
  border-radius: 20px;
  overflow: hidden;
  background: #0b0b0c;
  isolation: isolate;
}
.motos-mapa__rodape { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 10px 6px; }
.motos-legenda { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--m-texto-2); }
.motos-legenda i { width: 120px; height: 6px; border-radius: 6px; background: linear-gradient(90deg, #0b2a55, #0a5bd3 35%, #3aa0ff 65%, #cfe8ff 88%, #fff); }
.motos-mapa__btn {
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 980px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--m-texto);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s;
}
.motos-mapa__btn:hover { background: rgba(255, 255, 255, 0.14); }
.motos-mapa__erro { display: grid; place-items: center; height: 100%; padding: 24px; text-align: center; font-size: 15px; color: var(--m-texto-2); }
.motos-form .btn--whats { margin-top: 8px; }
.motos-prototipo { margin: 8px 10px 4px; padding: 10px 14px; border-radius: 12px; background: rgba(255, 214, 10, 0.08); font-size: 13px; line-height: 1.4; color: #ffd60a; }

/* Leaflet no escuro: o mapa claro do OpenStreetMap vira grafite (cinza invertido) */
.motos-mapa .motos-tiles { filter: grayscale(1) invert(1) brightness(0.78) contrast(1.05); }
.motos-mapa .leaflet-container { background: #0b0b0c; font: inherit; }
.motos-mapa .leaflet-control-zoom { border: 0; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5); }
.motos-mapa .leaflet-control-zoom a { width: 36px; height: 36px; line-height: 34px; background: rgba(29, 29, 31, 0.92); color: var(--m-texto); border-color: var(--m-linha); }
.motos-mapa .leaflet-control-zoom a:hover { background: var(--m-grafite-3); }
.motos-mapa .leaflet-control-attribution { background: rgba(0, 0, 0, 0.55); color: var(--m-texto-3); font-size: 10px; }
.motos-mapa .leaflet-control-attribution a { color: var(--m-texto-2); }
.motos-mapa .leaflet-tooltip.motos-dica {
  padding: 8px 12px;
  border: 1px solid var(--m-linha-forte);
  border-radius: 12px;
  background: rgba(22, 22, 23, 0.94);
  color: var(--m-texto);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
  font-size: 13px;
  line-height: 1.35;
}
.motos-mapa .leaflet-tooltip.motos-dica::before { border-top-color: rgba(22, 22, 23, 0.94); }
.motos-dica strong { display: block; font-weight: 600; }
.motos-dica span { color: #a1a1a6; }
.motos-novo { position: relative; }
.motos-novo::before, .motos-novo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #fff;
  animation: motos-onda 1.6s ease-out 3;
}
.motos-novo::after { animation-delay: 0.5s; }
@keyframes motos-onda { from { transform: scale(0.4); opacity: 1; } to { transform: scale(3.2); opacity: 0; } }

/* ---------- Ranking (cartões brancos no cinza do site) ---------- */
.motos-colunas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.motos-colunas > * { min-width: 0; }
.motos-cartao { padding: clamp(24px, 3vw, 32px); border-radius: var(--raio-g); background: var(--bg); }
.motos-cartao h3 { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--tinta-2); }
.motos-lista { display: grid; gap: 4px; margin-top: 14px; counter-reset: pos; }
.motos-lista li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) minmax(64px, 30%) 36px;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  counter-increment: pos;
}
.motos-lista li::before { content: counter(pos); font-size: 13px; font-weight: 600; color: var(--tinta-3); font-variant-numeric: tabular-nums; }
.motos-lista__nome { min-width: 0; font-size: 16px; line-height: 1.3; }
.motos-lista__nome small { display: block; font-size: 13px; color: var(--tinta-2); }
.motos-lista__barra { height: 6px; border-radius: 6px; background: var(--bg-3); overflow: hidden; }
.motos-lista__barra i { display: block; width: calc(var(--p, 0) * 100%); height: 100%; border-radius: inherit; background: linear-gradient(90deg, #5aa9f5, var(--azul)); transition: width 0.8s var(--facil); }
.motos-lista__n { text-align: right; font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.motos-lista__vazio { color: var(--tinta-2); }

/* ---------- Como funciona ---------- */
.motos-etapas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.motos-etapas > * { min-width: 0; }
.motos-etapas li { padding: 28px 28px 30px; border-radius: var(--raio-g); background: var(--bg-2); }
.motos-etapas b {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(0, 113, 227, 0.1);
  color: var(--azul);
  font-size: 17px;
  font-weight: 600;
}
.motos-etapas h3 { margin-top: 20px; font-size: 21px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.motos-etapas p { margin-top: 8px; font-size: 15px; line-height: 1.45; color: var(--tinta-2); }

/* ---------- Chamada final (preta) ---------- */
.motos-chamada {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: clamp(40px, 6vw, 72px) clamp(24px, 4vw, 48px);
  text-align: center;
  background:
    radial-gradient(70% 90% at 50% 0%, rgba(10, 132, 255, 0.2), transparent 62%),
    linear-gradient(180deg, #1d1d1f 0%, #000 100%);
}
.motos-chamada > div:first-child { display: grid; justify-items: center; gap: 12px; }
.motos-chamada h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.08; }
.motos-chamada p { max-width: 40ch; margin-inline: auto; color: var(--m-texto-2); }
.motos-chamada .acoes { justify-content: center; margin-top: 16px; }

/* ---------- Telas menores ---------- */
@media (max-width: 1000px) {
  .motos-grade { grid-template-columns: minmax(0, 1fr); }
  .motos-form { position: static; }
  .motos-etapas { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .motos-colunas { grid-template-columns: minmax(0, 1fr); }
  .motos-mapa { padding: 10px; border-radius: 24px; }
  .motos-mapa__tela { height: 440px; border-radius: 16px; }
}
@media (max-width: 520px) {
  .motos-numeros { gap: 12px; }
  .motos-numeros dt { font-size: 13px; }
  .motos-lista li { grid-template-columns: 20px minmax(0, 1fr) 56px 30px; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .motos-vivo i, .motos-novo::before, .motos-novo::after { animation: none; }
}
