/* Landing ClickLivre + 3ª Corrida Rara BH
   Identidade tirada das artes da parceria: verde, branco, faixas de texto
   corrido, linhas de contorno e as barrinhas dos percursos. */

@font-face {
  font-family: "Outfit";
  src: url("../assets/fontes/outfit-latin.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Cores amostradas das artes */
  --verde-noite: #06382f;
  --verde-fundo: #0c594c;
  --verde: #0e6b58;
  --verde-vivo: #1a8a70;
  --menta: #bfe3d4;
  --menta-clara: #eaf4ef;
  --branco: #fff;
  --tinta: #0a3d33;
  --apoio: #557068;
  --erro: #ffd0c4;
  --erro-borda: #ff9c8a;

  /* Escala de texto fluida */
  --passo--1: clamp(0.86rem, 0.83rem + 0.15vw, 0.95rem);
  --passo-0: clamp(1.06rem, 1rem + 0.28vw, 1.2rem);
  --passo-1: clamp(1.32rem, 1.16rem + 0.8vw, 1.8rem);
  --passo-2: clamp(1.72rem, 1.34rem + 1.9vw, 2.8rem);
  --passo-3: clamp(2.3rem, 1.5rem + 3.9vw, 4.5rem);

  --calha: clamp(1.25rem, 4vw, 3rem);
  --secao: clamp(3.75rem, 8vw, 7rem);
  --saida: cubic-bezier(0.16, 1, 0.3, 1);
  --foco: var(--branco);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 1.5rem;
}

body {
  margin: 0;
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: var(--passo-0);
  font-weight: 400;
  line-height: 1.55;
  color: var(--branco);
  background: var(--verde-noite);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1,
h2,
h3,
p,
ul,
figure {
  margin: 0;
}

ul[role="list"] {
  padding: 0;
  list-style: none;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

strong,
b {
  font-weight: 800;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--foco);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: min(100% - 2 * var(--calha), 73.75rem);
  margin-inline: auto;
}

.so-leitor {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.pular {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  background: var(--branco);
  color: var(--verde-fundo);
  font-weight: 700;
  text-decoration: none;
}

.pular:focus {
  top: 1rem;
}

/* ---------- Botões ---------- */

.botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.5rem;
  padding: 0.85rem 1.7rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 1.06rem;
  font-weight: 700;
  line-height: 1.15;
  text-wrap: balance;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s var(--saida), background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.3s var(--saida);
}

.botao:focus-visible {
  border-radius: 999px;
}

.botao--claro {
  background: var(--branco);
  color: var(--verde-fundo);
  box-shadow: 0 14px 30px -18px rgb(3 30 25 / 0.9);
}

.botao--claro:hover {
  background: var(--menta);
  transform: translateY(-2px);
}

.botao--contorno {
  border-color: rgb(255 255 255 / 0.7);
  color: var(--branco);
}

.botao--contorno:hover {
  border-color: var(--branco);
  background: rgb(255 255 255 / 0.12);
}

/* Botão cheio para fundo branco. */
.botao--verde {
  background: var(--verde-fundo);
  color: var(--branco);
  box-shadow: 0 14px 30px -18px rgb(6 56 47 / 0.9);
}

.botao--verde:hover {
  background: var(--verde-noite);
  transform: translateY(-2px);
}

.botao:active {
  transform: translateY(0) scale(0.98);
}

.botao--largo {
  width: 100%;
}

.botao__seta {
  flex: none;
  width: 1.15em;
  height: 1.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s var(--saida);
}

.botao:hover .botao__seta {
  transform: translate(2px, -2px);
}

.botao[disabled] {
  cursor: progress;
  opacity: 0.85;
  transform: none;
}

.botao--enviando::before {
  content: "";
  width: 1.1em;
  height: 1.1em;
  border: 2.5px solid rgb(12 89 76 / 0.3);
  border-top-color: var(--verde-fundo);
  border-radius: 50%;
  animation: girar 0.8s linear infinite;
}

@keyframes girar {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- Faixas de texto corrido ---------- */

.faixa {
  overflow: hidden;
  border-bottom: 1px solid rgb(255 255 255 / 0.22);
  color: rgb(255 255 255 / 0.88);
}

.faixa--rodape {
  border-top: 1px solid rgb(255 255 255 / 0.22);
  border-bottom: 0;
}

.faixa__trilho {
  display: flex;
  width: max-content;
}

.faixa__trilho span {
  padding: 0.6rem 0.9rem;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  white-space: nowrap;
}

@keyframes faixa {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Linhas de contorno ---------- */

.contorno {
  position: absolute;
  z-index: -1;
  width: clamp(15rem, 36vw, 31rem);
  fill: none;
  stroke: var(--branco);
  stroke-width: 1.6;
  pointer-events: none;
}

.contorno path {
  vector-effect: non-scaling-stroke;
}

/* ---------- Topo ---------- */

.topo,
.final {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--verde-fundo);
}

.topo::before,
.final::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background: url("../assets/img/usina-clicklivre-900.webp") 58% 45% / cover no-repeat;
  mix-blend-mode: luminosity;
  opacity: 0.5;
}

.topo::after,
.final::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(100deg, rgb(12 89 76 / 0.94) 0%, rgb(12 89 76 / 0.78) 48%, rgb(26 138 112 / 0.5) 100%),
    linear-gradient(to top, rgb(6 56 47 / 0.75), rgb(6 56 47 / 0) 45%);
}

@media (min-width: 56rem) {
  .topo::before,
  .final::before {
    background-image: url("../assets/img/usina-clicklivre.webp");
  }
}

.contorno--topo {
  top: 2.2rem;
  right: -7rem;
  opacity: 0.85;
}

/* No celular o logo ocupa a largura toda: as linhas recuam para não riscá-lo. */
@media (max-width: 40rem) {
  .contorno--topo {
    top: -4.5rem;
    right: -9.5rem;
    opacity: 0.45;
  }
}

/* Com os créditos à vista no alto, as linhas descem para não passar por cima deles. */
@media (min-width: 48rem) {
  .contorno--topo {
    top: 8.5rem;
  }
}

.topo__barra {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: clamp(1.1rem, 2.5vw, 1.8rem);
}

.marca {
  display: inline-flex;
  align-items: center;
  gap: clamp(0.7rem, 2vw, 1.2rem);
  text-decoration: none;
  border-radius: 8px;
}

.marca img {
  width: auto;
  height: clamp(3.1rem, 6vw, 4.4rem);
}

.marca__apresenta {
  font-size: var(--passo-1);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.topo__creditos {
  display: none;
  gap: 1.6rem;
  font-size: 0.8rem;
  line-height: 1.35;
  color: rgb(255 255 255 / 0.9);
}

.topo__creditos span {
  display: grid;
}

.topo__creditos strong {
  font-size: 0.95rem;
  font-weight: 700;
}

@media (min-width: 48rem) {
  .topo__creditos {
    display: flex;
  }
}

.topo__grade {
  display: grid;
  gap: 2.5rem;
  padding-top: clamp(1rem, 3vw, 2.5rem);
}

.topo__texto {
  padding-bottom: 0.5rem;
}

.topo__logo {
  width: min(100%, 23rem);
  margin-left: -0.4rem;
}

h1 {
  max-width: 9em;
  margin-top: clamp(1.4rem, 3vw, 2.2rem);
  font-size: var(--passo-3);
  font-weight: 300;
  line-height: 1.03;
  letter-spacing: -0.012em;
  text-transform: uppercase;
  text-wrap: balance;
}

.quando {
  display: grid;
  gap: 0.35rem;
  margin-top: clamp(1.6rem, 3.4vw, 2.4rem);
}

.quando__data {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.quando__data time {
  font-size: var(--passo-2);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.01em;
}

.quando__dia {
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.15;
}

.quando__local {
  font-size: var(--passo--1);
  font-weight: 300;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.acoes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: clamp(1.7rem, 3.6vw, 2.5rem);
}

.topo__camiseta {
  align-self: end;
  justify-self: center;
  width: min(78%, 21rem);
}

.topo__camiseta img {
  filter: drop-shadow(0 26px 34px rgb(3 30 25 / 0.55));
}

@media (min-width: 60rem) {
  .topo__grade {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    align-items: end;
    gap: clamp(2rem, 5vw, 5rem);
  }

  .topo__texto {
    padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
  }

  /* Em tela larga o título cabe em três linhas e os botões ficam na primeira dobra. */
  h1 {
    max-width: 11.5em;
    font-size: clamp(2.6rem, 1.2rem + 3.1vw, 4rem);
  }

  .topo__logo {
    width: min(100%, 20rem);
  }

  .topo__camiseta {
    justify-self: end;
    width: min(100%, 25rem);
    margin-bottom: clamp(1.5rem, 3vw, 3rem);
  }
}

/* ---------- Economia: o convite da ClickLivre e o formulário ---------- */

.economia__grade {
  display: grid;
  gap: clamp(1.7rem, 4.5vw, 2.6rem);
}

.economia__logo {
  width: auto;
  height: clamp(3.4rem, 7vw, 4.6rem);
}

.economia__texto h2 {
  margin-top: clamp(1rem, 2.6vw, 1.7rem);
}

.economia__texto p {
  max-width: 50ch;
  margin-top: 1.1em;
  font-size: 1.08rem;
  text-wrap: pretty;
}

.economia__texto p strong {
  font-weight: 700;
}

@media (max-width: 40rem) {
  /* No celular quem chega pelo QR code precisa ver o formulário logo:
     menos respiro entre o topo e ele, sem diminuir a camiseta. */
  .topo__grade {
    gap: 1.5rem;
  }

  .economia__grade {
    gap: 1.3rem;
  }

  .economia__logo {
    height: 2.9rem;
  }

  .economia__texto h2 {
    margin-top: 0.8rem;
  }

  .economia__texto p {
    margin-top: 0.9em;
  }
}

@media (min-width: 60rem) {
  /* Texto à esquerda, formulário à direita. */
  .economia__grade {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: center;
    column-gap: clamp(2.4rem, 6vw, 5rem);
  }
}

/* ---------- Faixa clara ---------- */

.chamada {
  background: var(--menta-clara);
  color: var(--verde);
  padding-block: clamp(2.2rem, 5vw, 3.6rem);
}

.chamada__texto {
  max-width: 21em;
  font-size: var(--passo-1);
  font-weight: 300;
  line-height: 1.22;
  text-align: center;
  text-wrap: balance;
}

/* ---------- O movimento ---------- */

.movimento {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: var(--secao);
  background: var(--verde-fundo);
}

.contorno--movimento {
  left: -9rem;
  bottom: -6rem;
  opacity: 0.35;
  transform: rotate(150deg);
}

.movimento__grade {
  display: grid;
  gap: clamp(1.8rem, 5vw, 4.5rem);
}

.movimento__frase {
  font-size: var(--passo-2);
  font-weight: 300;
  line-height: 1.16;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

.movimento__frase strong {
  font-weight: 700;
}

.movimento__texto {
  display: grid;
  gap: 1.1em;
  max-width: 62ch;
  line-height: 1.65;
  color: rgb(255 255 255 / 0.94);
  text-wrap: pretty;
}

.movimento__texto strong {
  font-weight: 700;
}

@media (min-width: 60rem) {
  .movimento__grade {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: start;
  }
}

.percurso-trilha {
  margin-top: clamp(2rem, 5vw, 4rem);
}

.percurso-linha {
  width: 100%;
  height: clamp(4.5rem, 12vw, 10rem);
  fill: none;
  stroke: var(--branco);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.percurso-linha path {
  vector-effect: non-scaling-stroke;
}

/* ---------- No seu ritmo ---------- */

.ritmo,
.click,
.economia {
  --foco: var(--verde-fundo);
  background: var(--branco);
  color: var(--verde);
  padding-block: var(--secao);
}

@media (max-width: 40rem) {
  /* Parte do mesmo ajuste de celular: o formulário sobe. */
  .economia {
    padding-top: 2.25rem;
  }
}

.ritmo__grade {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.ritmo__texto h2 {
  font-size: clamp(2.2rem, 1.5rem + 3.4vw, 4rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}

.ritmo__texto h2 span {
  display: block;
  margin-bottom: 0.35em;
  font-size: 0.42em;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.1;
  text-transform: none;
}

.ritmo__texto p {
  max-width: 54ch;
  margin-top: 1.3rem;
  text-wrap: pretty;
}

.percursos {
  display: grid;
  grid-template-columns: max-content max-content 1fr max-content;
  column-gap: clamp(0.55rem, 2vw, 1.1rem);
  row-gap: clamp(0.35rem, 1.2vw, 0.7rem);
}

.percurso {
  display: grid;
  grid-template-columns: subgrid;
  grid-column: 1 / -1;
  align-items: center;
}

.percurso__tipo {
  font-size: clamp(0.62rem, 0.5rem + 0.5vw, 0.84rem);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-align: right;
  text-transform: uppercase;
}

.percurso__km {
  font-size: clamp(1.45rem, 0.8rem + 3.2vw, 3.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  white-space: nowrap;
}

.percurso__pulso {
  width: 100%;
  height: clamp(1.1rem, 2.6vw, 1.8rem);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.percurso__pulso path {
  vector-effect: non-scaling-stroke;
}

.percurso__tracos {
  grid-column: 3 / -1;
  height: clamp(1rem, 2.4vw, 1.7rem);
  background: repeating-linear-gradient(90deg, currentColor 0 2px, transparent 2px 7px);
  opacity: 0.5;
  transform-origin: left center;
}

.gratuidade {
  margin-top: clamp(1.6rem, 4vw, 2.4rem);
  padding: 1.15rem 1.3rem;
  border-radius: 1rem;
  background: var(--menta-clara);
  font-size: 1rem;
  line-height: 1.55;
  text-wrap: pretty;
}

.gratuidade strong {
  font-weight: 700;
}

.gratuidade a {
  font-weight: 700;
  text-underline-offset: 0.2em;
}

@media (min-width: 60rem) {
  .ritmo__grade {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
  }
}

/* ---------- A edição verde ---------- */

.verde {
  background: var(--verde);
  padding-block: var(--secao);
  overflow: hidden;
}

.verde__grade {
  display: grid;
  gap: clamp(2.2rem, 6vw, 5rem);
  align-items: center;
}

.verde__placa img {
  width: 100%;
  border-radius: 1.2rem;
  box-shadow: 0 40px 60px -34px rgb(3 30 25 / 0.75);
  transform: rotate(-2.5deg);
}

.verde__texto h2,
.click h2,
.economia h2 {
  font-size: var(--passo-2);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.012em;
  text-transform: uppercase;
  text-wrap: balance;
}

.verde__texto p {
  max-width: 54ch;
  margin-top: 1.1em;
  line-height: 1.65;
  color: rgb(255 255 255 / 0.94);
  text-wrap: pretty;
}

@media (min-width: 60rem) {
  .verde__grade {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }
}

/* ---------- A ClickLivre ---------- */

.click__grade {
  display: grid;
  gap: clamp(1.5rem, 5vw, 4.5rem);
}

.click__texto p {
  max-width: 60ch;
  text-wrap: pretty;
}

.click__texto p + p {
  margin-top: 1.1em;
}

.click__texto p strong {
  font-weight: 700;
}

.click__texto .botao {
  margin-top: 1.9rem;
}

@media (min-width: 60rem) {
  .click__grade {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: start;
  }
}

/* ---------- Formulário ---------- */

.cadastro {
  --foco: var(--branco);
  padding: clamp(1.5rem, 4vw, 2.7rem);
  border-radius: 1.7rem;
  background: var(--verde-fundo);
  color: var(--branco);
  box-shadow: 0 46px 70px -46px rgb(6 56 47 / 0.8);
  scroll-margin-top: 1.5rem;
}

.cadastro__titulo {
  font-size: var(--passo-1);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.cadastro__apoio {
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
  color: rgb(255 255 255 / 0.92);
}

.campo {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1.05rem;
}

.campo label {
  font-size: 0.98rem;
  font-weight: 600;
}

.campo input {
  width: 100%;
  min-height: 3.5rem;
  padding: 0.8rem 1rem;
  border: 2px solid transparent;
  border-radius: 0.85rem;
  background: var(--branco);
  color: var(--tinta);
  font: inherit;
  font-size: 1.08rem;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.campo input::placeholder {
  color: var(--apoio);
  opacity: 1;
}

.campo input:focus-visible {
  outline: 3px solid var(--menta);
  outline-offset: 2px;
  border-radius: 0.85rem;
}

.campo--erro input {
  border-color: var(--erro-borda);
  background: #fff6f3;
  box-shadow: 0 0 0 3px rgb(255 156 138 / 0.3);
}

.campo__erro {
  display: flex;
  align-items: flex-start;
  gap: 0.5em;
  font-size: 0.94rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--erro);
}

.campo__erro:empty {
  display: none;
}

.campo__erro::before {
  content: "!";
  flex: none;
  display: grid;
  place-items: center;
  width: 1.25em;
  height: 1.25em;
  margin-top: 0.05em;
  border-radius: 50%;
  background: var(--erro);
  color: var(--verde-fundo);
  font-size: 0.82em;
  font-weight: 800;
}

.formulario .botao {
  margin-top: 0.5rem;
}

.formulario__aviso {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgb(255 255 255 / 0.4);
  border-radius: 0.85rem;
  background: rgb(255 255 255 / 0.1);
  font-size: 0.96rem;
  line-height: 1.45;
}

.formulario__aviso--falha {
  border-color: var(--erro-borda);
  color: var(--erro);
}

.formulario__privacidade {
  margin-top: 1.1rem;
  font-size: 0.86rem;
  color: rgb(255 255 255 / 0.9);
}

.formulario__privacidade a {
  font-weight: 600;
  text-underline-offset: 0.2em;
}

.sucesso:focus {
  outline: none;
}

.sucesso__icone {
  width: 3.4rem;
  height: 3.4rem;
  margin-bottom: 1.1rem;
  fill: none;
  stroke: var(--branco);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sucesso__icone circle {
  fill: rgb(255 255 255 / 0.12);
  stroke: none;
}

[hidden] {
  display: none !important;
}

/* ---------- Chamada final ---------- */

.final {
  padding-block: var(--secao);
}

.contorno--final {
  right: -8rem;
  bottom: -9rem;
  opacity: 0.6;
  transform: rotate(200deg);
}

.final__grade {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: end;
}

.final__frase {
  max-width: 12em;
  font-size: var(--passo-3);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.final__acao p {
  max-width: 46ch;
  line-height: 1.65;
  color: rgb(255 255 255 / 0.94);
  text-wrap: pretty;
}

.final__acao .final__convite {
  margin-top: 1.5rem;
  margin-bottom: 0.9rem;
  font-size: var(--passo-1);
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--branco);
}

@media (min-width: 60rem) {
  .final__grade {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }
}

/* ---------- Rodapé ---------- */

.rodape {
  background: var(--verde-noite);
  color: rgb(255 255 255 / 0.92);
  font-size: 0.98rem;
}

.rodape__grade {
  display: grid;
  gap: 2rem;
  padding-block: clamp(2.4rem, 5vw, 3.6rem);
}

.rodape__marcas {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 2.4vw, 1.4rem);
}

.rodape__marcas img:first-child {
  width: auto;
  height: clamp(3rem, 6vw, 4rem);
}

.rodape__marcas img:last-child {
  width: clamp(9.5rem, 24vw, 14rem);
}

.rodape__mais {
  font-size: 1.8rem;
  font-weight: 300;
  line-height: 1;
}

.rodape__texto {
  display: grid;
  gap: 1rem;
}

.rodape__texto strong {
  font-weight: 700;
}

.rodape__redes {
  display: grid;
  gap: 0.7rem;
}

.rodape__redes-titulo {
  font-weight: 700;
}

.redes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.rede {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1.5px solid rgb(255 255 255 / 0.55);
  border-radius: 50%;
  color: var(--branco);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.3s var(--saida);
}

.rede:hover {
  border-color: var(--branco);
  background: var(--branco);
  color: var(--verde-noite);
  transform: translateY(-2px);
}

.rede:focus-visible {
  border-radius: 50%;
}

.rede svg {
  width: 1.4rem;
  height: 1.4rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rede .rede__ponto {
  fill: currentColor;
  stroke: none;
}

.rodape__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
}

.rodape__links a {
  text-underline-offset: 0.22em;
}

.rodape__links a:hover {
  color: var(--menta);
}

@media (min-width: 60rem) {
  .rodape__grade {
    grid-template-columns: auto 1fr;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
  }

  .rodape__texto {
    justify-items: end;
    text-align: right;
  }

  .rodape__redes {
    justify-items: end;
  }

  .rodape__links {
    justify-content: flex-end;
  }
}

/* ---------- Movimento ----------
   Tudo aqui só melhora o que já está visível: sem JS ou com movimento
   reduzido, a página aparece completa e parada. */

@media (prefers-reduced-motion: no-preference) {
  .js .faixa__trilho {
    animation: faixa 70s linear infinite;
  }

  .js .faixa--rodape .faixa__trilho {
    animation-duration: 90s;
    animation-direction: reverse;
  }

  .js .topo__logo,
  .js h1,
  .js .quando,
  .js .acoes {
    animation: subir 1s var(--saida) backwards;
  }

  .js h1 {
    animation-delay: 0.09s;
  }

  .js .quando {
    animation-delay: 0.18s;
  }

  .js .acoes {
    animation-delay: 0.27s;
  }

  .js .topo__camiseta img {
    animation: vestir 1.3s var(--saida) 0.15s backwards;
  }

  /* O recorte fica no desenho e quem é observado é a caixa em volta:
     um elemento todo recortado nunca "entra na tela" para o observador. */
  .js .percurso-trilha .percurso-linha {
    clip-path: inset(0 100% 0 0);
  }

  .js .percurso-trilha.a-vista .percurso-linha {
    clip-path: inset(0 0 0 0);
    transition: clip-path 2.6s var(--saida);
  }

  .js .percursos .percurso__tracos,
  .js .percursos .percurso__pulso {
    transform: scaleX(0);
    transform-origin: left center;
  }

  .js .percursos.a-vista .percurso__tracos,
  .js .percursos.a-vista .percurso__pulso {
    transform: scaleX(1);
    transition: transform 1.2s var(--saida);
  }

  .js .percursos.a-vista .percurso:nth-child(2) .percurso__tracos {
    transition-delay: 0.12s;
  }

  .js .percursos.a-vista .percurso:nth-child(3) .percurso__tracos {
    transition-delay: 0.24s;
  }

  .js .verde__placa img {
    transform: rotate(-7deg) translateY(1.5rem);
    transition: transform 1.3s var(--saida);
  }

  .js .verde__placa.a-vista img {
    transform: rotate(-2.5deg);
  }

  .sucesso:not([hidden]) {
    animation: subir 0.7s var(--saida) backwards;
  }

  .sucesso__icone path {
    stroke-dasharray: 34;
    stroke-dashoffset: 34;
    animation: tracar 0.6s var(--saida) 0.25s forwards;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .botao--enviando::before {
    animation: none;
  }

  .botao,
  .botao__seta {
    transition: none;
  }
}

@keyframes subir {
  from {
    opacity: 0;
    transform: translateY(1.6rem);
  }
}

@keyframes vestir {
  from {
    opacity: 0;
    transform: translateY(3rem) rotate(3deg);
  }
}

@keyframes tracar {
  to {
    stroke-dashoffset: 0;
  }
}
