/*
  CATERHAM ESPORTS BRASIL — página de inscrição (campeonato-simulador/)
  Folha própria, fora do site.min.css da home: a página usa a identidade do
  site Caterham em produção (Projeto-caterham/Caterham - Padrão sem evento),
  não a da Scuderia. Fontes do próprio domínio (CSP font-src 'self').
  Motion: só com .js-motion (posto pelo JS) e sem prefers-reduced-motion;
  sem JS, tudo já nasce visível.
*/
@font-face {
  font-family: "IBM Plex Sans Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets-build/fonts/ibm-plex-sans-condensed-600-latin.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets-build/fonts/ibm-plex-sans-condensed-700-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets-build/fonts/inter-var-latin.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets-build/fonts/jetbrains-mono-400-latin.woff2") format("woff2");
}

:root {
  --ink: #010c0e;
  --ink-1: #04181a;
  --ink-2: #072326;
  --emerald: #023b2d;
  --emerald-d: #021f18;
  --teal: #014f48;
  --lime: #cad302;
  --lime-d: #a8b002;
  --paper: #fbfbfc;
  --paper-2: rgba(245, 245, 245, 0.74);
  --paper-3: rgba(245, 245, 245, 0.56);
  --linha: rgba(245, 245, 245, 0.14);
  --linha-forte: rgba(245, 245, 245, 0.28);
  --erro: #ff8a7a;

  --ff-display: "IBM Plex Sans Condensed", "Arial Narrow", sans-serif;
  --ff-text: "Inter", system-ui, sans-serif;
  --ff-mono: "JetBrains Mono", ui-monospace, monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1320px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.83, 0, 0.17, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--ff-text);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; }
picture { display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: var(--gutter); top: -60px; z-index: 50;
  padding: 10px 14px; background: var(--lime); color: var(--ink);
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ------------------------------------------------------------ tipografia comum */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0;
  font-family: var(--ff-mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lime);
}
.kicker__dot { width: 8px; height: 8px; background: var(--lime); flex-shrink: 0; }
.titulo {
  margin: 14px 0 0;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 1.4rem + 4.6vw, 5.25rem);
  line-height: 0.92;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-wrap: balance;
}
.titulo em, .hero__titulo em { font-style: normal; color: var(--lime); }
.corpo { margin: 20px 0 0; max-width: 56ch; color: var(--paper-2); font-size: clamp(1rem, 0.95rem + 0.3vw, 1.1875rem); text-wrap: pretty; }
.nota { margin: 18px 0 0; max-width: 60ch; color: var(--paper-3); font-size: 0.9375rem; }
.nota strong { color: var(--paper); }
.cabeca { max-width: var(--max); margin-inline: auto; }

/* ------------------------------------------------------------ botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px;
  padding: 0 26px;
  border: 1px solid transparent;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn--lima { background: var(--lime); color: var(--ink); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%); }
.btn--lima:hover { background: var(--paper); }
.btn--lima:active { transform: translateY(1px); }
.btn--linha { border-color: var(--linha-forte); color: var(--paper); background: rgba(1, 12, 14, 0.35); }
.btn--linha:hover { border-color: var(--lime); color: var(--lime); }
.btn--grande { min-height: 64px; padding-inline: 40px; font-size: 1.125rem; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* ------------------------------------------------------------ topo */
.topo {
  position: absolute; inset: 0 0 auto 0; z-index: 10;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 18px var(--gutter);
}
.topo__voltar {
  display: inline-flex; align-items: center; gap: 6px; justify-self: start;
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em;
  color: var(--paper-2); text-decoration: none;
}
.topo__voltar:hover { color: var(--lime); }
.topo__logo img { width: clamp(120px, 12vw, 160px); height: auto; }
.topo__status {
  justify-self: end; display: inline-flex; align-items: center; gap: 8px; margin: 0;
  font-family: var(--ff-mono); font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--paper); text-decoration: none;
}
a.topo__status:hover { color: var(--lime); }
.pulso { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 rgba(202, 211, 2, 0.6); }
.js-motion .pulso { animation: pulso 1.8s var(--ease) infinite; }
@keyframes pulso { 0% { box-shadow: 0 0 0 0 rgba(202, 211, 2, 0.55); } 80%, 100% { box-shadow: 0 0 0 10px rgba(202, 211, 2, 0); } }
@media (max-width: 639px) {
  .topo { grid-template-columns: auto 1fr auto; gap: 12px; }
  .topo__voltar span { display: none; }
  .topo__logo { justify-self: start; }
  .topo__logo img { width: 128px; }
  .topo__status { font-size: 0.5625rem; letter-spacing: 0.1em; white-space: nowrap; }
}

