/* Base comum das seções — Yasmim Albuquerque. Não editar nas partes; pedidos vão para ajustes.css */
:root {
  --ameixa: #2e1b26;
  --ameixa-2: #42283a;
  --t-secao: clamp(2.2rem, 1.1rem + 3.6vw, 4.6rem);
  --t-corpo: clamp(1rem, .95rem + .3vw, 1.18rem);
  --t-mini: .875rem;
  --respiro: clamp(88px, 12vw, 168px);
  --largura: 1360px;
  --curva: cubic-bezier(.2, .8, .2, 1);
  --curva-pouso: cubic-bezier(.25, 1.35, .4, 1);
}
html { scroll-behavior: smooth; }
main { display: block; }

.wf-secao { position: relative; isolation: isolate; padding: var(--respiro) var(--margem); overflow-x: clip; }
.wf-dentro { width: 100%; max-width: var(--largura); margin: 0 auto; position: relative; }

/* superfícies */
.wf-papel { background: var(--papel); }
.wf-escura { background: var(--ameixa); color: var(--creme); }
.wf-escura .wf-rotulo { color: color-mix(in oklab, var(--creme) 78%, transparent); }
.wf-escura .wf-rotulo::before { background: var(--manteiga); }

/* malha por seção: defina --m1..--m4 na seção; máscara vertical apaga emendas */
.wf-malha { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 86%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 86%, transparent 100%); }
.wf-malha i { position: absolute; border-radius: 50%; width: 64vmax; height: 64vmax; animation: deriva1 34s ease-in-out infinite alternate; }
.wf-malha i:nth-child(1) { left: -22vmax; top: -12vmax; background: radial-gradient(circle closest-side in oklab, var(--m1, var(--lilas-nevoa)), transparent); }
.wf-malha i:nth-child(2) { right: -24vmax; top: 10%; background: radial-gradient(circle closest-side in oklab, var(--m2, var(--manteiga)), transparent); animation: deriva2 29s ease-in-out infinite alternate; }
.wf-malha i:nth-child(3) { left: 20%; bottom: -30vmax; background: radial-gradient(circle closest-side in oklab, var(--m3, var(--rosa-nevoa)), transparent); animation: deriva3 37s ease-in-out infinite alternate; }
.wf-malha i:nth-child(4) { right: 10%; bottom: -36vmax; width: 48vmax; height: 48vmax; background: radial-gradient(circle closest-side in oklab, var(--m4, var(--pessego)), transparent); animation-duration: 26s; }

/* tipo */
.wf-rotulo { margin: 0 0 clamp(14px, 2vw, 24px); display: flex; align-items: center; gap: 10px;
  font-family: var(--f-texto); font-size: .82rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--tinta-2); }
.wf-rotulo::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--lilas); flex: none; }
.wf-titulo { margin: 0; font-family: var(--f-titulo); font-weight: 700; font-size: var(--t-secao); line-height: 1.0; letter-spacing: -.02em;
  font-variation-settings: "INFM" 0, "BNCE" 0; text-wrap: balance; }
.wf-titulo em { font-style: normal; color: var(--framboesa-escura); }
.wf-escura .wf-titulo em { color: var(--manteiga); }
.wf-texto { font-size: var(--t-corpo); line-height: 1.6; color: var(--tinta-2); max-width: 36em; text-wrap: pretty; }
.wf-escura .wf-texto { color: color-mix(in oklab, var(--creme) 82%, transparent); }
.wf-fala { font-family: var(--f-titulo); font-weight: 450; font-variation-settings: "INFM" 75, "BNCE" 25; }

/* giz: use class="giz" no <svg> e class="tr" pathLength="1" style="--d:..;--t:.." em cada path.
   Nas seções o traço espera a seção (ou o [data-rev] ancestral) ganhar .wf-visto. */
.js main .giz .tr { animation-play-state: paused; }
.js main .wf-visto .giz .tr, .js main .wf-visto.giz .tr { animation-play-state: running; }
.wf-escura .giz path { stroke: var(--manteiga); }

