/* =========================================================
   DOUCA — Link na Bio
   RHZ Agência · nov/2026

   Base: link na bio da C'est la Vie (ATIVOS\C'EST LA VIE\BIO), que
   veio da Shak's e da Latam Fit — mesmo motor de vídeos, rastreio e
   publicação, e a pilha de botões que aparece inteira sem rolar.
   Novidade: o lookbook da Coleção Aura logo abaixo do topo.
   Visual: "hora dourada", tirado do banner da Coleção Aura no site —
     fundo caramelo/terracota, luz de fim de tarde, creme da logo.
     A logo é um traço fino geométrico com arcos de meio-círculo
     (um sol nascendo sobre o O e o C): esse arco vira o grafismo
     das tampas, o separador da faixa e o topo em arco dos cartões.
     Elegante e sem enfeite.
   ========================================================= */

:root {
  color-scheme: only light;

  /* Marca (contraste AA conferido por fórmula, nov/2026) */
  --creme:         #F5F0E8;   /* fundo da página (o creme da logo)                */
  --papel:         #FBF8F3;   /* cartões claros                                   */
  --areia:         #EFE6DA;   /* cartão 03 · Atacado                              */
  --terra:         #7A4528;   /* a terracota do banner: cartão 01 (papel 7,3:1)   */
  --cacau:         #3A2418;   /* folha do topo, visualizador, fundo no PC         */
  --cacau-2:       #2A190F;   /* cacau pressionado                                */
  --dourado:       #E2B98A;   /* luz de fim de tarde: destaques sobre o escuro (8:1 no cacau) */
  --dourado-claro: #EDD0AE;   /* realce leve (hover)                              */
  --caramelo:      #8A5530;   /* caramelo legível sobre o claro (5,4:1 no creme)  */
  --tinta:         #2A1C14;   /* texto e títulos (14,5:1)                         */
  --tinta-2:       #6B5648;   /* texto secundário (6,1:1 no creme)                */

  --linha:   rgba(42, 28, 20, .12);
  --linha-2: rgba(42, 28, 20, .24);
  --sombra:  0 18px 40px -26px rgba(42, 28, 20, .45);

  /* Tipografia: Bodoni Moda (títulos; o "DOUCA" fino e contrastado do banner)
     + Montserrat (texto, a fonte do site) */
  --font-titulo: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --font:        "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Formas */
  --maxw: 460px;
  --pad: 18px;
  --raio: 24px;
  --tampa: 60px;    /* altura da faixa com grafismo no topo dos cartões */
  --sobra: 26px;    /* quanto a folha escura sobe por cima dos vídeos */
  --ease: cubic-bezier(.2, .8, .2, 1);
  --mola: cubic-bezier(.34, 1.56, .64, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  min-height: 100dvh;
  font-family: var(--font);
  font-weight: 400;
  color: var(--tinta);
  background: var(--creme);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

button { font: inherit; color: inherit; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Grafismo de arcos da logo (gerado pelo gerar-imagens.ps1) ---------- */
.padrao--arco-escuro { background: var(--terra) url("../img/padrao-arco-escuro.svg") 50% 50% / cover no-repeat; }
.padrao--arco-claro  { background: var(--papel) url("../img/padrao-arco-claro.svg") 50% 50% / cover no-repeat; }

/* ---------- Coluna ---------- */
.pagina {
  position: relative;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-bottom: calc(28px + env(safe-area-inset-bottom));
}

/* ============ TOPO / STORIES ============ */
.hero { position: relative; }

.stories {
  position: relative;
  width: 100%;          /* sem isto o teto de altura encolheria a largura junto */
  aspect-ratio: 4 / 3;
  /* Teto de altura: os quatro botões precisam aparecer sem rolar, inclusive no
     navegador do Instagram (que come o alto e o pé da tela). */
  max-height: max(38vh, 220px);
  max-height: max(38svh, 220px);
  overflow: hidden;
  background: var(--cacau);
  isolation: isolate;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.stories__poster,
.stories__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  display: block;
}

/* Os vídeos nascem transparentes e entram em crossfade sobre o poster */
.stories__video { opacity: 0; transition: opacity .5s ease; }
.stories__video.is-ativo { opacity: 1; }

/* Só uma sombra leve no alto, para as barras brancas aparecerem em vídeo claro */
.stories__veu {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(30, 18, 10, .36) 0%, rgba(30, 18, 10, 0) 26%);
}

/* Zonas de toque (terminam onde começa a folha) */
.stories__zona {
  position: absolute;
  top: 0;
  bottom: var(--sobra);
  z-index: 3;
  border: 0;
  background: transparent;
  cursor: pointer;
  touch-action: pan-y;
  -webkit-tap-highlight-color: transparent;
}
.stories__zona--ant  { left: 0;  width: 34%; }
.stories__zona--prox { right: 0; width: 66%; }
.stories__zona:focus-visible { outline: 2px solid var(--dourado); outline-offset: -6px; }

/* Topo: barras de progresso + perfil */
.stories__topo {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 4;
  padding: 10px 10px 0;
  pointer-events: none;
}

.stories__barras { display: flex; gap: 4px; filter: drop-shadow(0 1px 2px rgba(30, 18, 10, .35)); }
.barra {
  flex: 1 1 0;
  height: 2.5px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .45);
  overflow: hidden;
}
.barra i {
  display: block;
  width: 100%;
  height: 100%;
  background: #FFFFFF;
  transform: scaleX(0);
  transform-origin: left center;
}

.stories__perfil {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 9px;
}

.perfil {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 3px 12px 3px 3px;
  border-radius: 999px;
  background: rgba(251, 248, 243, .94);
  color: var(--tinta);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 6px 16px -8px rgba(30, 18, 10, .55);
}
.perfil__avatar { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; display: block; }
.perfil__detalhe { font-weight: 400; color: var(--tinta-2); white-space: nowrap; }
.perfil__detalhe:empty { display: none; }
.perfil:focus-visible { outline: 2px solid var(--dourado); outline-offset: 3px; }

.stories__pausa {
  pointer-events: auto;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(251, 248, 243, .94);
  color: var(--tinta);
  cursor: pointer;
  box-shadow: 0 6px 16px -8px rgba(30, 18, 10, .55);
}
.stories__pausa svg { width: 16px; height: 16px; }
.stories__pausa .icone-play { display: none; }
.stories.is-pausado .stories__pausa .icone-pausa { display: none; }
.stories.is-pausado .stories__pausa .icone-play { display: block; }
.stories__pausa:focus-visible { outline: 2px solid var(--dourado); outline-offset: 2px; }

/* Botão "Ver vídeos": só quando o navegador não deixa tocar sozinho */
.stories__play {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  display: none;
  align-items: center;
  gap: 9px;
  padding: 12px 20px 12px 16px;
  border: 0;
  border-radius: 999px;
  background: rgba(251, 248, 243, .95);
  color: var(--tinta);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 12px 26px -12px rgba(30, 18, 10, .6);
}
.stories__play svg { width: 16px; height: 16px; }
.stories__play:focus-visible { outline: 2px solid var(--dourado); outline-offset: 3px; }

.stories.is-bloqueado .stories__play { display: inline-flex; }
.stories.is-bloqueado .stories__pausa,
.stories.is-estatico .stories__pausa,
.stories.is-estatico .stories__barras,
.stories.is-estatico .stories__zona { display: none; }

/* "Ver com som": abre o vídeo completo do clipe que está na tela.
   Fica no canto esquerdo, longe do arco de sol da folha. */
.stories__som {
  position: absolute;
  z-index: 5;
  left: 10px;
  bottom: calc(var(--sobra) + 10px);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px 8px 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(251, 248, 243, .95);
  color: var(--tinta);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 10px 22px -12px rgba(30, 18, 10, .6);
  -webkit-tap-highlight-color: transparent;
  transition: transform .3s var(--ease);
}
.stories__som svg { width: 16px; height: 16px; }
.stories__som:active { transform: scale(.96); }
.stories__som:focus-visible { outline: 2px solid var(--dourado); outline-offset: 3px; }

/* ============ FOLHA CACAU (logo + selo + botões) ============ */
.folha {
  position: relative;
  z-index: 6;
  margin-top: calc(-1 * var(--sobra));
  padding: 22px var(--pad) 20px;
  border-radius: 28px 28px 0 0;
  background: var(--cacau);
  color: var(--papel);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
/* Sombras de folha de palmeira bem apagadas nos cantos, como no banner da Coleção Aura */
.folha::before,
.folha::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 230px;
  height: 230px;
  background: url("../img/palmeira.svg") 50% 50% / contain no-repeat;
  opacity: .07;
  pointer-events: none;
}
.folha::before { right: -64px; top: -44px; }
.folha::after  { left: -78px; bottom: -70px; transform: rotate(180deg); opacity: .05; }

/* A logo da DOUCA, larga e em creme: o traço é fino, então ela não cabe num medalhão */
.folha__marca {
  width: min(214px, 60%);
  margin: 0 auto;
  font-size: inherit;
}
.folha__marca img { display: block; width: 100%; height: auto; }

/* "Lançamento · Coleção Aura": caixa alta espaçada, como no banner */
.folha__selo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 12px auto 0;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--dourado);
}
.folha__selo::before,
.folha__selo::after {
  content: "";
  flex: 0 0 22px;
  height: 1px;
  background: currentColor;
  opacity: .6;
}

