/* ==========================================================================
   Aumi — estilos da página única
   Paleta do guia de marca + tons derivados para contraste (WCAG AA).
   ========================================================================== */

@font-face {
  font-family: "Nunito Variable";
  src: url("../assets/fonts/nunito-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Mulish Variable";
  src: url("../assets/fonts/mulish-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Mulish Variable";
  src: url("../assets/fonts/mulish-latin-wght-italic.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Paleta original (guia de marca) */
  --creme: #f7f5f2;
  --rosa: #fae3e3;
  --azul: #7394bc;
  --verde: #92b78a;
  --laranja: #fdc167;
  --carvao: #333333;

  /* Tons derivados — mesma matiz, mais escuros, para texto e botões */
  --verde-700: #3e6237; /* 6,4:1 sobre creme */
  --verde-800: #36552f;
  --verde-900: #2e4828; /* fundo do rodapé */
  --azul-700: #32537b; /* 7,3:1 sobre creme — anel de foco */
  --rosa-600: #db616f; /* 3,2:1 sobre creme — só texto grande (títulos) */

  /* Tons derivados — claros, para superfícies */
  --rosa-banner: #f09aa4;
  --rosa-marca-texto: #f7c4c4;
  --verde-20: #e3e9dd;
  --verde-40: #cfdcc8;
  --azul-20: #dde2e7;
  --azul-40: #c2cedc;
  --laranja-20: #f8ebd6;

  --texto: var(--carvao);
  --texto-suave: #545454; /* 7,1:1 sobre creme */
  --linha: rgb(51 51 51 / 0.14);

  --fonte-titulo: "Nunito Variable", "Nunito", ui-rounded, system-ui, sans-serif;
  --fonte-texto: "Mulish Variable", "Mulish", system-ui, sans-serif;

  --raio: 20px;
  --raio-g: 32px;
  --pilula: 999px;

  --largura: 1200px;
  --margem: clamp(1.25rem, 4vw, 2.5rem);
  /* O topo some ao rolar para baixo e volta ao subir (classe no <html>).
     --altura-topo é quanto dele está na tela: o que gruda abaixo dele usa isso. */
  --topo-cheio: 76px;
  --altura-topo: var(--topo-cheio);
  --secao: clamp(4.5rem, 10vw, 7.5rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* âncoras contam com o topo cheio, que é como ele fica ao subir a página */
  scroll-padding-top: calc(var(--topo-cheio) + 1rem);
  interpolate-size: allow-keywords;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--creme);
  color: var(--texto);
  font-family: var(--fonte-texto);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
h3,
h4 {
  font-family: var(--fonte-titulo);
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
  color: var(--carvao);
}

p {
  margin: 0;
  text-wrap: pretty;
}

ul {
  margin: 0;
  padding: 0;
}

figure,
blockquote {
  margin: 0;
}

a {
  color: inherit;
}

:where(p, li) a {
  color: var(--verde-700);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.2em;
}

:where(p, li) a:hover {
  text-decoration-thickness: 2.5px;
}

:focus-visible {
  outline: 3px solid var(--azul-700);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: var(--rosa-marca-texto);
  color: var(--carvao);
}

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

.container {
  width: 100%;
  max-width: calc(var(--largura) + var(--margem) * 2);
  margin-inline: auto;
  padding-inline: var(--margem);
}

.icone {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Pular para o conteúdo ---------- */

.pular {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--verde-700);
  color: var(--creme);
  font-family: var(--fonte-titulo);
  font-weight: 700;
  border-radius: var(--pilula);
  text-decoration: none;
}

.pular:focus {
  top: 0.75rem;
}

/* Seções que recebem o foco ao seguir um link interno não ganham contorno */
main:focus,
section[tabindex="-1"]:focus {
  outline: none;
}

/* ---------- Botões ---------- */

.botao {
  --botao-fundo: transparent;
  --botao-borda: transparent;
  --botao-texto: var(--carvao);
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border: 0;
  border-radius: 28px;
  background: none;
  color: var(--botao-texto);
  font-family: var(--fonte-titulo);
  font-size: 1rem;
  font-weight: 750;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s var(--ease);
}

/* A forma do botão mora numa camada própria, que se deforma no hover sem mexer
   no texto. Sem JS ou com movimento reduzido, as variáveis ficam vazias e o
   botão continua uma pílula. */
.botao::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: var(--forma, 28px);
  translate: var(--mancha-x, 0) var(--mancha-y, 0);
  rotate: var(--mancha-giro, 0deg);
  scale: var(--mancha-escala, 1);
  background: var(--botao-fundo);
  border: 2px solid var(--botao-borda);
  transition:
    background-color 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.botao .icone {
  width: 1.2em;
  height: 1.2em;
}

.botao--cheio {
  --botao-fundo: var(--verde-700);
  --botao-borda: var(--verde-700);
  --botao-texto: var(--creme);
}

.botao--cheio:hover {
  --botao-fundo: var(--verde-900);
  --botao-borda: var(--verde-900);
}

.botao--contorno {
  --botao-borda: var(--verde-700);
  --botao-texto: var(--verde-700);
}

.botao--contorno:hover {
  --botao-fundo: var(--verde-700);
  --botao-texto: var(--creme);
}

.botao--grande {
  min-height: 56px;
  padding: 0.95rem 1.9rem;
  font-size: 1.0625rem;
}

@media (prefers-reduced-motion: no-preference) {
  .botao:hover .icone--seta {
    transform: translateX(3px);
  }
  .botao .icone--seta {
    transition: transform 0.2s var(--ease);
  }
  .botao:active {
    transform: scale(0.98);
  }
}

/* ---------- Topo ---------- */

/* O topo desliza para fora ao descer a página e volta ao subir. Ele continua
   ocupando a mesma altura, então a página não pula quando ele some. */
.topo {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--creme);
  border-bottom: 1px solid transparent;
  transition:
    translate 0.35s var(--ease),
    border-color 0.2s,
    box-shadow 0.35s var(--ease);
}

.topo.rolou {
  border-bottom-color: var(--linha);
  box-shadow: 0 10px 24px -18px rgb(51 51 51 / 0.45);
}

html.topo-oculto {
  --altura-topo: 0px;
}

html.topo-oculto .topo {
  translate: 0 -100%;
  box-shadow: none;
}

.topo__barra {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--topo-cheio);
}

.topo__logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.25rem;
  margin-left: -0.25rem;
  border-radius: 8px;
}

.topo__logo img {
  width: 112px;
  height: auto;
}

/* O que gruda logo abaixo do topo acompanha a mudança de altura */
html.js .servicos__indice,
html.js .servico,
.sobre__foto,
.valores__grade .cabecalho,
.duvidas__grade .cabecalho {
  transition: top 0.35s var(--ease);
}

.menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.menu__lista {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.menu__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 1rem;
  border-radius: var(--pilula);
  font-family: var(--fonte-titulo);
  font-weight: 650;
  font-size: 1rem;
  text-decoration: none;
  color: var(--carvao);
  transition: background-color 0.2s var(--ease);
}

.menu__link:hover {
  background: color-mix(in srgb, var(--rosa) 70%, var(--creme));
}

.menu__link[aria-current="true"] {
  background: var(--rosa);
  box-shadow: inset 0 0 0 1.5px var(--rosa-banner);
}

.topo__acoes {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.botao--topo {
  min-height: 44px;
  padding: 0.55rem 1.15rem;
  font-size: 0.95rem;
}

.menu__botao {
  display: none;
}

/* Menu no celular e tablet */
@media (max-width: 899px) {
  :root {
    --topo-cheio: 68px;
  }

  .topo__logo img {
    width: 96px;
  }

  .menu__botao {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 44px;
    padding: 0.5rem 0.9rem;
    border: 2px solid var(--carvao);
    border-radius: var(--pilula);
    background: transparent;
    color: var(--carvao);
    font-family: var(--fonte-titulo);
    font-weight: 750;
    font-size: 0.95rem;
    cursor: pointer;
  }

  .menu__botao[aria-expanded="true"] {
    background: var(--carvao);
    color: var(--creme);
  }

  .menu__botao .icone-fechar {
    display: none;
  }
  .menu__botao[aria-expanded="true"] .icone-abrir {
    display: none;
  }
  .menu__botao[aria-expanded="true"] .icone-fechar {
    display: block;
  }

  .menu__painel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--creme);
    border-bottom: 1px solid var(--linha);
    padding: 0.75rem var(--margem) 1.5rem;
  }

  html.js .menu__painel:not(.aberto) {
    display: none;
  }

  .menu__lista {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }

  .menu__link {
    width: 100%;
    min-height: 52px;
    font-size: 1.125rem;
    padding-inline: 1.25rem;
  }

  html:not(.js) .menu__botao {
    display: none;
  }
  html:not(.js) .menu__painel {
    position: static;
    padding: 0;
    border: 0;
  }
}

