/* ==========================================================================
   UI — footer forte, gate de acesso e assistente simulado
   Carregar depois de site.css.
   ========================================================================== */

/* =====================================================================
   FOOTER
   ===================================================================== */
.foot {
  border-top: 1px solid var(--line);
  margin-top: 70px;
  background: linear-gradient(180deg, transparent, rgba(20, 31, 53, 0.55));
}
.foot-cta {
  position: relative;
  overflow: hidden;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(40px, 5vw, 64px) 24px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.foot-glow {
  position: absolute; left: 50%; top: -180px;
  width: 620px; height: 420px; transform: translateX(-50%);
  background: radial-gradient(ellipse, var(--glow) 0%, transparent 65%);
  filter: blur(46px); opacity: 0.5; pointer-events: none;
}
.foot-cta-in { position: relative; z-index: 1; }
.foot-cta h3 {
  font-family: var(--serif);
  font-size: clamp(21px, 3vw, 31px);
  color: var(--tx);
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-wrap: balance;
}
.foot-cta p { color: var(--mut); margin-top: 10px; font-size: var(--step-3); }
.foot-acoes { display: flex; gap: 12px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }

.foot-cols {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(34px, 4vw, 52px) 24px;
  display: grid;
  /* minmax(0,…) é obrigatório: sem ele o item de grid nasce com
     min-width:auto, não encolhe abaixo do próprio conteúdo e transborda o
     max-width — foi o que quebrou o footer, empurrando colunas para 1980px. */
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 40px;
}
.foot-cols > * { min-width: 0; }
.foot-col a { overflow-wrap: anywhere; }
.foot-marca .logo { font-size: 17px; }
.foot-marca .tagline {
  margin-top: 14px;
  color: var(--acc);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.7;
}
.foot-redes { display: flex; gap: 9px; margin-top: 20px; }
.foot-redes a {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--mut);
  transition: all var(--t-fast) var(--ease);
}
.foot-redes a:hover {
  color: var(--acc);
  border-color: var(--acc-dim);
  box-shadow: 0 0 16px var(--glow-soft);
}
/* As colunas de links são <nav>, e `.site nav { display:flex }` do cabeçalho
   alcançava elas — os links viravam itens flex lado a lado e o texto quebrava
   letra a letra. Precisa de especificidade maior que `.site nav`. */
.site .foot nav.foot-col {
  display: block;
  gap: 0;
  font-size: inherit;
  color: inherit;
}
.site .foot .foot-col a { padding: 5px 0; }
.site .foot .foot-col a::after { display: none; }

.foot-col h4 {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.13em;
  color: var(--prata); font-weight: 700; margin-bottom: 16px;
}
.foot-col a { display: block; color: var(--mut); font-size: 13.5px; padding: 5px 0; transition: color var(--t-fast); }
.foot-col a:hover { color: var(--acc); }
.foot-col .lk { display: inline; color: var(--acc); }
.foot-nota { color: var(--mut); font-size: 12.5px; line-height: 1.6; margin-bottom: 14px; }
.mini-selo {
  font-size: 9px; text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--dim); border: 1px solid var(--line);
  border-radius: 999px; padding: 2px 6px; margin-left: 5px;
}
.foot-base {
  max-width: var(--maxw); margin: 0 auto;
  padding: 20px 24px 34px;
  border-top: 1px solid var(--line-soft);
  display: flex; gap: 10px; flex-wrap: wrap;
  font-size: 12px; color: var(--dim);
}
.foot-base a { color: var(--mut); }
.foot-base a:hover { color: var(--acc); }
.foot-base .sep { opacity: 0.5; }

@media (max-width: 900px) { .foot-cols { grid-template-columns: 1fr 1fr; gap: 30px; } }
@media (max-width: 560px) { .foot-cols { grid-template-columns: 1fr; } }

/* =====================================================================
   GATE — convite de entrada e assinatura
   ===================================================================== */