/* Frase na Montserrat Light: a mesma família do selo, só que fina e em
   minúsculas (pedido da agência, nov/2026: a Bodoni itálica ficava curva demais) */
.folha__frase {
  max-width: 330px;
  margin: 9px auto 0;
  font-family: var(--font);
  font-size: clamp(14px, 4vw, 15.5px);
  font-style: normal;
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: .04em;
  color: var(--papel);
  text-wrap: balance;
}
.folha__frase em { font-style: normal; font-weight: 400; color: var(--dourado); }

/* ---------- Pilha de botões do topo ---------- */
.botoes {
  display: grid;
  /* minmax(0, …): sem isso uma linha fina longa (white-space: nowrap) alarga a coluna */
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  max-width: 400px;
  margin: 14px auto 0;
  list-style: none;
  text-align: left;
}
.bt {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 52px;
  padding: 5px 14px 5px 5px;
  border-radius: 999px;
  background: rgba(251, 248, 243, .06);
  box-shadow: inset 0 0 0 1px rgba(251, 248, 243, .16);
  color: var(--papel);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform .3s var(--ease), background-color .3s ease, box-shadow .3s ease;
}
.bt:hover { background: rgba(251, 248, 243, .11); box-shadow: inset 0 0 0 1px rgba(226, 185, 138, .55); }
.bt:active { transform: scale(.98); }
.bt:focus-visible { outline: 2px solid var(--dourado); outline-offset: 3px; }

