:root {
  --bg: #000;
  --card: #111113;
  --borda: #26262a;
  --texto: #f2f2f2;
  --mudo: #9a9aa2;
  --laranja: #f28c1c;
  --laranja2: #d8620a;
  --prata: linear-gradient(180deg, #fff, #b9b9c0);
  --r: 16px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: radial-gradient(ellipse at top, #1b1208 0%, var(--bg) 55%) fixed, var(--bg);
  color: var(--texto);
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
}
.wrap { max-width: 560px; margin: 0 auto; padding: 24px 16px 48px; }
.topo { text-align: center; margin-bottom: 20px; }
.logo { width: 200px; max-width: 70%; height: auto; }
h1 { font-size: 1.35rem; margin-top: 8px; background: var(--prata); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sub { color: var(--mudo); font-size: .92rem; margin-top: 4px; }
.progresso { height: 4px; background: var(--borda); border-radius: 4px; margin-top: 16px; overflow: hidden; position: sticky; top: 0; }
.progresso span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--laranja2), var(--laranja)); transition: width .3s; }

.card { background: var(--card); border: 1px solid var(--borda); border-radius: var(--r); padding: 18px 16px; margin-bottom: 14px; transition: border-color .2s; }
.card.faltando { border-color: #e5484d; }
.card.destaque { border-color: #3a2610; }
h2 { font-size: 1.02rem; font-weight: 650; display: flex; gap: 10px; align-items: center; }
h2 b { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--laranja); color: #000; font-size: .85rem; display: grid; place-items: center; }
.pergunta { color: var(--mudo); font-size: .92rem; margin: 14px 0 8px; }
.aviso { color: var(--laranja); }

.estrelas { display: flex; gap: 6px; margin-top: 12px; }
.estrelas button { flex: 1; aspect-ratio: 1; max-width: 56px; background: #1a1a1d; border: 1px solid var(--borda); border-radius: 12px; cursor: pointer; display: grid; place-items: center; color: #444; transition: transform .1s, color .15s, background .15s; }
.estrelas button svg { width: 60%; height: 60%; fill: currentColor; }
.estrelas button.on { color: var(--laranja); background: #2a1a08; border-color: #5a3510; }
.estrelas button:active { transform: scale(.9); }
@media (hover: hover) {
  /* preenche da 1ª até a estrela sob o mouse, em cascata */
  .estrelas:hover button { color: var(--laranja); background: #2a1a08; border-color: #5a3510; }
  .estrelas button:hover { transform: scale(1.08); }
  .estrelas button:hover ~ button { color: #444; background: #1a1a1d; border-color: var(--borda); transition-delay: 0s; }
  .estrelas:hover button:nth-child(2) { transition-delay: .04s; }
  .estrelas:hover button:nth-child(3) { transition-delay: .08s; }
  .estrelas:hover button:nth-child(4) { transition-delay: .12s; }
  .estrelas:hover button:nth-child(5) { transition-delay: .16s; }
  .nps button:not(.on):hover { background: #ffe3c2; border-color: #ffd0a0; color: #000; }
  .periodos button:not(.on):hover { border-color: #5a3510; }
}
.rotulo { min-height: 1.2em; margin-top: 6px; font-size: .85rem; color: var(--laranja); }

.periodos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.periodos button, .nps button { background: #1a1a1d; border: 1px solid var(--borda); color: var(--texto); border-radius: 12px; cursor: pointer; font: inherit; }
.periodos button { padding: 10px; font-weight: 600; }
.periodos small { display: block; font-weight: 400; color: var(--mudo); font-size: .78rem; }
.periodos button.on, .nps button.on { background: var(--laranja); border-color: var(--laranja); color: #000; }
.periodos button.on small { color: #3a1f00; }

.nps { display: grid; grid-template-columns: repeat(11, 1fr); gap: 4px; }
.nps button { aspect-ratio: 1; font-weight: 700; font-size: .9rem; padding: 0; transition: background .15s, color .15s, border-color .15s; }
.nps-leg { display: flex; justify-content: space-between; color: var(--mudo); font-size: .75rem; margin-top: 6px; }

textarea, input[type=text], input[type=tel] { width: 100%; margin-top: 12px; background: #1a1a1d; border: 1px solid var(--borda); border-radius: 12px; color: var(--texto); font: inherit; padding: 12px; resize: vertical; }
textarea:focus, input:focus { outline: 2px solid var(--laranja); outline-offset: 0; border-color: transparent; }
.hp { position: absolute; left: -9999px; }

.erro { color: #ff6b6b; text-align: center; min-height: 1.2em; margin: 4px 0 10px; font-size: .9rem; }
.enviar { width: 100%; padding: 16px; border: 0; border-radius: 14px; font: 700 1.05rem system-ui, sans-serif; color: #000; background: linear-gradient(180deg, var(--laranja), var(--laranja2)); cursor: pointer; box-shadow: 0 8px 24px rgba(242,140,28,.25); }
.enviar:disabled { opacity: .6; }

.obrigado { text-align: center; padding: 32px 22px 36px; margin: 0; }
.obrigado .logo { width: 170px; margin-bottom: 22px; }
body.fim .wrap { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding-top: 16px; padding-bottom: 16px; }
body.fim .obrigado { width: 100%; }
.check { width: 72px; height: 72px; border-radius: 50%; background: var(--laranja); color: #000; font-size: 2.4rem; font-weight: 800; display: grid; place-items: center; margin: 0 auto 16px; }
.obrigado h2 { justify-content: center; font-size: 1.3rem; margin-bottom: 8px; }
.obrigado p { color: var(--mudo); margin: 10px auto 0; max-width: 420px; }
.obrigado .assina { color: var(--laranja); font-weight: 600; margin-top: 18px; }

@media (max-width: 360px) { .nps { grid-template-columns: repeat(6, 1fr); } }
