/* ═══════════════════════════════════════════════════════════════════════
   CAMPANHA "BAIXE O APP E GANHE R$ 5"
   ═══════════════════════════════════════════════════════════════════════

   Prefixo `bn-` em tudo (conferido: não existe no design-system.css, que
   tem 2.600 linhas e já custou uma sessão inteira por colisão de `.sheet`).

   ⚠️ TODA animação daqui é `transform` e `opacity`, e é regra, não estilo:
   são as duas únicas propriedades que o navegador compõe na GPU sem
   recalcular layout nem repintar. Animar `top`, `left`, `width` ou
   `background` no celular derruba o quadro na hora — e a tela onde isso
   apareceria é justamente a de um aparelho antigo, que é quem mais precisa
   do tutorial.

   Andares de z-index deste site:
     999 barra inferior · 2000/3000 overlays e jogo · 9000 toast
   Cards em 2500 (acima da barra, abaixo do jogo); folhas em 3600 (acima do
   jogo — o tutorial precisa ser alcançável de qualquer lugar).
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Peças comuns ───────────────────────────────────────────────────── */
.bn-x {
  position: absolute; top: 8px; right: 8px;
  width: 40px; height: 40px;               /* alvo confortável, desenho pequeno */
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: 0; color: rgba(255,255,255,0.5);
  cursor: pointer; -webkit-tap-highlight-color: transparent; z-index: 3;
}
.bn-x--folha { top: 6px; right: 8px; width: 44px; height: 44px; color: var(--text-secondary, #a0a0a0); }

.bn-cta {
  width: 100%; min-height: 52px;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  padding: 0 18px; border: 0; border-radius: 14px;
  background: linear-gradient(135deg, #e4003b 0%, #a4002a 100%);
  color: #fff; font: inherit; font-size: 0.98rem; font-weight: 800; letter-spacing: .3px;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  box-shadow: 0 6px 18px rgba(205,0,53,0.35);
  transition: transform .12s ease, box-shadow .2s ease;
}
.bn-cta:active { transform: scale(.975); box-shadow: 0 3px 10px rgba(205,0,53,0.3); }
.bn-cta:disabled { opacity: .75; cursor: default; }
.bn-cta--g { background: linear-gradient(135deg, #16a34a 0%, #0d7a37 100%); box-shadow: 0 6px 18px rgba(22,163,74,0.32); }

/* Brilho que atravessa o card. `translateX` puro — é decoração, não pode
   custar quadro. */
.bn-oferta-brilho {
  position: absolute; inset: 0; overflow: hidden; border-radius: inherit;
  pointer-events: none;
}
.bn-oferta-brilho::after {
  content: ''; position: absolute; top: -60%; left: -40%;
  width: 45%; height: 220%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.10), transparent);
  transform: translateX(-120%) rotate(12deg);
  animation: bn-brilho 4.5s ease-in-out infinite;
}
@keyframes bn-brilho {
  0%, 62% { transform: translateX(-120%) rotate(12deg); }
  86%, 100% { transform: translateX(320%) rotate(12deg); }
}

/* ── Oferta e resgate (cards flutuantes) ────────────────────────────── */
.bn-oferta, .bn-resgate {
  position: fixed; z-index: 2500;
  left: 12px; right: 12px;
  bottom: calc(78px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: 'ico txt' 'cta cta';
  gap: 12px;
  padding: 16px;
  overflow: hidden;
  border-radius: 18px;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(205,0,53,0.18) 0%, transparent 55%),
    var(--bg-modal, #201e20);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 14px 44px rgba(0,0,0,0.72);
  transform: translateY(150%); opacity: 0;
  transition: transform .32s cubic-bezier(.2,.9,.3,1), opacity .32s ease;
}
.bn-resgate {
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(22,163,74,0.20) 0%, transparent 55%),
    var(--bg-modal, #201e20);
}
.bn-oferta.is-open, .bn-resgate.is-open { transform: translateY(0); opacity: 1; }

.bn-oferta-ico, .bn-resgate-ico {
  grid-area: ico;
  width: 48px; height: 48px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: rgba(205,0,53,0.16); color: #ff3366;
}
.bn-resgate-ico { background: rgba(22,163,74,0.16); color: #35d07f; }

.bn-oferta-txt { grid-area: txt; min-width: 0; display: flex; flex-direction: column; gap: 4px; padding-right: 34px; }
.bn-oferta-txt strong { font-size: 1.02rem; font-weight: 800; color: #fff; line-height: 1.25; }
.bn-oferta-txt span { font-size: 0.84rem; line-height: 1.45; color: var(--text-secondary, #a0a0a0); }
.bn-oferta .bn-cta, .bn-resgate .bn-cta { grid-area: cta; margin-top: 2px; }

@media (min-width: 1025px) {
  .bn-oferta, .bn-resgate { left: auto; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); width: 390px; }
}

/* ── Folhas (tutorial e sucesso) ────────────────────────────────────── */
.bn-folha {
  position: fixed; z-index: 3600; inset: 0;
  background: rgba(0,0,0,0.68);
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .26s ease;
}
.bn-folha.is-open { opacity: 1; pointer-events: auto; }
.bn-folha--ok { align-items: center; padding: 20px; }

.bn-tut-painel, .bn-ok-painel {
  position: relative;
  width: 100%; max-width: 460px;
  /* Rolagem própria + teto de altura: em iPhone SE deitado a folha passaria
     da tela e os botões finais ficariam inalcançáveis. */
  max-height: 88vh; overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: var(--bg-modal, #201e20);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 10px 18px calc(22px + env(safe-area-inset-bottom));
  transform: translateY(100%); transition: transform .3s cubic-bezier(.2,.9,.3,1);
}
.bn-tut-painel { border-radius: 22px 22px 0 0; }
.bn-ok-painel {
  border-radius: 22px; max-width: 380px; text-align: center;
  padding: 26px 22px calc(26px + env(safe-area-inset-bottom));
  transform: scale(.88); opacity: 0; transition: transform .3s cubic-bezier(.2,.9,.3,1), opacity .25s ease;
}
.bn-folha.is-open .bn-tut-painel { transform: translateY(0); }
.bn-folha.is-open .bn-ok-painel { transform: scale(1); opacity: 1; }

.bn-folha-grip { width: 40px; height: 4px; margin: 0 auto 12px; border-radius: 999px; background: rgba(255,255,255,0.2); }
.bn-tut-cab { text-align: center; margin-bottom: 12px; }
.bn-tut-cab strong { font-size: 1.05rem; font-weight: 800; color: #fff; }

.bn-tut-t { margin: 14px 0 4px; font-size: 1rem; font-weight: 800; color: #fff; text-align: center; }
.bn-tut-d { margin: 0 0 12px; font-size: 0.85rem; line-height: 1.5; color: var(--text-secondary, #a0a0a0); text-align: center; }

.bn-tut-pontos { display: flex; justify-content: center; gap: 7px; margin-bottom: 14px; }
.bn-ponto { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.18); transition: transform .2s ease, background .2s ease; }
.bn-ponto.on { background: var(--color-red, #cd0035); transform: scale(1.35); }

.bn-tut-acoes { display: flex; gap: 10px; }
.bn-tut-nav {
  flex: 1; min-height: 48px; border-radius: 12px;
  background: transparent; color: var(--text-secondary, #a0a0a0);
  border: 1px solid rgba(255,255,255,0.12);
  font: inherit; font-size: 0.92rem; font-weight: 700; cursor: pointer;
}
.bn-tut-nav:disabled { opacity: .4; cursor: default; }
.bn-tut-nav--p { background: var(--color-red, #cd0035); color: #fff; border-color: transparent; }
.bn-tut-ja {
  width: 100%; margin-top: 10px; min-height: 44px;
  background: transparent; border: 0; color: var(--text-secondary, #a0a0a0);
  font: inherit; font-size: 0.85rem; text-decoration: underline; cursor: pointer;
}

/* ═══════════════════════════════════════════════════════════════════════
   O CELULAR SIMULADO
   ═══════════════════════════════════════════════════════════════════════
   Tudo em % dentro de um retângulo com `aspect-ratio`, pra a cena inteira
   escalar junto com a largura sem nenhuma media query. */
.bn-sim { display: flex; justify-content: center; }
.bn-sim-tela {
  position: relative; overflow: hidden;
  width: 190px; aspect-ratio: 9 / 17;
  border-radius: 22px;
  background: #0e0d0e;
  border: 3px solid #2b292b;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6), inset 0 0 0 1px rgba(255,255,255,0.04);
  font-size: 7px;
}

.bn-sim-topo {
  position: absolute; top: 0; left: 0; right: 0; height: 13%;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  background: #1d1b1d; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.bn-sim-url { color: #9a9a9a; font-size: 7px; background: #2a282a; padding: 2px 10px; border-radius: 20px; }
.bn-sim-pontos { width: 3px; height: 3px; border-radius: 50%; background: #6a6a6a; box-shadow: 0 -5px 0 #6a6a6a, 0 5px 0 #6a6a6a; }

.bn-sim-conteudo { position: absolute; top: 15%; left: 8%; right: 8%; display: flex; flex-direction: column; gap: 6px; }
.bn-sim-linha { height: 6px; border-radius: 3px; background: rgba(255,255,255,0.07); }
.bn-sim-linha--g { height: 34px; background: rgba(205,0,53,0.22); }
.bn-sim-linha--m { width: 60%; }

.bn-sim-baixo {
  position: absolute; bottom: 0; left: 0; right: 0; height: 11%;
  display: flex; align-items: center; justify-content: space-around;
  background: #1d1b1d; border-top: 1px solid rgba(255,255,255,0.06);
  color: #8a8a8a;
}
.bn-sim-seta { font-size: 11px; line-height: 1; }
.bn-sim-quad { width: 8px; height: 8px; border: 1px solid #8a8a8a; border-radius: 2px; }
.bn-sim-share { color: #cfcfcf; transition: transform .2s ease, color .2s ease; }
.bn-p1 .bn-sim-share { color: #fff; transform: scale(1.18); }

/* Folha do Safari (passo 2) */
.bn-sim-folha {
  position: absolute; left: 0; right: 0; bottom: 0; height: 52%;
  background: #262426; border-radius: 14px 14px 0 0;
  padding: 6px 8px; display: flex; flex-direction: column; gap: 5px;
  transform: translateY(101%); transition: transform .34s cubic-bezier(.2,.9,.3,1);
  z-index: 2;
}
.bn-p2 .bn-sim-folha, .bn-p3 .bn-sim-folha { transform: translateY(0); }
.bn-sim-grip { width: 26px; height: 3px; border-radius: 9px; background: rgba(255,255,255,0.25); margin: 0 auto 4px; }
.bn-sim-item {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  padding: 6px 7px; border-radius: 7px; background: rgba(255,255,255,0.05);
  color: #c8c8c8; font-size: 6.5px; line-height: 1.2;
}
.bn-sim-item--alvo { transition: background .25s ease, color .25s ease; }
.bn-p2 .bn-sim-item--alvo { background: rgba(205,0,53,0.28); color: #fff; }

/* Confirmação (passo 3) */
.bn-sim-conf {
  position: absolute; inset: 0; background: #1a181a; z-index: 3;
  opacity: 0; pointer-events: none; transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease;
  padding: 8px;
}
.bn-p3 .bn-sim-conf { opacity: 1; transform: translateY(0); }
.bn-sim-conf-topo { display: flex; align-items: center; justify-content: space-between; gap: 4px; font-size: 6.5px; color: #c8c8c8; }
.bn-sim-conf-topo b { color: #fff; font-size: 7px; }
.bn-sim-cancel { color: #7a7a7a; }
.bn-sim-add { color: #4da3ff; font-weight: 700; transition: transform .2s ease; }
.bn-p3 .bn-sim-add { transform: scale(1.2); }
.bn-sim-conf-app { display: flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 7px; color: #ddd; }
.bn-sim-conf-ico {
  width: 22px; height: 22px; border-radius: 6px; background: #141214; color: #cd0035;
  display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 12px;
}

/* Final (passo 4) */
.bn-sim-ok {
  position: absolute; inset: 0; z-index: 4;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: #12110f;
  color: #fff; font-size: 8px; text-align: center; padding: 12px;
  opacity: 0; pointer-events: none; transform: scale(.94);
  transition: opacity .28s ease, transform .28s ease;
}
.bn-p4 .bn-sim-ok { opacity: 1; transform: scale(1); }
.bn-sim-ok-ico { color: #35d07f; }

/* ── O dedo e o anel ────────────────────────────────────────────────── */
.bn-dedo {
  position: absolute; z-index: 5; left: 0; top: 0;
  width: 26px; height: 26px;
  pointer-events: none;
  opacity: 0;
  /* `left/top` ficam em 0 e TUDO é translate: mover por transform não
     recalcula layout, mover por left/top recalcula a cada quadro. */
  transform: translate(50px, 50px);
  transition: transform .62s cubic-bezier(.35,.1,.25,1), opacity .25s ease;
}
.bn-dedo-mao {
  width: 100%; height: 100%; border-radius: 50% 50% 50% 12px;
  background: linear-gradient(160deg, #fff 0%, #d9d9d9 100%);
  box-shadow: 0 3px 10px rgba(0,0,0,0.5);
}
.bn-pulso {
  position: absolute; z-index: 4; left: 0; top: 0;
  width: 30px; height: 30px; margin: -15px 0 0 -15px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.85);
  opacity: 0;
  transform: translate(0, 0) scale(.5);
  transition: transform .62s cubic-bezier(.35,.1,.25,1);
}

/* Posições por passo. Números em px sobre a tela de 190px de largura —
   a tela é fixa nesse tamanho, então px aqui é estável e legível. */
.bn-p1 .bn-dedo { opacity: 1; transform: translate(82px, 268px); }
.bn-p1 .bn-pulso { opacity: 1; transform: translate(95px, 281px) scale(1); animation: bn-pulsa 1.5s ease-out infinite; }

.bn-p2 .bn-dedo { opacity: 1; transform: translate(74px, 196px); }
.bn-p2 .bn-pulso { opacity: 1; transform: translate(95px, 208px) scale(1); animation: bn-pulsa 1.5s ease-out infinite; }

.bn-p3 .bn-dedo { opacity: 1; transform: translate(140px, 16px); }
.bn-p3 .bn-pulso { opacity: 1; transform: translate(158px, 26px) scale(1); animation: bn-pulsa 1.5s ease-out infinite; }

.bn-p4 .bn-dedo, .bn-p4 .bn-pulso { opacity: 0; }

@keyframes bn-pulsa {
  0%   { box-shadow: 0 0 0 0 rgba(255,255,255,0.45); }
  70%  { box-shadow: 0 0 0 14px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

/* ── Selo de sucesso ────────────────────────────────────────────────── */
.bn-ok-selo { position: relative; width: 92px; height: 92px; margin: 4px auto 16px; }
.bn-ok-check {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(22,163,74,0.16); color: #35d07f;
  animation: bn-selo .5s cubic-bezier(.2,1.3,.4,1) both;
}
.bn-ok-anel {
  position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(53,208,127,0.6);
  animation: bn-onda 1.9s ease-out infinite;
}
.bn-ok-anel--2 { animation-delay: .65s; }
@keyframes bn-selo { from { transform: scale(.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes bn-onda { from { transform: scale(1); opacity: .7; } to { transform: scale(1.55); opacity: 0; } }

.bn-ok-t { margin: 0 0 8px; font-size: 1.12rem; font-weight: 800; color: #fff; line-height: 1.3; }
.bn-ok-d { margin: 0 0 20px; font-size: 0.86rem; line-height: 1.55; color: var(--text-secondary, #a0a0a0); }

/* ═══════════════════════════════════════════════════════════════════════
   REDUZIR MOVIMENTO
   ═══════════════════════════════════════════════════════════════════════
   Quem liga isso no sistema costuma ter enjoo ou vertigem — e um dedo
   deslizando pela tela é justamente o gatilho. A informação não muda: as
   telas continuam trocando por passo, só sem percurso, sem pulso e sem
   brilho. */
@media (prefers-reduced-motion: reduce) {
  .bn-oferta, .bn-resgate, .bn-folha, .bn-tut-painel, .bn-ok-painel,
  .bn-sim-folha, .bn-sim-conf, .bn-sim-ok, .bn-dedo, .bn-pulso { transition: none; }
  .bn-oferta-brilho::after, .bn-pulso, .bn-ok-anel, .bn-ok-check { animation: none; }
  .bn-pulso { opacity: 0 !important; }
  .bn-dedo { transition: none; }
}
.bn-sem-animacao .bn-dedo, .bn-sem-animacao .bn-pulso { display: none; }

/* ═══════════════════════════════════════════════════════════════════════
   TUTORIAL — correções vindas do pixel (10/08/2026)
   ═══════════════════════════════════════════════════════════════════════
   Duas coisas que só apareceram na captura de tela, não na medição:

   1. O dedo era uma BOLA BRANCA de 26px em cima de um celular de 190px —
      cobria justamente o item que estava mandando tocar. Agora é menor,
      em forma de ponta de dedo, translúcido, e o ponto de contato fica no
      canto de cima à esquerda: ele APONTA pro alvo em vez de sentar nele.

   2. No Android o palco desenhava a folha de compartilhamento do iPhone
      enquanto a legenda falava do menu do Chrome. Agora cada plataforma
      tem o seu, e o dedo anda pra onde o botão realmente fica: no iPhone
      o Compartilhar é embaixo, no Chrome os três pontinhos são em cima à
      direita.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── O dedo ─────────────────────────────────────────────────────────── */
.bn-dedo { width: 17px; height: 17px; }
.bn-dedo-mao {
  width: 100%; height: 100%;
  /* Ponta arredondada com o canto de cima à esquerda em ângulo: lê como
     ponta de dedo e deixa claro QUAL pixel está sendo tocado. */
  border-radius: 3px 50% 50% 50%;
  background: linear-gradient(150deg, rgba(255,255,255,0.96) 0%, rgba(214,214,214,0.9) 100%);
  box-shadow: 0 2px 8px rgba(0,0,0,0.55), inset 0 0 0 1px rgba(0,0,0,0.06);
}
.bn-pulso { width: 22px; height: 22px; margin: -11px 0 0 -11px; border-width: 1.5px; }

/* ── Menu do Chrome: cai do canto de cima à direita ─────────────────── */
.bn-sim-menu {
  position: absolute; top: 11%; right: 4%; z-index: 2;
  width: 62%;
  background: #262426; border-radius: 8px;
  padding: 4px; display: flex; flex-direction: column; gap: 3px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.6);
  transform-origin: 100% 0;
  transform: scale(.7); opacity: 0;
  transition: transform .26s cubic-bezier(.2,.9,.3,1), opacity .2s ease;
}
.bn-android.bn-p2 .bn-sim-menu, .bn-android.bn-p3 .bn-sim-menu { transform: scale(1); opacity: 1; }
.bn-android.bn-p2 .bn-sim-item--alvo { background: rgba(205,0,53,0.28); color: #fff; }

/* Cada plataforma esconde o componente da outra. */
.bn-android .bn-sim-folha, .bn-android .bn-sim-share { display: none; }
.bn-ios .bn-sim-menu { display: none; }
/* Os três pontinhos são o alvo do passo 1 no Chrome. */
.bn-android.bn-p1 .bn-sim-pontos { background: #fff; box-shadow: 0 -5px 0 #fff, 0 5px 0 #fff; }

/* ── Onde o dedo para, por plataforma ───────────────────────────────── */
/* iPhone: Compartilhar fica na barra de BAIXO, no meio. */
.bn-ios.bn-p1 .bn-dedo  { opacity: 1; transform: translate(97px, 272px); }
.bn-ios.bn-p1 .bn-pulso { opacity: 1; transform: translate(95px, 281px) scale(1); }
.bn-ios.bn-p2 .bn-dedo  { opacity: 1; transform: translate(60px, 202px); }
.bn-ios.bn-p2 .bn-pulso { opacity: 1; transform: translate(58px, 210px) scale(1); }

/* Chrome: os três pontinhos ficam em CIMA, à direita. */
.bn-android.bn-p1 .bn-dedo  { opacity: 1; transform: translate(158px, 26px); }
.bn-android.bn-p1 .bn-pulso { opacity: 1; transform: translate(156px, 34px) scale(1); }
.bn-android.bn-p2 .bn-dedo  { opacity: 1; transform: translate(96px, 92px); }
.bn-android.bn-p2 .bn-pulso { opacity: 1; transform: translate(94px, 100px) scale(1); }

/* O passo 3 é a mesma tela de confirmação nas duas: botão em cima à direita. */
.bn-p3 .bn-dedo  { opacity: 1; transform: translate(146px, 22px); }
.bn-p3 .bn-pulso { opacity: 1; transform: translate(158px, 26px) scale(1); }

/* ── O celular ocupava altura demais na folha ───────────────────────── */
.bn-sim-tela { width: 172px; }

/* O dedo estava sentado EM CIMA do rótulo do item ("Instalar aplicativo"),
   escondendo justamente a palavra que a legenda manda procurar. Movido pro
   ícone à direita do item: continua apontando o alvo certo e o texto fica
   legível. Foi visto na captura, não na medição — nenhuma asserção de
   layout pega "o dedo cobre a palavra". */
.bn-android.bn-p2 .bn-dedo  { transform: translate(150px, 92px); }
.bn-android.bn-p2 .bn-pulso { transform: translate(155px, 100px) scale(1); }
.bn-ios.bn-p2 .bn-dedo      { transform: translate(140px, 202px); }
.bn-ios.bn-p2 .bn-pulso     { transform: translate(145px, 210px) scale(1); }
