/* Delta Finance: funil de quiz (quiz.deltafinance.pro). Mesma linguagem da landing page: fundo preto, botões em
   pílula branca e o verde-limão da marca como destaque. Uma etapa por tela, pensada primeiro para o celular. */
:root {
  --bg: #0a0a0b; --card: #141416; --card-2: #1b1b1e;
  --line: rgb(255 255 255 / .09); --line-2: rgb(255 255 255 / .16);
  --text: #f5f5f5; --text-2: #c9c9cf; --muted: #8b8b93;
  --lime: #c6f432; --gasto: #f87171;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--text); overflow-x: hidden; -webkit-tap-highlight-color: transparent;
  font: 400 16px/1.5 Geist, ui-sans-serif, system-ui, -apple-system, Segoe UI, sans-serif; -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background: radial-gradient(70% 40% at 50% 0%, rgb(34 197 94 / .14), transparent 70%);
}
img { max-width: 100%; height: auto; display: block; }
svg.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -.035em; line-height: 1.08; text-wrap: balance; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 8px; }

/* ============================================================ topo: logo no centro, voltar à esquerda, progresso embaixo */
.top {
  position: sticky; top: 0; z-index: 10; display: grid; justify-items: center; gap: 12px;
  padding: max(14px, env(safe-area-inset-top)) 16px 12px; background: rgb(10 10 11 / .85); backdrop-filter: blur(16px);
}
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 19px; letter-spacing: -.02em; }
.back {
  position: absolute; left: 12px; top: max(10px, calc(env(safe-area-inset-top) - 4px)); width: 40px; height: 40px;
  display: grid; place-items: center; border-radius: 99px; border: 0; background: transparent; color: var(--text-2); cursor: pointer;
}
.progress { display: flex; gap: 6px; width: min(320px, 100%); }
.progress i { flex: 1; height: 4px; border-radius: 99px; background: var(--line-2); transition: background .4s var(--ease); }
.progress i.on { background: var(--lime); }

/* ============================================================ etapas */
.quiz { width: min(520px, 100%); margin: 0 auto; padding: 20px 16px calc(32px + env(safe-area-inset-bottom)); }
.step { display: grid; gap: 20px; animation: enter .45s var(--ease) both; }
@keyframes enter { from { opacity: 0; transform: translateY(12px); } }
.step h1 { font-size: clamp(34px, 9vw, 46px); }
.step h2 { font-size: clamp(27px, 7.4vw, 36px); }
.step h3 { font-size: 21px; }
.lead { color: var(--text-2); font-size: 18px; }
.kicker {
  justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px;
  border: 1px solid var(--line-2); color: var(--text-2); font-size: 13px;
}
.kicker i { width: 7px; height: 7px; border-radius: 99px; background: var(--lime); box-shadow: 0 0 10px var(--lime); }

/* botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 14px 24px; border: 0;
  border-radius: 99px; background: #fff; color: #0a0a0b; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: transform .15s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn.lg { font-size: 17px; }
.btn.full { width: 100%; }
.cta { display: grid; gap: 8px; justify-items: center; }
.cta .btn { width: 100%; }
.cta small { color: var(--muted); font-size: 13px; }
.cta.sticky {
  position: sticky; bottom: 0; z-index: 5; margin: 0 -16px; padding: 20px 16px calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--bg) 72%, transparent);
}

/* ============================================================ 1 · atenção: extrato com valores borrados */
.receipt { border-radius: 20px; border: 1px solid var(--line-2); background: var(--card); padding: 6px 18px; }
.rc-row, .rc-total { display: flex; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--line); }
.rc-row b { color: var(--gasto); font-weight: 500; filter: blur(4px); animation: peek 3s ease-in-out infinite; }
.rc-row:nth-child(2) b { animation-delay: .6s; } .rc-row:nth-child(3) b { animation-delay: 1.2s; }
@keyframes peek { 50% { filter: blur(1.5px); } }
.rc-total { border: 0; font-weight: 600; font-size: 18px; }

