/* Staffobrabo — site do beta. Mesma paleta do painel (apps/web/app/globals.css), sem fontes
   externas (CSP fechada e nada de rastreamento de terceiros). */
:root {
  --bg: #07080a;
  --bg-elevado: #0c0d10;
  --superficie: #12141a;
  --superficie-2: #181b22;
  --borda: #1e222b;
  --borda-forte: #2a303c;
  --texto: #f4f6f8;
  --texto-suave: #a3abb8;
  --texto-fraco: #6f7785;
  --acento: #ff3b00;
  --acento-claro: #ff5c2e;
  --acento-fundo: rgba(255, 59, 0, 0.12);
  --ok: #3ba55c;
  --aviso: #f0b232;
  --perigo: #ff6369;
  --raio: 14px;
  --raio-pequeno: 10px;
  --sombra: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
  --fonte: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fonte-mono: ui-monospace, "SFMono-Regular", "Cascadia Code", Menlo, Consolas, monospace;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--texto);
  font-family: var(--fonte);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}
p {
  margin: 0;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--acento-claro);
  outline-offset: 3px;
  border-radius: 6px;
}

.envoltorio {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
.envoltorio-estreito {
  max-width: 760px;
}

.pular {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--acento);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 50;
  text-decoration: none;
}
.pular:focus {
  top: 12px;
}

.faixa-provisoria {
  background: repeating-linear-gradient(-45deg, #3a2a00, #3a2a00 12px, #2c2000 12px, #2c2000 24px);
  color: var(--aviso);
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
}

/* ---------- topo ---------- */
.topo {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(7, 8, 10, 0.78);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--borda);
}
.topo-interno {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 750;
  font-size: 18px;
  letter-spacing: -0.03em;
}
.logo-marca {
  width: 30px;
  height: 30px;
  flex: none;
}
.logo-marca rect {
  fill: var(--acento);
}
.logo-marca path {
  fill: none;
  stroke: #fff;
  stroke-width: 3;
  stroke-linecap: round;
}
.logo-pequeno {
  font-size: 15px;
}
.logo-pequeno .logo-marca {
  width: 24px;
  height: 24px;
}

/* ---------- botões ---------- */
.botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 650;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, transform 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}
.botao:active {
  transform: translateY(1px);
}
.botao-primario {
  background: var(--acento);
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(255, 59, 0, 0.65);
}
.botao-primario:hover {
  background: var(--acento-claro);
}
.botao-primario[disabled] {
  opacity: 0.65;
  cursor: progress;
}
.botao-fantasma {
  color: var(--texto);
  border-color: var(--borda-forte);
  background: transparent;
}
.botao-fantasma:hover {
  background: var(--superficie);
}
.botao-contorno {
  border-color: rgba(255, 59, 0, 0.5);
  color: var(--texto);
}
.botao-contorno:hover {
  background: var(--acento-fundo);
  border-color: var(--acento);
}
.botao-pequeno {
  min-height: 38px;
  padding: 0 16px;
  font-size: 14px;
}
.botao-largo {
  width: 100%;
}

