/* Base visual das páginas de Pix. A cor vem do cliente, via --marca / --marca-2,
   que o gerador escreve no <html style="..."> de cada página. */
:root {
  --bg: #000;
  --card: #0e0e0e;
  --line: rgba(255, 255, 255, 0.14);
  --text: #f5f5f5;
  --muted: #8e8e8e;
  --ok: #27c08a;
  --marca: #ed1e24;
  --marca-2: #28a0c5;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: 20px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--text); font-family: var(--sans);
  min-height: 100dvh; padding: 28px var(--gutter) 40px;
  display: flex; flex-direction: column; align-items: center;
  -webkit-font-smoothing: antialiased;
}
.wrap { width: 100%; max-width: 440px; }

.logo { display: block; width: 100%; max-width: 330px; margin: 0 auto 18px; height: auto; }

.xadrez {
  height: 14px; border-radius: 2px; background-color: #111;
  background-image:
    linear-gradient(45deg, #fff 25%, transparent 25%, transparent 75%, #fff 75%),
    linear-gradient(45deg, #fff 25%, transparent 25%, transparent 75%, #fff 75%);
  background-size: 14px 14px; background-position: 0 0, 7px 7px;
}

/* Faixa nas cores da marca: no lugar do xadrez de corrida quando o config traz "xadrez": false. */
.faixa-marca { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--marca), var(--marca-2)); margin-bottom: 6px; }

h1 {
  margin: 22px 0 6px; text-align: center; font-size: 30px; font-weight: 900;
  font-style: italic; letter-spacing: -0.5px; line-height: 1.05;
}
h1 em { font-style: italic; color: var(--marca-2); }
.sub {
  text-align: center; color: var(--muted); font-size: 14px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase; margin-bottom: 24px;
}

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  padding: 22px; margin-bottom: 16px;
}

label, .rotulo {
  display: block; font-size: 12px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--muted); margin-bottom: 10px;
}

.valor-linha { display: flex; align-items: center; gap: 10px; }
.valor-linha > span { font-size: 26px; font-weight: 900; color: var(--muted); }
input[type='text'] {
  flex: 1; min-width: 0; background: #000; border: 2px solid var(--line);
  border-radius: 14px; padding: 14px 16px; color: var(--text);
  font-family: var(--sans); font-size: 26px; font-weight: 900; letter-spacing: -0.5px;
}
input[type='text']:focus { outline: none; border-color: var(--marca-2); }
.dica { margin-top: 10px; font-size: 13px; color: var(--muted); line-height: 1.45; }

.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; border: 0; border-radius: 16px; padding: 19px 18px;
  font-family: var(--sans); font-size: 17px; font-weight: 900; letter-spacing: 0.5px;
  color: #fff; background: var(--marca); cursor: pointer; margin-bottom: 12px;
  text-decoration: none;
  transition: transform 0.12s ease, background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.98); }
.btn.feito { background: var(--ok); }
.btn.zap { background: #25d366; color: #06301a; }
.btn.fantasma { background: transparent; border: 2px solid var(--line); color: var(--text); }

.qr-area { text-align: center; }
.qr-box {
  width: 230px; height: 230px; margin: 0 auto; background: #fff;
  border-radius: 16px; padding: 12px; display: grid; place-items: center;
}
.qr-box canvas, .qr-box img { display: block; width: 100% !important; height: 100% !important; }
.qr-legenda { margin-top: 14px; font-size: 13px; color: var(--muted); line-height: 1.5; }

.valor-destaque {
  text-align: center; font-size: 44px; font-weight: 900; letter-spacing: -1px;
  margin-bottom: 4px;
}
.valor-destaque small { font-size: 22px; color: var(--muted); margin-right: 4px; }

.chave { display: flex; align-items: baseline; justify-content: center; gap: 8px; flex-wrap: wrap; }
.chave b { font-size: 20px; font-weight: 900; letter-spacing: 0.5px; }
.chave small {
  font-size: 12px; color: var(--muted); font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
}

.passos { counter-reset: p; }
.passos li {
  list-style: none; display: flex; gap: 12px; align-items: flex-start;
  padding: 9px 0; font-size: 14px; line-height: 1.5; color: #d8d8d8;
}
.passos li > span { flex: 1; min-width: 0; }
.passos li:before {
  counter-increment: p; content: counter(p);
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--marca); color: #fff; font-size: 13px; font-weight: 900;
  display: grid; place-items: center; margin-top: 1px;
}

.rodape {
  margin-top: 26px; text-align: center; font-size: 11px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase; color: #4a4a4a;
}
.rodape a { color: #6a6a6a; text-decoration: none; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  .btn:active { transform: none; }
}
