/* Camada visual isolada: não modifica componentes do hero ou APIs comerciais. */
.assistant__panel { width: min(25.5rem, calc(100vw - 1.2rem)); max-height: min(40rem, 80dvh); grid-template-rows: auto minmax(0,1fr) auto auto; border-color: rgba(246,61,80,.36); background: #121217; box-shadow: 0 25px 85px #000b, 0 0 38px #cc122319; }
.assistant__header { background: linear-gradient(115deg,#231318,#15151b 75%); }
.assistant__log { min-height: 12rem; max-height: none; padding: 1rem; gap: .8rem; }
.assistant__msg { max-width: 94%; font-size: .87rem; }
.assistant__msg span { padding: .75rem .9rem; line-height: 1.55; }
.assistant__msg--bot span { background: linear-gradient(140deg,#25232b,#1a1a20); }
.assistant__msg strong { color: #ff6c7c; }
.assistant__chips { padding: .75rem 1rem; gap: .5rem; border-top: 1px solid #333039; }
.assistant__chips button { text-align: left; padding: .55rem .75rem; border-radius: .65rem; font-size: .76rem; }
.assistant__choices button { cursor: pointer; }
.assistant__typing span { color: #d1c4c7; font-size: .76rem; }
@media (max-width: 760px) { .assistant__panel { right: .5rem; left: .5rem; bottom: 5rem; width: auto; max-height: min(36rem, 75dvh); } .assistant__log { min-height: 9rem; } }
@media (prefers-reduced-motion: reduce) { .assistant__toggle { transition: none; } }

/* Arremate da página: chamada comercial e rodapé mais proporcionais. */
.final-cta { isolation: isolate; padding-block: clamp(4.25rem, 8vw, 6.5rem); background: radial-gradient(ellipse 60% 70% at 50% 110%, rgba(223,29,46,.2),transparent 80%), #0b0b0e; border-top: 1px solid #321922; }
.final-cta::before { content: ''; position: absolute; z-index: -1; inset: 15% 12% auto; height: 1px; background: linear-gradient(90deg, transparent, #e11d2e78, transparent); }
.final-cta h2 { max-width: 22ch; font-size: clamp(2.1rem, 4.2vw, 3.6rem); line-height: 1.15; text-wrap: balance; letter-spacing: -.04em; }
.final-cta .button-wa { margin-top: 1.8rem; }
.site-footer { background: linear-gradient(180deg,#111014,#08080a 42%); border-top-color: #37222a; }
.site-footer__grid { align-items: start; gap: clamp(2rem, 4vw, 4rem); padding-block: clamp(2.8rem, 5vw, 4rem); }
.site-footer__brand .brand { display: block; max-width: 18rem; }
.site-footer__brand .brand img { width: min(100%, 17rem); height: auto; object-fit: contain; }
.site-footer__brand p { max-width: 19rem; margin-top: 1rem; font-size: .88rem; color: #b9b6c0; }
.site-footer__contact > a, .site-footer__links > a { font-size: .88rem; }
.site-footer__bottom { font-size: .78rem; }
@media (max-width: 760px) { .site-footer__brand .brand img { width: 13rem; } .final-cta h2 { max-width: 18ch; } }

/* Convite discreto e acessível para a Ana — não abre a janela sozinho. */
.assistant__teaser { display:none; position:absolute; right:1.3rem; bottom:5.9rem; width:min(17rem,calc(100vw - 6rem)); background:linear-gradient(130deg,#28151c,#15151b); color:#fff; border:1px solid #e53a5066; border-radius:1rem; box-shadow:0 16px 45px #0009; padding:.85rem 2rem .85rem .9rem; font-size:.83rem; line-height:1.35; cursor:pointer; }
.assistant--teaser-visible .assistant__teaser:not(.is-dismissed) { display:block; animation:ana-teaser .4s ease-out both; }
.assistant__teaser button { position:absolute; top:.3rem; right:.35rem; background:transparent; border:0; color:#ddd; padding:.15rem .4rem; cursor:pointer; font-size:1.3rem; }
.assistant__privacy { padding:.55rem .8rem; background:#19191e; border-bottom:1px solid #343039; font-size:.71rem; line-height:1.35; color:#c2bfc8; }
.assistant__privacy label { display:flex; align-items:flex-start; gap:.45rem; cursor:pointer; color:#f3f0f2; }
.assistant__privacy input { margin-top:.1rem; accent-color:#e11d2e; }
.assistant__privacy > span { display:block; padding-left:1.5rem; }
.assistant__privacy .assistant__privacy-status { color:#f78b9a; margin-top:.15rem; }
@keyframes ana-teaser { from {opacity:0;transform:translateY(9px)} to {opacity:1;transform:translateY(0)} }
@media (prefers-reduced-motion: reduce) { .assistant__teaser {animation:none!important} }

/* v6.2 - Convite flutuante: visual correto, sem texto solto no rodape. */
.assistant { isolation: isolate; }
.assistant .assistant__teaser {
  position: absolute;
  display: none;
  right: 0;
  bottom: calc(3.6rem + 1rem);
  width: min(19.5rem, calc(100vw - 2rem));
  max-width: calc(100vw - 2rem);
  min-height: 5.5rem;
  padding: 1rem 2.6rem 1rem 1rem;
  box-sizing: border-box;
  color: #fff;
  background: linear-gradient(135deg, #2b151d 0%, #17161d 100%);
  border: 1px solid rgba(255, 76, 101, .52);
  border-radius: 1.15rem;
  box-shadow: 0 18px 45px rgba(0,0,0,.55), 0 0 25px rgba(224,27,48,.13);
  font-size: .86rem;
  line-height: 1.5;
  text-align: left;
  white-space: normal;
  overflow-wrap: break-word;
  cursor: pointer;
  z-index: 1;
}
.assistant.assistant--teaser-visible .assistant__teaser:not(.is-dismissed) { display: block; animation: ana-teaser .35s ease-out both; }
.assistant .assistant__teaser::after {
  content: ''; position: absolute; bottom: -.42rem; right: 1.25rem;
  width: .75rem; height: .75rem; transform: rotate(45deg);
  background: #19161e; border-right: 1px solid rgba(255,76,101,.52);
  border-bottom: 1px solid rgba(255,76,101,.52);
}
.assistant .assistant__teaser > span { display: block; padding: 0; color: #fff; font-weight: 500; }
.assistant .assistant__teaser > button {
  position: absolute; top: .35rem; right: .45rem;
  display: grid; place-items: center; width: 1.7rem; height: 1.7rem;
  padding: 0; background: rgba(255,255,255,.07); border: 0;
  border-radius: 50%; color: #ddd; font-size: 1.2rem; cursor: pointer;
}
.assistant .assistant__teaser > button:hover { background: rgba(255,255,255,.16); color: #fff; }
.assistant.is-open .assistant__teaser { display: none !important; }
@media (max-width: 480px) {
  .assistant .assistant__teaser { width: min(18rem, calc(100vw - 1.6rem)); right: 0; bottom: 4.75rem; font-size: .8rem; }
}
@media (prefers-reduced-motion: reduce) { .assistant.assistant--teaser-visible .assistant__teaser:not(.is-dismissed) { animation: none; } }

/* v6.3 - Ana: convite reconhecivel e com acao real. Estilos isolados. */
.assistant { isolation: isolate; }
.assistant .assistant__teaser {
  display: none; position: absolute; right: 0; bottom: calc(3.6rem + 1.25rem);
  width: min(21rem, calc(100vw - 1.5rem)); max-width: calc(100vw - 1.5rem);
  padding: 1rem; min-height: 0; color: #f9f8fa;
  background: linear-gradient(145deg, #282029 0%, #15151a 78%);
  border: 1px solid rgba(255, 75, 99, .55); border-radius: 1.1rem;
  box-shadow: 0 22px 56px rgba(0,0,0,.7), 0 0 28px rgba(225,29,46,.18);
  text-align: left; white-space: normal; overflow-wrap: anywhere;
  cursor: default; z-index: 2; line-height: 1.4;
}
.assistant.assistant--teaser-visible .assistant__teaser:not(.is-dismissed) { display: block; animation: ana-teaser .4s ease-out both; }
.assistant.is-open .assistant__teaser { display: none !important; }
.assistant .assistant__teaser::after {
  content: ''; position: absolute; width: .7rem; height: .7rem;
  right: 1.2rem; bottom: -.42rem; transform: rotate(45deg);
  border-right: 1px solid rgba(255,75,99,.55); border-bottom: 1px solid rgba(255,75,99,.55);
  background: #15151a;
}
.assistant .assistant__teaser-head { display: flex; align-items: center; gap: .65rem; padding-right: 1.6rem; }
.assistant .assistant__teaser-avatar {
  display: grid; place-items: center; flex: 0 0 2.35rem; width: 2.35rem; height: 2.35rem;
  background: #e11d2e; color: #fff; border-radius: 50%; font-size: 1rem; font-weight: 800;
  box-shadow: 0 0 15px rgba(225,29,46,.35);
}
.assistant .assistant__teaser-identity { display: flex; flex-direction: column; gap: .08rem; min-width: 0; }
.assistant .assistant__teaser-identity strong { color: #fff; font-size: .91rem; line-height: 1.2; }
.assistant .assistant__teaser-identity small { color: #ff9dab; font-size: .7rem; line-height: 1.3; }
.assistant .assistant__teaser-message { margin: .85rem 0; font-size: .85rem; line-height: 1.5; color: #e1dbe1; }
.assistant .assistant__teaser .assistant__teaser-cta {
  position: static; display: flex; align-items: center; justify-content: space-between;
  width: 100%; min-height: 2.6rem; padding: .62rem .85rem; cursor: pointer;
  color: #fff; background: #e11d2e; border: 1px solid #f13b4e;
  border-radius: .62rem; font-size: .83rem; font-weight: 700;
}
.assistant .assistant__teaser .assistant__teaser-cta:hover { background: #f12e43; }
.assistant .assistant__teaser .assistant__teaser-close {
  position: absolute; top: .52rem; right: .6rem; display: grid; place-items: center;
  width: 1.6rem; height: 1.6rem; padding: 0; background: rgba(255,255,255,.09);
  color: #e5dce1; border-radius: 50%; font-size: 1.2rem; cursor: pointer;
}
.assistant .assistant__teaser .assistant__teaser-close:hover { background: rgba(255,255,255,.19); }
.assistant .assistant__toggle { width: 3.9rem; height: 3.9rem; border: 1px solid rgba(255,150,163,.48); }
.assistant .assistant__toggle::before {
  content: ''; position: absolute; inset: -.3rem; border: 1px solid rgba(225,29,46,.4);
  border-radius: 50%; animation: ana-halo 3.4s ease-in-out infinite; pointer-events: none;
}
.assistant .assistant__toggle-badge {
  min-width: 1.55rem; padding: .1rem .22rem; border-radius: .4rem;
  font-size: .62rem; line-height: 1.2;
}
@keyframes ana-halo { 0%, 100% { opacity: .15; transform: scale(.93); } 50% { opacity: .85; transform: scale(1.12); } }
@media (max-width: 600px) {
  .assistant .assistant__teaser { width: min(19rem, calc(100vw - 1.25rem)); right: 0; bottom: 5rem; }
  .assistant .assistant__teaser-message { font-size: .82rem; }
}
@media (prefers-reduced-motion: reduce) {
  .assistant .assistant__toggle::before, .assistant.assistant--teaser-visible .assistant__teaser { animation: none !important; }
}

/* v6.4 - Identidade permanente da Ana, independentemente de sessionStorage. */
.assistant .assistant__persistent-label {
  position: absolute; right: calc(3.9rem + .65rem); bottom: .48rem;
  display: flex; flex-direction: column; align-items: flex-start;
  width: max-content; max-width: min(17rem, calc(100vw - 6.8rem));
  padding: .48rem .78rem; border: 1px solid rgba(255,81,104,.57);
  border-radius: .85rem; background: linear-gradient(140deg,#29131b,#16161c);
  box-shadow: 0 12px 28px rgba(0,0,0,.55); color: #fff;
  cursor: pointer; text-align: left; line-height: 1.35; z-index: 3;
}
.assistant .assistant__persistent-label strong {font-size:.76rem;color:#fff;}
.assistant .assistant__persistent-label small {font-size:.65rem;color:#ffa2ae;}
.assistant .assistant__persistent-label:hover { border-color:#ff6177; background:#301720; }
.assistant.is-open .assistant__persistent-label,
.assistant.assistant--teaser-visible .assistant__persistent-label { display:none; }
.assistant .assistant__teaser { z-index: 5; }
@media (max-width: 480px) {
  .assistant .assistant__persistent-label { max-width: calc(100vw - 6.5rem); right: 4.35rem; bottom:.62rem; }
  .assistant .assistant__persistent-label strong { font-size:.72rem; }
}
@media (prefers-reduced-motion: reduce) {
  .assistant .assistant__persistent-label { transition:none; }
}

/* v6.5: aviso informativo, sem checkbox de consentimento. */
.assistant .assistant__privacy--notice { padding:.65rem .9rem; color:#cfc8cd; background:#18171c; font-size:.72rem; line-height:1.45; }
.assistant .assistant__privacy--notice > span { padding:0; }
.assistant .assistant__privacy--notice a { color:#ffa7b2; text-decoration:underline; text-underline-offset:2px; }
