/* Atendente Virtual — identidade Skyone, tema escuro de palco. */
/* Inter servida daqui mesmo: a CSP do proxy só libera 'self' (Google Fonts
   ficava bloqueado). Arquivo variável (wght 100–900), latin + latin-ext. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/inter-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/inter-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  color-scheme: dark;
  /* Paleta escura Skyone (mesma do poc: frontend/src/theme/skyone.ts). */
  --ground: #070a17;
  --surface: rgba(14, 19, 41, 0.72);
  --surface-solid: #0e1329;
  --surface-raised: #1a2142;
  --popover: #141a36;
  --line: rgba(182, 190, 218, 0.1);
  --line-strong: rgba(182, 190, 218, 0.2);
  --text: #f5f7fa;
  --muted: #b6beda;
  --faint: #8e97b8;
  /* Acento para traço, texto e brilho sobre o fundo escuro: o azul de ação
     (#0a1bc9) não tem contraste como traço, então aqui vai o azul claro. */
  --accent: #4faff8;
  --accent-strong: #7cc3fa;
  --accent-soft: rgba(79, 175, 248, 0.14);
  /* Botões: azul de ação com texto branco. */
  --action: #0a1bc9;
  --action-hover: #1b2ce0;
  --on-action: #ffffff;
  --brand-blue: #0517ed;
  --navy: #000b62;
  --ok: #5fcb99;
  --danger: #e5484d;
  --danger-text: #f3a39c;
  --display: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --body: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  /* Orbe (canvas em app.js lê daqui): trios "r, g, b" para montar rgba(). */
  --orb-main: 79, 175, 248;     /* #4faff8 — luz principal */
  --orb-deep: 5, 23, 237;       /* #0517ed — apoio, azul do logo */
  --orb-mid: 71, 112, 201;      /* #4770c9 — apoio */
  --orb-ring: 124, 195, 250;    /* #7cc3fa — ondas de fala */
  --orb-glow: 200, 228, 255;    /* branco azulado — brilho e partículas */
  --orb-listen: 245, 247, 250;  /* aro de escuta */
  --orb-base-core: 0, 11, 98;   /* #000b62 — fundo do interior */
  --orb-base-edge: 7, 10, 23;   /* #070a17 */
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  margin: 0;
  overflow: hidden;
  color: var(--text);
  font-family: var(--body);
  font-size: 15px;
  background-color: var(--ground);
  background-image:
    radial-gradient(1200px 520px at 50% 115%, rgba(10, 27, 201, 0.2), transparent 62%),
    radial-gradient(900px 520px at 8% -12%, rgba(0, 11, 98, 0.55), transparent 60%);
}
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- orbe (canvas = luz; .glass-orb = vidro) ---------- */
#orb { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.glass-orb {
  position: fixed; left: 0; top: 0; width: 200px; height: 200px; margin: -100px 0 0 -100px;
  border-radius: 50%; z-index: 0; pointer-events: none; will-change: transform; opacity: 0;
  -webkit-backdrop-filter: blur(9px) saturate(175%) brightness(1.12);
  backdrop-filter: blur(9px) saturate(175%) brightness(1.12);
  background: radial-gradient(120% 120% at 30% 22%, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.03) 42%, rgba(79, 175, 248, 0.06) 70%, rgba(255, 255, 255, 0.12) 100%);
  box-shadow:
    inset 0 1.5px 1px rgba(255, 255, 255, 0.6),
    inset 0 -1.5px 1.5px rgba(200, 228, 255, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.13),
    inset 0 -26px 42px -14px rgba(5, 23, 237, 0.45),
    inset 0 20px 36px -22px rgba(255, 255, 255, 0.3),
    0 34px 70px -34px rgba(0, 0, 0, 0.85);
}
.glass-orb .spec { position: absolute; left: 17%; top: 8%; width: 44%; height: 24%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0)); transform: rotate(-24deg); filter: blur(0.6px); }
.glass-orb .spec-dot { position: absolute; left: 27%; top: 17%; width: 9%; height: 6%; border-radius: 50%; background: rgba(255, 255, 255, 0.9); transform: rotate(-24deg); filter: blur(0.4px); }
.glass-orb .caustic { position: absolute; left: 22%; right: 22%; bottom: 5%; height: 17%; border-radius: 50%; background: radial-gradient(closest-side, rgba(124, 195, 250, 0.6), rgba(124, 195, 250, 0)); filter: blur(3px); }
.flash {
  position: fixed; inset: 0; z-index: 6; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at var(--fx, 50%) var(--fy, 40%), rgba(200, 228, 255, 0.95), rgba(79, 175, 248, 0.45) 28%, rgba(7, 10, 23, 0) 72%);
  transition: opacity 0.55s ease;
}
.flash.on { opacity: 1; transition-duration: 0.35s; }