@media (max-width: 479px) {
  .botao--topo .rotulo-longo {
    display: none;
  }
}

@media (min-width: 480px) {
  .botao--topo .rotulo-curto {
    display: none;
  }
}

@media (max-width: 359px) {
  .botao--topo .icone {
    display: none;
  }
  .botao--topo,
  .menu__botao {
    padding-inline: 0.75rem;
  }
  .topo__logo img {
    width: 84px;
  }
}

/* ---------- Abertura (hero) ---------- */

.abertura__banner {
  --mist-largura: clamp(270px, 40vw, 520px);
  --mist-altura: calc(var(--mist-largura) * 918 / 1080);
  position: relative;
  overflow: hidden;
  background: var(--rosa-banner);
  display: grid;
  justify-items: center;
  padding-top: clamp(2.75rem, 7vw, 5rem);
}

.abertura__logo {
  position: relative;
  z-index: 1;
  width: min(80%, 720px);
  height: auto;
}

/* A Mist aparece do peito para cima, com as orelhas por cima do logo; o corte
   reto some atrás da faixa xadrez */
.abertura__mist {
  display: block;
  position: relative;
  z-index: 2;
  margin-top: calc(var(--mist-largura) * -0.09);
  width: var(--mist-largura);
  aspect-ratio: 1080 / 918;
}

.abertura__mist img {
  display: block;
  width: 100%;
  height: 100%;
}

.doodle {
  position: absolute;
  color: var(--creme);
  pointer-events: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.doodle--coracao-e {
  width: clamp(44px, 6vw, 72px);
  left: clamp(4%, 9vw, 13%);
  top: 46%;
  --giro: -14deg;
  rotate: var(--giro);
}

.doodle--coracao-d {
  width: clamp(40px, 5.5vw, 66px);
  right: clamp(4%, 9vw, 13%);
  top: 58%;
  --giro: 12deg;
  rotate: var(--giro);
}

.doodle--brilho-d {
  width: clamp(28px, 3.8vw, 48px);
  right: clamp(1%, 6vw, 9%);
  top: 46%;
  --giro: 10deg;
  rotate: var(--giro);
}

.doodle--raios {
  z-index: 2;
  width: clamp(40px, 5vw, 64px);
  /* ao lado da orelha esquerda da Mist, como um susto desenhado */
  left: calc(50% - var(--mist-largura) * 0.47);
  bottom: calc(var(--mist-altura) * 0.6);
  --giro: -42deg;
  rotate: var(--giro);
  translate: -50% 0;
  transform-origin: 50% 100%;
}

/* Pegadas que seguem o cursor no banner (criadas pelo JS) */
.pegada {
  position: absolute;
  z-index: 1;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  color: var(--creme);
  fill: currentColor;
  stroke: none;
  pointer-events: none;
  animation: pegada 1.4s var(--ease) forwards;
}

@keyframes pegada {
  0% {
    opacity: 0;
    scale: 0.5;
  }
  12% {
    opacity: 0.85;
    scale: 1;
  }
  55% {
    opacity: 0.85;
  }
  100% {
    opacity: 0;
    scale: 0.9;
  }
}

.xadrez {
  --casa: 14px;
  --cor-a: var(--verde);
  --cor-b: var(--creme);
  height: calc(var(--casa) * 2);
  background: conic-gradient(var(--cor-a) 25%, var(--cor-b) 0 50%, var(--cor-a) 0 75%, var(--cor-b) 0) 0 0 / calc(var(--casa) * 2) calc(var(--casa) * 2);
}

.abertura__texto {
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(4rem, 8vw, 6rem);
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 1.25rem;
}

.abertura__titulo {
  font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.5rem);
  font-weight: 850;
  letter-spacing: -0.02em;
}

/* "movimenta" em rosa, com uma onda verde desenhada à mão embaixo */
.abertura__destaque {
  position: relative;
  color: var(--rosa-600);
  white-space: nowrap;
}

