:root {
  --fundo: #1c120a;
  --creme: #fbefdc;
  --creme-2: #e9d6b8;
  --ambar: #f2b457;
  --tinta: rgba(22, 12, 5, 0.66);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  background: var(--fundo);
  scrollbar-width: none;
}
html::-webkit-scrollbar { display: none; }

body {
  background: var(--fundo);
  color: var(--creme);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

#rolagem { position: relative; }

#palco {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--fundo) url("assets/keys/K0.webp?v=20261120") center / cover no-repeat;
}

#cena {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

a { color: inherit; }
a:focus-visible {
  outline: 2px solid var(--ambar);
  outline-offset: 4px;
  border-radius: 2px;
}

/* menu */
#menu {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(16px, 4vw, 48px) 28px;
  background: linear-gradient(to bottom, rgba(22, 12, 5, 0.62), rgba(22, 12, 5, 0));
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s;
}
#menu.visivel { opacity: 1; visibility: visible; }

.marca {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

#menu ul { display: flex; align-items: center; gap: clamp(10px, 2vw, 24px); list-style: none; }
#menu nav a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--creme-2);
  padding: 6px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: color 0.25s, border-color 0.25s, background-color 0.25s;
}
#menu nav a:hover {
  color: #fff;
  border-color: rgba(224, 164, 88, 0.4);
}
#menu nav a.ativo {
  color: #fff;
  border-color: var(--ambar);
}

/* blocos de texto */
.texto {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: min(34vw, 760px);
  transform: translate(calc(-50% + var(--dx, 0px)), calc(-50% + var(--by, 0px) + var(--dy, 0px)));
  text-align: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  text-shadow: 0 1px 14px rgba(15, 8, 3, 0.55);
}
.texto.on { visibility: visible; pointer-events: auto; }
.texto::before {
  content: "";
  position: absolute;
  inset: -50px -60px;
  z-index: -1;
  background: radial-gradient(ellipse at center, rgba(22, 12, 5, 0.5) 0%, rgba(22, 12, 5, 0.3) 55%, rgba(22, 12, 5, 0) 80%);
  pointer-events: none;
}

.texto h1,
.texto h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.6vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}
.texto .corpo {
  font-size: clamp(0.92rem, 1.15vw, 1.4rem);
  line-height: 1.6;
  color: #fff6e8;
}
.rotulo {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ambar);
  margin-bottom: 14px;
}
.legenda {
  margin-top: 20px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.92rem;
  color: var(--creme-2);
}

.cta {
  display: inline-block;
  margin-top: 26px;
  padding: 13px 28px;
  border: 1px solid var(--ambar);
  border-radius: 999px;
  background: rgba(22, 12, 5, 0.35);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  text-shadow: none;
  transition: background 0.25s, color 0.25s;
}
.cta:hover { background: var(--ambar); color: #2a1808; }

#pelicula {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  --sx: 50%; --sy: 50%; --r0: 0px; --r1: 0px;
  background: radial-gradient(circle at var(--sx) var(--sy), rgba(12, 6, 2, 0) var(--r0), rgba(12, 6, 2, 0.62) var(--r1));
}

/* K0: texto no centro da tela */
.hero {
  --by: 0px;
  width: min(760px, calc(100% - 40px));
}
.hero::before {
  inset: -140px -22vw;
  background: radial-gradient(ellipse at center, rgba(22, 12, 5, 0.72) 0%, rgba(22, 12, 5, 0.5) 45%, rgba(22, 12, 5, 0) 75%);
}
.hero h1, .hero h2 { font-size: clamp(1.6rem, 3.1vw, 2.5rem); }