.gate-fundo {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(3, 7, 16, 0.78);
  backdrop-filter: blur(6px);
  display: grid; place-items: center;
  padding: 22px;
  animation: uiFade 160ms var(--ease);
}
@keyframes uiFade { from { opacity: 0 } to { opacity: 1 } }
@keyframes uiSobe { from { opacity: 0; transform: translateY(14px) } to { opacity: 1; transform: none } }

.gate {
  position: relative;
  width: min(460px, 100%);
  background: linear-gradient(165deg, var(--surface2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  padding: 34px 32px 28px;
  box-shadow: var(--shadow-lg), var(--ring);
  animation: uiSobe 200ms var(--ease);
}
.gate-x {
  position: absolute; top: 14px; right: 14px;
  width: 30px; height: 30px; display: grid; place-items: center;
  border-radius: 50%; color: var(--mut);
}
.gate-x:hover { color: var(--tx); background: var(--surface3); }
.gate-selo {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 13px;
  background: var(--acc-tint); border: 1px solid var(--acc-dim);
  color: var(--acc); margin-bottom: 18px;
  box-shadow: 0 0 22px var(--glow-soft);
}
.gate h2 { font-family: var(--serif); font-size: 21px; color: var(--tx); letter-spacing: -0.01em; }
.gate > p { color: var(--mut); font-size: 13.5px; margin-top: 8px; line-height: 1.6; }
.gate-lista { display: grid; gap: 9px; margin: 20px 0 24px; }
.gate-lista span { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--tx-soft); }
.gate-lista svg { color: var(--ok); flex: none; }
.gate-acoes { display: flex; gap: 10px; }
.gate-acoes .pbtn { flex: 1; justify-content: center; }
.gate-nota {
  margin-top: 16px; font-size: 11.5px; color: var(--dim);
  text-align: center; padding-top: 14px; border-top: 1px solid var(--line-soft);
}

.aviso {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%);
  z-index: 400;
  background: var(--surface2); border: 1px solid var(--acc-dim);
  color: var(--tx); font-size: 13px;
  padding: 12px 20px; border-radius: 999px;
  box-shadow: var(--shadow-md), 0 0 26px var(--glow-soft);
  animation: uiSobe 200ms var(--ease);
  transition: opacity 300ms, transform 300ms;
}
.aviso.fim { opacity: 0; transform: translateX(-50%) translateY(8px); }

/* =====================================================================
   ASSISTENTE SIMULADO
   ===================================================================== */
.ia-bolha {
  position: fixed; right: 22px; bottom: 22px; z-index: 250;
  display: flex; align-items: center; gap: 9px;
  padding: 12px 18px 12px 15px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--acc), var(--acc-dim));
  color: #071020; font-weight: 700; font-size: 13.5px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 26px var(--glow-soft);
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.ia-bolha:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(0,0,0,.5), 0 0 34px var(--glow); }

