@font-face {
  font-family: 'Space Grotesk';
  src: url('/fonts/space-grotesk.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --bg: #060b14;
  --ink: #eef4fb;
  --muted: #8ba0b8;
  --brand: #1f93d6;
  --cyan: #00e0ff;
  --deep: #0d3b66;
  --yellow: #ffd200;
  --glass: rgba(255, 255, 255, .055);
  --glass-b: rgba(255, 255, 255, .12);
  --grad: linear-gradient(92deg, #1f93d6, #00e0ff);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100dvh; background: var(--bg); color: var(--ink);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}

/* ── Fundo: aurora + linhas de velocidade ── */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.orb-a {
  width: 60vmax; height: 60vmax; left: -20vmax; top: -25vmax;
  background: radial-gradient(circle, #0d5c96 0%, transparent 65%);
  animation: drift 16s ease-in-out infinite alternate;
}
.orb-b {
  width: 50vmax; height: 50vmax; right: -18vmax; bottom: -20vmax;
  background: radial-gradient(circle, #00e0ff33 0%, #0d3b6655 40%, transparent 70%);
  animation: drift 20s ease-in-out infinite alternate-reverse;
}
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(6vmax, 4vmax) scale(1.12); }
}
.lines {
  position: absolute; inset: -50%;
  background: repeating-linear-gradient(115deg,
    transparent 0 90px, rgba(255, 255, 255, .022) 90px 92px);
  animation: slide 9s linear infinite;
}
@keyframes slide { to { transform: translateX(180px); } }
@media (prefers-reduced-motion: reduce) {
  .orb, .lines { animation: none; }
}

/* ── Progresso ── */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 40;
  background: rgba(255, 255, 255, .06);
}
.progress .bar {
  height: 100%; width: 0%; background: var(--grad);
  box-shadow: 0 0 12px #00e0ff88; transition: width .35s ease;
}

/* ── Voltar ── */
.backbtn {
  position: fixed; top: 14px; left: 12px; z-index: 40;
  width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--glass-b);
  background: var(--glass); color: var(--ink); font-size: 1.15rem; cursor: pointer;
  backdrop-filter: blur(8px);
}

/* ── Telas ── */
#app {
  max-width: 480px; margin: 0 auto; padding: 26px 22px 40px;
  min-height: calc(100dvh - 60px); display: flex; flex-direction: column;
}
.screen { display: flex; flex-direction: column; flex: 1; justify-content: center;
          animation: enter .45s cubic-bezier(.2, .8, .2, 1) both; }
.hidden { display: none !important; }
@keyframes enter {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

/* ── Hero ── */
.logochip {
  align-self: flex-start; background: #fff; border-radius: 14px;
  padding: 8px 14px; margin-bottom: 22px;
  box-shadow: 0 8px 30px -10px #00e0ff55;
}
.logochip img { height: 40px; display: block; }
.kicker {
  align-self: flex-start; font-size: .78rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--cyan);
  border: 1px solid #00e0ff44; background: #00e0ff12;
  padding: 7px 14px; border-radius: 999px; margin-bottom: 18px;
}
.display { margin: 0 0 14px; font-size: clamp(3rem, 13vw, 4.3rem); line-height: .98;
           font-weight: 700; letter-spacing: -.03em; display: flex; flex-direction: column; }