/* como trabalhamos */
.como { width: min(52vw, 900px); }
/* Sobre: texto dentro da esfera do globo (posição/tamanho vêm do main.js: --gx, --gy, --gd) */
.texto.sobre { left: var(--gx, 50%); top: var(--gy, 50%); bottom: auto; width: calc(var(--gd, 600px) * 0.72); transform: translate(-50%, calc(-50% + var(--dy, 0px))); }
.texto.sobre h2 { font-size: clamp(1.3915rem, calc(var(--gd, 600px) * 0.069575), 3.795rem); margin-bottom: calc(var(--gd, 600px) * 0.02); }
.texto.sobre .corpo { font-size: clamp(0.9108rem, calc(var(--gd, 600px) * 0.0309925), 1.6445rem); line-height: 1.5; text-align: justify; hyphens: manual; }
.contato { width: min(44vw, 820px); }
.etapas {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 36px;
  margin-top: 26px;
  text-align: left;
}
.etapas li { display: flex; gap: 14px; }
.etapas .n {
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--ambar);
}
.etapas h3 {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.etapas p { font-size: 0.93rem; line-height: 1.5; color: #fff6e8; }

/* contato */
.canais {
  list-style: none;
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 32px;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
}
.canais a { text-decoration: none; border-bottom: 1px solid var(--ambar); }
.canais a:hover { color: var(--ambar); }
.contato address { font-style: normal; font-size: 0.85rem; }

/* contato na tela do celular */
.tela {
  left: 0;
  top: 0;
  width: 270px;
  height: 600px;
  transform-origin: 0 0;
  text-align: center;
  padding: 36px 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  background: linear-gradient(160deg, #1d130b, #0d0805);
  border-radius: 18px;
  text-shadow: none;
  overflow: hidden;
}
.tela::before { display: none; }
.tela h2 { font-size: 1.9rem; margin: 0; }
.tela .corpo { font-size: 1.08rem; line-height: 1.4; }
.tela .canais { margin: 4px 0 0; flex-direction: column; gap: 6px; font-size: 1.35rem; }
.tela .cta { margin: 6px auto 0; padding: 12px 18px; font-size: 0.82rem; }
.tela .legenda { margin: 6px 0 0; font-size: 0.84rem; font-style: normal; }

/* indicador de rolagem */
/* dica de rolagem: contorno de mouse com uma gota âmbar descendo, halo quente pulsando e leve flutuação */
#dica {
  position: absolute;
  left: 50%;
  bottom: clamp(60px, 13vh, 130px);
  z-index: 4;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--creme);
  text-shadow: 0 1px 14px rgba(15, 8, 3, 0.9), 0 0 22px rgba(242, 180, 87, 0.35);
  transition: opacity 0.3s;
  pointer-events: none;
}
/* véu escuro suave atrás, para destacar sem caixa */
#dica::before {
  content: "";
  position: absolute;
  inset: -34px -70px -22px;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(22, 12, 5, 0.55), rgba(22, 12, 5, 0));
}
/* animações nos filhos: a opacidade do #dica é controlada pelo main.js (some ao rolar) */
#dica span { white-space: nowrap; animation: respira 2.6s ease-in-out infinite; }
#dica .rato {
  position: relative;
  display: block;
  width: 30px;
  height: 48px;
  border: 2px solid rgba(251, 239, 220, 0.95);
  border-radius: 16px;
  animation: flutua 2.6s ease-in-out infinite, halo 2.6s ease-in-out infinite;
}
#dica .rato i {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 5px;
  height: 10px;
  margin-left: -2.5px;
  border-radius: 3px;
  background: var(--ambar);
  box-shadow: 0 0 10px var(--ambar);
  animation: dica 2.4s ease-in-out infinite;
}
/* a gota sobe e desce: rolar para cima ou para baixo começa a explorar */
@keyframes dica {
  0% { transform: translateY(8px); opacity: 0; }
  15% { opacity: 1; }
  40% { transform: translateY(17px); opacity: 0; }
  55% { transform: translateY(8px); opacity: 0; }
  70% { opacity: 1; }
  95% { transform: translateY(0); opacity: 0; }
  100% { transform: translateY(8px); opacity: 0; }
}
@keyframes respira {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}
@keyframes flutua {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}
@keyframes halo {
  0%, 100% { box-shadow: 0 0 12px rgba(242, 180, 87, 0.3), 0 0 0 0 rgba(242, 180, 87, 0.28); }
  50% { box-shadow: 0 0 24px rgba(242, 180, 87, 0.55), 0 0 0 9px rgba(242, 180, 87, 0); }
}