/* ------------------------------------------------------------ hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 120px var(--gutter) 0;
  isolation: isolate;
  overflow: hidden;
}
.hero__midia { position: absolute; inset: 0; z-index: -1; background: var(--ink); }
.hero__video { width: 100%; height: 100%; object-fit: cover; }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(1, 12, 14, 0.9) 0%, rgba(1, 12, 14, 0.55) 42%, rgba(1, 12, 14, 0.1) 75%),
    linear-gradient(180deg, rgba(1, 12, 14, 0.7) 0%, rgba(1, 12, 14, 0) 22%, rgba(1, 12, 14, 0) 60%, var(--ink) 100%);
}
/* faixas de largada: filete lima riscando a base do hero */
.hero__linhas {
  position: absolute; inset: auto 0 0 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--lime) 30%, var(--lime) 70%, transparent);
  opacity: 0.5;
}
.hero__pausa {
  position: absolute; z-index: 2; right: var(--gutter); top: 88px;
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid var(--linha-forte); border-radius: 50%;
  background: rgba(1, 12, 14, 0.55); color: var(--paper); cursor: pointer;
  backdrop-filter: blur(4px);
}
.hero__pausa:hover { border-color: var(--lime); color: var(--lime); }
.hero__pausa-i--play { display: none; }
.hero__pausa.is-pausado .hero__pausa-i--pausa { display: none; }
.hero__pausa.is-pausado .hero__pausa-i--play { display: block; }
@media (max-width: 639px) { .hero__pausa { top: 72px; } }
.hero__conteudo { align-self: center; width: 100%; max-width: var(--max); margin-inline: auto; padding-block: 40px; }
.hero__titulo {
  margin: 22px 0 0;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(3.5rem, 1rem + 11vw, 10.5rem);
  line-height: 0.86;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.hero__titulo .linha { display: block; }
.hero__lead { margin: 26px 0 0; max-width: 46ch; font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.3125rem); color: var(--paper-2); text-wrap: pretty; }
.acoes { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
@media (max-width: 479px) { .acoes .btn { flex: 1 1 100%; } }

.telemetria {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%; max-width: var(--max); margin: 0 auto;
  border-top: 1px solid var(--linha);
}
.telemetria div { padding: 18px 0 26px; border-left: 1px solid var(--linha); padding-left: 18px; }
.telemetria div:first-child { border-left: 0; padding-left: 0; }
.telemetria dt { font-family: var(--ff-mono); font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--paper-3); }
.telemetria dd { margin: 6px 0 0; font-family: var(--ff-display); font-weight: 700; font-size: clamp(2rem, 1.4rem + 2.6vw, 3.5rem); line-height: 1; font-variant-numeric: tabular-nums; }
@media (max-width: 639px) {
  .telemetria { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .telemetria div:nth-child(3) { border-left: 0; padding-left: 0; }
  .telemetria div:nth-child(n+3) { border-top: 1px solid var(--linha); }
  .telemetria div { padding-block: 14px 18px; }
}

/* ------------------------------------------------------------ prêmio */
.premio {
  display: grid; gap: 48px;
  max-width: var(--max); margin: 0 auto;
  padding: clamp(80px, 12vw, 160px) var(--gutter);
}
.premio__fotos { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); align-items: start; }
.premio__foto { position: relative; margin: 0; overflow: hidden; }
.premio__foto img { width: 100%; height: 100%; object-fit: cover; }
.premio__foto--sim { grid-column: 1 / 9; grid-row: 1; aspect-ratio: 4 / 3; }
.premio__foto--real { grid-column: 5 / 13; grid-row: 1; margin-top: 38%; aspect-ratio: 4 / 3; border: 6px solid var(--ink); z-index: 1; }
.premio__foto figcaption {
  position: absolute; left: 12px; bottom: 12px;
  padding: 5px 9px; background: var(--ink);
  font-family: var(--ff-mono); font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase;
}
.premio__foto--real figcaption { background: var(--lime); color: var(--ink); }
@media (min-width: 1024px) {
  .premio { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: 72px; }
}

/* ------------------------------------------------------------ categorias */
.categorias { padding: 0 var(--gutter) clamp(80px, 12vw, 160px); }
.categorias__grid {
  display: grid; gap: 16px;
  max-width: var(--max); margin: 40px auto 0;
}
@media (min-width: 768px) { .categorias__grid { grid-template-columns: 1fr 1fr; } }
.cat {
  position: relative;
  padding: clamp(24px, 3vw, 40px);
  background: linear-gradient(160deg, var(--ink-2), var(--ink-1));
  border: 1px solid var(--linha);
  overflow: hidden;
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.cat::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--paper-3); transform-origin: left; transform: scaleX(0.18);
  transition: transform 0.6s var(--ease), background-color 0.3s;
}
.cat:hover { border-color: var(--linha-forte); }
.cat:hover::after { transform: scaleX(1); background: var(--lime); }
.cat--principal { background: linear-gradient(160deg, var(--emerald), var(--emerald-d)); }
.cat--principal::after { background: var(--lime); }
.cat__tag { margin: 0; font-family: var(--ff-mono); font-size: 0.6875rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--lime); }
.cat__nome { margin: 12px 0 0; font-family: var(--ff-display); font-weight: 700; font-size: clamp(2rem, 1.5rem + 2vw, 3.25rem); line-height: 0.95; text-transform: uppercase; }
.cat__desc { margin: 16px 0 0; color: var(--paper-2); max-width: 44ch; }
.cat__ficha { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 28px 0 0; border-top: 1px solid var(--linha); }
.cat__ficha div { padding-top: 14px; }
.cat__ficha dt { font-family: var(--ff-mono); font-size: 0.625rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--paper-3); }
.cat__ficha dd { margin: 4px 0 0; font-family: var(--ff-display); font-weight: 600; font-size: 1.125rem; line-height: 1.15; text-transform: uppercase; }

/* ------------------------------------------------------------ como funciona */
.formato {
  position: relative; isolation: isolate;
  padding: clamp(80px, 12vw, 160px) var(--gutter);
  background: var(--emerald-d);
  overflow: hidden;
}
.formato__foto { position: absolute; inset: 0; z-index: -1; opacity: 0.18; }
.formato__foto img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.4); }
.formato__foto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--ink) 0%, rgba(2, 31, 24, 0.6) 30%, rgba(2, 31, 24, 0.6) 70%, var(--ink) 100%); }
.trajeto {
  list-style: none; margin: 56px auto 0; padding: 0; max-width: var(--max);
  display: grid; gap: 0;
  counter-reset: none;
}
.trajeto li { position: relative; padding: 26px 0 30px 0; border-top: 1px solid var(--linha); }
.trajeto__n { font-family: var(--ff-mono); font-size: 0.8125rem; color: var(--lime); letter-spacing: 0.1em; }
.trajeto h3 { margin: 8px 0 0; font-family: var(--ff-display); font-weight: 700; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); text-transform: uppercase; line-height: 1; }
.trajeto p { margin: 12px 0 0; color: var(--paper-2); max-width: 46ch; }
@media (min-width: 900px) {
  .trajeto { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
  .trajeto li { padding-top: 30px; }
  /* barra de progresso de volta: liga os 4 passos */
  .trajeto li::before {
    content: ""; position: absolute; top: -1px; left: 0; height: 3px; width: 100%;
    background: var(--lime); transform-origin: left; transform: scaleX(var(--p, 1));
  }
}
.calendario {
  max-width: var(--max); margin: 72px auto 0;
  padding: clamp(20px, 3vw, 36px);
  border: 1px solid var(--linha);
  background: rgba(1, 12, 14, 0.6);
}
.calendario__titulo { margin: 0; font-family: var(--ff-mono); font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--lime); }
.calendario__lista { list-style: none; margin: 16px 0 0; padding: 0; }
.calendario__lista li {
  display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 2px 16px; align-items: baseline;
  padding: 14px 0; border-bottom: 1px solid var(--linha);
}
.calendario__etapa { grid-row: span 2; font-family: var(--ff-mono); color: var(--paper-3); font-size: 0.875rem; }
.calendario__pista { font-family: var(--ff-display); font-weight: 700; font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem); text-transform: uppercase; line-height: 1.05; }
.calendario__config { color: var(--paper-3); font-size: 0.875rem; }
.calendario__data { grid-column: 2; font-family: var(--ff-mono); font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--lime); }
@media (max-width: 767px) { .calendario__etapa { grid-row: span 3; } }
@media (min-width: 768px) {
  .calendario__lista li { grid-template-columns: 64px minmax(0, 1fr) auto 104px; }
  .calendario__data { grid-column: auto; text-align: right; }
  .calendario__etapa { grid-row: auto; }
  .calendario__config { text-align: right; }
}
.calendario__nota { margin: 16px 0 0; color: var(--paper-3); font-size: 0.875rem; }
.calendario__nota a { color: var(--paper); text-decoration-color: var(--lime); text-underline-offset: 3px; }

