/*
  O site demonstrativo do Debulha, versão 2 (desenho.md). Identidade visual: ADR-006.
  O movimento acontece uma vez, quando a seção aparece, e nunca com "reduzir movimento"
  (desenho.md, seção 4). Sem JavaScript, tudo aparece no lugar: só a classe .js esconde o que
  ainda vai entrar.
*/

/* ---------- Fontes, dentro da pasta (SIL OFL 1.1): o site não chama nada de fora ---------- */
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fontes/atkinson-latin.woff2) format('woff2');
  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;
}
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fontes/atkinson-latin-ext.woff2) format('woff2');
  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-20C4, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(fontes/bricolage-latin.woff2) format('woff2');
  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;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(fontes/bricolage-latin-ext.woff2) format('woff2');
  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-20C4, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

/* ---------- Cores, fontes e espaços do ADR-006 ---------- */
:root {
  --brasa: #ff6b2c;
  --brasa-pressionada: #f0541a;
  --brasa-clara: #ffe2d3;
  --chapa: #221a16;
  --fumaca: #5c514a;
  --borda: #807167;
  --farinha: #f5f3f0;
  --papel: #ffffff;
  --sucesso: #1e6b34;
  --sucesso-fundo: #e7f3ea;
  --chapa-suave: #d9d0c8;
  --contorno-escuro: #9c8f85;

  --fonte-titulo:
    'Bricolage Grotesque', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --fonte-texto:
    'Atkinson Hyperlegible Next', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  --largura: 76rem;
  --margem: 1.5rem;
  --mola: cubic-bezier(0.2, 0.9, 0.2, 1);
  --pulo: cubic-bezier(0.3, 1.5, 0.5, 1);
  color-scheme: light;
}

@supports (font: -apple-system-body) and (-webkit-touch-callout: none) {
  html {
    font: -apple-system-body;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  /* Sem isto, o corte do body passa para a janela, e o celular deixa arrastar a página para o lado */
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--papel);
  color: var(--chapa);
  font-family: var(--fonte-texto);
  font-size: 1.0625rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
  overflow-x: clip;
}

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input {
  font: inherit;
  color: inherit;
}

[hidden] {
  display: none !important;
}

.vh {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Foco: contorno de 3 em chapa, com anel de brasa (ADR-006) */
:focus-visible {
  outline: 3px solid var(--chapa);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px var(--brasa);
}

.secao--chapa :focus-visible,
.contato-bloco :focus-visible {
  outline-color: var(--papel);
}

h1:focus,
h2:focus,
main:focus,
[tabindex='-1']:focus {
  outline: none;
  box-shadow: none;
}

.icon {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Algarismos na Bricolage, no peso do texto em volta (ADR-006, seção 3) */
.num {
  font-family: var(--fonte-titulo);
  font-variant-numeric: tabular-nums;
}

.pular {
  position: absolute;
  top: -10rem;
  left: 1rem;
  z-index: 40;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background: var(--chapa);
  color: var(--papel);
  font-weight: 700;
}

.pular:focus {
  top: 1rem;
}

.faixa {
  width: 100%;
  max-width: var(--largura);
  margin: 0 auto;
  padding: 0 var(--margem);
}

@media (min-width: 52rem) {
  :root {
    --margem: 2rem;
  }
}

/* ---------- Botões e links (ADR-006, seção 6) ---------- */
.botao {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.25rem;
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--chapa);
  border-radius: 999px;
  background: var(--papel);
  color: var(--chapa);
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.25s var(--pulo),
    background-color 0.2s,
    box-shadow 0.25s;
}

.botao:hover {
  background: var(--farinha);
  transform: translateY(-2px);
  box-shadow: 0 6px 0 -1px var(--chapa);
}

.botao:active {
  transform: translateY(1px);
  box-shadow: none;
}

.botao--principal {
  background: var(--brasa);
}

.botao--principal:hover,
.botao--principal:active {
  background: var(--brasa-pressionada);
}

.botao--escuro {
  background: var(--chapa);
  color: var(--papel);
}

.botao--escuro:hover {
  background: #3a2e28;
  box-shadow: 0 6px 0 -1px rgba(34, 26, 22, 0.35);
}

.link {
  color: var(--chapa);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.link-botao {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

/* ---------- Topo ---------- */
.topo {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid transparent;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
}

.topo.rolou {
  border-bottom-color: var(--chapa-suave);
  box-shadow: 0 10px 30px -18px rgba(34, 26, 22, 0.35);
}

.topo .faixa {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  min-height: 4.5rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.marca {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 3rem;
  margin-right: auto;
  color: var(--chapa);
  text-decoration: none;
}

/* A marca é um logo: tem tamanho fixo e não quebra (o WCAG 1.4.4 não pede que o logo cresça) */
.marca svg {
  flex: none;
  width: 40px;
  height: 40px;
  transition: transform 0.4s var(--pulo);
}

.marca:hover svg {
  transform: rotate(-8deg) scale(1.06);
}

.marca-nome {
  overflow-wrap: normal;
  white-space: nowrap;
  font-family: var(--fonte-titulo);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.menu-botao {
  display: none;
}

.menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.5rem;
}

.menu a:not(.botao) {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  color: var(--chapa);
  font-weight: 600;
  text-decoration: none;
}

.menu a:not(.botao)::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.55rem;
  height: 3px;
  border-radius: 2px;
  background: var(--brasa);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--mola);
}

.menu a:not(.botao):hover::after {
  transform: scaleX(1);
}

@media (max-width: 52rem) {
  .menu-botao {
    display: inline-flex;
    min-height: 3rem;
    padding: 0.5rem 1rem;
  }

  .menu {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding-bottom: 0.75rem;
  }

  .menu.aberto {
    display: flex;
  }

  .menu a:not(.botao) {
    padding: 0 0.25rem;
    border-bottom: 1px solid var(--farinha);
  }

  .menu a:not(.botao)::after {
    display: none;
  }

  .menu .botao {
    margin-top: 0.5rem;
  }
}

/* ---------- Abertura, com a marca em alto-relevo ---------- */
.abertura {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 48%, rgba(255, 107, 44, 0.22), rgba(255, 107, 44, 0) 42%),
    var(--farinha);
}

/* Uma trama de pontos, como a de uma toalha, que some para as bordas */
.abertura::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(34, 26, 22, 0.13) 1.2px, transparent 1.6px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 50%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse at 70% 50%, #000 10%, transparent 70%);
  pointer-events: none;
}

.abertura .faixa {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: 1rem 2rem;
  min-height: min(44rem, calc(100vh - 4.5rem));
  padding-top: 2.5rem;
  padding-bottom: 3rem;
}

.selo {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 1.5rem;
  padding: 0.375rem 1rem 0.375rem 0.875rem;
  border: 2px solid var(--chapa);
  border-radius: 999px;
  background: var(--papel);
  font-weight: 600;
  font-size: 0.9375rem;
}

/* O ponto do selo pulsa três vezes e para (desenho.md, seção 4) */
.selo i {
  flex: none;
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background: var(--brasa);
  animation: pulso 1.5s 0.8s 3 ease-out;
}

@keyframes pulso {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 107, 44, 0.7);
  }
  100% {
    box-shadow: 0 0 0 12px rgba(255, 107, 44, 0);
  }
}