/* mobile */
@media (max-width: 760px) {
  #menu { padding: 12px 14px 22px; gap: 10px; flex-direction: column; align-items: flex-start; }
  #menu ul { gap: 14px; flex-wrap: wrap; }
  #menu nav a { font-size: 0.7rem; letter-spacing: 0.05em; }
  .marca { font-size: 0.9rem; }
  .texto { width: calc(100% - 32px); --dx: 0px; --by: 0px; top: 92px; bottom: auto; transform: translate(-50%, var(--dy, 0px)); }
  .tela { top: 0; bottom: auto; width: 270px; padding: 36px 22px 24px; }
  .texto.sobre { width: calc(var(--gd, 340px) * 0.78); }
  .como { top: 50%; bottom: auto; transform: translate(-50%, calc(-50% + var(--dy, 0px))); }
  .texto::before { inset: -40px -16px; background: radial-gradient(ellipse at center, rgba(22, 12, 5, 0.72) 0%, rgba(22, 12, 5, 0.55) 65%, rgba(22, 12, 5, 0) 100%); }
  .texto h1, .texto h2 { font-size: 1.4rem; margin-bottom: 10px; }
  .texto .corpo { font-size: 0.9rem; line-height: 1.45; }
  .rotulo { font-size: 0.66rem; margin-bottom: 10px; }
  .legenda { font-size: 0.82rem; margin-top: 14px; }
  .cta { padding: 11px 22px; font-size: 0.76rem; margin-top: 18px; }
  .hero { width: calc(100% - 32px); top: 50%; transform: translate(-50%, calc(-50% + var(--dy, 0px))); }
  .hero::before { inset: -130px -16px; background: radial-gradient(closest-side, rgba(22, 12, 5, 0.55) 0%, rgba(22, 12, 5, 0.35) 60%, rgba(22, 12, 5, 0) 100%); }
  .como { width: calc(100% - 32px); }
  .etapas { grid-template-columns: 1fr; gap: 10px; margin-top: 16px; }
  .etapas .n { font-size: 1.1rem; }
  .etapas h3 { font-size: 0.98rem; }
  .etapas p { font-size: 0.82rem; line-height: 1.4; }
  .canais { flex-direction: column; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  #dica span, #dica .rato, #dica .rato i, #dica-mural span { animation: none; opacity: 1; transform: none; }
  #menu { transition: none; }
}

/* anel de destaque agora segue o item .ativo */

/* tela do notebook */
.nb {
  padding: 0;
  display: block;
  background: #faf6ee;
  color: #1e140b;
  border-radius: 6px;
  font-size: 16px;
  text-align: left;
}
.nb-topo {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 18px;
  background: #f0e8d9;
  border-bottom: 1px solid #e2d6c0;
}
.nb-topo .pt { width: 11px; height: 11px; border-radius: 50%; background: #d8c9ae; }
.nb-topo h2 { margin: 0 0 0 14px; font-size: 1rem; font-family: var(--sans); font-weight: 600; letter-spacing: 0.02em; flex: 1; color: #4a3720; }
.pag { display: flex; gap: 6px; }
.pag i { width: 22px; height: 4px; border-radius: 2px; background: #dccfb7; }
.pag i.on { background: #d98e1f; }
.nb-trilho { position: relative; height: calc(100% - 46px); overflow: hidden; }
.slide { position: absolute; inset: 0; padding: 22px 32px 18px; will-change: transform, opacity; }
.slide h3 { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; margin: 0 0 4px; }
.slide .sub { font-size: 0.95rem; color: #6a563b; margin-bottom: 14px; }
.s-metodo { display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.s-metodo .corpo { color: #3a2a17; font-family: var(--serif); font-size: 1.6rem; line-height: 1.25; }
.s-metodo .etapas { margin: 0; gap: 14px 22px; text-align: left; }
.s-metodo .etapas li { background: #fff; border: 1px solid #eadfca; border-radius: 12px; padding: 16px 18px; }
.s-metodo .etapas h3 { font-size: 1.2rem; margin: 0 0 4px; }
.s-metodo .etapas p { color: #4a3a25; font-size: 1rem; line-height: 1.4; }
.s-metodo .etapas .n { color: #d98e1f; font-size: 1.8rem; }
.s-metodo .legenda { margin: 0; color: #6a563b; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cliente { background: #fff; border: 1px solid #eadfca; border-radius: 12px; padding: 14px 16px; }
.cliente h4 { font-family: var(--serif); font-size: 1.15rem; margin: 0; }
.cliente header p { font-size: 0.82rem; color: #7a6544; margin-bottom: 6px; }
.leg { display: flex; gap: 14px; justify-content: flex-end; font-size: 0.74rem; color: #7a6544; margin-bottom: 2px; }
.leg span::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; background: #cdbfa6; }
.leg .d::before { background: #e8a33d; }
.par { margin-bottom: 8px; }
.par .lab { font-size: 0.8rem; color: #5a4729; margin-bottom: 2px; }
.barras { display: grid; gap: 3px; }
.b { display: flex; align-items: center; gap: 8px; height: 13px; }
.b .fio { display: block; height: 9px; border-radius: 5px; min-width: 0; }
.b.antes .fio { background: #cdbfa6; }
.b.depois .fio { background: #e8a33d; }
.b i { font-style: normal; font-size: 0.78rem; font-weight: 600; color: #3a2a17; }
.geo { display: flex; gap: 10px; align-items: center; margin-top: 8px; padding-top: 8px; border-top: 1px dashed #e6d9c1; }
.geo-t b { font-family: var(--serif); font-size: 1.6rem; color: #b8730f; display: block; line-height: 1; }
.geo-t span { font-size: 0.82rem; display: block; margin-top: 2px; color: #3a2a17; }
.geo-t small { font-size: 0.72rem; color: #7a6544; }
.cliente .nota { font-size: 0.74rem; color: #7a6544; margin-top: 6px; line-height: 1.3; }
.rodape { position: absolute; left: 32px; right: 32px; bottom: 12px; font-size: 0.78rem; color: #6a563b; }
.deps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 12px; }
.dep { background: #fff; border: 1px solid #eadfca; border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.dep .est { color: #e8a33d; letter-spacing: 3px; }
.dep blockquote { font-size: 0.98rem; line-height: 1.45; color: #2e2112; }
.dep figcaption { font-size: 0.82rem; color: #7a6544; margin-top: auto; }

/* agenda aberta: livro de couro que as mãos mostram para a câmera. As páginas são o papel do vídeo
   (fundo transparente); o conteúdo fica fora das áreas dos polegares: embaixo da página esquerda e na
   borda da direita. O formulário de qualificação e o calendário ocupam as páginas, e a folha vira entre
   as etapas (agenda.js). Todas as alternativas têm o mesmo peso visual. */
.tela.agenda {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 0;
  background: transparent;
  color: #2a1b0b;
  text-align: left;
  border-radius: 0;
  overflow: visible;
  perspective: 2200px;
}
.livro .folha { position: relative; min-width: 0; min-height: 0; }
.livro .f-esq { padding: 44px 46px 120px 60px; }
.livro .f-dir { padding: 44px 110px 120px 44px; }
.livro .pg { height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.livro h2 { font-size: 2.3rem; line-height: 1.1; margin: 0; color: #2a1b0b; text-shadow: none; }
.livro h3 { font-family: var(--serif); font-weight: 600; margin: 0; color: #2a1b0b; }
.livro .pergunta { font-size: 1.55rem; line-height: 1.25; }
.livro .corpo { color: #4a3a25; font-size: 1.12rem; line-height: 1.5; margin: 0; }
.livro .apoio { color: #5a4a33; font-size: 1rem; line-height: 1.45; margin: 0; }
.livro .nota { color: #5a4a33; font-size: 0.95rem; margin: 0; }
.livro .nota.consentimento { font-size: 0.8rem; margin: 6px 0 10px; line-height: 1.35; }
.livro .nota.consentimento a { color: inherit; text-decoration: underline; }
.livro .carregando { font-style: italic; }
.livro .cta { align-self: flex-start; color: #2a1b0b; background: #e8a33d; border: 1px solid #c9851d; border-radius: 999px; font: inherit; font-size: 0.9rem; font-weight: 600; letter-spacing: 0.04em; padding: 14px 24px; cursor: pointer; text-decoration: none; text-shadow: none; margin: 0; }
.livro .cta:disabled { opacity: 0.6; cursor: default; }
.livro .voltar { align-self: flex-start; background: none; border: 0; padding: 0; color: #5a4a33; font: inherit; font-size: 0.95rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.livro .progresso { height: 3px; background: rgba(42, 27, 11, 0.15); border-radius: 3px; overflow: hidden; }
.livro .progresso i { display: block; height: 100%; background: rgba(42, 27, 11, 0.55); transition: width 0.4s; }

/* briefing (entre a capa e a 1ª pergunta) e a linha "Caminho" que aparece quando o produto já foi deduzido */
.livro .selo { align-self: flex-start; margin: 0; padding: 5px 12px; border: 1px solid rgba(201, 133, 29, 0.6); border-radius: 999px; background: rgba(232, 163, 61, 0.14); color: #6b4410; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.livro .beneficios { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.livro .beneficios li { position: relative; padding-left: 22px; color: #3a2a15; font-size: 1.02rem; line-height: 1.35; font-weight: 600; }
.livro .beneficios li::before { content: ""; position: absolute; left: 2px; top: 0.45em; width: 9px; height: 9px; border-radius: 50%; background: #e8a33d; box-shadow: 0 0 0 2px rgba(201, 133, 29, 0.35); }
.livro .criterio { margin: 0; padding-bottom: 14px; border-bottom: 1px solid rgba(42, 27, 11, 0.18); color: #4a3a25; font-size: 1rem; line-height: 1.45; font-style: italic; }
/* textos corridos justificados, com hifenização (html lang="pt-BR") */
.livro .corpo, .livro .apoio, .livro .criterio, .livro .beneficios li { text-align: justify; hyphens: manual; }
/* Desistir: fixo no canto da página direita enquanto o funil está aberto (agenda.js) */
.livro .desistir { position: absolute; top: 34px; right: 122px; z-index: 6; background: rgba(255, 252, 245, 0.35); border: 1px solid rgba(42, 27, 11, 0.3); border-radius: 999px; padding: 6px 14px; color: #5a4a33; font: inherit; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; cursor: pointer; }
.livro .desistir:hover, .livro .desistir:focus-visible { background: rgba(255, 252, 245, 0.7); color: #2a1b0b; outline: none; }
.livro .desistir[hidden] { display: none; }
.livro .trilha { margin: 0; color: #8a5a14; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }

/* alternativas: mesmo tamanho, cor e tipografia; a escolhida só ganha contorno (igual para todas) */
.livro .opcoes { display: flex; flex-direction: column; gap: 9px; }
.livro .opcao {
  text-align: left; font: inherit; font-size: 1rem; line-height: 1.3; color: #2a1b0b;
  background: rgba(255, 252, 245, 0.28); border: 1px solid rgba(42, 27, 11, 0.3); border-radius: 10px;
  padding: 11px 14px; cursor: pointer;
}
.livro .opcao:hover, .livro .opcao:focus-visible { background: rgba(255, 252, 245, 0.5); outline: none; }
.livro .opcao[aria-checked="true"] { border-color: #2a1b0b; box-shadow: inset 0 0 0 1px #2a1b0b; }

/* calendário */
.livro .mes { display: flex; align-items: center; gap: 12px; }
.livro .mes h3 { font-size: 1.5rem; flex: 1; }
.livro .seta { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(42, 27, 11, 0.35); background: transparent; color: #2a1b0b; font-size: 1.2rem; line-height: 1; cursor: pointer; }
.livro .seta:disabled { opacity: 0.25; cursor: default; }
.livro .sem, .livro .grade { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
.livro .sem { font-size: 0.85rem; font-weight: 600; color: #5a4a33; }
.livro .grade { gap: 4px 0; justify-items: center; }
.livro .dia { width: 40px; height: 36px; border: 0; border-radius: 8px; background: transparent; font: inherit; font-size: 1rem; color: rgba(42, 27, 11, 0.35); cursor: default; }
.livro .dia.livre { color: #2a1b0b; font-weight: 600; cursor: pointer; box-shadow: inset 0 -3px 0 rgba(232, 163, 61, 0.9); }
.livro .dia.livre:hover { background: rgba(255, 252, 245, 0.45); }
.livro .dia.sel { background: #2a1b0b; color: #f3e6cf; box-shadow: none; }
.livro .horas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.livro .hora { font: inherit; font-size: 1rem; font-weight: 600; color: #2a1b0b; background: rgba(255, 252, 245, 0.28); border: 1px solid rgba(42, 27, 11, 0.3); border-radius: 999px; padding: 9px 0; cursor: pointer; }
.livro .hora:hover, .livro .hora:focus-visible { background: #e8a33d; border-color: #c9851d; outline: none; }

/* formulário de contato */
.livro .form { display: flex; flex-direction: column; gap: 8px; }
.livro .campo { display: flex; flex-direction: column; gap: 3px; }
.livro .campo span { font-size: 0.85rem; color: #5a4a33; }
.livro .campo select, .livro .campo input { font: inherit; font-size: 1rem; color: #2a1b0b; background: rgba(255, 252, 245, 0.45); border: 1px solid rgba(42, 27, 11, 0.3); border-radius: 8px; padding: 8px 10px; }
.livro .erro { color: #8a2a0e; font-size: 0.9rem; min-height: 1.2em; margin: 0; }

/* folha virando: gira em torno da lombada; papel no tom das páginas do vídeo */
.folha-vira {
  position: absolute; top: 0; bottom: 0; width: 50%;
  transform-style: preserve-3d; pointer-events: none;
  animation: 0.85s cubic-bezier(0.45, 0.05, 0.3, 1) both;
}
.folha-vira.vai { left: 50%; transform-origin: 0 50%; animation-name: vira-vai; }
.folha-vira.volta { left: 0; transform-origin: 100% 50%; animation-name: vira-volta; }
@keyframes vira-vai { from { transform: rotateY(0); } to { transform: rotateY(-180deg); } }
@keyframes vira-volta { from { transform: rotateY(0); } to { transform: rotateY(180deg); } }
.folha-vira .face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background: linear-gradient(90deg, #d9cdb9, #e6dccb 18%, #e3d8c6 82%, #d6c9b4);
  border-radius: 3px; box-shadow: 0 0 18px rgba(40, 24, 8, 0.25);
}
.folha-vira.vai .frente { padding: 44px 110px 120px 44px; }
.folha-vira.vai .verso { padding: 44px 46px 120px 60px; transform: rotateY(180deg); }
.folha-vira.volta .frente { padding: 44px 46px 120px 60px; }
.folha-vira.volta .verso { padding: 44px 110px 120px 44px; transform: rotateY(180deg); }
.folha-vira .sombra { position: absolute; inset: 0; pointer-events: none; animation: inherit; animation-name: sombra-folha; backface-visibility: visible; }
@keyframes sombra-folha {
  0%, 100% { background: rgba(40, 24, 8, 0); }
  50% { background: rgba(40, 24, 8, 0.16); }
}

/* Zonas ativas do mouse no mural */
#mural-hotspots {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}
#mural-hotspots.ativo {
  pointer-events: auto;
}
/* fora da janela do mural parado as zonas não existem (não capturam mouse nem toque) */
#mural-hotspots:not(.ativo) { display: none; }

/* setas escritas à mão sobre o mural parado: "Clientes" -> nichos, "Serviços" -> serviços */
#mural-setas {
  position: absolute;
  z-index: 3;
  overflow: visible;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
  filter: drop-shadow(0 2px 6px rgba(15, 8, 3, 0.55));
}
#mural-setas.on { opacity: 1; }
#mural-setas.on.apagado { opacity: 0.18; }
/* nomes escritos na margem branca de cada polaroid (viewBox do mural, como as setas) */
#mural-nomes { position: absolute; z-index: 3; pointer-events: none; opacity: 0; transition: opacity 0.6s ease 0.4s; }
#mural-nomes.on { opacity: 1; }
#mural-nomes.on.apagado { opacity: 0.18; transition-delay: 0s; }
#mural-nomes text { font-family: "Kaushan Script", "Segoe Script", cursive; font-size: 22px; fill: #3a281a; text-anchor: middle; dominant-baseline: central; }
#mural-nomes text.longo { font-size: 18px; }
/* escrita em sequência (total = ESCRITA_MS no main.js): "Clientes" é traçado e preenchido, a seta é desenhada,
   depois o mesmo com "Serviços" */
#mural-setas text {
  font-family: "Kaushan Script", "Segoe Script", cursive;
  font-size: 92px;
  fill: rgba(251, 243, 230, 0);
  stroke: #fbf3e6;
  stroke-width: 1.6;
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
}
#mural-setas path {
  fill: none;
  stroke: #fbf3e6;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
}
#mural-setas.on text {
  stroke-dashoffset: 0;
  fill: #fbf3e6;
  transition: stroke-dashoffset 0.35s ease-in-out var(--t0), fill 0.18s ease calc(var(--t0) + 0.25s);
}
#mural-setas.on path { stroke-dashoffset: 0; transition: stroke-dashoffset 0.22s ease-out calc(var(--t0) + 0.35s); }
#mural-setas.on path.ponta { transition: stroke-dashoffset 0.1s ease-out calc(var(--t0) + 0.57s); }
#mural-setas .seta:nth-of-type(1) { --t0: 0.03s; }
#mural-setas .seta:nth-of-type(2) { --t0: 0.5s; }
/* já escritas uma vez: ficam prontas (sem reescrever) e não se apagam ao sair do mural */
#mural-setas.escritas text, #mural-setas.escritas path { transition: none; stroke-dashoffset: 0; fill: #fbf3e6; }
#mural-setas.escritas path { fill: none; }

/* dica do menu interativo: aparece quando o mural para e nenhum card está aberto */
#dica-mural {
  position: absolute;
  left: 50%;
  bottom: clamp(18px, 4vh, 36px);
  z-index: 4;
  transform: translateX(-50%);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--creme);
  text-shadow: 0 1px 14px rgba(15, 8, 3, 0.9), 0 0 22px rgba(242, 180, 87, 0.35);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
#dica-mural::before {
  content: "";
  position: absolute;
  inset: -22px -60px;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(22, 12, 5, 0.55), rgba(22, 12, 5, 0));
}
#dica-mural span { display: inline-block; animation: respira 2.6s ease-in-out infinite; }
.hotspot-polaroid {
  position: absolute;
  cursor: default;
  pointer-events: auto;
  border-radius: 6px;
  transition: transform 0.25s ease;
}
.hotspot-polaroid:hover {
  transform: scale(1.03);
}

/* Posicionamento do texto no lado oposto */
.texto.nicho,
.texto.servico {
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s;
}
/* fundo mais escuro atrás do texto do card: ele fica sobre os outros cards do mural */
.texto.nicho::before,
.texto.servico::before {
  inset: -70px -80px;
  background: radial-gradient(closest-side, rgba(22, 12, 5, 0.82) 0%, rgba(22, 12, 5, 0.7) 55%, rgba(22, 12, 5, 0) 100%);
}
.texto.nicho[data-pos="esq"],
.texto.servico[data-pos="esq"] {
  left: 20%;
  top: 50%;
  transform: translate(-50%, -50%);
  text-align: right;
  width: min(28vw, 520px);
}
.texto.nicho[data-pos="dir"],
.texto.servico[data-pos="dir"] {
  left: 80%;
  top: 50%;
  transform: translate(-50%, -50%);
  text-align: left;
  width: min(28vw, 520px);
}
.texto.nicho[data-pos="baixo"],
.texto.servico[data-pos="baixo"] {
  left: 50%;
  top: 78%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: min(40vw, 700px);
}
.texto.nicho[data-pos="cima"],
.texto.servico[data-pos="cima"] {
  left: 50%;
  top: 22%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: min(40vw, 700px);
}

/* celular: o mural fica embaixo, então o texto do card vai para a parede livre no alto (depois das regras acima para valer) */
@media (max-width: 760px) {
  .texto.nicho[data-pos="cima"], .texto.servico[data-pos="cima"] { width: calc(100% - 32px); top: 128px; transform: translateX(-50%); }
  .texto.nicho[data-pos="cima"]::before, .texto.servico[data-pos="cima"]::before { inset: -40px -16px; }
}

/* contato: Google Perfil da Empresa (tema claro) na tela do celular trazido pelas mãos */
.tela.gbp {
  display: block;
  padding: 0;
  text-align: left;
  background: #fff;
  color: #1f1f1f;
  border-radius: 26px;
  font-family: Roboto, Arial, "Helvetica Neue", sans-serif;
}
.gbp a { color: inherit; text-decoration: none; }
.gbp svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.g-status { position: relative; height: 40px; display: flex; align-items: center; justify-content: space-between; padding: 0 26px; font-size: 14px; }
.g-status b { font-weight: 600; }
.g-notch { position: absolute; left: 50%; top: 0; width: 46%; height: 26px; transform: translateX(-50%); background: #0b0b0b; border-radius: 0 0 16px 16px; }
.g-sinais { display: flex; gap: 3px; align-items: flex-end; }
.g-sinais i { width: 4px; background: #1f1f1f; border-radius: 1px; }
.g-sinais i:nth-child(1) { height: 6px; } .g-sinais i:nth-child(2) { height: 9px; } .g-sinais i:nth-child(3) { height: 12px; }
.g-rolo { height: calc(100% - 40px - 34px); overflow: hidden; padding: 6px 18px 0; }
.gbp .g-nome { font-family: inherit; font-size: 25px; font-weight: 500; line-height: 1.2; margin: 6px 0 4px; color: #1f1f1f; }
.g-cat { font-size: 13.5px; line-height: 1.4; color: #5f6368; }
.g-abas { display: flex; gap: 8px; margin: 14px -18px 0 0; overflow: hidden; white-space: nowrap; }
.g-abas span { font-size: 13.5px; padding: 7px 13px; border: 1px solid #dadce0; border-radius: 18px; color: #3c4043; }
.g-abas .on { background: #e8f0fe; border-color: #e8f0fe; color: #0b57d0; font-weight: 500; }
.g-fotos { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 136px; gap: 4px; margin: 14px -18px 0 0; height: 136px; overflow: hidden; }
.g-fotos img { display: block; width: 100%; height: 136px; min-height: 0; object-fit: cover; border-radius: 10px 0 0 10px; }
.g-fotos img + img { border-radius: 0; }
.g-acoes { display: flex; justify-content: space-between; margin: 20px 2px 10px; }
.g-acao { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; color: #0b57d0 !important; width: 25%; }
.g-acao span { width: 44px; height: 44px; border-radius: 50%; border: 1px solid #c4c7c5; display: grid; place-items: center; }
.g-acao:hover span, .g-acao:focus-visible span { background: #e8f0fe; }
.g-desc { font-size: 12.5px; line-height: 1.45; color: #3c4043; padding: 8px 0; text-align: justify; border-top: 1px solid #e8eaed; }
.g-desc b { display: block; font-size: 13px; color: #1f1f1f; margin-bottom: 2px; }
.g-linha { display: flex; align-items: center; gap: 14px; padding: 9px 0; border-top: 1px solid #e8eaed; font-size: 13.5px; line-height: 1.35; }
.g-linha .g-ic { width: 36px; height: 36px; border-radius: 10px; background: #f1f3f4; color: #1a73e8; display: grid; place-items: center; flex: none; }
.g-linha .g-txt { flex: 1; }
.g-linha > svg { color: #5f6368; width: 18px; height: 18px; }
.g-linha:hover .g-txt { color: #0b57d0; }
.g-rodape { height: 34px; display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 12px; color: #3c4043; border-top: 1px solid #e8eaed; }
.g-rodape svg { width: 12px; height: 12px; }

/* menos movimento: setas já escritas (depois das regras de escrita para valer) */
@media (prefers-reduced-motion: reduce) {
  #mural-setas.on text, #mural-setas.on path, #mural-setas.on path.ponta { transition: none; }
}

/* navegação pelo menu: textos e telas somem durante o zoom out e voltam no zoom in */
#palco.transitando .texto, #palco.transitando #dica-mural { opacity: 0 !important; transition: opacity 0.25s ease; }

/* menu Clientes / Serviços com o mural na tela: a palavra e a seta pedidas piscam suavemente */
#mural-setas .seta.pisca { animation: pisca 1.6s ease-in-out; }
@keyframes pisca {
  0%, 100% { opacity: 1; filter: none; }
  20%, 60% { opacity: 0.25; }
  40%, 80% { opacity: 1; filter: drop-shadow(0 0 14px rgba(242, 180, 87, 0.95)); }
}
@media (prefers-reduced-motion: reduce) {
  #mural-setas .seta.pisca { animation: none; filter: drop-shadow(0 0 14px rgba(242, 180, 87, 0.95)); }
}

/* celular: a agenda projetada ficaria pequena demais; vira uma folha de papel sobre a cena,
   com as duas páginas empilhadas (os !important vencem a projeção que o main.js aplica inline) */
@media (max-width: 760px) {
  .tela.agenda.livro {
    left: 12px !important; right: 12px; top: 50% !important; bottom: auto;
    width: auto !important; height: auto !important; max-height: calc(100% - 150px);
    transform: translateY(calc(-50% + 40px + var(--dy, 0px))) !important;
    grid-template-columns: 1fr; overflow-y: auto; overscroll-behavior: contain;
    background: linear-gradient(180deg, #e9dfcf, #e2d6c3); border-radius: 6px;
    box-shadow: 0 10px 40px rgba(20, 10, 3, 0.55); perspective: 1600px;
  }
  .livro .f-esq { padding: 26px 22px 6px; }
  .livro .f-dir { padding: 10px 22px 26px; }
  .livro .pg { gap: 10px; }
  .livro h2 { font-size: 1.6rem; }
  .livro .pergunta { font-size: 1.2rem; }
  .livro .corpo { font-size: 0.98rem; }
  .livro .apoio, .livro .nota { font-size: 0.9rem; }
  .livro .opcao { font-size: 0.95rem; padding: 10px 12px; }
  .livro .beneficios li { font-size: 0.92rem; }
  .livro .desistir { top: 10px; right: 12px; }
  .livro .criterio { font-size: 0.9rem; }
  .livro .dia { width: 36px; height: 34px; }
  .folha-vira.inteira { left: 0; width: 100%; transform-origin: 0 50%; animation: vira-sobe 0.75s cubic-bezier(0.45, 0.05, 0.3, 1) both; }
  .folha-vira.inteira.volta { transform-origin: 100% 50%; animation-name: vira-sobe-volta; }
  .folha-vira.inteira .face { background: linear-gradient(180deg, #e9dfcf, #e2d6c3); border-radius: 6px; padding: 0; }
  .folha-vira.inteira .frente > .pg:first-child { padding: 26px 22px 6px; height: auto; }
  .folha-vira.inteira .frente > .pg + .pg { padding: 10px 22px 26px; height: auto; }
}
@keyframes vira-sobe { from { transform: rotateY(0); opacity: 1; } 80% { opacity: 1; } to { transform: rotateY(-105deg); opacity: 0; } }
@keyframes vira-sobe-volta { from { transform: rotateY(0); opacity: 1; } 80% { opacity: 1; } to { transform: rotateY(105deg); opacity: 0; } }

/* parágrafos dos cards do mural justificados */
.texto.nicho .corpo, .texto.nicho p, .texto.servico .corpo, .texto.servico p { text-align: justify; hyphens: manual; }

/* cards com pagina propria: clique abre (zoom da foto) */
.hotspot-polaroid.tem-pagina { cursor: pointer; display: block; text-decoration: none; color: inherit; }
.hotspot-polaroid.tem-pagina:focus-visible { outline: 3px solid #f2b457; outline-offset: 3px; }
.zoom-veu, .zoom-foto { position: fixed; z-index: 9999; margin: 0; }
.zoom-veu { inset: 0; background: rgb(20, 12, 6); opacity: 0; pointer-events: none; }
.zoom-foto { object-fit: cover; pointer-events: none; transform-origin: center; transition: left 0.7s ease-in-out, top 0.7s ease-in-out, width 0.7s ease-in-out, height 0.7s ease-in-out, transform 0.7s ease-in-out; }
.zoom-veu.on { opacity: 0.35; transition: opacity 0.7s ease-in-out; }
@view-transition { navigation: auto; }

/* submenu do menu principal: hover/foco (desktop), caret + lista (mobile); igual ao das paginas internas */
#menu li.tem-sub { position: relative; }
#menu nav li.tem-sub > ul.sub { display: none; position: absolute; top: 100%; left: 0; flex-direction: column; align-items: stretch; gap: 2px; min-width: 210px; padding: 8px; background: rgba(20, 12, 6, 0.96); border: 1px solid rgba(251, 239, 220, 0.2); border-radius: 12px; z-index: 20; }
#menu nav li.tem-sub:hover > ul.sub, #menu nav li.tem-sub:focus-within > ul.sub, #menu nav li.tem-sub.aberto > ul.sub { display: flex; }
#menu nav ul.sub a { display: block; text-transform: none; letter-spacing: 0; font-size: 0.9rem; border-radius: 8px; white-space: nowrap; }
#menu .ver-mural, #menu .sub-b { display: none; }
#menu .sub-b:focus-visible { outline: 2px solid var(--ambar); outline-offset: 2px; }
@media (max-width: 760px) {
  #menu nav { width: 100%; }
  #menu li.tem-sub { position: static; display: flex; align-items: center; }
  #menu .sub-b { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin-left: -8px; background: none; border: 0; color: var(--creme); cursor: pointer; }
  #menu .sub-b i { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform 0.2s; }
  #menu .sub-b[aria-expanded="true"] i { transform: rotate(225deg); }
  #menu .ver-mural { display: block; }
  #menu nav li.tem-sub > ul.sub, #menu nav li.tem-sub:hover > ul.sub, #menu nav li.tem-sub:focus-within > ul.sub { display: none; position: absolute; top: 100%; left: 14px; right: 14px; flex-wrap: nowrap; max-height: 60vh; overflow-y: auto; gap: 2px; }
  #menu nav li.tem-sub.aberto > ul.sub { display: flex; }
  #menu nav ul.sub a { font-size: 0.95rem; padding: 10px 12px; }
}

/* Agendar: botao de destaque no menu (desktop e mobile) */
#menu nav a.destaque { background: var(--ambar); color: var(--fundo); font-weight: 700; border-color: var(--ambar); }
#menu nav a.destaque:hover, #menu nav a.destaque.ativo { background: var(--creme); color: var(--fundo); border-color: var(--creme); }
/* redes sociais no menu: ícones de traço fino, mesma cor e mesmo contorno de hover dos links */
#menu nav li.rede-1 { margin-left: clamp(0px, 1vw, 12px); }
#menu nav li.rede + li.rede { margin-left: calc(-1 * clamp(6px, 1.4vw, 18px)); }
#menu nav li.rede a { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; }
#menu nav li.rede svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.55)); }
/* PC: links numa linha só; em telas médias o menu encolhe espaços e letras para caber com as redes */
@media (min-width: 761px) { #menu nav a { white-space: nowrap; } }
@media (min-width: 761px) and (max-width: 1500px) {
  #menu { gap: 16px; }
  .marca { font-size: clamp(0.8rem, 1.05vw, 1.05rem); letter-spacing: 0.1em; }
  #menu ul { gap: clamp(0px, 0.4vw, 8px); flex-wrap: wrap; justify-content: flex-end; row-gap: 4px; }
  #menu nav a { padding: 6px clamp(5px, 0.75vw, 12px); font-size: clamp(0.66rem, 0.88vw, 0.82rem); letter-spacing: 0.05em; }
  #menu nav li.rede-1 { margin-left: 4px; }
  #menu nav li.rede + li.rede { margin-left: -4px; }
  #menu nav li.rede a { width: 28px; height: 28px; }
  #menu nav li.rede svg { width: 16px; height: 16px; }
}

/* mapa do site (home): painel aberto por botão discreto; links reais no HTML */
#abrir-mapa { position: fixed; left: 16px; bottom: 12px; z-index: 50; background: none; border: 0; padding: 6px 4px; font: inherit; font-size: 0.74rem; letter-spacing: 0.04em; color: var(--creme-2); opacity: 0.7; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-shadow: 0 1px 6px rgba(0,0,0,0.6); }
#abrir-mapa:hover, #abrir-mapa:focus-visible { opacity: 1; color: var(--ambar); }
#mapa-site { display: none; position: fixed; inset: 0; z-index: 60; overflow-y: auto; overscroll-behavior: contain; background: #130b05; color: var(--creme-2); padding: 56px 32px 40px; font-size: 0.82rem; line-height: 1.5; border-top: 1px solid rgba(242, 180, 87, 0.18); }
#mapa-site.aberto { display: block; }
#mapa-site .ms-fechar { position: absolute; top: 14px; right: 18px; background: none; border: 1px solid rgba(251, 239, 220, 0.3); border-radius: 999px; color: var(--creme); font: inherit; font-size: 0.78rem; padding: 6px 14px; cursor: pointer; }
#mapa-site .ms-corpo { max-width: 1180px; margin: 0 auto; }
#mapa-site h2 { font-family: var(--serif); font-size: 1rem; font-weight: 500; color: var(--creme); margin-bottom: 22px; }
#mapa-site .ms-grade { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 26px 32px; }
#mapa-site h3 { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ambar); margin-bottom: 8px; }
#mapa-site ul { list-style: none; }
#mapa-site li { margin: 3px 0; }
#mapa-site a { color: var(--creme-2); text-decoration: none; opacity: 0.85; }
#mapa-site a:hover, #mapa-site a:focus-visible { color: var(--ambar); opacity: 1; text-decoration: underline; }
#mapa-site .ms-fim { margin-top: 32px; padding-top: 16px; border-top: 1px solid rgba(251, 239, 220, 0.1); font-size: 0.74rem; opacity: 0.7; }
@media (max-width: 600px) { #mapa-site { padding: 40px 20px 32px; } #mapa-site .ms-grade { grid-template-columns: 1fr 1fr; gap: 22px 18px; } }

/* menu: contraste dos rotulos de topo sobre fundo claro (igual paginas internas) - so desktop */
@media (min-width: 761px) {
  #menu nav > ul > li > a:not(.destaque), #menu nav > ul > li > .sub-b { text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(0, 0, 0, 0.45); }
}

/* Desktop: menos percurso fisico, mantendo a timeline e os tempos originais. */
@media (min-width: 761px) and (hover: hover) {
  #rolagem { height: 1850vh !important; }
}