.abertura__onda {
  position: absolute;
  left: 0;
  bottom: -0.2em;
  width: 100%;
  height: 0.3em;
  overflow: visible;
  fill: none;
  stroke: var(--verde);
  stroke-width: 3.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

/* no desktop, com o título grande, a onda sobe para ficar colada às letras */
@media (min-width: 900px) {
  .abertura__onda {
    bottom: -0.03em;
  }
}

.abertura__subtitulo {
  max-width: 34ch;
  font-size: clamp(1.125rem, 1rem + 0.6vw, 1.4rem);
  line-height: 1.5;
}

.abertura__texto .botao {
  margin-top: 0.75rem;
}

/* Marca-texto desenhado à mão atrás de palavras-chave */
.marca-texto {
  position: relative;
  white-space: nowrap;
  z-index: 0;
}

.marca-texto::before {
  content: "";
  position: absolute;
  inset: 0.12em -0.25em -0.02em;
  z-index: -1;
  background: var(--rosa-marca-texto);
  border-radius: 0.6em 0.35em 0.7em 0.3em;
  rotate: -1.2deg;
}

.marca-texto--verde::before {
  background: var(--verde-40);
}

/* ---------- Seções ---------- */

.secao {
  padding-block: var(--secao);
}

/* Fitas, bilhetes tortos e fotos que ainda vão entrar podem passar uns pixels
   da borda da tela no celular. O clip corta só na horizontal: não cria barra
   de rolagem para o lado, não atrapalha os elementos presos (sticky) e deixa
   à mostra o que sobe por cima da seção, como os corações e a Mist. */
main > section {
  overflow-x: clip;
}

.cabecalho {
  display: grid;
  gap: 0.9rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
}

.cabecalho--centro {
  justify-items: center;
  text-align: center;
}

.titulo-secao {
  font-size: clamp(2rem, 1.45rem + 2.2vw, 3.125rem);
  font-weight: 850;
  letter-spacing: -0.015em;
}

.lead {
  max-width: 60ch;
  font-size: 1.125rem;
  color: var(--texto-suave);
}

/* ---------- Serviços ---------- */

/* Tons de cada serviço, usados nos cards e no sumário */
.tom--rosa {
  --fundo: var(--rosa);
  --destaque: var(--rosa-banner);
}
.tom--verde {
  --fundo: var(--verde-20);
  --destaque: var(--verde);
}
.tom--azul {
  --fundo: var(--azul-20);
  --destaque: var(--azul);
}
.tom--laranja {
  --fundo: var(--laranja-20);
  --destaque: var(--laranja);
}

.servicos__pilha {
  --indice-altura: 72px;
  --passo: 14px; /* quanto o card de trás aparece acima do da frente */
  --intervalo: clamp(1.5rem, 4vw, 2.5rem);
}

/* Sumário: mostra os 4 serviços logo de início e acompanha a rolagem */
.servicos__indice {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--indice-altura);
  margin-bottom: 0.75rem;
  background: var(--creme);
}

html.js .servicos__indice {
  position: sticky;
  top: var(--altura-topo);
}

.servicos__indice ul {
  display: flex;
  gap: clamp(0.4rem, 1vw, 0.75rem);
  list-style: none;
}

.indice__link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.3rem 1.1rem 0.3rem 0.3rem;
  border-radius: var(--pilula);
  border: 1.5px solid var(--linha);
  background: var(--creme);
  color: var(--carvao);
  font-family: var(--fonte-titulo);
  font-weight: 750;
  font-size: 0.95rem;
  white-space: nowrap;
  text-decoration: none;
  transition:
    background-color 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.indice__link:hover {
  border-color: var(--destaque);
}

.indice__link[aria-current="true"] {
  background: var(--fundo);
  border-color: var(--destaque);
}

.indice__icone {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  background: var(--fundo);
  border: 1.5px solid var(--destaque);
}

.indice__link[aria-current="true"] .indice__icone {
  background: var(--creme);
}

.indice__icone .icone {
  width: 20px;
  height: 20px;
  stroke-width: 1.7;
}

/* Telas estreitas: só os ícones; o nome continua para leitores de tela */
@media (max-width: 899px) {
  .indice__link {
    padding: 0.3rem;
  }
  .indice__nome {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

@media (max-width: 1099px) {
  .indice__resto {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
}

/* Cards */
.servicos__lista {
  list-style: none;
}

.servico {
  position: relative;
  display: grid;
  gap: 1.5rem;
  padding: clamp(1.5rem, 4vw, 3.25rem);
  border-radius: var(--raio-g);
  background: var(--fundo);
  border: 1.5px solid var(--destaque);
  transform-origin: 50% 0;
}

.servico + .servico {
  margin-top: var(--intervalo);
}

html.js .servico {
  position: sticky;
  top: calc(var(--altura-topo) + var(--indice-altura) + 0.75rem + var(--i) * var(--passo));
}

/* Na pilha, cada card tem a altura do maior (medida no main.js) mais o tanto
   que ele fica acima do último. Assim as bordas de baixo se alinham: nenhum
   card de trás é empurrado antes da hora e, no fim, a pilha sai inteira, junta. */
html.js .servicos__pilha:not(.pilha--solta) .servico {
  min-height: calc(var(--altura-cartao, 0px) + (var(--total) - 1 - var(--i)) * var(--passo));
}

/* Quando o card não cabe na tela, a pilha vira lista comum */
.pilha--solta .servicos__indice,
.pilha--solta .servico {
  position: relative !important;
  top: auto !important;
}

.servico:focus {
  outline: none;
}

.servico:focus-visible {
  outline: 3px solid var(--azul-700);
  outline-offset: 4px;
}

.servico__numero {
  position: absolute;
  top: clamp(1.5rem, 4vw, 3.25rem);
  right: clamp(1.5rem, 4vw, 3.25rem);
  font-family: var(--fonte-titulo);
  font-weight: 850;
  font-size: 1.125rem;
  letter-spacing: 0.06em;
  color: var(--carvao);
}

.servico__numero span {
  color: var(--texto-suave);
  font-weight: 700;
}

.servico__cabeca {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 0.9rem;
}

.servico__icone {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--creme);
  border: 1.5px solid var(--destaque);
  color: var(--carvao);
}

.servico__icone .icone {
  width: 32px;
  height: 32px;
  stroke-width: 1.6;
}

.servico__titulo {
  font-size: clamp(1.625rem, 1.2rem + 1.6vw, 2.625rem);
  font-weight: 850;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.servico__chamada {
  font-family: var(--fonte-titulo);
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.3rem);
  font-weight: 700;
  line-height: 1.4;
  max-width: 26ch;
}

.servico__corpo {
  display: grid;
  align-content: start;
  gap: 1.4rem;
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.0625rem);
}

@media (min-width: 900px) {
  .servico {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: clamp(2.5rem, 5vw, 4.5rem);
    min-height: 400px;
  }
  .servico__corpo {
    padding-top: 5.5rem;
  }
}

.recursos__titulo {
  font-family: var(--fonte-titulo);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--carvao);
  margin-bottom: 0.7rem;
}