/* ---------- herói ---------- */
.heroi {
  position: relative;
  padding: 72px 0 56px;
  isolation: isolate;
}
.heroi::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 55% at 78% 30%, rgba(255, 59, 0, 0.18), transparent 70%),
    linear-gradient(var(--borda) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, var(--borda) 1px, transparent 1px) 0 0 / 48px 48px;
  mask-image: radial-gradient(80% 80% at 50% 30%, #000 40%, transparent 85%);
  -webkit-mask-image: radial-gradient(80% 80% at 50% 30%, #000 40%, transparent 85%);
  opacity: 0.9;
}
.heroi-grade {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 56px;
  align-items: center;
}
.selo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 10px;
  border: 1px solid rgba(255, 59, 0, 0.4);
  background: var(--acento-fundo);
  color: #ffb79e;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.01em;
}
.selo-ponto {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--acento);
  box-shadow: 0 0 0 0 rgba(255, 59, 0, 0.6);
  animation: pulso 2.2s infinite;
}
@keyframes pulso {
  70% {
    box-shadow: 0 0 0 8px rgba(255, 59, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 59, 0, 0);
  }
}
.heroi h1 {
  margin-top: 20px;
  font-size: clamp(36px, 5.6vw, 62px);
  font-weight: 800;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.subtitulo {
  margin-top: 20px;
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--texto-suave);
  max-width: 600px;
  text-wrap: pretty;
}
.acoes {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.nota {
  margin-top: 16px;
  font-size: 14px;
  color: var(--texto-fraco);
}

/* janela ilustrativa */
.janela {
  background: linear-gradient(180deg, var(--superficie), var(--bg-elevado));
  border: 1px solid var(--borda-forte);
  border-radius: 18px;
  box-shadow: var(--sombra), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  overflow: hidden;
  transform: rotate(1.2deg);
}
.janela-topo {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--borda);
  font-size: 13px;
  color: var(--texto-suave);
}
.janela-topo span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--borda-forte);
}
.janela-topo b {
  margin-left: 10px;
  font-family: var(--fonte-mono);
  font-weight: 500;
}
.janela-lista {
  list-style: none;
  margin: 0;
  padding: 10px;
}
.janela-lista li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  font-size: 14px;
}
.janela-lista li:nth-child(odd) {
  background: rgba(255, 255, 255, 0.025);
}
.lt {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ld {
  color: var(--texto-fraco);
  font-size: 13px;
  font-family: var(--fonte-mono);
}
.ponto {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}
.ponto-ok {
  background: var(--ok);
}
.ponto-aviso {
  background: var(--aviso);
}
.ponto-acento {
  background: var(--acento);
}
.janela-barras {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 84px;
  padding: 12px 22px 20px;
  border-top: 1px solid var(--borda);
}
.janela-barras i {
  flex: 1;
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, rgba(255, 59, 0, 0.9), rgba(255, 59, 0, 0.25));
}
.janela-barras i:nth-child(1) { height: 38%; }
.janela-barras i:nth-child(2) { height: 55%; }
.janela-barras i:nth-child(3) { height: 46%; }
.janela-barras i:nth-child(4) { height: 72%; }
.janela-barras i:nth-child(5) { height: 64%; }
.janela-barras i:nth-child(6) { height: 88%; }
.janela-barras i:nth-child(7) { height: 100%; }

/* ---------- seções ---------- */
.secao {
  padding: 56px 0;
}
section[id] {
  scroll-margin-top: 64px; /* altura do topo fixo */
}
.secao h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 780;
  text-wrap: balance;
}

.grade-cartoes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.cartao {
  background: var(--superficie);
  border: 1px solid var(--borda);
  border-radius: var(--raio);
  padding: 26px;
  transition: border-color 0.2s, transform 0.2s;
}
.cartao:hover {
  border-color: var(--borda-forte);
  transform: translateY(-2px);
}
.cartao-icone {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--acento-fundo);
  border: 1px solid rgba(255, 59, 0, 0.3);
  margin-bottom: 18px;
}
.cartao-icone svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--acento-claro);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cartao-icone svg circle {
  fill: var(--acento-claro);
  stroke: none;
}
.cartao h3 {
  font-size: 19px;
  font-weight: 700;
}
.cartao p {
  margin-top: 8px;
  color: var(--texto-suave);
  font-size: 15px;
}

