:root {
  /* Tokens da marca RGT (dark) */
  --bg: #0A0A0A;
  --card: #141414;
  --card-2: #1C1C1C;
  --txt: #F5F5F3;
  --muted: #9CA3AF;
  --border: #262626;

  --indigo: #4338CA;
  --indigo-hover: #3730A3;
  --indigo-light: #818CF8;
  --accent-surface: #1E1B4B;
  --accent-fg: #C7D2FE;

  --ok: #22C55E;
  --danger: #EF4444;
  --radius: 12px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--txt);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 480px;
  margin: 0 auto;
  padding: 20px 16px 48px;
}

.topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 2px 22px;
}
.logo { height: 48px; width: auto; display: block; }
.badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  background: #3a2a00;
  color: #ffc14d;
  border: 1px solid #5a4400;
  padding: 3px 9px;
  border-radius: 999px;
}

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

/* Produto */
.produto h1 { font-size: 21px; line-height: 1.25; margin: 0 0 8px; font-weight: 700; }
.desc { color: var(--muted); margin: 0 0 16px; font-size: 14px; }

.beneficios {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 9px;
}
.beneficios li {
  position: relative;
  padding-left: 26px;
  font-size: 14px;
  color: var(--txt);
}
.beneficios li::before {
  content: "";
  position: absolute;
  left: 0; top: 3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6 9 17l-5-5'/></svg>") center/10px no-repeat,
    var(--indigo);
}

.preco {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.preco-bloco { display: flex; flex-direction: column; }
.preco-label { color: var(--muted); font-size: 12px; }
.preco strong { font-size: 30px; color: var(--txt); font-weight: 800; letter-spacing: -.5px; }
.preco-parcela { color: var(--indigo-light); font-size: 13px; font-weight: 500; }

/* Form */
h2 { font-size: 15px; margin: 18px 0 12px; font-weight: 600; }
.card > h2:first-child { margin-top: 0; }

label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 13px;
  font-weight: 500;
}
input, select {
  width: 100%;
  margin-top: 6px;
  padding: 12px 13px;
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--txt);
  font-size: 16px;
  font-family: inherit;
  transition: border-color .12s, box-shadow .12s;
}
input::placeholder { color: #5b5b5b; }
input:focus, select:focus {
  outline: none;
  border-color: var(--indigo-light);
  box-shadow: 0 0 0 3px rgba(129, 140, 248, .15);
}

.linha { display: flex; gap: 10px; }
.linha > label { flex: 1; }

.metodos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.metodo {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 13px;
  cursor: pointer;
  color: var(--txt);
  font-size: 14px;
  font-weight: 500;
  transition: border-color .12s, background .12s;
}
.metodo input { width: auto; margin: 0; accent-color: var(--indigo-light); }
.metodo:has(input:checked) {
  border-color: var(--indigo-light);
  background: var(--accent-surface);
  color: var(--accent-fg);
}

.nota { font-size: 12px; color: var(--muted); margin: 6px 0 0; }
.termos { font-size: 12px; color: var(--muted); margin: 18px 0; }

.btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 16px;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  color: #fff;
  background: var(--indigo);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background .14s, transform .05s;
}
.btn:hover { background: var(--indigo-hover); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: progress; }
.ico-lock { width: 15px; height: 15px; fill: currentColor; flex: none; }

.erro {
  color: var(--danger);
  font-size: 14px;
  margin-top: 12px;
  text-align: center;
}

/* Rodapé */
.rodape { text-align: center; margin-top: 10px; }
.seguro {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 8px;
}
.seguro strong { color: var(--txt); }
.seguro .ico-lock { width: 13px; height: 13px; fill: var(--indigo-light); }
.empresa { color: #5b5b5b; font-size: 11px; margin: 0; line-height: 1.5; }

.hidden { display: none !important; }

/* Resultado */
.resultado-titulo { font-size: 19px; margin: 0 0 14px; font-weight: 700; }
.qr {
  display: block;
  width: 220px; height: 220px;
  margin: 14px auto;
  background: #fff;
  border-radius: 12px;
  padding: 10px;
}
.copia { display: flex; gap: 8px; margin-top: 10px; }
.copia input { font-size: 12px; margin-top: 0; }
.copia button {
  white-space: nowrap;
  padding: 0 16px;
  background: var(--accent-surface);
  border: 1px solid var(--border);
  color: var(--accent-fg);
  border-radius: 9px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
}
.status-aguardando { color: #ffc14d; font-weight: 600; margin-top: 14px; }
.status-ok { color: var(--ok); font-weight: 700; }
.link-boleto {
  display: inline-block;
  margin-top: 12px;
  padding: 11px 18px;
  background: var(--indigo);
  color: #fff;
  border-radius: 9px;
  text-decoration: none;
  font-weight: 600;
}
.spinner {
  display: inline-block;
  width: 13px; height: 13px;
  border: 2px solid #ffc14d;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin .8s linear infinite;
  vertical-align: middle;
  margin-right: 7px;
}
@keyframes spin { to { transform: rotate(360deg); } }