.abertura h1 {
  font-family: var(--fonte-titulo);
  font-size: clamp(2.75rem, 5.6vw, 4.75rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.abertura h1 em {
  font-style: normal;
  background: linear-gradient(var(--brasa), var(--brasa)) no-repeat 0 88% / 100% 0.32em;
}

.js .abertura h1 em {
  background-size: 0% 0.32em;
  animation: grifo 0.9s 0.75s var(--mola) forwards;
}

@keyframes grifo {
  to {
    background-size: 100% 0.32em;
  }
}

.abertura .chamada {
  max-width: 36rem;
  margin-top: 1.5rem;
  font-size: 1.25rem;
  line-height: 1.45;
}

.acoes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.aviso-venda {
  max-width: 36rem;
  margin-top: 1rem;
  color: var(--fumaca);
  font-size: 0.9375rem;
}

/* O texto da abertura entra subindo, em sequência, logo que a página abre */
.js .entra {
  animation: subir 0.8s calc(var(--d) * 90ms + 80ms) var(--mola) backwards;
}

@keyframes subir {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

.marca-palco {
  position: relative;
  height: clamp(22rem, 44vw, 38rem);
}

.marca-palco canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s;
  touch-action: pan-y;
}

.marca-desenho {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(60%, 17rem);
  aspect-ratio: 1;
  translate: -50% -56%;
  rotate: -8deg;
  filter: drop-shadow(0 30px 30px rgba(34, 26, 22, 0.28));
  transition:
    opacity 0.5s,
    scale 0.6s;
}

.js .marca-desenho {
  animation: surgir 0.9s 0.2s var(--pulo) backwards;
}

@keyframes surgir {
  from {
    opacity: 0;
    scale: 0.85;
  }
}

.marca-palco.com-3d canvas {
  opacity: 1;
}

.marca-palco.com-3d .marca-desenho {
  opacity: 0;
  scale: 0.9;
}

@media (max-width: 52rem) {
  .abertura .faixa {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding-top: 2rem;
    padding-bottom: 1rem;
  }

  .marca-palco {
    height: 19rem;
    margin-top: -1rem;
  }
}

/* ---------- Seções ---------- */
.secao {
  padding: 5.5rem 0;
}

.secao--farinha {
  background: var(--farinha);
}

.secao--chapa {
  background: var(--chapa);
  color: var(--papel);
}

.secao h2 {
  max-width: 46rem;
  font-family: var(--fonte-titulo);
  font-size: clamp(2.125rem, 4.8vw, 3.5rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.secao .intro {
  max-width: 42rem;
  margin-top: 1rem;
  font-size: 1.1875rem;
}

.secao--chapa .intro {
  color: var(--chapa-suave);
}

h3 {
  font-family: var(--fonte-titulo);
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

@media (max-width: 52rem) {
  .secao {
    padding: 4rem 0;
  }
}

/* O título de cada seção entra subindo quando ela aparece */
.js [data-revelar] h2,
.js [data-revelar] .intro {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s,
    transform 0.8s var(--mola);
}

.js [data-revelar] .intro {
  transition-delay: 0.08s;
}

.js [data-revelar].visto h2,
.js [data-revelar].visto .intro {
  opacity: 1;
  transform: none;
}

/* ---------- Os problemas de hoje: os papéis da noite, jogados no balcão ----------
   Cada problema é um papel de verdade de uma noite sem sistema: a comanda do bloco, o bilhete
   colado com fita, a folha arrancada do caderno e o cupom da maquininha. Eles caem no balcão
   um de cada vez quando a seção aparece, e ficam tortos: a bagunça é o recado. */
.secao--problemas {
  container-type: inline-size;
}

.problemas-grade {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
}

/* Primeiro o celular: os papéis um embaixo do outro, ainda tortos e um pouco por cima do outro.
   As colunas dependem do espaço medido em letras (consulta ao contêiner, em rem): com a fonte
   grande, a pilha volta a ser uma coluna só, e nenhum papel cobre o texto de outro. */
.balcao {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  padding: 0.5rem 0.25rem 1.5rem;
}

.papel + .papel {
  margin-top: -0.25rem;
}

.papel {
  --x: 0px;
  --y: 0px;
  --r: 0deg;
  --r0: 0deg;
  position: relative;
  width: 92%;
  transform: translate(var(--x), var(--y)) rotate(var(--r));
  filter: drop-shadow(0 1px 1px rgba(34, 26, 22, 0.12))
    drop-shadow(0 14px 14px rgba(34, 26, 22, 0.16));
  transition:
    transform 0.75s var(--pulo),
    opacity 0.3s;
  transition-delay: calc(var(--i) * 140ms + 100ms);
}

/* Antes de a seção aparecer, os papéis estão no ar, mais tortos */
.js .secao--problemas:not(.visto) .papel {
  opacity: 0;
  transform: translate(var(--x), calc(var(--y) - 7rem)) rotate(var(--r0)) scale(1.05);
}

/* O grão do papel, desenhado aqui mesmo (nada vem de fora) */
.folha {
  --grao: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .13 0 0 0 0 .1 0 0 0 0 .09 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  position: relative;
  color: var(--chapa);
  font-size: 1.125rem;
  line-height: 1.5;
}

/* 1. A comanda do bloco: picotada em cima, com o número em vermelho e as linhas dos itens */
.papel--comanda {
  --r: -2.5deg;
  --r0: -14deg;
  z-index: 1;
  justify-self: start;
}

.papel--comanda .folha {
  padding: 1.5rem 1.375rem 1.5rem;
  background: var(--grao), #fffdf6;
  -webkit-mask: radial-gradient(circle 2.5px at 50% 8px, #0000 96%, #000) 0 0 / 11px 100% repeat-x;
  mask: radial-gradient(circle 2.5px at 50% 8px, #0000 96%, #000) 0 0 / 11px 100% repeat-x;
}

.comanda-topo {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 0.375rem;
  border-bottom: 2px solid var(--chapa);
}

.comanda-topo b {
  font-family: var(--fonte-titulo);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.comanda-topo span {
  color: #a8340e;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.comanda-campos {
  display: flex;
  gap: 1rem;
  margin: 0.5rem 0 0.75rem;
  color: var(--fumaca);
  font-size: 0.875rem;
}

.comanda-campos span {
  flex: 1;
  padding-bottom: 0.125rem;
  border-bottom: 1px solid var(--chapa-suave);
}

.papel--comanda p,
.papel--caderno p {
  background: repeating-linear-gradient(
    transparent 0 calc(1.5em - 1px),
    rgba(31, 95, 168, 0.2) calc(1.5em - 1px) 1.5em
  );
}

/* 2. O bilhete colado com fita, em brasa clara */
.papel--bilhete {
  --r: 2.5deg;
  --r0: 18deg;
  z-index: 2;
  justify-self: end;
}

.papel--bilhete .folha {
  padding: 2rem 1.5rem 1.75rem;
  background:
    var(--grao), linear-gradient(170deg, #ffe9dd 0%, var(--brasa-clara) 55%, #fbd6c3 100%);
  font-family: var(--fonte-titulo);
  font-size: 1.3125rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

/* A fita, meio transparente, com as pontas rasgadas */
.papel--bilhete .folha::before {
  content: '';
  position: absolute;
  top: -0.75rem;
  left: 50%;
  width: 6rem;
  height: 1.5rem;
  margin-left: -3rem;
  background: rgba(222, 210, 194, 0.78);
  box-shadow: 0 1px 2px rgba(34, 26, 22, 0.1);
  transform: rotate(-4deg);
  clip-path: polygon(
    0 8%,
    6% 0,
    12% 10%,
    100% 0,
    96% 25%,
    100% 50%,
    95% 75%,
    100% 100%,
    8% 92%,
    3% 100%,
    0 70%,
    4% 45%
  );
}

/* A ponta de baixo, levantando um pouco */
.papel--bilhete .folha::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: 2.25rem;
  height: 2.25rem;
  background: linear-gradient(
    135deg,
    transparent 50%,
    rgba(34, 26, 22, 0.07) 50%,
    rgba(255, 255, 255, 0.55) 78%
  );
}

/* 3. A folha arrancada do caderno: os furos da espiral, as linhas, a margem e a marca do copo */
.papel--caderno {
  --r: -1.5deg;
  --r0: 12deg;
  z-index: 3;
  justify-self: start;
}

.papel--caderno .folha {
  padding: 1.25rem 1.25rem 2.75rem 3rem;
  background:
    linear-gradient(
      90deg,
      transparent 2.25rem,
      rgba(240, 84, 26, 0.5) 2.25rem,
      rgba(240, 84, 26, 0.5) calc(2.25rem + 2px),
      transparent calc(2.25rem + 2px)
    ),
    var(--grao), #fffefb;
  -webkit-mask: radial-gradient(circle 5px at 0.875rem 50%, #0000 96%, #000) 0 0 / 100% 1.5rem
    repeat-y;
  mask: radial-gradient(circle 5px at 0.875rem 50%, #0000 96%, #000) 0 0 / 100% 1.5rem repeat-y;
}

.papel--caderno .folha::after {
  content: '';
  position: absolute;
  right: -1.25rem;
  bottom: -1.5rem;
  width: 6.5rem;
  height: 6.5rem;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    transparent 58%,
    rgba(150, 92, 40, 0.16) 61%,
    rgba(150, 92, 40, 0.07) 66%,
    transparent 69%
  );
  pointer-events: none;
}

/* 4. O cupom da maquininha: estreito, rasgado em cima e embaixo */
.papel--cupom {
  --r: 3deg;
  --r0: -20deg;
  z-index: 4;
  width: 78%;
  justify-self: end;
}

.papel--cupom .folha {
  padding: 1.5rem 1.25rem;
  background: var(--grao), linear-gradient(#fbfaf7, #f4f2ee);
  -webkit-mask:
    conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / 14px 51% repeat-x,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 14px 51%
      repeat-x;
  mask:
    conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / 14px 51% repeat-x,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 14px 51%
      repeat-x;
}

.cupom-topo {
  display: block;
  margin-bottom: 0.75rem;
  padding-bottom: 0.625rem;
  border-bottom: 2px dashed var(--chapa-suave);
  color: var(--fumaca);
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  font-size: 0.8125rem;
  line-height: 1.5;
  text-align: center;
}

/* Com espaço para duas colunas: a pilha jogada no balcão, cada papel por cima de um pedaço do outro */
@container (min-width: 40rem) {
  .balcao {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.25rem;
    padding: 0.5rem 0.5rem 2.5rem;
  }

  .papel {
    width: auto;
  }

  .papel + .papel {
    margin-top: 0;
  }

  .papel--comanda {
    --r: -4deg;
    --x: -0.25rem;
  }

  .papel--bilhete {
    --r: 5deg;
    --x: -1.5rem;
    --y: 1.75rem;
    width: 94%;
  }

  .papel--caderno {
    --r: 2.5deg;
    --x: 1.75rem;
    --y: -1.5rem;
  }

  .papel--cupom {
    --r: -6deg;
    --x: -1.25rem;
    --y: -1rem;
    width: 82%;
    justify-self: center;
  }
}

/* No notebook: o título à esquerda, a pilha à direita */
@container (min-width: 60rem) {
  .problemas-grade {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: center;
    gap: 3rem 4rem;
  }
}

/* ---------- Uma noite com o Debulha ---------- */
.secao--noite {
  padding-bottom: 3rem;
}

.historia {
  position: relative;
  margin-top: 1rem;
}

.noite {
  display: grid;
}

.momento {
  display: grid;
  gap: 1.5rem;
  padding: 2.5rem 0;
}

.momento-texto {
  max-width: 32rem;
}

.passo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1rem;
  padding: 0 0.75rem;
  border-radius: 999px;
  background: var(--chapa);
  color: var(--papel);
  font-family: var(--fonte-titulo);
  font-size: 1.25rem;
  font-weight: 800;
  transition:
    background-color 0.4s,
    color 0.4s,
    transform 0.5s var(--pulo);
}

.momento-texto h3 {
  font-size: clamp(1.625rem, 3vw, 2.375rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.momento-texto p {
  margin-top: 0.875rem;
  font-size: 1.1875rem;
}

/* No celular: cada passo com o seu aparelho, logo abaixo do texto */
.momento-cena {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
}

.momento-cena .cena {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: calc(678px * var(--esc-passo, 0.8) + 24px);
}

.momento-cena--notebook .cena {
  height: calc(436px * var(--esc-passo, 0.8) * 0.56 + 24px);
}

.momento-cena .aparelho {
  --esc: var(--esc-passo, 0.8);
  --ry: 0deg;
  --rx: 0deg;
}

.momento-cena .notebook {
  --esc: calc(var(--esc-passo, 0.8) * 0.56);
}

/* No passo 4, a impressora fica no canto, na frente do celular */
.momento-cena--impressora .ator--celular {
  translate: -6% 0;
}

.momento-cena--impressora .ator--impressora {
  place-items: end end;
  pointer-events: none;
}

.momento-cena--impressora .impressora {
  --esc: calc(var(--esc-passo, 0.8) * 0.62);
  transform-origin: 100% 100%;
}

.ver-de-novo {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 2.75rem;
  padding: 0.375rem 1rem;
  border: 2px solid var(--chapa);
  border-radius: 999px;
  background: var(--papel);
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.ver-de-novo:hover {
  background: var(--brasa-clara);
}

.ver-de-novo .icon {
  width: 1.125rem;
  height: 1.125rem;
}

.ver-de-novo:active .icon {
  rotate: -180deg;
  transition: rotate 0.3s;
}

.palco-noite {
  display: none;
}

/* No computador: a cena presa ao lado dos passos */
@media (min-width: 60rem) {
  .historia {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 3rem;
  }

  .noite {
    padding: 4vh 0 34vh;
  }

  .momento {
    min-height: 74vh;
    align-content: center;
    padding: 0;
  }

  .momento-cena {
    display: none;
  }

  /* 0,7, e não menos: o texto dos passos apagados ainda precisa de 4,5:1 de contraste */
  .js .momento .momento-texto {
    opacity: 0.7;
    transform: translateX(-8px);
    transition:
      opacity 0.5s,
      transform 0.6s var(--mola);
  }

  .js .momento.ativo .momento-texto {
    opacity: 1;
    transform: none;
  }

  .momento.ativo .passo {
    background: var(--brasa);
    color: var(--chapa);
    transform: scale(1.08);
  }

  .palco-noite {
    position: sticky;
    top: 4.5rem;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    justify-items: center;
    gap: 0.75rem;
    height: calc(100vh - 4.5rem);
    padding: 1.25rem 0 1.5rem;
  }

  .palco-noite .cena {
    position: relative;
    width: 100%;
  }
}

.etiqueta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem 0.375rem 0.5rem;
  border-radius: 999px;
  background: var(--chapa);
  color: var(--papel);
  font-weight: 700;
  font-size: 0.9375rem;
}

.etiqueta::before {
  content: '';
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--brasa);
}

.etiqueta.troca {
  animation: etiqueta 0.5s var(--pulo);
}

@keyframes etiqueta {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.92);
  }
}

/* Os passos, em pontos, no canto de baixo do palco */
.pontos {
  position: absolute;
  left: 0;
  bottom: 2.4rem;
  display: flex;
  gap: 0.625rem;
}

.pontos span {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background: var(--chapa-suave);
  transition:
    background-color 0.3s,
    transform 0.3s;
}

.pontos span.on {
  background: var(--brasa);
  transform: scale(1.4);
}

/* ---------- Por que o Debulha ---------- */
.secao--chapa {
  position: relative;
  overflow: hidden;
}

.secao--chapa::before {
  content: '';
  position: absolute;
  right: -12rem;
  top: -14rem;
  width: 36rem;
  height: 36rem;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 107, 44, 0.22), rgba(255, 107, 44, 0));
  pointer-events: none;
}

.diferenciais {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(19rem, 100%), 1fr));
  gap: 1rem;
  margin-top: 3rem;
}

.diferenciais li {
  padding: 1.75rem 1.5rem 1.5rem;
  border: 2px solid #4a3f39;
  border-radius: 1.75rem;
  background: rgba(255, 255, 255, 0.03);
  transition:
    border-color 0.3s,
    transform 0.4s var(--pulo),
    background-color 0.3s;
}

.diferenciais li:hover {
  border-color: var(--brasa);
  background: rgba(255, 107, 44, 0.06);
  transform: translateY(-4px);
}

.diferenciais .bola {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 1.125rem;
  border-radius: 1rem;
  background: var(--brasa);
  color: var(--chapa);
  transition: transform 0.5s var(--pulo);
}

.diferenciais li:hover .bola {
  transform: rotate(-8deg) scale(1.08);
}

.diferenciais p {
  margin-top: 0.5rem;
  color: var(--chapa-suave);
}

.js .diferenciais li {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.6s calc(var(--i) * 90ms + 0.15s),
    transform 0.8s calc(var(--i) * 90ms + 0.15s) var(--mola),
    border-color 0.3s,
    background-color 0.3s;
}

.js .visto .diferenciais li {
  opacity: 1;
  transform: none;
}

.js .visto .diferenciais li:hover {
  transform: translateY(-4px);
  transition-delay: 0s;
}

/* ---------- Preço: os dois preços sempre à vista ---------- */
#preco .faixa {
  display: grid;
  gap: 2.5rem;
}

.plano {
  padding: clamp(1.25rem, 3vw, 2.25rem);
  border: 3px solid var(--chapa);
  border-radius: 2rem;
  background: var(--papel);
  box-shadow: 10px 10px 0 var(--chapa);
}

.plano-nome {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--fonte-titulo);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.plano-nome svg {
  width: 2.25rem;
  height: 2.25rem;
}

.precos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.preco {
  padding: 1.5rem;
  border-radius: 1.5rem;
  background: var(--farinha);
}

.preco--anual {
  background: var(--chapa);
  color: var(--papel);
}

.preco-rotulo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.125rem;
}

.desconto {
  padding: 0.125rem 0.75rem;
  border-radius: 999px;
  background: var(--brasa);
  color: var(--chapa);
  font-size: 0.9375rem;
}

.valor {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 0.5rem;
  margin-top: 0.5rem;
}

.valor strong {
  font-family: var(--fonte-titulo);
  font-size: clamp(2.5rem, 5.4vw, 3.75rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.valor > span {
  font-size: 1.125rem;
}

.rolar {
  display: inline-grid;
}

.rolar > span {
  grid-area: 1 / 1;
}

.rolar-medida {
  visibility: hidden;
}

.anual {
  margin-top: 0.75rem;
  color: var(--chapa-suave);
}

.anual strong {
  color: var(--papel);
}

.plano-baixo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr));
  gap: 1.5rem 2.5rem;
  margin-top: 1.75rem;
}

.inclui {
  display: grid;
  gap: 0.75rem;
}

.inclui li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.inclui li > :last-child {
  flex: 1 1 12rem;
}

.inclui .icon {
  color: var(--sucesso);
}

.taxa {
  padding: 1rem 1.25rem;
  border-radius: 1.25rem;
  background: var(--brasa-clara);
}

.plano .acoes {
  margin-top: 1.25rem;
}

.preco-comecar h3 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.comecar {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
  counter-reset: comecar;
}

.comecar li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.comecar li::before {
  counter-increment: comecar;
  content: counter(comecar);
  position: relative;
  z-index: 1;
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--chapa);
  color: var(--papel);
  font-family: var(--fonte-titulo);
  font-size: 1.25rem;
  font-weight: 800;
  transition:
    background-color 0.4s calc(var(--i) * 280ms + 0.5s),
    color 0.4s calc(var(--i) * 280ms + 0.5s),
    transform 0.5s calc(var(--i) * 280ms + 0.5s) var(--pulo);
}

/* O fio que liga os passos, e que se acende até o passo (no computador) */
.comecar li::after {
  content: '';
  position: absolute;
  top: 1.375rem;
  left: 3rem;
  right: -1.25rem;
  height: 4px;
  border-radius: 2px;
  background:
    linear-gradient(var(--brasa), var(--brasa)) no-repeat 0 0 / 100% 100%,
    var(--chapa-suave);
  transition: background-size 0.4s calc(var(--i) * 280ms + 0.7s) linear;
}

.comecar li:last-child::after {
  display: none;
}

.comecar strong {
  display: block;
  font-size: 1.125rem;
}

.js #preco:not(.visto) .comecar li::after {
  background-size: 0% 100%;
}