/* ---------- moldura ---------- */
.chrome-top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 4;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: calc(env(safe-area-inset-top, 0px) + 22px) 28px 0;
  pointer-events: none;
}
.chrome-top img { height: 26px; width: auto; display: block; }
.event-tag { font-family: var(--display); font-weight: 500; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 999px; padding: 7px 14px; }
.pips {
  position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 22px); transform: translateX(-50%); z-index: 4;
  display: flex; gap: 6px; padding: 6px; border-radius: 999px;
  background: rgba(14, 19, 41, 0.7); border: 1px solid var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
body.in-call .pips { display: none; }
.pip { border: 0; background: transparent; cursor: pointer; border-radius: 999px; padding: 7px 14px; font-size: 12.5px; font-weight: 500; color: var(--faint); display: flex; align-items: center; gap: 8px; transition: color 0.2s, background 0.2s; }
.pip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pip:hover { color: var(--muted); }
.pip[aria-current="step"] { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.pip[aria-current="step"]::before { background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.pip.done { color: var(--muted); }

/* ---------- cenas ---------- */
.stage { position: relative; z-index: 1; height: 100%; }
.scene {
  position: absolute; inset: 0; overflow-y: auto; display: flex;
  padding: 96px 24px 104px;
  opacity: 0; visibility: hidden; transform: translateY(26px) scale(0.985);
  transition: opacity 0.55s ease, transform 0.75s cubic-bezier(0.2, 0.7, 0.1, 1), visibility 0s linear 0.75s;
}
.scene.active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.scene-inner { margin: auto; width: 100%; max-width: 1100px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; }
.orb-anchor { flex: none; }
.orb-sm { width: 150px; height: 150px; }
.orb-lg { width: 190px; height: 190px; }

.display { margin: 0; font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.02; font-size: clamp(2.3rem, 5.2vw, 4.4rem); text-wrap: balance; overflow-wrap: anywhere; }
.display em { font-style: normal; color: var(--accent); }
.lede { margin: -6px 0 0; max-width: 58ch; color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.15rem); line-height: 1.55; text-wrap: balance; }
.lede.error { color: var(--danger-text); }

.cta { border: 0; cursor: pointer; border-radius: 999px; padding: 16px 30px; font-family: var(--display); font-weight: 600; font-size: 1.08rem; letter-spacing: 0.01em; background: var(--action); color: var(--on-action); display: inline-flex; align-items: center; gap: 10px; box-shadow: 0 14px 40px -14px rgba(27, 44, 224, 0.8); transition: transform 0.2s, box-shadow 0.2s, background 0.2s, opacity 0.2s; }
.cta:hover { transform: translateY(-2px); background: var(--action-hover); box-shadow: 0 18px 48px -14px rgba(27, 44, 224, 0.95); }
.cta:disabled { opacity: 0.45; cursor: default; transform: none; }
.cta .arrow { transition: transform 0.2s; }
.cta:hover .arrow { transform: translateX(3px); }
.cta.big { padding: 20px 40px; font-size: 1.2rem; }
.cta.pulse { animation: ctaPulse 2.4s ease-in-out infinite; }
@keyframes ctaPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(79, 175, 248, 0.45), 0 14px 40px -14px rgba(27, 44, 224, 0.8); } 50% { box-shadow: 0 0 0 14px rgba(79, 175, 248, 0), 0 14px 40px -14px rgba(27, 44, 224, 0.8); } }
.link-button { border: 0; background: none; cursor: pointer; color: var(--muted); font-size: 0.95rem; padding: 10px 6px; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
.link-button:hover { color: var(--text); }
.actions { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; margin-top: 8px; }

/* ---------- 1. sotaques ---------- */
.accents { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; width: min(100%, 940px); margin-top: 10px; }
.accent { position: relative; cursor: pointer; border-radius: 22px; padding: 24px 12px 18px; display: flex; flex-direction: column; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.1, 1), border-color 0.25s, background 0.25s, box-shadow 0.25s; }
.accent:hover { transform: translateY(-5px); border-color: var(--line-strong); }
.accent-art { width: clamp(58px, 7.4vw, 100px); height: clamp(58px, 7.4vw, 100px); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.accent-art img, .accent-art svg { display: block; width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; }
/* Ícone do sotaque neutro: cor por classe (atributo style inline é bloqueado pela CSP do proxy). */
.ic-accent { fill: var(--accent); }
.ic-line { stroke: var(--text); }
.accent-name { font-family: var(--display); font-weight: 600; font-size: 1.12rem; }
.accent-sub { font-size: 0.82rem; color: var(--faint); margin-top: -8px; }
.accent[aria-pressed="true"] { border-color: var(--accent); background: linear-gradient(180deg, rgba(79, 175, 248, 0.17), rgba(79, 175, 248, 0.03)); box-shadow: 0 0 0 1px var(--accent), 0 22px 60px -24px rgba(10, 27, 201, 0.8); }
.accent[aria-pressed="true"] .accent-sub { color: var(--accent); }
.eq { position: absolute; top: 12px; right: 14px; display: flex; gap: 2px; align-items: flex-end; height: 14px; opacity: 0; transition: opacity 0.2s; }
.eq i { width: 3px; background: var(--accent); border-radius: 2px; height: 30%; animation: eq 0.9s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -0.3s; }
.eq i:nth-child(3) { animation-delay: -0.6s; }
.accent.playing .eq { opacity: 1; }
@keyframes eq { 0%, 100% { height: 25%; } 50% { height: 100%; } }
.hint { font-size: 0.86rem; color: var(--faint); margin: 0; min-height: 1.3em; }

/* ---------- 2. empresa ---------- */
.search { width: min(100%, 760px); display: flex; align-items: center; gap: 8px; position: relative; overflow: hidden; padding: 8px 8px 8px 26px; border-radius: 999px; background: var(--surface-solid); border: 1px solid var(--line-strong); box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.8); transition: border-color 0.25s, box-shadow 0.25s; }
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), 0 30px 80px -40px rgba(0, 0, 0, 0.8); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font-family: var(--display); font-size: clamp(1.1rem, 2vw, 1.5rem); padding: 12px 0; }
.search input::placeholder { color: var(--faint); }
.search .cta { padding: 14px 24px; flex: none; box-shadow: none; }
.search::after { content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 40%; background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: 0; }
.search.busy::after { opacity: 1; animation: sweep 1.3s linear infinite; }
@keyframes sweep { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.examples { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; color: var(--faint); font-size: 0.88rem; }
.chip-button { cursor: pointer; border-radius: 999px; padding: 7px 14px; font-size: 0.88rem; background: transparent; border: 1px solid var(--line-strong); color: var(--muted); transition: all 0.2s; }
.chip-button:hover, .chip-button.selected { color: var(--text); border-color: var(--accent); }
.chip-button.selected { background: var(--accent-soft); }

.research { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 16px; width: min(100%, 1000px); text-align: left; margin-top: 6px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px 24px; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); min-width: 0; }
.panel-label { margin: 0 0 14px; font-family: var(--display); font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }
.sources { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.sources li { display: flex; gap: 12px; align-items: flex-start; animation: rise 0.45s cubic-bezier(0.2, 0.7, 0.1, 1) both; min-width: 0; }
.sources li > div { min-width: 0; }
.sources strong { display: block; font-weight: 500; font-size: 0.92rem; overflow-wrap: anywhere; }
.sources .what { font-size: 0.82rem; color: var(--faint); }
.sources li.pending strong { color: var(--muted); }
.sources .divider { font-family: var(--display); font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); margin-top: 8px; }
.src-state { flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; border: 2px solid var(--line-strong); border-top-color: var(--accent); animation: spin 0.8s linear infinite; position: relative; }
.src-state.ok { animation: none; border: 0; background: var(--accent); }
.src-state.ok::after { content: ''; position: absolute; left: 6px; top: 3px; width: 4px; height: 8px; border: solid var(--ground); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.src-state.fail { animation: none; border-color: var(--danger); }
.queries { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.queries .chip { font-size: 0.8rem; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.profile { position: relative; }
.profile h3 { margin: 0; font-family: var(--display); font-weight: 600; font-size: 1.9rem; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.profile .summary { margin: 6px 0 4px; color: var(--muted); line-height: 1.5; font-size: 0.95rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.facet { margin-top: 16px; }
.facet-label { font-size: 12px; color: var(--faint); margin-bottom: 8px; letter-spacing: 0.04em; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 0.84rem; padding: 6px 11px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); }
.chip.tone { background: var(--accent-soft); border-color: rgba(79, 175, 248, 0.35); color: var(--accent-strong); }
.faq { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.faq li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 10px; align-items: baseline; font-size: 0.9rem; }
.faq .tag { font-family: var(--display); font-size: 10.5px; font-weight: 600; letter-spacing: 0.12em; padding: 3px 7px; border-radius: 6px; background: rgba(255, 255, 255, 0.07); color: var(--muted); }
.faq .tag.pos { background: rgba(79, 175, 248, 0.16); color: var(--accent-strong); }
.faq .a { grid-column: 2; color: var(--faint); font-size: 0.84rem; }
.reveal { opacity: 0; transform: translateY(8px); transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.1, 1); }
.reveal.shown { opacity: 1; transform: none; }
.profile-skeleton { position: absolute; left: 24px; right: 24px; top: 58px; transition: opacity 0.3s; }
.profile.filled .profile-skeleton { opacity: 0; pointer-events: none; }
.placeholder-line { height: 12px; border-radius: 6px; margin: 12px 0; background: linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.placeholder-line.w60 { width: 60%; height: 22px; }
.placeholder-line.w80 { width: 80%; }
.placeholder-line.w40 { width: 40%; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ---------- 3. crachá ---------- */
.badge { width: min(100%, 580px); position: relative; text-align: center; padding: 30px 30px 26px; border-radius: 30px; background: linear-gradient(180deg, rgba(26, 33, 66, 0.9), rgba(14, 19, 41, 0.9)); border: 1px solid var(--line-strong); box-shadow: 0 40px 120px -50px rgba(10, 27, 201, 0.6); }
.badge-kicker { margin: 0; font-family: var(--display); font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); }
.badge-name { margin: 6px 0 22px; font-family: var(--display); font-weight: 600; font-size: clamp(2rem, 4vw, 2.9rem); letter-spacing: -0.02em; line-height: 1.05; overflow-wrap: anywhere; }
.badge-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; text-align: left; }
.badge-cell { border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; background: rgba(255, 255, 255, 0.025); display: flex; gap: 12px; align-items: center; min-width: 0; }
.badge-cell img, .badge-cell svg { width: 34px; height: 34px; object-fit: contain; flex: none; }
.badge-cell .k { font-size: 11.5px; color: var(--faint); letter-spacing: 0.04em; }
.badge-cell .v { font-weight: 500; font-size: 0.95rem; }
.badge-cell .glyph { width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-family: var(--display); font-weight: 700; font-size: 0.9rem; }

/* ---------- 4. contato ---------- */
.lead-form { width: min(100%, 720px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; text-align: left; margin-top: 4px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field span { font-family: var(--display); font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); padding-left: 4px; }
.field input { width: 100%; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--surface-solid); color: var(--text); padding: 16px 18px; font-family: var(--display); font-size: 1.15rem; outline: 0; transition: border-color 0.2s, box-shadow 0.2s; }
.field input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field.invalid input { border-color: var(--danger); }
.field.invalid span { color: var(--danger-text); }
.form-error { grid-column: 1 / -1; margin: 0; color: var(--danger-text); font-size: 0.9rem; text-align: center; }
.lead-actions { grid-column: 1 / -1; margin-top: 10px; }

/* ---------- 5. atendimento ---------- */
.scene.call-scene { padding: 78px 24px 24px; }
.call { margin: auto; width: 100%; max-width: 1480px; display: grid; grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr); gap: 26px; align-items: stretch; height: clamp(560px, calc(100dvh - 104px), 900px); }
.call-stage { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; padding: 8px 0; min-width: 0; }
.call-status { display: inline-flex; align-items: center; gap: 10px; font-size: 0.86rem; color: var(--muted); padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(14, 19, 41, 0.6); font-variant-numeric: tabular-nums; }
.call-status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.call-status .dot.online { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.call-status .dot.error { background: var(--danger); box-shadow: 0 0 10px var(--danger); }
.call-status .sep { color: var(--faint); }
.orb-call { width: clamp(170px, 28vh, 290px); height: clamp(170px, 28vh, 290px); }
.captions { width: min(100%, 680px); height: 212px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; flex: none; }
.cap-prev { margin: 0; color: var(--faint); font-size: 0.98rem; line-height: 1.45; text-wrap: balance; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cap-who { font-family: var(--display); font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); min-height: 1em; }
.cap-who.user { color: var(--muted); }
/* ancorada embaixo: se a fala passar de 4 linhas, some o começo, nunca a palavra que está sendo dita */
.cap-now { margin: 0; font-family: var(--display); font-weight: 500; font-size: clamp(1.3rem, 2.1vw, 2rem); line-height: 1.24; text-wrap: balance; min-height: 1.24em; max-height: calc(1.24em * 4); overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.call-controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; }
.round { width: 58px; height: 58px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.05); transition: transform 0.2s, background 0.2s, border-color 0.2s; }
.round svg { width: 22px; height: 22px; }
.round:hover { transform: translateY(-2px); }
.round.on { background: var(--action); border-color: var(--accent); color: var(--on-action); box-shadow: 0 10px 30px -10px rgba(79, 175, 248, 0.7); }
.round.end { background: var(--danger); border-color: var(--danger); color: #fff; }
.mic-select { max-width: 190px; border: 1px solid var(--line-strong); background: rgba(14, 19, 41, 0.7); color: var(--muted); border-radius: 999px; padding: 10px 14px; font-size: 0.82rem; cursor: pointer; }
.composer { width: min(100%, 440px); display: flex; align-items: center; gap: 6px; padding: 4px 4px 4px 16px; border-radius: 999px; border: 1px solid var(--line); background: rgba(14, 19, 41, 0.55); transition: border-color 0.2s; }
.composer:focus-within { border-color: var(--accent); }
.composer input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 8px 0; font-size: 0.9rem; }
.composer input::placeholder { color: var(--faint); }
.composer button { width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(255, 255, 255, 0.08); color: var(--muted); }
.composer button:hover { background: var(--action); color: var(--on-action); }
.call-ended { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 16px; padding-bottom: 12%; background: linear-gradient(180deg, transparent, rgba(7, 10, 23, 0.92) 55%); }
.call-ended p { margin: 0; font-family: var(--display); font-size: 1.5rem; }

.call-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; min-height: 0; }
.browser { position: relative; border-radius: 22px; overflow: hidden; border: 1px solid var(--line-strong); background: var(--surface-solid); display: flex; flex-direction: column; min-height: 0; flex: 1; box-shadow: 0 40px 90px -50px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(79, 175, 248, 0); transition: box-shadow 0.4s; }
.browser.working { box-shadow: 0 40px 90px -50px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(79, 175, 248, 0.45), 0 0 50px -20px rgba(79, 175, 248, 0.5); }
.browser-bar { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); }
.browser-dots { display: flex; gap: 6px; }
.browser-dots i { width: 9px; height: 9px; border-radius: 50%; background: #2a3258; }
.browser-url { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--muted); background: rgba(0, 0, 0, 0.28); border-radius: 9px; padding: 7px 11px; }
.browser-url .lock { color: var(--ok); font-size: 0.55rem; }
.browser-url span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser-url.changed span:last-child { animation: urlflash 0.9s ease; }
@keyframes urlflash { 0% { color: var(--accent); } 100% { color: var(--muted); } }
.live-tag { font-size: 10.5px; font-family: var(--display); font-weight: 600; letter-spacing: 0.14em; color: var(--accent); display: flex; align-items: center; gap: 6px; flex: none; }
.live-tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.25; } }
.icon-button { width: 30px; height: 30px; flex: none; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.icon-button:hover { color: var(--text); border-color: var(--line-strong); }

.browser-tabs { display: flex; gap: 8px; padding: 10px 12px; overflow-x: auto; border-bottom: 1px solid var(--line); background: rgba(0, 0, 0, 0.15); }
.browser-tab { flex: none; width: 150px; cursor: pointer; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); overflow: hidden; transition: border-color 0.2s, transform 0.2s; animation: tabin 0.5s cubic-bezier(0.2, 0.7, 0.1, 1) both; }
.browser-tab:hover { transform: translateY(-2px); }
.browser-tab img { display: block; width: 100%; height: 64px; object-fit: cover; object-position: top; background: #fff; }
.browser-tab img:not([src]) { visibility: hidden; }
.browser-tab-label { display: block; padding: 5px 8px; font-size: 0.72rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser-tab.active .browser-tab-label::before { content: '● '; color: var(--accent); }
.browser-tab.selected { border-color: var(--accent); }
@keyframes tabin { from { opacity: 0; transform: translateY(-10px) scale(0.92); } to { opacity: 1; transform: none; } }

.browser-frame { position: relative; flex: 1; min-height: 0; overflow: hidden; background: #0b0f22; }
.frame-layer { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: top center; opacity: 0; transition: opacity 0.45s ease; }
.frame-layer.front { opacity: 1; }
.browser-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; padding: 30px; color: var(--text); transition: opacity 0.4s; }
.browser-placeholder span { font-size: 0.86rem; color: var(--faint); max-width: 36ch; }
.browser-frame.has-image .browser-placeholder { opacity: 0; pointer-events: none; }
.loader { width: 34px; height: 34px; border: 3px solid rgba(255, 255, 255, 0.12); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.9s linear infinite; }
.scan { position: absolute; left: 0; right: 0; top: 0; height: 90px; background: linear-gradient(180deg, rgba(79, 175, 248, 0), rgba(79, 175, 248, 0.2) 70%, rgba(79, 175, 248, 0.55)); opacity: 0; pointer-events: none; }
.scan.go { animation: scan 0.9s cubic-bezier(0.4, 0, 0.2, 1); }
@keyframes scan { 0% { opacity: 1; transform: translateY(-90px); } 85% { opacity: 0.8; } 100% { opacity: 0; transform: translateY(var(--scan-to, 600px)); } }
.action-toast { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 2; display: flex; align-items: center; gap: 10px; max-width: calc(100% - 32px); padding: 10px 16px; border-radius: 999px; background: rgba(14, 19, 41, 0.85); border: 1px solid rgba(79, 175, 248, 0.4); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font-size: 0.86rem; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.9); animation: toastin 0.35s cubic-bezier(0.2, 0.7, 0.1, 1) both; }
.action-toast span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.action-toast .spinner { flex: none; width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.15); border-top-color: var(--accent); animation: spin 0.8s linear infinite; }
.action-toast.done .spinner { animation: none; border: 0; background: var(--ok); }
@keyframes toastin { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }

