/* Telas reais do KAIRON (M2). Base visual vem de tokens.css. */
.entrada { max-width: 380px; margin: 10vh auto 0; padding: 0 20px; display: flex; flex-direction: column; gap: 10px; align-items: stretch; text-align: center; }
.entrada .orb { margin: 0 auto 6px; }
.entrada h1 { font: 700 22px var(--f-title); letter-spacing: .2em; }
.entrada form { display: flex; flex-direction: column; gap: 8px; text-align: left; margin-top: 10px; }
.entrada label { color: var(--muted); font-size: 12px; margin-top: 6px; }
.entrada .btn { justify-content: center; margin-top: 12px; padding: 11px; }
.erro { color: var(--orange); min-height: 1.2em; font-size: 13px; }
body { overflow: auto; }
body.app { overflow: hidden; }
.pill-btn.on { border-color: var(--orange); color: var(--orange); }
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: minmax(110px, auto); gap: 12px; }
.bento > a.card { text-decoration: none; color: inherit; display: block; }
.bento > a.card:hover { border-color: var(--line-strong); box-shadow: var(--glow); }
.r-orb { grid-column: 3/5; grid-row: 1/3; display: grid; place-items: center; border: 0 !important; background: none !important; }
.r-orb .orb { width: min(100%, 230px); }
.r-mkt { grid-column: 1/3; grid-row: 1/4; } .r-ven { grid-column: 5/7; grid-row: 1/4; }
.r-apr { grid-column: 3/5; grid-row: 3/4; } .r-pes { grid-column: 1/4; grid-row: 4/5; } .r-cer { grid-column: 4/7; grid-row: 4/5; }
.big { font: 600 28px var(--f-mono); display: block; }
.ttl { font: 600 13px var(--f-title); letter-spacing: .1em; display: flex; align-items: center; gap: 8px; margin-bottom: 10px; color: var(--blue-light); }
.vazio { border: 1.5px dashed var(--line); border-radius: var(--r); padding: 28px; text-align: center; color: var(--muted); }
.vazio b { display: block; color: var(--text); margin-bottom: 4px; }
.convite-link { font: 12px var(--f-mono); word-break: break-all; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px; margin-top: 8px; }
select { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; }
.form-linha { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.form-linha input { flex: 1; min-width: 200px; }
@media (max-width: 1100px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bento > * { grid-column: auto !important; grid-row: auto !important; } .r-orb { order: -1; grid-column: 1/-1 !important; } }
@media (max-width: 860px) { .bento { grid-template-columns: minmax(0, 1fr); } body.app { overflow: auto; } }
.cmd-in .send { background: var(--blue); color: #fff; }
.cmd { display: flex; flex-direction: column; gap: 8px; }
.chat { max-width: 920px; width: 100%; margin: 0 auto; max-height: 45vh; overflow-y: auto; background: var(--card); border: 1.5px solid var(--line-strong); border-radius: 14px; padding: 10px 14px; }
.chat .who { display: flex; justify-content: space-between; font: 600 11px var(--f-title); letter-spacing: .14em; color: var(--blue-light); margin-bottom: 6px; }
.chat .who button { display: flex; align-items: center; gap: 6px; font: 12px var(--f-body); letter-spacing: 0; }
.chat .m { padding: 6px 0; }
.chat .m.user p { color: var(--blue-light); }
.chat .m.user p::before { content: 'Você: '; color: var(--muted); }
.chat .m small { font-size: 11px; font-family: var(--f-mono); }

/* ===== Visual do KAIRON: pontilhado, cartões flutuantes com brilho, orbe com legendas, laranja neon ===== */
:root { --neon-o: 0 0 6px rgba(255, 75, 18, .9), 0 0 18px rgba(255, 75, 18, .5); --neon-o-box: 0 0 0 1px rgba(255, 75, 18, .25), 0 0 26px rgba(255, 75, 18, .35); --text-dim: #e8edf5; }
body::before { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0; background-image: radial-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px); background-size: 26px 26px; }
.shell { position: relative; z-index: 1; grid-template-columns: 320px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); gap: 18px; padding: 18px; height: 100vh; }
.card { border: 1.5px solid rgba(96, 165, 250, .6); border-radius: 16px; padding: 16px 18px; box-shadow: 0 0 0 1px rgba(96, 165, 250, .15), 0 0 30px rgba(96, 165, 250, .28), inset 0 0 24px rgba(96, 165, 250, .05); transition: box-shadow .25s, border-color .25s; }
.card:hover { border-color: rgba(96, 165, 250, .9); box-shadow: 0 0 0 1px rgba(96, 165, 250, .2), 0 0 42px rgba(96, 165, 250, .4); }
.ctx { border: 0; padding: 0 4px 0 0; gap: 14px; }
.card h3 { color: var(--text-dim); font-size: 12px; }
.card h3::before { content: ''; width: 3px; height: 12px; border-radius: 2px; background: var(--orange); box-shadow: var(--neon-o); margin-right: 8px; flex: none; }
.card h3 { justify-content: flex-start; }
.centro { display: flex; flex-direction: column; min-width: 0; min-height: 0; height: 100%; align-items: stretch; }
.top-categories { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; padding: 2px 8px 10px; margin-bottom: 4px; }
.top-categories a { color: var(--text-dim); text-decoration: none; font-size: 11px; letter-spacing: 2px; font-weight: 600; text-transform: uppercase; padding: 6px 0; border-bottom: 2px solid transparent; transition: color .15s; }
.top-categories a:hover { color: var(--blue-light); }
.top-categories a[aria-current="page"] { color: #fff; border-bottom-color: var(--orange); box-shadow: 0 6px 14px -8px rgba(255, 75, 18, .9); }
.top-categories a.marca { font: 700 15px var(--f-title); letter-spacing: .22em; margin-right: 12px; border: 0; box-shadow: none; text-shadow: 0 0 16px rgba(59, 130, 246, .7); }
.centro > .main { flex: 1; min-height: 0; padding: 4px 8px 16px; overflow-y: auto; }
.cmd { position: static; background: none; padding: 0 8px 4px; width: min(780px, 100%); margin: 0 auto; z-index: 1; }
.cmd-in { max-width: none; border: 1.5px solid rgba(96, 165, 250, .6); border-radius: 16px; padding: 8px 10px 8px 16px; box-shadow: 0 0 0 1px rgba(96, 165, 250, .15), 0 0 30px rgba(96, 165, 250, .28), 0 8px 26px -10px rgba(255, 75, 18, .55); }
.cmd-in .send { border-radius: 50%; background: var(--orange); box-shadow: var(--neon-o); }
.cmd-in .send:hover { background: #ff6a3a; }
.console-tabs { display: flex; gap: 4px; margin-bottom: 8px; }
.ct-tab { background: rgba(255, 255, 255, .03); border: 1px solid rgba(96, 165, 250, .2); border-radius: 8px 8px 0 0; padding: 6px 14px; font-size: 11px; font-weight: 600; letter-spacing: .5px; color: var(--text-dim); }
.ct-tab.active { background: var(--card); border-color: rgba(96, 165, 250, .5); color: var(--blue-light); box-shadow: 0 0 14px rgba(96, 165, 250, .15); }
.ct-tab.off { opacity: .4; }
.chat { margin-bottom: 8px; }
.btn.go { background: var(--orange); border-color: var(--orange); box-shadow: var(--neon-o-box); color: #fff; }
.btn.go:hover { background: #ff6a3a; }
.page-title::before { content: ''; display: inline-block; width: 4px; height: 20px; border-radius: 2px; background: var(--orange); box-shadow: var(--neon-o); margin-right: 12px; vertical-align: -3px; }
.subtabs a[aria-current="page"] { border-color: var(--orange); box-shadow: 0 8px 14px -10px rgba(255, 75, 18, .9); }
.vazio { border-color: rgba(255, 75, 18, .35); }
.power-area { position: fixed; top: 14px; right: 16px; z-index: 10; display: flex; align-items: center; gap: 8px; }
.eu-chip { font: 11px var(--f-mono); color: var(--text-dim); background: rgba(13, 17, 32, .85); border: 1px solid var(--line); border-radius: 8px; padding: 7px 12px; }
.power-btn { display: flex; align-items: center; gap: 7px; background: rgba(18, 23, 41, .85); border: 1px solid rgba(34, 197, 94, .4); border-radius: 8px; padding: 7px 12px; font: 10px var(--f-mono); letter-spacing: 1px; color: var(--green); box-shadow: 0 0 14px rgba(34, 197, 94, .15); }
.power-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.power-btn.off { border-color: rgba(255, 75, 18, .6); color: var(--orange); box-shadow: var(--neon-o-box); }
.power-btn.off .power-dot { background: var(--orange); box-shadow: 0 0 8px var(--orange); }
@media (min-width: 1101px) { .top-categories { padding-right: 330px; } }

/* home: orbe com legendas numeradas */
.home { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100%; gap: 6px; }
.saudacao { font: 600 11px var(--f-body); letter-spacing: .3em; color: var(--text-dim); }
.orb-stage { position: relative; width: min(700px, 66vh, 94%); aspect-ratio: 1; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 8px; }
.avatar-stage { position: relative; width: 62%; height: 62%; }
#avatar-core { position: absolute; inset: 0; width: 100%; height: 100%; filter: saturate(1.1) contrast(1.05); box-shadow: 0 0 60px rgba(59, 130, 246, .35), 0 0 100px rgba(255, 75, 18, .25); }
.callout { position: absolute; font-size: 10px; letter-spacing: 1px; color: var(--text-dim); line-height: 1.55; max-width: 140px; text-decoration: none; opacity: .85; transition: opacity .2s, transform .2s; }
.callout:hover { opacity: 1; color: #fff; transform: translateY(-2px); }
.callout .cal-num { display: inline-block; color: var(--orange); border: 1px solid rgba(255, 75, 18, .6); border-radius: 4px; padding: 1px 5px; font-size: 9px; margin-right: 6px; font-weight: 700; text-shadow: var(--neon-o); box-shadow: 0 0 10px rgba(255, 75, 18, .35); }
.callout.cal-right { text-align: right; } .callout.cal-right .cal-num { margin-right: 0; margin-left: 6px; }
.cal-1 { top: 8%; left: -4%; } .cal-2 { top: 34%; left: -10%; } .cal-3 { top: 60%; left: -4%; }
.cal-r1 { top: 8%; right: -4%; } .cal-r2 { top: 34%; right: -10%; } .cal-r3 { top: 60%; right: -4%; }

/* entrada (login e convite) */
.entrada { background: var(--card); border: 1.5px solid rgba(96, 165, 250, .6); border-radius: 18px; padding: 28px 26px; box-shadow: 0 0 0 1px rgba(96, 165, 250, .15), 0 0 40px rgba(59, 130, 246, .3), 0 18px 50px -20px rgba(255, 75, 18, .5); position: relative; z-index: 1; }
.entrada .orb { width: 110px; height: 110px; box-shadow: 0 0 50px rgba(59, 130, 246, .4), 0 0 80px rgba(255, 75, 18, .3); }
.entrada h1 { text-shadow: 0 0 18px rgba(59, 130, 246, .7); }

@media (max-width: 1100px) { .top-categories { margin-top: 40px; } .callout { max-width: 110px; } }
@media (max-width: 860px) {
  .shell { display: block; height: auto; padding: 12px; }
  .ctx { display: none; } .ctx.open { display: flex; margin-bottom: 14px; }
  .centro { height: auto; } .centro > .main { overflow: visible; }
  .cmd { position: sticky; bottom: 0; background: linear-gradient(transparent, var(--bg) 30%); padding-top: 14px; }
  .callout { position: static; display: block; max-width: none; text-align: left !important; margin: 6px 0; }
  .orb-stage { display: block; width: 100%; aspect-ratio: auto; }
  .avatar-stage { width: 70%; height: auto; aspect-ratio: 1; margin: 0 auto 12px; order: -1; }
  .home { justify-content: flex-start; }
}

/* ===== KAIRON humanoide na tela inicial: entra por baixo, como se chegasse na cena ===== */
.home .orb-stage { width: min(980px, 98%, calc((100vh - 230px) * 1.18)); aspect-ratio: 1.18; margin-top: 4px; overflow: hidden; }
.humano-stage { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; pointer-events: none; }
.humano { height: 100%; width: auto; max-width: 100%; object-fit: contain; object-position: bottom center; filter: drop-shadow(0 0 40px rgba(255, 75, 18, .35)) drop-shadow(0 0 70px rgba(59, 130, 246, .2)); animation: flutua 7s ease-in-out 2s infinite; }
.humano.entra { animation: entrada 2.2s cubic-bezier(.16, .84, .28, 1) both, flutua 7s ease-in-out 2.4s infinite; }
@keyframes entrada { from { transform: translateY(105%); opacity: 0; } 30% { opacity: 1; } to { transform: translateY(0); opacity: 1; } }
@keyframes flutua { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.home .callout { z-index: 2; }
@media (prefers-reduced-motion: reduce) { .humano, .humano.entra { animation: none; } }
@media (max-width: 860px) { .home .orb-stage { overflow: visible; aspect-ratio: auto; width: 100%; } .humano-stage { position: static; order: -1; } .humano { height: auto; width: 88%; margin: 0 auto 12px; } }

/* ajuste: legendas ficam nas laterais, fora do recorte do humanoide */
.home .orb-stage { overflow: visible; width: min(1100px, 100%, calc((100vh - 250px) * 1.75)); aspect-ratio: 1.75; }
.humano-stage { overflow: hidden; left: 15%; right: 15%; }
.home .cal-1 { top: 10%; left: 0; } .home .cal-2 { top: 36%; left: 0; } .home .cal-3 { top: 62%; left: 0; }
.home .cal-r1 { top: 10%; right: 0; } .home .cal-r2 { top: 36%; right: 0; } .home .cal-r3 { top: 62%; right: 0; }
.home .callout { max-width: 15%; font-size: 11px; }
@media (min-width: 1101px) { .top-categories { padding-right: 130px; } }
@media (max-width: 860px) { .humano-stage { left: 0; right: 0; } .home .callout { max-width: none; } }

/* fundo animado de neurônios (Vanta NET), sutil de propósito */
#vanta-bg { position: fixed; inset: 0; z-index: 0; opacity: .35; pointer-events: none; }
body::before { z-index: 0; }
.shell, .entrada, .power-area { position: relative; z-index: 1; }
.power-area { position: fixed; }

/* halo suave atrás do humanoide (some antes da borda, sem retângulo visível) */
.humano { filter: none; }
.humano-stage { background: radial-gradient(ellipse 55% 60% at 50% 55%, rgba(255, 75, 18, .16), rgba(59, 130, 246, .08) 55%, transparent 75%); }

/* voz */
.cmd-in button.vz { opacity: .75; }
.cmd-in button.vz:hover { opacity: 1; }
.cmd-in button.vz.on { opacity: 1; color: var(--orange); box-shadow: var(--neon-o-box); background: rgba(255, 75, 18, .12); }
.cmd-in button.vz:disabled { opacity: .3; cursor: not-allowed; }

/* botão LIGADO/DESLIGADO da voz */
.power-btn { cursor: pointer; }
.power-btn:not(.off) .power-dot { animation: pulsa 1.8s ease-in-out infinite; }
@keyframes pulsa { 50% { opacity: .35; transform: scale(.8); } }
@media (prefers-reduced-motion: reduce) { .power-btn:not(.off) .power-dot { animation: none; } }

.ouvi { min-height: 16px; text-align: center; font: 11px var(--f-mono); color: var(--muted); margin-bottom: 4px; }
