/* =====================================================================
   BC Fichas — site.css
   Composição: a página é uma tira de fichas. Seções em preto, papel e
   verde, separadas pela serrilha do corte; os exemplos de ficha seguem
   os modelos reais do sistema (letras grandes em caixa alta, linha
   "BC-FICHAS FONE" no pé).
   ===================================================================== */

@font-face {
  font-family: "Mona Sans";
  src: url("../fonts/mona-sans-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;

  /* cores */
  --preto: #070a08;
  --preto-2: #0e1410;
  --preto-3: #161f19;
  --fio-escuro: #27322b;
  --verde: #22c55e;
  --verde-vivo: #3ddc77;
  --verde-fundo: #127a38;
  --papel: #f1f3ef;
  --branco: #ffffff;
  --fio-claro: #cfd6cf;
  --tinta: #0a0e0b;
  --tinta-2: #333d36;
  --apagado: #5a665e;
  --claro: #edf2ee;
  --claro-2: #a3afa7;

  /* letras */
  --f-texto: "Mona Sans", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --f-ficha: Arial, "Liberation Sans", "Helvetica Neue", Helvetica, sans-serif;

  /* medidas */
  --margem: clamp(16px, 4.6vw, 48px);
  --largura: 1200px;
  --vao: clamp(72px, 9vw, 132px);
  --raio: 22px;
  --topo: 64px;
  --dente: 8px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topo) + 12px);
}
body {
  margin: 0;
  background: var(--preto);
  color: var(--claro);
  font-family: var(--f-texto);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 420;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
a[href^="tel:"] { white-space: nowrap; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, fieldset, hr { margin: 0; }
:where(ul[role="list"], ol[role="list"]) { list-style: none; padding: 0; }
fieldset { border: 0; padding: 0; min-width: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--verde); color: var(--preto); }

:focus-visible { outline: 3px solid var(--verde-vivo); outline-offset: 3px; border-radius: 4px; }
.faixa--verde :focus-visible, .faixa--papel :focus-visible, .faixa--branco :focus-visible, .ficha-form :focus-visible { outline-color: var(--tinta); }

.icones { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 1.25em; height: 1.25em; flex: none; }

.pular {
  position: fixed; left: 12px; top: 12px; z-index: 100;
  padding: 12px 16px; background: var(--verde); color: var(--preto); font-weight: 700; text-decoration: none; border-radius: 8px;
  transform: translateY(-200%);
}
.pular:focus { transform: none; }

.miolo {
  width: 100%;
  max-width: calc(var(--largura) + 2 * var(--margem));
  margin-inline: auto;
  padding-left: max(var(--margem), env(safe-area-inset-left, 0px));
  padding-right: max(var(--margem), env(safe-area-inset-right, 0px));
}

.heroi__grade, .anatomia, .passos, .monte, .controle, .duvidas, .pedido, .rodape__grade { grid-template-columns: minmax(0, 1fr); }

/* ---------- Letras ---------- */
h1, h2 {
  font-weight: 800;
  font-stretch: 112%;
  letter-spacing: -0.022em;
  line-height: 1.04;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 1.25rem + 4.9vw, 4.6rem); }
h2 { font-size: clamp(1.8rem, 1.2rem + 2.7vw, 3.2rem); }
h3 { font-size: 1.1875rem; font-weight: 750; font-stretch: 106%; letter-spacing: -0.01em; line-height: 1.25; }
h4 { font-size: 1.125rem; font-weight: 750; font-stretch: 106%; letter-spacing: -0.01em; line-height: 1.25; }
p { text-wrap: pretty; }
.lide { font-size: clamp(1.0625rem, 1rem + 0.45vw, 1.3125rem); line-height: 1.5; max-width: 52ch; }
.realce { color: var(--verde); }

/* rótulo de seção: o tracejado é o picote da ficha */
.rotulo {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.8125rem; font-weight: 680; font-stretch: 108%; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--verde);
}
.rotulo::before { content: ""; flex: none; width: 28px; border-top: 2px dashed currentColor; }

.nota { font-size: 0.875rem; color: var(--apagado); max-width: 70ch; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 20px;
  border: 2px solid transparent; border-radius: 12px;
  font-weight: 720; font-stretch: 104%; font-size: 1rem; line-height: 1.1; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.btn--g { min-height: 58px; padding: 0 26px; font-size: 1.0625rem; border-radius: 14px; }
.btn--zap { background: var(--verde); color: var(--preto); }
.btn--zap:hover { background: var(--verde-vivo); }
.btn--zap:active { transform: translateY(1px); }
.btn--linha { border-color: var(--fio-escuro); color: var(--claro); background: transparent; }
.btn--linha:hover { border-color: var(--claro-2); }
.btn--tinta { background: var(--tinta); color: var(--branco); }
.btn--tinta:hover { background: #1d2821; }
.btn--borda { border-color: var(--tinta); color: var(--tinta); background: transparent; }
.btn--borda:hover { background: var(--papel); }

/* ---------- Cabeçalho ---------- */
.topo {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40;
  background: rgba(7, 10, 8, 0.9);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--fio-escuro);
}
.topo__linha { display: flex; align-items: center; gap: 24px; min-height: var(--topo); }
.marca { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--branco); }
.marca__simbolo { flex: none; width: 34px; height: 34px; color: var(--verde); }
.marca__nome { font-weight: 850; font-stretch: 118%; font-size: 1.25rem; letter-spacing: -0.02em; white-space: nowrap; }
.topo__nav { display: flex; gap: 4px; margin-left: auto; }
.topo__nav a {
  padding: 10px 11px; border-radius: 8px;
  font-size: 0.9375rem; font-weight: 560; color: var(--claro-2); text-decoration: none; white-space: nowrap;
  transition: color .15s ease;
}
.topo__nav a:hover { color: var(--branco); }
.topo__cta, .topo__zap { min-height: 44px; padding: 0 16px; font-size: 0.9375rem; }
.topo__zap .i, .pedido__direto .btn .i { color: var(--verde); }
.topo__cta + .topo__zap { margin-left: -12px; }

