/* MenuChefe — «Veja o MenuChefe funcionando» (demo2.js): vídeo no notebook ou no celular, etapas do lado, legenda e abas.
   Usado na página principal e na /black (as duas escuras). Depende de aparelhos.css (o notebook e o celular). */
#demo2 { --linha-2: rgba(255, 255, 255, .14); --suave: rgba(245, 243, 236, .66); --linha: rgba(255, 255, 255, .09); --texto: #f5f3ec; --y: #ffd60a; }
/* ── «Veja o MenuChefe funcionando»: vídeo no notebook ou no celular + etapas do lado (demo2.js) ── */
.d2-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--linha); }
.d2-tit { min-width: 0; }
.d2-kick { display: block; margin-bottom: 6px; font-family: var(--f-head); font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--y); }
.d2-tit h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); color: #fff; letter-spacing: -.03em; }
.d2-tit p { margin-top: 6px; max-width: 640px; font-size: .95rem; color: var(--suave); }
.d2-top .demo-modo { flex: none; margin: 0; }
.d2-corpo { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 30px; align-items: center; margin-top: 26px; }
.d2-aparelho { position: relative; min-width: 0; }
#demo2[data-modo="pc"] .d2-cel, #demo2[data-modo="cel"] .d2-nb { display: none; }
#demo2 .d2-nb { margin: 0; max-width: none; padding: 0 6% 18px; perspective: none; }
#demo2 .nb { --abre: 1; }
#demo2 .nb-tampa { transform: none; }
#demo2 .cel-palco { margin: 0; }
.d2-tela { cursor: zoom-in; }
.nb-tela.d2-tela video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; background: #f7f7f5; }
.cel-midia video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.d2-leg { position: absolute; left: 50%; bottom: 6%; z-index: 5; max-width: 88%; padding: 9px 16px 9px 30px; border-radius: 999px; background: rgba(15, 13, 8, .84); box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(255, 214, 10, .28); color: #fff; font-family: var(--f-head); font-weight: 600; font-size: clamp(.72rem, 1.2vw, .92rem); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none;
  opacity: 0; transform: translate(-50%, 8px); transition: opacity .3s var(--ease), transform .3s var(--ease); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.d2-leg::before { content: ''; position: absolute; left: 13px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--y); box-shadow: 0 0 0 4px rgba(255, 214, 10, .2); }