.recursos__lista {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
}

.recursos__lista li {
  padding: 0.35rem 0.85rem;
  border-radius: var(--pilula);
  background: var(--creme);
  border: 1px solid color-mix(in srgb, var(--destaque) 70%, transparent);
  font-size: 0.9375rem;
  line-height: 1.35;
}

/* Celular: cards mais compactos para caberem inteiros na pilha */
@media (max-width: 899px) {
  .servicos__pilha {
    --indice-altura: 64px;
    --passo: 8px;
  }
  .servico {
    gap: 1rem;
    padding: 1.35rem 1.35rem 1.6rem;
    border-radius: var(--raio);
  }
  .servico__numero {
    top: 1.35rem;
    right: 1.35rem;
    font-size: 1rem;
  }
  .servico__cabeca {
    gap: 0.6rem;
  }
  .servico__icone {
    width: 52px;
    height: 52px;
  }
  .servico__icone .icone {
    width: 26px;
    height: 26px;
  }
  .servico__corpo {
    gap: 1rem;
    line-height: 1.6;
  }
  .recursos__lista li {
    padding: 0.25rem 0.7rem;
    font-size: 0.875rem;
  }
}

/* O card de trás recua um pouco enquanto os próximos chegam */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .servicos__lista {
      view-timeline: --pilha block;
      view-timeline-inset: calc(var(--altura-topo) + var(--indice-altura)) 0;
    }
    html.js .servicos__pilha:not(.pilha--solta) .servico {
      animation: recuar linear both;
      animation-timeline: --pilha;
      animation-range:
        exit-crossing calc(var(--i) / var(--total) * 100%)
        exit-crossing calc((var(--total) - 1) / var(--total) * 100%);
    }
    @keyframes recuar {
      to {
        scale: calc(1 - (var(--total) - 1 - var(--i)) * 0.04);
      }
    }
  }
}

/* ---------- Sobre ---------- */

.sobre {
  position: relative;
  background: var(--rosa);
  padding-bottom: 0;
}

.sobre__grade {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.sobre__foto {
  position: relative;
  isolation: isolate;
  max-width: 460px;
}

/* No desktop a foto fica presa enquanto o texto rola, como os títulos de Valores e Dúvidas */
@media (min-width: 900px) {
  .sobre__grade {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }
  .sobre__foto {
    position: sticky;
    top: calc(var(--altura-topo) + 2rem);
  }
}

/* Foto emoldurada (Darline em Sobre, Mist no contato) */
.moldura__imagem {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--raio-g);
}

/* Enquanto a foto baixa, umas patinhas caminham no fundo da moldura.
   A foto, quando chega, cobre tudo; o main.js então tira as patinhas. */
.carregando {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  border-radius: var(--raio-g);
  background: var(--rosa);
}

.carregando .icone {
  position: absolute;
  left: calc(50% + var(--x));
  top: calc(50% + var(--y));
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  color: var(--rosa-banner);
  fill: currentColor;
  stroke: none;
  rotate: 40deg;
  opacity: 0.85;
}

.carregando .icone:nth-child(1) {
  --x: -42px;
  --y: 30px;
  --atraso: 0s;
}
.carregando .icone:nth-child(2) {
  --x: -6px;
  --y: 18px;
  --atraso: 0.3s;
}
.carregando .icone:nth-child(3) {
  --x: 6px;
  --y: -18px;
  --atraso: 0.6s;
}
.carregando .icone:nth-child(4) {
  --x: 42px;
  --y: -30px;
  --atraso: 0.9s;
}

@media (prefers-reduced-motion: no-preference) {
  .carregando .icone {
    animation: pisar 1.8s var(--atraso) infinite backwards;
  }
}

@keyframes pisar {
  0% {
    opacity: 0;
    scale: 0.6;
  }
  12% {
    opacity: 0.85;
    scale: 1;
  }
  55% {
    opacity: 0.85;
  }
  75%,
  100% {
    opacity: 0;
  }
}

.fita {
  position: absolute;
  z-index: 1;
  width: 104px;
  height: 30px;
  --casa: 7.5px;
  --cor-a: var(--verde);
  --cor-b: var(--creme);
  background: conic-gradient(var(--cor-a) 25%, var(--cor-b) 0 50%, var(--cor-a) 0 75%, var(--cor-b) 0) 0 0 / calc(var(--casa) * 2) calc(var(--casa) * 2);
  opacity: 0.92;
}

.fita--topo {
  top: -12px;
  left: -18px;
  rotate: -12deg;
}

.fita--base {
  bottom: 28px;
  right: -22px;
  rotate: 16deg;
  --cor-a: var(--azul-40);
}

/* no celular a margem lateral é de 20 px: a fita avança menos para fora da
   foto e não cria rolagem para o lado */
@media (max-width: 499px) {
  .sobre__foto .fita--base {
    right: -12px;
  }
}

.sobre__coracao {
  position: absolute;
  z-index: 1;
  right: 14%;
  top: -26px;
  width: 44px;
  color: var(--rosa-banner);
  stroke-width: 2.6;
  --giro: 10deg;
  rotate: var(--giro);
}

.sobre__texto {
  display: grid;
  gap: 1.15rem;
  max-width: 62ch;
}

.sobre__texto .titulo-secao {
  margin-bottom: 0.25rem;
}

.sobre__ola {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 1.875rem);
  font-weight: 800;
  color: var(--verde-700);
  margin-top: 0.5rem;
}

.sobre__destaque {
  font-family: var(--fonte-titulo);
  font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.65rem);
  font-weight: 800;
  line-height: 1.6;
  color: var(--verde-700);
  margin-block: 0.25rem;
}

