/* Nyeleti Beauty · LT Labs */
:root {
  --cacau: #2E1E17;
  --cacau-2: #4A3227;
  --nude: #E9B8A6;
  --nude-claro: #F5DDD3;
  --cobre: #B87346;
  --cobre-escuro: #9A5D36;
  --marfim: #FBF6F1;
  --texto: #2E1E17;
  --texto-suave: #6E5A50;
  --linha: rgba(46, 30, 23, .12);
  --raio: 22px;
  --sombra: 0 18px 50px -24px rgba(46, 30, 23, .35);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --topo: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--topo); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.6; color: var(--texto); background: var(--marfim); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; letter-spacing: -.02em; margin: 0; }

/* Botões */
.botao { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 50px; padding: 0 1.6em; border-radius: 999px; background: var(--cobre); color: #fff; font: 500 1rem/1 var(--sans); text-decoration: none; border: 1.5px solid var(--cobre); cursor: pointer; transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease); will-change: transform; }
.botao:hover { background: var(--cobre-escuro); border-color: var(--cobre-escuro); }
.botao-linha { background: transparent; color: var(--cacau); border-color: var(--cacau); }
.botao-linha:hover { background: var(--cacau); color: var(--marfim); border-color: var(--cacau); }
.botao:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--cobre); outline-offset: 3px; }