.bt__icone {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(226, 185, 138, .16);
  color: var(--dourado);
}
.bt__icone svg { width: 20px; height: 20px; }
.bt__texto { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.bt__rotulo {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .01em;
}
.bt__sub {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  line-height: 1.3;
  color: rgba(251, 248, 243, .68);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bt__sub em { font-style: normal; font-weight: 600; color: var(--dourado); }
.bt__sub i { flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: #5BBF73; box-shadow: 0 0 0 3px rgba(91, 191, 115, .22); }
.bt__seta { flex: 0 0 auto; display: grid; place-items: center; width: 20px; height: 20px; opacity: .55; transition: transform .3s var(--ease), opacity .3s ease; }
.bt__seta svg { width: 18px; height: 18px; }
.bt:hover .bt__seta { transform: translateX(3px); opacity: 1; }

/* O botão principal: cheio, no dourado */
.bt--destaque { background: var(--dourado); color: var(--cacau); box-shadow: 0 14px 28px -16px rgba(0, 0, 0, .6); }
.bt--destaque:hover { background: var(--dourado-claro); box-shadow: 0 14px 28px -16px rgba(0, 0, 0, .6); }
.bt--destaque .bt__icone { background: var(--cacau); color: var(--dourado); }
.bt--destaque .bt__sub { color: rgba(58, 36, 24, .74); }
.bt--destaque .bt__sub em { color: var(--cacau); }
.bt--destaque .bt__sub i { background: #2E8A47; box-shadow: 0 0 0 3px rgba(46, 138, 71, .2); }
.bt--destaque .bt__seta { opacity: .8; }

/* ---------- Faixa corrida ---------- */
.faixa {
  overflow: hidden;
  background: var(--dourado);
  color: var(--cacau);
  padding: 10px 0 9px;
}
.faixa__trilho {
  display: flex;
  width: max-content;
  animation: correr 55s linear infinite;
}
.faixa__item {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding-right: 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  white-space: nowrap;
}
.faixa__item svg { width: 13px; height: 13px; flex: 0 0 auto; }

@keyframes correr { to { transform: translateX(-50%); } }

/* ============ COLEÇÃO AURA (lookbook) ============ */
.colecao { padding: 34px 0 4px; scroll-margin-top: 6px; }
.colecao:empty { display: none; }
.colecao__topo { padding: 0 var(--pad); text-align: center; }
.colecao__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--caramelo);
}
.colecao__kicker::before,
.colecao__kicker::after { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .6; }
.colecao__titulo {
  margin-top: 8px;
  font-family: var(--font-titulo);
  font-size: clamp(40px, 12vw, 50px);
  font-weight: 400;
  line-height: 1;
  color: var(--tinta);
}
.colecao__titulo em { font-style: italic; color: var(--caramelo); }
.colecao__texto {
  max-width: 340px;
  margin: 12px auto 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--tinta-2);
  text-wrap: pretty;
}

.colecao__caixa { position: relative; }
.colecao__trilho {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--pad);
  padding: 22px var(--pad) 6px;
  list-style: none;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.colecao__trilho::-webkit-scrollbar { display: none; }

/* Um cartão e um pedaço do próximo: deixa claro que dá para arrastar */
.look { flex: 0 0 min(74%, 310px); scroll-snap-align: start; }
.look__link {
  display: block;
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.look__link:focus-visible { outline: 2px solid var(--tinta); outline-offset: 4px; border-radius: 18px; }

/* Foto 4:5 com o topo em arco (o sol da logo). 40% = metade da largura ÷ altura. */
.look__foto {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 50% 50% 18px 18px / 40% 40% 18px 18px;
  background: var(--terra);
  box-shadow: 0 22px 40px -26px rgba(58, 36, 24, .7);
  isolation: isolate;
}
/* Escurecida leve embaixo (para os pontinhos) e filete claro por dentro do arco */
.look__foto::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(30, 18, 10, 0) 70%, rgba(30, 18, 10, .32) 100%);
  pointer-events: none;
}
.look__foto::after {
  content: "";
  position: absolute;
  inset: 6px;
  z-index: 2;
  border: 1px solid rgba(251, 248, 243, .7);
  border-radius: inherit;
  pointer-events: none;
}
.look__img,
.look__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.look__img { opacity: 0; transition: opacity 1s ease, transform 1.2s var(--ease); }
.look__img.is-ativo { opacity: 1; }
.look__link:hover .look__img.is-ativo,
.look__link:hover .look__video { transform: scale(1.03); }
.look__video { transition: transform 1.2s var(--ease); }