.js #preco.visto .comecar li::before {
  background: var(--brasa);
  color: var(--chapa);
  transform: scale(1.06);
}

.js #preco .plano {
  opacity: 0;
  transform: translateY(30px) rotate(-1deg);
  transition:
    opacity 0.7s 0.1s,
    transform 0.9s 0.1s var(--pulo);
}

.js #preco.visto .plano {
  opacity: 1;
  transform: none;
}

@media (max-width: 56rem) {
  .comecar li {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .comecar li > span {
    flex: 1 1 12rem;
  }

  .comecar li::after {
    top: 3rem;
    bottom: -1.25rem;
    left: 1.375rem;
    right: auto;
    width: 4px;
    height: auto;
    background:
      linear-gradient(var(--brasa), var(--brasa)) no-repeat 0 0 / 100% 100%,
      var(--chapa-suave);
  }

  .js #preco:not(.visto) .comecar li::after {
    background-size: 100% 0%;
  }

  .plano {
    box-shadow: 6px 6px 0 var(--chapa);
  }
}

/* ---------- Perguntas ---------- */
.perguntas {
  display: grid;
  gap: 0.75rem;
  max-width: 52rem;
  margin-top: 2.5rem;
}

.perguntas details {
  border: 2px solid transparent;
  border-radius: 1.5rem;
  background: var(--papel);
  transition: border-color 0.25s;
}