.ia {
  position: fixed; right: 22px; bottom: 22px; z-index: 260;
  width: min(382px, calc(100vw - 32px));
  /* Cabe em notebook de 768px de altura sem colar no cabeçalho */
  height: min(520px, calc(100vh - 110px));
  display: none; flex-direction: column;
  background: linear-gradient(170deg, var(--surface2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  box-shadow: var(--shadow-lg), var(--ring);
  overflow: hidden;
}
.ia.on { display: flex; animation: uiSobe 220ms var(--ease); }
.ia-topo {
  display: flex; align-items: center; gap: 11px;
  padding: 15px 14px 15px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(78, 168, 255, 0.06);
}
.ia-av {
  width: 34px; height: 34px; flex: none;
  display: grid; place-items: center; border-radius: 10px;
  background: var(--acc-tint); border: 1px solid var(--acc-dim);
  color: var(--acc); box-shadow: 0 0 16px var(--glow-soft);
}
.ia-id b { display: block; font-size: 13.5px; color: var(--tx); }
.ia-id span { font-size: 11px; color: var(--mut); }
.ia-x { margin-left: auto; color: var(--mut); width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; }
.ia-x:hover { color: var(--tx); background: var(--surface3); }

.ia-corpo { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.ia-msg { display: flex; }
.ia-msg--eu { justify-content: flex-end; }
.ia-msg .bolha { max-width: 86%; padding: 11px 14px; border-radius: 14px; font-size: 13.2px; line-height: 1.58; }
.ia-msg--ia .bolha {
  background: var(--surface3);
  border: 1px solid var(--line);
  border-bottom-left-radius: 5px;
  color: var(--tx-soft);
}
.ia-msg--eu .bolha { background: var(--acc); color: #071020; border-bottom-right-radius: 5px; font-weight: 500; }
.ia-msg .bolha b { color: var(--tx); }
.ia-msg--eu .bolha b { color: inherit; }
.ia-cta {
  display: block; width: 100%; margin-top: 12px;
  padding: 9px 12px; border-radius: var(--r-1);
  background: var(--acc); color: #071020;
  font-size: 12.5px; font-weight: 700;
}
.ia-cta:hover { background: var(--acc-2); }

.ia-pensando { display: inline-flex; gap: 4px; padding: 2px 0; }
.ia-pensando i { width: 6px; height: 6px; border-radius: 50%; background: var(--mut); animation: uiPulsa 1.1s infinite; }
.ia-pensando i:nth-child(2) { animation-delay: 0.16s; }
.ia-pensando i:nth-child(3) { animation-delay: 0.32s; }
@keyframes uiPulsa { 0%,60%,100% { opacity: .3; transform: translateY(0) } 30% { opacity: 1; transform: translateY(-3px) } }

.ia-sugestoes { display: flex; gap: 7px; overflow-x: auto; padding: 0 14px 12px; }
.ia-sugestoes button {
  white-space: nowrap; flex: none;
  font-size: 11.5px; color: var(--tx-soft);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 13px; background: var(--surface);
  transition: all var(--t-fast);
}
.ia-sugestoes button:hover { border-color: var(--acc-dim); color: var(--acc); }

.ia-form { display: flex; gap: 8px; padding: 12px 14px 14px; border-top: 1px solid var(--line); }
.ia-form input {
  flex: 1; background: var(--surface3); border: 1px solid var(--line);
  border-radius: 999px; padding: 10px 15px; color: var(--tx); font-size: 13px; outline: none;
}
.ia-form input::placeholder { color: var(--dim); }
.ia-form input:focus { border-color: var(--acc-dim); box-shadow: 0 0 0 3px var(--glow-soft); }
.ia-enviar {
  width: 38px; height: 38px; flex: none;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--acc); color: #071020;
}
.ia-enviar:hover { background: var(--acc-2); }

/* =====================================================================
   DEPOIMENTOS e CTA (usados na home)
   ===================================================================== */
.depo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; }
.depo {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  padding: 26px 24px 20px;
  position: relative; overflow: hidden;
  transition: border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.depo::before {
  content: ""; position: absolute; top: 0; left: 24px; right: 24px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--prata-dim), transparent);
}
.depo:hover { border-color: var(--acc-dim); transform: translateY(-2px); }
.depo blockquote { margin: 0 0 20px; font-size: 14.5px; line-height: 1.62; color: var(--tx-soft); }
.depo blockquote::before {
  content: "\201C";
  display: block; font-family: var(--serif); font-size: 40px; line-height: 0.6;
  color: var(--acc); opacity: 0.55; margin-bottom: 10px;
}
.depo figcaption { display: flex; align-items: center; gap: 11px; }
.depo figcaption .av {
  width: 36px; height: 36px; flex: none;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--acc-tint); border: 1px solid var(--acc-dim);
  color: var(--acc); font-size: 11.5px; font-weight: 700;
}
.depo figcaption b { display: block; font-size: 13px; color: var(--tx); font-weight: 600; }
.depo figcaption span span { display: block; font-size: 11.5px; color: var(--mut); margin-top: 2px; }
.depo-nota { margin-top: 14px; font-size: 11.5px; color: var(--dim); }