/* Mesmo marca-texto do "Darline Krefta!", quebrando junto com cada linha */
.sobre__destaque span {
  padding: 0.08em 0.3em;
  border-radius: 0.6em 0.35em 0.7em 0.3em;
  background: var(--rosa-marca-texto);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Assinatura e Mist na mesma linha: a Mist fica junto do texto, virada
   para ele, com as rodinhas apoiadas na faixa xadrez logo abaixo */
.sobre__fecho {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-top: 0.5rem;
}

.assinatura {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  border-radius: var(--pilula);
  background: var(--creme);
  border: 1.5px solid var(--rosa-banner);
  font-family: var(--fonte-titulo);
  font-weight: 750;
  font-size: 0.95rem;
}

@media (max-width: 479px) {
  .assinatura {
    align-items: flex-start;
    border-radius: var(--raio);
    padding-block: 0.7rem;
  }
  .assinatura .icone {
    margin-top: 0.2em;
  }
  .assinatura__sep {
    display: none;
  }
  .assinatura__crmv {
    display: block;
  }
}

.assinatura .icone {
  color: var(--rosa-banner);
  fill: var(--rosa-banner);
  stroke: none;
}

.sobre__mist {
  --tamanho: clamp(150px, 20vw, 240px);
  width: var(--tamanho);
  margin-left: auto;
  /* o desenho tem uma folga de ~1,4% embaixo; assim as rodas tocam a faixa */
  margin-bottom: calc(var(--tamanho) * -0.014);
  scale: -1 1;
}

.xadrez-vichy {
  position: relative;
  height: 44px;
  background:
    linear-gradient(90deg, rgb(115 148 188 / 0.38) 50%, transparent 0) 0 0 / 22px 22px,
    linear-gradient(rgb(115 148 188 / 0.38) 50%, transparent 0) 0 0 / 22px 22px,
    var(--creme);
}

/* ---------- Valores ---------- */

.valores__grade {
  display: grid;
  gap: clamp(1.75rem, 5vw, 4rem);
}

.valores__grade .cabecalho {
  margin-bottom: 0;
}

@media (min-width: 900px) {
  .valores__grade {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    align-items: start;
  }
  .valores__grade .cabecalho {
    margin-bottom: 0;
    position: sticky;
    top: calc(var(--altura-topo) + 2rem);
  }
}

/* Valores como bilhetes colados com fita, cada um num tom e num ângulo */
.valores__lista {
  display: grid;
  gap: 1.75rem;
  padding-top: 0.75rem;
  list-style: none;
}

.valor {
  position: relative;
  display: grid;
  align-content: start;
  gap: 0.4rem;
  padding: 1.75rem 1.35rem 1.4rem;
  border-radius: 4px 4px 22px 4px;
  background: var(--nota);
  box-shadow: 0 14px 22px -18px rgb(51 51 51 / 0.45);
  rotate: var(--inclinacao);
}

.valor::before {
  content: "";
  position: absolute;
  top: -13px;
  left: 50%;
  width: 92px;
  height: 26px;
  translate: -50% 0;
  rotate: var(--fita-giro, -4deg);
  --casa: 6.5px;
  background: conic-gradient(var(--cor-fita) 25%, var(--creme) 0 50%, var(--cor-fita) 0 75%, var(--creme) 0) 0 0 / calc(var(--casa) * 2) calc(var(--casa) * 2);
  opacity: 0.92;
}

.valor:nth-child(1) {
  --nota: var(--rosa);
  --inclinacao: -1.6deg;
  --cor-fita: var(--verde);
}
.valor:nth-child(2) {
  --nota: var(--azul-20);
  --inclinacao: 1.4deg;
  --cor-fita: var(--rosa-banner);
  --fita-giro: 5deg;
}
.valor:nth-child(3) {
  --nota: var(--verde-20);
  --inclinacao: -1deg;
  --cor-fita: var(--laranja);
}
.valor:nth-child(4) {
  --nota: var(--laranja-20);
  --inclinacao: 1.8deg;
  --cor-fita: var(--azul-40);
  --fita-giro: -6deg;
}

.valor h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--verde-700);
}

.valor p {
  color: var(--carvao);
}

/* Uma coluna: bilhetes alternam de lado, como colados à mão */
@media (max-width: 619px) {
  .valor:nth-child(odd) {
    margin-right: 1.25rem;
  }
  .valor:nth-child(even) {
    margin-left: 1.25rem;
  }
}

/* Duas colunas: a da direita desce um pouco, para não virar uma grade certinha */
@media (min-width: 620px) {
  .valores__lista {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem 2rem;
    padding-bottom: 2.5rem;
  }
  .valor {
    padding: 2rem 1.6rem 1.75rem;
  }
  .valor:nth-child(even) {
    --desce: 2.5rem;
    translate: 0 var(--desce);
  }
}

/* ---------- Indicações ---------- */

.indicacoes {
  padding-top: 0;
}

.indicacoes__painel {
  border-radius: var(--raio-g);
  background: color-mix(in srgb, var(--laranja-20) 60%, var(--creme));
  border: 1.5px solid color-mix(in srgb, var(--laranja) 55%, transparent);
  padding: clamp(2rem, 5vw, 4rem);
}

.indicacoes__painel .cabecalho {
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}

.indicacoes__lista {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 0.25rem clamp(1.5rem, 4vw, 3rem);
  list-style: none;
}

.indicacoes__lista li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem 0;
  border-bottom: 1.5px dashed color-mix(in srgb, var(--carvao) 18%, transparent);
  font-family: var(--fonte-titulo);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.35;
}

.indicacoes__lista .icone {
  width: 22px;
  height: 22px;
  color: var(--rosa-banner);
  fill: var(--rosa-banner);
  stroke: none;
}