.display span { animation: enter .5s cubic-bezier(.2, .8, .2, 1) both; }
.display .l2 { animation-delay: .1s; }
.display .l3 { animation-delay: .2s; }
.grad {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.lead { color: var(--muted); font-size: 1.02rem; line-height: 1.55; margin: 0 0 22px; }
.lead strong { color: var(--ink); }

.prizes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 26px; }
.prize {
  display: flex; flex-direction: column; gap: 2px; padding: 13px 14px;
  border-radius: 16px; animation: enter .5s .25s both;
}
.prize.gold { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 10px;
              border-color: #ffd20055; background: #ffd2000f; }
.prize .pi { font-size: 1.5rem; }
.prize .pn { font-weight: 700; font-size: .95rem; }
.prize .pt { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.prize.gold .pt { margin-left: auto; color: var(--yellow); }

.glass { background: var(--glass); border: 1px solid var(--glass-b);
         backdrop-filter: blur(10px); }

/* ── Botões ── */
.cta {
  position: relative; border: 0; border-radius: 16px; cursor: pointer;
  padding: 17px 22px; width: 100%; font-family: inherit; font-weight: 700;
  font-size: 1.08rem; color: #04121f; background: var(--grad);
  box-shadow: 0 10px 34px -8px #00b4e666; transition: transform .12s, box-shadow .2s;
}
.cta:hover { box-shadow: 0 14px 40px -8px #00d0ff88; }
.cta:active { transform: scale(.98); }
.cta:disabled { opacity: .55; cursor: default; }
.cta .arr { display: inline-block; transition: transform .2s; }
.cta:hover .arr { transform: translateX(4px); }
.micro { text-align: center; color: var(--muted); font-size: .8rem; margin-top: 12px; }
.skip {
  background: none; border: 0; color: var(--muted); font-family: inherit;
  font-size: .92rem; cursor: pointer; padding: 12px; text-decoration: underline;
  text-underline-offset: 3px;
}
.skip:hover { color: var(--ink); }
.stack { display: flex; flex-direction: column; gap: 12px; }

/* ── Perguntas ── */
.qtag { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
        color: var(--cyan); margin: 0 0 10px; }
.q { font-size: clamp(1.7rem, 7.4vw, 2.2rem); font-weight: 700; letter-spacing: -.02em;
     line-height: 1.12; margin: 0 0 24px; }

.svcgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.svc {
  display: flex; flex-direction: column; gap: 6px; padding: 18px 15px; text-align: left;
  border-radius: 18px; cursor: pointer; font-family: inherit; color: var(--ink);
  background: var(--glass); border: 1px solid var(--glass-b); backdrop-filter: blur(10px);
  transition: transform .15s, border-color .15s, background .15s;
  animation: enter .45s both;
}
.svc:nth-child(2) { animation-delay: .06s; }
.svc:nth-child(3) { animation-delay: .12s; }
.svc:nth-child(4) { animation-delay: .18s; }
.svc:hover { transform: translateY(-3px); border-color: #00e0ff66; background: #00e0ff0d; }
.svc:active { transform: scale(.97); }
.svc .ic { font-size: 1.8rem; }
.svc .t { font-weight: 700; font-size: 1.02rem; }
.svc .d { color: var(--muted); font-size: .8rem; line-height: 1.35; }

.chips { display: flex; flex-direction: column; gap: 10px; }
.chip {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 16px 18px; border-radius: 16px; cursor: pointer; font-family: inherit;
  font-size: 1.02rem; font-weight: 500; color: var(--ink);
  background: var(--glass); border: 1px solid var(--glass-b); backdrop-filter: blur(10px);
  transition: transform .12s, border-color .15s, background .15s;
  animation: enter .4s both;
}
.chip:nth-child(2) { animation-delay: .05s; }
.chip:nth-child(3) { animation-delay: .1s; }
.chip:nth-child(4) { animation-delay: .15s; }
.chip:nth-child(5) { animation-delay: .2s; }
.chip:hover { border-color: #00e0ff66; background: #00e0ff0d; }
.chip:active { transform: scale(.98); }
.chip .dotmark {
  width: 20px; height: 20px; border-radius: 50%; flex: none;
  border: 2px solid var(--glass-b); transition: all .15s;
}
.chip.sel { border-color: var(--cyan); background: #00e0ff1a; }
.chip.sel .dotmark { border-color: var(--cyan); background: var(--cyan);
                     box-shadow: 0 0 10px #00e0ff99; }

/* ── Inputs ── */
input[type=text], input[type=tel], textarea {
  width: 100%; padding: 16px 17px; font-size: 1.02rem; font-family: inherit;
  color: var(--ink); background: var(--glass); border: 1px solid var(--glass-b);
  border-radius: 16px; backdrop-filter: blur(10px);
  transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: #5f7288; }
input:focus, textarea:focus {
  outline: none; border-color: var(--cyan); box-shadow: 0 0 0 4px #00e0ff22;
}
textarea { resize: vertical; margin-bottom: 14px; }
.otp-in { text-align: center; font-size: 2rem; letter-spacing: .45em; font-weight: 700; }

.check { display: flex; gap: 12px; align-items: flex-start; padding: 13px 15px;
         border-radius: 14px; font-size: .86rem; color: var(--muted); cursor: pointer;
         line-height: 1.45; }
.check input { width: 19px; height: 19px; margin-top: 1px; accent-color: var(--cyan); flex: none; }
.check a { color: var(--cyan); }

/* ── Ticket ── */
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 50; }
.ticket {
  position: relative; border-radius: 20px; overflow: hidden; margin-bottom: 18px;
  background: linear-gradient(160deg, #10233b, #0a1626);
  border: 1px solid #00e0ff44; box-shadow: 0 20px 60px -20px #00b4e655;
  animation: enter .5s both;
}
.t-top { display: flex; justify-content: space-between; align-items: center;
         padding: 16px 20px 0; font-size: .74rem; letter-spacing: .12em;
         text-transform: uppercase; color: var(--muted); }
.t-lucky { color: var(--yellow); }
.t-num {
  font-size: clamp(4rem, 22vw, 5.5rem); font-weight: 700; letter-spacing: -.02em;
  text-align: center; padding: 4px 20px 0; background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.t-name { text-align: center; font-weight: 600; font-size: 1.05rem; padding: 0 20px 18px; }
.t-cut {
  position: relative; border-top: 2px dashed #ffffff2e; margin: 0 12px;
}
.t-cut::before, .t-cut::after {
  content: ""; position: absolute; top: -12px; width: 22px; height: 22px;
  border-radius: 50%; background: var(--bg);
}
.t-cut::before { left: -24px; }
.t-cut::after { right: -24px; }
.t-bottom { padding: 16px 20px 20px; text-align: center; }
.t-bottom p { margin: 0 0 8px; font-size: .95rem; line-height: 1.45; }
.t-note { color: var(--muted); font-size: .84rem !important; }

/* ── Mensagens / rodapé ── */
.msg { text-align: center; font-size: .92rem; font-weight: 600; min-height: 1.3em;
       margin: 14px 0 0; color: #ff7d6b; }
.msg.ok { color: #3ddc84; }
.foot { text-align: center; color: #4e6076; font-size: .78rem; padding: 0 16px 26px; }
.foot a { color: #4e6076; }

@media (min-width: 700px) {
  #app { max-width: 520px; }
}