.look__num {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  top: 20px;
  text-align: center;
  font-family: var(--font-titulo);
  font-style: italic;
  font-size: 15px;
  color: var(--papel);
  text-shadow: 0 1px 10px rgba(30, 18, 10, .45);
}
.look__selo {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 6px 9px;
  border-radius: 999px;
  background: rgba(251, 248, 243, .92);
  color: var(--tinta);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
}
.look__selo svg { width: 11px; height: 11px; }
.look__pontos {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 16px;
  display: flex;
  justify-content: center;
  gap: 5px;
}
.look__pontos i {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: rgba(251, 248, 243, .55);
  transition: width .4s var(--ease), background-color .4s ease;
}
.look__pontos i.is-ativo { width: 18px; background: var(--papel); }

.look__base {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 14px 4px 0;
}
.look__nome {
  font-family: var(--font-titulo);
  font-size: 27px;
  font-weight: 400;
  line-height: 1.04;
  color: var(--tinta);
}
.look__nome small {
  display: block;
  margin-bottom: 5px;
  font-family: var(--font);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--caramelo);
}
.look__linha { margin-top: 5px; font-size: 12.5px; color: var(--tinta-2); }
.look__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 14px 10px 18px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--linha-2);
  color: var(--tinta);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  transition: background-color .3s ease, color .3s ease, box-shadow .3s ease, transform .3s var(--ease);
}
.look__cta span { display: inline-flex; }
.look__cta svg { width: 15px; height: 15px; }
.look__link:hover .look__cta,
.look__cta--cheio { background: var(--cacau); color: var(--papel); box-shadow: none; }
.look__cta--cheio svg { color: var(--dourado); }
.look__link:active .look__cta { transform: scale(.97); }

/* Último cartão: "Todos os biquínis", título sobre a foto escurecida */
.look--final .look__foto::before { background: linear-gradient(to bottom, rgba(58, 36, 24, .2), rgba(58, 36, 24, .72)); }
.look__final-texto {
  position: absolute;
  z-index: 3;
  left: 18px;
  right: 18px;
  bottom: 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--papel);
}
.look__final-titulo { font-family: var(--font-titulo); font-size: 31px; line-height: 1.04; }
.look__final-titulo em { font-style: italic; color: var(--dourado); }
.look__final-linha { margin-top: 8px; font-size: 12.5px; color: rgba(251, 248, 243, .82); }

/* Contador "01 / 06" e a linha de progresso */
.colecao__rodape {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px var(--pad) 0;
}
.colecao__contador {
  flex: 0 0 auto;
  font-family: var(--font-titulo);
  font-style: italic;
  font-size: 14px;
  color: var(--tinta-2);
}
.colecao__contador b { font-weight: 500; color: var(--tinta); }
.colecao__trilha {
  position: relative;
  flex: 1 1 auto;
  height: 1px;
  background: var(--linha-2);
}
.colecao__trilha i {
  position: absolute;
  inset: -0.5px 0;
  background: var(--caramelo);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .45s var(--ease);
}

/* Setas só em computador (no celular se arrasta com o dedo) */
.colecao__seta {
  position: absolute;
  z-index: 4;
  top: calc(22px + 34%);
  display: none;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--papel);
  color: var(--tinta);
  cursor: pointer;
  box-shadow: 0 8px 18px -8px rgba(30, 18, 10, .5);
}
.colecao__seta svg { width: 18px; height: 18px; }
.colecao__seta--ant { left: 8px; }
.colecao__seta--prox { right: 8px; }
.colecao__seta:disabled { opacity: 0; pointer-events: none; }
.colecao__seta:focus-visible { outline: 2px solid var(--tinta); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .colecao__seta { display: grid; transition: opacity .3s ease; }
}

/* ============ CARTÕES ============ */
.portas {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px var(--pad) 0;
}

.porta {
  position: relative;
  overflow: hidden;
  border-radius: var(--raio);
  background: var(--papel);
  border: 1px solid var(--linha);
  box-shadow: var(--sombra);
  scroll-margin-top: 16px;
}
.porta:empty { display: none; }

/* Tampa com o grafismo de arcos */
.porta__tampa { height: var(--tampa); }

/* Medalhão que morde a borda da tampa */
.porta__emblema {
  position: absolute;
  top: calc(var(--tampa) - 25px);
  left: 20px;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--papel);
  color: var(--tinta);
  box-shadow: 0 0 0 1px var(--linha), 0 8px 18px -10px rgba(42, 28, 20, .55);
}
.porta__emblema svg { width: 23px; height: 23px; }

.porta__corpo { padding: 38px 20px 22px; }

.porta__kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--tinta-2);
}
.porta__kicker::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: currentColor;
  opacity: .35;
}
.porta__titulo {
  margin-top: 8px;
  font-family: var(--font-titulo);
  font-size: clamp(29px, 8.2vw, 34px);
  font-weight: 400;
  line-height: 1.06;
  color: var(--tinta);
}
.porta__titulo em { font-style: italic; color: var(--caramelo); }
.porta__texto {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.55;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
  list-style: none;
}
.chip {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
}

/* Botões em pílula (os dos cartões e o do player) */
.botao,
.reels__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 7px 7px 7px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  -webkit-tap-highlight-color: transparent;
  transition: transform .35s var(--ease), background-color .35s ease, box-shadow .35s ease;
}
.botao__seta {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  transition: transform .35s var(--ease);
}
.botao__seta svg { width: 19px; height: 19px; }
.botao:hover .botao__seta,
.reels__cta:hover .botao__seta { transform: translateX(3px) rotate(-45deg); }
.botao:active,
.reels__cta:active { transform: scale(.98); }

