/* Oferta 5: conversa com a Carol, com cara de WhatsApp (tema próprio, sem logo do WhatsApp). */
@font-face { font-family: 'Montserrat'; src: url('/fonts/montserrat.woff2') format('woff2'); font-weight: 400 800; font-display: swap; }
:root {
  --verde: #008069; --verde-2: #00a884; --fundo: #efeae2; --balao-eu: #d9fdd3; --balao-ela: #ffffff;
  --texto: #111b21; --texto-2: #667781; --azul-check: #53bdeb; --sombra: 0 1px .5px rgba(11, 20, 26, .13);
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: #d1d7db; font-family: 'Segoe UI', Helvetica, Arial, sans-serif; color: var(--texto); -webkit-font-smoothing: antialiased; }
.app { position: relative; display: flex; flex-direction: column; height: 100vh; height: 100dvh; max-width: 560px; margin: 0 auto; background: var(--fundo); box-shadow: 0 0 30px rgba(0, 0, 0, .12); overflow: hidden; }
/* fundo com desenhos suaves, como no app */
.app::before { content: ''; position: absolute; inset: 0; opacity: .04; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23000' stroke-width='2'%3E%3Ccircle cx='20' cy='22' r='7'/%3E%3Cpath d='M70 15h18v12H70z'/%3E%3Cpath d='M15 80l10-10 10 10-10 10z'/%3E%3Cpath d='M80 75c6-8 18-8 22 0'/%3E%3Ccircle cx='60' cy='60' r='3'/%3E%3Cpath d='M95 105l8-6M40 108h14'/%3E%3C/g%3E%3C/svg%3E"); }

.topo { position: relative; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 10px 14px; padding-top: max(10px, env(safe-area-inset-top)); background: var(--verde); color: #fff; }
.avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; background: #cfd8dc; }
.quem { min-width: 0; }
.nome { display: flex; align-items: center; gap: 5px; font-weight: 600; font-size: 16.5px; white-space: nowrap; }
.verificado { width: 17px; height: 17px; flex: none; }
.verificado path:first-child { fill: #25d366; }
.verificado .ok { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.status { font-size: 13px; opacity: .9; min-height: 17px; }

.conversa { position: relative; z-index: 1; flex: 1; overflow-y: auto; padding: 10px 12px 14px; display: flex; flex-direction: column; gap: 3px; scroll-behavior: smooth; overscroll-behavior: contain; }
.dia { align-self: center; margin: 4px 0 8px; }
.dia span { display: inline-block; background: #fff; color: var(--texto-2); font-size: 12.5px; padding: 5px 12px; border-radius: 8px; box-shadow: var(--sombra); }
.aviso-cripto { align-self: center; max-width: 92%; margin: 0 0 10px; background: #ffeecd; color: #54656f; font-size: 12.5px; line-height: 1.4; text-align: center; padding: 6px 12px; border-radius: 8px; box-shadow: var(--sombra); }
.aviso-cripto svg { width: 12px; height: 12px; vertical-align: -1px; fill: none; stroke: currentColor; stroke-width: 2.4; }

.msg { position: relative; max-width: 82%; padding: 6px 9px 8px; border-radius: 8px; box-shadow: var(--sombra); font-size: 15.2px; line-height: 1.38; white-space: pre-line; word-wrap: break-word; animation: entrar .18s ease-out; }
.msg.ela { align-self: flex-start; background: var(--balao-ela); }
.msg.eu { align-self: flex-end; background: var(--balao-eu); }
.msg.ela.primeira { border-top-left-radius: 0; margin-top: 6px; }
.msg.eu.primeira { border-top-right-radius: 0; margin-top: 6px; }
.msg.ela.primeira::before { content: ''; position: absolute; top: 0; left: -8px; border: 8px solid transparent; border-top-color: var(--balao-ela); border-right-color: var(--balao-ela); border-width: 0 8px 10px 0; border-color: transparent var(--balao-ela) transparent transparent; }
.msg.eu.primeira::before { content: ''; position: absolute; top: 0; right: -8px; border-style: solid; border-width: 0 0 10px 8px; border-color: transparent transparent transparent var(--balao-eu); }
.hora { float: right; margin: 6px 0 -4px 10px; font-size: 11px; color: var(--texto-2); line-height: 1; display: inline-flex; align-items: center; gap: 3px; }
.hora svg { width: 16px; height: 11px; fill: none; stroke: var(--azul-check); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.msg b { font-weight: 700; }

/* cartão da oferta */
.msg.cartao { padding: 0; overflow: hidden; width: 82%; }
.cartao .c-topo { background: linear-gradient(135deg, #0b141a, #1f2c34); color: #fff; padding: 14px 14px 12px; }
.cartao .c-selo { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: #fff; background: #e31b2b; padding: 3px 8px; border-radius: 4px; }
.cartao .c-nome { margin-top: 8px; font-size: 14px; color: #c7d0d5; }
.cartao .c-preco { font-family: 'Montserrat', 'Segoe UI', sans-serif; font-size: 30px; font-weight: 800; line-height: 1.1; margin-top: 2px; }
.cartao .c-preco small { font-size: 14px; font-weight: 600; color: #c7d0d5; }
.cartao .c-dia { font-size: 13px; color: #25d366; font-weight: 600; margin-top: 2px; }
.cartao ul { list-style: none; margin: 0; padding: 12px 14px 4px; }
.cartao li { display: flex; gap: 8px; align-items: flex-start; font-size: 14.5px; margin-bottom: 7px; white-space: normal; }
.cartao li svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--verde-2); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; margin-top: 1px; }
.cartao .c-rodape { padding: 4px 14px 10px; font-size: 13px; color: var(--texto-2); white-space: normal; }
.cartao .c-rodape b { color: var(--texto); }
.cartao .hora { margin: 0 10px 8px 0; }

/* botão de pagamento dentro do balão */
.msg.link { padding: 0; overflow: hidden; }
.msg.link .l-texto { padding: 8px 10px 6px; white-space: normal; }
.msg.link a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border-top: 1px solid #e9edef; color: var(--verde-2); font-weight: 700; font-size: 15.5px; text-decoration: none; }
.msg.link a svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* "digitando..." */
.digitando { align-self: flex-start; display: inline-flex; gap: 4px; padding: 12px 14px; background: var(--balao-ela); border-radius: 8px; border-top-left-radius: 0; box-shadow: var(--sombra); margin-top: 6px; }
.digitando i { width: 7px; height: 7px; border-radius: 50%; background: #8696a0; animation: pulo 1.2s infinite; }
.digitando i:nth-child(2) { animation-delay: .15s; }
.digitando i:nth-child(3) { animation-delay: .3s; }
@keyframes pulo { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes entrar { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* opções de resposta (sempre 3) */
.opcoes { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 7px; padding: 0 12px; max-height: 0; overflow: hidden; transition: max-height .25s ease, padding .25s ease; }
.opcoes.aberta { max-height: 260px; padding: 8px 12px 10px; }
.opcao { appearance: none; border: 0; width: 100%; padding: 13px 14px; border-radius: 10px; background: #fff; color: var(--verde); font: inherit; font-size: 15.5px; font-weight: 600; text-align: center; box-shadow: var(--sombra); cursor: pointer; transition: background .15s, transform .1s; }
.opcao:hover { background: #f5f6f6; }
.opcao:active { transform: scale(.98); }
.opcao.forte { background: var(--verde-2); color: #fff; }
.opcao.forte:hover { background: #029277; }
.opcao:focus-visible { outline: 2px solid var(--verde-2); outline-offset: 2px; }

.barra { position: relative; z-index: 2; display: flex; gap: 8px; align-items: center; padding: 8px 10px; padding-bottom: max(8px, env(safe-area-inset-bottom)); background: #f0f2f5; }
.barra input { flex: 1; min-width: 0; height: 44px; border: 0; border-radius: 22px; padding: 0 16px; font: inherit; font-size: 16px; color: var(--texto); background: #fff; outline: none; }
.barra input:disabled { background: #f7f8fa; color: var(--texto-2); }
.barra input:focus { box-shadow: 0 0 0 2px var(--verde-2); }
.barra button { width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; background: var(--verde-2); display: grid; place-items: center; cursor: pointer; }
.barra button:disabled { background: #b7c2c8; cursor: default; }
.barra button svg { width: 20px; height: 20px; fill: #fff; margin-left: 2px; }
.sem-js { padding: 20px; text-align: center; }

@media (prefers-reduced-motion: reduce) { .msg, .digitando i { animation: none; } .conversa { scroll-behavior: auto; } }

/* nada encolhe dentro da conversa (o cartão e o botão de pagamento sumiam com a lista cheia) */
.conversa > * { flex-shrink: 0; }

/* vídeo de depoimento dentro do balão */
.msg.video { padding: 4px; width: 70%; max-width: 260px; }
.msg.video .v-caixa { position: relative; aspect-ratio: 9 / 16; border-radius: 6px; overflow: hidden; background: #000; }
.msg.video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.msg.video .v-play { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border: 0; border-radius: 50%; background: rgba(0,0,0,.55); display: grid; place-items: center; cursor: pointer; }
.msg.video .v-play svg { width: 30px; height: 30px; fill: #fff; margin-left: 4px; }
.msg.video .v-leg { display: block; padding: 6px 4px 2px; font-size: 13px; color: var(--texto-2); white-space: normal; }

/* preço riscado e economia no cartão */
.cartao .c-de { margin-top: 6px; font-size: 14px; color: #c7d0d5; }
.cartao .c-de s { color: #ff6b77; text-decoration-thickness: 2px; }
.cartao .c-eco { display: inline-block; margin-top: 8px; padding: 4px 9px; border-radius: 6px; background: rgba(37,211,102,.16); color: #4ade80; font-size: 13px; font-weight: 700; }

/* o botão de play some de verdade ao tocar (o display: grid acima vencia o atributo hidden) */
.msg.video .v-play[hidden] { display: none; }