.indicacoes__nota {
  margin-top: 1.75rem;
  font-size: 0.9375rem;
  color: var(--texto-suave);
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

.indicacoes__nota .icone {
  margin-top: 0.15em;
  color: var(--verde-700);
}

/* ---------- Dúvidas (FAQ) ---------- */

.duvidas__grade {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
}

@media (min-width: 900px) {
  .duvidas__grade {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    align-items: start;
  }
  .duvidas__grade .cabecalho {
    position: sticky;
    top: calc(var(--altura-topo) + 2rem);
    margin-bottom: 0;
  }
}

@media (max-width: 899px) {
  .duvidas__grade {
    gap: 1.75rem;
  }
  .duvidas__grade .cabecalho {
    display: contents;
  }
  .duvidas__ajuda {
    order: 1;
  }
}

.duvidas__ajuda {
  margin-top: 0.75rem;
  padding: 1.1rem 1.25rem;
  border-radius: var(--raio);
  background: var(--verde-20);
  font-size: 0.975rem;
}

.duvidas__lista {
  min-width: 0;
}

/* Abas por assunto, num controle segmentado com o tom de cada grupo */
.duvidas__abas {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 4px;
  max-width: 560px;
  margin-bottom: 1.25rem;
  padding: 4px;
  border: 1.5px solid var(--linha);
  border-radius: var(--pilula);
  background: color-mix(in srgb, var(--creme) 60%, white);
}

.duvidas__abas[hidden],
.duvidas__grupo[hidden] {
  display: none;
}

.aba {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.35rem 0.6rem;
  border: 0;
  border-radius: var(--pilula);
  background: transparent;
  color: var(--carvao);
  font-family: var(--fonte-titulo);
  font-weight: 750;
  font-size: 0.95rem;
  cursor: pointer;
  transition:
    background-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.aba:hover {
  background: color-mix(in srgb, var(--fundo) 55%, transparent);
}

.aba[aria-selected="true"] {
  background: var(--fundo);
  box-shadow: inset 0 0 0 1.5px var(--destaque);
}

.aba__conta {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding-inline: 0.35rem;
  border-radius: var(--pilula);
  border: 1.5px solid var(--destaque);
  background: var(--fundo);
  font-size: 0.8125rem;
  line-height: 1;
}

.aba[aria-selected="true"] .aba__conta {
  background: var(--creme);
}

@media (max-width: 419px) {
  /* no celular, cada aba fica do tamanho do nome, para "Demais terapias"
     caber numa linha só; se ainda faltar espaço, quebra centralizado */
  .duvidas__abas {
    grid-auto-columns: auto;
  }
  .aba {
    font-size: 0.875rem;
    padding-inline: 0.3rem;
    text-align: center;
    line-height: 1.15;
  }
  .aba__conta {
    display: none;
  }
}

/* celulares bem estreitos: letra um pouco menor para sobrar respiro na pílula */
@media (max-width: 379px) {
  .aba {
    font-size: 0.8125rem;
    padding-inline: 0.45rem;
  }
}

.duvidas__grupo {
  display: grid;
  gap: 0.75rem;
}

.duvidas__grupo + .duvidas__grupo {
  margin-top: 2rem;
}

.duvidas__grupo-titulo {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--verde-700);
}

/* com as abas ativas, o nome do grupo já está na aba, e só um grupo aparece
   por vez: nenhum deles leva o espaço de separação entre grupos */
.duvidas__abas:not([hidden]) ~ .duvidas__grupo .duvidas__grupo-titulo {
  display: none;
}

.duvidas__abas:not([hidden]) ~ .duvidas__grupo {
  margin-top: 0;
}

.pergunta {
  border-radius: var(--raio);
  background: var(--creme);
  border: 1.5px solid var(--linha);
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}

/* Ao fechar, o script marca .fechando: o fundo e a seta voltam já no começo
   da animação, enquanto a resposta ainda se recolhe. */
.pergunta[open]:not(.fechando) {
  background: color-mix(in srgb, var(--rosa) 55%, var(--creme));
  border-color: color-mix(in srgb, var(--rosa-banner) 60%, transparent);
}

.pergunta summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 56px;
  padding: 1rem 1.1rem 1rem 1.35rem;
  font-family: var(--fonte-titulo);
  font-weight: 750;
  font-size: 1.0625rem;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
  border-radius: var(--raio);
}

.pergunta summary::-webkit-details-marker {
  display: none;
}

.pergunta summary:hover {
  color: var(--verde-700);
}

.pergunta__seta {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  transition: rotate 0.3s var(--ease), background-color 0.2s;
}

.pergunta__seta .icone {
  width: 16px;
  height: 16px;
  stroke-width: 2.5;
}

.pergunta[open]:not(.fechando) .pergunta__seta {
  rotate: 180deg;
  background: var(--creme);
}

.pergunta__resposta {
  padding: 0 1.35rem 1.35rem;
  max-width: 68ch;
}

/* ---------- Agendamento ---------- */

.agendamento {
  position: relative;
  background: var(--verde-40);
  padding-block: calc(var(--secao) * 0.75);
}

.onda {
  display: block;
  width: 100%;
  height: clamp(32px, 5vw, 64px);
  color: var(--verde-40);
  margin-bottom: -1px;
}

.agendamento__grade {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

/* No celular a foto vem depois do texto */
.agendamento__foto {
  order: 2;
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 400px;
  justify-self: center;
}

/* Mesma moldura da foto da Darline, com as fitas espelhadas e em outras cores */
.agendamento__foto .fita--topo {
  left: auto;
  right: -18px;
  rotate: 12deg;
  --cor-a: var(--rosa-banner);
}

.agendamento__foto .fita--base {
  right: auto;
  left: -22px;
  rotate: -15deg;
  --cor-a: var(--laranja);
}

/* corações das molduras: caixa quadrada, para o desenho sair pela borda da foto */
.sobre__coracao,
.agendamento__coracao {
  height: auto;
  aspect-ratio: 1;
}

.agendamento__coracao {
  z-index: 1;
  left: 12%;
  top: -24px;
  width: 42px;
  color: var(--verde-700);
  stroke-width: 2.6;
  --giro: -12deg;
  rotate: var(--giro);
}

@media (min-width: 900px) {
  .agendamento__grade {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  }
  .agendamento__foto {
    order: 0;
  }
}

.agendamento__texto {
  display: grid;
  gap: 1.15rem;
  justify-items: start;
}

.agendamento__texto .lead {
  color: var(--carvao);
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3rem);
  max-width: 40ch;
}

.agendamento__texto .botao {
  margin-top: 0.75rem;
}

.agendamento__regiao {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  max-width: 44ch;
  font-size: 0.975rem;
}

.agendamento__regiao .icone {
  flex: none;
  margin-top: 0.15em;
  color: var(--verde-900);
}

/* ---------- Rodapé ---------- */

.rodape {
  background: var(--verde-900);
  color: var(--creme);
}

.rodape .xadrez {
  --casa: 10px;
  --cor-a: var(--verde);
  --cor-b: var(--verde-40);
}

.rodape__grade {
  display: grid;
  gap: 2.5rem;
  padding-block: clamp(3rem, 7vw, 4.5rem) 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
}

.rodape__marca {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.rodape__marca img {
  width: 160px;
  height: auto;
}

.rodape__frase {
  font-family: var(--fonte-titulo);
  font-weight: 750;
  font-size: 1.125rem;
  line-height: 1.4;
}

.rodape__versiculo {
  margin-top: 0.25rem;
  max-width: 28ch;
}

.rodape__versiculo p {
  font-size: 1rem;
  line-height: 1.5;
}

.rodape__versiculo figcaption {
  margin-top: 0.3rem;
  font-family: var(--fonte-titulo);
  font-weight: 750;
  font-size: 0.875rem;
  color: var(--verde-40);
}

.rodape__versiculo abbr {
  text-decoration: none;
}

.rodape__regiao {
  margin-top: 0.75rem;
}

.rodape h2 {
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--verde-40);
  margin-bottom: 1rem;
}