/* ============================================================ alternativas */
.options { display: grid; gap: 10px; }
.options button {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 66px; padding: 12px 16px; border-radius: 16px; text-align: left;
  border: 1px solid var(--line-2); background: var(--card); color: var(--text); font: inherit; font-size: 17px; font-weight: 500; cursor: pointer;
  transition: border-color .2s, background .2s, transform .15s var(--ease);
}
.options button:active { transform: scale(.99); }
.options button[aria-checked="true"] { border-color: var(--lime); background: rgb(198 244 50 / .08); }
.options .em { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--card-2); font-size: 20px; }
@media (hover: hover) { .options button:hover { border-color: rgb(255 255 255 / .3); } }

/* ============================================================ 3 · interesse */
.leak { border-radius: 20px; border: 1px solid var(--line-2); background: var(--card); padding: 4px 18px 8px; }
.lk-row, .lk-total { display: flex; justify-content: space-between; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--line); }
.lk-row span { color: var(--text-2); }
.lk-row b { color: var(--gasto); font-weight: 500; }
.lk-total { border: 0; font-weight: 600; }
.lk-total small { color: var(--muted); font-weight: 400; font-size: 12px; }
.lk-total b { color: var(--gasto); font-size: 24px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.turn { display: grid; gap: 16px; }
.phone {
  position: relative; justify-self: center; width: min(280px, 76vw); padding: 9px 9px 0; border-radius: 44px 44px 0 0;
  background: linear-gradient(145deg, #4b4b50, #1a1a1d 30%, #2c2c30 70%, #0d0d0f);
  box-shadow: 0 0 0 2px #0b0b0c inset, 0 0 120px -30px rgb(34 197 94 / .45);
}
.ph-screen { border-radius: 36px 36px 0 0; overflow: hidden; background: #070b09; aspect-ratio: 720 / 1300; mask: linear-gradient(#000 80%, transparent); }
.ph-chip {
  position: absolute; left: 50%; bottom: 22%; translate: -50% 0; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 9px 14px; border-radius: 99px; background: var(--lime); color: #0a0a0b; font-size: 14px; font-weight: 600;
  box-shadow: 0 14px 30px -10px rgb(0 0 0 / .8); animation: float 4s ease-in-out infinite;
}
.ph-chip svg.i { width: 15px; height: 15px; }
@keyframes float { 50% { transform: translateY(-6px); } }

/* ============================================================ 5 · resultado */
.analyzing { display: grid; justify-items: center; gap: 16px; padding: 100px 0; color: var(--text-2); }
.spin { width: 38px; height: 38px; border-radius: 99px; border: 3px solid var(--line-2); border-top-color: var(--lime); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.result { display: grid; gap: 20px; animation: enter .45s var(--ease) both; }
.answer { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 16px; background: rgb(198 244 50 / .07); border: 1px solid rgb(198 244 50 / .25); font-size: 17px; }
.answer svg { color: var(--lime); margin-top: 3px; }
.shot { margin: 0; border-radius: 20px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: 0 30px 60px -30px rgb(0 0 0 / .9); }

/* ============================================================ 6 · oferta: aparelhos em vários ângulos */
.offer-step h2 { text-align: center; }
.devices { position: relative; height: clamp(330px, 92vw, 470px); perspective: 1200px; margin: 4px -4px 0; }
.laptop { position: absolute; left: 50%; top: 0; width: 92%; translate: -50% 0; transform: rotateX(8deg); transform-origin: bottom; }
.lt-screen { border: 6px solid #2a2a2e; border-bottom-width: 10px; border-radius: 12px 12px 4px 4px; overflow: hidden; background: #070b09; box-shadow: 0 30px 60px -20px rgb(0 0 0 / .9), 0 0 100px -30px rgb(34 197 94 / .35); }
.lt-bar { display: flex; align-items: center; gap: 4px; padding: 5px 8px; background: #1b1b1e; font-size: 9px; color: var(--muted); }
.lt-bar i { width: 6px; height: 6px; border-radius: 99px; background: #3a3a40; }
.lt-bar span { margin-left: 8px; padding: 1px 10px; border-radius: 99px; background: #0d0d0f; }
.lt-screen img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.lt-base { height: 8px; margin: 0 -7%; border-radius: 0 0 14px 14px; background: linear-gradient(#3a3a40, #1a1a1d); }

.mock-phone {
  position: absolute; bottom: 0; width: 37%; padding: 5px; border-radius: 26px;
  background: linear-gradient(145deg, #55555b, #1a1a1d 30%, #2c2c30 70%, #0d0d0f);
  box-shadow: 0 0 0 1.5px #0b0b0c inset, 0 30px 50px -16px rgb(0 0 0 / .95);
}
.mp-screen { border-radius: 21px; overflow: hidden; background: #070b09; aspect-ratio: 9 / 18; }
.mp-screen > img { width: 100%; height: auto; }
.p-app { left: 2%; transform: rotateY(18deg) rotateZ(-4deg); animation: bob 6s ease-in-out infinite; }
.p-wa { right: 2%; transform: rotateY(-18deg) rotateZ(4deg); animation: bob 6s ease-in-out infinite -3s; }
@keyframes bob { 50% { translate: 0 -6px; } }

/* WhatsApp dentro do celular */
.wa-screen { display: flex; flex-direction: column; background: #0b141a; }
.wa-head { display: flex; align-items: center; gap: 6px; padding: 14px 8px 7px; background: #1f2c34; }
.wa-head img { width: 18px; height: 18px; border-radius: 99px; background: #0a0a0b; padding: 2px; }
.wa-head b { display: block; font-size: 9px; font-weight: 600; }
.wa-head small { display: block; font-size: 7px; color: #8696a0; }
.wa-body { display: grid; gap: 5px; padding: 8px 6px; align-content: start; }
.wa-msg { max-width: 92%; padding: 5px 7px; border-radius: 7px; font-size: 8px; line-height: 1.4; color: #e9edef; }
.wa-msg.out { justify-self: end; display: flex; align-items: center; gap: 5px; background: #005c4b; }
.wa-msg.in { justify-self: start; background: #1f2c34; }
.wa-msg small { color: rgb(255 255 255 / .6); font-size: 7px; }
.wa-play { width: 0; height: 0; border-left: 6px solid #fff; border-top: 4px solid transparent; border-bottom: 4px solid transparent; }
.wa-wave { width: 44px; height: 10px; background: repeating-linear-gradient(90deg, rgb(255 255 255 / .75) 0 1.5px, transparent 1.5px 3.5px); }

.dev-tag {
  position: absolute; z-index: 2; padding: 5px 10px; border-radius: 99px; font-size: 12px; font-weight: 600;
  background: rgb(10 10 11 / .85); border: 1px solid var(--line-2); backdrop-filter: blur(8px);
}
.d1 { left: 4%; bottom: -12px; } .d2 { right: 4%; bottom: -12px; } .d3 { left: 50%; top: -12px; translate: -50% 0; }

.offer {
  display: grid; gap: 14px; margin-top: 18px; padding: 22px 20px; border-radius: 22px; background: var(--card);
  border: 1px solid rgb(198 244 50 / .35); box-shadow: 0 0 80px -30px rgb(34 197 94 / .45);
}
.of-price { display: flex; align-items: baseline; justify-content: center; gap: 6px; }
.of-price b { font-size: 50px; font-weight: 600; letter-spacing: -.04em; }
.of-price span { color: var(--muted); font-size: 18px; }
.incl { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.incl li { display: flex; align-items: center; gap: 10px; color: var(--text-2); }
.incl svg { color: var(--lime); }
.offer .btn { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgb(255 255 255 / .07); } }
.trust { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; color: var(--muted); font-size: 12px; }
.trust li { display: inline-flex; align-items: center; gap: 5px; }
.trust svg.i { width: 14px; height: 14px; }

@media (max-width: 370px) {
  .step h1 { font-size: 31px; } .step h2 { font-size: 25px; }
  .options button { font-size: 16px; min-height: 60px; }
}
@media (min-width: 700px) { .quiz { padding-top: 40px; } }