.erp-card { position: absolute; right: 16px; top: 16px; z-index: 3; width: min(340px, calc(100% - 32px)); max-height: calc(100% - 90px); overflow: auto; padding: 18px 18px 14px; border-radius: 18px; background: rgba(20, 26, 54, 0.92); border: 1px solid rgba(79, 175, 248, 0.45); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.95), 0 0 60px -30px rgba(79, 175, 248, 0.6); animation: cardin 0.55s cubic-bezier(0.2, 0.7, 0.1, 1) both; }
@keyframes cardin { from { opacity: 0; transform: translateX(30px) scale(0.96); } to { opacity: 1; transform: none; } }
.erp-card .erp-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.erp-card .erp-kicker { font-family: var(--display); font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.erp-card .erp-close { border: 0; background: none; color: var(--faint); cursor: pointer; font-size: 1rem; padding: 2px 4px; }
.erp-card .erp-title { margin: 0 0 12px; font-family: var(--display); font-size: 1.3rem; font-weight: 600; overflow-wrap: anywhere; }
.erp-card dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); border-top: 1px solid var(--line); }
.erp-card dt, .erp-card dd { margin: 0; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 0.85rem; overflow-wrap: anywhere; }
.erp-card dt { color: var(--faint); padding-right: 14px; }
.erp-card dd { animation: hl 1.6s ease both; }
.erp-card .erp-note { margin: 10px 0 0; font-size: 0.74rem; color: var(--faint); }
.erp-card.loading .erp-title::after { content: ''; display: inline-block; width: 12px; height: 12px; margin-left: 10px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.15); border-top-color: var(--accent); animation: spin 0.8s linear infinite; vertical-align: middle; }
.erp-card.created { border-color: rgba(95, 203, 153, 0.55); box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.95), 0 0 60px -26px rgba(95, 203, 153, 0.6); }
.erp-card.created .erp-kicker { color: var(--ok); }
@keyframes hl { 0% { background: rgba(79, 175, 248, 0.22); } 100% { background: transparent; } }

