/* Estilo do prompt de instalação inline (ver pwa-install-gate.js).
   Mesmo visual do antigo pwa-gate.html, adaptado pra ficar dentro de
   #flowz-install-gate na própria página final (não numa página separada). */
#flowz-install-gate{
  /* !important pq a página final pode ter escondido documentElement
     inteiro via visibility:hidden (guard de sessão) -- o prompt de
     instalação precisa aparecer de qualquer jeito, mesmo sem sessão.
     z-index bem alto de propósito: páginas legadas (equipe/artista/
     proximos) têm overlays próprios com z-index até 99999 (#splash,
     #update-banner) que continuam no DOM mas nunca são escondidos
     porque o script que faria isso está neutralizado -- o gate
     precisa ficar por cima de TODOS eles. */
  visibility:visible!important;
  position:fixed;inset:0;z-index:999999;
  font-family:"Outfit",system-ui,sans-serif;color:#F7FAFF;
  display:flex;align-items:center;justify-content:center;
  padding:28px 22px calc(28px + env(safe-area-inset-bottom));
  background:#050914;
}
#flowz-install-gate:empty{display:none}
#flowz-install-gate::before{
  content:'';position:fixed;inset:0;z-index:0;pointer-events:none;
  background:
    radial-gradient(ellipse 65% 42% at 12% -4%, rgba(124,58,237,.28), transparent 62%),
    radial-gradient(ellipse 55% 40% at 105% 108%, rgba(255,154,68,.20), transparent 60%),
    #050914;
}
#flowz-install-gate .fg-card{position:relative;z-index:1;width:100%;max-width:420px;text-align:center}
#flowz-install-gate .fg-badge{position:relative;width:88px;height:88px;margin:0 auto 22px;display:flex;align-items:center;justify-content:center}
#flowz-install-gate .fg-badge-ring{position:absolute;inset:6px;border-radius:24px;background:linear-gradient(135deg,#7C3AED,#FF9A44);filter:blur(16px);opacity:.4;animation:fgPulse 2.6s ease-in-out infinite}
#flowz-install-gate .fg-badge-ring.is-warn{background:#F59E0B}
#flowz-install-gate .fg-badge img,#flowz-install-gate .fg-badge .fg-badge-warn{position:relative;width:64px;height:64px;border-radius:18px;box-shadow:0 14px 32px rgba(0,0,0,.5),0 0 0 1px rgba(255,255,255,.08) inset;display:flex;align-items:center;justify-content:center}
#flowz-install-gate .fg-badge .fg-badge-warn{background:#1a140a}
@keyframes fgPulse{0%,100%{transform:scale(.92);opacity:.32}50%{transform:scale(1.08);opacity:.52}}
#flowz-install-gate .fg-eyebrow{font-family:"JetBrains Mono",monospace;font-size:11px;font-weight:700;letter-spacing:.16em;color:#FF9A44;margin-bottom:10px}
#flowz-install-gate h1{font-family:"Barlow Condensed",sans-serif;font-size:34px;font-weight:800;letter-spacing:-.4px;line-height:1.04;margin-bottom:12px}
#flowz-install-gate h1 .fg-accent{color:transparent;background:linear-gradient(100deg,#FF9A44,#FFC98A);-webkit-background-clip:text;background-clip:text}
#flowz-install-gate .fg-sub{font-size:14.5px;line-height:1.6;color:rgba(247,250,255,.58);margin-bottom:22px}
#flowz-install-gate .fg-benefit{display:inline-flex;align-items:center;gap:7px;margin:0 auto 24px;padding:8px 16px;background:rgba(255,154,68,.08);border:1px solid rgba(255,154,68,.2);border-radius:999px;color:#FF9A44}
#flowz-install-gate .fg-benefit svg{flex-shrink:0}
#flowz-install-gate .fg-benefit span{font-size:12px;font-weight:600;color:rgba(247,250,255,.75);letter-spacing:-.1px}
#flowz-install-gate .fg-mock{margin-bottom:22px}
#flowz-install-gate .fg-mock-frame{background:#131118;border:1px solid rgba(255,255,255,.09);border-radius:14px;padding:11px 16px;display:flex;align-items:center;gap:14px;box-shadow:0 10px 26px rgba(0,0,0,.35)}
#flowz-install-gate .fg-mock-frame.fg-mock-top{justify-content:space-between}
#flowz-install-gate .fg-mock-url{font-family:"JetBrains Mono",monospace;font-size:10px;color:rgba(247,250,255,.58);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#flowz-install-gate .fg-mock-ico{color:rgba(255,255,255,.22);flex-shrink:0}
#flowz-install-gate .fg-mock-target{position:relative;flex-shrink:0;width:32px;height:32px;border-radius:10px;background:rgba(255,154,68,.16);display:flex;align-items:center;justify-content:center;color:#FF9A44}
#flowz-install-gate .fg-mock-target::after{content:'';position:absolute;inset:-7px;border-radius:14px;border:1.6px solid rgba(255,154,68,.55);animation:fgTargetPulse 1.7s ease-out infinite}
@keyframes fgTargetPulse{0%{transform:scale(.86);opacity:.9}100%{transform:scale(1.28);opacity:0}}
#flowz-install-gate .fg-mock-label{margin-top:9px;text-align:center;font-family:"JetBrains Mono",monospace;font-size:10.5px;font-weight:700;letter-spacing:.08em;color:#FF9A44;text-transform:uppercase}
#flowz-install-gate .fg-steps{list-style:none;text-align:left;margin-bottom:24px}
#flowz-install-gate .fg-step{position:relative;display:flex;gap:14px;padding-bottom:18px}
#flowz-install-gate .fg-step:last-child{padding-bottom:0}
#flowz-install-gate .fg-step:not(:last-child)::before{content:'';position:absolute;left:11px;top:25px;bottom:-1px;width:1.5px;background:linear-gradient(rgba(255,154,68,.32),rgba(255,154,68,.06))}
#flowz-install-gate .fg-step-n{position:relative;z-index:1;flex-shrink:0;width:23px;height:23px;border-radius:50%;background:#12101c;border:1.5px solid rgba(255,154,68,.45);color:#FF9A44;font-family:"JetBrains Mono",monospace;font-size:10.5px;font-weight:700;display:flex;align-items:center;justify-content:center;margin-top:1px}
#flowz-install-gate .fg-step-txt{flex:1;min-width:0;padding-top:2px;font-size:14.5px;line-height:1.5;color:rgba(247,250,255,.78)}
#flowz-install-gate .fg-step-txt b{color:#fff;font-weight:700}
#flowz-install-gate .fg-btn{width:100%;padding:16px;border-radius:14px;font-size:15.5px;font-weight:700;font-family:inherit;border:none;cursor:pointer;letter-spacing:-.1px;display:flex;align-items:center;justify-content:center;gap:8px}
#flowz-install-gate .fg-btn-primary{position:relative;background:linear-gradient(rgba(0,0,0,.4),rgba(0,0,0,.4)),linear-gradient(135deg,#7C3AED,#FF9A44);color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.35);box-shadow:0 10px 28px rgba(124,58,237,.32)}
#flowz-install-gate .fg-btn:active{opacity:.85;transform:scale(.99)}
#flowz-install-gate .fg-btn:focus-visible{outline:2px solid #FF9A44;outline-offset:2px}
#flowz-install-gate #flowz-gate-installed-note{margin-top:14px;font-size:13px;color:#34D399;font-weight:600;display:flex;align-items:center;justify-content:center;gap:6px}
#flowz-install-gate .fg-fallback{margin-top:20px;font-size:12px;line-height:1.55;color:rgba(247,250,255,.38)}
#flowz-install-gate .fg-fallback b{color:rgba(247,250,255,.6)}
@media(prefers-reduced-motion:no-preference){
  #flowz-install-gate .fg-badge,#flowz-install-gate .fg-eyebrow,#flowz-install-gate h1,#flowz-install-gate .fg-sub,#flowz-install-gate .fg-benefit,#flowz-install-gate .fg-mock,#flowz-install-gate .fg-steps,#flowz-install-gate .fg-btn,#flowz-install-gate .fg-fallback{
    opacity:0;animation:fgRise .5s cubic-bezier(.22,.68,0,1.2) forwards;
  }
  #flowz-install-gate .fg-badge{animation-delay:.02s}
  #flowz-install-gate .fg-eyebrow{animation-delay:.10s}
  #flowz-install-gate h1{animation-delay:.16s}
  #flowz-install-gate .fg-sub{animation-delay:.22s}
  #flowz-install-gate .fg-benefit{animation-delay:.28s}
  #flowz-install-gate .fg-mock{animation-delay:.32s}
  #flowz-install-gate .fg-steps{animation-delay:.36s}
  #flowz-install-gate .fg-btn{animation-delay:.44s}
  #flowz-install-gate .fg-fallback{animation-delay:.5s}
}
@keyframes fgRise{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){#flowz-install-gate .fg-badge-ring,#flowz-install-gate .fg-mock-target::after{animation:none}}

/* ── iPhone / Android: "coloque na Tela de Início" (04/10, tema branco a pedido do usuário) ── */
#flowz-install-gate:has(.fg-home)::before{background:#fff}
#flowz-install-gate:has(.fg-home){background:#fff;color:#111;color-scheme:light;align-items:flex-start;overflow-y:auto}
#flowz-install-gate .fg-home{padding-top:4px;padding-bottom:84px;font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Outfit",system-ui,sans-serif}
#flowz-install-gate .fg-plat{display:flex;gap:4px;padding:4px;margin:0 auto 26px;max-width:260px;background:#f2f2f5;border:1px solid #e6e6ea;border-radius:12px}
#flowz-install-gate .fg-home:has(.fg-tip-up) .fg-plat{margin-top:56px}
#flowz-install-gate .fg-plat button{flex:1;min-height:40px;border:0;border-radius:9px;background:transparent;color:#6b6b76;font-family:inherit;font-size:14px;font-weight:600;cursor:pointer;transition:background .2s ease,color .2s ease}
#flowz-install-gate .fg-plat button[aria-pressed=true]{background:#111;color:#fff}
#flowz-install-gate .fg-plat button:focus-visible{outline:2px solid #6D28D9;outline-offset:2px}
#flowz-install-gate .fg-phone{position:relative;width:min(70%,260px);margin:0 auto 26px;padding:46px 18px 0;border:8px solid #ececef;border-bottom:0;border-radius:44px 44px 0 0}
#flowz-install-gate .fg-notch{position:absolute;top:12px;left:50%;width:30%;height:18px;transform:translateX(-50%);border-radius:10px;background:#ececef}
#flowz-install-gate .fg-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
#flowz-install-gate .fg-cell{aspect-ratio:1;border-radius:22%;background:#ececef}
#flowz-install-gate .fg-app{grid-column:span 2;grid-row:span 2;display:flex;align-items:center;justify-content:center}
#flowz-install-gate .fg-app img{width:100%;aspect-ratio:1;border-radius:22%;display:block;animation:fgAppIn .45s cubic-bezier(.32,.72,0,1) both}
@keyframes fgAppIn{from{opacity:0;transform:scale(.88)}to{opacity:1;transform:none}}
#flowz-install-gate .fg-title{font-family:inherit;font-size:25px;font-weight:700;line-height:1.2;letter-spacing:-.3px;color:#111;margin:0 0 22px}
#flowz-install-gate .fg-howto{list-style:none;text-align:left;margin:0 auto 14px;max-width:340px;padding:0}
#flowz-install-gate .fg-howto li{display:flex;gap:10px;align-items:baseline;font-size:17px;line-height:1.45;color:#111;padding:5px 0}
#flowz-install-gate .fg-howto .fg-n{flex-shrink:0;width:20px;color:#111;font-weight:600}
#flowz-install-gate .fg-howto b{font-weight:600;color:#111}
#flowz-install-gate .fg-i{width:20px;height:20px;display:inline-block;vertical-align:-4px}
#flowz-install-gate .fg-ic{color:#6D28D9;margin:0 2px}
#flowz-install-gate b.fg-link{color:#6D28D9}
#flowz-install-gate .fg-dica{font-size:13px;line-height:1.5;color:#6b6b76;max-width:340px;margin:0 auto 18px;text-align:left}
#flowz-install-gate .fg-dica b{color:#3a3a44}
#flowz-install-gate .fg-dica .fg-i{width:16px;height:16px;vertical-align:-3px}
#flowz-install-gate .fg-home .fg-btn-primary{background:#7C3AED;box-shadow:none;text-shadow:none;max-width:340px;margin:0 auto 14px;min-height:48px}
#flowz-install-gate .fg-home .fg-fallback{font-size:12px;color:#8a8a94}
#flowz-install-gate .fg-home .fg-fallback b{color:#3a3a44}
#flowz-install-gate .fg-skip{display:block;margin:14px auto 0;min-height:44px;padding:0 18px;border:1px solid rgba(0,0,0,.14);border-radius:12px;background:transparent;color:#3a3a44;font:inherit;font-size:14px;font-weight:600;cursor:pointer}
#flowz-install-gate .fg-skip:focus-visible{outline:2px solid #7C3AED;outline-offset:2px}
/* balão apontando pro botão do navegador */
#flowz-install-gate .fg-tip{position:fixed;z-index:2;display:inline-flex;align-items:center;gap:8px;padding:12px 18px;border-radius:999px;background:#7C3AED;color:#fff;font-size:17px;font-weight:600;white-space:nowrap;animation:fgBob 1.6s ease-in-out infinite}
#flowz-install-gate .fg-tip .fg-i{width:22px;height:22px}
#flowz-install-gate .fg-tip::after{content:'';position:absolute;width:14px;height:14px;background:#7C3AED;transform:rotate(45deg);border-radius:2px}
#flowz-install-gate .fg-tip-down{left:0;right:0;margin:0 auto;width:max-content;bottom:calc(14px + env(safe-area-inset-bottom))}
#flowz-install-gate .fg-tip-down::after{left:50%;bottom:-5px;margin-left:-7px}
#flowz-install-gate .fg-tip-up{right:10px;top:calc(12px + env(safe-area-inset-top))}
#flowz-install-gate .fg-tip-up::after{right:18px;top:-5px}
@keyframes fgBob{0%,100%{transform:translateY(0)}50%{transform:translateY(5px)}}
#flowz-install-gate .fg-tip-up{animation-name:fgBobUp}
@keyframes fgBobUp{0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}
@media (prefers-reduced-motion:reduce){#flowz-install-gate .fg-tip,#flowz-install-gate .fg-app img{animation:none}}
#flowz-install-gate .fg-home #flowz-gate-installed-note{color:#047857}
#flowz-install-gate .fg-home .fg-app img{box-shadow:0 0 0 1px #e3e3e8,0 8px 20px rgba(17,17,17,.08)}