.botao { margin-top: 20px; }
.botao + .botao { margin-top: 8px; }

/* ---------- 01 · Site (terracota, grafismo de arcos dourado) ---------- */
.porta--site {
  background: var(--terra);
  border: 0;
  color: var(--papel);
  box-shadow: 0 24px 44px -26px rgba(42, 28, 20, .8);
}
.porta--site .porta__tampa { border-bottom: 1px solid rgba(226, 185, 138, .35); }
.porta--site .porta__emblema { background: var(--dourado); color: var(--cacau); box-shadow: 0 0 0 4px var(--terra); }
.porta--site .porta__kicker { color: rgba(251, 248, 243, .78); }
.porta--site .porta__titulo { color: var(--papel); }
.porta--site .porta__titulo em { color: var(--dourado); }
.porta--site .chip { border: 1px solid rgba(226, 185, 138, .55); color: var(--papel); }
.porta__link {
  display: block;
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.porta__link:focus-visible { outline: 2px solid var(--dourado); outline-offset: -6px; border-radius: var(--raio); }
.botao--dourado { background: var(--dourado); color: var(--cacau); }
.botao--dourado .botao__seta { background: var(--cacau); color: var(--dourado); }
.porta__link:hover .botao--dourado { background: var(--dourado-claro); }
.porta__link:hover .botao__seta { transform: translateX(3px) rotate(-45deg); }

/* Tíquete do cupom, colado no cartão terracota */
.cupom {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "k s" "c c" "u d";
  align-items: center;
  gap: 4px 12px;
  width: calc(100% - 32px);
  margin: 0 16px 16px;
  padding: 17px 16px 15px 18px;
  border: 0;
  border-radius: 16px;
  background: var(--papel);
  color: var(--tinta);
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .3s var(--ease);
}
/* Contorno pontilhado por dentro */
.cupom::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1.5px dashed rgba(138, 85, 48, .6);
  border-radius: 11px;
  pointer-events: none;
}
.cupom:active { transform: scale(.985); }
.cupom:focus-visible { outline: 2px solid var(--dourado); outline-offset: 3px; }
.cupom__kicker { grid-area: k; font-size: 10.5px; font-weight: 600; line-height: 1.35; letter-spacing: .18em; text-transform: uppercase; color: var(--tinta-2); }
/* O código fica sozinho na linha: código longo não pode quebrar */
.cupom__codigo {
  grid-area: c;
  margin: 2px 0 1px;
  font-family: var(--font);
  font-size: clamp(22px, 6.6vw, 27px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: .1em;
  color: var(--tinta);
  white-space: nowrap;
}
.cupom__selo {
  grid-area: s;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--cacau);
  color: var(--dourado);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .06em;
  white-space: nowrap;
}
.cupom__sub { grid-area: u; font-size: 12px; color: var(--tinta-2); }
.cupom__dica {
  grid-area: d;
  justify-self: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(42, 28, 20, .07);
  color: var(--tinta);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color .3s ease, color .3s ease;
}
.cupom.is-copiado .cupom__dica { background: var(--cacau); color: var(--dourado); }

/* ---------- Atalhos ---------- */
.atalhos { padding: 6px 2px 2px; text-align: center; }
.atalhos:empty { display: none; }
.atalhos__titulo {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--tinta-2);
}
.atalhos__lista {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  list-style: none;
}
.atalho {
  display: inline-flex;
  align-items: center;
  padding: 10px 17px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform .3s var(--ease), box-shadow .3s ease, background-color .3s ease;
}
.atalho:hover { transform: translateY(-2px); box-shadow: 0 10px 18px -12px rgba(42, 28, 20, .55); }
.atalho:active { transform: scale(.97); }
.atalho:focus-visible { outline: 2px solid var(--tinta); outline-offset: 2px; }
.atalho--claro  { background: var(--papel); color: var(--tinta); box-shadow: inset 0 0 0 1px var(--linha-2); }
.atalho--claro:hover { box-shadow: inset 0 0 0 1px var(--tinta), 0 10px 18px -12px rgba(42, 28, 20, .55); }
.atalho--escuro { background: var(--cacau); color: var(--papel); }
.atalho--dourado   { background: var(--dourado); color: var(--cacau); }