/* bilhete de caderno */
.wf-bilhete {
  --rot: 1.8deg;
  position: relative; margin: 0;
  padding: 24px 24px 20px 46px;
  background:
    linear-gradient(90deg, transparent 30px, oklch(80% .07 10 / .45) 30px 31.5px, transparent 31.5px),
    repeating-linear-gradient(180deg, transparent 0 27px, oklch(82% .04 290 / .45) 27px 28px),
    var(--papel);
  background-position: 0 0, 0 10px, 0 0;
  border-radius: 3px 4px 6px 3px;
  box-shadow: 0 1px 1px rgb(60 30 40 / .06), 0 14px 30px -12px rgb(70 40 50 / .32), 0 34px 60px -30px rgb(70 40 50 / .25);
  transform: rotate(var(--rot));
  color: var(--tinta);
}
.wf-bilhete blockquote, .wf-bilhete p { margin: 0; font-family: var(--f-titulo); font-weight: 450; font-size: 1.06rem; line-height: 28px; font-variation-settings: "INFM" 75, "BNCE" 25; }
.wf-bilhete figcaption, .wf-bilhete cite { display: block; margin-top: 8px; font-family: var(--f-texto); font-style: normal; font-size: var(--t-mini); color: var(--tinta-2); font-weight: 450; }
.wf-fita { position: absolute; top: -13px; left: 50%; width: 92px; height: 26px; transform: translateX(-50%) rotate(-4deg);
  background: oklch(92% .07 92 / .78); box-shadow: 0 1px 2px rgb(0 0 0 / .06);
  clip-path: polygon(3% 0, 97% 4%, 100% 30%, 96% 55%, 99% 100%, 2% 96%, 0 70%, 4% 45%, 0 18%); }
.wf-estrelas { display: inline-flex; gap: 2px; }
.wf-estrelas i { width: 15px; height: 15px; background: var(--estrela); clip-path: polygon(50% 0, 61.8% 35.4%, 100% 38.2%, 69.1% 61.8%, 80.9% 100%, 50% 76.4%, 19.1% 100%, 30.9% 61.8%, 0 38.2%, 38.2% 35.4%); }

/* ações */
.wf-botao { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 15px 28px 15px 24px; border-radius: 999px;
  background: var(--framboesa-escura); color: #fff; text-decoration: none; font-family: var(--f-texto); font-weight: 500; font-size: 1.05rem;
  box-shadow: 0 1px 0 rgb(255 255 255 / .25) inset, 0 12px 26px -12px oklch(45% .16 5 / .7); transition: transform .25s cubic-bezier(.3,1.6,.5,1), background .25s; }
.wf-botao:hover { transform: translateY(-2px); background: var(--framboesa); }
.wf-botao svg { width: 22px; height: 22px; fill: currentColor; }
.wf-link { display: inline-flex; align-items: center; min-height: 48px; color: inherit; font-weight: 450; text-decoration: none; border-bottom: 1.5px solid color-mix(in oklab, var(--lilas) 60%, transparent); }
.wf-link:hover { border-color: var(--framboesa); }
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--lilas); outline-offset: 3px; border-radius: 6px; }

/* entrada por rolagem */
.js [data-rev] { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--curva), transform .8s var(--curva); transition-delay: var(--atraso, 0s); }
.js [data-rev].wf-visto { opacity: 1; transform: none; }
.js [data-rev="pouso"] { transform: translate(14px, -30px) rotate(calc(var(--rot, 0deg) + 7deg)); transition-timing-function: var(--curva-pouso); }
.js [data-rev="pouso"].wf-visto { transform: rotate(var(--rot, 0deg)); }

/* botão flutuante do WhatsApp (celular e desktop) */
.wf-zap-flutua { position: fixed; z-index: 40; right: 18px; bottom: 18px; display: inline-flex; align-items: center; gap: 8px;
  min-height: 54px; padding: 0 20px 0 16px; border-radius: 999px; background: #1f9c5a; color: #fff; text-decoration: none;
  font-family: var(--f-texto); font-weight: 500; box-shadow: 0 14px 30px -12px rgb(20 60 40 / .6);
  opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .4s var(--curva), transform .4s var(--curva); }
.wf-zap-flutua svg { width: 24px; height: 24px; fill: currentColor; }
.wf-zap-flutua.wf-mostra { opacity: 1; transform: none; pointer-events: auto; }
@media (max-width: 820px) { .wf-zap-flutua { padding: 0; width: 54px; justify-content: center; } .wf-zap-flutua span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }
