/* tokn.id | topo da home: o app na sua mão. Fundo com fotos de vários tipos de negócio que se
   trocam sozinhas (e por clique), celular com app de verdade, cursor-fantasma que ensina a tocar.
   Tudo em cqw dentro da tela do celular: 1cqw = 1% da largura da tela. */

/* === FUNDO: FOTOS QUE TROCAM === */
.foto-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
/* o .slides anda mais devagar que a página (data-px no site.js) */
.slides { position: absolute; left: 0; top: -60px; width: 100%; height: calc(100% + 120px); }
.slide { position: absolute; inset: 0; display: block; opacity: 0; transition: opacity 1.4s ease; }
.slide.on { opacity: 1; }
.slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.07); transition: transform 0s linear 1.4s; }
.slide.on img { transform: none; transition: transform 9s ease-out; }
.foto-veu { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(9, 9, 10, .8) 0%, rgba(9, 9, 10, .86) 55%, var(--bg) 100%); }
@media (min-width: 1024px) {
  .foto-veu { background: linear-gradient(90deg, rgba(9, 9, 10, .96) 0%, rgba(9, 9, 10, .86) 40%, rgba(9, 9, 10, .46) 100%), linear-gradient(180deg, transparent 72%, var(--bg) 100%); }
}
.hero-home .hero-txt { position: relative; z-index: 2; }
.hero-home .hero-apoio, .hero-home .hero-nota { text-shadow: 0 1px 18px rgba(0, 0, 0, .55); }
.hero-home .hero-nota { margin-top: 24px; }
.sol-marca { width: 22px; height: auto; flex: none; }

/* === SELETOR DE NEGÓCIO (só com script: são botões) === */
.negocios { display: none; margin-top: 30px; }
.js .negocios { display: block; }
.neg-rot { margin-bottom: 12px; font-size: 15px; font-weight: 600; color: var(--ink-soft); text-shadow: 0 1px 14px rgba(0, 0, 0, .6); }
.neg-lista { position: relative; display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--pad-x)); padding: 0 var(--pad-x) 4px; }
/* no celular a fileira some suave na borda direita: mostra que tem mais negócio rolando pro lado */
@media (max-width: 1023px) { .neg-lista { -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); } }
.neg-lista::-webkit-scrollbar { display: none; }
@media (min-width: 1024px) { .neg-lista { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; } }
.neg {
  flex: none; min-height: 42px; padding: 0 15px; border-radius: 999px; border: 1.5px solid var(--line-2); background: rgba(9, 9, 10, .35);
  color: var(--ink-soft); font: 700 14px/1 var(--fonte); cursor: pointer; transition: background .25s ease, border-color .25s ease, color .25s ease;
}
.neg:hover { border-color: rgba(255, 255, 255, .42); }
.neg[aria-pressed="true"] { background: var(--pink); border-color: var(--pink); color: #fff; }

/* no celular o seletor de negócio fica colado em cima do aparelho: quem troca de negócio vê, logo
   embaixo do dedo, o app abrir de novo com o nome da casa (antes ficava embaixo do celular e a pessoa
   só via o fundo mudar) */
@media (max-width: 1023px) {
  .hero-home .hero-in { gap: 0; }
  .hero-home .negocios { margin-top: 26px; }
  .hero-home .neg-rot { margin-bottom: 10px; font-size: 14px; }
  .hero-home .vis-b { margin-top: 26px; }
}
@media (max-width: 639px) {
  .hero-home { padding-top: calc(var(--nav-h) + 8px); }
}

/* === PALCO DO CELULAR === */
.vis-b { position: relative; display: grid; justify-items: center; gap: 24px; }
.cel-cena { position: relative; isolation: isolate; width: min(78vw, 290px); perspective: 1400px; }
/* no computador a largura acompanha a altura da tela: celular e legenda cabem na primeira dobra */
@media (min-width: 1024px) { .cel-cena { width: clamp(250px, calc((100svh - 280px) / 2.06), 284px); } }
.cel-tilt { position: relative; z-index: 1; transform: rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); transition: transform .18s ease-out; will-change: transform; }
.mf { position: absolute; pointer-events: none; }
.mf-1 { --d: 78px; left: -38px; top: 11%; z-index: 0; }
.mf-2 { --d: 54px; right: -22px; top: 33%; z-index: 2; }
.mf-3 { --d: 104px; right: -48px; bottom: 7%; z-index: 2; }
@media (min-width: 1024px) { .mf-1 { --d: 96px; left: -62px; } .mf-2 { --d: 64px; right: -34px; } .mf-3 { --d: 124px; right: -72px; } }