.browser-foot { display: flex; justify-content: space-between; gap: 16px; padding: 8px 14px; border-top: 1px solid var(--line); font-size: 0.74rem; color: var(--faint); }
.browser-foot span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser-foot span:last-child { flex: none; font-variant-numeric: tabular-nums; }

.browser.fullscreen { position: fixed; inset: 14px; z-index: 20; border-radius: 18px; }

.activity { list-style: none; margin: 0; padding: 12px 16px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; gap: 8px; height: 150px; flex: none; overflow: auto; }
.activity li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.84rem; color: var(--muted); animation: rise 0.4s ease both; }
.activity li.empty { color: var(--faint); }
.activity time { color: var(--faint); font-variant-numeric: tabular-nums; flex: none; }
.activity .st { flex: none; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--faint); }
.activity li.running .st { background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: blink 1s ease-in-out infinite; }
.activity li.ok .st { background: var(--ok); }
.activity li.error .st { background: var(--danger); }
.activity li.error { color: var(--danger-text); }
.activity b { color: var(--text); font-weight: 500; }

/* pesquisa em andamento/concluída: cabeçalho encolhe pra caber o resultado */
.scene.compact .orb-sm { width: 96px; height: 96px; }
.scene.compact .display { font-size: clamp(1.8rem, 3.6vw, 3rem); }
.scene.compact .scene-inner { gap: 16px; }

/* ---------- responsivo ---------- */
@media (max-height: 860px) {
  .scene { padding-top: 76px; padding-bottom: 96px; }
  .scene-inner { gap: 16px; }
  .orb-sm { width: 112px; height: 112px; }
  .orb-lg { width: 140px; height: 140px; }
  .display { font-size: clamp(2rem, 4.4vw, 3.6rem); }
  .accent { padding: 18px 10px 14px; }
  .accent-art { width: clamp(52px, 6vw, 84px); height: clamp(52px, 6vw, 84px); }
  .badge { padding: 24px 24px 20px; }
  .badge-name { margin-bottom: 16px; }
  .captions { height: 180px; }
}
@media (max-width: 1000px) {
  body { overflow: auto; }
  .call { grid-template-columns: minmax(0, 1fr); height: auto; }
  .browser { min-height: 420px; }
  .research { grid-template-columns: minmax(0, 1fr); }
  .accents { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .chrome-top { padding-left: 16px; padding-right: 16px; }
  .scene, .scene.call-scene { padding-left: 16px; padding-right: 16px; }
  .accents { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .accents .accent:last-child { grid-column: 1 / -1; }
  .badge-grid { grid-template-columns: minmax(0, 1fr); }
  .lead-form { grid-template-columns: minmax(0, 1fr); }
  .pip { padding: 7px 10px; font-size: 0; gap: 0; }
  .pip::before { width: 8px; height: 8px; }
  .search { padding-left: 18px; }
  .search .cta { padding: 12px 16px; }
  .erp-card { left: 12px; right: 12px; width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .scene, .reveal, .accent, .frame-layer { transition-duration: 0.01s !important; }
  .cta.pulse, .eq i, .search.busy::after, .live-tag::before, .src-state, .placeholder-line, .scan.go { animation: none !important; }
}

/* --- Confirmação pelo WhatsApp e convite para a outra demo --- */
.field-wide { grid-column: 1 / -1; }
.verify-panel { width: min(100%, 640px); display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.verify-panel[hidden] { display: none; }
.verify-kicker { margin: 0; font-family: var(--display); font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.verify-title { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(1.8rem, 3.6vw, 2.6rem); letter-spacing: -0.02em; }
.verify-panel .cta { text-decoration: none; }
.verify-wait { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--muted); }
.verify-wait[hidden] { display: none; }
.verify-dots { display: inline-flex; gap: 6px; }
.verify-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: verifyPulse 1.1s ease-in-out infinite; }
.verify-dots i:nth-child(2) { animation-delay: 0.18s; }
.verify-dots i:nth-child(3) { animation-delay: 0.36s; }
@keyframes verifyPulse { 50% { opacity: 0.25; } }
.verify-note { margin: 0; color: var(--faint); font-size: 0.92rem; }
.verify-note strong { color: var(--text); font-family: ui-monospace, Menlo, monospace; }
.verify-note[hidden] { display: none; }
.verify-panel .lede strong { color: var(--text); overflow-wrap: anywhere; }
.verify-code { display: flex; flex-direction: column; align-items: center; gap: 12px; width: min(100%, 300px); }
.verify-code[hidden] { display: none; }
.verify-code-field { width: 100%; }
.verify-code-field input { text-align: center; font-family: ui-monospace, Menlo, monospace; font-size: 1.7rem; letter-spacing: 0.3em; font-variant-numeric: tabular-nums; }
.link-inline { padding: 0; font-size: inherit; text-decoration: underline; text-underline-offset: 3px; }
.link-inline:disabled { cursor: default; opacity: 0.6; text-decoration: none; }
.invite-text { max-width: 46ch; text-align: center; color: var(--muted); font-size: 1.05rem !important; line-height: 1.45; }
.invite-text[hidden], #inviteLink[hidden] { display: none; }
#inviteLink { text-decoration: none; }
@media (prefers-reduced-motion: reduce) { .verify-dots i { animation: none; } }