.perguntas details:hover,
.perguntas details[open] {
  border-color: var(--chapa);
}

.perguntas summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
  padding: 1.125rem 1.5rem;
  border-radius: 1.5rem;
  font-weight: 700;
  font-size: 1.125rem;
  cursor: pointer;
  list-style: none;
}

.perguntas summary::-webkit-details-marker {
  display: none;
}

.perguntas summary .icon {
  padding: 0.25rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--farinha);
  transition:
    transform 0.35s var(--pulo),
    background-color 0.25s;
}

.perguntas details[open] summary .icon {
  transform: rotate(135deg);
  background: var(--brasa);
}

.resposta {
  overflow: hidden;
}

.resposta p {
  padding: 0 1.5rem 1.25rem;
}

/* ---------- Contato: um bloco grande em brasa ---------- */
.contato-bloco {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2rem;
  padding: clamp(2rem, 5vw, 4rem);
  overflow: hidden;
  border-radius: 2.5rem;
  background: var(--brasa);
  color: var(--chapa);
}

.contato-bloco::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(34, 26, 22, 0.16) 1.2px, transparent 1.6px);
  background-size: 20px 20px;
  -webkit-mask-image: linear-gradient(110deg, transparent 40%, #000);
  mask-image: linear-gradient(110deg, transparent 40%, #000);
  pointer-events: none;
}

.contato-bloco > * {
  position: relative;
}

.contato-bloco h2 {
  font-size: clamp(2.25rem, 5.4vw, 4rem);
}

.contato-bloco .intro {
  color: var(--chapa);
}

.contato-marca {
  width: clamp(8rem, 18vw, 14rem);
  height: auto;
  rotate: 8deg;
  filter: drop-shadow(0 24px 24px rgba(34, 26, 22, 0.3));
  transition: rotate 1s var(--pulo);
}

.js .contato:not(.visto) .contato-marca {
  rotate: -20deg;
  scale: 0.8;
}

.js .contato .contato-marca {
  transition:
    rotate 1.1s 0.2s var(--pulo),
    scale 1.1s 0.2s var(--pulo);
}

.js .contato .contato-bloco {
  clip-path: inset(0 0 0 0 round 2.5rem);
  transition: clip-path 0.9s var(--mola);
}

.js .contato:not(.visto) .contato-bloco {
  clip-path: inset(8% 6% 8% 6% round 2.5rem);
}

@media (max-width: 40rem) {
  .contato-bloco {
    grid-template-columns: minmax(0, 1fr);
    border-radius: 2rem;
  }

  .contato-marca {
    position: absolute;
    right: -1.5rem;
    bottom: -1.5rem;
    width: 7rem;
    opacity: 0.35;
  }
}

/* Ícone e texto lado a lado: com a fonte grande, o ícone sobe e o texto usa a largura toda,
   sem partir palavra */
.faixa-exemplo,
.nota,
.demo,
.leitura-topo {
  flex-wrap: wrap;
}

.faixa-exemplo > :last-child,
.nota > :last-child,
.demo > :last-child,
.leitura-topo > :last-child {
  flex: 1 1 12rem;
}

/* ---------- Rodapé ---------- */
.rodape {
  padding: 2.5rem 0;
  border-top: 1px solid var(--chapa-suave);
  background: var(--papel);
  font-size: 0.9375rem;
}

.rodape .faixa {
  display: grid;
  gap: 1rem;
}

.rodape-linha {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
}

.rodape .marca {
  margin-right: 0;
}

.rodape .marca-nome {
  font-size: 22px;
}

.rodape .marca svg {
  width: 32px;
  height: 32px;
}

.rodape a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}

.rodape .apoio {
  color: var(--fumaca);
}

.demo {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border: 2px dashed var(--borda);
  border-radius: 1rem;
  color: var(--chapa);
}

/* ---------- Exemplo de assinatura e privacidade ---------- */
.pagina {
  padding: 2.5rem 0 4rem;
}

.pagina .faixa {
  max-width: 42rem;
}