/* legenda embaixo do celular: o convite pra tocar e, depois, o convite pra conversar (mesmo espaço) */
.cel-legenda { display: grid; width: min(100%, 420px); min-height: 66px; text-align: center; }
.cel-legenda > p { grid-area: 1 / 1; align-self: start; font-size: 14.5px; font-weight: 600; line-height: 1.5; color: var(--ink-soft); text-shadow: 0 1px 14px rgba(0, 0, 0, .6); }
.leg-a { display: flex; justify-content: center; align-items: center; gap: 10px; width: fit-content; margin-inline: auto; padding: 11px 20px; border: 1.5px solid var(--pink); border-radius: 999px; background: rgba(9, 9, 10, .5); font-size: 15px; font-weight: 700; color: #fff; }
.leg-a svg { width: 20px; height: 20px; flex: none; color: var(--ink); animation: toca 1.8s ease-in-out infinite; }
@keyframes toca { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.leg-b a { display: inline-block; margin-top: 6px; font-weight: 800; color: var(--pink); text-underline-offset: 4px; }
.cel-legenda .leg-b { opacity: 0; visibility: hidden; transition: opacity .6s ease; }
.cel-legenda.fim .leg-b { opacity: 1; visibility: visible; }
.cel-legenda.fim .leg-a { opacity: 0; visibility: hidden; }

/* === O APP === */
.app { position: relative; display: flex; flex-direction: column; height: 100%; padding: 0 5.4cqw; color: #fff; font-family: var(--fonte); -webkit-user-select: none; user-select: none; }
.app-status { flex: none; display: flex; justify-content: space-between; align-items: center; height: 12cqw; padding: 2.6cqw 2cqw 0; font-size: 3.7cqw; font-weight: 700; }
.app-status svg { width: auto; height: 3.2cqw; }
.app-topo { flex: none; display: flex; justify-content: space-between; align-items: center; margin: 2cqw 0 3.6cqw; }
.app-marca { padding: 1.5cqw 3.4cqw; border: .5cqw solid var(--pink); border-radius: 99px; color: var(--pink); font-size: 2.9cqw; font-weight: 800; letter-spacing: .14em; }
.app-av { display: grid; place-items: center; width: 9cqw; height: 9cqw; border-radius: 50%; border: .45cqw solid rgba(255, 255, 255, .4); font-size: 3.1cqw; font-weight: 800; }
/* o texto do negócio troca com um fade curto */
.app-marca, .app-tx { transition: opacity .25s ease; }
.app-marca.troca, .app-tx.troca { opacity: 0; }
/* a abertura do app quando a pessoa escolhe outro negócio: nome da casa e uma barra que enche */
.app-abre {
  position: absolute; inset: 0; z-index: 7; display: grid; place-content: start center; justify-items: center; gap: 3.6cqw; padding-top: 40cqw;
  background: var(--navy); opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s linear .3s;
}
.app-abre.on { opacity: 1; visibility: visible; transition: opacity .16s ease; }
.app-abre-m { padding: 2.4cqw 5.4cqw; border: .6cqw solid var(--pink); border-radius: 99px; color: var(--pink); font-size: 4.6cqw; font-weight: 800; letter-spacing: .14em; }
.app-abre small { font-size: 3.4cqw; font-weight: 600; color: var(--ink-soft); }
.app-abre i { position: relative; width: 30cqw; height: .9cqw; border-radius: 99px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.app-abre i::after { content: ""; position: absolute; inset: 0; background: var(--pink); transform-origin: left; }
.app-abre.on i::after { animation: abre-barra .8s cubic-bezier(.4, 0, .2, 1) both; }
.app-abre.on .app-abre-m { animation: abre-marca .5s cubic-bezier(.34, 1.56, .64, 1) both; }
@keyframes abre-barra { from { scale: 0 1; } to { scale: 1 1; } }
@keyframes abre-marca { from { scale: .8; opacity: 0; } to { scale: 1; opacity: 1; } }
/* carteira: cartão sólido na cor da marca */
.app-cart { flex: none; padding: 5.2cqw 5.4cqw 4.8cqw; border-radius: 5.6cqw; background: var(--pink); }
.app-rot { font-size: 2.8cqw; font-weight: 800; letter-spacing: .15em; color: rgba(255, 255, 255, .9); }
.app-saldo { display: flex; align-items: flex-end; gap: 2.6cqw; margin-top: 1.2cqw; }
.app-saldo b { font-size: 19cqw; line-height: .86; font-weight: 800; letter-spacing: -.04em; font-variant-numeric: tabular-nums; color: #fff; }
.app-saldo span { padding-bottom: 1.6cqw; font-size: 3.5cqw; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.app-pontos { display: grid; grid-template-columns: repeat(10, 3.4cqw); justify-content: space-between; margin-top: 4cqw; }
.app-pontos li { height: 3.4cqw; border-radius: 50%; border: .45cqw solid rgba(255, 255, 255, .78); transition: background .35s ease, border-color .35s ease; }
.app-pontos li.on { background: #fff; border-color: #fff; }
.app-falta { margin-top: 3.4cqw; font-size: 3.4cqw; font-weight: 600; line-height: 1.35; color: #fff; }
.app-falta b { color: #fff; font-variant-numeric: tabular-nums; }
.app-tit { flex: none; margin: 5.6cqw 0 2.6cqw; font-size: 4.7cqw; font-weight: 800; letter-spacing: -.01em; }
.app-acoes { display: grid; gap: 2.6cqw; }
.app-acao {
  width: 100%; display: grid; grid-template-columns: 9cqw 1fr auto; align-items: center; gap: 3.2cqw; padding: 3.5cqw 3.6cqw;
  border-radius: 4.4cqw; border: .35cqw solid var(--line-2); background: var(--card); text-align: left; cursor: pointer;
  font-size: 4cqw; font-weight: 700; color: #fff; -webkit-tap-highlight-color: transparent;
  transition: transform .15s ease, opacity .35s ease, border-color .35s ease;
}
.app-acao:active { transform: scale(.975); }
.app-acao:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
.app-ic { display: grid; place-items: center; width: 9cqw; height: 9cqw; border-radius: 50%; border: .4cqw solid rgba(255, 255, 255, .24); }
.app-ic svg { width: 4.8cqw; height: 4.8cqw; }
.app-mais { padding: .9cqw 2.8cqw; border-radius: 99px; background: var(--pink); font-size: 3.4cqw; font-weight: 800; font-variant-numeric: tabular-nums; }
.app-ok { display: none; width: 5.4cqw; height: 5.4cqw; }
.app-acao.feita { opacity: .5; cursor: default; border-color: var(--line); }
.app-acao.feita .app-mais { display: none; }
.app-acao.feita .app-ok { display: block; }
/* a próxima ação pisca a borda até a pessoa tocar (só contorno) */
.app-acao.pede { animation: pede 1.7s ease-in-out infinite; }
@keyframes pede { 0%, 100% { border-color: rgba(255, 255, 255, .16); box-shadow: 0 0 0 0 rgba(255, 0, 84, 0); } 50% { border-color: var(--pink); box-shadow: 0 0 0 1.8cqw rgba(255, 0, 84, .28); } }
/* o prêmio: trancado (tracejado) até a carteira bater a meta */
.app-premio {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 9cqw 1fr auto; align-items: center; gap: 3.2cqw; padding: 3.6cqw;
  border-radius: 4.4cqw; border: .4cqw dashed rgba(255, 255, 255, .3); font-size: 4cqw; font-weight: 700; transition: border-color .4s ease;
}
.app-premio .app-tx { opacity: .62; transition: opacity .4s ease; }
.app-premio .app-tx.troca { opacity: 0; }
.app-premio small { display: block; margin-top: .4cqw; font-size: 3cqw; font-weight: 600; color: rgba(255, 255, 255, .7); }
.app-custo { font-size: 4cqw; font-weight: 800; color: rgba(255, 255, 255, .7); }
.app-tag { display: none; padding: .9cqw 2.8cqw; border-radius: 99px; background: var(--pink); font-size: 3.2cqw; font-weight: 800; }
.app-premio.liberado { border: .45cqw solid var(--pink); }
.app-premio.liberado .app-tx { opacity: 1; }
.app-premio.liberado .app-custo { display: none; }
.app-premio.liberado .app-tag { display: inline-block; }
.app-premio.liberado::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 36%, rgba(255, 255, 255, .15) 50%, transparent 64%); transform: translateX(-100%); animation: brilho 1.5s .15s ease-out forwards; }
@keyframes brilho { to { transform: translateX(100%); } }
/* barra de baixo e indicador do iPhone */
.app-nav { margin-top: auto; flex: none; display: flex; justify-content: space-around; padding: 3.4cqw 0 7.4cqw; border-top: .3cqw solid var(--line); }
.app-nav span { display: grid; justify-items: center; gap: 1cqw; font-size: 2.7cqw; font-weight: 700; color: rgba(255, 255, 255, .55); }
.app-nav span.on { color: #fff; }
.app-nav svg { width: 5.6cqw; height: 5.6cqw; }
.app-home { position: absolute; left: 50%; bottom: 2cqw; width: 34cqw; height: 1.3cqw; translate: -50% 0; border-radius: 99px; background: #fff; opacity: .72; }
/* aviso "+5 por chegar" e folha de "recompensa liberada" */
.app-toast { position: absolute; left: 50%; top: 14cqw; z-index: 6; translate: -50% 0; padding: 1.6cqw 4.2cqw; border-radius: 99px; background: var(--pink); font-size: 3.5cqw; font-weight: 800; white-space: nowrap; opacity: 0; pointer-events: none; }
.app-folha { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; display: flex; align-items: center; gap: 4cqw; padding: 5cqw 5.4cqw 9cqw; background: var(--card); border-top: .4cqw solid var(--pink); border-radius: 5.6cqw 5.6cqw 0 0; transform: translateY(105%); transition: transform .6s var(--curva); }
.app-folha.on { transform: none; }
.app-folha .app-ic { flex: none; width: 11cqw; height: 11cqw; border: 0; background: var(--pink); }
.app-folha .app-ic svg { width: 6cqw; height: 6cqw; }
.app-folha b { display: block; font-size: 4.6cqw; font-weight: 800; }
.app-folha small { display: block; margin-top: .6cqw; font-size: 3.3cqw; font-weight: 600; color: rgba(255, 255, 255, .78); }
.app-moedinha { position: absolute; left: 0; top: 0; z-index: 5; width: 4.8cqw; height: 4.8cqw; margin: -2.4cqw 0 0 -2.4cqw; border-radius: 50%; background: var(--pink); border: .5cqw solid #fff; pointer-events: none; }

/* === CURSOR-FANTASMA: mostra, sozinho, que dá pra tocar (some no primeiro toque) === */
.fantasma, .fantasma-anel { position: absolute; left: 0; top: 0; pointer-events: none; opacity: 0; }
.fantasma { z-index: 7; width: 11cqw; margin: -.9cqw 0 0 -1.3cqw; }
.fantasma svg { display: block; width: 100%; filter: drop-shadow(0 .6cqw 1.2cqw rgba(0, 0, 0, .55)); }
.fantasma-rot { position: absolute; right: 5cqw; top: 8.4cqw; padding: 1.4cqw 3.6cqw; border-radius: 99px; background: var(--pink); color: #fff; font-size: 4.6cqw; font-weight: 800; white-space: nowrap; box-shadow: 0 1.4cqw 3cqw rgba(0, 0, 0, .45); }
/* anel de contorno que abre quando o fantasma "toca" */
.fantasma-anel { z-index: 6; width: 17cqw; height: 17cqw; margin: -8.5cqw 0 0 -8.5cqw; border: .7cqw solid var(--pink); border-radius: 50%; }

/* === O CELULAR CHAMA: um anel de contorno sai da moldura até a pessoa tocar === */
.cel-tilt::before { content: ''; position: absolute; inset: 0; z-index: 3; border-radius: 16% / 7.77%; border: 1.5px solid var(--pink); opacity: 0; pointer-events: none; }
.cel-cena.convida .cel-tilt::before { animation: sonar 2.6s ease-out infinite, flutuar 6.5s ease-in-out infinite; }
@keyframes sonar { 0% { opacity: .75; transform: scale(1); } 100% { opacity: 0; transform: scale(1.16); } }
@media (prefers-reduced-motion: reduce) { .cel-cena.convida .cel-tilt::before { animation: none; } }