/* ---------- 02 · Atendimento (tampa clara com grafismo) ---------- */
.porta--whats .porta__tampa { border-bottom: 1px solid var(--linha); }

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 5px 12px 5px 10px;
  border-radius: 999px;
  background: rgba(42, 28, 20, .06);
  color: var(--tinta-2);
  font-size: 12.5px;
  font-weight: 500;
}
.status i { width: 7px; height: 7px; border-radius: 50%; background: #A8A196; }
.status.is-aberto { background: rgba(46, 138, 71, .1); color: #24683A; }
.status.is-aberto i { background: #2E8A47; box-shadow: 0 0 0 3px rgba(46, 138, 71, .2); }

.botao--escuro { background: var(--cacau); color: var(--papel); }
.botao--escuro .botao__seta { background: var(--dourado); color: var(--cacau); }
.botao--escuro .botao__seta svg { width: 21px; height: 21px; }
.botao--escuro:hover { background: var(--cacau-2); }
.botao--escuro:hover .botao__seta { transform: none; }
.botao--escuro:focus-visible { outline: 2px solid var(--tinta); outline-offset: 3px; }

/* Botão secundário em contorno (Grupo VIP, combinar visita) */
.botao--contorno { box-shadow: inset 0 0 0 1px var(--linha-2); color: var(--tinta); }
.botao--contorno .botao__seta { background: rgba(42, 28, 20, .06); color: var(--tinta); }
.botao--contorno .botao__seta svg { width: 20px; height: 20px; }
.botao--contorno:hover { box-shadow: inset 0 0 0 1px var(--tinta); }
.botao--contorno:hover .botao__seta { transform: none; }
.botao--contorno:focus-visible { outline: 2px solid var(--tinta); outline-offset: 3px; }

.assuntos { margin-top: 14px; }
.assuntos__rotulo { font-size: 12.5px; color: var(--tinta-2); }
.assuntos__lista { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px; list-style: none; }
.assunto {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--linha-2);
  color: var(--tinta);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .3s ease, box-shadow .3s ease;
}
.assunto:hover { background: rgba(226, 185, 138, .35); box-shadow: inset 0 0 0 1px transparent; }
.assunto:focus-visible { outline: 2px solid var(--tinta); outline-offset: 2px; }

.horario {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--linha);
  font-size: 13px;
  color: var(--tinta-2);
}
.horario svg { width: 16px; height: 16px; flex: 0 0 auto; color: var(--caramelo); }

/* ---------- 03 · Atacado (creme-areia, para se distinguir do 02) ---------- */
.porta--atacado { background: var(--areia); border-color: rgba(138, 85, 48, .2); }
.porta--atacado .porta__tampa { border-bottom: 1px solid rgba(138, 85, 48, .2); }
.porta--atacado .porta__emblema { background: var(--cacau); color: var(--dourado); box-shadow: 0 0 0 4px var(--areia); }
.porta--atacado .porta__kicker { color: var(--caramelo); }

.lista-check {
  display: grid;
  gap: 9px;
  margin-top: 16px;
  list-style: none;
}
.lista-check li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.45;
}
.lista-check li > span:first-child {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-top: 0;
  border-radius: 50%;
  background: rgba(138, 85, 48, .14);
  color: var(--caramelo);
}
.lista-check svg { width: 12px; height: 12px; }

/* ---------- Loja física (desligada: lojaFisica null no config.js) ---------- */
.loja__foto {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--cacau);
  -webkit-tap-highlight-color: transparent;
}
.loja__foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .7s var(--ease);
}
.loja__foto:hover img { transform: scale(1.04); }
.loja__foto:focus-visible { outline: 2px solid var(--tinta); outline-offset: -6px; }
.loja__foto::after {               /* leve escurecida embaixo, para o selo */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, .22) 100%);
  pointer-events: none;
}
.loja__selo {
  position: absolute;
  z-index: 1;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px 7px 9px;
  border-radius: 999px;
  background: var(--papel);
  color: var(--tinta);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .02em;
  box-shadow: 0 4px 14px -4px rgba(0, 0, 0, .3);
}
.loja__selo svg { width: 15px; height: 15px; }

.loja__corpo { padding: 22px 20px 20px; }
.porta__corpo.loja__corpo { padding-top: 38px; }

.loja__nota {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--tinta-2);
}
.loja__nota strong { font-family: var(--font-titulo); font-size: 21px; font-weight: 600; color: var(--tinta); }
.loja__estrelas { display: inline-flex; gap: 1px; color: #D9A92B; }
.loja__estrelas svg { width: 15px; height: 15px; }

.loja__linha {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--tinta);
}
.loja__icone {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 18px;
  height: 20px;
  color: var(--caramelo);
}
.loja__icone svg { width: 17px; height: 17px; }
.loja__end span { display: block; }
.loja__end span + span { color: var(--tinta-2); font-size: 12.5px; }

.loja__acoes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 18px;
}
.loja__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 12px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--linha-2);
  color: var(--tinta);
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .3s ease, box-shadow .3s ease, color .3s ease, transform .3s var(--ease);
}
.loja__btn-icone { display: inline-flex; width: 17px; height: 17px; flex: 0 0 auto; }
.loja__btn-icone svg { width: 100%; height: 100%; }
.loja__btn:hover { box-shadow: inset 0 0 0 1px var(--tinta); }
.loja__btn:active { transform: scale(.97); }
.loja__btn:focus-visible { outline: 2px solid var(--tinta); outline-offset: 2px; }

.loja__btn--cheio { background: var(--cacau); color: var(--papel); box-shadow: none; }
.loja__btn--cheio .loja__btn-icone { color: var(--dourado); }
.loja__btn--cheio:hover { background: var(--cacau-2); box-shadow: none; }
.loja__btn--estrela .loja__btn-icone { color: #D9A92B; }
/* Botão que ocupa a linha inteira (o "Combinar visita") */
.loja__btn--largo { grid-column: 1 / -1; }
.loja__btn--largo .loja__btn-icone { color: #2E8A47; }

/* ============ VEJA DE PERTO ============ */
.provas { margin-top: 38px; }
.provas:empty { display: none; }
.provas__topo { padding: 0 var(--pad); text-align: center; }
.provas__kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--tinta-2);
}
.provas__titulo {
  margin-top: 6px;
  font-family: var(--font-titulo);
  font-size: clamp(31px, 8.8vw, 38px);
  font-weight: 400;
  line-height: 1.06;
  color: var(--tinta);
}
.provas__titulo em { font-style: italic; color: var(--caramelo); }
.provas__sub {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--tinta-2);
}
.provas__sub svg { width: 17px; height: 17px; color: var(--caramelo); }

