/* The home page (index.html and en/index.html): the same layout in both
   languages, on top of estilo.css. The group replay plays in a phone at the
   centre, over a circuit where two runners lap each other. */

main.inicio { max-width: 1080px; padding-top: 20px; }
/* The circuit is wider than the screen and the bibs are tilted: no
   sideways scroll because of them. */
html, body, main.inicio { overflow-x: clip; }

/* ── Top bar: logotype and language ─────────────────────────────────── */
.topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.topo .marca { margin: 0; }
.idiomas { display: flex; gap: 4px; border: 1px solid var(--linha); border-radius: 999px; padding: 3px; }
.idiomas a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--apagado);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 999px;
}
.idiomas a[aria-current="page"] { background: var(--voce); color: var(--asfalto); }
.idiomas a:not([aria-current]):hover,
.idiomas a:not([aria-current]):focus-visible { color: var(--texto); }

/* ── Cover ───────────────────────────────────────────────────────────── */
.capa { text-align: center; padding-top: 44px; }

/* The x draws itself: the volt leg first, then the raspberry one crosses
   over it, as in the opening of the app's video. */
.simbolo { width: 64px; height: auto; margin: 0 auto 22px; display: block; overflow: visible; }
.simbolo polyline { stroke-dasharray: 100; stroke-dashoffset: 100; animation: passo 0.7s cubic-bezier(.6,0,.2,1) forwards; }
.simbolo .rival { animation-delay: 0.45s; }
@keyframes passo { to { stroke-dashoffset: 0; } }

.selo {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--apagado);
  border: 1px solid var(--linha);
  border-radius: 999px;
  padding: 8px 14px;
  margin: 0 0 22px;
}
.selo::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--voce);
  margin-right: 0.8em;
  vertical-align: middle;
  animation: pisca 1.6s ease-in-out infinite;
}
@keyframes pisca { 50% { opacity: 0.25; } }

.lema {
  font-family: 'Big Shoulders Display', Impact, sans-serif;
  font-weight: 900;
  font-size: clamp(40px, 11vw, 84px);
  line-height: 0.92;
  text-transform: uppercase;
  margin: 0 0 20px;
}
.lema span { display: block; }
.lema .me { color: var(--voce); }
.lema .rival { color: var(--rival); }

.sub { color: var(--apagado); font-size: clamp(16px, 2.2vw, 19px); max-width: 560px; margin: 0 auto; }
.sub strong { color: var(--texto); }

/* ── The stage: a circuit, two runners and the phone with the replay ── */
.palco {
  position: relative;
  display: grid;
  place-items: center;
  margin: 28px auto 0;
  padding: 24px 0 8px;
}
.pista {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(980px, 150vw);
  height: auto;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.pista .asfalto { fill: none; stroke: var(--superficie); stroke-width: 26; stroke-linejoin: round; }
.pista .faixa { fill: none; stroke: var(--linha); stroke-width: 2; stroke-dasharray: 10 14; }
.pista .largada { fill: var(--texto); opacity: 0.5; }

/* A soft light under the phone, in the two brand colours. */
.palco::before {
  content: '';
  position: absolute;
  width: min(520px, 90vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 40%, rgba(198,255,61,0.16), transparent 60%),
              radial-gradient(circle at 65% 60%, rgba(232,69,127,0.16), transparent 60%);
  filter: blur(20px);
}

.celular {
  position: relative;
  width: min(300px, 70vw);
  padding: 10px;
  border-radius: 40px;
  background: #0B0C0E;
  box-shadow: 0 0 0 1px var(--linha), 0 40px 90px rgba(0,0,0,0.55);
}
.celular video,
.celular img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 540 / 834;
  object-fit: cover;
  border-radius: 30px;
  background: var(--asfalto);
}

/* Stickers around the phone: what the video shows, read at a glance. */
.adesivo {
  position: absolute;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--superficie);
  border: 1px solid var(--linha);
  border-radius: 14px;
  padding: 10px 14px;
  font-weight: 800;
  font-size: 14px;
  white-space: nowrap;
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
  animation: flutua 5s ease-in-out infinite;
}
.adesivo small {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--apagado);
}
.adesivo .gap {
  font-family: 'Big Shoulders Display', Impact, sans-serif;
  font-weight: 900;
  font-size: 30px;
  line-height: 1;
  color: var(--rival);
}
.adesivo .bandeira {
  width: 18px;
  height: 18px;
  flex: none;
  border-radius: 3px;
  background: conic-gradient(var(--texto) 25%, var(--asfalto) 0 50%, var(--texto) 0 75%, var(--asfalto) 0) 0 0 / 9px 9px;
}
.adesivo .ponto { width: 10px; height: 10px; border-radius: 50%; background: var(--voce); flex: none; }
/* Around the phone on a computer: outside the frame, a little crooked,
   like stickers on a laptop. */
