/* ============================================================
   /ia: o palco do chapéu (26/11/2026)
   Carregado só nesta página, depois do style.css. O servidor põe a versão
   (?v=) neste arquivo e no ia.js do mesmo jeito que faz com style.css e main.js.
   Blocos: palco e cena · tecla · telinhas (tl-*) · palavras voando · texto e painel.
   O mascote (.masc*) tem bloco próprio no fim.
   ============================================================ */

.ia-palco {
  position: relative;
  padding-top: calc(var(--nav-h) + var(--faixa-h) + clamp(10px, 2vw, 26px));
  padding-bottom: clamp(56px, 7vw, 104px);
  background: var(--cloud);
}

/* ---------- Cena: chapéu no centro, telinhas dos lados (ou em baralho, no celular) ---------- */
.ia-cena {
  --masc-w: 230px;
  --tl-w: min(300px, calc((100vw - 300px) / 2 - 20px));
  position: relative;
  width: min(1240px, 100%);
  height: 330px;
  margin-inline: auto;
}
.ia-centro {
  position: absolute;
  left: 50%;
  top: 14px;
  width: 260px;
  margin-left: -130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.7s cubic-bezier(0.2, 0.85, 0.2, 1);
  z-index: 5;
}

/* o clima da correria: um clarão vermelho atrás do chapéu, que pulsa enquanto os avisos chegam */
.ia-cena::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 150px;
  width: min(900px, 130vw);
  height: 520px;
  margin: -260px 0 0 calc(min(900px, 130vw) / -2);
  background: radial-gradient(closest-side, rgba(235, 5, 51, 0.16), rgba(235, 5, 51, 0.05) 55%, transparent 72%);
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}
.ia-cena[data-clima="correria"]::before { opacity: 1; animation: ia-clima 1.1s ease-in-out infinite; }
@keyframes ia-clima { 50% { transform: scale(1.06); } }
/* a onda que sai do chapéu quando ele toma fôlego */
.ia-onda {
  position: absolute;
  left: 0;
  top: 0;
  width: 220px;
  height: 220px;
  margin: -110px 0 0 -110px;
  border-radius: 50%;
  border: 2px solid rgba(235, 5, 51, 0.55);
  will-change: transform, opacity;
}

.ia-telinhas { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.ia-voo { position: absolute; inset: 0; z-index: 20; pointer-events: none; }

/* a frase que o chapéu fala sem telinha (o oi e a despedida) */
.ia-legenda {
  position: absolute;
  left: 50%;
  top: 268px;
  width: min(560px, calc(100% - 40px));
  transform: translateX(-50%);
  margin: 0;
  text-align: center;
  font-size: clamp(19px, 2.1vw, 24px);
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.25;
  color: var(--ink);
  pointer-events: none;
  z-index: 6;
  transition: opacity 0.3s ease;
}
.ia-legenda.is-saindo { opacity: 0; }
.ia-legenda.is-longa { width: min(800px, calc(100% - 40px)); font-size: clamp(16px, 1.55vw, 19px); line-height: 1.3; }
.ia-legenda span {
  display: inline-block;
  margin: 0 0.13em;
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  animation: ia-pal-entra 0.28s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
@keyframes ia-pal-entra { to { opacity: 1; transform: none; } }

/* som e parar: só aparecem com o show rodando */


/* ---------- Telinhas ---------- */
.tl {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--tl-w);
  box-sizing: border-box;
  margin: 0;
  padding: 14px 14px 12px;
  border-radius: 20px;
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--hairline), 0 12px 32px rgba(0, 0, 0, 0.09), 0 2px 6px rgba(0, 0, 0, 0.04);
  font-size: 13.5px;
  line-height: 1.3;
  letter-spacing: -0.012em;
  color: var(--ink);
  text-align: left;
  transform: translate3d(var(--x, 0px), var(--y, 0px), 0) scale(var(--s, 1));
  transform-origin: 50% 40%;
  opacity: var(--o, 1);
  transition: transform 0.6s cubic-bezier(0.2, 0.95, 0.25, 1.1), opacity 0.35s ease, box-shadow 0.3s ease;
  will-change: transform, opacity;
}
/* a telinha que volta para a frente da pilha fica opaca na hora (as de trás continuam esmaecendo) */
.tl.na-frente { transition-property: transform, box-shadow; }
.tl.is-ativa {
  box-shadow: 0 0 0 1.5px rgba(235, 5, 51, 0.32), 0 16px 40px rgba(235, 5, 51, 0.12), 0 2px 6px rgba(0, 0, 0, 0.04);
}
.tl ul, .tl ol { margin: 0; padding: 0; }
.tl p { margin: 0; }
.tl b { font-weight: 600; }
.tl small { font-size: 12px; color: var(--ink-soft); }

.tl-topo { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; min-height: 26px; }
.tl-ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--cloud);
  font-size: 14px;
  line-height: 1;
}
.tl-nome { font-weight: 600; }
.tl-meta { margin-left: auto; font-size: 12.5px; color: var(--ink-soft); white-space: nowrap; }
.tl-topo .tl-chip { margin-left: auto; }

