/* app-instalar.css — os dois botões do celular (`app/site/app_instalar.php`) e o passo a passo em tela cheia do Android e
 * do iPhone (`app-instalar.js`), 16/10/2026. As cores são as do site (o cartão escuro e o laranja da caixa de conta). */

/* ------------------------------------------------------------------ os botões */
.app-instalar { margin: 18px 0 2px; }
.app-instalar[hidden] { display: none !important; }
.app-instalar-titulo { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font: 700 11px/1.2 'Segoe UI', system-ui, sans-serif; letter-spacing: 1px; text-transform: uppercase; color: #aab3c5; }
.app-instalar-titulo::before, .app-instalar-titulo::after { content: ''; flex: 1; height: 1px; background: #343c4d; }
.app-instalar-botoes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.app-botao { display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 10px 12px; border-radius: 10px; border: 1px solid #3b4253; background: #121722; color: #eef1f7; text-decoration: none; text-align: left; cursor: pointer; font: inherit; transition: border-color .15s, transform .15s, background .15s; }
.app-botao:hover { border-color: #f39543; background: #171d2b; }
.app-botao:active { transform: scale(.98); }
.app-botao svg { flex: 0 0 auto; width: 28px; height: 28px; }
.app-botao span { display: flex; flex-direction: column; min-width: 0; }
.app-botao b { font: 700 14px/1.2 'Segoe UI', system-ui, sans-serif; }
.app-botao small { font: 500 11.5px/1.3 'Segoe UI', system-ui, sans-serif; color: #9aa4b7; margin-top: 2px; }
.app-botao-android svg { color: #7fd36b; }
.app-botao-iphone svg { color: #e9edf5; }
/* o botão do aparelho de quem vê fica em destaque (e vem primeiro) */
.app-instalar[data-aparelho="android"] .app-botao-android,
.app-instalar[data-aparelho="iphone"] .app-botao-iphone { background: linear-gradient(135deg, #f7a54b, #e0712d); border-color: #f7a54b; color: #1a0f05; box-shadow: 0 8px 22px #e0712d40; }
.app-instalar[data-aparelho="android"] .app-botao-android svg, .app-instalar[data-aparelho="iphone"] .app-botao-iphone svg { color: #1a0f05; }
.app-instalar[data-aparelho="android"] .app-botao-android small, .app-instalar[data-aparelho="iphone"] .app-botao-iphone small { color: #4a2a10; }
.app-instalar[data-aparelho="iphone"] .app-botao-iphone { order: -1; }
@media (max-width: 380px) { .app-instalar-botoes { grid-template-columns: 1fr; } }

/* a /entrada (escolha depois de entrar) e a página /app */
.app-instalar-entrada { max-width: 560px; margin: 22px auto 0; }
.app-pagina { max-width: 900px; }
.app-pagina-topo { display: flex; gap: 18px; align-items: center; margin-bottom: 6px; }
.app-pagina-icone { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 10px 30px #0008; flex: 0 0 auto; }
.app-pagina-topo h2 { margin: 4px 0 6px; }
.app-instalar-pagina { max-width: 620px; }
.app-instalar-pagina .app-botao { min-height: 68px; }
.app-pagina-cartoes { margin-top: 26px; }
@media (max-width: 600px) { .app-pagina-topo { flex-direction: column; align-items: flex-start; } .app-pagina-icone { width: 72px; height: 72px; border-radius: 17px; } }

/* ------------------------------------------------------------------ o passo a passo (um <dialog> na camada de cima) */
dialog.ai-guia { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0;
  background: #0d1017; color: #eef1f7; font: 16px/1.45 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif; overflow: hidden; }
dialog.ai-guia::backdrop { background: #05070bcc; }
.ai-casca { position: absolute; inset: 0; display: flex; flex-direction: column;
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
  background: radial-gradient(120% 80% at 50% 0%, #2a1a10 0%, #0d1017 60%); }
.ai-topo { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 6px; }
.ai-topo small { display: block; font: 700 11px/1.2 'Segoe UI', system-ui, sans-serif; letter-spacing: 1.2px; text-transform: uppercase; color: #f7a54b; }
.ai-topo h2 { margin: 3px 0 0; font: 800 21px/1.15 'Segoe UI', system-ui, sans-serif; letter-spacing: -.3px; color: #fff; }
.ai-fechar { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; border: 1px solid #ffffff22; background: #ffffff10; color: #fff; font-size: 24px; line-height: 38px; padding: 0; cursor: pointer; }
.ai-trilho { flex: 1; min-height: 0; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.ai-trilho::-webkit-scrollbar { display: none; }
.ai-passo { flex: 0 0 100%; width: 100%; scroll-snap-align: center; scroll-snap-stop: always; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 14px; padding: 8px 18px 6px; box-sizing: border-box; min-height: 0; }
.ai-arte { position: relative; min-height: 0; overflow: hidden; }
.ai-texto { max-width: 520px; width: 100%; margin: 0 auto; }
.ai-texto h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font: 800 20px/1.2 'Segoe UI', system-ui, sans-serif; color: #fff; }
.ai-num { flex: 0 0 auto; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, #f7a54b, #e0712d); color: #1a0f05; font: 800 15px/1 'Segoe UI', system-ui, sans-serif; }
.ai-texto p { margin: 0; color: #c9d0dd; font-size: 15.5px; }
.ai-texto b { color: #fff; }
.ai-acao { margin-top: 12px; }
.ai-botao { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 12px; border: 0; background: linear-gradient(135deg, #f7a54b, #e0712d); color: #1a0f05; font: 800 15px/1 'Segoe UI', system-ui, sans-serif; text-decoration: none; cursor: pointer; }
.ai-link { display: flex; gap: 8px; margin-top: 12px; }
.ai-link input { flex: 1; min-width: 0; min-height: 44px !important; border-radius: 10px !important; font-size: 14px !important; background: #121722 !important; color: #eef1f7 !important; border: 1px solid #3b4253 !important; padding: 0 12px !important; }
.ai-link button { flex: 0 0 auto; min-height: 44px; padding: 0 16px; border-radius: 10px; border: 0; background: #2b3343; color: #fff; font: 700 14px 'Segoe UI', system-ui, sans-serif; cursor: pointer; }
.ai-pe { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px 14px; }
.ai-pe button { min-height: 46px; min-width: 104px; padding: 0 18px; border-radius: 12px; font: 800 15px/1 'Segoe UI', system-ui, sans-serif; cursor: pointer; }
.ai-voltar { border: 1px solid #ffffff26; background: transparent; color: #dfe4ee; }
.ai-voltar[disabled] { visibility: hidden; }
.ai-proximo { border: 0; background: linear-gradient(135deg, #f7a54b, #e0712d); color: #1a0f05; }
.ai-pontos { display: flex; gap: 7px; }
.ai-pontos i { width: 8px; height: 8px; border-radius: 50%; background: #ffffff33; transition: width .2s, background .2s; }
.ai-pontos i.atual { width: 22px; border-radius: 6px; background: #f7a54b; }

/* deitado (celular de lado, tela baixa): a ilustração à esquerda e o texto à direita */
@media (orientation: landscape) and (max-height: 560px) {
  .ai-topo { padding: 8px 16px 2px; }
  .ai-topo h2 { font-size: 18px; }
  .ai-passo { grid-template-rows: minmax(0, 1fr); grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 18px; padding: 4px 22px; }
  .ai-arte { height: 100%; }
  .ai-texto { align-self: center; }
  .ai-texto h3 { font-size: 18px; }
  .ai-texto p { font-size: 14.5px; }
  .ai-pe { padding: 4px 16px 8px; }
  .ai-pe button { min-height: 40px; }
}

/* ------------------------------------------------------------------ as ilustrações: o celular desenhado */
/* o celular tem um tamanho de desenho só (210 x 432) e cabe na caixa pela escala (`--k`, do app-instalar.js): deitado ou
 * numa tela baixa ele encolhe inteiro, sem quebrar as letras de dentro */
.ai-tel { position: absolute; left: 50%; top: 50%; width: 210px; height: 432px; transform: translate(-50%, -50%) scale(var(--k, 1)); transform-origin: center;
  border-radius: 30px; background: #000; padding: 7px; box-shadow: 0 0 0 2px #3a3f4b, 0 18px 50px #000a; box-sizing: border-box; }
.ai-tel::before { content: ''; position: absolute; top: 12px; left: 50%; width: 26%; height: 14px; transform: translateX(-50%); border-radius: 10px; background: #000; z-index: 3; }
.ai-tela { position: relative; width: 100%; height: 100%; border-radius: 24px; overflow: hidden; background: #f2f2f7; color: #111; font: 11px/1.3 -apple-system, 'Segoe UI', system-ui, sans-serif; }
.ai-tela.escura { background: #1c1c1e; color: #f2f2f7; }
.ai-tel.deitado { width: 432px; height: 210px; }
.ai-tel.deitado::before { top: 50%; left: 12px; width: 14px; height: 26%; transform: translateY(-50%); }

/* a página por trás (o site), apagada */
.ai-fundo-site { position: absolute; inset: 0; background: linear-gradient(#1b2030, #12151d); padding: 34px 12px 0; box-sizing: border-box; color: #fff; }
.ai-fundo-site .l1 { font: 900 17px/1 Impact, 'Arial Narrow', sans-serif; letter-spacing: 1px; color: #f7a54b; }
.ai-fundo-site .l2 { height: 7px; border-radius: 4px; background: #ffffff22; margin-top: 10px; }
.ai-fundo-site .l2.c { width: 60%; }
.ai-fundo-site .l3 { margin-top: 14px; height: 26px; border-radius: 6px; background: linear-gradient(135deg, #f7a54b, #e0712d); width: 55%; }
.ai-apagado::after { content: ''; position: absolute; inset: 0; background: #0006; }

/* o alvo de cada passo: o anel que pulsa */
.ai-alvo { position: relative; z-index: 2; box-shadow: 0 0 0 2px #f7a54b, 0 0 0 6px #f7a54b55 !important; border-radius: 10px; animation: ai-pulsa 1.4s ease-in-out infinite; }
@keyframes ai-pulsa { 0%, 100% { box-shadow: 0 0 0 2px #f7a54b, 0 0 0 5px #f7a54b55; } 50% { box-shadow: 0 0 0 2px #f7a54b, 0 0 0 11px #f7a54b00; } }
.ai-dedo { position: absolute; z-index: 4; width: 30px; height: 30px; border-radius: 50%; background: #ffffffd9; box-shadow: 0 2px 10px #0006; pointer-events: none; animation: ai-toque 1.4s ease-in-out infinite; }
@keyframes ai-toque { 0%, 100% { transform: scale(1); opacity: .95; } 50% { transform: scale(.78); opacity: .7; } }
@media (prefers-reduced-motion: reduce) { .ai-alvo, .ai-dedo { animation: none; } }

/* a barra do Safari do iOS 26 (embaixo, flutuando) */
.ai-b26 { position: absolute; left: 8px; right: 8px; bottom: 12px; display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 22px; background: #f9f9fbe6; box-shadow: 0 4px 16px #0004; color: #111; z-index: 2; }
.ai-b26 span { display: grid; place-items: center; height: 30px; border-radius: 15px; background: #fff; }
.ai-b26 .v { width: 30px; font-size: 18px; }
.ai-b26 .e { flex: 1; font-size: 10.5px; font-weight: 600; }
.ai-b26 .m { width: 34px; font-weight: 900; letter-spacing: 1px; }
/* o menu do ••• */
.ai-menu { position: absolute; right: 10px; bottom: 56px; width: 70%; border-radius: 16px; background: #f9f9fbf2; box-shadow: 0 10px 30px #0005; overflow: hidden; z-index: 3; color: #111; }
.ai-menu div { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; border-bottom: 1px solid #0000000f; font-size: 10.5px; }
.ai-menu div:last-child { border-bottom: 0; }
.ai-menu svg { width: 13px; height: 13px; }
/* a barra clássica (até o iOS 18) */
.ai-bc { position: absolute; left: 0; right: 0; bottom: 0; padding: 7px 12px 14px; background: #f7f7f9f2; border-top: 1px solid #0000001a; z-index: 2; }
.ai-bc .end { height: 22px; border-radius: 8px; background: #e4e4ea; display: grid; place-items: center; font-size: 10px; font-weight: 600; margin-bottom: 7px; color: #222; }
.ai-bc .ics { display: flex; justify-content: space-around; align-items: center; color: #0a7aff; font-size: 16px; }
.ai-bc .ics span { display: grid; place-items: center; width: 30px; height: 26px; }
.ai-bc svg { width: 17px; height: 17px; }
/* a folha de compartilhar */
.ai-folha { position: absolute; left: 0; right: 0; bottom: 0; top: 30%; border-radius: 16px 16px 0 0; background: #f2f2f7; z-index: 3; padding: 10px 9px; box-sizing: border-box; color: #111; box-shadow: 0 -8px 24px #0003; }
.ai-folha .cab { display: flex; align-items: center; gap: 8px; padding: 2px 2px 8px; border-bottom: 1px solid #0000001a; }
.ai-folha .cab img { width: 26px; height: 26px; border-radius: 6px; }
.ai-folha .cab b { display: block; font-size: 10.5px; }
.ai-folha .cab small { color: #666; font-size: 9px; }
.ai-folha .apps { display: flex; gap: 9px; padding: 9px 2px; }
.ai-folha .apps i { width: 30px; height: 30px; border-radius: 9px; background: #d5d5dc; }
.ai-folha .lista { border-radius: 10px; background: #fff; overflow: hidden; margin-top: 6px; }
.ai-folha .lista div { display: flex; align-items: center; justify-content: space-between; padding: 8px 9px; border-bottom: 1px solid #0000000f; font-size: 10.5px; }
.ai-folha .lista div:last-child { border-bottom: 0; }
.ai-folha svg { width: 14px; height: 14px; }
/* o "Adicionar à Tela de Início" */
.ai-add { position: absolute; inset: 0; background: #f2f2f7; z-index: 3; color: #111; }
.ai-add .bar { display: flex; align-items: center; justify-content: space-between; padding: 30px 9px 8px; font-size: 10px; }
.ai-add .bar b { font-size: 10.5px; }
.ai-add .bar .azul { color: #0a7aff; font-weight: 700; padding: 3px 6px; }
.ai-add .cartao { margin: 6px 9px; border-radius: 10px; background: #fff; padding: 9px; display: flex; gap: 9px; align-items: center; }
.ai-add .cartao img { width: 40px; height: 40px; border-radius: 9px; }
.ai-add .cartao b { display: block; font-size: 12px; border-bottom: 1px solid #0000001a; padding-bottom: 4px; margin-bottom: 4px; }
.ai-add .cartao small { color: #777; font-size: 9px; }
.ai-add .chave { margin: 6px 9px; border-radius: 10px; background: #fff; padding: 9px; display: flex; justify-content: space-between; align-items: center; font-size: 10.5px; }
.ai-add .chave i { width: 30px; height: 18px; border-radius: 9px; background: #34c759; position: relative; }
.ai-add .chave i::after { content: ''; position: absolute; right: 2px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; }
.ai-add .nota { margin: 6px 12px; color: #666; font-size: 9px; }
/* a Tela de Início */
.ai-inicio { position: absolute; inset: 0; background: linear-gradient(160deg, #3b4f7a, #20263a 60%, #2b1a2e); padding: 38px 12px 0; box-sizing: border-box; }
.ai-inicio .grade { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 9px; }
.ai-inicio .grade i { aspect-ratio: 1; border-radius: 22%; background: #ffffff2e; }
.ai-inicio .grade .nosso { display: flex; flex-direction: column; align-items: center; gap: 3px; background: none; }
.ai-inicio .grade .nosso img { width: 100%; aspect-ratio: 1; border-radius: 22%; }
.ai-inicio .grade .nosso small { color: #fff; font-size: 8.5px; font-weight: 600; }
.ai-inicio .dock { position: absolute; left: 8px; right: 8px; bottom: 10px; height: 46px; border-radius: 18px; background: #ffffff2e; }
/* o jogo aberto, deitado */
.ai-jogo { position: absolute; inset: 0; background: #160c05 center/cover no-repeat; }
.ai-jogo::after { content: 'TELA CHEIA'; position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); padding: 3px 8px; border-radius: 6px; background: #000a; color: #ffd98a; font: 800 9px/1.2 'Segoe UI', sans-serif; letter-spacing: 1px; }
/* a Central de Controle */
.ai-cc { position: absolute; inset: 0; background: #1c1c1ef2; padding: 34px 12px 0; box-sizing: border-box; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; align-content: start; }
.ai-cc i { height: 56px; border-radius: 16px; background: #ffffff1f; }
.ai-cc .gira { display: grid; place-items: center; height: 56px; border-radius: 16px; background: #fff; color: #ff3b30; }
.ai-cc .gira svg { width: 26px; height: 26px; }
.ai-cc .rot { grid-column: span 2; color: #fff; text-align: center; font-size: 10px; opacity: .85; }
/* o Android: aviso do download, a permissão e o instalador */
.ai-nota-and { position: absolute; left: 8px; right: 8px; top: 30px; border-radius: 16px; background: #2c2c30; color: #f2f2f7; padding: 10px; z-index: 3; box-shadow: 0 8px 22px #0006; }
.ai-nota-and .t { display: flex; align-items: center; gap: 7px; font-size: 10.5px; }
.ai-nota-and .t img { width: 20px; height: 20px; border-radius: 5px; }
.ai-nota-and .barra { height: 4px; border-radius: 2px; background: #ffffff26; margin: 8px 0 6px; overflow: hidden; }
.ai-nota-and .barra::after { content: ''; display: block; height: 100%; width: 70%; background: #8ab4f8; animation: ai-baixa 1.8s ease-in-out infinite; }
@keyframes ai-baixa { 0% { width: 8%; } 100% { width: 100%; } }
.ai-nota-and .bts { display: flex; justify-content: flex-end; gap: 12px; color: #8ab4f8; font-weight: 700; font-size: 10.5px; }
.ai-nota-and .bts span { padding: 3px 7px; }
.ai-dialogo { position: absolute; left: 10px; right: 10px; top: 32%; border-radius: 22px; background: #2c2c30; color: #f2f2f7; padding: 14px 13px 10px; z-index: 3; box-shadow: 0 10px 30px #0007; }
.ai-dialogo b { display: block; font-size: 12px; margin-bottom: 6px; }
.ai-dialogo p { margin: 0 0 10px; font-size: 10px; color: #c7c7cc; }
.ai-dialogo .bts { display: flex; justify-content: flex-end; gap: 10px; color: #8ab4f8; font-weight: 700; font-size: 10.5px; }
.ai-dialogo .bts span { padding: 4px 8px; }
.ai-dialogo .ic { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.ai-dialogo .ic img { width: 30px; height: 30px; border-radius: 8px; }
.ai-dialogo .tog { display: flex; justify-content: space-between; align-items: center; font-size: 10.5px; margin: 0 0 10px; }
.ai-dialogo .tog i { width: 30px; height: 17px; border-radius: 9px; background: #8ab4f8; position: relative; }
.ai-dialogo .tog i::after { content: ''; position: absolute; right: 2px; top: 2px; width: 13px; height: 13px; border-radius: 50%; background: #1b3a6b; }
/* o navegador de outro aplicativo (Instagram, WhatsApp...) */
.ai-inapp { position: absolute; left: 0; right: 0; top: 0; padding: 30px 10px 8px; background: #fff; border-bottom: 1px solid #0000001a; display: flex; align-items: center; justify-content: space-between; font-size: 10px; z-index: 2; }
.ai-inapp .m { width: 30px; height: 22px; display: grid; place-items: center; font-weight: 900; }
.ai-inapp-menu { position: absolute; right: 10px; top: 62px; width: 66%; border-radius: 12px; background: #fff; box-shadow: 0 10px 26px #0004; z-index: 3; overflow: hidden; }
.ai-inapp-menu div { padding: 8px 10px; font-size: 10.5px; border-bottom: 1px solid #0000000f; }
