/* PRICETAX · Sorteio — design system
   Identidade: navy #0B0B1E, amarelo da marca #FFDD00, Manrope. */
:root {
  --navy: #0B0B1E;
  --navy-2: #12122B;
  --navy-3: #1A1A38;
  --ink: #F4F4F8;
  --ink-2: #B9B9CC;
  --ink-3: #7D7D96;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --yellow: #FFDD00;
  --yellow-2: #F5B800;
  --yellow-ink: #0B0B1E;
  --green: #1FD17A;
  --red: #FF5C7A;
  --glass: rgba(22, 22, 48, .72);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .7), 0 1px 0 rgba(255, 255, 255, .04) inset;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; background: var(--navy); color: var(--ink); }
body {
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; min-height: 100dvh;
  font-feature-settings: "tnum" 0;
}
img { max-width: 100%; display: block; }
a { color: var(--yellow); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
.tnum { font-variant-numeric: tabular-nums; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }

/* ---------- fundo ---------- */
.bg {
  position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(60vmax 50vmax at 85% -10%, rgba(255, 221, 0, .13), transparent 60%),
    radial-gradient(50vmax 40vmax at -10% 110%, rgba(80, 80, 200, .18), transparent 60%),
    var(--navy);
}
.bg::before {
  content: ""; position: absolute; inset: -2px;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(80% 60% at 50% 20%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(80% 60% at 50% 20%, #000 30%, transparent 75%);
}
.bg svg { position: absolute; width: 140vmax; right: -40vmax; top: -6vmax; opacity: .55; }
.bg .trilha { fill: none; stroke: url(#gradTrilha); stroke-width: 1.2; stroke-dasharray: 6 10; animation: fluxo 18s linear infinite; }
@keyframes fluxo { to { stroke-dashoffset: -320; } }

/* ---------- topo ---------- */
.topo { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; max-width: 1180px; margin: 0 auto; }
.topo .logo { height: 30px; width: auto; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); font-size: 13px; font-weight: 700; color: var(--ink-2);
  white-space: nowrap;
}
.pill b { color: var(--ink); }
.pulso { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(31, 209, 122, .6); animation: pulso 2s infinite; }
.pulso.off { background: var(--ink-3); animation: none; }
@keyframes pulso { 70% { box-shadow: 0 0 0 9px rgba(31, 209, 122, 0); } 100% { box-shadow: 0 0 0 0 rgba(31, 209, 122, 0); } }

/* ---------- tipografia ---------- */
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--yellow); }
h1, h2, h3 { margin: 0; letter-spacing: -.025em; line-height: 1.05; }
.destaque { color: var(--yellow); }
.sub { color: var(--ink-2); font-size: 17px; margin: 0; }

/* ---------- botões ---------- */
.btn {
  -webkit-appearance: none; appearance: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 800; font-size: 16px; padding: 15px 22px; border-radius: 14px; text-decoration: none; transition: transform .15s var(--ease), background .2s, opacity .2s, box-shadow .2s;
}
.btn:active { transform: scale(.98); }
.btn-primario { background: var(--yellow); color: var(--yellow-ink); box-shadow: 0 10px 30px -10px rgba(255, 221, 0, .55); }
.btn-primario:hover { background: #FFE53A; }
.btn-primario[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn-sec { background: rgba(255, 255, 255, .06); color: var(--ink); border: 1px solid var(--line-2); }
.btn-sec:hover { background: rgba(255, 255, 255, .1); }
.btn-perigo { background: rgba(255, 92, 122, .12); color: var(--red); border: 1px solid rgba(255, 92, 122, .35); }
.btn-sm { padding: 9px 14px; font-size: 14px; border-radius: 10px; }
.btn-bloco { width: 100%; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: gira .7s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }

/* ---------- cartões ---------- */
.card {
  background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}

/* ---------- formulário ---------- */
.campo { position: relative; margin-bottom: 14px; }
.campo input {
  width: 100%; height: 60px; padding: 24px 16px 8px; border-radius: var(--radius-sm); font-size: 17px; font-weight: 600;
  background: rgba(255, 255, 255, .04); border: 1.5px solid var(--line-2); outline: none; transition: border-color .2s, background .2s;
}
.campo input:focus { border-color: var(--yellow); background: rgba(255, 255, 255, .06); }
.campo label {
  position: absolute; left: 17px; top: 19px; font-size: 16px; color: var(--ink-3); pointer-events: none; font-weight: 600;
  transform-origin: left top; transition: transform .18s var(--ease), color .18s;
}
.campo input:focus + label, .campo input:not(:placeholder-shown) + label { transform: translateY(-11px) scale(.74); color: var(--ink-2); }
.campo.erro input { border-color: var(--red); }
.campo.ok input { border-color: rgba(31, 209, 122, .6); }
.campo .tag {
  position: absolute; right: 12px; top: 18px; font-size: 12px; font-weight: 800; padding: 4px 9px; border-radius: 8px;
  background: rgba(31, 209, 122, .14); color: var(--green); opacity: 0; transform: translateY(4px); transition: .2s var(--ease);
}
.campo .tag.on { opacity: 1; transform: none; }
.campo .msg { font-size: 13px; color: var(--red); margin: 6px 2px 0; min-height: 0; font-weight: 600; }
.campo .dica { font-size: 13px; color: var(--ink-3); margin: 6px 2px 0; }
.link-sutil { background: none; border: 0; padding: 0; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 13px; }

.check { display: flex; gap: 12px; align-items: flex-start; padding: 12px 2px; cursor: pointer; font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check .caixa {
  flex: 0 0 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--line-2); background: rgba(255, 255, 255, .04);
  display: grid; place-items: center; transition: .18s var(--ease); margin-top: 1px;
}
.check .caixa svg { width: 14px; height: 14px; stroke: var(--yellow-ink); stroke-width: 3.2; fill: none; stroke-dasharray: 20; stroke-dashoffset: 20; transition: stroke-dashoffset .25s var(--ease) .05s; }
.check input:checked + .caixa { background: var(--yellow); border-color: var(--yellow); }
.check input:checked + .caixa svg { stroke-dashoffset: 0; }
.check input:focus-visible + .caixa { outline: 2px solid var(--yellow); outline-offset: 3px; }
.check b { color: var(--ink); }
.check.erro .caixa { border-color: var(--red); }

/* ---------- utilidades ---------- */
.rodape { max-width: 1180px; margin: 0 auto; padding: 36px 20px 48px; color: var(--ink-3); font-size: 13px; display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); }
.rodape a { color: var(--ink-2); }
.rodape nav { display: flex; gap: 18px; flex-wrap: wrap; }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); opacity: 0; z-index: 100; max-width: calc(100% - 32px);
  background: #fff; color: var(--navy); font-weight: 700; font-size: 14px; padding: 12px 18px; border-radius: 12px; box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .6);
  transition: .3s var(--ease); pointer-events: none;
}
.toast.on { transform: translate(-50%, 0); opacity: 1; }
.toast.erro { background: var(--red); color: #fff; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- textos (regulamento, privacidade) ---------- */
.doc-pagina { max-width: 820px; margin: 0 auto; padding: 8px 20px 40px; }
.doc-pagina > article { padding: 26px 22px; }
@media (min-width: 700px) { .doc-pagina > article { padding: 40px 48px; } }
.voltar { display: inline-flex; gap: 8px; align-items: center; color: var(--ink-2); text-decoration: none; font-weight: 700; font-size: 14px; }
.texto h1 { font-size: clamp(28px, 6vw, 40px); font-weight: 800; margin: 10px 0 6px; }
.texto .meta { color: var(--ink-3); font-size: 13px; margin: 0 0 22px; }
.texto h2 { font-size: 17px; font-weight: 800; margin: 28px 0 8px; letter-spacing: -.01em; color: var(--ink); }
.texto h2 .n { color: var(--yellow); margin-right: 8px; }
.texto p, .texto li { color: var(--ink-2); font-size: 15px; line-height: 1.65; }
.texto p { margin: 0 0 10px; }
.texto ul, .texto ol { padding-left: 20px; margin: 0 0 10px; }
.texto li { margin-bottom: 6px; }
.texto b, .texto strong { color: var(--ink); }
.texto .quadro { border: 1px solid rgba(255, 221, 0, .3); background: rgba(255, 221, 0, .06); border-radius: 12px; padding: 14px 16px; margin: 14px 0; }
.texto table { width: 100%; border-collapse: collapse; margin: 8px 0 14px; font-size: 14px; }
.texto th, .texto td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); color: var(--ink-2); vertical-align: top; }
.texto th { color: var(--ink); font-weight: 800; }
.texto code { font-size: 13px; background: rgba(255, 255, 255, .06); padding: 2px 6px; border-radius: 5px; word-break: break-all; }
#confete { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 90; }