/* antes e depois: o script põe is-feita quando o chapéu termina a frase */
.tl:not(.is-feita) .tl-depois { display: none; }
.tl.is-feita .tl-antes { display: none; }
.tl.is-feita .tl-depois { animation: tl-surge 0.42s cubic-bezier(0.2, 0.9, 0.3, 1.2) both; }
@keyframes tl-surge { from { opacity: 0; transform: translateY(5px) scale(0.94); } to { opacity: 1; transform: none; } }
.tl.is-feita { animation: tl-feita 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.3); }
@keyframes tl-feita { 35% { scale: 1.035; } 100% { scale: 1; } }

.tl-linhas li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 30px;
  padding: 3px 0;
}
.tl-linhas li + li { border-top: 1px solid var(--hairline); }
.tl-valor { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tl-valor s { margin-right: 6px; font-size: 12px; color: var(--ink-soft); }
.tl-novo { color: var(--brand); }
.tl-apagado { color: var(--ink-soft); font-weight: 500; }
.tl-total { font-weight: 600; }

.tl-chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  font-size: 11.5px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink-soft);
  white-space: nowrap;
  vertical-align: 1px;
}
.tl-chip-ok { background: rgba(26, 162, 81, 0.13); color: #12773a; }

/* chave liga e desliga */
.tl-chave {
  flex: none;
  position: relative;
  width: 32px;
  height: 19px;
  border-radius: 999px;
  background: #d2d2d7;
  transition: background-color 0.3s ease;
}
.tl-chave::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s cubic-bezier(0.3, 1.3, 0.5, 1);
}
.tl-chave.is-on { background: var(--check); }
.tl-chave.is-on::after { transform: translateX(13px); }
.tl.is-feita .tl-chave[data-vira] { background: #d2d2d7; }
.tl.is-feita .tl-chave[data-vira]::after { transform: none; }
.tl.is-feita .tl-chave[data-liga] { background: var(--check); }
.tl.is-feita .tl-chave[data-liga]::after { transform: translateX(13px); }
.tl-linhas small { font-size: 11.5px; }

.tl-vazio {
  padding: 13px 10px;
  border: 1.5px dashed rgba(0, 0, 0, 0.14);
  border-radius: 12px;
  text-align: center;
  color: var(--ink-soft);
}
.tl-cupom { display: flex; align-items: center; gap: 10px; }
.tl.is-feita .tl-cupom.tl-depois { display: flex; }
.tl-cupom-codigo {
  padding: 8px 10px;
  border: 1.5px dashed rgba(235, 5, 51, 0.45);
  border-radius: 10px;
  background: var(--brand-soft);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0;
  color: var(--brand);
}
.tl-cupom-txt { flex: 1; line-height: 1.25; }
.tl-cupom-txt small { display: block; margin-top: 1px; }

.tl-mesas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.tl-mesa {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 54px;
  padding: 6px 2px;
  border-radius: 12px;
  background: var(--cloud);
  text-align: center;
  transition: background-color 0.35s ease;
}
.tl-mesa b { font-size: 16px; font-weight: 700; line-height: 1; }
.tl-mesa small { font-size: 10.5px; line-height: 1.15; white-space: nowrap; }
.tl-mesa.is-ocupada,
.tl.is-feita .tl-mesa[data-ocupa] { background: var(--brand-soft); }
.tl-mesa.is-ocupada b, .tl-mesa.is-ocupada small,
.tl.is-feita .tl-mesa[data-ocupa] b, .tl.is-feita .tl-mesa[data-ocupa] small { color: var(--brand); }

.tl-vendas { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 6px 12px; }
.tl-vendas small { grid-column: 1 / -1; justify-self: start; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tl-grande {
  display: inline-block;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.tl-barras { display: flex; align-items: flex-end; gap: 4px; height: 40px; }
.tl-barras i {
  width: 8px;
  height: 8%;
  border-radius: 3px;
  background: rgba(235, 5, 51, 0.22);
  transition: height 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.1);
}
.tl-barras i:nth-child(6) { background: var(--brand); }
.tl.is-feita .tl-barras i { height: var(--h); }
.tl.is-feita .tl-barras i:nth-child(2) { transition-delay: 0.05s; }
.tl.is-feita .tl-barras i:nth-child(3) { transition-delay: 0.1s; }
.tl.is-feita .tl-barras i:nth-child(4) { transition-delay: 0.15s; }
.tl.is-feita .tl-barras i:nth-child(5) { transition-delay: 0.2s; }
.tl.is-feita .tl-barras i:nth-child(6) { transition-delay: 0.25s; }
.tl.is-feita .tl-barras i:nth-child(7) { transition-delay: 0.3s; }

.tl-ranking { counter-reset: lugar; }
.tl-ranking li {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 28px;
  margin-top: 4px;
  padding: 0 9px;
  border-radius: 8px;
  overflow: hidden;
  isolation: isolate;
  counter-increment: lugar;
}
.tl-ranking li:first-child { margin-top: 0; }
.tl-ranking li::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: var(--brand-soft);
  z-index: -1;
  transition: width 0.7s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.tl.is-feita .tl-ranking li::before { width: var(--w); }
.tl.is-feita .tl-ranking li:nth-child(2)::before { transition-delay: 0.08s; }
.tl.is-feita .tl-ranking li:nth-child(3)::before { transition-delay: 0.16s; }
.tl-ranking span::before { content: counter(lugar) ". "; color: var(--ink-soft); }
.tl-ranking b { font-variant-numeric: tabular-nums; }

/* antes da resposta, números e nomes são só um borrão cinza (o sistema ainda não respondeu) */
.tl:not(.is-feita) .tl-vendas > b,
.tl:not(.is-feita) .tl-vendas > small,
.tl:not(.is-feita) .tl-ranking span,
.tl:not(.is-feita) .tl-ranking b {
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.07);
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.tl:not(.is-feita) .tl-ranking span::before { color: transparent; }

.tl-status { min-height: 18px; color: var(--ink-soft); }
.tl-status .tl-depois { color: #12773a; font-weight: 600; }
.tl-bolinha {
  flex: none;
  display: grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  margin-left: auto;
  padding: 0 5px;
  box-sizing: border-box;
  border-radius: 999px;
  background: var(--brand);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1;
  color: #fff;
  transition: background-color 0.3s ease;
}
.tl.is-feita .tl-bolinha { background: var(--check); font-size: 0; }
.tl.is-feita .tl-bolinha::after { content: "✓"; font-size: 11.5px; }
.tl-aviso { padding: 12px 12px 10px; }
.tl-aviso .tl-topo { margin-bottom: 5px; }

/* o campo de voz no pé da telinha: é para onde as palavras voam */
.tl-campo {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-height: 34px;
  margin-top: 10px !important;
  padding: 8px 10px;
  box-sizing: border-box;
  border-radius: 12px;
  background: var(--cloud);
  font-weight: 500;
  line-height: 1.35;
}
.tl-mic {
  flex: none;
  width: 16px;
  height: 18px;
  background: var(--brand);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='3' width='6' height='11' rx='3'/%3E%3Cpath d='M5.5 11.5a6.5 6.5 0 0 0 13 0M12 18v3'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='3' width='6' height='11' rx='3'/%3E%3Cpath d='M5.5 11.5a6.5 6.5 0 0 0 13 0M12 18v3'/%3E%3C/svg%3E") center / contain no-repeat;
}
.tl.is-ativa:not(.is-feita) .tl-mic { animation: tl-ouve 0.9s ease-in-out infinite; }
@keyframes tl-ouve { 50% { transform: scale(1.18); opacity: 0.65; } }
.tl-fala { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.tl-pal { border-radius: 4px; transition: background-color 0.5s ease, box-shadow 0.5s ease; }
.tl-pal.is-nova { background: rgba(235, 5, 51, 0.14); box-shadow: 0 0 0 2px rgba(235, 5, 51, 0.14); }
.tl-pal.is-chegando { visibility: hidden; }
.tl-cursor {
  display: inline-block;
  width: 1.5px;
  height: 1.05em;
  margin-left: 1px;
  background: var(--brand);
  vertical-align: -0.16em;
  animation: tl-pisca 1s steps(2, jump-none) infinite;
}
@keyframes tl-pisca { 50% { opacity: 0; } }
.tl.is-feita .tl-cursor { display: none; }
.tl-feito {
  flex: none;
  display: none;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--check);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
}
.tl-feito::after { content: "✓"; }
.tl.is-feita .tl-feito { display: grid; animation: tl-surge 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.4) both; }

/* ---------- Palavras voando da boca do chapéu até a telinha ---------- */
.ia-palavra {
  position: absolute;
  left: 0;
  top: 0;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--brand);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: #fff;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(235, 5, 51, 0.28);
  will-change: transform, opacity;
}

/* ---------- Título, frase e painel de frases ---------- */
.ia-texto { text-align: center; }
.ia-titulo {
  font-size: clamp(40px, 7.2vw, 86px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
  text-wrap: balance;
}
.ia-sub { margin: clamp(14px, 1.8vw, 20px) auto 0; max-width: 31em; }

.ia-painel { width: min(780px, 100%); margin: clamp(22px, 3vw, 34px) auto 0; text-align: left; }
.ia-abas {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  padding: 4px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.055);
}
.ia-aba {
  padding: 9px 6px;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.012em;
  line-height: 1.2;
  color: #636366;   /* um tom mais escuro que o --ink-soft: no cinza das abas o contraste passa de 4,5:1 */
  white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.ia-aba:hover { color: var(--ink); }
.ia-aba[aria-selected="true"] {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 0 0 1px var(--hairline), 0 1px 3px rgba(0, 0, 0, 0.08);
}
.ia-grupo {
  margin-top: 10px;
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--hairline), var(--shadow-card);
}
.ia-grupo[hidden] { display: none; }
.ia-grupo-titulo { display: none; }
.ia-linha {
  display: grid;
  grid-template-columns: 148px 1fr auto;
  align-items: center;
  gap: 4px 14px;
  min-height: 62px;
  padding: 10px 12px 10px 20px;
  box-sizing: border-box;
}
.ia-linha + .ia-linha { border-top: 1px solid var(--hairline); }
.ia-linha strong { font-size: 15.5px; font-weight: 600; letter-spacing: -0.015em; }
.ia-frase { font-size: 15.5px; letter-spacing: -0.012em; line-height: 1.35; color: var(--ink-soft); }
.ia-ouvir {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  transition: transform 0.18s ease, filter 0.18s ease;
}
.ia-ouvir:hover { filter: brightness(0.92); transform: scale(1.05); }
.ia-ouvir:active { transform: scale(0.95); }
.ia-ouvir::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  margin: -7px 0 0 -4px;
  border-style: solid;
  border-width: 7px 0 7px 11px;
  border-color: transparent transparent transparent currentColor;
}
/* tocando: o triângulo vira três barrinhas que pulsam */
.ia-ouvir.is-tocando::before {
  width: 3px;
  height: 12px;
  margin: -6px 0 0 -1.5px;
  border: 0;
  border-radius: 2px;
  background: currentColor;
  box-shadow: -6px 0 0 currentColor, 6px 0 0 currentColor;
  animation: ia-barras 0.7s ease-in-out infinite;
}
@keyframes ia-barras { 50% { transform: scaleY(0.45); } }

