/* Troque só as variáveis para adaptar à identidade de cada app */
:root {
  --pwa-accent: #E07A3A;
  --pwa-accent-fg: #ffffff;
  --pwa-bg: #ffffff;
  --pwa-fg: #1f1a14;
  --pwa-muted: #6b6258;
  --pwa-overlay: rgba(20, 15, 10, .55);
  --pwa-radius: 20px;
}

.pwa-overlay {
  position: fixed; inset: 0; z-index: 2147483000;
  display: flex; align-items: flex-end; justify-content: center;
  background: var(--pwa-overlay);
  opacity: 0; transition: opacity .2s ease;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.pwa-overlay.pwa-open { opacity: 1; }

.pwa-card {
  width: 100%; max-width: 480px; box-sizing: border-box;
  background: var(--pwa-bg); color: var(--pwa-fg);
  border-radius: var(--pwa-radius) var(--pwa-radius) 0 0;
  padding: 28px 24px calc(20px + env(safe-area-inset-bottom));
  text-align: center;
  transform: translateY(24px); transition: transform .25s ease;
}
.pwa-open .pwa-card { transform: translateY(0); }

@media (min-width: 560px) {
  .pwa-overlay { align-items: center; }
  .pwa-card { border-radius: var(--pwa-radius); padding-bottom: 24px; }
}

.pwa-icon { width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 12px; display: block; }
.pwa-title { margin: 0 0 8px; font-size: 22px; font-weight: 800; line-height: 1.2; }
.pwa-sub { margin: 0 0 20px; font-size: 15px; line-height: 1.5; color: var(--pwa-muted); }

.pwa-btn {
  display: block; width: 100%; box-sizing: border-box;
  padding: 14px 18px; margin: 0 0 10px;
  border: 0; border-radius: 14px; cursor: pointer;
  background: var(--pwa-accent); color: var(--pwa-accent-fg);
  font-size: 16px; font-weight: 700;
}
.pwa-btn-secondary { background: transparent; color: var(--pwa-accent); border: 2px solid var(--pwa-accent); }
.pwa-link {
  background: none; border: 0; cursor: pointer; padding: 10px;
  color: var(--pwa-muted); font-size: 15px; font-weight: 600;
}

.pwa-steps { list-style: none; counter-reset: s; margin: 0 0 16px; padding: 0; text-align: left; }
.pwa-step {
  counter-increment: s; position: relative;
  padding: 12px 12px 12px 48px; margin-bottom: 8px;
  background: #f6f2ea; border-radius: 12px; font-size: 15px; line-height: 1.4;
}
.pwa-step::before {
  content: counter(s); position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--pwa-accent); color: var(--pwa-accent-fg);
  font-size: 14px; font-weight: 700; display: grid; place-items: center;
}
.pwa-share-icon { width: 20px; height: 20px; vertical-align: -4px; margin: 0 2px; color: #0a84ff; }

@media (prefers-reduced-motion: reduce) {
  .pwa-overlay, .pwa-card { transition: none; }
}

/* Tela de escolha do aparelho: Android, iPhone ou PC */
.pwa-card { max-height: 92vh; overflow-y: auto; }
.pwa-choices { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin: 4px 0 8px; }
.pwa-choice {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0;
  padding: 14px 4px; background: #fff; color: var(--pwa-fg);
  border: 2px solid #e6e0d4; border-radius: 20px; cursor: pointer;
  font: inherit; box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.pwa-choice-detected { border-color: var(--pwa-accent); }
.pwa-choice-label { font-size: 15px; font-weight: 800; }
.pwa-phone { width: 58px; height: 66px; color: var(--pwa-fg); }
.pwa-choice-detected .pwa-phone { color: var(--pwa-accent); }
/* os dois celulares são maiores para preencher o card (o do PC tem o botão "Continuar" embaixo) */
.pwa-phone-android, .pwa-phone-ios { width: 100%; height: 108px; }
.pwa-choice { justify-content: center; }
.pwa-badge {
  font-size: 11px; font-weight: 700; color: #b5561f; background: #fbe9dc;
  padding: 3px 6px; border-radius: 999px;
}
.pwa-continuar {
  font-size: 13px; font-weight: 700; color: var(--pwa-accent-fg); background: var(--pwa-accent);
  padding: 6px 12px; border-radius: 999px;
}
.pwa-video {
  display: block; margin: 0 auto 14px; width: auto; max-width: 100%; max-height: 46vh;
  aspect-ratio: 9 / 16; border-radius: 16px; background: #000; object-fit: cover;
}

.pwa-btn:disabled { opacity: .4; cursor: default; }