.voltar {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  min-height: 3rem;
  margin-bottom: 1rem;
  color: var(--chapa);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.faixa-exemplo {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  border: 2px solid var(--chapa);
  border-radius: 1.25rem;
  background: var(--brasa-clara);
}

.faixa-exemplo strong {
  display: block;
}

.etapa {
  color: var(--fumaca);
  font-weight: 600;
}

.pagina h1 {
  margin-top: 0.25rem;
  font-family: var(--fonte-titulo);
  font-size: clamp(2rem, 6vw, 2.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.pagina .intro {
  margin-top: 0.75rem;
  font-size: 1.125rem;
}

.pagina h2 {
  margin-top: 2rem;
  font-family: var(--fonte-titulo);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.pagina h2 + p {
  margin-top: 0.5rem;
}

.pagina p + p {
  margin-top: 0.75rem;
}

.formulario {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.rotulo {
  margin-bottom: 0.5rem;
  font-weight: 600;
}

legend {
  padding: 0;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.escolhas {
  display: grid;
  gap: 0.75rem;
}

.escolha {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  min-height: 4rem;
  padding: 1rem 1.25rem;
  border: 2px solid var(--borda);
  border-radius: 1.5rem;
  cursor: pointer;
}

.escolha:has(input:checked) {
  border-color: var(--chapa);
  border-width: 3px;
  background: var(--farinha);
}

.escolha input {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  margin: 0;
  accent-color: var(--chapa);
}

.escolha span {
  display: block;
}

.escolha .detalhe {
  color: var(--fumaca);
  font-size: 0.9375rem;
}

.campo label {
  display: block;
  font-weight: 600;
}

.campo .dica {
  color: var(--fumaca);
  font-size: 0.9375rem;
}

.campo input {
  width: 100%;
  min-height: 3.25rem;
  margin-top: 0.375rem;
  padding: 0.75rem 1rem;
  border: 2px solid var(--borda);
  border-radius: 1rem;
  background: var(--papel);
}

.campo input:focus {
  border-color: var(--chapa);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 3rem;
  padding: 0.5rem 1.125rem;
  border: 2px solid var(--borda);
  border-radius: 999px;
  background: var(--papel);
  font-weight: 600;
  cursor: pointer;
}

.chip[aria-pressed='true'] {
  border-color: var(--chapa);
  background: var(--chapa);
  color: var(--papel);
}

.chip .icon {
  width: 1.125rem;
  height: 1.125rem;
}

.chip[aria-pressed='false'] .icon {
  display: none;
}

.contador {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.contador button {
  width: 3rem;
  height: 3rem;
  border: 2px solid var(--chapa);
  border-radius: 50%;
  background: var(--papel);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.contador output {
  min-width: 3rem;
  font-family: var(--fonte-titulo);
  font-size: 1.75rem;
  font-weight: 800;
  text-align: center;
}

.nota {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: 1.25rem;
  background: var(--farinha);
}

.rodape-etapa {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
}

.leitura {
  margin-top: 1.5rem;
  border: 2px solid var(--chapa);
  border-radius: 1.5rem;
  overflow: hidden;
}

.leitura-topo {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--sucesso-fundo);
  color: var(--chapa);
}

.leitura-topo .icon {
  color: var(--sucesso);
}

.leitura h2 {
  margin: 0;
  padding: 1rem 1.25rem 0.25rem;
  font-size: 1.125rem;
}

.leitura ul {
  display: grid;
}

.leitura li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  padding: 0.875rem 1.25rem;
  border-top: 1px solid var(--chapa-suave);
}

.leitura li span:first-child {
  font-weight: 600;
}

.conferir {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.125rem 0.625rem;
  border: 2px dashed var(--chapa);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
}

.fim-marca {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--brasa);
}

.fim-marca .icon {
  width: 2.25rem;
  height: 2.25rem;
}

/* =====================================================================================
   Os aparelhos e as telas da noite (cenas.js). Tudo aqui é desenho: o leitor de tela não
   entra (aria-hidden), e a descrição de cada tela fica no texto do passo.
   ===================================================================================== */

.cena {
  font-family: var(--fonte-texto);
  line-height: 1.4;
  overflow-wrap: normal;
  -webkit-user-select: none;
  user-select: none;
}

.momento-cena .cena {
  overflow: clip;
}

.ator {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  perspective: 1600px;
  transition:
    opacity 0.6s,
    transform 0.9s var(--mola),
    translate 0.9s var(--mola);
}

/* O celular e o notebook ficam no meio do palco, mesmo quando são mais largos que ele
   (a redução é desenhada, e a caixa continua do tamanho real) */
.ator > .aparelho,
.ator > .notebook {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
}

/* As telas ficam nítidas porque são desenhadas já no tamanho final (zoom), e não desenhadas
   grandes e depois encolhidas como imagem (scale), o que borrava o texto, ainda mais girando
   em 3D. Navegador sem zoom (Firefox antes da versão 126) volta para o scale. */
@supports not (zoom: 1) {
  .aparelho,
  .notebook,
  .impressora {
    --esc-t: var(--esc);
  }

  .app {
    transform: scale(0.8);
  }

  .desk {
    transform: scale(0.59375);
  }
}

/* ---------- O celular ---------- */
.aparelho {
  --ry: -14deg;
  --rx: 6deg;
  --esc: 0.9;
  position: relative;
  flex: none;
  width: 328px;
  height: 678px;
  padding: 5px;
  border-radius: 58px;
  background: linear-gradient(
    140deg,
    #8a817a 0%,
    #3a322d 22%,
    #5d544e 48%,
    #241d19 74%,
    #6e655f 100%
  );
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.28),
    inset 0 0 0 3px rgba(0, 0, 0, 0.35);
  zoom: var(--esc);
  transform-style: preserve-3d;
  transform: rotateY(calc(var(--ry) + var(--mx, 0) * 12deg))
    rotateX(calc(var(--rx) - var(--my, 0) * 7deg)) scale(var(--esc-t, 1));
  transition: transform 0.9s var(--mola);
}

.aparelho::before,
.aparelho::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 58px;
  background: linear-gradient(140deg, #5d544e, #1c1613 60%, #4a423c);
}

.aparelho::before {
  transform: translateZ(-10px);
  box-shadow: 0 46px 80px -20px rgba(34, 26, 22, 0.5);
}

.aparelho::after {
  transform: translateZ(-5px);
}

.lado {
  position: absolute;
  width: 5px;
  border-radius: 3px;
  background: linear-gradient(90deg, #2a231f, #8a817a, #2a231f);
  transform: translateZ(-5px);
}

.lado--acao {
  left: -4px;
  top: 128px;
  height: 34px;
}

.lado--vol1 {
  left: -4px;
  top: 184px;
  height: 60px;
}

.lado--vol2 {
  left: -4px;
  top: 258px;
  height: 60px;
}

.lado--power {
  right: -4px;
  top: 200px;
  height: 96px;
}

.vidro {
  position: relative;
  height: 100%;
  padding: 9px;
  border-radius: 53px;
  background: #0a0807;
  transform: translateZ(0.5px);
}

.tela {
  position: relative;
  width: 300px;
  height: 650px;
  overflow: hidden;
  border-radius: 44px;
  background: var(--papel);
}

.ilha {
  position: absolute;
  top: 18px;
  left: 50%;
  z-index: 4;
  width: 99px;
  height: 29px;
  margin-left: -49.5px;
  border-radius: 15px;
  background: #000;
}

.brilho {
  position: absolute;
  inset: 0;
  z-index: 5;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0) 35%,
    rgba(255, 255, 255, 0.13) 46%,
    rgba(255, 255, 255, 0) 58%
  );
  background-size: 260% 100%;
  background-position: calc(62% - var(--mx, 0) * 34%) 0;
  transition: background-position 0.9s var(--mola);
}

/* As telas do celular, uma sobre a outra: a de antes sai para cima, a nova entra por baixo */
.camada {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(46px) scale(0.97);
  transition:
    opacity 0.55s ease,
    transform 0.7s var(--mola);
}

.camada.ativa {
  opacity: 1;
  transform: none;
}

.camada.saiu {
  transform: translateY(-46px) scale(0.97);
}

/* ---------- O notebook do caixa ---------- */
.notebook {
  --esc: 0.8;
  position: relative;
  flex: none;
  width: 680px;
  zoom: var(--esc);
  transform-style: preserve-3d;
  transform: rotateX(calc(7deg - var(--my, 0) * 5deg)) rotateY(calc(var(--mx, 0) * 9deg))
    scale(var(--esc-t, 1));
  transition: transform 0.9s var(--mola);
}

.nb-tampa {
  position: relative;
  width: 604px;
  margin: 0 auto;
  padding: 14px;
  border: 3px solid #5d544e;
  border-bottom-width: 2px;
  border-radius: 20px 20px 6px 6px;
  background: #0a0807;
}

.nb-camera {
  position: absolute;
  top: 4px;
  left: 50%;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: #2f2824;
}

.nb-tela {
  position: relative;
  width: 570px;
  height: 356px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--farinha);
}

.nb-tampa .brilho {
  border-radius: 18px 18px 4px 4px;
}

.nb-base {
  position: relative;
  width: 680px;
  height: 18px;
  border-radius: 2px 2px 22px 22px / 2px 2px 14px 14px;
  background: linear-gradient(#e2dbd5, #9c938c 45%, #514841);
  box-shadow: 0 30px 50px -18px rgba(34, 26, 22, 0.55);
}

.nb-base span {
  position: absolute;
  top: 0;
  left: 50%;
  width: 116px;
  height: 7px;
  margin-left: -58px;
  border-radius: 0 0 10px 10px;
  background: #8a817a;
}

/* ---------- A impressora térmica do caixa, com a comanda ---------- */
.impressora {
  --esc: 0.9;
  position: relative;
  width: 240px;
  height: 420px;
  zoom: var(--esc);
  transform: scale(var(--esc-t, 1));
  transform-origin: 50% 100%;
}

.imp-corpo {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 128px;
  border-radius: 26px 26px 18px 18px;
  background: linear-gradient(#3b322d, #1c1613);
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.18),
    0 30px 40px -16px rgba(34, 26, 22, 0.55);
}

.imp-tampa {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 8px;
  height: 30px;
  border-radius: 18px 18px 6px 6px;
  background: linear-gradient(#5d544e, #3a322d);
}

.imp-fenda {
  position: absolute;
  left: 26px;
  right: 26px;
  top: 40px;
  z-index: 2;
  height: 7px;
  border-radius: 4px;
  background: #050403;
}

.imp-luz {
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #3ccf6e;
  box-shadow: 0 0 10px #3ccf6e;
}

.impressora.imprimindo .imp-luz {
  animation: luz 0.35s 6 steps(2);
}

@keyframes luz {
  50% {
    background: #1a5c30;
    box-shadow: none;
  }
}

.imp-nome {
  position: absolute;
  left: 24px;
  bottom: 20px;
  color: #c9bfb7;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.02em;
}

/* O papel sai pela fenda, de baixo para cima, uma linha de cada vez */
.imp-saida {
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 84px;
  height: 336px;
  overflow: hidden;
}

.comanda {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 12px 16px;
  background: #fffefb;
  color: #1b1512;
  font-family: ui-monospace, 'Cascadia Mono', Consolas, 'Courier New', monospace;
  font-size: 12px;
  line-height: 1.5;
  white-space: nowrap;
  box-shadow: inset 0 -8px 10px -8px rgba(34, 26, 22, 0.25);
  -webkit-mask:
    conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / 12px 51% repeat-x,
    linear-gradient(#000 0 0) bottom / 100% calc(100% - 6px) no-repeat;
  mask:
    conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / 12px 51% repeat-x,
    linear-gradient(#000 0 0) bottom / 100% calc(100% - 6px) no-repeat;
  transform: translateY(100%);
}

.impressora.imprimindo .comanda {
  transform: none;
  transition: transform 2.3s steps(15, end);
}

.impressora.imprimiu .comanda {
  rotate: -2deg;
  transition:
    transform 2.3s steps(15, end),
    rotate 0.6s var(--pulo);
}

.comanda p {
  overflow: hidden;
  text-overflow: clip;
}

.c-rest {
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.06em;
}

.c-tit {
  margin-top: 2px;
  font-weight: 700;
  font-size: 16px;
  text-align: center;
}

.c-mesa {
  margin: 4px 0;
  padding: 1px 4px;
  background: #1b1512;
  color: #fffefb;
  font-weight: 700;
  font-size: 13px;
  text-align: center;
}

.c-corte {
  height: 0;
  margin: 6px 0;
  border-top: 1.5px dashed #1b1512;
}

.c-pe {
  font-size: 11px;
  text-align: center;
}

/* ---------- Onde cada aparelho fica, em cada passo (no computador) ---------- */
.palco-noite .aparelho {
  --esc: var(--esc-palco, 0.9);
}

.palco-noite .impressora {
  --esc: calc(var(--esc-palco, 0.9) * 0.92);
}

.palco-noite .notebook {
  --esc: var(--esc-nb, 0.85);
}

.palco-noite[data-passo='2'] .aparelho {
  --ry: 12deg;
  --rx: 4deg;
}

.palco-noite[data-passo='3'] .aparelho {
  --ry: -10deg;
  --rx: 7deg;
}

.palco-noite[data-passo='4'] .aparelho,
.palco-noite[data-passo='5'] .aparelho {
  --ry: -18deg;
  --rx: 5deg;
}

.palco-noite[data-passo='6'] .aparelho {
  --ry: 10deg;
  --rx: 5deg;
}

.palco-noite[data-passo='4'] .ator--celular {
  translate: -17% 0;
}

.palco-noite[data-passo='5'] .ator--celular {
  opacity: 0;
  translate: -45% 0;
}

.palco-noite .ator--impressora {
  place-items: end center;
  padding-bottom: 4%;
  opacity: 0;
  translate: 36% 6%;
  pointer-events: none;
}

.palco-noite[data-passo='4'] .ator--impressora {
  opacity: 1;
  translate: 29% 0;
}

.palco-noite .ator--notebook {
  opacity: 0;
  translate: calc(var(--nb-x, 0px) + 12%) 0;
  scale: 0.94;
  transition:
    opacity 0.6s,
    translate 0.9s var(--mola),
    scale 0.9s var(--mola);
}

.palco-noite[data-passo='5'] .ator--notebook {
  opacity: 1;
  translate: var(--nb-x, 0px) 0;
  scale: 1;
}

/* ---------- O que é comum às telas do celular ---------- */
.app {
  position: absolute;
  top: 0;
  left: 0;
  width: 375px;
  height: 812px;
  overflow: hidden;
  zoom: 0.8;
  transform-origin: 0 0;
  background: var(--papel);
  color: var(--chapa);
  font-size: 16px;
}

.app svg,
.desk svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.barra-status {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 54px;
  padding: 4px 30px 0 36px;
  font-weight: 700;
  font-size: 16px;
}

.barra-status--clara {
  color: var(--papel);
}

.status-icones {
  display: flex;
  align-items: center;
  gap: 6px;
}

.app-titulo {
  padding: 8px 20px 0;
  font-family: var(--fonte-titulo);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.pilulas {
  display: flex;
  gap: 8px;
  padding: 12px 20px 0;
}

.pilula {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 18px;
  border: 2px solid var(--chapa);
  border-radius: 999px;
  font-family: var(--fonte-titulo);
  font-weight: 700;
  font-size: 16px;
}

.pilula--on {
  background: var(--chapa);
  color: var(--papel);
}

.abas-baixo {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  height: 88px;
  padding: 8px 6px 0;
  border-top: 1px solid var(--chapa-suave);
  background: var(--papel);
}

.abas-baixo span {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 4px;
  height: 58px;
  padding-top: 8px;
  border-radius: 18px;
  color: var(--fumaca);
  font-weight: 700;
  font-size: 12px;
}

.abas-baixo span.on {
  background: var(--brasa-clara);
  color: var(--chapa);
}

.abas-baixo svg {
  width: 22px;
  height: 22px;
}

.indicador {
  position: absolute;
  bottom: 8px;
  left: 50%;
  z-index: 4;
  width: 134px;
  height: 5px;
  margin-left: -67px;
  border-radius: 3px;
  background: var(--chapa);
}

/* O dedo que toca a tela */
.toque {
  position: absolute;
  z-index: 6;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  border-radius: 50%;
  background: rgba(34, 26, 22, 0.28);
  opacity: 0;
  pointer-events: none;
}

.toque.on {
  animation: toque 0.6s ease-out;
}

@keyframes toque {
  0% {
    opacity: 0.95;
    transform: scale(0.35);
  }
  100% {
    opacity: 0;
    transform: scale(1.5);
  }
}

@keyframes aparece {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
  }
}

@keyframes chega {
  0% {
    opacity: 0;
    transform: translateY(-16px) scale(0.94);
  }
  60% {
    opacity: 1;
  }
}

/* ---------- 1. A página da mesa: o número da mesa em 34 pontos ("Destaque", ADR-006) ---------- */
.m-topo {
  margin-top: -54px;
  padding: 70px 24px 24px;
  border-radius: 0 0 32px 32px;
  background: var(--chapa);
  color: var(--papel);
}

.m-rest {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--fonte-titulo);
  font-weight: 700;
  font-size: 22px;
  line-height: 28px;
}

.m-rest i {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--papel);
  color: var(--chapa);
  font-style: normal;
  font-weight: 800;
  font-size: 16px;
}

.m-mesa {
  margin-top: 12px;
  font-family: var(--fonte-titulo);
  font-size: 34px;
  font-weight: 800;
  line-height: 40px;
  letter-spacing: -0.02em;
}

.m-amb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 6px 14px 6px 10px;
  border: 2px solid var(--contorno-escuro);
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
}

.m-amb svg {
  width: 18px;
  height: 18px;
}

.m-nao {
  margin-top: 10px;
  color: var(--chapa-suave);
  font-size: 15px;
}

.m-corpo {
  padding: 0 20px;
}

.chamada {
  position: relative;
  min-height: 132px;
  margin-top: 22px;
}

.b-chamar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 68px;
  border: 2px solid var(--chapa);
  border-radius: 999px;
  background: var(--brasa);
  font-family: var(--fonte-titulo);
  font-weight: 700;
  font-size: 20px;
}

.b-chamar svg {
  width: 26px;
  height: 26px;
}

.b-chamar--enviando {
  background: var(--brasa-clara);
}

.b-chamar--enviando svg {
  animation: gira 0.8s linear 2;
}

@keyframes gira {
  to {
    transform: rotate(360deg);
  }
}

.ajuda {
  margin-top: 10px;
  color: var(--fumaca);
  font-size: 15px;
  text-align: center;
}

.msg {
  display: flex;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  background: var(--sucesso-fundo);
  box-shadow: inset 4px 0 0 var(--sucesso);
  animation: aparece 0.45s var(--pulo);
}

.msg svg {
  flex: none;
  width: 26px;
  height: 26px;
  color: var(--sucesso);
}

.msg b {
  display: block;
  font-size: 17px;
  line-height: 1.3;
}

.msg span {
  display: block;
  margin-top: 4px;
  color: var(--fumaca);
  font-size: 15px;
}

.b-linha {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 54px;
  margin-top: 4px;
  border: 2px solid var(--chapa);
  border-radius: 999px;
  font-weight: 700;
  font-size: 17px;
}

.b-linha svg {
  width: 22px;
  height: 22px;
}

.m-sub {
  margin-top: 26px;
  font-family: var(--fonte-titulo);
  font-size: 22px;
  font-weight: 800;
}

.m-lista {
  margin-top: 12px;
  overflow: hidden;
  border-radius: 20px;
}

.m-lista li {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 58px;
  margin-bottom: 3px;
  padding: 0 16px 0 20px;
  background: var(--farinha);
  font-weight: 700;
}

.m-lista li span {
  margin-left: auto;
  color: var(--fumaca);
  font-weight: 400;
  font-size: 15px;
}

.m-lista svg {
  width: 20px;
  height: 20px;
}

/* ---------- 2. O cardápio: um lanche com as escolhas ---------- */
.i-voltar {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 44px;
  padding: 0 14px;
  font-weight: 700;
  font-size: 16px;
}

.i-voltar svg {
  width: 22px;
  height: 22px;
}

.i-cabeca {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 20px 0;
}

.i-nome {
  font-family: var(--fonte-titulo);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.i-preco {
  font-family: var(--fonte-titulo);
  font-size: 22px;
  font-weight: 800;
}

.i-desc {
  padding: 6px 20px 0;
  color: var(--fumaca);
  font-size: 15px;
  line-height: 1.4;
}

.i-grupo {
  padding: 16px 20px 0;
}

.i-leg {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-weight: 700;
  font-size: 17px;
}

.i-leg small {
  color: var(--fumaca);
  font-weight: 400;
  font-size: 13px;
}

.ops {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.op {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 14px;
  border: 2px solid var(--borda);
  border-radius: 14px;
  font-weight: 600;
  font-size: 15px;
  transition:
    background-color 0.3s,
    border-color 0.3s;
}

.op.on {
  border-color: var(--chapa);
  background: var(--brasa-clara);
}

.op-marca {
  display: grid;
  place-items: center;
  flex: none;
  width: 22px;
  height: 22px;
  border: 2px solid var(--chapa);
  transition:
    background-color 0.25s,
    transform 0.4s var(--pulo);
}

.op-marca--radio {
  border-radius: 50%;
}

.op-marca--caixa {
  border-radius: 6px;
}

.op-marca svg {
  width: 14px;
  height: 14px;
  stroke-width: 3;
  opacity: 0;
}

.op.on .op-marca {
  background: var(--chapa);
  color: var(--papel);
  transform: scale(1.1);
}

.op.on .op-marca svg {
  opacity: 1;
}

.op-preco {
  margin-left: auto;
  color: var(--fumaca);
  font-size: 14px;
}

.tirar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.ch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 36px;
  padding: 0 12px;
  border: 2px solid var(--borda);
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  transition:
    background-color 0.25s,
    color 0.25s;
}

.ch svg {
  display: none;
  width: 14px;
  height: 14px;
  stroke-width: 3;
}

.ch.on {
  border-color: var(--chapa);
  background: var(--chapa);
  color: var(--papel);
}

.ch.on svg {
  display: block;
}

.i-barra {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 12px 16px 30px;
  border-top: 1px solid var(--chapa-suave);
  background: var(--papel);
}

.i-add {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 22px;
  border: 2px solid var(--chapa);
  border-radius: 999px;
  background: var(--brasa);
  font-family: var(--fonte-titulo);
  font-weight: 700;
  font-size: 18px;
}

.i-total {
  font-variant-numeric: tabular-nums;
}

.i-pronto {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 112px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 20px;
  background: var(--chapa);
  color: var(--papel);
  box-shadow: 0 14px 30px -10px rgba(34, 26, 22, 0.55);
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.3s,
    transform 0.5s var(--pulo);
}

.i-pronto svg {
  flex: none;
  width: 26px;
  height: 26px;
  padding: 4px;
  border-radius: 50%;
  background: var(--brasa);
  color: var(--chapa);
  stroke-width: 3;
}

.i-pronto b {
  display: block;
  font-size: 15px;
}

.i-pronto span span,
.i-pronto span {
  font-size: 13px;
  color: var(--chapa-suave);
}

.i-pronto b {
  color: var(--papel);
}

.app--item.adicionado .i-pronto {
  opacity: 1;
  transform: none;
}

/* ---------- 3. O Salão ---------- */
.cartao {
  margin: 16px 12px 0;
  padding: 18px 16px 16px;
  border-radius: 22px;
  background: var(--farinha);
}

.cartao-topo {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.cartao-topo b {
  font-family: var(--fonte-titulo);
  font-size: 20px;
}

.cartao-topo span {
  color: var(--fumaca);
  font-size: 14px;
}

.mesas {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.mesa {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  height: 52px;
  border-radius: 12px;
  line-height: 1;
  transition:
    background-color 0.4s,
    color 0.4s,
    box-shadow 0.4s;
}

.mesa .n {
  font-family: var(--fonte-titulo);
  font-weight: 800;
  font-size: 20px;
}

.mesa small {
  margin-top: 3px;
  font-weight: 700;
  font-size: 11px;
}

.mesa svg {
  width: 20px;
  height: 20px;
}

.mesa[data-k='o'] {
  background: var(--chapa);
  color: var(--papel);
}

.mesa[data-k='l'] {
  background: var(--papel);
  box-shadow: inset 0 0 0 2px var(--borda);
}

.mesa[data-k='c'],
.mesa[data-k='p'],
.mesa[data-k='s'] {
  background: var(--brasa-clara);
  box-shadow: inset 0 0 0 3px var(--chapa);
}

.mesa[data-k='c'] .n,
.mesa[data-k='p'] .n,
.mesa[data-k='s'] .n {
  margin-top: 3px;
  font-size: 11px;
  font-weight: 700;
}

/* O sino balança duas vezes e para (desenho.md, seção 4) */
.mesa[data-k='c'] svg,
.aviso.on .aviso-bola svg {
  transform-origin: 50% 10%;
  animation: sino 1.1s ease-in-out 2;
}

.mesa[data-k='c']::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  animation: onda 1.1s ease-out 2;
}

.mesa.mudou {
  animation: pulo 0.5s var(--pulo);
}

@keyframes sino {
  0%,
  50%,
  100% {
    transform: rotate(0);
  }
  10% {
    transform: rotate(16deg);
  }
  20% {
    transform: rotate(-14deg);
  }
  30% {
    transform: rotate(10deg);
  }
  40% {
    transform: rotate(-6deg);
  }
}

@keyframes onda {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 107, 44, 0.75);
  }
  100% {
    box-shadow: 0 0 0 10px rgba(255, 107, 44, 0);
  }
}

@keyframes pulo {
  0% {
    transform: scale(0.8);
  }
  100% {
    transform: scale(1);
  }
}

.legenda {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 14px;
  color: var(--fumaca);
  font-size: 13px;
}

.legenda span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.legenda svg {
  width: 15px;
  height: 15px;
}

.legenda .q {
  width: 13px;
  height: 13px;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1.5px var(--borda);
}

.legenda .q--o {
  background: var(--chapa);
  box-shadow: none;
}

.dica-app {
  margin: 18px 20px 0;
  color: var(--fumaca);
  font-size: 15px;
  line-height: 1.4;
}

.aviso {
  position: absolute;
  top: 56px;
  left: 12px;
  right: 12px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 20px;
  background: var(--chapa);
  color: var(--papel);
  box-shadow: 0 14px 30px -10px rgba(34, 26, 22, 0.55);
  opacity: 0;
  transform: translateY(-140%);
  transition:
    transform 0.5s var(--pulo),
    opacity 0.3s;
}

.aviso.on {
  opacity: 1;
  transform: translateY(0);
}

.aviso-bola {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brasa);
  color: var(--chapa);
}

.aviso-bola svg {
  width: 22px;
  height: 22px;
}

.aviso-txt {
  display: grid;
  flex: 1;
  line-height: 1.25;
}

.aviso-txt b {
  font-size: 15px;
}

.aviso-txt small {
  color: var(--chapa-suave);
  font-size: 13px;
}

.aviso-botao {
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--brasa);
  color: var(--chapa);
  font-weight: 700;
  font-size: 13px;
}

