/* =========================================================
   Pop-up da home: lista do grupo do WhatsApp
   Cartão compacto, sem escurecer o site: canto inferior direito no computador,
   base da tela no celular. Vermelho só no botão de ação.
   ========================================================= */
.pop {
  position: fixed; z-index: 9000; right: 20px; bottom: 20px; width: 340px;
  opacity: 0; transform: translateY(16px); transition: opacity .3s ease, transform .4s cubic-bezier(.2, .8, .2, 1);
  pointer-events: none;
}
.pop.is-on { opacity: 1; transform: none; pointer-events: auto; }
.pop[hidden] { display: none; }

.pop__box {
  position: relative; max-height: calc(100dvh - 40px); overflow: auto;
  background: var(--cream, #f3e9dc); color: var(--paper-ink, #2a1a12);
  border-radius: 16px; box-shadow: 0 18px 50px rgba(0, 0, 0, .4), 0 0 0 1px rgba(42, 26, 18, .08);
}
.pop__x {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  width: 32px; height: 32px; border: 0; border-radius: 50%;
  background: rgba(243, 233, 220, .14); color: var(--cream, #f3e9dc); font-size: 1.3rem; line-height: 1; cursor: pointer;
}
.pop__x:hover { background: rgba(243, 233, 220, .28); }

.pop__topo { display: flex; gap: 12px; align-items: center; padding: 14px 44px 12px 14px;
  background: var(--ink-2, #1b120d); color: var(--cream, #f3e9dc); border-radius: 16px 16px 0 0; }
.pop__foto { flex: none; width: 52px; height: 52px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--gold, #d4a86a); }
.pop__kicker { margin: 0 0 3px; font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold, #d4a86a); font-weight: 700; }
.pop__titulo { margin: 0; font-family: var(--font-display, Georgia, serif); font-weight: 500; font-size: 1.15rem; line-height: 1.15; }

.pop__corpo { padding: 12px 14px 14px; }
.pop__desc { margin: 0 0 10px; font-size: .92rem; line-height: 1.45; color: rgba(42, 26, 18, .82); }
.pop__form { display: grid; gap: 8px; }
.pop__in {
  width: 100%; min-height: 44px; padding: 0 12px; font: inherit; font-size: 16px; /* 16px evita o zoom do iPhone */
  border: 1.5px solid rgba(42, 26, 18, .2); border-radius: 10px; background: #fff; color: var(--paper-ink, #2a1a12);
}
.pop__in:focus { outline: none; border-color: var(--gold, #d4a86a); box-shadow: 0 0 0 3px rgba(212, 168, 106, .35); }
.pop__err { margin: 0; font-size: .85rem; color: var(--flame, #c8161d); font-weight: 600; }
.pop__err:empty { display: none; }

.pop__btn {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 46px;
  border: 0; border-radius: 999px; cursor: pointer;
  background: var(--flame, #c8161d); color: #fff; font: inherit; font-size: 1rem; font-weight: 700;
  transition: filter .2s ease;
}
.pop__btn:hover { filter: brightness(1.08); }
.pop__btn:disabled { opacity: .7; cursor: wait; }
.pop__btn--grupo { margin: 2px 0 10px; background: #1f8f4e; text-decoration: none; }   /* verde = entrar/seguro */
.pop__fine { margin: 0; font-size: .72rem; line-height: 1.35; color: rgba(42, 26, 18, .55); text-align: center; }

.pop__ok { margin: 0 0 6px; font-size: 1.05rem; font-weight: 700; }
.pop__aula { display: block; margin: 0 0 6px; padding: 10px 12px; border-radius: 10px; text-decoration: none;
  background: rgba(200, 22, 29, .08); color: var(--paper-ink, #2a1a12); font-size: .88rem; line-height: 1.4; }
.pop__aula b { color: var(--flame, #c8161d); }
.pop__link { display: block; width: 100%; padding: 8px; border: 0; background: none; font: inherit; font-size: .9rem;
  color: rgba(42, 26, 18, .7); text-decoration: underline; cursor: pointer; }

/* celular: faixa na base da tela, ocupando bem menos da metade */
@media (max-width: 600px) {
  .pop { left: 10px; right: 10px; bottom: 10px; width: auto; }
  .pop__desc { font-size: .88rem; margin-bottom: 8px; }
  #popCorpo > .pop__desc:first-child { display: none; }   /* no celular o título já explica: cartão mais baixo */
  .pop__topo { padding: 10px 44px 10px 12px; }
  .pop__foto { width: 44px; height: 44px; }
  .pop__titulo { font-size: 1.05rem; }
}
@media (prefers-reduced-motion: reduce) {
  .pop { transition: none; }
}