/* O bloco de assinatura recebe fotografia de fundo. Três camadas:
   a foto (::before), o véu que garante contraste (::after) e o conteúdo.
   O texto ocupa a esquerda, então o véu é denso ali e abre à direita —
   mesma lógica do hero. Medido sobre a parte mais clara da imagem (os
   livros em tom areia), o branco fica em ~10,7:1 onde o texto começa. */
.cta-forte {
  position: relative; overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  background: var(--surface);
  padding: clamp(38px, 5vw, 62px) clamp(26px, 5vw, 58px);
}
.cta-forte::before {
  content: "";
  position: absolute; inset: 0;
  background: url('img/acesso-completo.webp') center / cover no-repeat;
  filter: saturate(0.85) brightness(0.9);
}
.cta-forte::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg,
      rgba(7, 13, 26, 0.94) 0%,
      rgba(7, 13, 26, 0.88) 38%,
      rgba(7, 13, 26, 0.62) 68%,
      rgba(7, 13, 26, 0.42) 100%),
    radial-gradient(ellipse at 12% 0%, rgba(78, 168, 255, 0.20), transparent 55%);
}
.cta-glow {
  position: absolute; z-index: 1;
  width: 460px; height: 460px;
  right: -140px; top: -190px; border-radius: 50%;
  background: radial-gradient(circle, var(--glow) 0%, transparent 66%);
  filter: blur(38px); opacity: 0.55; pointer-events: none;
}
.cta-inner { position: relative; z-index: 2; max-width: 62ch; }
.cta-inner .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.14em;
  font-weight: 700; color: var(--acc);
  border: 1px solid var(--acc-dim); background: var(--acc-tint);
  border-radius: 999px; padding: 6px 13px; margin-bottom: 20px;
}
.cta-inner .eyebrow .pt {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--acc); box-shadow: 0 0 8px var(--acc);
}
.cta-inner h2 {
  font-family: var(--serif);
  font-size: clamp(24px, 3.4vw, 36px);
  line-height: 1.16; letter-spacing: -0.02em;
  color: var(--tx); margin: 0 0 14px; text-wrap: balance;
}
.cta-inner p { color: var(--mut); font-size: var(--step-3); line-height: 1.6; margin: 0; }
.cta-acoes { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.pbtn.grande { padding: 12px 22px; font-size: 14px; }
.pbtn.ghost { background: transparent; border-color: var(--prata-dim); color: var(--tx-soft); }
.pbtn.ghost:hover { border-color: var(--prata); color: var(--tx); background: rgba(195, 208, 228, 0.06); }
.cta-selos {
  display: flex; gap: 20px; flex-wrap: wrap;
  margin-top: 26px; padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--mut);
}

@media (prefers-reduced-motion: reduce) {
  .gate, .aviso, .ia { animation: none; }
  .ia-pensando i { animation: none; opacity: .6; }
  .depo:hover, .ia-bolha:hover { transform: none; }
}

/* =====================================================================
   ÁREA DO MEMBRO
   ===================================================================== */
.app-topo {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 26px;
  margin-bottom: var(--pad-section);
  border-bottom: 1px solid var(--line);
}
.app-topo h1 {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 32px);
  color: var(--tx);
  letter-spacing: -0.02em;
}
.app-topo .lead { color: var(--mut); font-size: var(--step-2); margin-top: 8px; }