/* ---------- 4. Os pedidos ---------- */
.sit--confirmar {
  --sit: #1f5fa8;
  --sit-fundo: #e6eef9;
}

.sit--preparo {
  --sit: #8a5a00;
  --sit-fundo: #fbefd5;
}

.sit--pronto {
  --sit: #1e6b34;
  --sit-fundo: #e7f3ea;
}

.sit--rua {
  --sit: #5b3fa0;
  --sit-fundo: #eeeaf8;
}

.p-titulo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: 16px;
}

.p-novo {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 40px;
  margin-top: 8px;
  padding: 0 14px;
  border: 2px solid var(--chapa);
  border-radius: 999px;
  background: var(--brasa);
  font-weight: 700;
  font-size: 14px;
}

.p-novo svg {
  width: 18px;
  height: 18px;
}

.p-cont {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 14px 12px 0;
}

.p-cont span {
  display: grid;
  padding: 8px 12px;
  border-radius: 16px;
  background: var(--sit-fundo);
  color: var(--sit);
  font-weight: 700;
  font-size: 13px;
}

.p-cont b {
  color: var(--chapa);
  font-family: var(--fonte-titulo);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.15;
}

.p-col {
  margin: 14px 12px 0;
}

.p-cab {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--fonte-titulo);
  font-size: 19px;
  font-weight: 800;
}