.ia-ctas { margin-top: clamp(22px, 3vw, 32px); }
.ia-ctas .btn { transition: transform 0.18s ease, box-shadow 0.4s ease, filter 0.18s ease; }
.ia-ctas.is-chamando .btn { animation: ia-chama 1.6s ease-out 2; }
@keyframes ia-chama {
  0% { box-shadow: 0 0 0 0 rgba(235, 5, 51, 0.5); }
  70%, 100% { box-shadow: 0 0 0 18px rgba(235, 5, 51, 0); }
}
.ia-nota { margin: 14px 0 0; font-size: 13px; color: var(--ink-soft); }

/* sem JavaScript: sem show e sem abas, as frases aparecem todas, em lista */
html:not(.js) .ia-controles,
html:not(.js) .ia-abas,
html:not(.js) .ia-ouvir { display: none; }
html:not(.js) .ia-grupo[hidden] { display: block; }
html:not(.js) .ia-grupo-titulo { display: block; padding: 14px 20px 0; font-size: 13.5px; font-weight: 600; color: var(--ink-soft); }
html:not(.js) .ia-cena { height: auto; min-height: 0; padding-bottom: 20px; }
html:not(.js) .ia-centro { position: static; margin: 0 auto; }

/* ---------- Celular e tablet: o chapéu em cima e as telinhas em baralho, embaixo dele ---------- */
@media (max-width: 899px) {
  .ia-cena {
    --masc-w: 150px;
    --tl-w: min(340px, calc(100vw - 40px));
    height: auto;
    min-height: 262px;
  }
  .ia-cena[data-estado="tocando"] { min-height: var(--cena-h, 414px); }
  .ia-centro { top: 6px; }
  /* o chapéu fica 34 px abaixo do topo da cena: no pulo a copa não entra embaixo do menu */
  .ia-centro { transform: translateY(34px); }
  .ia-legenda { top: 198px; }
  .ia-texto { margin-top: 18px; }
}
@media (max-width: 560px) {
  .ia-abas { grid-template-columns: repeat(3, 1fr); }
  .ia-aba { padding: 12px 2px; font-size: 14px; }
  .ia-ouvir { width: 44px; height: 44px; }   /* alvo de toque de 44 px no celular */
  .ia-aba span { display: none; }
  /* no celular o botão de ouvir vai para a esquerda: à direita ele passava por baixo do botão verde do WhatsApp */
  .ia-linha { grid-template-columns: auto 1fr; gap: 3px 14px; padding: 12px 16px 12px 12px; }
  .ia-ouvir { grid-column: 1; grid-row: 1 / span 2; }
  .ia-linha strong { grid-column: 2; grid-row: 1; align-self: end; }
  .ia-frase { grid-column: 2; grid-row: 2; align-self: start; }
}