/* Menu da conta no cabeçalho */
.eu { position: relative; }
.eu-btn {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--acc-dim);
  background: var(--acc-tint);
  transition: box-shadow var(--t-fast) var(--ease);
}
.eu-btn:hover { box-shadow: 0 0 14px var(--glow-soft); }
.eu-av { color: var(--acc); font-weight: 700; font-size: 13px; text-transform: uppercase; }
.eu-menu {
  display: none;
  position: absolute; right: 0; top: calc(100% + 10px);
  min-width: 214px;
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  z-index: 60;
}
.eu.on .eu-menu { display: block; }
.eu-nome {
  display: block; padding: 9px 11px 11px;
  font-size: 13px; font-weight: 600; color: var(--tx);
  border-bottom: 1px solid var(--line-soft); margin-bottom: 6px;
}
.eu-nome span { display: block; font-size: 11.5px; font-weight: 400; color: var(--mut); margin-top: 3px; }
.eu-menu a, .eu-menu button {
  display: block; width: 100%; text-align: left;
  padding: 9px 11px; border-radius: var(--r-1);
  font-size: 13px; color: var(--tx-soft);
}
.eu-menu a:hover, .eu-menu button:hover { background: var(--surface3); color: var(--acc); }

/* O atalho do painel é ferramenta interna: não compete com Entrar/Assinar */
.so-painel { opacity: 0.62; }
.so-painel:hover { opacity: 1; }

@media (max-width: 980px) { .so-painel { display: none; } }

/* =====================================================================
   PROVA SOCIAL — a escala da rede, antes da proposta de valor
   ===================================================================== */
.prova {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  background:
    radial-gradient(ellipse at 50% 120%, rgba(78, 168, 255, 0.14), transparent 62%),
    linear-gradient(180deg, var(--surface) 0%, var(--surface2) 100%);
  padding: clamp(30px, 4vw, 46px) clamp(22px, 4vw, 46px);
  margin-bottom: var(--pad-section);
  text-align: center;
}
.prova-glow {
  position: absolute; left: 50%; bottom: -220px;
  width: 700px; height: 340px; transform: translateX(-50%);
  background: radial-gradient(ellipse, var(--glow) 0%, transparent 68%);
  filter: blur(48px); opacity: 0.45; pointer-events: none;
}
.prova-in { position: relative; z-index: 1; }
.prova-linha {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.16em;
  font-weight: 700; color: var(--prata); margin-bottom: 26px;
}
.prova-nums {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 26px;
}
.prova-nums b {
  display: block;
  font-family: var(--serif);
  font-size: clamp(28px, 4.6vw, 44px);
  font-weight: 800;
  line-height: 1;
  color: var(--tx);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 26px var(--glow-soft);
}
.prova-nums span {
  display: block; margin-top: 10px;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.11em;
  color: var(--mut); font-weight: 600;
}

/* =====================================================================
   BENEFÍCIOS — o que a assinatura entrega
   ===================================================================== */
.bene-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(288px, 1fr));
  gap: 14px;
}
.bene {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  padding: 24px 22px;
  transition: border-color var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease);
}
.bene:hover {
  border-color: var(--acc-dim);
  transform: translateY(-2px);
  box-shadow: 0 0 30px var(--glow-soft);
}
.bene-ic {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--acc-tint);
  border: 1px solid var(--acc-dim);
  color: var(--acc);
  margin-bottom: 16px;
  transition: box-shadow var(--t-fast) var(--ease);
}
.bene:hover .bene-ic { box-shadow: 0 0 18px var(--glow-soft); }
.bene h3 {
  font-family: var(--serif);
  font-size: 15.5px;
  font-weight: 700;
  color: var(--tx);
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-bottom: 9px;
}
.bene p { color: var(--mut); font-size: 13.2px; line-height: 1.6; }

@media (prefers-reduced-motion: reduce) { .bene:hover { transform: none; } }

/* Erro da tela de entrada */
.login-erro {
  background: var(--err-tint);
  border: 1px solid var(--err);
  color: var(--tx);
  border-radius: var(--r-1);
  padding: 11px 14px;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 18px;
}
.login-card .lk { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-decoration: underline; }

/* Avatar com fotografia — recorte circular sem deformar */
.av.com-foto, .pcard .av.com-foto {
  background-size: cover;
  background-position: center top;
  border: 1px solid var(--acc-dim);
  box-shadow: 0 0 16px var(--glow-soft);
}
