/* Hero aprovado (A · Nas suas linhas). Classes com prefixo a- são do hero. */
/* cabeçalho */
.a-topo {
  position: absolute; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.3rem var(--margem);
}
.a-logo { display: block; line-height: 0; color: var(--cacau); }
.a-logo-img {
  display: block; width: clamp(150px, 15vw, 196px); aspect-ratio: 2520 / 470;
  background: currentColor;
  -webkit-mask: url(../img/logo-so-assinatura.svg) no-repeat center / contain;
  mask: url(../img/logo-so-assinatura.svg) no-repeat center / contain;
}
.a-agendar {
  font-weight: 600; font-size: 1rem; text-decoration: none;
  padding: .55rem 1.1rem; border-radius: 99px;
  border: 1.5px solid color-mix(in oklab, var(--cacau) 60%, transparent);
  transition: background .25s, color .25s;
}
.a-agendar:hover, .a-agendar:focus-visible { background: var(--cacau); color: var(--creme); }
.a-nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem); }
.a-nav ul { display: flex; gap: clamp(1rem, 2vw, 1.8rem); list-style: none; font-size: 1rem; font-weight: 500; }
.a-nav ul a { text-decoration: none; color: var(--cacau-2); padding: .3rem 0; background: linear-gradient(var(--coral), var(--coral)) 0 100% / 0 1.5px no-repeat; transition: background-size .35s var(--entra), color .25s; }
.a-nav ul a:hover, .a-nav ul a:focus-visible { color: var(--cacau); background-size: 100% 1.5px; }
@media (max-width: 1100px) { .a-nav ul { display: none; } }

/* hero */
.a-hero {
  position: relative; overflow: clip;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 35rem) minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  grid-template-areas: "texto cena" "apoio cena";
  column-gap: clamp(1rem, 3vw, 3rem);
  padding: var(--topo) var(--margem) 0;
}