.d2-leg.on { opacity: 1; transform: translate(-50%, 0); }
.cel-tela .d2-leg { bottom: 9%; font-size: .74rem; white-space: normal; text-align: left; width: max-content; max-width: 84%; }
.d2-cards { display: grid; gap: 10px; }
.d2-c { position: relative; display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 14px 16px; overflow: hidden; border-radius: 16px; border: 1px solid var(--linha); background: rgba(255, 255, 255, .03); color: var(--texto); text-align: left; transition: background .3s, border-color .3s, opacity .3s; }
.d2-c:hover { background: rgba(255, 255, 255, .06); }
.d2-c.on { background: rgba(255, 214, 10, .08); border-color: rgba(255, 214, 10, .42); }
.d2-ic { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: rgba(255, 255, 255, .06); color: var(--suave); transition: background .3s, color .3s; }
.d2-ic svg { width: 19px; height: 19px; }
.d2-c.on .d2-ic { background: var(--y); color: #141206; }
.d2-c.feito .d2-ic { color: var(--y); }
.d2-c b { display: block; font-family: var(--f-head); font-weight: 600; font-size: .93rem; color: #fff; letter-spacing: -.02em; }
.d2-c small { display: block; margin-top: 2px; font-size: .8rem; line-height: 1.45; color: var(--suave); }
.d2-barra { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; opacity: 0; }
.d2-barra u { display: block; height: 100%; width: 0; background: var(--y); transition: width .25s linear; }
.d2-c.on .d2-barra { opacity: 1; }
.d2-abas-wrap { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 26px; }
.d2-abas { display: flex; gap: 4px; min-width: 0; max-width: 100%; padding: 5px; border-radius: 999px; background: rgba(255, 255, 255, .04); border: 1px solid var(--linha); overflow-x: auto; scrollbar-width: none; }
.d2-abas::-webkit-scrollbar { display: none; }
.d2-abas button { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--suave); font-size: .84rem; font-weight: 500; white-space: nowrap; transition: background .2s, color .2s; }
.d2-abas button svg { width: 16px; height: 16px; }
.d2-abas button:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.d2-abas button[aria-selected="true"] { background: var(--y); color: #141206; font-weight: 600; }
.d2-seta { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--linha-2); background: rgba(255, 255, 255, .04); color: #fff; transition: background .2s, color .2s; }
.d2-seta:hover { background: var(--y); color: #141206; }
.d2-seta svg { width: 17px; height: 17px; }
@media (max-width: 1080px) {
  .d2-corpo { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .d2-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .d2-top { flex-direction: column; align-items: stretch; gap: 14px; margin-top: 22px; padding-top: 18px; }
  .d2-top .demo-modo { align-self: center; }
  .d2-tit p { font-size: .9rem; }
  #demo2 .d2-nb { padding: 0 2% 14px; }
  .d2-cards { gap: 8px; }
  .d2-c { padding: 11px 12px; gap: 9px; border-radius: 14px; }
  .d2-ic { width: 32px; height: 32px; border-radius: 10px; }
  .d2-c b { font-size: .84rem; }
  .d2-c small { font-size: .74rem; }
  .d2-abas-wrap > .d2-seta { display: none; }
}

/* setas no próprio aparelho e a tela que acompanha o arrastar */
.d2-lado { position: absolute; top: 46%; z-index: 6; display: grid; place-items: center; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; border: 1px solid var(--linha-2); background: rgba(20, 18, 12, .82); color: #fff; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background .2s, color .2s, transform .2s; }
.d2-lado:hover { background: var(--y); color: #141206; transform: scale(1.06); }
.d2-lado svg { width: 20px; height: 20px; }
.d2-lado.esq { left: 0; } .d2-lado.dir { right: 0; }
#demo2[data-modo="cel"] .d2-lado.esq { left: calc(50% - 215px); } #demo2[data-modo="cel"] .d2-lado.dir { right: calc(50% - 215px); }
.d2-tela { touch-action: pan-y; user-select: none; -webkit-user-select: none; }
#demo2 .d2-nb, #demo2 .d2-cel { will-change: transform; }
@media (max-width: 640px) { .d2-lado { width: 38px; height: 38px; margin-top: -19px; } #demo2[data-modo="cel"] .d2-lado.esq { left: 0; } #demo2[data-modo="cel"] .d2-lado.dir { right: 0; } }

/* na /black a demonstração fica na coluna da esquerda (mais estreita): etapas embaixo do aparelho, em 2 colunas */
.demo2-black .d2-corpo { grid-template-columns: minmax(0, 1fr); gap: 20px; }
.demo2-black .d2-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { .demo2-black .d2-cards { grid-template-columns: minmax(0, 1fr); } }
.card:has(> .demo2-black) { min-width: 0; max-width: 100%; }
.demo2-black .d2-abas-wrap, .demo2-black .d2-top, .demo2-black .d2-corpo { min-width: 0; max-width: 100%; }

/* sem o cabeçalho de cada função: só o seletor Computador | Celular, centralizado logo abaixo do título da seção */
.d2-top { justify-content: center; margin-top: 22px; padding-top: 0; border-top: 0; }
.d2-top .demo-modo { margin: 0 auto; }
@media (max-width: 640px) { .d2-top { margin-top: 16px; } }

/* sem o tracinho de «início» do iPhone por cima do rodapé das telas gravadas */
#demo2 .cel-tela::after { display: none; }

/* celular: as etapas em lista, uma embaixo da outra */
@media (max-width: 640px) {
  #demo2 .d2-cards { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  #demo2 .d2-c { align-items: center; padding: 10px 12px; }
  #demo2 .d2-c small { margin-top: 1px; }
}

/* janela ampliada: por cima da página, com o fundo escurecido; cabe inteira na tela, no computador e no celular */
html.d2-travado { overflow: hidden; }
.d2-cheia { position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 64px 90px 22px; background: rgba(10, 9, 6, .72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: d2-ch-entra .25s ease; }
.d2-cheia[hidden] { display: none; }
@keyframes d2-ch-entra { from { opacity: 0; } }
.d2-ch-palco { flex: 1 1 auto; min-height: 0; width: 100%; display: grid; place-items: center; }
.d2-ch-janela { position: relative; overflow: hidden; border-radius: 16px; background: #fff; box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .08); animation: d2-ch-sobe .3s cubic-bezier(.2, .8, .2, 1); }
@keyframes d2-ch-sobe { from { opacity: 0; transform: translateY(14px) scale(.97); } }
/* computador: janela de navegador 16:10 + barra; ocupa o maior tamanho que cabe */
.d2-cheia[data-modo="pc"] .d2-ch-janela { width: min(1440px, 100%, calc((100dvh - 170px) * 1.6)); }
.d2-ch-barra { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; background: #f3f2ee; border-bottom: 1px solid #e6e4dd; }
.d2-ch-barra i { width: 11px; height: 11px; border-radius: 50%; background: #dedbd2; }
.d2-ch-url { margin: 0 auto; padding: 4px 18px; border-radius: 7px; background: #fff; color: #5f5c54; font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60%; }
.d2-ch-tela { position: relative; aspect-ratio: 1440 / 900; background: #f7f7f5; touch-action: pan-y; }
.d2-ch-tela video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.d2-cheia .d2-leg { bottom: 5%; font-size: clamp(.8rem, 1.3vw, 1rem); }
/* celular: tela do aparelho inteira, da altura que cabe */
.d2-cheia[data-modo="cel"] .d2-ch-barra { display: none; }
.d2-cheia[data-modo="cel"] .d2-ch-janela { height: min(calc(100dvh - 170px), 920px); aspect-ratio: 440 / 896; max-width: 100%; border-radius: 28px; box-shadow: 0 0 0 6px #111, 0 0 0 7px #3a3835, 0 40px 100px -20px rgba(0, 0, 0, .7); }
.d2-cheia[data-modo="cel"] .d2-ch-tela { aspect-ratio: auto; height: 100%; }
.d2-cheia[data-modo="cel"] .d2-leg { white-space: normal; width: max-content; max-width: 86%; text-align: left; }
.d2-ch-fechar { position: absolute; top: 16px; right: 22px; display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 8px 0 18px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(20, 18, 12, .55); color: #fff; font-family: var(--f-head, sans-serif); font-weight: 600; font-size: .95rem; }
.d2-ch-fechar kbd { padding: 3px 8px; border-radius: 999px; background: rgba(255, 255, 255, .16); font: 600 .7rem var(--f-head, sans-serif); }
.d2-ch-fechar:hover { background: rgba(20, 18, 12, .8); }
.d2-ch-seta { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 52px; height: 52px; margin-top: -40px; border: 0; border-radius: 50%; background: #fff; color: #17150f; box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .5); transition: transform .15s, background .2s; }
.d2-ch-seta:hover { background: var(--y, #ffd60a); transform: scale(1.05); }
.d2-ch-seta svg { width: 22px; height: 22px; }
.d2-ch-seta.esq { left: 22px; } .d2-ch-seta.dir { right: 22px; }
.d2-ch-abas { flex: none; display: flex; gap: 8px; max-width: 100%; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.d2-ch-abas::-webkit-scrollbar { display: none; }
.d2-ch-abas button { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 15px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .14); color: #fff; font-family: var(--f-head, sans-serif); font-weight: 600; font-size: .92rem; transition: background .2s; }
.d2-ch-abas button svg { width: 19px; height: 19px; }
.d2-ch-abas button span { display: none; }
.d2-ch-abas button:hover { background: rgba(255, 255, 255, .24); }
.d2-ch-abas button[aria-selected="true"] { background: #fff; color: #17150f; padding: 0 18px; }
.d2-ch-abas button[aria-selected="true"] span { display: inline; }
@media (max-width: 760px) {
  .d2-cheia { padding: 62px 12px 14px; gap: 12px; }
  .d2-ch-fechar { top: 12px; right: 12px; height: 38px; font-size: .88rem; }
  .d2-ch-seta { width: 40px; height: 40px; margin-top: -30px; }
  .d2-ch-seta.esq { left: 6px; } .d2-ch-seta.dir { right: 6px; }
  .d2-cheia[data-modo="pc"] .d2-ch-janela { width: 100%; border-radius: 10px; }
  .d2-ch-barra { height: 26px; } .d2-ch-barra i { width: 8px; height: 8px; } .d2-ch-url { font-size: .62rem; padding: 2px 10px; }
  .d2-cheia[data-modo="cel"] .d2-ch-janela { height: min(calc(100dvh - 150px), 760px); }
  .d2-ch-abas button { height: 40px; padding: 0 12px; }
}

/* legenda: uma linha só, curta e menor, para não tampar a tela */
#demo2 .d2-leg, .d2-cheia .d2-leg { padding: 6px 12px 6px 24px; font-size: clamp(.68rem, 1vw, .82rem); white-space: nowrap !important; width: auto !important; max-width: 86%; text-align: left; }
#demo2 .d2-leg::before, .d2-cheia .d2-leg::before { left: 10px; width: 6px; height: 6px; margin-top: -3px; box-shadow: 0 0 0 3px rgba(255, 214, 10, .2); }
#demo2 .cel-tela .d2-leg { bottom: 12%; font-size: .7rem; }
.d2-cheia[data-modo="cel"] .d2-leg { bottom: 11%; font-size: .85rem; }

/* moldura fina também na /black (que não carrega aparelhos.css) */
#demo2 .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); }
#demo2 .cel-tela { border-radius: 14.6% / 6.9%; }
#demo2 .cel-botao { width: 3px; }
#demo2 .cel-acao, #demo2 .cel-vol1, #demo2 .cel-vol2 { left: -5px; } #demo2 .cel-liga { right: -5px; }
