/* ===========================================================
   Apoie o Ticord — visual em preto e branco.
   Mesmo layout de checkout (cartão flutuante, indicador de
   etapas, ícones em SVG, etapa de Termos e comprovante final),
   sem nenhuma cor: só preto, branco e tons de cinza.
   =========================================================== */

@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&family=Inter:wght@400;500;600;700&display=swap");

:root {
  --preto: #000000;
  --preto-forte: #000000;
  --preto-fraco: rgba(0, 0, 0, 0.06);

  --fundo-1: #050505;
  --fundo-2: #1a1a1a;
  --fundo-3: #2c2c2c;

  --cartao: #ffffff;
  --texto: #111111;
  --texto-suave: #565656;
  --texto-fraco: #969696;
  --linha: #e7e7e7;
  --linha-forte: #d6d6d6;

  --ok: #111111;
  --ok-fraco: rgba(17, 17, 17, 0.06);
  --erro: #111111;
  --erro-fraco: rgba(17, 17, 17, 0.08);

  --fonte-titulo: "Manrope", "Segoe UI", Arial, sans-serif;
  --fonte-corpo: "Inter", "Segoe UI", Arial, sans-serif;

  --raio: 18px;
  --raio-pequeno: 10px;
  --largura-maxima: 440px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--fonte-corpo);
  color: var(--texto);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(900px 500px at 15% -10%, rgba(255, 255, 255, 0.06), transparent 60%),
    radial-gradient(700px 500px at 100% 10%, rgba(255, 255, 255, 0.04), transparent 55%),
    linear-gradient(180deg, var(--fundo-1) 0%, var(--fundo-2) 55%, var(--fundo-3) 100%);
  background-attachment: fixed;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.envolucro {
  max-width: var(--largura-maxima);
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

h1, h2, h3 {
  font-family: var(--fonte-titulo);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  color: var(--texto);
  text-align: center;
}

h1 { font-size: 1.5rem; }

.etapa > p.descricao {
  margin: 0 0 26px;
  color: var(--texto-suave);
  text-align: center;
  font-size: 0.95rem;
}

.rotulo {
  font-size: 0.76rem;
  color: var(--texto);
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

/* ---------- cabeçalho ---------- */

.cabecalho-apoio {
  padding: 32px 0 8px;
  display: flex;
  justify-content: center;
}
.cabecalho-apoio img { height: 24px; width: auto; opacity: 0.92; filter: grayscale(100%) brightness(1.4); }

/* ---------- página ---------- */

main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px 0 56px;
  position: relative;
}

/* ---------- cartão principal ---------- */

.cartao {
  position: relative;
  width: 100%;
  background: var(--cartao);
  color: var(--texto);
  border-radius: var(--raio);
  padding: 30px 26px 28px;
  margin: 10px 0;
  border: 1px solid #000000;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.etapa { display: none; }
.etapa.ativa { display: block; }

/* ---------- indicador de etapas ---------- */

.indicador-etapas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 22px;
}
.indicador-etapas .ponto {
  height: 5px;
  width: 26px;
  border-radius: 999px;
  background: var(--linha);
  transition: background 0.2s ease;
}
.indicador-etapas .ponto.feita { background: var(--texto); }
.indicador-etapas .ponto.atual { background: var(--preto); }

/* ---------- ícone de seção (SVG, sem emoji) ---------- */

.icone-secao {
  width: 46px;
  height: 46px;
  margin: 0 auto 14px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--preto-fraco);
  color: var(--texto);
  border: 1px solid var(--linha-forte);
}
.icone-secao svg { width: 22px; height: 22px; }

/* ---------- termos ---------- */

.lista-termos {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lista-termos li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.88rem;
  color: var(--texto-suave);
}
.lista-termos svg {
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  margin-top: 2px;
  color: var(--texto);
}
.lista-termos strong { color: var(--texto); }

.caixa-sem-reembolso {
  background: var(--erro-fraco);
  border: 1px solid #000000;
  border-radius: var(--raio-pequeno);
  padding: 13px 15px;
  font-size: 0.85rem;
  color: var(--texto);
  margin-bottom: 22px;
}
.caixa-sem-reembolso strong { color: #000000; }

.aceite-termos {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 4px;
  border-top: 1px solid var(--linha);
  margin-bottom: 4px;
  cursor: pointer;
}
.aceite-termos input {
  margin-top: 3px;
  width: 17px;
  height: 17px;
  accent-color: #000000;
  cursor: pointer;
  flex-shrink: 0;
}
.aceite-termos span {
  font-size: 0.86rem;
  color: var(--texto-suave);
}
.aceite-termos a { color: var(--texto); font-weight: 600; text-decoration: underline; }

/* ---------- valores rápidos ---------- */

.valores-rapidos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 4px 0 20px;
}

.valor-rapido {
  padding: 11px 6px;
  border-radius: var(--raio-pequeno);
  border: 1.5px solid var(--linha-forte);
  background: #ffffff;
  color: var(--texto);
  font-family: var(--fonte-corpo);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}