.rodape address {
  font-style: normal;
}

.rodape__lista {
  list-style: none;
  display: grid;
  gap: 0.15rem;
}

.rodape__lista a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  color: var(--creme);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--creme) 40%, transparent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.25em;
}

.rodape__lista a:hover {
  text-decoration-color: var(--creme);
}

.rodape :focus-visible {
  outline-color: var(--creme);
}

.rodape__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem 2rem;
  border-top: 1px solid color-mix(in srgb, var(--creme) 22%, transparent);
  font-size: 0.9375rem;
}

.rodape__base a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  color: var(--creme);
  font-family: var(--fonte-titulo);
  font-weight: 700;
}

.rodape__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 1.5rem;
}

/* No celular o rodapé fica numa coluna só (abaixo de 480 px), e tudo nele
   vai para o centro: logo, frase, versículo, contatos, links e a linha final. */
@media (max-width: 479px) {
  .rodape__grade,
  .rodape__base {
    text-align: center;
  }
  .rodape__grade {
    grid-template-columns: 1fr;
  }
  .rodape__marca {
    justify-items: center;
  }
  .rodape__lista {
    justify-content: center;
  }
  .rodape__base,
  .rodape__legal {
    flex-direction: column;
    justify-content: center;
  }
  .rodape__base {
    gap: 0.5rem;
  }
}

/* ---------- Aviso de privacidade ---------- */

.legal {
  padding-block: clamp(2.5rem, 7vw, 4.5rem) clamp(4rem, 9vw, 6rem);
}

.legal__corpo {
  max-width: calc(70ch + var(--margem) * 2);
}

.legal__data {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  color: var(--texto-suave);
}

.legal__corpo .lead {
  margin-top: 1.75rem;
}

.legal__corpo h2 {
  margin-top: 2.75rem;
  margin-bottom: 0.75rem;
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  font-weight: 800;
  color: var(--verde-800);
}

.legal__corpo :is(p, ul) + :is(p, ul) {
  margin-top: 0.85rem;
}

.legal__corpo ul {
  display: grid;
  gap: 0.45rem;
  padding-left: 1.35rem;
}

.legal__corpo li::marker {
  color: var(--verde-700);
}

/* ---------- Página 404 ---------- */

.erro {
  position: relative;
  display: grid;
  align-items: center;
  min-height: calc(100svh - var(--topo-cheio) - 7rem);
  padding-block: clamp(3rem, 8vw, 5rem) clamp(9rem, 16vw, 11rem);
}

.erro__corpo {
  display: grid;
  justify-items: center;
  gap: 1.25rem;
  text-align: center;
}

.erro__corpo .lead {
  max-width: 46ch;
}

.erro__corpo .botao {
  margin-top: 0.5rem;
}

/* pegadas subindo para a direita, como quem saiu de fininho */
.rastro {
  position: relative;
  width: 240px;
  height: 104px;
  margin-bottom: 0.5rem;
}

.rastro .icone {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 32px;
  height: 32px;
  color: var(--rosa-banner);
  fill: currentColor;
  stroke: none;
  rotate: 68deg;
  opacity: 0.85;
}

.rastro .icone:nth-child(1) { --x: 0px; --y: 72px; --atraso: 0s; }
.rastro .icone:nth-child(2) { --x: 40px; --y: 47px; --atraso: 0.3s; }
.rastro .icone:nth-child(3) { --x: 82px; --y: 55px; --atraso: 0.6s; }
.rastro .icone:nth-child(4) { --x: 122px; --y: 27px; --atraso: 0.9s; }
.rastro .icone:nth-child(5) { --x: 166px; --y: 35px; --atraso: 1.2s; }
.rastro .icone:nth-child(6) { --x: 208px; --y: 7px; --atraso: 1.5s; }

@media (prefers-reduced-motion: no-preference) {
  .rastro .icone {
    animation: pisar 2.6s var(--atraso) infinite backwards;
  }
}

/* a Mist assiste de canto, com as rodinhas na faixa xadrez do rodapé */
.erro__mist {
  --tamanho: clamp(120px, 15vw, 190px);
  position: absolute;
  right: clamp(0.5rem, 8vw, 9rem);
  bottom: calc(var(--tamanho) * -0.014);
  width: var(--tamanho);
  scale: -1 1;
}

/* ---------- Celular: layout ---------- */

@media (max-width: 899px) {
  /* Sobre: a foto fica presa e o texto sobe por cima dela, como uma folha
     deslizando sobre a outra (o mesmo gesto dos cards dos serviços) */
  html.js .sobre__foto {
    position: sticky;
    top: calc(var(--altura-topo) + 1rem);
    z-index: 0;
  }
  html.js .sobre__texto {
    position: relative;
    z-index: 1;
    max-width: none;
    margin-inline: calc(var(--margem) * -1);
    padding: 2rem var(--margem) 0;
    background: var(--rosa);
    border-radius: var(--raio-g) var(--raio-g) 0 0;
    box-shadow: 0 -16px 28px -24px rgb(51 51 51 / 0.45);
  }

  /* Rodapé mais curto: os links de navegação lado a lado */
  .rodape nav .rodape__lista {
    display: flex;
    flex-wrap: wrap;
    column-gap: 1.5rem;
  }
}

/* ---------- Movimento ---------- */