@media (max-width: 360px) {
  .ia-aba { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .ia-centro, .tl, .ia-cena { transition-duration: 0.01s; }
  .tl.is-ativa:not(.is-feita) .tl-mic, .tl-cursor, .tl.is-feita .tl-feito, .ia-tecla-brilho, .ia-pensa i, .tl-foto-varre { animation: none; }
  .ia-cena[data-clima="correria"]::before { animation: none; }
  .tl.is-feita, .tl.is-feita .tl-depois, .tl-mic, .ia-ctas.is-chamando .btn, .ia-ouvir.is-tocando::before { animation: none; }
  .ia-legenda span { animation-duration: 0.01s; }
  .tl-barras i, .tl-ranking li::before { transition-duration: 0.01s; }
}

/* MASCOTE-CSS-INICIO */
/* Mascote 3D do Sai Pedido (o chapéu de chef com rosto vivo). Tudo com o prefixo .masc.
   Tamanho: --masc-w no elemento .masc ou em qualquer pai dele (padrão 220px; funciona de 110 a 320 px).
   Sem JS aparece a arte parada, com o rosto original; o mascote.js põe a classe .masc-vivo e liga o boneco. */
.masc {
  position: relative;
  width: var(--masc-w, 220px);
  /* a altura inclui o chão: o corpo (720 x 612) e, embaixo, a faixa da sombra */
  padding-bottom: calc(var(--masc-w, 220px) * 0.17);
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.masc-corpo {
  position: relative;
  width: 100%;
  aspect-ratio: 720 / 612;
  /* o corpo gira e amassa em volta do pé da faixa */
  transform-origin: 45.2% 93%;
  will-change: transform;
}
.masc-img,
.masc-rosto {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}
.masc-img {
  -webkit-user-drag: none;
}
.masc-rosto {
  overflow: visible;
}
/* parado: só a arte com o rosto original */
.masc-base,
.masc-rosto,
.masc-copa {
  visibility: hidden;
}
/* vivo: a imagem sem rosto, o rosto em SVG por cima e a copa por cima do rosto */
.masc-vivo .masc-parado {
  visibility: hidden;
}
.masc-vivo .masc-base,
.masc-vivo .masc-rosto,
.masc-vivo .masc-copa {
  visibility: visible;
}
/* o relevo em volta dos furos (anel claro e vale escuro) é desenhado com traços e desfocado aqui */
.masc-suave {
  filter: blur(calc(var(--masc-w, 220px) * var(--masc-desfoque, 0.0042)));
}
/* duas camadas com a mesma imagem: a copa (com a aba) e a faixa. A linha do recorte segue a sombra de contato da aba,
   e a faixa sobe uns pixels para baixo da copa, então parado o conjunto é igual à imagem inteira. */
.masc-copa {
  -webkit-clip-path: polygon(0% 57.68%, 20.83% 57.68%, 21.74% 56.7%, 22.01% 55.23%, 22.29% 53.43%, 22.64% 51.88%, 22.78% 51.6%, 23.61% 51.36%, 25.28% 51.03%, 27.78% 50.65%, 31.11% 50.34%, 34.44% 50.1%, 37.78% 50.08%, 41.11% 50.26%, 44.44% 50.59%, 47.78% 51.06%, 51.11% 51.7%, 54.44% 52.5%, 57.78% 53.48%, 61.11% 54.59%, 64.44% 55.9%, 67.78% 57.39%, 70.28% 58.69%, 71.11% 59.33%, 71.25% 60.78%, 71.32% 62.42%, 71.46% 63.89%, 71.94% 65.03%, 100% 65.03%, 100% 0%, 0% 0%);
  clip-path: polygon(0% 57.68%, 20.83% 57.68%, 21.74% 56.7%, 22.01% 55.23%, 22.29% 53.43%, 22.64% 51.88%, 22.78% 51.6%, 23.61% 51.36%, 25.28% 51.03%, 27.78% 50.65%, 31.11% 50.34%, 34.44% 50.1%, 37.78% 50.08%, 41.11% 50.26%, 44.44% 50.59%, 47.78% 51.06%, 51.11% 51.7%, 54.44% 52.5%, 57.78% 53.48%, 61.11% 54.59%, 64.44% 55.9%, 67.78% 57.39%, 70.28% 58.69%, 71.11% 59.33%, 71.25% 60.78%, 71.32% 62.42%, 71.46% 63.89%, 71.94% 65.03%, 100% 65.03%, 100% 0%, 0% 0%);
  /* a copa inclina e estica em volta da linha em que encosta na faixa */
  transform-origin: 46.94% 55.47%;
  will-change: transform;
}
.masc-duas .masc-base {
  -webkit-clip-path: polygon(13.89% 100%, 13.89% 57.19%, 21.32% 56.7%, 21.32% 56.7%, 21.6% 55.23%, 21.88% 53.43%, 22.22% 51.88%, 22.36% 50.78%, 23.61% 50.54%, 25.28% 50.21%, 27.78% 49.84%, 31.11% 49.53%, 34.44% 49.28%, 37.78% 49.26%, 41.11% 49.44%, 44.44% 49.77%, 47.78% 50.25%, 51.11% 50.88%, 54.44% 51.68%, 57.78% 52.66%, 61.11% 53.77%, 64.44% 55.08%, 67.78% 56.57%, 70.28% 57.88%, 71.53% 58.51%, 71.67% 60.78%, 71.74% 62.42%, 71.88% 63.89%, 72.92% 65.36%, 77.78% 65.36%, 77.78% 100%);
  clip-path: polygon(13.89% 100%, 13.89% 57.19%, 21.32% 56.7%, 21.32% 56.7%, 21.6% 55.23%, 21.88% 53.43%, 22.22% 51.88%, 22.36% 50.78%, 23.61% 50.54%, 25.28% 50.21%, 27.78% 49.84%, 31.11% 49.53%, 34.44% 49.28%, 37.78% 49.26%, 41.11% 49.44%, 44.44% 49.77%, 47.78% 50.25%, 51.11% 50.88%, 54.44% 51.68%, 57.78% 52.66%, 61.11% 53.77%, 64.44% 55.08%, 67.78% 56.57%, 70.28% 57.88%, 71.53% 58.51%, 71.67% 60.78%, 71.74% 62.42%, 71.88% 63.89%, 72.92% 65.36%, 77.78% 65.36%, 77.78% 100%);
}
/* sombra de chão: o JS encolhe e clareia quando o boneco sobe */
.masc-sombra {
  position: absolute;
  left: 15%;
  bottom: calc(var(--masc-w, 220px) * 0.03);
  width: 60%;
  height: calc(var(--masc-w, 220px) * 0.085);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(92, 20, 34, 0.24), rgba(92, 20, 34, 0.11) 55%, rgba(92, 20, 34, 0));
  will-change: transform, opacity;
  pointer-events: none;
}
/* aura avermelhada do humor bravo */
.masc::before {
  content: "";
  position: absolute;
  left: -16%;
  top: calc(var(--masc-w, 220px) * -0.17);
  width: 132%;
  height: calc(var(--masc-w, 220px) * 1.22);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(235, 5, 51, 0.3), rgba(235, 5, 51, 0.13) 58%, rgba(235, 5, 51, 0));
  opacity: 0;
  transform: scale(0.86);
  transition: opacity 0.4s ease, transform 0.5s ease;
  pointer-events: none;
}
.masc-bravo::before {
  opacity: 1;
  transform: scale(1);
  animation: masc-aura 1.1s ease-in-out 0.5s infinite alternate;
}
/* estressado (o humor bravo no meio da correria): aura mais forte e laranja por dentro, como o boneco da referência quando ferve */
.ia-cena[data-clima="correria"] .masc-bravo::before {
  background: radial-gradient(closest-side, rgba(255, 120, 40, 0.5), rgba(235, 5, 51, 0.32) 45%, rgba(235, 5, 51, 0.1) 68%, rgba(235, 5, 51, 0));
  left: -26%;
  width: 152%;
}
.ia-cena[data-clima="correria"] .masc-bravo .masc-corpo { filter: drop-shadow(0 0 14px rgba(255, 90, 40, 0.45)); }
@keyframes masc-aura {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0.72; transform: scale(0.95); }
}
@media (prefers-reduced-motion: reduce) {
  .masc::before { transition: opacity 0.2s linear; transform: none; }
  .masc-bravo::before { animation: none; transform: none; }
}
/* MASCOTE-CSS-FIM */