/* prova */
.prova {
  margin: 0;
  position: relative;
  padding: 40px clamp(24px, 5vw, 56px);
  border-radius: 20px;
  border: 1px solid var(--borda);
  background:
    radial-gradient(70% 120% at 0% 0%, rgba(255, 59, 0, 0.14), transparent 60%),
    var(--bg-elevado);
}
.rotulo {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--acento-claro);
}
.prova blockquote {
  margin: 14px 0 0;
}
.prova blockquote p {
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -0.015em;
  text-wrap: pretty;
  max-width: 860px;
}
.selos-prova {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.selos-prova li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(88, 101, 242, 0.5);
  background: rgba(88, 101, 242, 0.12);
  color: #c9cdfb;
  font-size: 14px;
  font-weight: 650;
}
.selos-prova li::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #5865f2 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6.5 12.5 3.5 3.5 7.5-8' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.prova figcaption {
  margin-top: 18px;
  color: var(--texto-suave);
  font-size: 15px;
}

/* passos */
.passos {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  counter-reset: passo;
}
.passo {
  position: relative;
  padding: 22px;
  border-radius: var(--raio);
  border: 1px solid var(--borda);
  background: var(--superficie);
}
.passo-num {
  display: block;
  font-family: var(--fonte-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--acento-claro);
  margin-bottom: 14px;
}
.passo h3 {
  font-size: 17px;
  font-weight: 700;
}
.passo p {
  margin-top: 6px;
  color: var(--texto-suave);
  font-size: 15px;
}

/* formulário */
.secao-form {
  padding-top: 72px;
  padding-bottom: 72px;
  background: linear-gradient(180deg, transparent, rgba(255, 59, 0, 0.05) 40%, transparent);
  border-top: 1px solid var(--borda);
  border-bottom: 1px solid var(--borda);
}
.form-grade {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 48px;
  align-items: start;
}
.form-intro {
  position: sticky;
  top: 96px;
}
.form-intro p {
  margin-top: 14px;
  color: var(--texto-suave);
  font-size: 17px;
}
.form-caixa {
  background: var(--superficie);
  border: 1px solid var(--borda-forte);
  border-radius: 20px;
  padding: clamp(20px, 3.5vw, 32px);
  box-shadow: var(--sombra);
}
.grade-campos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 16px;
}
.campo {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.campo-largo,
.campo-check,
.campo[data-campo="convite"] {
  grid-column: 1 / -1;
}
fieldset.campo {
  border: 0;
  margin: 0;
  padding: 0;
}
fieldset.campo legend {
  padding: 0;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
}
.opcoes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.opcao {
  position: relative;
  cursor: pointer;
}
.opcao input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.opcao span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--borda-forte);
  background: var(--bg-elevado);
  font-size: 15px;
  font-weight: 600;
  color: var(--texto-suave);
  transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}