.valor-rapido:hover { border-color: #000000; transform: translateY(-1px); }
.valor-rapido.selecionado {
  border-color: #000000;
  background: #000000;
  color: #ffffff;
}

/* ---------- campos de formulário ---------- */

.campo { margin-bottom: 16px; }

.campo label {
  display: block;
  font-weight: 600;
  font-size: 0.82rem;
  margin-bottom: 6px;
  color: var(--texto-suave);
}

.campo input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--linha-forte);
  border-radius: var(--raio-pequeno);
  font-family: var(--fonte-corpo);
  font-size: 0.96rem;
  background: #fafafa;
  color: var(--texto);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.campo input::placeholder { color: var(--texto-fraco); }

.campo input:focus {
  outline: none;
  border-color: #000000;
  background: #ffffff;
}

.prefixo-valor { position: relative; }
.prefixo-valor span {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--texto-suave);
  font-weight: 700;
  pointer-events: none;
}
.prefixo-valor input {
  padding-left: 36px;
  font-size: 1.05rem;
  font-weight: 700;
}

/* ---------- botões ---------- */

.botao {
  display: block;
  width: 100%;
  padding: 14px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  font-family: var(--fonte-corpo);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.15s ease, opacity .15s ease, background 0.15s ease;
  text-align: center;
  margin-top: 22px;
}

.botao:active { transform: translateY(1px) scale(0.99); }
.botao:disabled { opacity: 0.45; cursor: not-allowed; }

.botao-primario {
  background: #000000;
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}
.botao-primario:hover:not(:disabled) { background: #1a1a1a; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45); }

.botao-fantasma {
  background: transparent;
  color: var(--texto);
  border-color: var(--linha-forte);
}
.botao-fantasma:hover { border-color: #000000; background: var(--preto-fraco); }

/* ---------- mensagens de status ---------- */

.mensagem-status {
  border-radius: var(--raio-pequeno);
  padding: 12px 14px;
  font-size: 0.86rem;
  margin-bottom: 18px;
  display: none;
  text-align: center;
  font-weight: 600;
}
.mensagem-status.erro {
  display: block;
  background: var(--erro-fraco);
  color: var(--texto);
  border: 1px solid #000000;
}

/* ---------- etapa: qr code ---------- */

.qr-caixa {
  position: relative;
  background: #ffffff;
  border: 1.5px solid var(--linha-forte);
  border-radius: var(--raio-pequeno);
  padding: 18px;
  display: flex;
  justify-content: center;
  margin: 4px auto 20px;
  max-width: 220px;
}
.qr-caixa img { width: 100%; height: auto; }

.copia-e-cola {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  margin-bottom: 20px;
  border: 1.5px solid var(--linha-forte);
  border-radius: var(--raio-pequeno);
  background: #fafafa;
}
.copia-e-cola input {
  flex: 1;
  min-width: 0;
  padding: 4px 0;
  border: none;
  background: transparent;
  color: var(--texto-suave);
  font-size: 0.74rem;
  overflow: hidden;
  text-overflow: ellipsis;
}
.copia-e-cola input:focus { outline: none; }
.copia-e-cola button {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 999px;
  border: none;
  background: #000000;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.76rem;
  cursor: pointer;
  transition: background 0.15s ease;
}
.copia-e-cola button:hover { background: #1a1a1a; }

.status-espera {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--texto-suave);
  font-size: 0.88rem;
  font-weight: 600;
}

.giro {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid var(--linha-forte);
  border-top-color: #000000;
  animation: girar 0.8s linear infinite;
  flex-shrink: 0;
}
@keyframes girar { to { transform: rotate(360deg); } }

/* ---------- etapa: comprovante de pagamento ---------- */

.icone-sucesso {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #000000;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.icone-sucesso svg { width: 28px; height: 28px; }

#etapa-comprovante .rotulo { color: var(--texto); }

.comprovante {
  border: 1.5px dashed var(--linha-forte);
  border-radius: var(--raio-pequeno);
  padding: 18px;
  margin: 20px 0 22px;
  background: #fafafa;
}

.comprovante-linha {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--linha);
  font-size: 0.86rem;
}
.comprovante-linha:last-child { border-bottom: none; }
.comprovante-linha .chave { color: var(--texto-suave); }
.comprovante-linha .valor {
  color: var(--texto);
  font-weight: 700;
  text-align: right;
  word-break: break-word;
}
.comprovante-linha .valor.destaque { color: #000000; font-size: 1rem; }

.selo-aprovado {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.82rem;
  background: #000000;
  padding: 3px 10px;
  border-radius: 999px;
}
.selo-aprovado svg { width: 13px; height: 13px; }

.aviso-reembolso {
  font-size: 0.82rem;
  color: var(--texto-suave);
  text-align: center;
  margin: 0 0 4px;
}
.aviso-reembolso strong { color: var(--texto); }

footer.rodape-apoio {
  text-align: center;
  padding: 16px 0 30px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.78rem;
}
footer.rodape-apoio a { color: rgba(255, 255, 255, 0.85); text-decoration: underline; }