@media (prefers-reduced-motion: no-preference) {
  .abertura__mist {
    animation: espiar 0.9s var(--ease) 0.15s both;
  }

  @keyframes espiar {
    from {
      translate: 0 70%;
    }
  }

  /* Doodles do hero em "quadro a quadro": cada pose fica parada um instante
     (steps) e o traço treme com o filtro #ferver, como animação feita à mão. */
  .abertura .doodle,
  .sobre__coracao,
  .agendamento__coracao {
    filter: url(#ferver);
  }

  .sobre__coracao {
    animation: rabisco-coracao 1.4s steps(1, end) -0.3s infinite;
  }

  .agendamento__coracao {
    animation: rabisco-coracao 1.3s steps(1, end) -0.9s infinite reverse;
  }

  .doodle--coracao-e {
    animation: rabisco-coracao 1.25s steps(1, end) infinite;
  }

  .doodle--coracao-d {
    animation: rabisco-coracao 1.5s steps(1, end) -0.7s infinite reverse;
  }

  .doodle--brilho-d {
    animation: rabisco-brilho 1s steps(1, end) infinite;
  }

  .doodle--raios {
    animation: rabisco-raios 0.75s steps(1, end) infinite;
  }

  /* a onda sob "movimenta" se desenha uma vez, logo depois que a página abre */
  .abertura__onda path {
    stroke-dasharray: 1;
    animation: desenhar-onda 1.1s var(--ease) 0.45s both;
  }
  @keyframes desenhar-onda {
    from {
      stroke-dashoffset: 1;
    }
    to {
      stroke-dashoffset: 0;
    }
  }

  @keyframes rabisco-coracao {
    0% {
      rotate: var(--giro);
      scale: 1;
      translate: 0 0;
    }
    20% {
      rotate: calc(var(--giro) + 9deg);
      scale: 1.1 0.93;
      translate: 0 -5px;
    }
    40% {
      rotate: calc(var(--giro) - 6deg);
      scale: 0.93 1.08;
      translate: 3px -10px;
    }
    60% {
      rotate: calc(var(--giro) + 5deg);
      scale: 1.07 1;
      translate: -2px -6px;
    }
    80% {
      rotate: calc(var(--giro) - 8deg);
      scale: 0.96 1.05;
      translate: 0 -2px;
    }
  }

  @keyframes rabisco-brilho {
    0% {
      rotate: var(--giro);
      scale: 1;
    }
    25% {
      rotate: calc(var(--giro) + 22deg);
      scale: 1.3;
    }
    50% {
      rotate: calc(var(--giro) - 10deg);
      scale: 0.8;
    }
    75% {
      rotate: calc(var(--giro) + 14deg);
      scale: 1.15 0.9;
    }
  }

  @keyframes rabisco-raios {
    0% {
      scale: 1;
      rotate: var(--giro);
    }
    33% {
      scale: 1.18 1.12;
      rotate: calc(var(--giro) - 5deg);
    }
    66% {
      scale: 0.9 1.06;
      rotate: calc(var(--giro) + 4deg);
    }
  }

  /* Parallax do hero: ao descer a página, a Mist se esconde devagar atrás da
     faixa xadrez, o logo fica um pouco para trás e os rabiscos sobem mais rápido */
  @supports (animation-timeline: scroll()) {
    .abertura__mist img,
    .abertura__logo {
      animation-timeline: scroll(root);
      animation-range: 0 75vh;
    }

    /* os rabiscos somam o parallax à animação quadro a quadro que já têm */
    .doodle--coracao-e {
      animation: rabisco-coracao 1.25s steps(1, end) infinite, parallax-rabisco linear both;
    }
    .doodle--coracao-d {
      animation: rabisco-coracao 1.5s steps(1, end) -0.7s infinite reverse, parallax-rabisco linear both;
    }
    .doodle--brilho-d {
      animation: rabisco-brilho 1s steps(1, end) infinite, parallax-rabisco linear both;
    }
    .doodle--raios {
      animation: rabisco-raios 0.75s steps(1, end) infinite, parallax-rabisco linear both;
    }
    .abertura .doodle {
      animation-timeline: auto, scroll(root);
      animation-range: normal, 0 75vh;
    }

    @keyframes parallax-rabisco {
      to {
        transform: translateY(-40px);
      }
    }

    .abertura__mist img {
      animation-name: parallax-mist;
      animation-timing-function: linear;
      animation-fill-mode: both;
    }

    .abertura__logo {
      animation-name: parallax-logo;
      animation-timing-function: linear;
      animation-fill-mode: both;
    }

    @keyframes parallax-mist {
      to {
        transform: translateY(24%);
      }
    }

    @keyframes parallax-logo {
      to {
        transform: translateY(22%);
      }
    }
  }

  @supports (animation-timeline: view()) {
    .revelar {
      animation: revelar linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 35%;
    }

    @keyframes revelar {
      from {
        opacity: 0;
        translate: 0 28px;
      }
    }
  }
}

/* Troca de aba nas dúvidas: o grupo novo entra de leve */
@media (prefers-reduced-motion: no-preference) {
  .duvidas__grupo {
    animation: trocar-grupo 0.35s var(--ease);
  }
  @keyframes trocar-grupo {
    from {
      opacity: 0;
      translate: 0 10px;
    }
  }
}

/* Movimento ao rolar, pensado para o celular (onde não há hover nem cursor) */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    /* o marca-texto da frase de destaque se pinta quando ela entra na tela */
    .sobre__destaque {
      view-timeline: --destaque block;
    }
    .sobre__destaque span {
      background: linear-gradient(var(--rosa-marca-texto), var(--rosa-marca-texto)) no-repeat 0 0 / 100% 100%;
      animation: pintar linear both;
      animation-timeline: --destaque;
      animation-range: entry 70% cover 45%;
    }
    @keyframes pintar {
      from {
        background-size: 0% 100%;
      }
    }

    /* bilhetes chegam tortos e assentam no lugar, como se alguém os colasse */
    .valores__lista .valor {
      animation: colar linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 85%;
    }
    @keyframes colar {
      from {
        opacity: 0;
        translate: 0 calc(var(--desce, 0px) + 56px);
        rotate: calc(var(--inclinacao) * -5);
        scale: 1.08;
      }
    }

    /* a foto da Mist pousa no lugar com as fitas */
    .agendamento__foto {
      animation: pousar linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 90%;
    }
    @keyframes pousar {
      from {
        opacity: 0;
        translate: 0 64px;
        rotate: 8deg;
        scale: 0.9;
      }
    }

    @media (max-width: 899px) {

      /* indicações entram uma a uma e o coraçãozinho dá uma batida */
      .indicacoes__lista li {
        animation: entrar-lado linear both;
        animation-timeline: view();
        animation-range: entry 10% entry 100%;
      }
      .indicacoes__lista .icone {
        animation: batida linear both;
        animation-timeline: view();
        animation-range: entry 50% cover 35%;
      }
      @keyframes entrar-lado {
        from {
          opacity: 0;
          translate: -28px 0;
        }
      }
      @keyframes batida {
        0% {
          scale: 0;
        }
        60% {
          scale: 1.4;
        }
        100% {
          scale: 1;
        }
      }
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Modo de alto contraste do sistema */
@media (forced-colors: active) {
  .indice__link,
  .servico,
  .menu__botao,
  .pergunta {
    border: 2px solid ButtonText;
  }
  .marca-texto::before {
    display: none;
  }
}