.provas__trilho-caixa { position: relative; }
.provas__trilho {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--pad);
  padding: 18px var(--pad) 10px;
  list-style: none;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.provas__trilho::-webkit-scrollbar { display: none; }

.prova { flex: 0 0 clamp(134px, 40%, 168px); scroll-snap-align: start; }
.prova__btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
/* Topo em arco, com filete claro por dentro (o arco da logo).
   28.125% = metade da largura ÷ altura (9:16). Com 999px o navegador
   encolheria os cantos de baixo. */
.prova__capa {
  position: relative;
  display: block;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 50% 50% 16px 16px / 28.125% 28.125% 16px 16px;
  background: var(--terra);
  box-shadow: var(--sombra);
}
.prova__capa::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(251, 248, 243, .7);
  border-radius: inherit;
  pointer-events: none;
}
.prova__capa img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease);
}
.prova__btn:hover .prova__capa img { transform: scale(1.04); }
.prova__play {
  position: absolute;
  z-index: 1;
  right: 11px;
  bottom: 11px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(251, 248, 243, .95);
  color: var(--tinta);
  box-shadow: 0 6px 14px -6px rgba(30, 18, 10, .55);
}
.prova__play svg { width: 15px; height: 15px; margin-left: 2px; }
.prova__nome {
  display: block;
  margin-top: 10px;
  font-family: var(--font-titulo);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.12;
  color: var(--tinta);
}
.prova__produto { display: block; margin-top: 3px; font-size: 12.5px; color: var(--tinta-2); }
.prova__btn:focus-visible { outline: 2px solid var(--tinta); outline-offset: 4px; border-radius: 16px; }

/* Setas só em computador (no celular se arrasta com o dedo) */
.provas__seta {
  position: absolute;
  z-index: 2;
  top: calc(18px + 30%);
  display: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--papel);
  color: var(--tinta);
  cursor: pointer;
  box-shadow: 0 8px 18px -8px rgba(30, 18, 10, .5);
}
.provas__seta svg { width: 18px; height: 18px; }
.provas__seta--ant { left: 8px; }
.provas__seta--prox { right: 8px; }
.provas__seta:disabled { opacity: 0; pointer-events: none; }
@media (hover: hover) and (pointer: fine) {
  .provas__seta { display: grid; transition: opacity .3s ease; }
}

/* ============ SOCIAL ============ */
.social {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
  padding: 0 var(--pad);
}
.social:empty { display: none; }
.social__link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px 11px 14px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--linha-2);
  color: var(--tinta);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .02em;
  transition: background-color .3s ease, color .3s ease, box-shadow .3s ease;
}
.social__link svg { width: 18px; height: 18px; }
.social__link:hover { background: var(--cacau); color: var(--papel); box-shadow: inset 0 0 0 1px var(--cacau); }
.social__link:focus-visible { outline: 2px solid var(--tinta); outline-offset: 3px; }

/* ============ RODAPÉ ============ */
/* Sem opacity no bloco: ele desbotaria também a logo azul da RHZ. */
.rodape {
  margin-top: 24px;
  text-align: center;
  font-size: 11.5px;
  letter-spacing: .04em;
  color: var(--tinta-2);
}
.rodape .coracao { color: var(--caramelo); }
.rodape__linha {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2px;
}
/* O arquivo da logo já traz o respiro da marca embutido, por isso a margem
   negativa: sem ela sobra um vão grande demais depois de "pela". */
.rodape__rhz { display: inline-flex; margin-left: -7px; transition: opacity .3s ease; }
.rodape__rhz img { width: 88px; height: auto; display: block; }
.rodape__rhz:hover { opacity: .7; }
.rodape__rhz:focus-visible { outline: 2px solid var(--tinta); outline-offset: 2px; border-radius: 6px; }

/* ============ VISUALIZADOR (dialog) ============ */
.reels {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--cacau);
  color: var(--papel);
  overflow: hidden;
}
.reels[open] { display: block; }
/* Cor literal: navegadores antigos não passam variáveis CSS para o ::backdrop */
.reels::backdrop { background: rgba(58, 36, 24, .97); }

.reels__caixa {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 480px;
  height: 100%;
  margin: 0 auto;
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
}