.menu { display: none; }
.menu__botao {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  border: 2px solid var(--fio-escuro); border-radius: 12px; font-weight: 700; font-size: 0.9375rem; cursor: pointer;
  list-style: none; user-select: none;
}
.menu__botao::-webkit-details-marker { display: none; }
.menu[open] .menu__botao { background: var(--claro); color: var(--preto); border-color: var(--claro); }
.menu__painel {
  position: absolute; left: 0; right: 0; top: 100%;
  display: grid; padding: 8px max(var(--margem), env(safe-area-inset-right, 0px)) 18px max(var(--margem), env(safe-area-inset-left, 0px));
  max-height: calc(100vh - var(--topo)); max-height: calc(100dvh - var(--topo)); overflow-y: auto; overscroll-behavior: contain;
  background: var(--preto-2); border-bottom: 1px solid var(--fio-escuro);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}
.menu__painel a {
  display: flex; align-items: center; gap: 10px; min-height: 52px;
  border-bottom: 1px dashed var(--fio-escuro);
  font-size: 1.125rem; font-weight: 650; text-decoration: none;
}
.menu__painel a:last-child { border-bottom: 0; }
.menu__painel .menu__destaque { color: var(--verde); }

/* A navegação completa só aparece quando cabe inteira (1240 px ou mais).
   Abaixo disso entra o menu compacto: nunca fica uma largura sem menu de seções. */
@media (max-width: 1239px) {
  .topo__nav { display: none; }
  .topo__cta { margin-left: auto; }
  .menu { display: block; }
  .topo__linha { gap: 12px; }
}
/* entre 1240 e 1359 px a navegação completa cabe com espaços um pouco menores */
@media (min-width: 1240px) and (max-width: 1359px) {
  .topo__linha { gap: 16px; }
  .topo__nav { gap: 2px; }
  .topo__nav a { padding: 10px 9px; }
  .topo__cta, .topo__zap { padding: 0 14px; }
}
@media (max-width: 799px) {
  :root { --topo: 58px; }
  .topo__cta, .topo__zap { display: none; }
  .menu { margin-left: auto; }
  .marca__simbolo { width: 30px; height: 30px; }
  .marca__nome { font-size: 1.125rem; }
}

/* ---------- Início ---------- */
.heroi { position: relative; padding-block: clamp(28px, 5vw, 72px) clamp(40px, 5vw, 64px); overflow: clip; }
.heroi__grade { display: grid; gap: clamp(36px, 6vw, 64px); align-items: center; }
.heroi__texto { display: grid; gap: 22px; justify-items: start; min-width: 0; }
.heroi__texto .lide { color: var(--claro-2); }
.acoes { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.heroi__contato { font-size: 0.9375rem; color: var(--claro-2); }
.heroi__contato a { color: var(--claro); font-weight: 650; text-decoration: none; white-space: nowrap; }
.heroi__contato a:hover { text-decoration: underline; }

@media (min-width: 1000px) {
  .heroi__grade { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); }
}
@media (max-width: 519px) {
  .acoes { display: grid; width: 100%; }
}
/* no celular e no tablet a máquina vem logo depois do título */
@media (max-width: 999px) {
  .heroi__grade { gap: 0; }
  .heroi__texto { display: contents; }
  .heroi__texto > .rotulo { order: 1; }
  .heroi__texto > h1 { order: 2; margin-top: 16px; }
  .heroi__texto > .lide { order: 3; margin-top: 14px; }
  .heroi__visual { order: 4; margin-block: 10px 28px; }
  .heroi__texto > .acoes { order: 5; }
  .heroi__texto > .heroi__contato { order: 6; margin-top: 18px; }
}