/* ---------- Controles do show: centralizados logo abaixo da cena ----------
   Sem som (o show rodando sozinho): a pílula "Ouvir com som", com ondinhas vermelhas.
   Com som: o botão redondo de som e o "Parar". A faixa tem altura fixa: trocar de um para outro não mexe a página. */
.ia-controles {
  position: relative;
  z-index: 8;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 128px;
  margin: 0 auto clamp(10px, 1.6vw, 20px);   /* respiro antes do título */
}
.ia-cena:not([data-modo="som"]) + .ia-controles #iaSom,
.ia-cena:not([data-modo="som"]) + .ia-controles #iaParar,
.ia-cena[data-modo="som"] + .ia-controles .ia-com-som { display: none; }
.ia-ctrl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 1px var(--hairline), 0 8px 22px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.05);
  color: var(--ink);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.015em;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}
.ia-ctrl:hover { background: #fff; transform: translateY(-1px); box-shadow: 0 0 0 1px var(--hairline), 0 12px 28px rgba(0, 0, 0, 0.11), 0 1px 2px rgba(0, 0, 0, 0.05); }
.ia-ctrl:active { transform: translateY(0) scale(0.97); }
.ia-ctrl-redondo { width: 46px; padding: 0; }
.ia-ctrl .ia-ctrl-off { display: none; }
.ia-ctrl[aria-pressed="false"] .ia-ctrl-on { display: none; }
.ia-ctrl[aria-pressed="false"] .ia-ctrl-off { display: block; color: var(--ink-soft); }
.ia-parar-ico { width: 11px; height: 11px; border-radius: 3px; background: var(--brand); }

/* ---------- A tecla (no jeito da referência, com a cara do Sai Pedido) ----------
   Uma tecla branca de verdade: o poço embaixo dá a profundidade, a tampa afunda no clique, o brilho vermelho respira atrás.
   Embaixo, "Clique para ouvir" (no celular, "Toque para ouvir"). */
.ia-com-som { display: flex; flex-direction: column; align-items: center; }
.ia-tecla {
  position: relative;
  width: 112px;
  height: 94px;
  border-radius: 24px;
  -webkit-tap-highlight-color: transparent;
}
.ia-tecla-brilho {
  position: absolute;
  inset: 4px -6px -8px;
  border-radius: 30px;
  background: radial-gradient(closest-side, rgba(235, 5, 51, 0.32), rgba(235, 5, 51, 0.1) 60%, rgba(235, 5, 51, 0));
  filter: blur(8px);
  animation: ia-tecla-respira 2.8s ease-in-out infinite;
}
@keyframes ia-tecla-respira { 0%, 100% { opacity: 0.45; transform: scale(0.94); } 50% { opacity: 1; transform: scale(1.04); } }
.ia-tecla-poco {
  position: absolute;
  inset: 9px 0 0;
  border-radius: 24px;
  background: linear-gradient(#dcdce1, #c8c8cf);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.13), 0 3px 8px rgba(0, 0, 0, 0.08);
}
.ia-tecla-cap {
  position: absolute;
  inset: 0 2px 10px;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff, #efeff2);
  box-shadow: inset 0 1px 0 #fff, inset 0 -3px 0 rgba(0, 0, 0, 0.035), 0 0 0 1px rgba(0, 0, 0, 0.06);
  transition: transform 0.12s ease;
}
.ia-tecla-prato {
  position: absolute;
  inset: 7px;
  border-radius: 16px;
  background: linear-gradient(180deg, #f4f4f6, #ffffff 70%);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
}
.ia-tecla-ico { position: absolute; right: 9px; top: 9px; color: var(--brand); }
.ia-tecla-rotulo { position: absolute; left: 11px; bottom: 8px; font-size: 15px; font-weight: 500; letter-spacing: -0.02em; line-height: 1; color: var(--ink); }
.ia-tecla:hover .ia-tecla-cap { transform: translateY(1.5px); }
.ia-tecla:active .ia-tecla-cap,
.ia-tecla.is-apertada .ia-tecla-cap { transform: translateY(7px); }
.ia-tecla:focus-visible { outline-offset: 6px; border-radius: 26px; }
.ia-dica { margin: 12px 0 0; font-size: 13px; letter-spacing: -0.005em; color: var(--ink-soft); }
.ia-dica-toque { display: none; }
@media (hover: none) {
  .ia-dica-clique { display: none; }
  .ia-dica-toque { display: inline; }
}

/* ---------- Pensando: três pontinhos num balão, ao lado do chapéu ---------- */
.ia-pensa {
  position: absolute;
  left: calc(50% + 86px);
  top: 18px;
  z-index: 7;
  display: flex;
  gap: 5px;
  padding: 10px 13px;
  border-radius: 999px 999px 999px 6px;
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--hairline), 0 8px 20px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateY(6px) scale(0.8);
  transform-origin: 0 100%;
  transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.3, 1.4, 0.5, 1);
  pointer-events: none;
}
.ia-pensa i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-soft); animation: ia-pensa 1.1s ease-in-out infinite; }
.ia-pensa i:nth-child(2) { animation-delay: 0.15s; }
.ia-pensa i:nth-child(3) { animation-delay: 0.3s; }
@keyframes ia-pensa { 0%, 60%, 100% { transform: translateY(0); opacity: 0.45; } 30% { transform: translateY(-4px); opacity: 1; } }
.ia-cena[data-pensa] .ia-pensa { opacity: 1; transform: none; }
@media (max-width: 899px) {
  .ia-pensa { left: calc(50% + 58px); top: 30px; }
}