.opcao:hover span {
  border-color: #3a4150;
  color: var(--texto);
}
.opcao input:checked + span {
  border-color: var(--acento);
  background: var(--acento-fundo);
  color: #fff;
}
.opcao input:focus-visible + span {
  outline: 2px solid var(--acento-claro);
  outline-offset: 2px;
}
.campo.com-erro .opcao span {
  border-color: var(--perigo);
}
.campo label {
  font-size: 14px;
  font-weight: 600;
}
.obrig {
  color: var(--acento-claro);
}
.dica {
  font-size: 13px;
  color: var(--texto-fraco);
}
.campo input[type="text"],
.campo input[type="email"],
.campo select,
.campo textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border-radius: var(--raio-pequeno);
  border: 1px solid var(--borda-forte);
  background: var(--bg-elevado);
  color: var(--texto);
  font: inherit;
  font-size: 16px; /* evita zoom no iOS */
  transition: border-color 0.15s, box-shadow 0.15s;
}
.campo textarea {
  resize: vertical;
  min-height: 108px;
}
.campo input::placeholder,
.campo textarea::placeholder {
  color: var(--texto-fraco);
}
.campo input:hover,
.campo select:hover,
.campo textarea:hover {
  border-color: #3a4150;
}
.campo input:focus,
.campo select:focus,
.campo textarea:focus {
  outline: none;
  border-color: var(--acento);
  box-shadow: 0 0 0 3px rgba(255, 59, 0, 0.2);
}
.select {
  position: relative;
}
.select::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--texto-suave);
  border-bottom: 2px solid var(--texto-suave);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.campo select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  cursor: pointer;
}
.campo select:invalid {
  color: var(--texto-fraco);
}
.campo select option {
  color: var(--texto);
  background: var(--superficie);
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 500 !important;
  font-size: 14px !important;
  color: var(--texto-suave);
  cursor: pointer;
}
.check input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  flex: none;
  accent-color: var(--acento);
  cursor: pointer;
}
.campo.com-erro input,
.campo.com-erro select,
.campo.com-erro textarea {
  border-color: var(--perigo);
}
.erro-campo {
  font-size: 13px;
  color: var(--perigo);
}
.aviso-form {
  margin: 18px 0 0;
  padding: 12px 14px;
  border-radius: var(--raio-pequeno);
  border: 1px solid rgba(255, 99, 105, 0.4);
  background: rgba(255, 99, 105, 0.08);
  color: #ffb3b6;
  font-size: 14px;
}
.formulario .botao-largo {
  margin-top: 22px;
}
.isca {
  position: absolute !important;
  left: -10000px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.sucesso {
  text-align: center;
  padding: 32px 8px;
}
.sucesso:focus {
  outline: none;
}
.sucesso-icone {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(59, 165, 92, 0.14);
  border: 1px solid rgba(59, 165, 92, 0.45);
}
.sucesso-icone svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--ok);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sucesso h3,
.sucesso h1 {
  font-size: 24px;
  font-weight: 750;
}
.sucesso p {
  margin-top: 10px;
  color: var(--texto-suave);
}
.sucesso .botao {
  margin-top: 24px;
}
.sucesso-erro h1 {
  color: #ffb3b6;
}

/* FAQ */
.perguntas {
  margin-top: 28px;
  border-top: 1px solid var(--borda);
}
.pergunta {
  border-bottom: 1px solid var(--borda);
}
.pergunta summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 4px;
  font-size: 17px;
  font-weight: 650;
  cursor: pointer;
}
.pergunta summary::-webkit-details-marker {
  display: none;
}
.pergunta summary:hover {
  color: #fff;
}
.mais {
  position: relative;
  width: 14px;
  height: 14px;
  flex: none;
}
.mais::before,
.mais::after {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--acento-claro);
  transition: transform 0.2s;
}
.mais::after {
  transform: rotate(90deg);
}
.pergunta[open] .mais::after {
  transform: rotate(0deg);
}
.pergunta p {
  padding: 0 4px 22px;
  color: var(--texto-suave);
  max-width: 680px;
}

/* rodapé */
.rodape {
  border-top: 1px solid var(--borda);
  padding: 28px 0 36px;
}
.rodape-interno {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.rodape p {
  font-size: 14px;
  color: var(--texto-fraco);
}

/* página de resultado (envio sem JavaScript) */
.resultado {
  padding-top: 48px;
  padding-bottom: 48px;
}
.resultado .sucesso {
  margin-top: 40px;
  border: 1px solid var(--borda-forte);
  border-radius: 20px;
  background: var(--superficie);
  padding: 40px 24px;
}

/* ---------- responsivo ---------- */
@media (max-width: 960px) {
  .heroi-grade {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  .janela {
    max-width: 520px;
    transform: none;
  }
  .passos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .form-grade {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .form-intro {
    position: static;
  }
}
@media (max-width: 720px) {
  .grade-cartoes {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 560px) {
  .envoltorio {
    padding: 0 16px;
  }
  .heroi {
    padding: 44px 0 32px;
  }
  .acoes .botao {
    flex: 1 1 100%;
  }
  .secao {
    padding: 40px 0;
  }
  .passos,
  .grade-campos {
    grid-template-columns: minmax(0, 1fr);
  }
  .topo .botao-pequeno {
    padding: 0 12px;
    font-size: 13px;
  }
  .janela-barras {
    height: 64px;
  }
}
@media (max-width: 380px) {
  .topo .botao-pequeno {
    display: none;
  }
}