/* o bilhete verde: palco da máquina em cima, canhoto destacável embaixo */
.heroi__visual { min-width: 0; }
.bilhete { --furo: 13px; position: relative; max-width: 640px; margin-inline: auto; }
.bilhete__palco { position: relative; display: grid; }
.bilhete__topo {
  grid-area: 1 / 1; margin-top: 9%;
  background: var(--verde);
  background-image: radial-gradient(120% 90% at 30% 20%, #4ade80 0%, rgba(74, 222, 128, 0) 60%);
  border-radius: var(--raio) var(--raio) 0 0;
  -webkit-mask: radial-gradient(circle var(--furo) at 0 100%, #0000 calc(var(--furo) - 0.5px), #000 var(--furo)),
    radial-gradient(circle var(--furo) at 100% 100%, #0000 calc(var(--furo) - 0.5px), #000 var(--furo));
  -webkit-mask-composite: source-in;
  mask: radial-gradient(circle var(--furo) at 0 100%, #0000 calc(var(--furo) - 0.5px), #000 var(--furo)),
    radial-gradient(circle var(--furo) at 100% 100%, #0000 calc(var(--furo) - 0.5px), #000 var(--furo));
  mask-composite: intersect;
}
.heroi__foto { grid-area: 1 / 1; position: relative; width: 100%; padding: 0 1% 2%; }
.heroi__ficha {
  position: absolute; left: -2.5%; bottom: 7%; width: 37%;
  rotate: -7deg;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
  animation: pousar .7s cubic-bezier(.2, .9, .25, 1.15) .25s backwards;
}
@keyframes pousar { from { transform: translateY(-26px) rotate(-7deg); opacity: 0; } }

.bilhete__canhoto {
  position: relative;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 20px 10px 22px;
  background: var(--verde); color: var(--preto);
  border-radius: 0 0 var(--raio) var(--raio);
  -webkit-mask: radial-gradient(circle var(--furo) at 0 0, #0000 calc(var(--furo) - 0.5px), #000 var(--furo)),
    radial-gradient(circle var(--furo) at 100% 0, #0000 calc(var(--furo) - 0.5px), #000 var(--furo));
  -webkit-mask-composite: source-in;
  mask: radial-gradient(circle var(--furo) at 0 0, #0000 calc(var(--furo) - 0.5px), #000 var(--furo)),
    radial-gradient(circle var(--furo) at 100% 0, #0000 calc(var(--furo) - 0.5px), #000 var(--furo));
  mask-composite: intersect;
}
.bilhete__canhoto::before {
  content: ""; position: absolute; top: -1px; left: calc(var(--furo) + 8px); right: calc(var(--furo) + 8px);
  border-top: 2px dashed rgba(7, 10, 8, 0.45);
}
.bilhete__canhoto li {
  padding: 2px 12px; text-align: center;
  font-size: clamp(0.75rem, 0.62rem + 0.5vw, 0.9375rem); line-height: 1.25; font-weight: 520;
}
.bilhete__canhoto li + li { border-left: 2px dashed rgba(7, 10, 8, 0.3); }
/* item só com o título (sem a segunda linha) fica centralizado na altura dos outros */
@media (min-width: 560px) { .bilhete__canhoto li { display: grid; align-content: center; } }
.bilhete__canhoto b { display: block; font-weight: 850; font-stretch: 108%; text-transform: uppercase; letter-spacing: 0.01em; }
@media (max-width: 559px) {
  .bilhete__canhoto { grid-template-columns: minmax(0, 1fr); padding: 14px 22px 12px; }
  .bilhete__canhoto li { padding: 9px 0; font-size: 0.9375rem; }
  .bilhete__canhoto li + li { border-left: 0; border-top: 2px dashed rgba(7, 10, 8, 0.3); }
  .bilhete__canhoto b { display: inline; }
}

/* ---------- Como alugar ---------- */
.alugar { position: relative; background: var(--preto); padding-bottom: clamp(56px, 7vw, 96px); }
.alugar__c { display: grid; gap: 24px; padding-top: clamp(28px, 4vw, 40px); border-top: 2px dashed var(--fio-escuro); }
.alugar__t { font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.125rem); }
.alugar__passos { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px 32px; }
.alugar__passos li { display: flex; gap: 14px; align-items: flex-start; }
.alugar__passos h3 { padding-top: 5px; margin-bottom: 4px; }
.alugar__passos p { color: var(--claro-2); font-size: 1rem; }
@media (min-width: 860px) { .alugar__passos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Faixas (seções) ---------- */
.faixa { position: relative; padding-block: var(--vao); }
.faixa--preto { background: var(--preto); color: var(--claro); }
.faixa--papel { background: var(--papel); color: var(--tinta); }
.faixa--branco { background: var(--branco); color: var(--tinta); }
.faixa--verde { background: var(--verde); color: var(--preto); }
.faixa--final { padding-bottom: calc(var(--vao) * 0.8); }

.faixa--papel .rotulo, .faixa--branco .rotulo { color: var(--verde-fundo); }
.faixa--verde .rotulo { color: var(--preto); }
.faixa--papel .lide, .faixa--branco .lide { color: var(--tinta-2); }
.faixa--preto .lide { color: var(--claro-2); }
.faixa--preto .nota { color: var(--claro-2); }

/* serrilha: a borda do papel cortado na impressora */
.dente-cima::before, .dente-baixo::after {
  content: ""; position: absolute; left: 0; right: 0; height: var(--dente); z-index: 2;
  background: inherit; pointer-events: none;
}
.dente-cima::before {
  top: calc(1px - var(--dente));
  -webkit-mask: conic-gradient(from 135deg at 50% 0, #000 90deg, #0000 0) 50% 0 / calc(var(--dente) * 2) 100% repeat-x;
  mask: conic-gradient(from 135deg at 50% 0, #000 90deg, #0000 0) 50% 0 / calc(var(--dente) * 2) 100% repeat-x;
}
.dente-baixo::after {
  bottom: calc(1px - var(--dente));
  -webkit-mask: conic-gradient(from -45deg at 50% 100%, #000 90deg, #0000 0) 50% 0 / calc(var(--dente) * 2) 100% repeat-x;
  mask: conic-gradient(from -45deg at 50% 100%, #000 90deg, #0000 0) 50% 0 / calc(var(--dente) * 2) 100% repeat-x;
}

.cabeca { display: grid; gap: 18px; justify-items: start; margin-bottom: clamp(36px, 5vw, 60px); }
.cabeca h2 { max-width: 20ch; }

/* ---------- A máquina ---------- */
.anatomia { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; }
.anatomia__foto { position: relative; max-width: 620px; width: 100%; margin-inline: auto; }
.marco {
  display: grid; place-items: center; flex: none;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--verde); color: var(--preto);
  font-weight: 850; font-size: 1rem; font-variant-numeric: tabular-nums; line-height: 1;
}
.anatomia__foto .marco {
  position: absolute; left: var(--x); top: var(--y); translate: -50% -50%;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.92), 0 8px 18px rgba(0, 0, 0, 0.45);
  transition: scale .2s ease;
}
.anatomia__foto .marco.ativo { scale: 1.25; }
.anatomia__lista { display: grid; gap: 4px; }
.anatomia__lista li {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px 0; border-top: 2px dashed var(--fio-claro);
}
.anatomia__lista li:last-child { border-bottom: 2px dashed var(--fio-claro); }
.anatomia__lista h3 { margin-bottom: 4px; padding-top: 5px; }
.anatomia__lista p { color: var(--tinta-2); }

.anatomia__lado { display: grid; gap: 22px; min-width: 0; }
.foto__lupa {
  position: absolute; right: 8px; top: 8px; width: 34px; height: 34px; padding: 7px; border-radius: 50%;
  background: rgba(7, 10, 8, 0.78); color: var(--branco);
}
@media (min-width: 1000px) {
  .anatomia { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
}

.fatos {
  display: grid; gap: 14px; margin-top: clamp(40px, 6vw, 72px);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.fatos li { padding: 22px 22px 24px; background: var(--branco); border-radius: 16px; }
.fatos h3 { margin-bottom: 6px; }
.fatos p { color: var(--tinta-2); font-size: 1rem; }
.fatos--verde li { background: rgba(7, 10, 8, 0.1); }
.fatos--verde p { color: var(--tinta); }


/* ---------- Como usar no evento ---------- */
.passos { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 640px) { .passos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .passos { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.passo {
  display: grid; grid-template-rows: auto 1fr; overflow: hidden;
  background: var(--preto-2); border: 1px solid var(--fio-escuro); border-radius: 18px;
}
.passo__img {
  position: relative; display: grid; place-items: center; overflow: hidden;
  aspect-ratio: 16 / 10.5; background: radial-gradient(100% 100% at 50% 0%, #17231c 0%, #0a0f0c 100%);
}
.passo__img--tela img { width: 88%; border-radius: 6px; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06); transition: scale .3s ease; }
a.passo__img:hover img { scale: 1.03; }
/* a tira de fichas aparece inteira e reta dentro do quadro: duas fichas do mesmo modelo, com o mesmo tamanho de letra */
.tira { width: 66%; filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.5)); }
.tira .ficha + .ficha { border-top: 2px dashed #9aa39c; }
/* destaque abaixo dos passos: a tela de venda com imagens nos botões */
.destaque {
  display: grid; grid-template-columns: minmax(0, 1fr); overflow: hidden; margin-top: 16px;
  background: var(--preto-2); border: 1px solid var(--fio-escuro); border-radius: 18px;
}
.destaque__texto { display: grid; gap: 10px; align-content: center; padding: 20px 20px 24px; }
.destaque__texto p { color: var(--claro-2); max-width: 46ch; }
@media (min-width: 760px) {
  .destaque { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); }
  .destaque__texto { padding: 28px clamp(24px, 4vw, 48px); }
}
.passo__texto {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 12px; align-items: center; align-content: start;
  padding: 20px 20px 24px;
}
.passo__n {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--verde); color: var(--preto); font-weight: 850; font-size: 1rem; line-height: 1;
}
.passo__texto p { grid-column: 1 / -1; color: var(--claro-2); font-size: 1rem; }

/* ---------- Ficha ----------
   As medidas vêm do sistema que imprime: a ficha tem 576 pontos de largura,
   14 de margem, e cada texto usa o tamanho de letra da impressão (em pontos,
   pela variável --u). A quebra de linha e o corte dos textos longos são
   calculados no site.js com as mesmas regras do sistema; aqui nada é cortado
   por CSS. A letra é Arial, como na impressão. Onde não houver Arial (celulares
   Android, por exemplo) entra a Arimo, que tem as mesmas larguras de letra; ela só
   é baixada depois que a página termina de carregar (classe "com-letra-ficha",
   posta pelo site.js), para não disputar a rede com a foto da abertura. */
.com-letra-ficha .ficha,
.com-letra-ficha .monte input[type="text"],
.com-letra-ficha .ficha-form__faixa,
.com-letra-ficha .ficha-form__rodape { font-family: "Ficha", var(--f-ficha); }
@font-face {
  font-family: "Ficha"; font-weight: 400; font-style: normal; font-display: swap;
  src: local("Arial"), local("ArialMT"), url("../fonts/arimo-latin-400.woff2") format("woff2");
}
@font-face {
  font-family: "Ficha"; font-weight: 700; font-style: normal; font-display: swap;
  src: local("Arial Bold"), local("Arial-BoldMT"), url("../fonts/arimo-latin-700.woff2") format("woff2");
}
.ficha {
  container-type: inline-size; --u: calc(100cqw / 576);
  background: #fff; color: #000;
  font-family: var(--f-ficha); font-weight: 400; line-height: 1.15;
  font-kerning: none; /* a impressora mede as letras sem ajuste entre pares; a prévia faz igual */
}
.ficha__c { display: flex; flex-direction: column; padding: calc(8 * var(--u)) calc(14 * var(--u)) calc(4 * var(--u)); }
.ficha p, .ficha .f-l { white-space: nowrap; }
.ficha .f-l { display: block; }
.f-evento { font-weight: 700; font-size: calc(var(--t, 28) * var(--u)); text-align: center; }
.f-produto { font-weight: 700; font-size: calc(var(--t, 124) * var(--u)); line-height: 1.09; text-align: center; }
.f-recado { margin-top: calc(6 * var(--u)); font-weight: 700; font-size: calc(22 * var(--u)); text-align: center; }
.f-rodape {
  margin-top: calc(4 * var(--u)); padding-top: calc(2 * var(--u)); border-top: max(1px, calc(2 * var(--u))) solid #000;
  font-weight: 700; font-size: calc(32 * var(--u)); text-align: center;
}
.f-trio, .f-par { display: flex; justify-content: space-between; gap: calc(12 * var(--u)); font-size: calc(22 * var(--u)); line-height: 1.3; }
.f-trio { font-size: calc(21 * var(--u)); }
.f-par--forte { font-weight: 700; font-size: calc(24 * var(--u)); }
.f-resumo { font-size: calc(21 * var(--u)); text-align: center; white-space: pre; }
.f-linha { display: flex; align-items: center; gap: calc(14 * var(--u)); margin-top: calc(4 * var(--u)); }
/* Exemplo de logotipo: o símbolo da BC Fichas em preto e branco, como sai na impressão, com "SEU LOGO"
   no lugar do nome. O espaço é o que o sistema reserva em cada modelo (170×110, 150×96 e 300×150 pontos). */
.f-logo {
  flex: none; display: grid; justify-items: center; align-content: center; gap: calc(6 * var(--u));
  width: calc(170 * var(--u)); height: calc(110 * var(--u)); color: #000;
}
.f-logo__simbolo { display: block; width: calc(72 * var(--u)); height: calc(64 * var(--u)); }
.f-logo__nome {
  font-family: var(--f-texto); font-weight: 850; font-stretch: 118%; font-size: calc(22 * var(--u));
  line-height: 1; letter-spacing: -0.02em; white-space: nowrap;
}
.f-logo--m2 { width: calc(150 * var(--u)); height: calc(96 * var(--u)); gap: calc(5 * var(--u)); }
.f-logo--m2 .f-logo__simbolo { width: calc(61 * var(--u)); height: calc(54 * var(--u)); }
.f-logo--m2 .f-logo__nome { font-size: calc(19 * var(--u)); }
.f-logo--m5 { align-self: center; width: calc(300 * var(--u)); height: calc(150 * var(--u)); margin: calc(4 * var(--u)) 0 calc(6 * var(--u)); gap: calc(8 * var(--u)); }
.f-logo--m5 .f-logo__simbolo { width: calc(108 * var(--u)); height: calc(96 * var(--u)); }
.f-logo--m5 .f-logo__nome { font-size: calc(30 * var(--u)); }
.f-info { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: calc(22 * var(--u)); line-height: 1.27; }
.f-info--centro { align-items: center; text-align: center; }
.f-tarja {
  align-self: flex-start; padding: calc(6 * var(--u)) calc(16 * var(--u)); border-radius: calc(6 * var(--u));
  background: #000; color: #fff; font-weight: 700; font-size: calc(36 * var(--u)); line-height: 1.15;
}
.f-valor-fino { font-size: calc(52 * var(--u)); line-height: 1.2; }
.f-valor-m2 { font-weight: 700; font-size: calc(40 * var(--u)); line-height: 1.25; text-align: center; }
.f-valor-m4 { font-weight: 700; font-size: calc(56 * var(--u)); line-height: 1.2; }
.f-forma-m4 { font-size: calc(23 * var(--u)); }
.f-preco { font-weight: 700; font-size: calc(50 * var(--u)); line-height: 1.15; text-align: center; }
.f-selo {
  align-self: center; margin-top: calc(6 * var(--u)); padding: calc(8 * var(--u)) calc(24 * var(--u)); border-radius: calc(14 * var(--u));
  background: #000; color: #fff; font-weight: 700; font-size: calc(46 * var(--u)); line-height: 1.15;
}
.f-faixa {
  margin: calc(-8 * var(--u)) calc(-14 * var(--u)) calc(8 * var(--u)); padding: calc(8 * var(--u)) calc(14 * var(--u));
  background: #000; color: #fff; font-weight: 700; font-size: calc(30 * var(--u)); text-align: center;
}
.f-pontilhado { border: 0; border-top: max(1px, calc(2 * var(--u))) dashed #000; margin: calc(5 * var(--u)) 0; }
.f-dir { text-align: right; font-size: calc(22 * var(--u)); }
.f-esp { height: calc(8 * var(--u)); }

/* ---------- As fichas ---------- */
.monte { display: grid; gap: 16px 20px; margin-bottom: 20px; align-items: end; }
.monte__aviso { grid-column: 1 / -1; font-size: 0.9375rem; font-weight: 650; }
.monte__aviso:empty { display: none; }
.monte__dica { font-weight: 650; max-width: 52ch; }
/* Os dois campos ficam um em cima do outro, na ordem da ficha: o nome do evento no alto, o rodapé embaixo.
   Em telas largas o produto de exemplo vai para a coluna do lado. */
@media (min-width: 700px) {
  .monte .campo { max-width: 520px; }
}
@media (min-width: 900px) {
  .monte { grid-template-columns: minmax(0, 480px) minmax(0, 1fr); column-gap: 40px; align-items: start; }
  .monte__dica { grid-column: 1 / -1; }
  .monte .campo { grid-column: 1; max-width: none; }
  .monte .chips { grid-column: 2; grid-row: 2 / span 2; }
}
.campo { display: grid; gap: 8px; min-width: 0; align-content: start; }
.campo label, .chips legend { font-size: 0.9375rem; font-weight: 700; padding: 0; }
.campo label span { font-weight: 500; color: var(--apagado); }
.campo input, .campo select, .campo textarea {
  width: 100%; min-height: 54px; padding: 12px 14px;
  background: var(--branco); color: var(--tinta);
  border: 2px solid var(--tinta); border-radius: 12px;
  font-size: 1.0625rem; font-weight: 560; line-height: 1.3;
}
.campo textarea { resize: vertical; min-height: 84px; }
.campo select { appearance: none; -webkit-appearance: none; padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a0e0b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 22px;
}
.campo input::placeholder, .campo textarea::placeholder { color: #8a948d; font-weight: 450; }
.campo input:focus-visible, .campo select:focus-visible, .campo textarea:focus-visible { outline: 3px solid var(--tinta); outline-offset: 2px; border-radius: 12px; }
.monte input[type="text"] { font-family: var(--f-ficha); font-weight: 700; letter-spacing: 0.01em; }
/* o sistema grava o nome do evento em maiúsculas; o rodapé sai como foi digitado */
#monte-evento, #orc-evento { text-transform: uppercase; }
.monte input[type="text"]::placeholder { font-family: var(--f-ficha); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chips legend { float: left; width: 100%; margin-bottom: 8px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.chips span {
  display: inline-flex; align-items: center; min-height: 46px; padding: 0 16px;
  border: 2px solid var(--tinta); border-radius: 999px; font-weight: 700; font-size: 0.9375rem;
  transition: background-color .15s ease, color .15s ease;
}
.chips input:checked + span { background: var(--tinta); color: var(--branco); }
.chips input:focus-visible + span { outline: 3px solid var(--tinta); outline-offset: 3px; }

.campo__topo { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.contador { font-size: 0.8125rem; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.campo__ajuda { font-size: 0.875rem; color: var(--apagado); }

.rolo__topo { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 4px; }
.rolo__titulo { font-weight: 800; font-stretch: 108%; font-size: 0.9375rem; letter-spacing: 0.06em; text-transform: uppercase; }
.rolo__setas { display: flex; gap: 8px; }
.rolo__seta {
  display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border-radius: 50%;
  border: 2px solid var(--tinta); background: transparent; color: var(--tinta); cursor: pointer;
  transition: background-color .15s ease, color .15s ease, opacity .15s ease;
}
.rolo__seta:hover:not([aria-disabled="true"]) { background: var(--tinta); color: var(--branco); }
.rolo__seta[aria-disabled="true"] { opacity: 0.35; cursor: default; }
.rolo {
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  scrollbar-width: thin; scrollbar-color: var(--tinta) transparent;
  margin-inline: calc(-1 * var(--margem)); scroll-padding-inline: var(--margem);
}
.rolo__lista {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(76vw, 292px); gap: 18px; align-items: start;
  width: max-content; padding: 8px var(--margem) 26px;
}
.rolo__item { display: grid; gap: 10px; align-content: start; scroll-snap-align: start; }
/* Cabeçalho de cada modelo: nome e botão de escolha na mesma linha, descrição embaixo com altura fixa de
   duas linhas. Assim os sete botões e o alto das sete fichas ficam alinhados, mesmo com fichas de alturas diferentes. */
.rolo__cab { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 10px; }
.rolo__desc { grid-column: 1 / -1; min-height: 2.6em; font-size: 0.8125rem; font-weight: 560; line-height: 1.3; }
.rolo__aviso { padding: 8px 10px; border-radius: 8px; background: var(--tinta); color: var(--branco); font-size: 0.8125rem; font-weight: 600; line-height: 1.35; }
.rolo__escolher {
  min-height: 44px; padding: 0 18px; border: 2px solid var(--tinta); border-radius: 999px;
  background: transparent; color: var(--tinta); font: inherit; font-size: 0.875rem; font-weight: 750; white-space: nowrap; cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.rolo__escolher:hover, .rolo__escolher[aria-pressed="true"] { background: var(--tinta); color: var(--branco); }
.rolo__escolher:focus-visible { outline: 3px solid var(--tinta); outline-offset: 3px; }
.rolo__item.escolhido .ficha { outline: 4px solid var(--tinta); outline-offset: 3px; }
.rolo__n { font-size: 0.8125rem; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; }
.rolo .ficha { box-shadow: 0 18px 34px rgba(4, 40, 18, 0.32); }
.fichas__fim { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: center; margin-top: 26px; }
.fichas__combo { padding: 18px 20px; border-radius: 14px; background: rgba(7, 10, 8, 0.1); max-width: 62ch; }
.fichas__fim .btn { white-space: normal; text-align: center; }
.link-botao { padding: 8px 0; border: 0; background: none; color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
@media (min-width: 860px) { .fichas__fim { grid-template-columns: minmax(0, 1fr) auto; gap: 28px; } }
.nota--verde { color: var(--tinta); opacity: 0.82; }

/* ---------- Controle do caixa ---------- */
.controle { display: grid; gap: clamp(36px, 6vw, 72px); align-items: start; }
@media (min-width: 960px) { .controle { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); } }
.recibo { border-bottom: 2px dashed var(--fio-claro); }
.recibo div { display: grid; gap: 4px 28px; padding: 18px 0; border-top: 2px dashed var(--fio-claro); }
.recibo dt { font-weight: 800; font-stretch: 108%; font-size: 0.9375rem; text-transform: uppercase; letter-spacing: 0.04em; }
.recibo dd { color: var(--tinta-2); }
@media (min-width: 640px) { .recibo div { grid-template-columns: 220px minmax(0, 1fr); align-items: baseline; } }
.controle__papel { display: grid; gap: 18px; justify-items: center; }
.controle__amplia { position: relative; display: block; width: min(100%, 330px); rotate: 1.5deg; }
.controle__papel img { width: 100%; box-shadow: 0 30px 60px rgba(10, 20, 14, 0.22), 0 2px 6px rgba(10, 20, 14, 0.12); }
.controle__papel figcaption { font-size: 0.875rem; color: var(--apagado); text-align: center; max-width: 34ch; }

/* ---------- Dúvidas ---------- */
.duvidas { display: grid; gap: clamp(8px, 4vw, 56px); align-items: start; }
@media (min-width: 960px) {
  .duvidas { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
  .duvidas .cabeca { position: sticky; top: calc(var(--topo) + 32px); }
}
.duvidas .lide a { color: var(--verde-fundo); font-weight: 700; text-underline-offset: 3px; }
.duvidas__grupos { display: grid; gap: 30px; min-width: 0; }
.duvidas__grupo > h3 { margin-bottom: 10px; font-size: 0.8125rem; font-weight: 700; font-stretch: 108%; letter-spacing: 0.09em; text-transform: uppercase; color: var(--verde-fundo); }
.duvidas__lista { border-bottom: 2px dashed var(--fio-claro); }
.duvida { border-top: 2px dashed var(--fio-claro); }
.duvida summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 2px; cursor: pointer; list-style: none;
}
.duvida summary::-webkit-details-marker { display: none; }
.duvida summary h4 { font-size: 1.125rem; }
.duvida summary .i { width: 26px; height: 26px; padding: 3px; border-radius: 50%; background: var(--papel); transition: rotate .2s ease, background-color .2s ease; }
.duvida[open] summary .i { rotate: 45deg; background: var(--verde); }
.duvida p { padding: 0 44px 22px 2px; color: var(--tinta-2); max-width: 62ch; }
.duvida p a { color: var(--verde-fundo); font-weight: 700; }

/* ---------- Orçamento ---------- */
.pedido { display: grid; gap: clamp(36px, 6vw, 72px); align-items: start; }
.pedido__cabeca { margin-bottom: 0; }
.pedido__direto { display: grid; gap: 12px; justify-items: start; margin-top: 6px; padding-top: 20px; border-top: 1px dashed var(--fio-escuro); width: 100%; }
.pedido__direto p { color: var(--claro); font-weight: 650; }
@media (min-width: 960px) {
  .pedido { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); grid-template-rows: auto 1fr; column-gap: clamp(36px, 6vw, 72px); row-gap: 36px; }
  .pedido__cabeca { grid-column: 1; grid-row: 1; }
  .pedido .contatos { grid-column: 1; grid-row: 2; align-self: start; }
  .pedido .ficha-form { grid-column: 2; grid-row: 1 / span 2; }
}
.contatos { display: grid; gap: 0; border-bottom: 1px dashed var(--fio-escuro); }
.contatos li { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-top: 1px dashed var(--fio-escuro); }
.contatos .i { width: 24px; height: 24px; margin-top: 3px; color: var(--verde); }
.contatos span { display: block; font-size: 0.8125rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--claro-2); }
.contatos a { font-size: 1.25rem; font-weight: 750; font-stretch: 106%; text-decoration: none; }
.contatos a:hover { color: var(--verde); }
.contatos p { color: var(--claro); }
/* o endereço é um link para o mapa: mesmo jeito do texto, com o convite "Abrir no mapa" embaixo */
.contatos a.contatos__mapa { display: inline-block; font-size: 1rem; font-weight: 500; font-stretch: 100%; color: var(--claro); }
.contatos__mapa small { display: block; margin-top: 4px; font-size: 0.875rem; font-weight: 700; color: var(--verde); text-decoration: underline; text-underline-offset: 3px; }
.contatos a.contatos__mapa:hover { color: var(--branco); }

.ficha-form {
  position: relative; background: var(--branco); color: var(--tinta);
  padding-bottom: calc(22px + var(--dente));
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - var(--dente) + 0.5px) no-repeat,
    conic-gradient(from -45deg at 50% 100%, #000 90deg, #0000 0) bottom / calc(var(--dente) * 2) var(--dente) repeat-x;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - var(--dente) + 0.5px) no-repeat,
    conic-gradient(from -45deg at 50% 100%, #000 90deg, #0000 0) bottom / calc(var(--dente) * 2) var(--dente) repeat-x;
}
.ficha-form__faixa {
  padding: 14px 20px; background: #000; color: #fff;
  font-family: var(--f-ficha); font-weight: 700; font-size: 1.1875rem; text-transform: uppercase; text-align: center; letter-spacing: 0.01em;
}
.ficha-form__campos { display: grid; gap: 16px; padding: 24px clamp(18px, 4vw, 30px) 8px; }
@media (min-width: 560px) {
  .ficha-form__campos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .campo--larga { grid-column: 1 / -1; }
}
.ficha-form__enviar { display: flex; margin: 16px clamp(18px, 4vw, 30px) 0; }
.pers { grid-column: 1 / -1; min-width: 0; padding: 4px 16px 16px; border: 2px dashed var(--fio-claro); border-radius: 14px; }
.pers legend { padding: 0 8px; font-size: 0.9375rem; font-weight: 800; }
.pers legend span { font-weight: 500; color: var(--apagado); }
.pers__grade { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px 16px; }
.pers__dica, .pers__acoes { grid-column: 1 / -1; }
.pers__dica { font-size: 0.875rem; color: var(--apagado); }
.pers__acoes { display: flex; flex-wrap: wrap; gap: 4px 20px; align-items: center; font-size: 0.9375rem; }
.pers__acoes a { font-weight: 700; text-underline-offset: 3px; }
@media (min-width: 560px) { .pers__grade { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ficha-form__copiar { display: flex; width: calc(100% - 2 * clamp(18px, 4vw, 30px)); margin: 10px clamp(18px, 4vw, 30px) 0; }
.ficha-form__status { margin: 8px clamp(18px, 4vw, 30px) 0; font-size: 0.9375rem; font-weight: 700; color: var(--verde-fundo); text-align: center; }
.ficha-form__status:empty { display: none; }
.ficha-form__aviso { margin: 12px clamp(18px, 4vw, 30px) 0; font-size: 0.875rem; color: var(--apagado); text-align: center; }
.ficha-form__rodape {
  margin: 20px clamp(18px, 4vw, 30px) 0; padding-top: 12px; border-top: 3px solid #000;
  font-family: var(--f-ficha); font-size: clamp(0.8125rem, 4.3vw, 1.4375rem); text-transform: uppercase; white-space: nowrap;
}

/* ---------- Rodapé ---------- */
.rodape { background: var(--preto); color: var(--claro-2); border-top: 1px solid var(--fio-escuro); padding-block: 44px 40px; font-size: 0.9375rem; }
.rodape__grade { display: grid; gap: 30px; }
.rodape__marca { display: grid; gap: 12px; justify-items: start; max-width: 36ch; }
.rodape__nav { display: grid; grid-template-columns: repeat(2, max-content); gap: 4px 36px; align-content: start; }
.rodape__nav a { padding: 7px 0; text-decoration: none; }
.rodape__nav a:hover, .rodape__empresa a:hover { color: var(--branco); }
.rodape__empresa { display: grid; gap: 10px; align-content: start; max-width: 40ch; }
.rodape__empresa a { color: var(--claro); text-underline-offset: 3px; }
.rodape__legal { font-size: 0.8125rem; }
@media (min-width: 860px) { .rodape__grade { grid-template-columns: 1.1fr auto 1fr; gap: 56px; } }

/* ---------- Barra fixa do celular ---------- */
.barra { display: none; }
@media (max-width: 799px) {
  .barra {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    display: flex; gap: 10px;
    padding: 10px max(var(--margem), env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(var(--margem), env(safe-area-inset-left, 0px));
    background: rgba(7, 10, 8, 0.94);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-top: 1px solid var(--fio-escuro);
    transition: translate .3s ease, visibility .3s;
  }
  .barra--fora { translate: 0 110%; visibility: hidden; }
  html { scroll-padding-bottom: 92px; }
  .barra__orc { flex: 1.35; min-width: 0; min-height: 54px; padding: 0 10px; font-size: clamp(0.875rem, 4.1vw, 1.0625rem); }
  .barra__zap { flex: 1; min-width: 0; min-height: 54px; padding: 0 10px; gap: 8px; font-size: clamp(0.875rem, 4.1vw, 1.0625rem); }
  .barra__zap .i { width: 22px; height: 22px; color: var(--verde); }
  .rodape { padding-bottom: calc(40px + 78px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- Ampliação de fotos, telas e comprovante ---------- */
.amplia {
  width: min(96vw, 1120px); max-width: none; max-height: 92vh; max-height: 92dvh; padding: 0; border: 0; border-radius: 16px;
  background: var(--preto-2); color: var(--claro); overflow: hidden;
}
.amplia[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.amplia::backdrop { background: rgba(4, 7, 5, 0.88); }
.amplia__topo { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 12px 10px 20px; border-bottom: 1px solid var(--fio-escuro); }
.amplia__topo p { font-size: 0.9375rem; font-weight: 650; }
.amplia__topo .btn { min-height: 44px; }
.amplia__img {
  display: grid; place-items: center; overflow: auto; padding: 16px;
  background: radial-gradient(90% 80% at 50% 40%, #233a2d 0%, #0b120e 100%);
}
.amplia__img img { max-width: 100%; height: auto; max-height: calc(92vh - 110px); max-height: calc(92dvh - 110px); object-fit: contain; border-radius: 6px; }
.amplia--alta .amplia__img { place-items: start center; }
.amplia--alta .amplia__img img { max-height: none; width: min(100%, 576px); }

/* ---------- Movimento ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Impressão ---------- */
@media print {
  .topo, .barra, .menu, .amplia { display: none !important; }
  body { background: #fff; color: #000; }
}