/* ---------- Telinhas novas: foto, CMV e entregador ---------- */
.tl-foto { display: flex; gap: 12px; align-items: center; }
.tl-foto-img { position: relative; flex: none; width: 64px; height: 64px; border-radius: 14px; overflow: hidden; background: var(--cloud); }
.tl-foto-img img { width: 100%; height: 100%; object-fit: cover; }
.tl-foto-varre {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 30%;
  background: linear-gradient(180deg, rgba(235, 5, 51, 0), rgba(235, 5, 51, 0.35));
  border-bottom: 2px solid var(--brand);
  animation: tl-varre 1.1s ease-in-out infinite alternate;
}
@keyframes tl-varre { from { transform: translateY(-30%); } to { transform: translateY(250%); } }
.tl-foto-dados { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tl-foto-nome { font-size: 15px; }
.tl-anexo { font-size: 12.5px; color: var(--ink-soft); }
.tl-foto-comp { display: flex; flex-wrap: wrap; gap: 4px; }
.tl-foto-comp em { font-style: normal; font-size: 11.5px; font-weight: 600; padding: 2px 7px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); }
.tl.is-feita .tl-foto-comp.tl-depois { display: flex; }
.tl:not(.is-feita) .tl-foto-img img { filter: saturate(0.6) brightness(1.05); }

