/* MenuChefe — mockups de computador e celular da demonstração (montados em black-demo.js). Mesmo visual da página /black;
   na página principal (fundo claro) as cores dos controles são ajustadas em marca.css. */
@keyframes carrega-aba { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
/* ── «Veja o MenuChefe por dentro»: notebook (mockup) montado em black-demo.js ──
   A tampa gira pela dobradiça (--abre: 0 fechada, 1 aberta, vem da rolagem) e o notebook fica levemente de lado. */
/* Notebook de frente, como um MacBook: tampa preta fina com borda de alumínio e câmera, e a base de alumínio mais larga, com o
   recorte para abrir no meio. A tampa gira pela dobradiça (embaixo): fechada fica deitada sobre o teclado, inclinada para a frente,
   e sobe até ficar em pé conforme a página rola (--abre: 0 fechada, 1 aberta). Vista de cima, a parte de trás da tampa é de alumínio. */
.nb-palco { position: relative; margin: 30px auto 0; max-width: 820px; padding: 0 8%; perspective: 1500px; perspective-origin: 50% -30%; }
.nb { --abre: 1; position: relative; }
.nb-tampa { position: relative; z-index: 1; padding: 1.7% 1.7% 2.2%; border-radius: 18px 18px 3px 3px; background: #050506;
  box-shadow: 0 0 0 1px #1d1e21, 0 0 0 2.5px #8f9096, 0 0 0 3px #c9cacf, 0 30px 60px -28px rgba(0, 0, 0, .85);
  transform-origin: 50% 100%; transform: rotateX(calc((1 - var(--abre)) * -80deg)); transform-style: preserve-3d; }
.nb-tampa::before { content: ''; position: absolute; top: .65%; left: 50%; z-index: 2; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: #1a1c22; box-shadow: inset 0 0 0 1px #2c2f38, 0 0 0 1px #000; }
.nb-tampa::after { content: ''; position: absolute; inset: -3px; border-radius: 20px 20px 4px 4px; transform: translateZ(-2px) rotateX(180deg); backface-visibility: hidden;
  background: radial-gradient(circle at 50% 50%, #f4f4f6 0 5%, transparent 5.4%), linear-gradient(180deg, #d9dade, #b3b4b9 60%, #9fa0a6); }
.nb-tela { backface-visibility: hidden; }
.nb-tela { position: relative; aspect-ratio: 1440 / 900; overflow: hidden; border-radius: 4px; background: #f7f7f5; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.nb-tela.arrastando { cursor: grabbing; }
.nb-tela::after { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(115deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 38%); }
.nb-slide { position: absolute; left: 0; top: 0; width: 100%; height: auto; display: block; opacity: 0; pointer-events: none; transition: opacity .45s var(--ease), translate .25s var(--ease); }
.nb-slide.on { opacity: 1; z-index: 1; }
.nb-slide.vem-dir { animation: nb-vem-dir .5s var(--ease); }
.nb-slide.vem-esq { animation: nb-vem-esq .5s var(--ease); }
@keyframes nb-vem-dir { from { opacity: 0; transform: translateX(6%); } to { opacity: 1; transform: none; } }
@keyframes nb-vem-esq { from { opacity: 0; transform: translateX(-6%); } to { opacity: 1; transform: none; } }
.nb-tela.arrastando .nb-slide { transition: opacity .45s var(--ease); }
.nb-dica { position: absolute; right: 10px; bottom: 10px; z-index: 3; padding: 4px 10px; border-radius: 999px; background: rgba(10, 9, 6, .62); color: #fff; font-size: .7rem; font-weight: 500;
  opacity: 0; transform: translateY(4px); transition: opacity .25s, transform .25s; pointer-events: none; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.nb-tela:hover .nb-dica { opacity: 1; transform: none; }
.nb-base { position: relative; height: clamp(10px, 1.55vw, 16px); margin: 0 -9%; border-radius: 3px 3px 22px 22px / 3px 3px 100% 100%;
  background: linear-gradient(180deg, #f6f6f8 0%, #dcdde1 22%, #b9babf 55%, #86878d 85%, #5e5f65 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 -1px 2px rgba(0, 0, 0, .35); }
.nb-base::before { content: ''; position: absolute; left: 43%; right: 43%; top: 0; height: 52%; border-radius: 0 0 10px 10px; background: linear-gradient(180deg, #9d9ea4, #c9cace); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .35); }
.nb-base::after { content: ''; position: absolute; left: 4%; right: 4%; top: 100%; height: 26px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .75), transparent); filter: blur(2px); z-index: -1; }

/* controles: ‹ abas › — abas minimalistas que enchem o fundo de amarelo enquanto a tela está no ar (como as abas dos planos) */
.nb-ctrl { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 26px; }
.nb-abas { display: flex; gap: 2px; min-width: 0; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); overflow-x: auto; scrollbar-width: none; }
.nb-abas::-webkit-scrollbar { display: none; }
.nb-abas button { position: relative; flex: none; height: 32px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--suave); font-size: .84rem; font-weight: 500; white-space: nowrap; overflow: hidden; isolation: isolate; transition: color .2s, background .2s; }
.nb-abas button:hover { color: #fff; }
.nb-abas button[aria-selected="true"] { background: rgba(255, 255, 255, .1); color: #fff; }
.nb-abas button[aria-selected="true"]::after { content: attr(data-rot); position: absolute; inset: 0; display: grid; place-items: center; border-radius: inherit; background: var(--y); color: #141206; font-weight: 600; clip-path: inset(0 0 0 0); }
.nb-abas.rodando button[aria-selected="true"]::after { animation: carrega-aba var(--dur, 5s) linear forwards; }
.nb-seta { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .04); color: rgba(255, 255, 255, .85); transition: background .2s, color .2s, border-color .2s; }
.nb-seta:hover { background: rgba(255, 214, 10, .12); border-color: rgba(255, 214, 10, .45); color: var(--y); }
.nb-seta svg { width: 16px; height: 16px; }
.demo-leg { margin: 14px auto 0; max-width: 560px; text-align: center; font-size: .9rem; line-height: 1.55; color: var(--suave); min-height: 3.1em; }
.demo-leg b { color: #fff; font-weight: 600; }

/* tela cheia: a tela encaixada na janela, sem rolar */
.nb-cheia { position: fixed; inset: 0; z-index: 95; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 56px 16px 20px; background: rgba(5, 4, 2, .9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.nb-cheia[hidden] { display: none; }
.nb-cheia-palco { display: grid; place-items: center; min-height: 0; flex: 1 1 auto; width: 100%; touch-action: pan-y; }
.nb-cheia-palco img, .nb-cheia-palco video { display: block; max-width: min(1440px, 100%); max-height: calc(100dvh - 150px); width: auto; height: auto; object-fit: contain; border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .7); user-select: none; transition: translate .25s var(--ease); }
/* dashboard (tela alta) na tela cheia: janela no formato do computador, com a tela rolando para baixo e voltando; parado ao passar o mouse */
.nb-cheia-janela { width: min(1440px, 100%, calc((100dvh - 150px) * 1.6)); aspect-ratio: 1440 / 900; overflow: hidden; border-radius: 10px; background: #f7f7f5; box-shadow: 0 30px 80px rgba(0, 0, 0, .7); }
.nb-cheia-palco .nb-cheia-janela img { width: 100%; max-width: none; max-height: none; height: auto; border-radius: 0; box-shadow: none; animation: nb-rola-tela 14s ease-in-out infinite; }
.nb-cheia-janela:hover img { animation-play-state: paused; }
@keyframes nb-rola-tela { 0%, 12% { transform: translateY(0); } 50%, 62% { transform: translateY(var(--desce)); } 100% { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .nb-cheia-palco .nb-cheia-janela img { animation: none; } }
.nb-cheia .nb-ctrl { margin: 0; }
.nb-cont { min-width: 150px; text-align: center; color: #fff; font-size: .9rem; font-weight: 500; }
.nb-fechar { position: absolute; top: 12px; right: 14px; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; }
.nb-fechar:hover { background: var(--y); color: #141206; }
.nb-fechar svg { width: 18px; height: 18px; }

@media (max-width: 640px) {
  .nb-palco { padding: 0 7%; margin-top: 22px; perspective: 900px; }
  .nb-tampa { border-radius: 11px 11px 2px 2px; }
  .nb-tampa::after { border-radius: 13px 13px 3px 3px; }
  .nb-ctrl { gap: 6px; margin-top: 20px; }
  .nb-abas button { height: 30px; padding: 0 10px; font-size: .78rem; }
  .nb-ctrl > .nb-seta { display: none; }
  .nb-cheia .nb-ctrl > .nb-seta { display: grid; }
  .nb-abas { max-width: 100%; position: relative; }
  .nb-seta { width: 32px; height: 32px; }
  .nb-dica { opacity: 1; transform: none; font-size: .62rem; padding: 3px 8px; }
  .demo-leg { font-size: .85rem; }
}
@media (prefers-reduced-motion: reduce) { .nb, .nb-tampa { transform: none !important; } .nb-slide { animation: none !important; transition: none; } }

/* ── Computador | Celular ── */
.demo-modo { display: flex; width: max-content; margin: 22px auto 0; padding: 4px; gap: 2px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); }
.demo-modo button { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--suave); font-size: .86rem; font-weight: 500; transition: color .2s, background .2s; }
.demo-modo button svg { width: 17px; height: 17px; }
.demo-modo button:hover { color: #fff; }
.demo-modo button[aria-checked="true"] { background: var(--y); color: #141206; font-weight: 600; }
#demo[data-modo="cel"] .nb-palco, #demo[data-modo="pc"] .cel-palco { display: none; }
#demo[data-modo] .cel-palco, #demo[data-modo] .nb-palco { animation: demo-entra .5s var(--ease); }
@keyframes demo-entra { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }

/* ── celular (mockup no tamanho de tela de um iPhone 16 Pro Max: 440 x 956 com a barra de status) ── */
.cel-palco { position: relative; display: flex; justify-content: center; margin: 30px auto 0; }
.cel-palco::after { content: ''; position: absolute; left: 50%; bottom: -22px; width: min(300px, 70vw); height: 34px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .7), transparent); filter: blur(4px); z-index: -1; }
.cel { container-type: inline-size; position: relative; width: min(330px, 80vw, calc((100dvh - 150px) / 2.13)); padding: 1.1%; border-radius: 17% / 8%; background: #050506;
  box-shadow: 0 0 0 1.5px #b3afa8, 0 0 0 3.5px #77736d, 0 0 0 5px #3a3835, 0 0 0 6px #121211, 0 40px 80px -24px rgba(0, 0, 0, .85), 0 0 90px rgba(255, 214, 10, .07); }
.cel-botao { position: absolute; width: 4px; border-radius: 2px; background: linear-gradient(90deg, #3c3a37, #8a8680 60%, #55524e); }
.cel-acao { left: -9px; top: 17%; height: 4.5%; }
.cel-vol1 { left: -9px; top: 24.5%; height: 8%; }
.cel-vol2 { left: -9px; top: 34%; height: 8%; }
.cel-liga { right: -9px; top: 27%; height: 12%; background: linear-gradient(270deg, #3c3a37, #8a8680 60%, #55524e); }
.cel-tela { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 16% / 7.5%; background: #fff; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; transform: translateZ(0); }
.cel-tela.arrastando { cursor: grabbing; }
.cel-tela::before { content: ''; position: absolute; inset: 0; z-index: 4; pointer-events: none; background: linear-gradient(120deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, 0) 34%); }
/* barra de casa (o tracinho de baixo) */
.cel-tela::after { content: ''; position: absolute; left: 50%; bottom: 1.1%; z-index: 4; width: 34%; height: 4px; margin-left: -17%; border-radius: 4px; background: rgba(0, 0, 0, .82); pointer-events: none; }
.cel-tela.escura::after { background: rgba(255, 255, 255, .85); }
.cel-status { position: relative; z-index: 3; flex: none; display: flex; align-items: center; justify-content: space-between; aspect-ratio: 440 / 60; padding: 1% 8% 0 11%; background: #fff; color: #0d0d0f; transition: background .35s, color .35s; }
.cel-tela.escura .cel-status { background: #121215; color: #fff; }
.cel-hora { font-size: 4.3cqi; font-weight: 600; letter-spacing: -.01em; }
/* câmera: só a bolinha da lente, num cinza escuro (não preto chapado), com o reflexo do vidro */
.cel-ilha { position: absolute; left: 50%; top: 50%; width: 5.4cqi; height: 5.4cqi; transform: translate(-50%, -42%); border-radius: 50%; background: radial-gradient(circle at 50% 50%, #3b4a63 0 18%, #262a33 19% 46%, #2e3038 47% 100%); box-shadow: 0 0 0 .5px rgba(255, 255, 255, .14), inset 0 0 0 .8px rgba(0, 0, 0, .55); }
.cel-ilha::after { content: ''; position: absolute; left: 30%; top: 26%; width: 18%; height: 18%; border-radius: 50%; background: rgba(170, 200, 255, .55); }
.cel-ics { display: flex; align-items: center; gap: 1.4cqi; }
.cel-ics svg { height: 3cqi; width: auto; fill: currentColor; }
.cel-ics svg:last-child { height: 3.3cqi; }
.cel-midia { position: relative; flex: none; aspect-ratio: 440 / 896; overflow: hidden; background: #f7f7f5; }
.cel-tela.escura .cel-midia { background: #17171b; }
.cel-midia .nb-slide { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.cel-tela .nb-dica { bottom: 3.5%; right: 5%; }
.cel-tela:hover .nb-dica { opacity: 1; transform: none; }
.cel-tela.arrastando .nb-slide { transition: opacity .45s var(--ease); }
.nb-cheia.cel-cheia .nb-cheia-palco video { border-radius: 26px; max-width: min(480px, 100%); }
@media (max-width: 640px) {
  .demo-modo { margin-top: 18px; }
  .demo-modo button { height: 32px; padding: 0 13px; font-size: .82rem; }
  .cel-palco { margin-top: 24px; }
  .cel { width: min(300px, 76vw, calc((100dvh - 140px) / 2.13)); }
}

/* título só para leitor de tela (mantém a ordem dos títulos sem aparecer na página) */
.so-leitor { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }


/* moldura fina: só o aro do celular, sem a borda preta grossa */
.cel { padding: .7%; border-radius: 15.5% / 7.4%; background: #1a1a1c; box-shadow: 0 0 0 1px #d4d1ca, 0 0 0 2.5px #9b978f, 0 30px 60px -26px rgba(0, 0, 0, .45); }
.cel-tela { border-radius: 14.6% / 6.9%; }
.cel-botao { width: 3px; }
.cel-acao, .cel-vol1, .cel-vol2 { left: -5px; } .cel-liga { right: -5px; }