/* Topo */
.topo { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--topo); display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(20px, 4vw, 56px); transition: background .4s, box-shadow .4s, height .4s; }
.topo.cheio { background: rgba(251, 246, 241, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--linha); }
.marca { display: flex; align-items: center; gap: .55em; text-decoration: none; font: 600 1.45rem/1 var(--serif); letter-spacing: -.01em; }
.marca em { font-style: italic; font-weight: 400; color: var(--cobre); }
.marca-estrela { width: 26px; height: 26px; fill: var(--cobre); transition: transform .8s var(--ease); }
.marca:hover .marca-estrela { transform: rotate(72deg); }
.menu { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 34px); }
.menu a:not(.botao) { text-decoration: none; font-size: .97rem; position: relative; }
.menu a:not(.botao)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px; background: var(--cobre); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.menu a:not(.botao):hover::after { transform: scaleX(1); }
.botao-menu { min-height: 44px; padding: 0 1.3em; }
.topo:not(.cheio) .menu { padding: 5px 5px 5px 26px; border-radius: 999px; background: rgba(251, 246, 241, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 8px 30px -18px rgba(46, 30, 23, .4); }
.menu-abrir { display: none; }

/* Capa */
.capa { position: relative; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; overflow: hidden; background: #F3E6DC; }
.capa-foto { position: absolute; inset: 0; }
.capa-foto img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; transform: scale(1.08); transition: transform 2.4s var(--ease); }
.capa.visivel .capa-foto img { transform: scale(1); }
.capa::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(251, 246, 241, .96) 0%, rgba(251, 246, 241, .85) 34%, rgba(251, 246, 241, 0) 58%); }
.capa-texto { position: relative; z-index: 2; padding: calc(var(--topo) + 40px) clamp(20px, 4vw, 56px) 60px; max-width: 640px; }
.selo { display: inline-flex; align-items: center; gap: .6em; margin: 0 0 1.4em; padding: .45em 1em; border-radius: 999px; background: rgba(255, 255, 255, .7); border: 1px solid var(--linha); font-size: .88rem; color: var(--texto-suave); }
.ponto { width: 8px; height: 8px; border-radius: 50%; background: #9C8B82; }
.ponto.aberto { background: #3F9B5A; box-shadow: 0 0 0 0 rgba(63, 155, 90, .5); animation: pulso 2s infinite; }
@keyframes pulso { 70% { box-shadow: 0 0 0 8px rgba(63, 155, 90, 0); } 100% { box-shadow: 0 0 0 0 rgba(63, 155, 90, 0); } }
.capa h1 { font-size: clamp(2.6rem, 5.2vw, 4.6rem); }
.capa-sub { margin: 1.2em 0 2em; font-size: 1.12rem; color: var(--texto-suave); max-width: 33em; }
.capa-botoes { display: flex; flex-wrap: wrap; gap: 12px; }
.capa-factos { list-style: none; display: flex; gap: clamp(18px, 3vw, 40px); margin: 2.6em 0 0; padding: 1.4em 0 0; border-top: 1px solid var(--linha); color: var(--texto-suave); font-size: .92rem; }
.capa-factos strong { display: block; font: 400 1.9rem/1.1 var(--serif); color: var(--cacau); }

/* Títulos palavra a palavra e entradas */
.titulo-palavras .palavra { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; }
.titulo-palavras .palavra > span { display: inline-block; transform: translateY(105%); transition: transform 1.2s var(--ease); }
.titulo-palavras.visivel .palavra > span { transform: none; }
.entra { opacity: 0; transform: translateY(28px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }
.entra.visivel { opacity: 1; transform: none; }

/* Barra fixa (telemóvel) */
.barra-fixa { display: none; }

/* Telemóvel */
@media (max-width: 760px) {
  :root { --topo: 64px; }
  body { font-size: 16px; padding-bottom: 84px; }
  .menu-abrir { display: grid; place-content: center; gap: 7px; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--cacau); cursor: pointer; z-index: 60; position: relative; }
  .menu-abrir span { display: block; width: 20px; height: 1.5px; background: var(--marfim); transition: transform .4s var(--ease); }
  .menu-abrir[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
  .menu-abrir[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }
  .menu { position: fixed; inset: 0; z-index: 55; flex-direction: column; justify-content: center; gap: 22px; background: var(--cacau); clip-path: circle(0 at calc(100% - 43px) 32px); transition: clip-path .7s var(--ease); visibility: hidden; }
  .menu.aberto { clip-path: circle(150% at calc(100% - 43px) 32px); visibility: visible; }
  .menu a:not(.botao) { color: var(--marfim); font: 400 2rem/1.2 var(--serif); }
  .menu .botao-menu { margin-top: 10px; }
  .topo:not(.cheio) .menu { padding: 0; background: var(--cacau); box-shadow: none; border-radius: 0; }
  .topo:not(.cheio) .marca { padding: 8px 14px 8px 10px; margin-left: -10px; border-radius: 999px; background: rgba(251, 246, 241, .8); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
  body.menu-on .topo .marca { background: none; color: var(--marfim); position: relative; z-index: 60; }

  .capa { display: block; min-height: 0; background: var(--marfim); }
  .capa::before { display: none; }
  .capa-foto { position: relative; display: block; height: 52svh; min-height: 330px; }
  .capa-foto::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(transparent, var(--marfim)); }
  .capa-foto img { object-position: 76% 30%; }
  .capa-texto { padding: 0 20px 40px; margin-top: -60px; }
  .capa-sub { font-size: 1.02rem; }
  .capa-botoes .botao { flex: 1 1 100%; }

  .barra-fixa { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); padding: 8px; border-radius: 999px; background: rgba(46, 30, 23, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--sombra); transform: translateY(140%); transition: transform .6s var(--ease); }
  .barra-fixa.mostra { transform: none; }
  .barra-fixa .botao { min-height: 48px; }
  .botao-wpp { background: #25D366; border-color: #25D366; color: #0B3D20; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .entra, .titulo-palavras .palavra > span, .capa-foto img { opacity: 1 !important; transform: none !important; }
}

/* Janela do modo demonstração */
.demo-wpp { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(46, 30, 23, .55); backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
.demo-wpp.mostra { opacity: 1; visibility: visible; }
.demo-caixa { width: min(460px, 100%); background: var(--marfim); border-radius: var(--raio); padding: 26px; box-shadow: var(--sombra); }
.demo-etiqueta { margin: 0 0 12px; font-size: .85rem; color: var(--cobre-escuro); font-weight: 500; }
.demo-msg { margin: 0 0 18px; padding: 16px; border-radius: 14px 14px 14px 4px; background: #DCF8C6; color: #1B2A1E; font: 400 .95rem/1.5 var(--sans); white-space: pre-wrap; max-height: 50vh; overflow: auto; }
