/* SIX_DEMO_ENTREVISTA_V1 — tela de entrevista da LUA (demonstração personalizada). Celular primeiro; no computador, apresentação + conversa. */
:root {
  --bg: #08090b; --bg2: #0e0f15; --card: rgba(17, 15, 30, .78); --linha: rgba(167, 139, 250, .16);
  --txt: #ededf1; --txt2: #a9a9b8; --txt3: #6f6f80;
  --ac: #7c84ff; --ac2: #a78bfa; --ac3: #7c3aed; --ok: #34d399;
  --raio: 22px;
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--txt); }
body { font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; overflow: hidden; -webkit-font-smoothing: antialiased; }
button, textarea { font: inherit; color: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }

/* Fundo com brilhos suaves */
.bg { position: fixed; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.bg i { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .45; animation: flutua 18s ease-in-out infinite alternate; }
.bg i:nth-child(1) { width: 520px; height: 520px; background: #4c1d95; top: -160px; left: -140px; }
.bg i:nth-child(2) { width: 460px; height: 460px; background: #3730a3; bottom: -180px; right: -120px; animation-delay: -6s; }
.bg i:nth-child(3) { width: 300px; height: 300px; background: #7c3aed; top: 40%; left: 45%; opacity: .18; animation-delay: -12s; }
@keyframes flutua { to { transform: translate(40px, 30px) scale(1.08); } }

.wrap { position: relative; z-index: 1; height: 100%; height: 100dvh; display: flex; align-items: stretch; justify-content: center; }

/* ===== Apresentação (só computador) ===== */
.hero { display: none; }
.marca { display: flex; align-items: center; gap: 12px; }
.marca b { display: block; font-size: 16px; letter-spacing: .2px; }
.marca span { color: var(--txt3); font-size: 12.5px; }

/* ===== Conversa (celular = tela cheia) ===== */
.app { position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; background: rgba(10, 9, 18, .55); backdrop-filter: blur(6px); }
.topo { display: flex; align-items: center; justify-content: space-between; padding: calc(12px + var(--safe-t)) 16px 10px; }
.quem { display: flex; align-items: center; gap: 10px; min-width: 0; }
.quem b { display: block; font-size: 16px; }
.quem small { display: block; color: var(--txt2); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.av { position: relative; width: 40px; height: 40px; border-radius: 50%; padding: 2px; background: linear-gradient(135deg, var(--ac), var(--ac3)); flex: 0 0 auto; }
.av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; background: #1a1430; }
.av::after { content: ""; position: absolute; right: 0; bottom: 1px; width: 10px; height: 10px; border-radius: 50%; background: var(--ok); border: 2px solid #0b0912; }
.ico { width: 44px; height: 44px; border-radius: 14px; border: 1px solid var(--linha); background: rgba(255, 255, 255, .04); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: .2s; flex: 0 0 auto; }
.ico:hover { background: rgba(124, 132, 255, .12); }
.ico:active { transform: scale(.94); }
#btnVoz .mudo { display: block; } #btnVoz svg:not(.mudo) { display: none; }
#btnVoz[aria-pressed="true"] { color: var(--ac); border-color: rgba(124, 132, 255, .5); }
#btnVoz[aria-pressed="true"] .mudo { display: none; } #btnVoz[aria-pressed="true"] svg:not(.mudo) { display: block; }
.prog { height: 3px; margin: 0 16px; background: rgba(255, 255, 255, .06); border-radius: 3px; overflow: hidden; }
.prog i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--ac), var(--ac2)); border-radius: 3px; transition: width .6s ease; }

/* Tela inicial */
.inicio, .montando { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px 24px calc(24px + var(--safe-b)); overflow-y: auto; }
.inicio h2, .montando h2 { margin: 18px 0 6px; font-size: 24px; letter-spacing: -.3px; }
.inicio p { margin: 0 0 26px; color: var(--txt2); max-width: 340px; font-size: 16px; }
.lua-grande { position: relative; width: 132px; height: 132px; display: grid; place-items: center; }
.lua-grande img { position: relative; width: 112px; height: 112px; border-radius: 50%; object-fit: cover; box-shadow: 0 12px 40px rgba(124, 58, 237, .45); background: #1a1430; }
.lua-grande .anel { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(167, 139, 250, .55); animation: pulso 2.4s ease-out infinite; }
.lua-grande .anel.a2 { animation-delay: 1.2s; }
.lua-grande.peq { width: 104px; height: 104px; } .lua-grande.peq img { width: 86px; height: 86px; }
@keyframes pulso { from { transform: scale(.86); opacity: .9; } to { transform: scale(1.28); opacity: 0; } }
.acoes { display: grid; gap: 12px; width: 100%; max-width: 340px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 20px; border-radius: 16px; border: 0; cursor: pointer; font-weight: 650; font-size: 16px; text-decoration: none; transition: transform .15s, box-shadow .2s, background .2s; }
.btn:active { transform: scale(.97); }
.btn.prim { color: #fff; background: linear-gradient(135deg, var(--ac), var(--ac2)); box-shadow: 0 10px 30px rgba(124, 132, 255, .35); }
.btn.prim:hover { box-shadow: 0 14px 38px rgba(124, 132, 255, .5); }
.btn.sec { color: var(--txt); background: rgba(255, 255, 255, .06); border: 1px solid var(--linha); }
.btn.link { margin-top: 14px; min-height: 48px; color: var(--ac2); background: rgba(124, 58, 237, .12); border: 1px solid rgba(167, 139, 250, .3); width: 100%; max-width: 340px; }
.pular { margin-top: 20px; color: var(--txt3); font-size: 13.5px; text-decoration: none; }
.pular:hover { color: var(--txt2); }

/* Mensagens */
.msgs { flex: 1; overflow-y: auto; padding: 18px 14px 10px; display: flex; flex-direction: column; gap: 6px; scroll-behavior: smooth; overscroll-behavior: contain; }
.msg { display: flex; gap: 8px; align-items: flex-end; max-width: 100%; animation: entra .28s ease both; }
@keyframes entra { from { opacity: 0; transform: translateY(8px); } }
.msg .b { padding: 11px 14px; border-radius: 18px; max-width: min(82%, 520px); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15.5px; line-height: 1.45; }
.msg.lua .b { background: rgba(255, 255, 255, .065); border: 1px solid rgba(255, 255, 255, .06); border-bottom-left-radius: 6px; }
.msg.lua .mini { width: 26px; height: 26px; border-radius: 50%; overflow: hidden; flex: 0 0 auto; background: #1a1430; visibility: hidden; }
.msg.lua .mini img { width: 100%; height: 100%; object-fit: cover; display: block; }
.msg.lua.ult .mini { visibility: visible; }
.msg.cli { justify-content: flex-end; }
.msg.cli .b { color: #fff; background: linear-gradient(135deg, #6d6af5, #8b5cf6); border-bottom-right-radius: 6px; }
.msg.cli .b .aud { opacity: .8; margin-right: 4px; }
.msg + .msg.cli, .msg.cli + .msg.lua { margin-top: 8px; }
.digitando .b { display: inline-flex; gap: 5px; padding: 15px 16px; }
.digitando .b i { width: 7px; height: 7px; border-radius: 50%; background: var(--txt2); animation: pula 1.2s infinite; }
.digitando .b i:nth-child(2) { animation-delay: .15s; } .digitando .b i:nth-child(3) { animation-delay: .3s; }
@keyframes pula { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }
.aviso { align-self: center; margin: 6px 0; padding: 7px 12px; border-radius: 12px; background: rgba(248, 113, 113, .1); color: #fca5a5; font-size: 13px; text-align: center; }

/* Entrada */
.entrada { padding: 6px 12px calc(10px + var(--safe-b)); border-top: 1px solid rgba(255, 255, 255, .05); background: rgba(8, 9, 11, .6); }
.opcoes { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: none; }
.opcoes::-webkit-scrollbar { display: none; }
.opcoes:empty { display: none; }
.opcoes button { flex: 0 0 auto; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(167, 139, 250, .4); background: rgba(124, 58, 237, .14); color: #ddd6fe; font-weight: 600; font-size: 14.5px; cursor: pointer; animation: entra .3s ease both; }
.opcoes button:active { transform: scale(.96); }
.barra { display: flex; align-items: flex-end; gap: 8px; }
.barra textarea { flex: 1; min-height: 48px; max-height: 140px; resize: none; padding: 12px 16px; border-radius: 24px; border: 1px solid var(--linha); background: rgba(255, 255, 255, .05); color: var(--txt); font-size: 16px; line-height: 1.4; outline: none; transition: border-color .2s; }
.barra textarea:focus { border-color: rgba(124, 132, 255, .6); background: rgba(255, 255, 255, .07); }
.barra textarea::placeholder { color: var(--txt3); }
.barra .ico { width: 48px; height: 48px; border-radius: 50%; }
.barra .enviar { background: linear-gradient(135deg, var(--ac), var(--ac2)); border: 0; color: #fff; }
.barra .enviar:disabled { opacity: .4; }
.barra .mic.on { background: #ef4444; border-color: #ef4444; color: #fff; animation: grav 1.2s infinite; }
@keyframes grav { 50% { box-shadow: 0 0 0 8px rgba(239, 68, 68, .18); } }
.app.modo-voz .barra .mic:not(.on) { background: linear-gradient(135deg, var(--ac), var(--ac2)); border: 0; color: #fff; }
.gravando { display: flex; align-items: center; gap: 12px; padding: 4px 6px 10px; color: #fca5a5; }
.gravando b { font-variant-numeric: tabular-nums; }
.onda { display: inline-flex; align-items: center; gap: 3px; height: 20px; }
.onda i { width: 4px; border-radius: 2px; background: #ef4444; animation: onda .9s ease-in-out infinite; }
.onda i:nth-child(2) { animation-delay: .1s; } .onda i:nth-child(3) { animation-delay: .2s; } .onda i:nth-child(4) { animation-delay: .3s; } .onda i:nth-child(5) { animation-delay: .4s; }
@keyframes onda { 0%, 100% { height: 5px; } 50% { height: 20px; } }
.btn-txt { margin-left: auto; background: none; border: 0; color: var(--txt2); cursor: pointer; font-size: 14px; padding: 8px; }

/* Montando */
.montando h2 { font-size: 22px; }
.passos { list-style: none; margin: 18px 0 8px; padding: 0; width: 100%; max-width: 380px; text-align: left; display: grid; gap: 10px; }
.passos li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .06); color: var(--txt2); animation: entra .35s ease both; font-size: 14.5px; }
.passos li .st { width: 24px; height: 24px; border-radius: 50%; flex: 0 0 auto; display: grid; place-items: center; border: 2px solid rgba(167, 139, 250, .35); border-top-color: var(--ac2); animation: gira .8s linear infinite; }
.passos li.ok { color: var(--txt); } .passos li.ok .st { animation: none; border: 0; background: var(--ok); color: #052e1d; font-size: 14px; font-weight: 800; }
.passos li.ok .st::before { content: "✓"; }
@keyframes gira { to { transform: rotate(360deg); } }
.entrar { margin-top: 16px; width: 100%; max-width: 380px; animation: entra .4s ease both; }
.erro { color: #fca5a5; margin-top: 12px; }

/* ===== Computador ===== */
@media (min-width: 980px) {
  body { overflow: auto; }
  .wrap { gap: 56px; align-items: center; padding: 32px; max-width: 1240px; margin: 0 auto; }
  .hero { display: flex; flex-direction: column; flex: 1; max-width: 520px; }
  .hero h1 { margin: 34px 0 14px; font-size: 46px; line-height: 1.08; letter-spacing: -1.2px; }
  .hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--ac), var(--ac2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .hero .lead { color: var(--txt2); font-size: 17px; margin: 0 0 26px; max-width: 470px; }
  .beneficios { list-style: none; padding: 0; margin: 0 0 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .beneficios li { display: flex; gap: 12px; padding: 14px; border-radius: 16px; background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .06); }
  .beneficios li span { font-size: 22px; line-height: 1; }
  .beneficios b { display: block; font-size: 14.5px; } .beneficios small { color: var(--txt3); font-size: 13px; line-height: 1.35; display: block; margin-top: 2px; }
  .ja-tenho { color: var(--txt2); text-decoration: none; font-size: 14px; } .ja-tenho:hover { color: var(--ac2); }
  .app { flex: 0 0 440px; height: min(760px, calc(100vh - 64px)); border-radius: 28px; border: 1px solid var(--linha); background: var(--card); box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .03) inset; overflow: hidden; }
  .topo { padding-top: 16px; }
  .inicio .pular { display: none; }
}
@media (min-width: 980px) and (max-height: 700px) { .app { height: calc(100vh - 32px); } .wrap { padding: 16px 32px; } }
@media (max-width: 360px) { .inicio h2 { font-size: 21px; } .btn { font-size: 15px; } .msg .b { font-size: 15px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