.reels__topo { flex: 0 0 auto; padding: 12px 14px 8px; }
.reels__barras { display: flex; gap: 4px; }
.reels__barras .barra { height: 3px; background: rgba(251, 248, 243, .22); }
.reels__barras .barra i { background: var(--dourado); }
.reels__linha { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.reels__quem { flex: 1 1 auto; min-width: 0; }
.reels__nome {
  display: block;
  font-family: var(--font-titulo);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.12;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.reels__produto { display: block; font-size: 12.5px; color: var(--dourado); }
.reels__icone {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(251, 248, 243, .1);
  color: var(--papel);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.reels__icone svg { width: 19px; height: 19px; }
.reels__icone:focus-visible { outline: 2px solid var(--dourado); outline-offset: 2px; }
.reels .icone-play,
.reels .icone-mudo { display: none; }
.reels.is-pausado .reels__icone .icone-pausa { display: none; }
.reels.is-pausado .reels__icone .icone-play { display: block; }
.reels.is-mudo .icone-som { display: none; }
.reels.is-mudo .icone-mudo { display: block; }

.reels__palco {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
/* Largura e altura em px vêm do main.js (cabe na tela mantendo a proporção) */
.reels__quadro {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 100%;
  overflow: hidden;
  border-radius: 22px;
  background: var(--terra);
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .6);
  transition: transform .25s var(--ease);
}
.reels__quadro video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: var(--terra);
}

.reels__carregando {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 38px;
  height: 38px;
  margin: -19px 0 0 -19px;
  border-radius: 50%;
  border: 3px solid rgba(251, 248, 243, .35);
  border-top-color: var(--dourado);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.reels.is-carregando .reels__carregando { opacity: 1; animation: girar .8s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }

.reels__pausado {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  border-radius: 50%;
  background: rgba(251, 248, 243, .92);
  color: var(--tinta);
  opacity: 0;
  transform: scale(.8);
  pointer-events: none;
  transition: opacity .2s ease, transform .3s var(--mola);
}
.reels__pausado svg { width: 26px; height: 26px; margin-left: 3px; }
.reels.is-pausado .reels__pausado { opacity: 1; transform: none; }

.reels__ativar {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 10px 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(251, 248, 243, .96);
  color: var(--tinta);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 10px 22px -10px rgba(30, 18, 10, .6);
}
.reels__ativar svg { width: 18px; height: 18px; }

.reels__aviso {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 20px;
  background: rgba(58, 36, 24, .9);
  color: var(--papel);
  text-align: center;
  font-size: 15px;
  font-weight: 500;
}
.reels__aviso-acoes { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.reels__aviso button {
  padding: 10px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--dourado);
  color: var(--cacau);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
}
.reels__aviso button + button { background: transparent; color: var(--papel); box-shadow: inset 0 0 0 1px rgba(251, 248, 243, .4); }

.reels__seta {
  position: absolute;
  z-index: 2;
  top: 50%;
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  border: 0;
  border-radius: 50%;
  background: var(--papel);
  color: var(--tinta);
  cursor: pointer;
  box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .5);
}
.reels__seta svg { width: 20px; height: 20px; }
.reels__seta--ant { left: -6px; }
.reels__seta--prox { right: -6px; }
@media (hover: hover) and (pointer: fine) {
  .reels__seta { display: grid; }
}

.reels__base { flex: 0 0 auto; padding: 12px 14px 14px; }
.reels__cta { background: var(--dourado); color: var(--cacau); box-shadow: 0 14px 28px -16px rgba(0, 0, 0, .6); }
.reels__cta .botao__seta { background: var(--cacau); color: var(--dourado); }
.reels__cta:hover { background: var(--dourado-claro); }
.reels__cta:focus-visible { outline: 2px solid var(--dourado); outline-offset: 3px; }

/* Página travada enquanto o visualizador está aberto */
html.is-travado,
html.is-travado body { overflow: hidden; overscroll-behavior: none; }
html.is-travado body { position: fixed; left: 0; right: 0; }

/* ============ ANIMAÇÕES DE ENTRADA ============
   O estado inicial escondido só vale com a classe .js (posta no <head>).
   Sem JS — ou se o requestAnimationFrame não disparar (aba em segundo
   plano, economia de bateria do iOS) — a página nasce visível.
   Os botões do topo NÃO entram com animação: são a razão da página. */
.js .reveal { opacity: 0; transform: translateY(16px); }
.is-ready .reveal {
  animation: subir .7s var(--ease) forwards;
  animation-delay: var(--delay, 0ms);
}
@keyframes subir { to { opacity: 1; transform: translateY(0); } }

/* ============ TELAS BAIXAS (celular pequeno no navegador do Instagram) ============ */
@media (max-height: 620px) {
  .folha { padding-top: 18px; }
  .folha__marca { width: min(184px, 52%); }
  .folha__selo { margin-top: 9px; }
  .folha__frase { font-size: 13.5px; line-height: 1.45; }
  .botoes { gap: 6px; margin-top: 10px; }
  .bt { min-height: 48px; }
  .bt__icone { width: 38px; height: 38px; }
}

/* ============ TELAS MAIORES ============ */
@media (min-width: 600px) {
  body { padding: 40px 16px; background: var(--cacau); }
  .pagina {
    overflow: hidden;
    border-radius: 36px;
    background: var(--creme);
    box-shadow: 0 0 0 1px rgba(226, 185, 138, .3), 0 40px 80px -44px rgba(0, 0, 0, .7);
    padding-bottom: 30px;
  }
  .stories { max-height: none; }
}

/* ============ MOVIMENTO REDUZIDO ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .faixa__trilho { animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; animation: none !important; }
  * { transition-duration: .01ms !important; }
}
