:root {
  --preto: #0b0b0c;
  --grafite: #161618;
  --branco: #fff;
  --claro: #f1f0ee;
  --vermelho: #d80820;
  --vermelho-escuro: #b3061a;
  --texto: #151517;
  --suave-claro: #5b5955;
  --suave-escuro: #b8b7bd;
  --raio: 20px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --titulo: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --corpo: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --topo: 68px;
}

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

html {
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--topo) + env(safe-area-inset-top, 0px));
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--preto);
  color: var(--branco);
  font-family: var(--corpo);
  font-size: 1.0625rem;
  line-height: 1.55;
}

h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
a, button { touch-action: manipulation; }

h1, h2, h3, .marca {
  font-family: var(--titulo);
  text-transform: uppercase;
  line-height: 1;
}
h2 { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 800; text-wrap: balance; }

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: max(clamp(1.25rem, 4vw, 2.5rem), env(safe-area-inset-left, 0px));
  padding-right: max(clamp(1.25rem, 4vw, 2.5rem), env(safe-area-inset-right, 0px));
}

:focus-visible { outline: 3px solid #ff5263; outline-offset: 3px; }
.catalogo :focus-visible, .passos :focus-visible { outline-color: var(--texto); }

.so-leitor {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip {
  position: fixed;
  left: 1rem; top: 1rem;
  z-index: 30;
  padding: .7rem 1.1rem;
  border-radius: 999px;
  background: var(--branco);
  color: var(--preto);
  font-weight: 600;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* topo */
.topo {
  position: sticky;
  top: 0;
  z-index: 20;
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--preto);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.topo__linha {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  min-height: var(--topo);
}
.marca {
  font-size: 1.5rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.marca span { color: #ff3348; }
a.marca { display: inline-flex; align-items: center; gap: .25em; min-height: 44px; border-radius: 12px; }
.topo nav { display: flex; gap: clamp(0rem, 1.5vw, 1rem); }
.topo nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 .55rem;
  border-radius: 999px;
  color: var(--suave-escuro);
  font-size: .95rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease;
}

/* botão */
.botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 2rem;
  border-radius: 999px;
  background: var(--vermelho);
  color: var(--branco);
  font-weight: 600;
  text-decoration: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  transition: transform 150ms var(--ease-out), background-color 160ms ease;
}
.botao:active { transform: scale(.97); background: var(--vermelho-escuro); }

/* abertura */
.abertura {
  display: flex;
  align-items: center;
  min-height: calc(100vh - var(--topo));
  min-height: calc(100svh - var(--topo));
  padding: 3rem 0 3.5rem;
  background: radial-gradient(60% 55% at 74% 52%, #1d1d21 0%, var(--preto) 72%);
  overflow: hidden;
}
.abertura__grade {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 2rem;
}
h1 { font-size: clamp(3.25rem, 6.6vw, 6rem); font-weight: 800; line-height: .94; }
/* folga para a cedilha não ser cortada pela máscara */
.linha { display: block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
.linha > span { display: block; white-space: nowrap; }
h1 em { font-style: normal; color: var(--vermelho); }
.abertura__apoio {
  max-width: 25rem;
  margin: 1.5rem 0 2rem;
  color: var(--suave-escuro);
  font-size: 1.15rem;
  text-wrap: balance;
}

.moto {
  width: 100%;
  height: auto;
  max-height: 68vh;
  fill: none;
  stroke: #ecebf0;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.moto .corpo { fill: #141416; }
.moto .fino { stroke-width: 2; stroke: #8d8c94; }
.moto .raio { stroke-width: 1.5; stroke: #6d6c74; }
.moto .grosso { stroke-width: 11; }
.moto__protetor { fill: var(--vermelho); stroke: var(--vermelho); stroke-width: 3; }
.moto__fenda { stroke: var(--preto); stroke-width: 4; }

/* catálogo */
.catalogo, .passos { background: var(--claro); color: var(--texto); }
.catalogo { padding: clamp(4rem, 8vw, 7rem) 0; }
.cabeca { margin-bottom: 2.25rem; }
.filtro { display: none; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.js .filtro { display: flex; }
.filtro button {
  min-height: 44px;
  padding: 0 1.15rem;
  border: 1px solid #d5d2cd;
  border-radius: 999px;
  background: transparent;
  color: var(--texto);
  font: 600 .95rem var(--corpo);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 150ms var(--ease-out), background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.filtro button:active { transform: scale(.96); }
.filtro button[aria-pressed="true"] { background: var(--texto); border-color: var(--texto); color: var(--branco); }

.grade {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}
.peca {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: .6rem .6rem .85rem;
  border-radius: var(--raio);
  background: var(--branco);
}
.peca[hidden] { display: none; }
.peca__arte {
  --fundo-arte: #f6f5f3;
  display: grid;
  place-items: center;
  aspect-ratio: 10 / 7;
  margin-bottom: .9rem;
  border-radius: 14px;
  background: var(--fundo-arte);
  transition: transform 150ms var(--ease-out);
}
.peca:active .peca__arte { transform: scale(.98); }
.peca__arte svg {
  width: 88%;
  height: 88%;
  color: #232326;
  transition: transform 300ms var(--ease-out);
}
.peca h3 { padding: 0 .35rem; font-size: 1.3rem; font-weight: 700; hyphens: manual; }
.peca p { padding: .3rem .35rem 0; color: var(--suave-claro); font-size: .92rem; line-height: 1.35; }
.pedir {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: 44px;
  margin-top: auto;
  padding: 0 .35rem;
  border-radius: 999px;
  color: var(--vermelho);
  font-weight: 600;
  text-decoration: none;
}
/* o card inteiro é clicável */
.pedir::after { content: ""; position: absolute; inset: 0; border-radius: var(--raio); }
.pedir span { transition: transform 200ms var(--ease-out); }
.peca:active { transform: scale(.985); }
.pedir:focus-visible { outline: 0; }
.pedir:focus-visible::after { outline: 3px solid var(--texto); outline-offset: 2px; }

/* quem navega pelo teclado vê o elemento por inteiro assim que o foco chega,
   mesmo no meio de uma animação de entrada */
.peca:focus-within, [data-reveal]:focus-within, [data-intro]:focus-within {
  opacity: 1 !important;
  transform: none !important;
}

/* desenhos das peças */
.t { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.d { fill: none; stroke: #9a968f; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.tubo { fill: none; stroke: currentColor; stroke-width: 13; stroke-linecap: round; stroke-linejoin: round; }
.tubo-miolo { fill: none; stroke: var(--fundo-arte, #f6f5f3); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.cor { fill: var(--vermelho); stroke: none; }
.cor-traco { fill: none; stroke: var(--vermelho); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 7 7; }

/* passos */
.passos { padding: 0 0 clamp(4rem, 8vw, 7rem); }
.passos h2 { padding-top: clamp(3rem, 6vw, 4.5rem); border-top: 1px solid #dbd8d3; }
.passos ol { display: grid; gap: 2rem; margin-top: 2.25rem; }
.passos__num {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--vermelho);
  color: var(--branco);
  font: 800 1.35rem var(--titulo);
}
.passos h3 { margin-bottom: .4rem; font-size: 1.6rem; font-weight: 700; }
.passos p { max-width: 20rem; color: var(--suave-claro); }

/* envios */
.envios { padding: clamp(4rem, 8vw, 7rem) 0 0; }
.envios__caixa {
  padding: clamp(2rem, 6vw, 4.5rem) clamp(1.5rem, 6vw, 4.5rem);
  border-radius: 32px;
  background: var(--grafite);
}
.rota { --pacote: 48px; margin-top: 2.5rem; }
.rota__trilho {
  position: relative;
  height: 4px;
  margin: calc(var(--pacote) / 2) calc(var(--pacote) / 2);
  border-radius: 4px;
  background: #333238;
}
.rota__cheio {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--vermelho);
  transform-origin: left center;
}
.rota__carro { position: absolute; inset: 0; }
.rota__pacote {
  position: absolute;
  right: calc(var(--pacote) / -2);
  top: calc(50% - var(--pacote) / 2);
  display: grid;
  place-items: center;
  width: var(--pacote); height: var(--pacote);
  border-radius: 14px;
  background: var(--vermelho);
}
.rota__pacote svg { width: 26px; height: 26px; fill: none; stroke: var(--branco); stroke-width: 1.6; stroke-linejoin: round; }
.rota__rotulos {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--suave-escuro);
  font-size: .95rem;
  font-weight: 500;
}

@media (max-width: 599.98px) {
  .rota { display: flex; gap: 1rem; height: 240px; }
  .rota__trilho { width: 4px; height: auto; margin: calc(var(--pacote) / 2); }
  .rota__cheio { transform-origin: center top; }
  .rota__pacote { right: auto; top: auto; left: calc(50% - var(--pacote) / 2); bottom: calc(var(--pacote) / -2); }
  .rota__rotulos { flex-direction: column; padding: .75rem 0; }
}

/* contato */
.contato { padding: clamp(5rem, 10vw, 8.5rem) 0; text-align: center; }
.contato p { margin: 1rem 0 2rem; color: var(--suave-escuro); font-size: 1.15rem; }

/* rodapé */
.rodape {
  padding: 2rem 0 calc(2rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.rodape__linha {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}
.rodape a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border-radius: 999px;
  color: var(--suave-escuro);
  text-decoration: none;
}
.aviso {
  padding: .45rem 1rem;
  border: 1px solid #3a393f;
  border-radius: 999px;
  color: var(--suave-escuro);
  font-size: .85rem;
}

@media (hover: hover) and (pointer: fine) {
  .topo nav a:hover { color: var(--branco); background: rgba(255, 255, 255, .08); }
  .botao:hover { background: var(--vermelho-escuro); }
  .filtro button:hover { border-color: var(--texto); }
  .pedir:hover span { transform: translate(3px, -3px); }
  .peca:has(.pedir:hover) .peca__arte svg { transform: scale(1.06); }
  .rodape a:hover { color: var(--branco); }
}

@media (min-width: 680px) {
  .grade { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
  .peca { padding: .75rem .75rem 1rem; }
  .peca h3 { font-size: 1.5rem; }
  .passos ol { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1040px) {
  .grade { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
}

@media (max-width: 899px) {
  .abertura { min-height: 0; padding: 2.75rem 0 3rem; background: radial-gradient(90% 45% at 50% 78%, #1d1d21 0%, var(--preto) 75%); }
  .abertura__grade { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  h1 { font-size: clamp(3rem, 14.5vw, 6.5rem); }
  .moto { max-height: 52vh; }
}

@media (max-width: 379px) {
  .marca { font-size: 1.25rem; }
  .topo nav a { padding: 0 .35rem; font-size: .875rem; }
  .grade { gap: .5rem; }
  .peca h3 { font-size: 1.15rem; }
}

/* celular deitado: texto e moto lado a lado, botão já na primeira tela */
@media (min-width: 600px) and (max-height: 560px) {
  .abertura { min-height: 0; padding: 1.1rem 0 1.75rem; }
  .abertura__grade { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; }
  h1 { font-size: clamp(2.5rem, 6.4vw, 4rem); }
  .abertura__apoio { margin: 1rem 0 1.25rem; font-size: 1rem; }
  .moto { max-height: 65vh; }
}

@media (prefers-reduced-motion: reduce) {
  .botao, .filtro button, .pedir span, .peca__arte, .peca__arte svg { transition-property: background-color, border-color, color; }
  .botao:active, .filtro button:active, .peca:active .peca__arte, .peca:has(.pedir:hover) .peca__arte svg, .pedir:hover span { transform: none; }
}