.adesivos { position: absolute; inset: 0; pointer-events: none; }
.adesivo.a { top: 22%;    left: calc(50% - 360px); transform: rotate(-4deg); }
.adesivo.b { top: 14%;    right: calc(50% - 350px); transform: rotate(3deg); animation-delay: -1.2s; border-color: var(--rival); }
.adesivo.c { bottom: 24%; left: calc(50% - 330px); transform: rotate(2deg); animation-delay: -2.5s; }
.adesivo.d { bottom: 30%; right: calc(50% - 340px); transform: rotate(-3deg); animation-delay: -3.6s; border-color: var(--voce); }
@keyframes flutua { 50% { translate: 0 -6px; } }

/* On a phone there is no room beside the frame: the stickers become a
   row of chips under it, so nothing covers the replay. */
@media (max-width: 700px) {
  .adesivos {
    position: static;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 22px;
  }
  .adesivo { position: static; padding: 7px 10px; font-size: 12px; border-radius: 12px; box-shadow: none; }
  .adesivo .gap { font-size: 22px; }
}

.acoes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 32px auto 0;
}
.acoes .botao { min-width: 200px; }
.botao.contorno { border: 1px solid var(--linha); color: var(--texto); }
.botao.contorno:hover, .botao.contorno:focus-visible { border-color: var(--texto); }
.acoes .nota { flex-basis: 100%; text-align: center; }

/* Where the app runs: Android now, iPhone next. The Android robot comes
   from Simple Icons (CC BY 3.0, credited in the footer); the iPhone gets a
   plain phone, because Apple does not allow its logo on its own. */
.plataformas {
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
}
.plataformas li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--linha);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 800;
}
.plataformas .icone {
  width: 16px;
  height: 16px;
  flex: none;
  background: currentColor;
  -webkit-mask: var(--icone) center / contain no-repeat;
  mask: var(--icone) center / contain no-repeat;
}
.plataformas .android { --icone: url(/marca/plataformas/android.svg); color: var(--voce); }
.plataformas .celular { --icone: url(/marca/plataformas/celular.svg); }
.plataformas .em-breve { border-style: dashed; color: var(--apagado); }
.rodape .credito { flex-basis: 100%; margin: 4px 0 0; font-size: 11px; color: var(--apagado); opacity: 0.7; }

/* ── Section headings ────────────────────────────────────────────────── */
.secao { margin-top: 96px; }
.rotulo.centro { text-align: center; margin-bottom: 10px; }
.titulo {
  font-family: 'Big Shoulders Display', Impact, sans-serif;
  font-weight: 900;
  font-size: clamp(32px, 7vw, 52px);
  line-height: 0.95;
  text-transform: uppercase;
  text-align: center;
  margin: 0 auto 40px;
  max-width: 720px;
}