/* ------------------------------------------------------------ formulário */
.inscricao { padding: clamp(80px, 12vw, 160px) var(--gutter); scroll-margin-top: 0; }
.inscricao:focus { outline: none; }
.inscricao__corpo { display: grid; gap: 28px; max-width: var(--max); margin: 48px auto 0; }
@media (min-width: 1024px) {
  .inscricao__corpo { grid-template-columns: 220px minmax(0, 1fr); gap: 56px; align-items: start; }
  .setores { position: sticky; top: 24px; }
}
.setores ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
@media (min-width: 1024px) { .setores ol { grid-template-columns: 1fr; gap: 0; } }
.setores li { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: baseline; padding: 10px 0; }
@media (min-width: 1024px) { .setores li { padding: 14px 0; } }
.setores__n { font-family: var(--ff-mono); font-size: 0.75rem; color: var(--paper-3); }
.setores__nome { font-family: var(--ff-display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.9375rem; color: var(--paper-2); }
@media (max-width: 1023px) {
  .setores { position: sticky; top: 0; z-index: 5; margin-inline: calc(-1 * var(--gutter)); padding: 8px var(--gutter); background: rgba(1, 12, 14, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--linha); }
  .setores li { grid-template-columns: 1fr; padding: 4px 0; }
  .setores__nome { font-size: 0.6875rem; }
}
@media (max-width: 479px) { .setores__nome { display: none; } }
.setores__barra { grid-column: 1 / -1; height: 3px; background: var(--linha); overflow: hidden; }
.setores__barra span { display: block; height: 100%; width: 100%; background: var(--paper-2); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform 0.5s var(--ease), background-color 0.3s; }
.setores li.is-ok .setores__barra span { background: var(--lime); }
.setores li.is-ok .setores__n, .setores li.is-ok .setores__nome { color: var(--lime); }

fieldset {
  margin: 0 0 18px; padding: clamp(20px, 3vw, 36px);
  border: 1px solid var(--linha); background: var(--ink-1);
  min-width: 0;
  transition: border-color 0.3s var(--ease);
}
fieldset:focus-within { border-color: var(--linha-forte); }
legend {
  display: flex; align-items: baseline; gap: 12px; float: left; width: 100%; margin: 0 0 22px; padding: 0;
  font-family: var(--ff-display); font-weight: 700; font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.875rem); text-transform: uppercase; line-height: 1;
}
legend + * { clear: both; }
.legend__n { font-family: var(--ff-mono); font-weight: 400; font-size: 0.875rem; color: var(--lime); }
.grade { display: grid; gap: 18px; clear: both; }
@media (min-width: 700px) { .grade { grid-template-columns: 1fr 1fr; } .campo--cheio { grid-column: 1 / -1; } }
.campo { display: flex; flex-direction: column; gap: 8px; font-size: 0.875rem; font-weight: 600; }
.campo small, .ajuda { color: var(--paper-3); font-weight: 400; font-size: 0.8125rem; }
.campo input, .campo select, .campo textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1px solid var(--linha-forte); border-radius: 0;
  background: var(--ink); color: var(--paper);
  font: inherit; font-weight: 400; font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.campo select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--paper-2) 50%), linear-gradient(135deg, var(--paper-2) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 3px rgba(202, 211, 2, 0.18); }
.campo input::placeholder, .campo textarea::placeholder { color: rgba(245, 245, 245, 0.35); }
.campo input[type="date"] { color-scheme: dark; }
.foi-enviado .campo :invalid, .campo .is-erro { border-color: var(--erro); }