.p-cab i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--sit);
}

.p-expl {
  margin-top: 2px;
  color: var(--fumaca);
  font-size: 13px;
  line-height: 1.35;
}

.p-lugar {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.p-cartao {
  padding: 12px 14px;
  border: 2px solid var(--chapa-suave);
  border-radius: 18px;
  background: var(--papel);
}

.p-cartao--novo {
  border-color: var(--chapa);
}

.p-cartao.chegou {
  box-shadow: 0 0 0 4px #e6eef9;
  animation: chega 0.6s var(--pulo);
}

.p-cartao.entrou {
  box-shadow: 0 0 0 4px #fbefd5;
  animation: chega 0.6s var(--pulo);
}

.p-linha1 {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.p-linha1 b {
  font-size: 16px;
}

.p-linha1 span,
.p-num {
  color: var(--fumaca);
  font-size: 13px;
}

.p-itens {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.35;
}

.p-itens small {
  display: block;
  color: var(--fumaca);
  font-size: 12.5px;
}

.p-pe {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.p-pe b {
  font-family: var(--fonte-titulo);
  font-size: 17px;
}

.p-confirmar {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 16px;
  border: 2px solid var(--chapa);
  border-radius: 999px;
  background: var(--brasa);
  font-weight: 700;
  font-size: 14px;
  transition: background-color 0.2s;
}

.p-confirmar.ok {
  border-color: var(--sucesso);
  background: var(--sucesso-fundo);
  color: var(--sucesso);
}

.p-feito {
  color: var(--sucesso);
  font-weight: 700;
  font-size: 13px;
}

.p-vazio {
  padding: 10px 14px;
  border: 2px dashed var(--chapa-suave);
  border-radius: 18px;
  color: var(--fumaca);
  font-size: 14px;
}

/* ---------- 5. O delivery, no computador do caixa (960 por 600, reduzido) ---------- */
.desk {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  width: 960px;
  height: 600px;
  overflow: hidden;
  zoom: 0.59375;
  transform-origin: 0 0;
  background: var(--farinha);
  color: var(--chapa);
  font-size: 16px;
}

.d-menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 12px;
  border-right: 1px solid var(--chapa-suave);
  background: var(--papel);
}

.d-marca {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-family: var(--fonte-titulo);
  font-weight: 800;
  font-size: 15px;
}

.d-marca svg {
  width: 28px;
  height: 28px;
  stroke: none;
}

.d-marca svg circle {
  stroke: #221a16;
}

.d-novo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  margin-bottom: 10px;
  border: 2px solid var(--chapa);
  border-radius: 999px;
  background: var(--brasa);
  font-weight: 700;
  font-size: 14px;
}

.d-novo svg,
.d-item svg {
  width: 18px;
  height: 18px;
}

.d-item {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding: 0 12px;
  border-radius: 12px;
  color: var(--fumaca);
  font-weight: 600;
}

.d-item.on {
  background: var(--brasa-clara);
  color: var(--chapa);
}

.d-quem {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  font-weight: 600;
  font-size: 13px;
}

.d-quem i {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--chapa);
  color: var(--papel);
  font-style: normal;
  font-weight: 800;
}