/* malha */
.a-malha { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.a-malha i { position: absolute; display: block; border-radius: 50%; will-change: transform; }
.a-malha i:nth-child(1) {
  width: 78vmax; height: 78vmax; right: -22vmax; top: -10vmax;
  background: radial-gradient(closest-side in oklab, color-mix(in oklab, var(--pele) 70%, var(--creme)), transparent);
  animation: a-deriva1 34s ease-in-out infinite alternate;
}
.a-malha i:nth-child(2) {
  width: 56vmax; height: 56vmax; right: 4vmax; bottom: -26vmax;
  background: radial-gradient(closest-side in oklab, color-mix(in oklab, var(--rose) 75%, var(--coral) 8%), transparent);
  opacity: .8;
  animation: a-deriva2 27s ease-in-out infinite alternate;
}
.a-malha i:nth-child(3) {
  width: 60vmax; height: 60vmax; left: -24vmax; top: 20vmax;
  background: radial-gradient(closest-side in oklab, color-mix(in oklab, var(--creme-2) 60%, var(--pele-2) 40%), transparent);
  opacity: .55;
  animation: a-deriva1 39s ease-in-out infinite alternate-reverse;
}
@keyframes a-deriva1 { to { transform: translate(-6vmax, 5vmax) scale(1.06); } }
@keyframes a-deriva2 { to { transform: translate(5vmax, -6vmax) scale(.94); } }

/* texto */
.a-texto { grid-area: texto; position: relative; z-index: 3; align-self: end; padding-bottom: 1.6rem; }
.a-sobre {
  font-size: .95rem; font-weight: 500; letter-spacing: .02em;
  color: var(--coral-fundo); margin-bottom: 1rem;
}
.a-titulo {
  font-family: var(--f-titulo); font-weight: 700;
  font-size: clamp(2.6rem, 4.6vw, 4.6rem);
  line-height: 1.02; letter-spacing: -.012em;
  margin: 0; color: var(--cacau);
  text-wrap: balance;
}
.a-grifo { position: relative; white-space: nowrap; }
.a-grifo svg {
  position: absolute; left: -2%; width: 104%; bottom: -.16em; height: .3em;
  overflow: visible; pointer-events: none;
}
.a-grifo path {
  fill: none; stroke: var(--coral); stroke-width: 3.2; stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.a-grifo path + path { stroke-width: 2; opacity: .7; }

.a-apoio { grid-area: apoio; position: relative; z-index: 3; padding-bottom: 2.6rem; max-width: 33rem; }
.a-quem { font-size: clamp(1.125rem, 1.35vw, 1.25rem); color: var(--cacau-2); }
.a-quem strong { color: var(--cacau); font-weight: 600; }
.a-acoes { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.4rem; margin-top: 1.5rem; }
.a-btn {
  display: inline-flex; align-items: center; gap: .6rem;
  background: var(--cacau); color: var(--creme);
  font-weight: 600; font-size: 1.08rem; text-decoration: none;
  padding: .95rem 1.45rem; border-radius: 99px;
  box-shadow: 0 10px 24px -14px rgba(43, 33, 27, .7);
  transition: background .25s, transform .25s;
}
.a-btn svg { width: 1.25rem; height: 1.25rem; fill: currentColor; }
.a-btn:hover, .a-btn:focus-visible { background: var(--coral-fundo); transform: translateY(-1px); }
.a-sec {
  font-weight: 500; text-decoration: underline; text-underline-offset: .25em;
  text-decoration-color: color-mix(in oklab, var(--coral) 70%, transparent);
  text-decoration-thickness: 1.5px;
}
.a-sec:hover { color: var(--coral-fundo); }

.a-prova {
  margin-top: 1.8rem; padding-top: 1.2rem;
  border-top: 1px solid color-mix(in oklab, var(--cacau) 18%, transparent);
}
.a-nota { font-size: 1rem; }
.a-estrelas { color: var(--coral); letter-spacing: .08em; }
.a-prova blockquote { margin-top: .5rem; }
.a-prova blockquote p {
  font-family: var(--f-titulo); font-weight: 700; font-size: 1.12rem; line-height: 1.35;
  color: var(--cacau);
}
.a-prova cite { display: block; font-style: normal; font-size: .92rem; color: var(--cacau-2); margin-top: .25rem; }
.a-miudo { margin-top: 1.1rem; font-size: .84rem; line-height: 1.5; color: var(--cacau-2); }

/* cena */
.a-cena { grid-area: cena; position: relative; z-index: 2; min-height: 34rem; }
.a-folha {
  position: absolute; left: 0; top: 7%;
  width: clamp(280px, 52%, 400px); aspect-ratio: 4 / 5;
  background:
    radial-gradient(120% 90% at 30% 20%, #fbf8f2, var(--papel) 60%, #f1e8db);
  border-radius: 3px;
  box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 24px 40px -26px rgba(74, 46, 30, .45), 0 2px 6px rgba(74, 46, 30, .08);
  transform: rotate(-2.2deg);
  transform-origin: 50% 60%;
}
.a-desenho { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: manipulation; cursor: crosshair; }
.a-lavado { fill: url(#a-pele); opacity: .78; }
.a-cabelo { fill: url(#a-fio); opacity: .7; }
.a-orelha { fill: #e3b69b; }
.a-contorno path { fill: none; stroke: #3a2a20; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.a-contorno path.a-leve { stroke-width: .9; opacity: .45; }
.a-fibras path {
  fill: none; stroke: var(--coral); stroke-width: .95; stroke-linecap: round; opacity: .8;
  transition: stroke .35s, stroke-width .35s, opacity .35s;
}
.a-fibras.tem-acesa path { opacity: .5; }
.a-fibras path.acesa { stroke: var(--coral-fundo); stroke-width: 1.35; opacity: 1; }
.a-marcas .sob { fill: none; stroke: rgba(58, 38, 28, .38); stroke-width: 3.6; stroke-linecap: round; stroke-linejoin: round; }
.a-marcas .lapis { fill: none; stroke: #fffaf1; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; filter: url(#a-lapis); }
.a-marcas .ponto { fill: #fffaf1; stroke: rgba(58, 38, 28, .4); stroke-width: .8; }
.a-marcas .guia { fill: none; stroke: var(--cacau-2); stroke-width: 1; stroke-linecap: round; opacity: .8; stroke-dasharray: 2 3; }

.a-rot {
  position: absolute; left: var(--x); top: var(--y); z-index: 2;
  max-width: 11.5em;
  font-size: .95rem; font-weight: 500; line-height: 1.2; color: var(--cacau);
  background: #fffaf2;
  padding: .3rem .6rem .32rem;
  border-radius: 3px;
  box-shadow: 0 6px 14px -8px rgba(74, 46, 30, .45), 0 0 0 1px rgba(74, 46, 30, .08);
  transition: opacity .5s, transform .5s;
  white-space: nowrap;
}
.js .a-rot { opacity: 0; transform: translateY(4px); }
.js .a-rot.vis { opacity: 1; transform: none; }

.a-foto {
  position: absolute; right: -1.5vw; bottom: 0; z-index: 3;
  width: clamp(300px, 74%, 540px);
  line-height: 0;
}
.a-foto img {
  width: 100%; height: auto; display: block;
  filter: drop-shadow(0 18px 30px rgba(84, 50, 32, .18));
  -webkit-mask: linear-gradient(to top, transparent 0, #000 7%);
  mask: linear-gradient(to top, transparent 0, #000 7%);
}

/* entrada do texto */
.js .a-texto, .js .a-apoio, .js .a-folha, .js .a-foto { opacity: 0; }
.js .entrou .a-texto, .js .entrou .a-apoio { animation: a-sobe .9s cubic-bezier(.2,.7,.2,1) both; }
.js .entrou .a-apoio { animation-delay: .15s; }
.js .entrou .a-foto { animation: a-sobe 1.1s .1s cubic-bezier(.2,.7,.2,1) both; }
.js .entrou .a-folha { animation: a-folha 1s .05s cubic-bezier(.2,.7,.2,1) both; }
@keyframes a-sobe { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes a-folha { from { opacity: 0; transform: rotate(-5deg) translateY(16px); } to { opacity: 1; transform: rotate(-2.2deg); } }
.js .a-grifo svg { clip-path: inset(-50% 100% -50% 0); }
.js .entrou .a-grifo svg { animation: a-risca .9s 5.6s cubic-bezier(.5,0,.2,1) forwards; }
@keyframes a-risca { to { clip-path: inset(-50% 0 -50% 0); } }


/* notebook baixo */
@media (min-width: 801px) and (max-height: 820px) {
  .a-titulo { font-size: clamp(2.4rem, 4vw, 3.9rem); }
  .a-prova { margin-top: 1.2rem; padding-top: .9rem; }
  .a-acoes { margin-top: 1.1rem; }
}
@media (min-width: 801px) and (max-width: 1100px) {
  .a-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
  .a-folha { width: 60%; }
  .a-foto { width: 80%; }
}

/* celular e tablet estreito */
@media (max-width: 800px) {
  :root { --topo: 4.6rem; }
  .a-topo { padding: 1rem var(--margem); }
  .a-agendar { font-size: .95rem; padding: .45rem .95rem; }
  .a-hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    grid-template-areas: "texto" "cena" "apoio";
    min-height: 0;
  }
  .a-texto { padding-bottom: .6rem; }
  .a-sobre { font-size: .88rem; margin-bottom: .6rem; }
  .a-titulo { font-size: clamp(2.3rem, 10.4vw, 3.6rem); }
  .a-cena { min-height: 0; height: calc(min(100vw, 560px) * 1.36); margin-inline: calc(var(--margem) * -1); }
  .a-folha { left: 3vw; top: 2%; width: 58%; }
  .a-foto { right: -3vw; width: 76%; }
  .a-rot { font-size: .8rem; padding: .22rem .45rem .24rem; }
  .a-apoio { padding-top: 1.4rem; padding-bottom: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .a-malha i { animation: none; }
  .js .a-texto, .js .a-apoio, .js .a-folha, .js .a-foto { opacity: 1; animation: none !important; }
  .js .a-folha { transform: rotate(-2.2deg); }
  .js .a-grifo svg { clip-path: none; animation: none !important; }
  .js .a-rot { opacity: 1; transform: none; transition: none; }
}