.tl-linhas-ficha li { min-height: 25px; font-size: 13px; }
.tl-cmv { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; margin-top: 8px; }
.tl-cmv span { display: flex; flex-direction: column; padding: 7px 9px; border-radius: 12px; background: var(--cloud); }
.tl-cmv small { font-size: 11px; }
.tl-cmv b { font-size: 14.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tl-cmv-pct { background: var(--brand-soft) !important; }
.tl-cmv-pct b { color: var(--brand); }
.tl:not(.is-feita) .tl-cmv b { border-radius: 6px; background: rgba(0, 0, 0, 0.07); color: transparent; -webkit-text-fill-color: transparent; }

.tl-pedido { margin-bottom: 8px !important; }
.tl-alerta { display: flex; flex-direction: column; gap: 7px; padding: 10px 11px; border-radius: 12px; background: #fff4e0; color: #7a4b00; font-weight: 600; }
.tl.is-feita .tl-alerta.tl-depois { display: flex; }
.tl-botao { align-self: flex-start; font-style: normal; font-size: 12.5px; padding: 5px 11px; border-radius: 999px; background: var(--brand); color: #fff; }
.tl-alerta-ok { background: rgba(26, 162, 81, 0.12); color: #12773a; }
.tl-alerta-ok small { color: #12773a; font-weight: 500; }

.ia-anexo { margin-left: 6px; font-style: normal; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); white-space: nowrap; }

/* ---------- Mais contexto: o que faz, como funciona, perguntas ---------- */
.ia-h2 { text-align: center; margin: 0 auto clamp(28px, 4vw, 48px); max-width: 18em; }
.ia-h2-sub { text-align: center; margin: calc(-1 * clamp(14px, 2.5vw, 30px)) auto clamp(28px, 4vw, 44px); max-width: 34em; }
/* o último cartão ocupa a linha toda: "E qualquer outra coisa? É só pedir." */
.ia-card.ia-card-tudo { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; background: var(--ink); color: #fff; }
.ia-card.ia-card-tudo .ia-card-ico { flex: none; background: rgba(255, 255, 255, 0.1); box-shadow: none; }
.ia-card.ia-card-tudo h3 { margin: 0 0 4px; color: #fff; }
.ia-card.ia-card-tudo p { color: rgba(255, 255, 255, 0.72); }
.ia-poderes { background: var(--paper); }
.ia-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0; padding: 0; }
.ia-card { padding: 24px 22px; border-radius: 24px; background: var(--cloud); }
.ia-card-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--paper); font-size: 23px; box-shadow: 0 0 0 1px var(--hairline); }
.ia-card h3 { margin: 16px 0 6px; font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.ia-card p { margin: 0; font-size: 15.5px; line-height: 1.45; color: var(--ink-soft); }
.ia-como { background: var(--cloud); }
.ia-passos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0; padding: 0; counter-reset: none; }
.ia-passos li { padding: 24px 22px; border-radius: 24px; background: var(--paper); box-shadow: 0 0 0 1px var(--hairline); }
.ia-passos b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 16px; }
.ia-passos h3 { margin: 14px 0 6px; font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.ia-passos p { margin: 0; font-size: 15.5px; line-height: 1.45; color: var(--ink-soft); }
.ia-faq-titulo { margin: clamp(48px, 6vw, 72px) 0 18px; text-align: center; font-size: clamp(26px, 3vw, 34px); font-weight: 700; letter-spacing: -0.02em; }
.ia-faq { max-width: 760px; margin: 0 auto; }
.ia-ctas-fim { margin-top: 34px; }
@media (max-width: 899px) {
  .ia-cards { grid-template-columns: repeat(2, 1fr); }
  .ia-passos { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .ia-cards { grid-template-columns: 1fr; }
}

/* ---------- Balão de fala: as reações curtas do chapéu ("Prontinho!", "Hum...", "Eita!") ----------
   No computador fica à esquerda do chapéu, acima da pilha da esquerda; no celular, em cima do chapéu. */
.ia-balao {
  position: absolute;
  right: calc(50% + 96px);
  top: 2px;
  z-index: 12;
  max-width: 230px;
  padding: 9px 14px;
  border-radius: 18px 18px 6px 18px;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
  opacity: 0;
  transform: translateY(6px) scale(0.85);
  transform-origin: 100% 100%;
  transition: opacity 0.22s ease, transform 0.3s cubic-bezier(0.3, 1.4, 0.5, 1);
  pointer-events: none;
}
.ia-balao.is-on { opacity: 1; transform: none; }
@media (max-width: 899px) {
  .ia-balao { right: auto; left: 50%; top: 0; max-width: min(280px, calc(100% - 40px)); border-radius: 18px; transform: translate(-50%, 6px) scale(0.85); transform-origin: 50% 100%; text-align: center; }
  .ia-balao.is-on { transform: translate(-50%, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .ia-balao { transition: opacity 0.2s ease; }
}

/* ---------- Etiqueta do capítulo do show ("🍔 Cardápio · 1 de 6"), ao lado do som e do Parar ---------- */
.ia-capitulo {
  display: none;
  align-items: center;
  height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.ia-cena[data-modo="som"] + .ia-controles .ia-capitulo.is-on { display: inline-flex; animation: ia-cap-entra 0.35s cubic-bezier(0.3, 1.3, 0.5, 1); }
@keyframes ia-cap-entra { from { opacity: 0; transform: translateY(6px) scale(0.92); } to { opacity: 1; transform: none; } }
@media (max-width: 400px) {
  .ia-capitulo { padding: 0 12px; font-size: 13px; }
}

/* ---------- O show na página principal (27/11/2026): seção comum, sem a folga do menu fixo ---------- */
.ia-palco.ia-palco-home { padding-top: clamp(64px, 8vw, 112px); padding-bottom: clamp(64px, 8vw, 112px); }
.ia-palco-home .ia-texto .eyebrow { margin-bottom: 14px; }
.ia-palco-home .ia-titulo { font-size: clamp(38px, 6.2vw, 74px); }
.ia-palco-home .ia-ctas { margin-top: clamp(20px, 2.6vw, 28px); }

/* ---------- Home: o chapéu no topo, antes do título e do formulário (27/11/2026) ---------- */
.ia-palco.ia-palco-topo {
  padding-top: calc(var(--nav-h) + var(--faixa-h) + clamp(10px, 2vw, 26px));
  padding-bottom: clamp(48px, 6vw, 88px);
  text-align: center;
}
.ia-palco-topo .ia-controles { margin-bottom: 0; }
/* o título e o formulário logo abaixo: sem a folga do menu (quem tem a folga agora é o chapéu) */
.ia-palco-topo + .hero-captacao { padding-top: clamp(48px, 6vw, 80px); }
/* na /ia o link "Ver o Sai Pedido AI em ação" levaria para ela mesma */
.pagina-ia .ia-poderes-link { display: none; }
.ia-poderes-link { margin: clamp(24px, 3vw, 36px) 0 0; text-align: center; }

/* parado, a tecla fica logo embaixo do chapéu (como na referência); com o show rodando, desce para dar lugar à legenda */
@media (min-width: 900px) {
  .ia-cena + .ia-controles { transition: margin-top 0.45s cubic-bezier(0.2, 0.8, 0.2, 1); }
  .ia-cena[data-estado="espera"] + .ia-controles { margin-top: -78px; }
}
@media (prefers-reduced-motion: reduce) {
  .ia-cena + .ia-controles { transition: none; }
}