.d-corpo {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 16px 18px 0;
}

.d-titulo {
  font-family: var(--fonte-titulo);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.d-resumo {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.d-resumo > div {
  display: grid;
  gap: 1px;
  padding: 10px 12px;
  border-radius: 16px;
  background: var(--papel);
}

.d-resumo span,
.d-resumo small {
  color: var(--fumaca);
  font-size: 13.5px;
  line-height: 1.3;
}

.d-resumo b {
  font-family: var(--fonte-titulo);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
}

.d-resumo .mudou {
  animation: chega 0.6s var(--pulo);
  box-shadow: 0 0 0 3px #eeeaf8;
}

.sit-rua {
  color: #5b3fa0;
}

.sit-livre {
  color: var(--sucesso);
}

.d-colunas {
  display: grid;
  flex: 1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  min-height: 0;
  margin-top: 12px;
}

.d-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.6);
}

/* Os títulos das colunas com a mesma altura, mesmo o "Saiu para entrega", que quebra a linha */
.d-cab {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  color: var(--chapa);
  font-family: var(--fonte-titulo);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.15;
}

.d-cab i {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sit);
}

.d-n {
  margin-left: auto;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--sit-fundo);
  color: var(--sit);
  font-size: 13px;
}

.d-lista {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 8px;
}

.d-cartao {
  padding: 10px 12px;
  border: 2px solid transparent;
  border-radius: 14px;
  background: var(--papel);
  box-shadow: 0 1px 0 rgba(34, 26, 22, 0.08);
}

.d-cartao.chegou {
  border-color: #1f5fa8;
  animation: chega 0.6s var(--pulo);
}

.d-cartao.entrou {
  border-color: var(--chapa-suave);
  animation: chega 0.6s var(--pulo);
}

/* O número do pedido numa linha e, embaixo, de onde ele é */
.d-l1 {
  display: grid;
  min-width: 0;
}

.d-l1 b {
  font-size: 16px;
  white-space: nowrap;
}

.d-l1 span {
  min-width: 0;
  overflow: hidden;
  color: var(--fumaca);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.d-it {
  margin-top: 4px;
  color: var(--fumaca);
  font-size: 13.5px;
  line-height: 1.3;
}

.d-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 11.5px;
}

.d-tag svg {
  width: 12px;
  height: 12px;
  stroke-width: 3;
}

.d-tag--pix {
  background: var(--sucesso-fundo);
  color: var(--sucesso);
}

/* O valor e, embaixo dele, o botão da coluna, do tamanho do cartão */
.d-pe {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 8px;
}

.d-pe b {
  font-family: var(--fonte-titulo);
  font-size: 17px;
  white-space: nowrap;
}

.d-acao {
  flex: 1 1 100%;
  padding: 3px 10px;
  text-align: center;
  border: 2px solid var(--chapa);
  border-radius: 999px;
  font-weight: 700;
  font-size: 13.5px;
  white-space: nowrap;
}

.d-acao--pri {
  background: var(--brasa);
}

.d-tempo {
  color: var(--fumaca);
  font-size: 12px;
}

.d-vazio {
  padding: 10px;
  border: 2px dashed var(--chapa-suave);
  border-radius: 14px;
  color: var(--fumaca);
  font-size: 12.5px;
}

.d-imp {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 0 12px;
  color: var(--fumaca);
  font-size: 12.5px;
}

.d-imp svg {
  width: 16px;
  height: 16px;
  color: var(--sucesso);
}

/* O ponteiro do mouse de quem está no caixa */
.cursor {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 6;
  width: 22px;
  height: 30px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 30'%3E%3Cpath d='M2 2v22l6-6 4 9 4-2-4-9h8z' fill='%23221a16' stroke='%23fff' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E")
    no-repeat;
  transform: translate(760px, 470px);
  transition: transform 0.7s var(--mola);
}

.cursor.clique::after {
  content: '';
  position: absolute;
  top: -14px;
  left: -14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 107, 44, 0.45);
  animation: toque 0.5s ease-out forwards;
}

/* ---------- 6. Os números da noite ---------- */
.n-cartao {
  position: relative;
  margin: 14px 12px 0;
  padding: 18px 20px 14px;
  border-radius: 24px;
  background: var(--farinha);
}

.n-rot {
  color: var(--fumaca);
  font-size: 16px;
}

.vendido {
  display: block;
  margin-top: 2px;
  font-family: var(--fonte-titulo);
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.n-sobe {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  color: var(--sucesso);
  font-weight: 700;
  font-size: 16px;
}

.n-sobe svg {
  width: 18px;
  height: 18px;
}

.grafico {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 116px;
  margin-top: 14px;
}

.barra {
  flex: 1;
  height: var(--h);
  border-radius: 8px 8px 3px 3px;
  background: var(--chapa);
  transform-origin: bottom;
  transition: transform 0.9s var(--mola);
  transition-delay: calc(var(--i) * 80ms);
}

.barra:last-child {
  background: var(--brasa);
}

.app--numeros:not(.ativo) .barra {
  transform: scaleY(0);
}

.eixo {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  color: var(--fumaca);
  font-family: var(--fonte-titulo);
  font-size: 13px;
}

.n-grade {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 10px 12px 0;
}

.n-grade div,
.n-entregas {
  padding: 12px 16px;
  border-radius: 20px;
  background: var(--farinha);
  transition:
    opacity 0.5s,
    transform 0.6s var(--pulo);
  transition-delay: calc(1s + var(--i) * 110ms);
}

.app--numeros:not(.ativo) .n-grade div,
.app--numeros:not(.ativo) .n-entregas {
  opacity: 0;
  transform: translateY(12px);
}

.n-grade span {
  display: block;
  color: var(--fumaca);
  font-size: 14px;
}

.n-grade b {
  display: block;
  font-family: var(--fonte-titulo);
  font-size: 24px;
  font-weight: 800;
}

.n-entregas {
  margin: 10px 12px 0;
}

.n-entregas p {
  font-family: var(--fonte-titulo);
  font-size: 18px;
  font-weight: 800;
}

.n-entregas small {
  color: var(--fumaca);
  font-family: var(--fonte-texto);
  font-size: 13px;
  font-weight: 400;
}

.n-entregas div {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 15px;
}

.n-entregas b {
  font-family: var(--fonte-titulo);
}

/* ---------- Exemplo de assinatura: os passos deslizam e o cardápio é lido ---------- */
.pagina .faixa.desliza {
  animation: desliza 0.5s var(--mola);
}

.pagina .faixa.desliza--tras {
  animation-name: desliza-tras;
}

@keyframes desliza {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
}

@keyframes desliza-tras {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
}

.lendo {
  display: grid;
  justify-items: center;
  gap: 1rem;
}

.foto-cardapio {
  position: relative;
  width: min(100%, 22rem);
  padding: 1.5rem 1.75rem;
  overflow: hidden;
  border-radius: 0.5rem;
  background: #fbf6ec;
  color: #3a2e28;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1rem;
  box-shadow: 0 18px 30px -16px rgba(34, 26, 22, 0.5);
  rotate: -2deg;
}

.foto-cardapio p {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.25rem 0;
  border-bottom: 1px dotted #c9bfb7;
}

.foto-cardapio .fc-titulo {
  justify-content: center;
  margin-top: 0.5rem;
  border: 0;
  font-weight: 700;
  font-size: 1.25rem;
  font-style: italic;
}

.fc-etiqueta {
  padding: 0 0.375rem;
  background: #ffe066;
  rotate: 4deg;
}

.fc-linha {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: var(--brasa);
  box-shadow: 0 0 18px 6px rgba(255, 107, 44, 0.55);
  animation: ler 1.7s ease-in-out forwards;
}

@keyframes ler {
  0% {
    top: 0;
  }
  100% {
    top: 100%;
  }
}

.lendo-texto {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
}

.leitura li {
  animation: aparece 0.5s calc(var(--i, 0) * 80ms) var(--pulo) backwards;
}

/* ---------- Menos movimento: tudo no lugar, sem animação (CA-A8) ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .abertura h1 em {
    background-size: 100% 0.32em;
  }

  .aparelho,
  .notebook {
    --mx: 0 !important;
    --my: 0 !important;
  }
}