.pergunta { clear: both; margin: 0 0 12px; font-weight: 700; }
.opcoes { display: grid; gap: 12px; }
@media (min-width: 700px) { .opcoes { grid-template-columns: 1fr 1fr; } }
.opcao {
  position: relative; display: flex; gap: 14px; align-items: flex-start;
  padding: 20px; border: 1px solid var(--linha-forte); background: var(--ink);
  cursor: pointer; transition: border-color 0.25s, background-color 0.25s;
}
.opcao:hover { border-color: var(--paper-3); }
.opcao:has(input:checked) { border-color: var(--lime); background: linear-gradient(160deg, rgba(2, 59, 45, 0.9), var(--ink)); }
.opcao__corpo { display: flex; flex-direction: column; gap: 4px; }
.opcao strong { font-family: var(--ff-display); font-size: 1.375rem; text-transform: uppercase; line-height: 1; }
.opcao small { color: var(--paper-3); }
input[type="radio"], input[type="checkbox"] { accent-color: var(--lime); width: 20px; height: 20px; margin: 2px 0 0; flex-shrink: 0; }
.linha-opcoes { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.linha-opcoes label { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px; border: 1px solid var(--linha-forte); cursor: pointer; font-weight: 600; }
.linha-opcoes label:has(input:checked) { border-color: var(--lime); color: var(--lime); }
.condicional { margin-top: 18px; padding: 18px 20px; border-left: 3px solid var(--lime); background: var(--ink-2); }
.checks { display: grid; gap: 16px; clear: both; }
.checks label { display: flex; gap: 12px; align-items: flex-start; color: var(--paper-2); cursor: pointer; }
.checks a { color: var(--paper); text-decoration-color: var(--lime); text-underline-offset: 3px; }
.enviar { display: flex; justify-content: flex-end; padding-top: 8px; }
@media (max-width: 479px) { .enviar .btn { width: 100%; } }
.alerta { margin-bottom: 18px; padding: 14px 16px; border: 1px solid var(--erro); background: #2a1210; color: #ffd8d2; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.sucesso { position: relative; padding: clamp(28px, 5vw, 56px); background: linear-gradient(160deg, var(--emerald), var(--emerald-d)); border-top: 3px solid var(--lime); overflow: hidden; }
.sucesso:focus { outline: none; }
.sucesso__xadrez {
  position: absolute; top: 0; right: 0; width: 45%; height: 100%; opacity: 0.12; pointer-events: none;
  background: repeating-conic-gradient(var(--paper) 0 25%, transparent 0 50%) 0 0 / 28px 28px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000); mask-image: linear-gradient(90deg, transparent, #000);
}
.sucesso__numero { margin: 20px 0 0; font-family: var(--ff-mono); font-size: 0.875rem; letter-spacing: 0.08em; color: var(--paper-2); }
.sucesso__numero strong { display: block; margin-top: 6px; font-size: 1.75rem; color: var(--lime); letter-spacing: 0.04em; }

/* ------------------------------------------------------------ FAQ */
.faq { padding: 0 var(--gutter) clamp(80px, 12vw, 160px); }
.faq__lista { max-width: var(--max); margin: 48px auto 0; border-bottom: 1px solid var(--linha); }
.faq__item { border-top: 1px solid var(--linha); }
.faq__item summary {
  position: relative;
  display: flex; align-items: center;
  min-height: 72px;
  padding: 20px 56px 20px 0;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: clamp(1.125rem, 1rem + 0.6vw, 1.5rem);
  line-height: 1.15;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
  transition: color 0.25s var(--ease);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::before,
.faq__item summary::after {
  content: ""; position: absolute; right: 8px; top: 50%;
  width: 18px; height: 2px; margin-top: -1px;
  background: var(--lime);
  transition: transform 0.35s var(--ease);
}
.faq__item summary::after { transform: rotate(90deg); }
.faq__item[open] summary::after { transform: rotate(0deg); }
.faq__item summary:hover, .faq__item[open] summary { color: var(--lime); }
.faq__resposta { padding: 0 56px 28px 0; color: var(--paper-2); }
.faq__resposta p { margin: 0; max-width: 72ch; text-wrap: pretty; }
.faq__resposta p + p { margin-top: 12px; }
.faq__resposta strong { color: var(--paper); }
.faq__resposta a { color: var(--paper); text-decoration-color: var(--lime); text-underline-offset: 3px; }
@media (max-width: 639px) { .faq__resposta { padding-right: 0; } }
.js-motion .faq__item[open] .faq__resposta { animation: faq-abre 0.4s var(--ease); }
@keyframes faq-abre { from { opacity: 0; transform: translateY(-6px); } }

.faq__suporte {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  max-width: var(--max); margin: 56px auto 0;
  padding: clamp(24px, 4vw, 40px);
  background: linear-gradient(160deg, var(--emerald), var(--emerald-d));
  border-top: 3px solid var(--lime);
}
.faq__suporte-titulo { margin: 10px 0 0; font-family: var(--ff-display); font-weight: 700; font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); line-height: 1; text-transform: uppercase; }
.faq__suporte-texto { margin: 10px 0 0; color: var(--paper-2); }
.faq__numero { color: var(--lime); font-family: var(--ff-mono); white-space: nowrap; text-decoration: none; }
.faq__numero:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 479px) { .faq__suporte .btn { width: 100%; } }

/* ------------------------------------------------------------ rodapé */
.rodape { display: grid; gap: 12px; justify-items: center; padding: 56px var(--gutter) 64px; border-top: 1px solid var(--linha); text-align: center; color: var(--paper-3); font-size: 0.875rem; }
.rodape__logo img { width: 200px; height: auto; }

/* Selo do campeonato: logo da Scuderia + "E-sports Cup" (sem marca Caterham). */
.marca { display: inline-flex; align-items: center; gap: 12px; }
.marca picture { display: block; }
.marca__tag {
  padding-left: 12px; border-left: 1px solid var(--linha-forte);
  font-family: var(--ff-display); font-weight: 700; font-size: 1rem; line-height: 1;
  letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; color: var(--lime);
}
.marca--rodape .marca__tag { font-size: 1.125rem; }
@media (max-width: 639px) {
  .marca { gap: 8px; }
  .marca__tag { padding-left: 8px; font-size: 0.75rem; }
  .topo .marca__logo img { width: 104px; }
}
.rodape p { margin: 0; max-width: 60ch; }
.rodape a { color: var(--paper-2); text-underline-offset: 3px; }

/* ------------------------------------------------------------ motion (só com JS e sem reduced-motion) */
.js-motion [data-entra] { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js-motion .hero__titulo .linha[data-entra] { transform: translateY(0.4em); clip-path: inset(0 0 100% 0); transition: transform 1s var(--ease), clip-path 1s var(--ease), opacity 0.4s; }
.js-motion.is-pronto [data-entra],
.js-motion.is-pronto .hero__titulo .linha[data-entra] { opacity: 1; transform: none; clip-path: inset(-10% -10% -20% -10%); }
.js-motion.is-pronto [data-entra]:nth-child(1) { transition-delay: 0.15s; }
.js-motion.is-pronto .hero__titulo .linha:nth-child(1) { transition-delay: 0.25s; }
.js-motion.is-pronto .hero__titulo .linha:nth-child(2) { transition-delay: 0.37s; }
.js-motion.is-pronto .hero__lead { transition-delay: 0.55s; }
.js-motion.is-pronto .acoes { transition-delay: 0.65s; }
.js-motion.is-pronto .telemetria { transition-delay: 0.8s; }
.js-motion .hero__linhas { transform: scaleX(0); transition: transform 1.6s var(--ease-io) 0.4s; }
.js-motion.is-pronto .hero__linhas { transform: scaleX(1); }

.js-motion [data-revela] { opacity: 0; transform: translateY(36px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js-motion [data-revela].is-in { opacity: 1; transform: none; }
.js-motion .premio__foto[data-revela] { transform: none; clip-path: inset(0 100% 0 0); transition: clip-path 1.1s var(--ease-io), opacity 0.3s; }
.js-motion .premio__foto[data-revela].is-in { clip-path: inset(0 0 0 0); }
.js-motion .premio__foto--real[data-revela].is-in { transition-delay: 0.25s; }
.js-motion .premio__foto img { transform: scale(1.12); transition: transform 1.6s var(--ease); }
.js-motion .premio__foto.is-in img { transform: scale(1); }
.js-motion .trajeto li[data-revela]::before { --p: 0; transition: transform 1s var(--ease-io); }
.js-motion .trajeto li[data-revela].is-in::before { --p: 1; }
.js-motion .trajeto li:nth-child(2).is-in, .js-motion .trajeto li:nth-child(2).is-in::before { transition-delay: 0.12s; }
.js-motion .trajeto li:nth-child(3).is-in, .js-motion .trajeto li:nth-child(3).is-in::before { transition-delay: 0.24s; }
.js-motion .trajeto li:nth-child(4).is-in, .js-motion .trajeto li:nth-child(4).is-in::before { transition-delay: 0.36s; }
.js-motion .cat[data-revela]:nth-child(2).is-in { transition-delay: 0.12s; }