/* ── How it works: three race bibs ───────────────────────────────────── */
.peitos {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 20px;
}
.peito {
  position: relative;
  background: var(--texto);
  color: var(--asfalto);
  border-radius: 10px;
  padding: 26px 24px 24px;
  overflow: hidden;
  transform: rotate(var(--giro, 0deg));
  transition: transform 0.25s ease;
}
.peito:nth-child(1) { --giro: -1.5deg; }
.peito:nth-child(2) { --giro: 1deg; }
.peito:nth-child(3) { --giro: -0.5deg; }
.peito:hover { transform: rotate(0deg) translateY(-4px); }
/* The colour strip across the top, like the sponsor band of a bib. */
.peito::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 10px;
  background: var(--voce);
}
.peito:nth-child(2)::before { background: var(--rival); }
/* The four safety-pin holes. */
.peito::after {
  content: '';
  position: absolute;
  inset: 20px 14px auto;
  height: calc(100% - 34px);
  background:
    radial-gradient(circle, var(--asfalto) 3px, transparent 3.5px) left top / 8px 8px no-repeat,
    radial-gradient(circle, var(--asfalto) 3px, transparent 3.5px) right top / 8px 8px no-repeat,
    radial-gradient(circle, var(--asfalto) 3px, transparent 3.5px) left bottom / 8px 8px no-repeat,
    radial-gradient(circle, var(--asfalto) 3px, transparent 3.5px) right bottom / 8px 8px no-repeat;
  opacity: 0.5;
  pointer-events: none;
}
.peito .num {
  font-family: 'Big Shoulders Display', Impact, sans-serif;
  font-weight: 900;
  font-size: 76px;
  line-height: 0.9;
  display: block;
  margin-bottom: 10px;
}
.peito h3 {
  font-family: 'Big Shoulders Display', Impact, sans-serif;
  font-weight: 900;
  font-size: 28px;
  text-transform: uppercase;
  margin: 0 0 6px;
}
.peito p { margin: 0; font-size: 15px; color: #3A3D44; }

/* ── "Don't switch apps": the band with the sources ──────────────────── */
.faixa-fontes {
  margin-top: 96px;
  border-block: 1px solid var(--linha);
  padding: 32px 0 28px;
  text-align: center;
}
.faixa-fontes .frase {
  font-family: 'Big Shoulders Display', Impact, sans-serif;
  font-weight: 900;
  font-size: clamp(26px, 5vw, 40px);
  line-height: 1;
  text-transform: uppercase;
  margin: 0 0 20px;
}
.faixa-fontes .frase span { color: var(--voce); }
.letreiro {
  overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.letreiro ul {
  display: flex;
  width: max-content;
  list-style: none;
  padding: 0;
  margin: 0;
  animation: rola 28s linear infinite;
}
.letreiro li {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--apagado);
  padding: 0 18px;
}
.letreiro li::after { content: '·'; margin-left: 36px; color: var(--rival); }
@keyframes rola { to { transform: translateX(-50%); } }

/* ── Extras ──────────────────────────────────────────────────────────── */
.extras { display: grid; gap: 12px; }
.extra {
  background: var(--superficie);
  border: 1px solid var(--linha);
  border-left: 4px solid var(--voce);
  border-radius: 16px;
  padding: 18px 20px;
}
.extra.rival { border-left-color: var(--rival); }
.extra.apagado { border-left-color: var(--apagado); }
.extra h3 { font-size: 17px; font-weight: 800; margin: 0 0 4px; }
.extra p { color: var(--apagado); font-size: 15px; margin: 0; }

/* ── Invitation and networks ─────────────────────────────────────────── */
.final { margin-top: 96px; }
.chamada h2 { font-size: 22px; }
.chamada .email { display: block; text-align: center; margin-top: 10px; color: var(--apagado); font-size: 14px; }
.redes { margin-top: 40px; }
.redes ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.redes a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--linha);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--texto);
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
}
.redes a:hover, .redes a:focus-visible { border-color: var(--voce); color: var(--voce); }
/* The networks' own marks (Simple Icons, in marca/redes/), painted in the
   link's colour through a mask, so they follow the hover. */
.redes .icone {
  width: 16px;
  height: 16px;
  flex: none;
  background: currentColor;
  -webkit-mask: var(--icone) center / contain no-repeat;
  mask: var(--icone) center / contain no-repeat;
}
.icone.instagram { --icone: url(/marca/redes/instagram.svg); }
.icone.tiktok { --icone: url(/marca/redes/tiktok.svg); }
.icone.youtube { --icone: url(/marca/redes/youtube.svg); }
.icone.x { --icone: url(/marca/redes/x.svg); }
/* The X mark already is the name: icon alone, in a round button. */
.redes a.so-icone { padding: 8px; width: 39px; height: 39px; justify-content: center; }
.redes .arroba { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--apagado); margin: 10px 0 0; }

/* ── Computer: wider sections side by side ───────────────────────────── */
@media (min-width: 900px) {
  .capa { padding-top: 64px; }
  .celular { width: 320px; }
  .peitos { grid-template-columns: repeat(3, 1fr); }
  .extras { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .final { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
  .final .redes { margin-top: 0; }
}

/* ── Less motion, when the person asks for it ────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .simbolo polyline { animation: none; stroke-dashoffset: 0; }
  .selo::before, .adesivo, .letreiro ul { animation: none; }
  .pista .corredor { display: none; }
  .letreiro ul { flex-wrap: wrap; justify-content: center; width: auto; }
  .letreiro li[aria-hidden] { display: none; }
  .peito, .peito:hover { transform: none; }
}
