/* ==========================================================================
   Mercato — Estilos específicos de página
   Cada página ganha seu bloco aqui. Componentes reutilizáveis vão em
   components.css.
   ========================================================================== */

/* ==========================================================================
   HOME (index.html)
   ========================================================================== */

/* ---- Hero ----------------------------------------------------------------
   Telas em pé (celular): título no céu, subtítulo e botões na base.
   Telas deitadas (computador): tudo na base, alinhado à esquerda, e o
   celular ilustrativo à direita, deixando a catedral livre no centro. */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-offset) + var(--s-5)) var(--gutter) var(--s-6);
  background: var(--g-ceu);
  color: var(--c-branco);
}

.hero > picture {
  display: contents;
}

.hero__fundo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

/* Véus: azul no topo (título sobre o céu) e escuro na base (texto sobre a rua) */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg,
      rgb(28 52 130 / 0.6) 0%,
      rgb(28 52 130 / 0.3) 28%,
      rgb(28 52 130 / 0) 45%),
    linear-gradient(0deg,
      rgb(20 17 15 / 0.85) 0%,
      rgb(20 17 15 / 0.55) 22%,
      rgb(20 17 15 / 0) 42%);
}

.hero__conteudo {
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  text-align: center;
  text-shadow: 0 2px 18px rgb(20 17 15 / 0.4);
}

.hero__titulo {
  max-width: 16ch;
  margin-inline: auto;
  color: var(--c-branco);
}

.hero__base {
  display: grid;
  justify-items: center;
  gap: var(--s-5);
  margin-top: auto;
  padding-top: var(--s-6);
}

.hero__subtitulo {
  max-width: 34rem;
  font-size: var(--fs-lead);
  font-weight: var(--fw-medium);
  line-height: 1.5;
}

.hero__acoes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--s-4) var(--s-6);
}

.hero__acoes .btn {
  text-shadow: none;
}

.hero__link {
  color: var(--c-branco);
  font-size: 1.0625rem;
}

.hero__link:hover {
  color: var(--c-sol-pastel);
}

.hero {
  --focus: var(--c-sol);
}

/* Celular: escondido por padrão (ex.: celular deitado) */
.hero__celular {
  display: none;
}

/* ---- Telas em pé: texto em cima, celular centralizado saindo pela base -- */
@media (max-aspect-ratio: 1/1) {
  .hero {
    --cel-w: min(64vw, 280px);
    flex-direction: column;
  }

  .hero::before {
    background:
      linear-gradient(180deg,
        rgb(28 52 130 / 0.72) 0%,
        rgb(28 52 130 / 0.6) 38%,
        rgb(28 52 130 / 0.25) 58%,
        rgb(28 52 130 / 0) 72%);
  }

  .hero__conteudo {
    flex: none;
    text-shadow: 0 1px 3px rgb(20 17 15 / 0.45), 0 2px 18px rgb(20 17 15 / 0.4);
  }

  .hero__acoes .btn {
    min-height: 48px;
    padding: 0.75rem 1.375rem;
    font-size: 1rem;
  }

  .hero__base {
    gap: var(--s-4);
    margin-top: 0;
    padding-top: var(--s-4);
  }

  .hero__acoes {
    gap: var(--s-3) var(--s-5);
  }

  .hero__celular {
    display: block;
    width: var(--cel-w);
    /* margin-top: auto empurra o celular para a base; em telas altas
       sobra espaço e a catedral aparece entre o texto e o celular */
    margin: auto auto calc(-0.95 * var(--cel-w) - var(--s-6));
    padding-top: var(--s-6);
    filter: drop-shadow(0 24px 32px rgb(20 17 15 / 0.45));
  }
}

@media (prefers-reduced-motion: no-preference) and (max-aspect-ratio: 1/1) {
  .hero__celular {
    animation: celular-sobe 900ms var(--ease-out) 200ms both;
  }

  @keyframes celular-sobe {
    from { opacity: 0; transform: translateY(60px); }
    to   { opacity: 1; transform: none; }
  }
}

@media (min-aspect-ratio: 1/1) {
  .hero__conteudo {
    justify-content: flex-end;
    text-align: left;
    text-shadow: 0 2px 20px rgb(20 17 15 / 0.5);
  }

  .hero::before {
    background:
      linear-gradient(0deg,
        rgb(20 17 15 / 0.82) 0%,
        rgb(20 17 15 / 0.5) 26%,
        rgb(20 17 15 / 0) 52%),
      linear-gradient(90deg,
        rgb(20 17 15 / 0.45) 0%,
        rgb(20 17 15 / 0) 45%);
  }

  .hero__titulo {
    max-width: 15ch;
    margin-inline: 0;
  }

  .hero__base {
    justify-items: start;
    margin-top: 0;
    padding-top: var(--s-5);
  }

  .hero__acoes {
    justify-content: flex-start;
  }
}

/* ---- Celular ilustrativo (telas largas e deitadas) --------------------- */
@media (min-width: 960px) and (min-aspect-ratio: 1/1) {
  .hero__titulo {
    max-width: min(18ch, 56%);
  }

  .hero__base {
    max-width: min(36rem, 52%);
  }

  .hero__celular {
    display: block;
    position: absolute;
    right: max(var(--gutter), calc((100% - var(--container)) / 2 - 3vw));
    bottom: -14%;
    width: clamp(220px, 18vw, 290px);
    transform: rotate(6deg);
    filter: drop-shadow(0 30px 40px rgb(20 17 15 / 0.45));
  }
}

@media (prefers-reduced-motion: no-preference) and (min-width: 960px) and (min-aspect-ratio: 1/1) {
  .hero__celular {
    animation: celular-entra 900ms var(--ease-out) 200ms both;
  }

  @keyframes celular-entra {
    from { opacity: 0; transform: translateY(60px) rotate(6deg); }
    to   { opacity: 1; transform: rotate(6deg); }
  }
}

.celular {
  aspect-ratio: 9 / 19;
  padding: 3.5%;
  border-radius: 14% / 6.6%;
  background: #1B1715;
  box-shadow: inset 0 0 0 2px #3A332F;
}

.celular__tela {
  display: flex;
  flex-direction: column;
  gap: 7px;
  height: 100%;
  overflow: hidden;
  padding: 10px 12px 0;
  border-radius: 11% / 5.2%;
  background: var(--c-branco);
  color: var(--c-tinta);
  font-family: var(--f-texto);
  font-size: 10px;
  line-height: 1.3;
  text-align: left;
  text-shadow: none;
}

.tela__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: var(--fw-semibold);
  font-size: 9px;
}

.tela__ilha {
  width: 34%;
  height: 14px;
  border-radius: var(--r-pill);
  background: #1B1715;
}

.tela__sinal {
  width: 18px;
  height: 8px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--c-tinta) 70%, #C9C2BC 70%);
}

.tela__topo {
  display: grid;
  gap: 2px;
  margin: 2px -12px 0;
  padding: 10px 12px 12px;
  background: var(--c-vitrine-pastel);
}

.tela__ola {
  color: var(--c-vitrine-escuro);
  font-weight: var(--fw-semibold);
}

.tela__pergunta {
  font-family: var(--f-titulo);
  font-size: 13px;
  font-weight: var(--fw-extrabold);
  letter-spacing: -0.01em;
}

.tela__busca {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 7px 10px;
  border-radius: var(--r-pill);
  background: var(--c-branco);
  color: #7A706A;
}

.tela__busca svg {
  width: 11px;
  height: 11px;
}

.tela__chips {
  display: flex;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tela__chips li {
  padding: 4px 9px;
  border-radius: var(--r-pill);
  background: #F3EEE9;
  font-weight: var(--fw-medium);
}

.tela__chips .is-ativo {
  background: var(--c-vitrine);
  color: var(--c-tinta);
}

.tela__grade {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  flex: 1;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tela__grade li {
  display: grid;
  align-content: start;
  gap: 1px;
}

.tela__foto {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  margin-bottom: 4px;
  border-radius: 10px;
  background: var(--foto);
}

.tela__foto svg {
  width: 52%;
}

.tela__grade b {
  font-weight: var(--fw-semibold);
}

.tela__grade span:last-child {
  color: var(--c-vitrine-escuro);
  font-weight: var(--fw-bold);
}

.tela__abas {
  display: flex;
  justify-content: space-around;
  margin: 0 -12px;
  padding: 8px 6px 14px;
  border-top: 1px solid #EEE7E0;
  background: var(--c-branco);
  font-size: 9px;
  font-weight: var(--fw-semibold);
  color: #6E6560;
}

.tela__abas span {
  display: grid;
  justify-items: center;
  gap: 3px;
}

.tela__abas span::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--app);
  opacity: 0.35;
}

.tela__abas .is-ativo {
  color: var(--c-tinta);
}

.tela__abas .is-ativo::before {
  opacity: 1;
}

/* ---- Faixa de parceiros -------------------------------------------------
   Logos fictícios feitos só com texto e formas simples, em cinza. */
.parceiros {
  padding-block: var(--s-7);
  background: var(--c-branco);
  border-bottom: 1px solid var(--c-borda);
}

.parceiros__titulo {
  margin-bottom: var(--s-5);
  color: var(--c-texto-suave);
  font-family: var(--f-titulo);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: 0;
  text-align: center;
}

.parceiros__lista {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--s-5) var(--s-7);
  margin: 0;
  padding: 0;
}

.parceiro {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  color: var(--c-cinza-logo);
  font-size: 1.125rem;
  line-height: 1;
  white-space: nowrap;
  transition: color var(--t-fast) ease;
}

.parceiro:hover {
  color: var(--c-cacau);
}

.parceiro svg {
  width: 1.3em;
  height: 1.3em;
  flex: none;
}

.parceiro--costa {
  font-family: var(--f-titulo);
  font-weight: var(--fw-bold);
  letter-spacing: -0.01em;
}

.parceiro--armazem {
  font-family: var(--f-texto);
  font-size: 0.9375rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.parceiro--serra {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-style: italic;
}

.parceiro--pousada {
  font-family: var(--f-texto);
  font-weight: var(--fw-medium);
}

.parceiro--feira {
  gap: 0;
  font-family: var(--f-titulo);
  font-size: 1.375rem;
  font-weight: var(--fw-extrabold);
  letter-spacing: -0.04em;
}

.parceiro--feira span {
  color: var(--c-coral);
}

/* ---- Missão --------------------------------------------------------------- */
.missao__inner {
  display: grid;
  justify-items: center;
  gap: var(--s-5);
  text-align: center;
}

.missao__titulo {
  max-width: 18ch;
  font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem);
}

.missao__texto {
  max-width: 38rem;
}

/* Os três elos: quem vende → quem compra → quem fideliza */
.missao__elos {
  position: relative;
  display: grid;
  gap: var(--s-3);
  width: 100%;
  max-width: 40rem;
  margin: var(--s-4) 0 var(--s-2);
  padding: 0;
}

.elo {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--s-1);
  padding: var(--s-4) var(--s-5);
  border-radius: var(--r-lg);
  background: var(--app-pastel);
}

.elo__quem {
  color: var(--c-texto-suave);
  font-size: var(--fs-sm);
}

.elo__app {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  color: var(--c-tinta);
  font-family: var(--f-titulo);
  font-size: 1.25rem;
  font-weight: var(--fw-extrabold);
}

.elo__app::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--app);
}

@media (min-width: 640px) {
  .missao__elos {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-4);
  }

  /* Linha pontilhada ligando os três elos */
  .missao__elos::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 12%;
    right: 12%;
    border-top: 2px dashed var(--c-cacau-claro);
    opacity: 0.4;
  }
}

/* ---- Nossos apps -------------------------------------------------------- */
.apps-grade {
  display: grid;
  gap: var(--s-5);
}

@media (min-width: 640px) and (max-width: 959px) {
  .apps-grade {
    grid-template-columns: repeat(2, 1fr);
  }

  .apps-grade > :last-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - var(--s-5) / 2);
  }
}

@media (min-width: 960px) {
  .apps-grade {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-6);
  }

  /* Mesma altura nas três ilustrações para alinhar ícone, título e texto */
  .app-card__ilustra {
    height: 230px;
  }
}

.app-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--app-pastel);
}

/* Área da ilustração: mini tela do app flutuando sobre formas da cor do app */
.app-card__ilustra {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: var(--s-6) var(--s-5) var(--s-5);
  isolation: isolate;
}

.app-card__ilustra::before,
.app-card__ilustra::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  background: var(--app);
  opacity: 0.16;
}

.app-card__ilustra::before {
  width: 180px;
  height: 180px;
  top: -50px;
  right: -40px;
}

.app-card__ilustra::after {
  width: 90px;
  height: 90px;
  bottom: 10px;
  left: -20px;
  opacity: 0.1;
}

.app-card__corpo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-2);
  flex: 1;
  padding: var(--s-2) var(--s-5) var(--s-6);
}

/* Ícone ao lado do nome, como numa loja de aplicativos */
.app-card__nome {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-1);
}

.app-card__icone {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--app-escuro);
  color: var(--c-branco);
}

.app-card__icone svg {
  width: 22px;
  height: 22px;
}

.app-card__frase {
  color: var(--c-tinta);
  font-family: var(--f-titulo);
  font-weight: var(--fw-semibold);
}

.app-card__texto {
  margin-bottom: var(--s-4);
  color: var(--c-texto-suave);
  font-size: var(--fs-sm);
}

.app-card .btn {
  margin-top: auto;
}

.btn--app {
  --btn-bg: var(--app-escuro);
  --btn-fg: var(--c-branco);
}

.btn--app:hover {
  --btn-bg: color-mix(in srgb, var(--app-escuro) 85%, black);
}

/* ---- Mini telas dos apps ------------------------------------------------ */
.mini {
  display: grid;
  gap: 10px;
  width: min(100%, 280px);
  padding: 14px;
  border-radius: var(--r-md);
  background: var(--c-branco);
  box-shadow: var(--shadow-md);
  font-size: 0.8125rem;
  line-height: 1.35;
  transform: rotate(-2deg);
  transition: transform var(--t-med) var(--ease-out);
}

.app-card:hover .mini {
  transform: rotate(0deg) translateY(-4px);
}

/* Vitrine */
.mini__produto {
  display: flex;
  gap: 10px;
  align-items: center;
}

.mini__foto {
  display: grid;
  place-items: center;
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: var(--foto);
}

.mini__foto svg {
  width: 36px;
}

.mini__info {
  display: grid;
  gap: 1px;
}

.mini__preco {
  color: var(--c-vitrine-escuro);
  font-weight: var(--fw-bold);
}

.mini__loja {
  color: var(--c-texto-suave);
  font-size: 0.75rem;
}

.mini__chat {
  justify-self: end;
  max-width: 85%;
  padding: 8px 12px;
  border-radius: 14px 14px 4px 14px;
  background: var(--c-vitrine);
  color: var(--c-tinta);
  font-weight: var(--fw-medium);
}

/* Compare */
.mini__busca {
  font-family: var(--f-titulo);
  font-size: 0.875rem;
}

.mini__barras {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mini__barras li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 8px;
  align-items: center;
  font-size: 0.75rem;
}

.mini__barras i {
  grid-column: 1;
  height: 8px;
  width: var(--w);
  border-radius: var(--r-pill);
  background: var(--c-compare-pastel);
}

.mini__barras b {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.mini__barras .is-melhor i {
  background: var(--c-compare);
}

.mini__barras .is-melhor b {
  color: var(--c-mata-escuro);
}

.mini__tag {
  justify-self: start;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--c-mata-pastel);
  color: var(--c-mata-escuro);
  font-size: 0.75rem;
  font-weight: var(--fw-bold);
}

/* Clube */
.mini__pontos {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  color: var(--c-texto-suave);
}

.mini__pontos b {
  color: var(--c-tinta);
  font-family: var(--f-titulo);
  font-size: 1.5rem;
  font-weight: var(--fw-extrabold);
}

.mini__progresso {
  height: 8px;
  border-radius: var(--r-pill);
  background: var(--c-clube-pastel);
}

.mini__progresso i {
  display: block;
  width: var(--p);
  height: 100%;
  border-radius: inherit;
  background: var(--c-clube);
}

.mini__falta {
  color: var(--c-texto-suave);
  font-size: 0.75rem;
}

.mini__cupom {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 2px dashed var(--c-clube);
  border-radius: 12px;
  background: var(--c-clube-pastel);
}

.mini__cupom b {
  color: var(--c-clube-escuro);
  font-family: var(--f-titulo);
  font-weight: var(--fw-extrabold);
}

/* ---- Produtos em destaque ------------------------------------------------ */
.destaques__lista {
  display: grid;
  gap: var(--s-9);
}

.destaque {
  display: grid;
  align-items: center;
  gap: var(--s-6);
}

@media (min-width: 960px) {
  .destaque {
    grid-template-columns: 1fr 1fr;
    gap: var(--s-8);
  }

  .destaque--invertido .destaque__visual {
    order: 2;
  }
}

/* Lado da imagem: bloco pastel com o celular no centro */
.destaque__visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
  padding: var(--s-6) var(--s-5) 0;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--app-pastel);
  isolation: isolate;
}

.destaque__visual::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 70%;
  aspect-ratio: 1;
  bottom: -20%;
  border-radius: 50%;
  background: var(--app);
  opacity: 0.22;
}

.destaque__celular {
  width: min(270px, 72%);
  margin-bottom: -18%;
  filter: drop-shadow(0 24px 30px rgb(20 17 15 / 0.25));
}

.destaque__texto {
  display: grid;
  justify-items: start;
  gap: var(--s-4);
}

.destaque__pontos {
  display: grid;
  gap: var(--s-3);
  margin: var(--s-2) 0 var(--s-3);
  padding: 0;
}

.destaque__pontos li {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-weight: var(--fw-medium);
}

/* Marca de "check" na cor do app */
.destaque__pontos li::before {
  content: "";
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background:
    var(--app-escuro)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E")
    center / 14px no-repeat;
}

/* Tela do Vitrine: chat */
.chat__topo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 -12px;
  padding: 6px 12px 8px;
  border-bottom: 1px solid #EEE7E0;
}

.chat__topo div {
  display: grid;
}

.chat__topo small {
  color: var(--c-texto-suave);
  font-size: 9px;
}

.chat__avatar {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--c-vitrine-pastel);
  color: var(--c-vitrine-escuro);
  font-family: var(--f-titulo);
  font-weight: var(--fw-extrabold);
  font-size: 10px;
}

.chat__anuncio {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 10px;
  background: #F8F4F0;
}

.chat__anuncio .tela__foto {
  width: 38px;
  margin: 0;
  border-radius: 8px;
}

.chat__anuncio div {
  display: grid;
}

.chat__anuncio span:last-child {
  color: var(--c-vitrine-escuro);
  font-weight: var(--fw-bold);
}

.chat__msgs {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  padding-top: 4px;
}

.msg {
  align-self: flex-start;
  max-width: 82%;
  padding: 7px 10px;
  border-radius: 12px 12px 12px 4px;
  background: #F3EEE9;
}

.msg--eu {
  align-self: flex-end;
  border-radius: 12px 12px 4px 12px;
  background: var(--c-vitrine);
  color: var(--c-tinta);
  font-weight: var(--fw-medium);
}

.chat__campo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 -4px 14px;
  padding: 6px 6px 6px 12px;
  border-radius: var(--r-pill);
  background: #F3EEE9;
  color: #6E6560;
}

.chat__enviar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--c-vitrine);
}

/* Tela do Clube: pontos e cupons */
.clube__ola {
  margin-top: 2px;
  font-family: var(--f-titulo);
  font-size: 13px;
  font-weight: var(--fw-extrabold);
}

.clube__cartao {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 14px;
  background: var(--c-clube-escuro);
  color: var(--c-branco);
}

.clube__cartao b {
  font-family: var(--f-titulo);
  font-size: 22px;
  font-weight: var(--fw-extrabold);
  line-height: 1.1;
}

.clube__barra {
  height: 6px;
  margin-top: 4px;
  border-radius: var(--r-pill);
  background: rgb(255 255 255 / 0.25);
}

.clube__barra i {
  display: block;
  width: var(--p);
  height: 100%;
  border-radius: inherit;
  background: var(--c-sol);
}

.clube__cartao small {
  font-size: 9px;
}

.clube__sub {
  margin-top: 2px;
  font-weight: var(--fw-semibold);
}

.clube__cupons {
  display: grid;
  gap: 6px;
  flex: 1;
  align-content: start;
  margin: 0;
  padding: 0;
  list-style: none;
}

.clube__cupons li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px dashed #CFE9E6;
  border-radius: 10px;
}

.clube__cupons div {
  display: grid;
}

.clube__cupons small {
  color: var(--c-texto-suave);
  font-size: 9px;
}

.clube__selo {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--selo);
  font-family: var(--f-titulo);
  font-weight: var(--fw-extrabold);
  font-size: 10px;
}

/* Compare: faixa menor com histórico de preço */
.destaque-faixa {
  display: grid;
  align-items: center;
  gap: var(--s-6);
  padding: var(--s-6) var(--s-5);
  border-radius: var(--r-lg);
  background: var(--app-pastel);
}

@media (min-width: 960px) {
  .destaque-faixa {
    grid-template-columns: 1fr 1fr;
    gap: var(--s-8);
    padding: var(--s-7) var(--s-8);
  }
}

.destaque-faixa__texto {
  display: grid;
  justify-items: start;
  gap: var(--s-3);
}

.destaque-faixa__texto p {
  margin-bottom: var(--s-2);
  color: var(--c-texto-suave);
}

.historico {
  display: grid;
  gap: var(--s-3);
  padding: var(--s-5);
  border-radius: var(--r-md);
  background: var(--c-branco);
  box-shadow: var(--shadow-md);
  font-size: var(--fs-sm);
}

.historico__topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
}

.historico__topo b {
  font-family: var(--f-titulo);
}

.historico__alerta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--c-mata-pastel);
  color: var(--c-mata-escuro);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
}

.historico__alerta svg {
  width: 14px;
  height: 14px;
}

.historico__grafico {
  width: 100%;
  height: 110px;
}

.historico__rodape {
  display: flex;
  justify-content: space-between;
  color: var(--c-texto-suave);
  font-size: var(--fs-xs);
}

.historico__rodape span:last-child {
  text-align: right;
}

.historico__rodape b {
  color: var(--c-tinta);
  font-size: 1rem;
}

.historico__rodape .historico__hoje {
  color: var(--c-mata-escuro);
}

/* ---- Três pilares --------------------------------------------------------- */
.pilares {
  display: grid;
  gap: var(--s-5);
}

@media (min-width: 960px) {
  .pilares {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-6);
  }
}

.pilar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-3);
  padding: var(--s-5) var(--s-5) var(--s-6);
  border-radius: var(--r-lg);
  background: var(--pilar-bg);
}

.pilar__ilustra {
  width: 100%;
  height: auto;
  margin-bottom: var(--s-3);
  border-radius: var(--r-md);
  background: rgb(255 255 255 / 0.55);
}

.pilar p {
  margin-bottom: var(--s-2);
  color: var(--c-texto-suave);
}

.pilar .link-seta {
  margin-top: auto;
  color: var(--c-cacau);
}

/* ---- Números -------------------------------------------------------------- */
.numeros {
  --focus: var(--c-sol);
  padding-block: var(--s-8);
  background: var(--c-cacau);
  color: var(--c-rodape-texto);
}

.numeros__titulo {
  margin-bottom: var(--s-6);
  color: var(--c-branco);
  font-size: var(--fs-h3);
  text-align: center;
}

.numeros__lista {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-6) var(--s-5);
  margin: 0;
  padding: 0;
}

@media (min-width: 960px) {
  .numeros__lista {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .numero + .numero {
    border-left: 1px solid rgb(255 255 255 / 0.14);
  }
}

.numero {
  display: grid;
  justify-items: center;
  gap: var(--s-2);
  padding-inline: var(--s-3);
  text-align: center;
}

.numero__valor {
  color: var(--c-sol);
  font-family: var(--f-titulo);
  font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.75rem);
  font-weight: var(--fw-extrabold);
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.numero__rotulo {
  max-width: 14rem;
  color: var(--c-rodape-suave);
  font-size: var(--fs-sm);
}

/* ---- Nossas raízes -------------------------------------------------------- */
.raizes__grade {
  display: grid;
  gap: var(--s-7);
  align-items: center;
}

.raizes__texto {
  display: grid;
  justify-items: start;
  gap: var(--s-4);
}

.raizes__fotos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-4);
}

.raiz {
  display: grid;
  gap: var(--s-2);
}

/* Coluna da direita desce um pouco: efeito de mosaico */
.raiz:nth-child(even) {
  transform: translateY(var(--s-6));
}

.js .raiz[data-reveal]:nth-child(even):not(.is-visible) {
  transform: translateY(calc(var(--s-6) + 24px));
}

.raiz img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}

.raiz figcaption {
  color: var(--c-texto-suave);
  font-family: var(--f-titulo);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
}

@media (min-width: 960px) {
  .raizes__grade {
    grid-template-columns: 5fr 7fr;
    gap: var(--s-8);
  }

  .raizes__fotos {
    gap: var(--s-5);
    padding-bottom: var(--s-6);
  }
}

/* ---- Depoimentos ---------------------------------------------------------- */
.depos {
  position: relative; /* prende os textos .sr-only dentro do carrossel */
  display: grid;
  gap: var(--s-5);
}

.depos:focus-visible {
  outline-offset: 6px;
}

/* Celular: carrossel com rolagem lateral */
@media (max-width: 639px) {
  .depos {
    grid-auto-flow: column;
    grid-auto-columns: 85%;
    margin-inline: calc(-1 * var(--gutter));
    padding: var(--s-1) var(--gutter) var(--s-4);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: thin;
  }

  .depo {
    scroll-snap-align: start;
  }
}

@media (min-width: 640px) {
  .depos {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .depos {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-6);
  }
}

.depo {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  margin: 0;
  padding: var(--s-5);
  border: 1px solid var(--c-borda);
  border-radius: var(--r-lg);
  background: var(--c-creme);
}

.depo__nota {
  color: var(--c-cacau);
  font-family: var(--f-titulo);
  font-weight: var(--fw-bold);
  font-size: var(--fs-sm);
}

.depo__nota span[aria-hidden] {
  color: #C98A00;
}

.depo blockquote {
  flex: 1;
  margin: 0;
  color: var(--c-tinta);
  font-size: 1.0625rem;
  line-height: 1.55;
}

.depo figcaption {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding-top: var(--s-4);
  border-top: 1px solid var(--c-borda);
}

.depo__avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--av);
  color: var(--av-txt);
  font-family: var(--f-titulo);
  font-weight: var(--fw-extrabold);
  font-size: 0.9375rem;
}

.depo__quem {
  display: grid;
  flex: 1;
  line-height: 1.3;
}

.depo__quem small {
  color: var(--c-texto-suave);
  font-size: var(--fs-xs);
}

.depo__app {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--c-branco);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
}

.depo__app::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--app);
}

/* ---- Newsroom ------------------------------------------------------------- */
.noticias {
  display: grid;
  gap: var(--s-5);
}

@media (min-width: 960px) {
  .noticias {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-6);
  }
}

/* O card inteiro é clicável (o link do título se estende por cima dele) */
.noticia {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--c-branco);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med) ease;
}

.noticia:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.noticia:focus-within {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.noticia__capa {
  display: grid;
  place-items: center;
  height: 140px;
  background: var(--cat);
  color: var(--cat-forte);
}

.noticia__capa svg {
  width: 64px;
  height: 64px;
  opacity: 0.85;
}

.noticia__corpo {
  display: grid;
  gap: var(--s-3);
  padding: var(--s-5);
}

.noticia__meta {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  color: var(--c-texto-suave);
  font-size: var(--fs-xs);
}

.noticia__cat {
  padding: 2px 10px;
  border-radius: var(--r-pill);
  background: var(--cat);
  color: var(--cat-forte);
  font-weight: var(--fw-bold);
}

.noticia h3 {
  font-size: 1.1875rem;
  line-height: 1.3;
}

.noticia h3 a {
  color: var(--c-tinta);
  text-decoration: none;
}

.noticia h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.noticia h3 a:focus-visible {
  outline: none;
}

.noticia__corpo > p:last-child {
  color: var(--c-texto-suave);
  font-size: var(--fs-sm);
}

.newsroom__link {
  margin-top: var(--s-6);
  text-align: center;
}

/* ---- CTA final / download ------------------------------------------------- */
.cta-final {
  padding-block: var(--s-section);
  background: var(--c-branco);
}

.cta-final__caixa {
  position: relative;
  display: grid;
  gap: var(--s-6);
  overflow: hidden;
  padding: var(--s-7) var(--s-5) 0;
  border-radius: var(--r-lg);
  /* Degradê inteiro escuro o bastante para texto branco (AA: 5,1 a 5,9:1) */
  background: linear-gradient(120deg, var(--c-ceu-escuro) 0%, #3566E0 100%);
  color: var(--c-branco);
  isolation: isolate;
}

.cta-final__caixa::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 520px;
  aspect-ratio: 1;
  right: -160px;
  top: -200px;
  border-radius: 50%;
  background: var(--c-ceu-claro);
  opacity: 0.18;
}

.cta-final__texto {
  display: grid;
  justify-items: start;
  gap: var(--s-4);
  align-self: center;
}

.cta-final__texto h2 {
  color: var(--c-branco);
  font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem);
}

.cta-final__texto > p:first-of-type {
  max-width: 30rem;
  font-size: var(--fs-lead);
}

.lojas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-2);
}

.loja {
  --focus: var(--c-sol);
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  min-height: 56px;
  padding: 0.5rem 1.375rem 0.5rem 1rem;
  border: 0;
  border-radius: 14px;
  background: var(--c-tinta);
  color: var(--c-branco);
  font-family: var(--f-titulo);
  font-size: 1.0625rem;
  font-weight: var(--fw-bold);
  line-height: 1.1;
  text-align: left;
  transition: transform var(--t-fast) var(--ease-out), background-color var(--t-fast) ease;
}

.loja:hover {
  background: #2A2420;
  transform: translateY(-1px);
}

.loja:active {
  transform: scale(0.98);
}

.loja svg {
  width: 28px;
  height: 28px;
  flex: none;
}

.loja span {
  display: grid;
}

.loja small {
  font-family: var(--f-texto);
  font-size: 0.6875rem;
  font-weight: var(--fw-medium);
  opacity: 0.85;
}

.cta-final__aviso {
  min-height: 1.5em;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
}

.cta-final__celular {
  justify-self: center;
  width: min(260px, 70%);
  margin-bottom: -22%;
  filter: drop-shadow(0 24px 30px rgb(20 17 15 / 0.3));
}

@media (min-width: 960px) {
  .cta-final__caixa {
    grid-template-columns: 1.2fr 1fr;
    padding: var(--s-8) var(--s-8) 0;
  }

  .cta-final__texto {
    padding-bottom: var(--s-8);
  }

  .cta-final__celular {
    align-self: end;
    width: 280px;
    margin-bottom: -18%;
    transform: rotate(-5deg);
  }
}

/* Tela inicial do celular */
.inicio {
  position: relative;
  isolation: isolate;
  padding-bottom: 14px;
  color: var(--c-branco);
}

.inicio__fundo {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.inicio .tela__status {
  color: var(--c-branco);
}

.inicio .tela__sinal {
  background: var(--c-branco);
}

.inicio__relogio {
  display: grid;
  justify-items: center;
  margin-top: 10px;
  text-shadow: 0 1px 8px rgb(20 17 15 / 0.35);
}

.inicio__relogio b {
  font-family: var(--f-titulo);
  font-size: 44px;
  font-weight: var(--fw-bold);
  line-height: 1;
  letter-spacing: -0.03em;
}

.inicio__relogio span {
  font-size: 10px;
  font-weight: var(--fw-semibold);
}

.inicio__dock {
  display: flex;
  justify-content: space-around;
  margin-top: 14px; /* logo abaixo do relógio, fora da parte cortada do celular */
  padding: 10px 6px;
  border-radius: 18px;
  background: rgb(255 255 255 / 0.3);
  backdrop-filter: blur(8px);
}

.inicio__app {
  display: grid;
  justify-items: center;
  gap: 4px;
  font-size: 9px;
  font-weight: var(--fw-semibold);
  text-shadow: 0 1px 4px rgb(20 17 15 / 0.5);
}

.inicio__app i {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--app);
  box-shadow: 0 4px 10px rgb(20 17 15 / 0.25);
}

.inicio__app svg {
  width: 24px;
  height: 24px;
  color: var(--c-branco);
}

/* ---- Liderança ------------------------------------------------------------ */
.pessoas {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-6) var(--s-4);
  margin: 0;
  padding: 0;
}

@media (min-width: 640px) {
  .pessoas {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .pessoas {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.pessoa {
  display: grid;
  justify-items: center;
  gap: var(--s-1);
  text-align: center;
}

/* Vale para o <span> com iniciais e, depois, para a <img> da foto */
.pessoa__foto {
  display: grid;
  place-items: center;
  width: clamp(88px, 22vw, 120px);
  aspect-ratio: 1;
  margin-bottom: var(--s-3);
  border: 4px solid var(--c-branco);
  border-radius: 50%;
  background: var(--av);
  box-shadow: var(--shadow-sm);
  color: var(--av-txt);
  font-family: var(--f-titulo);
  font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem);
  font-weight: var(--fw-extrabold);
  letter-spacing: -0.02em;
  object-fit: cover;
}

.pessoa__nome {
  font-size: 1.125rem;
}

.pessoa__cargo {
  color: var(--c-cacau-claro);
  font-family: var(--f-titulo);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
}

.pessoa__area {
  color: var(--c-texto-suave);
  font-size: var(--fs-xs);
}

.lideranca__link {
  margin-top: var(--s-7);
  text-align: center;
}

/* ==========================================================================
   SOBRE
   ========================================================================== */

/* ---- Missão e visão ---- */
.mv {
  display: grid;
  gap: var(--s-5);
}

@media (min-width: 960px) {
  .mv {
    grid-template-columns: 1fr 1fr;
    gap: var(--s-6);
  }
}

.mv__card {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: var(--s-5);
  padding: var(--s-7) var(--s-6);
  border-radius: var(--r-lg);
  background: var(--mv-bg);
}

.mv__frase {
  color: var(--c-tinta);
  font-family: var(--f-titulo);
  font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem);
  font-weight: var(--fw-bold);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

/* ---- Linha do tempo ---- */
/* [role="list"] para vencer a regra de reset do base.css, que zera o padding */
.linha[role="list"] {
  position: relative;
  display: grid;
  gap: var(--s-6);
  margin: 0;
  padding: 0 0 0 var(--s-6);
}

/* Trilho vertical */
.linha::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 7px;
  width: 2px;
  background: var(--c-borda);
}

.linha__item {
  position: relative;
  display: grid;
  gap: var(--s-1);
}

/* Bolinha no trilho */
.linha__item::before {
  content: "";
  position: absolute;
  top: 6px;
  left: calc(-1 * var(--s-6));
  width: 16px;
  height: 16px;
  border: 3px solid var(--c-creme);
  border-radius: 50%;
  background: var(--c-cacau-claro);
  box-shadow: 0 0 0 2px var(--c-cacau-claro);
}

.linha__item--hoje::before {
  background: var(--c-sol);
  box-shadow: 0 0 0 2px var(--c-sol);
}

.linha__ano {
  color: var(--c-cacau);
  font-family: var(--f-titulo);
  font-size: var(--fs-h3);
  font-weight: var(--fw-extrabold);
}

.linha__item p {
  color: var(--c-texto-suave);
}

@media (min-width: 640px) {
  .linha__item {
    grid-template-columns: 6rem 1fr;
    gap: var(--s-5);
    align-items: baseline;
  }
}

/* ---- Valores ---- */
.valores {
  display: grid;
  gap: var(--s-4);
  margin: 0;
  padding: 0;
}

@media (min-width: 640px) {
  .valores {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .valores {
    grid-template-columns: repeat(6, 1fr);
    gap: var(--s-5);
  }

  /* 3 em cima, 2 embaixo, centralizados */
  .valor { grid-column: span 2; }
  .valor:nth-child(4) { grid-column: 2 / span 2; }
}

.valor {
  display: grid;
  align-content: start;
  gap: var(--s-2);
  padding: var(--s-5) var(--s-5) var(--s-6);
  border-radius: var(--r-lg);
  background: var(--valor-bg);
}

.valor__num {
  color: var(--valor-cor);
  font-family: var(--f-titulo);
  font-size: 2.5rem;
  font-weight: var(--fw-extrabold);
  line-height: 1;
  letter-spacing: -0.04em;
}

.valor p {
  color: var(--c-texto-suave);
}

/* ---- Liderança com biografias ---- */
.bios {
  display: grid;
  gap: var(--s-4);
  margin: 0;
  padding: 0;
}

@media (min-width: 960px) {
  .bios {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s-5);
  }
}

.bio {
  display: flex;
  gap: var(--s-4);
  align-items: flex-start;
  padding: var(--s-5);
  border-radius: var(--r-lg);
  background: var(--c-branco);
  box-shadow: var(--shadow-sm);
}

.bio__foto {
  display: grid;
  place-items: center;
  flex: none;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--av);
  color: var(--av-txt);
  font-family: var(--f-titulo);
  font-size: 1.375rem;
  font-weight: var(--fw-extrabold);
  object-fit: cover;
}

.bio__texto {
  display: grid;
  gap: var(--s-1);
}

.bio__texto h3 {
  font-size: 1.25rem;
}

.bio__cargo {
  color: var(--c-cacau-claro);
  font-family: var(--f-titulo);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
}

.bio__texto p:last-child {
  margin-top: var(--s-1);
  color: var(--c-texto-suave);
  font-size: var(--fs-sm);
}

/* ---- Raízes em Ilhéus ---- */
.raizes-sobre {
  display: grid;
  gap: var(--s-7);
  align-items: center;
}

.raizes-sobre__fotos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
}

.raizes-sobre__fotos img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--r-lg);
}

.raizes-sobre__fotos img:last-child {
  margin-top: var(--s-7);
}

.raizes-sobre__texto {
  display: grid;
  justify-items: start;
  gap: var(--s-4);
}

.raizes-sobre__texto > p:not(.lead) {
  color: var(--c-texto-suave);
}

.raizes-sobre__fatos {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin: var(--s-2) 0 0;
  padding: 0;
}

.raizes-sobre__fatos li {
  display: grid;
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md);
  background: var(--c-creme);
  font-family: var(--f-titulo);
  font-weight: var(--fw-bold);
}

.raizes-sobre__fatos b {
  color: var(--c-texto-suave);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
}

@media (min-width: 960px) {
  .raizes-sobre {
    grid-template-columns: 1fr 1fr;
    gap: var(--s-8);
  }
}

/* ==========================================================================
   PRODUTOS
   ========================================================================== */

/* ---- Atalhos para os apps, no topo ---- */
.apps-nav {
  display: grid;
  gap: var(--s-3);
}

.apps-nav__item {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-4) var(--s-5);
  border-radius: var(--r-lg);
  background: var(--app-pastel);
  color: var(--c-tinta);
  text-decoration: none;
  transition: transform var(--t-fast) var(--ease-out), box-shadow var(--t-fast) ease;
}

.apps-nav__item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

.apps-nav__item > span:last-child {
  display: grid;
}

.apps-nav__item b {
  font-family: var(--f-titulo);
  font-size: 1.25rem;
  font-weight: var(--fw-extrabold);
}

.apps-nav__item small {
  color: var(--c-texto-suave);
  font-size: var(--fs-sm);
}

.apps-nav__item::after {
  content: "↓";
  margin-left: auto;
  color: var(--app-escuro);
  font-weight: var(--fw-bold);
}

/* ---- Seção de cada app ---- */
.produto__grade {
  display: grid;
  gap: var(--s-7);
  align-items: center;
}

@media (min-width: 960px) {
  .produto__grade {
    grid-template-columns: 1fr 1fr;
    gap: var(--s-8);
  }

  .produto--invertido .destaque__visual {
    order: -1;
  }
}

.produto__texto {
  display: grid;
  justify-items: start;
  gap: var(--s-4);
}

.produto__texto h2 {
  font-size: clamp(2.5rem, 1.8rem + 3vw, 4rem);
}

.produto__frase {
  margin-top: calc(-1 * var(--s-3));
  color: var(--app-escuro);
  font-family: var(--f-titulo);
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
}

.recursos {
  display: grid;
  gap: var(--s-4);
  margin: var(--s-2) 0 var(--s-4);
  padding: 0;
}

@media (min-width: 640px) {
  .recursos {
    grid-template-columns: 1fr 1fr;
    gap: var(--s-5);
  }
}

.recursos li {
  display: grid;
  gap: 2px;
  padding-left: var(--s-4);
  border-left: 3px solid var(--app);
  color: var(--c-texto-suave);
  font-size: var(--fs-sm);
}

.recursos b {
  color: var(--c-tinta);
  font-family: var(--f-titulo);
  font-size: 1rem;
}

/* ---- Como funciona (3 passos) ---- */
.passos {
  margin-top: var(--s-8);
  padding: var(--s-6) var(--s-5);
  border-radius: var(--r-lg);
  background: var(--app-pastel);
}

.passos__titulo {
  margin-bottom: var(--s-5);
}

.passos__lista {
  display: grid;
  gap: var(--s-5);
  margin: 0;
  padding: 0;
  counter-reset: passo;
}

@media (min-width: 960px) {
  .passos {
    padding: var(--s-7) var(--s-8);
  }

  .passos__lista {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-6);
  }
}

.passos__lista li {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: var(--s-4);
  row-gap: 2px;
  color: var(--c-texto-suave);
  font-size: var(--fs-sm);
}

.passos__lista b {
  color: var(--c-tinta);
  font-family: var(--f-titulo);
  font-size: 1.0625rem;
}

.passos__lista li > :not(.passos__num) {
  grid-column: 2;
}

.passos__num {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--app-escuro);
  color: var(--c-branco);
  font-family: var(--f-titulo);
  font-weight: var(--fw-extrabold);
}

/* ---- Tela do Compare ---- */
.cmp__busca {
  margin-top: 6px;
  background: var(--c-compare-pastel);
  color: var(--c-tinta);
  font-weight: var(--fw-semibold);
}

.cmp__resumo {
  color: var(--c-texto-suave);
}

.cmp__resumo b {
  color: var(--c-mata-escuro);
}

.cmp__lojas {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cmp__lojas li {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2px 6px;
  padding: 8px 10px;
  border: 1px solid #ECE7F7;
  border-radius: 10px;
}

.cmp__lojas div {
  display: grid;
}

.cmp__lojas small {
  color: var(--c-texto-suave);
  font-size: 9px;
}

.cmp__lojas span {
  font-family: var(--f-titulo);
  font-weight: var(--fw-extrabold);
}

.cmp__lojas em {
  grid-column: 1 / -1;
  justify-self: start;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: var(--c-mata-pastel);
  color: var(--c-mata-escuro);
  font-size: 9px;
  font-style: normal;
  font-weight: var(--fw-bold);
}

.cmp__lojas .is-melhor {
  border-color: var(--c-compare);
  background: #F6F7FF;
}

.cmp__lojas .is-melhor span {
  color: var(--c-mata-escuro);
}

.cmp__grafico {
  display: grid;
  gap: 4px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #F8F7FC;
}

.cmp__grafico small {
  color: var(--c-texto-suave);
  font-size: 9px;
}

.cmp__grafico svg {
  width: 100%;
  height: 40px;
}

.cmp__alerta {
  padding: 8px;
  border-radius: var(--r-pill);
  background: var(--c-compare-escuro);
  color: var(--c-branco);
  font-weight: var(--fw-semibold);
  text-align: center;
}

/* ---- Ecossistema ---- */
.ciclo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--s-3) var(--s-6);
  margin: 0 0 var(--s-7);
  padding: 0;
}

.ciclo li {
  position: relative;
  display: grid;
  justify-items: center;
  padding: var(--s-4) var(--s-6);
  border-radius: var(--r-lg);
  background: var(--app-pastel);
  text-align: center;
}

.ciclo b {
  font-family: var(--f-titulo);
  font-size: 1.25rem;
  font-weight: var(--fw-extrabold);
}

.ciclo span {
  color: var(--c-texto-suave);
  font-size: var(--fs-sm);
}

/* Setas entre os elos; a última volta para o começo */
@media (min-width: 640px) {
  .ciclo li + li::before {
    content: "→";
    position: absolute;
    left: calc(-1 * var(--s-6) / 2 - 0.5em);
    top: 50%;
    transform: translateY(-50%);
    color: var(--c-cacau-claro);
    font-weight: var(--fw-bold);
  }

  .ciclo li:last-child::after {
    content: "↺ volta ao início";
    position: absolute;
    left: 50%;
    bottom: calc(-1 * var(--s-5));
    transform: translateX(-50%);
    color: var(--c-texto-suave);
    font-size: var(--fs-xs);
    white-space: nowrap;
  }
}

.eco-tabela {
  overflow-x: auto;
  border-radius: var(--r-lg);
  background: var(--c-branco);
  box-shadow: var(--shadow-sm);
}

.eco-tabela table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: var(--fs-sm);
  text-align: left;
}

.eco-tabela th,
.eco-tabela td {
  padding: var(--s-4) var(--s-5);
  border-bottom: 1px solid var(--c-borda);
  vertical-align: top;
}

.eco-tabela thead th {
  color: var(--c-texto-suave);
  font-family: var(--f-titulo);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.eco-tabela tbody tr:last-child > * {
  border-bottom: 0;
}

.eco-tabela td:nth-child(2) {
  color: var(--c-tinta);
  font-weight: var(--fw-semibold);
}

.eco-app {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--f-titulo);
  font-weight: var(--fw-extrabold);
}

.eco-app::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--app);
}

/* ==========================================================================
   IMPACTO
   ========================================================================== */

/* ---- Resumo no topo ---- */
.impacto-resumo {
  display: grid;
  gap: var(--s-3);
  margin: 0;
  padding: 0;
}

.impacto-resumo li {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-4) var(--s-5);
  border-radius: var(--r-lg);
  background: var(--cor);
}

.impacto-resumo b {
  min-width: 4.5ch;
  color: var(--c-cacau);
  font-family: var(--f-titulo);
  font-size: clamp(2rem, 1.6rem + 1.4vw, 2.75rem);
  font-weight: var(--fw-extrabold);
  letter-spacing: -0.03em;
  line-height: 1;
}

.impacto-resumo span {
  color: var(--c-texto-suave);
  font-weight: var(--fw-medium);
}

/* ---- Bloco de cada pilar ---- */
.pilar-bloco__grade {
  display: grid;
  grid-template-columns: minmax(0, 1fr); /* não deixa o conteúdo alargar a coluna no celular */
  gap: var(--s-7);
  align-items: center;
}

@media (min-width: 960px) {
  .pilar-bloco__grade {
    grid-template-columns: 1fr 1fr;
    gap: var(--s-8);
  }

  .pilar-bloco--invertido .pilar-bloco__visual {
    order: 2;
  }
}

.pilar-bloco__visual {
  display: grid;
  gap: var(--s-5);
  padding: var(--s-5);
  border-radius: var(--r-lg);
  background: var(--pilar-bg);
}

.pilar-bloco__ilustra {
  width: 100%;
  height: auto;
  border-radius: var(--r-md);
  background: rgb(255 255 255 / 0.55);
}

.pilar-bloco__numero {
  display: flex;
  align-items: baseline;
  gap: var(--s-3);
  color: var(--c-tinta);
  font-weight: var(--fw-medium);
}

.pilar-bloco__numero b {
  color: var(--pilar-forte);
  font-family: var(--f-titulo);
  font-size: clamp(2.5rem, 1.8rem + 2.6vw, 3.5rem);
  font-weight: var(--fw-extrabold);
  letter-spacing: -0.03em;
  line-height: 1;
}

.pilar-bloco__texto {
  display: grid;
  justify-items: start;
  gap: var(--s-4);
}

.meta {
  display: grid;
  gap: var(--s-1);
  width: 100%;
  padding: var(--s-4) var(--s-5);
  border-radius: var(--r-md);
  background: var(--pilar-bg);
}

.meta__rotulo {
  color: var(--pilar-forte);
  font-family: var(--f-titulo);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.meta p {
  color: var(--c-tinta);
  font-family: var(--f-titulo);
  font-size: 1.125rem;
  font-weight: var(--fw-bold);
}

.iniciativas__titulo {
  margin-top: var(--s-2);
  font-size: 1.125rem;
}

.iniciativas {
  display: grid;
  gap: var(--s-3);
  width: 100%;
  margin: 0;
  padding: 0;
}

.iniciativas li {
  display: grid;
  gap: 2px;
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--c-borda);
  color: var(--c-texto-suave);
  font-size: var(--fs-sm);
}

.iniciativas li:last-child {
  border-bottom: 0;
}

.iniciativas b {
  color: var(--c-tinta);
  font-family: var(--f-titulo);
  font-size: 1rem;
}

.cta-faixa--relatorio {
  background: var(--c-mata-pastel);
}

/* ==========================================================================
   IMPRENSA
   ========================================================================== */

/* ==========================================================================
   CARREIRAS
   ========================================================================== */

/* ==========================================================================
   CONTATO
   ========================================================================== */

/* ==========================================================================
   TERMOS / PRIVACIDADE / 404
   ========================================================================== */

/* Tabela do ecossistema vira cartões empilhados no celular */
@media (max-width: 639px) {
  .eco-tabela {
    overflow: visible;
    background: none;
    box-shadow: none;
  }

  .eco-tabela table {
    min-width: 0;
  }

  .eco-tabela thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .eco-tabela table,
  .eco-tabela tbody,
  .eco-tabela tr,
  .eco-tabela th,
  .eco-tabela td {
    display: block;
  }

  .eco-tabela tr {
    margin-bottom: var(--s-4);
    padding: var(--s-4) var(--s-5);
    border-radius: var(--r-lg);
    background: var(--c-branco);
    box-shadow: var(--shadow-sm);
  }

  .eco-tabela th,
  .eco-tabela td {
    padding: var(--s-2) 0;
    border-bottom: 0;
  }

  .eco-tabela td::before {
    content: attr(data-rotulo);
    display: block;
    color: var(--c-texto-suave);
    font-family: var(--f-titulo);
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }
}

/* ==========================================================================
   IMPRENSA (estilos da página)
   ========================================================================== */
.page-hero--simples {
  padding-bottom: var(--s-7);
}

.page-hero--simples .page-hero__texto {
  max-width: 44rem;
}

/* ---- Filtro por categoria ---- */
.filtro {
  display: grid;
  gap: var(--s-3);
  margin-bottom: var(--s-6);
}

.filtro[hidden] {
  display: none;
}

.filtro__rotulo {
  color: var(--c-texto-suave);
  font-family: var(--f-titulo);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
}

.filtro__botoes {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}

.filtro__botao {
  min-height: 44px;
  padding: 0.5rem 1.125rem;
  border: 1px solid var(--c-borda);
  border-radius: var(--r-pill);
  background: var(--c-branco);
  color: var(--c-tinta);
  font-family: var(--f-titulo);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  transition: background-color var(--t-fast) ease, border-color var(--t-fast) ease;
}

.filtro__botao:hover {
  border-color: var(--c-cacau-claro);
}

.filtro__botao[aria-pressed="true"] {
  border-color: var(--c-cacau);
  background: var(--c-cacau);
  color: var(--c-branco);
}

.filtro__status {
  color: var(--c-texto-suave);
  font-size: var(--fs-sm);
}

/* ---- Lista de notícias ---- */
@media (min-width: 640px) and (max-width: 959px) {
  .noticias--lista {
    grid-template-columns: repeat(2, 1fr);
  }
}

.noticia[hidden] {
  display: none;
}

.noticia--estatica:hover {
  transform: none;
  box-shadow: var(--shadow-sm);
}

.noticia--estatica .noticia__corpo > p:last-child {
  color: var(--c-texto-suave);
}

/* Notícia aberta a partir de um link da home (ex.: #compare-alerta) */
.noticia:target {
  outline: 3px solid var(--cat-forte);
  outline-offset: 4px;
}

/* ---- Kit de imprensa ---- */
.kit {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-7);
  align-items: start;
}

@media (min-width: 960px) {
  .kit {
    grid-template-columns: 1fr 1fr;
    gap: var(--s-8);
  }
}

.kit__texto {
  display: grid;
  justify-items: start;
  gap: var(--s-4);
}

.fatos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-3);
  width: 100%;
  margin: var(--s-2) 0;
}

.fatos div {
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md);
  background: var(--c-branco);
}

.fatos dt {
  color: var(--c-texto-suave);
  font-size: var(--fs-xs);
}

.fatos dd {
  margin: 0;
  font-family: var(--f-titulo);
  font-weight: var(--fw-bold);
}

.contato-imprensa {
  display: grid;
  gap: var(--s-1);
}

.contato-imprensa a {
  font-family: var(--f-titulo);
  font-size: 1.125rem;
  font-weight: var(--fw-bold);
}

.logos-kit {
  display: grid;
  grid-template-columns: minmax(0, 1fr); /* um logo por linha; o "completo" volta quando for refeito */
  gap: var(--s-4);
  margin: 0;
  padding: 0;
}

.logo-kit {
  display: grid;
  gap: var(--s-3);
  align-content: start;
  justify-items: start;
  padding: var(--s-4);
  border-radius: var(--r-lg);
  background: var(--c-branco);
  box-shadow: var(--shadow-sm);
}

.logo-kit--largo {
  grid-column: 1 / -1;
}

.logo-kit img {
  width: 100%;
  height: 120px;
  object-fit: contain;
  padding: var(--s-4);
  border-radius: var(--r-md);
  background: var(--c-creme);
}

.logo-kit div {
  display: grid;
}

.logo-kit span {
  color: var(--c-texto-suave);
  font-size: var(--fs-xs);
}

/* ==========================================================================
   CARREIRAS (estilos da página)
   ========================================================================== */
.cultura {
  display: grid;
  gap: var(--s-4);
  margin: 0;
  padding: 0;
  counter-reset: cultura;
}

@media (min-width: 960px) {
  .cultura {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-6);
  }
}

.cultura li {
  display: grid;
  gap: var(--s-2);
  padding-top: var(--s-4);
  border-top: 2px solid var(--c-cacau);
  color: var(--c-texto-suave);
}

.cultura b {
  color: var(--c-tinta);
  font-family: var(--f-titulo);
  font-size: var(--fs-h3);
}

.beneficios {
  display: grid;
  gap: var(--s-4);
  margin: 0;
  padding: 0;
}

@media (min-width: 640px) {
  .beneficios {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s-5);
  }
}

@media (min-width: 1280px) {
  .beneficios {
    grid-template-columns: repeat(4, 1fr);
  }
}

.beneficio {
  display: grid;
  align-content: start;
  gap: var(--s-2);
  padding: var(--s-5);
  border-radius: var(--r-lg);
  background: var(--b-bg);
}

.beneficio h3 {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 1.25rem;
}

.beneficio h3 svg {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--c-cacau);
}

.beneficio p {
  color: var(--c-tinta); /* cinza fica apagado sobre fundo colorido */
}

.nota-ficticia {
  margin-top: var(--s-5);
  color: var(--c-texto-suave);
  font-size: var(--fs-xs);
  text-align: center;
}

.vagas {
  display: grid;
  gap: var(--s-4);
  margin: 0;
  padding: 0;
}

.vaga {
  display: grid;
  gap: var(--s-4);
  padding: var(--s-5);
  border: 1px solid var(--c-borda);
  border-radius: var(--r-lg);
  background: var(--c-creme);
}

@media (min-width: 640px) {
  .vaga {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: var(--s-6);
  }
}

.vaga__info {
  display: grid;
  gap: var(--s-2);
}

.vaga__info h3 {
  font-size: 1.25rem;
}

.vaga__info > p:last-child {
  color: var(--c-texto-suave);
  font-size: var(--fs-sm);
}

.vaga__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}

.vaga__meta span {
  padding: 2px 10px;
  border-radius: var(--r-pill);
  background: var(--c-branco);
  color: var(--c-tinta);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
}

.vaga .btn {
  justify-self: start;
}

/* ---- Janela de aviso (candidatura simulada) ---- */
.aviso-dialog {
  width: min(92vw, 30rem);
  padding: var(--s-6);
  border: 0;
  border-radius: var(--r-lg);
  background: var(--c-branco);
  color: var(--c-tinta);
  box-shadow: var(--shadow-lg);
}

.aviso-dialog::backdrop {
  background: rgb(20 17 15 / 0.55);
}

.aviso-dialog h2 {
  margin-bottom: var(--s-3);
  font-size: var(--fs-h3);
}

.aviso-dialog p {
  margin-bottom: var(--s-3);
  color: var(--c-texto-suave);
}

.aviso-dialog form {
  margin-top: var(--s-5);
}

/* ==========================================================================
   CONTATO (estilos da página)
   ========================================================================== */
.canais {
  display: grid;
  gap: var(--s-4);
  margin: 0;
  padding: 0;
}

@media (min-width: 640px) {
  .canais {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1280px) {
  .canais {
    grid-template-columns: repeat(5, 1fr);
  }
}

.canal {
  display: grid;
  align-content: start;
  gap: var(--s-2);
  padding: var(--s-5);
  border-radius: var(--r-lg);
  background: var(--canal-bg);
  scroll-margin-top: var(--header-offset);
}

.canal h3 {
  font-size: 1.25rem;
}

.canal p {
  color: var(--c-tinta);
  font-size: var(--fs-sm);
}

.canal a {
  margin-top: var(--s-2);
  color: var(--canal-forte);
  font-family: var(--f-titulo);
  font-weight: var(--fw-bold);
  word-break: break-word;
}

/* Canal aberto a partir de um link do rodapé (ex.: #lojistas) */
.canal:target {
  outline: 3px solid var(--canal-forte);
  outline-offset: 4px;
}

/* ---- Formulário + endereço ---- */
.contato {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-7);
  align-items: start;
}

@media (min-width: 960px) {
  .contato {
    grid-template-columns: 1.2fr 1fr;
    gap: var(--s-8);
  }
}

.form {
  display: grid;
  gap: var(--s-4);
  padding: var(--s-6) var(--s-5);
  border-radius: var(--r-lg);
  background: var(--c-branco);
  box-shadow: var(--shadow-sm);
}

@media (min-width: 640px) {
  .form {
    padding: var(--s-7);
  }
}

.form h2 {
  font-size: var(--fs-h3);
}

.form__aviso {
  margin-top: calc(-1 * var(--s-2));
  color: var(--c-texto-suave);
  font-size: var(--fs-sm);
}

.campo {
  display: grid;
  gap: var(--s-1);
}

.campo label {
  font-family: var(--f-titulo);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
}

.campo input,
.campo select,
.campo textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 1rem;
  border: 1.5px solid #D6C8B6;
  border-radius: var(--r-md);
  background: var(--c-creme);
  color: var(--c-tinta);
  transition: border-color var(--t-fast) ease, background-color var(--t-fast) ease;
}

.campo textarea {
  resize: vertical;
  line-height: 1.5;
}

.campo input:hover,
.campo select:hover,
.campo textarea:hover {
  border-color: var(--c-cacau-claro);
}

.campo input:focus-visible,
.campo select:focus-visible,
.campo textarea:focus-visible {
  border-color: var(--c-ceu-escuro);
  background: var(--c-branco);
  outline-offset: 1px;
}

.campo [aria-invalid="true"] {
  border-color: #C2412B;
}

.campo__erro {
  min-height: 1.3em;
  color: #B3361F;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
}

.campo__erro:empty {
  min-height: 0;
}

.form .btn {
  justify-self: start;
}

.form__status {
  font-weight: var(--fw-semibold);
}

.form__status[data-estado="sucesso"] {
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md);
  background: var(--c-mata-pastel);
  color: var(--c-mata-escuro);
}

.form__status[data-estado="erro"] {
  color: #B3361F;
}

.endereco {
  display: grid;
  gap: var(--s-5);
}

.mapa {
  width: 100%;
  height: auto;
  border-radius: var(--r-lg);
}

.endereco__texto {
  display: grid;
  gap: var(--s-2);
}

.endereco address {
  font-family: var(--f-titulo);
  font-size: 1.125rem;
  font-style: normal;
  font-weight: var(--fw-bold);
}

.endereco__texto p {
  color: var(--c-texto-suave);
  font-size: var(--fs-sm);
}

.endereco__nota {
  font-style: italic;
}

/* ==========================================================================
   TERMOS / PRIVACIDADE (texto legal)
   ========================================================================== */
.legal__data {
  color: var(--c-texto-suave);
  font-size: var(--fs-sm);
}

.legal {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-7);
  align-items: start;
}

@media (min-width: 960px) {
  .legal {
    grid-template-columns: 16rem minmax(0, 1fr);
    gap: var(--s-8);
  }

  .legal__indice {
    position: sticky;
    top: calc(var(--header-offset) + var(--s-4));
  }
}

.legal__indice {
  padding: var(--s-5);
  border-radius: var(--r-lg);
  background: var(--c-creme);
}

.legal__indice p {
  margin-bottom: var(--s-3);
  font-family: var(--f-titulo);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
}

.legal__indice ol {
  display: grid;
  gap: var(--s-2);
  margin: 0;
  padding-left: 1.25rem;
  font-size: var(--fs-sm);
}

.legal__indice a {
  color: var(--c-texto-suave);
  text-decoration: none;
}

.legal__indice a:hover {
  color: var(--c-cacau);
  text-decoration: underline;
}

.legal__texto {
  max-width: 42rem;
}

.legal__texto h2 {
  margin: var(--s-7) 0 var(--s-3);
  font-size: var(--fs-h3);
  scroll-margin-top: var(--header-offset);
}

.legal__texto p,
.legal__texto ul {
  margin-bottom: var(--s-4);
  color: var(--c-texto-suave);
}

.legal__texto ul {
  display: grid;
  gap: var(--s-2);
  padding-left: 1.25rem;
}

.legal__texto strong {
  color: var(--c-tinta);
}

.legal__destaque {
  padding: var(--s-4) var(--s-5);
  border-radius: var(--r-md);
  background: var(--c-sol-pastel);
}

.legal__texto .legal__destaque {
  color: var(--c-tinta);
}

/* ==========================================================================
   404
   ========================================================================== */
.erro404 {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: var(--header-offset) 0 var(--s-8);
  background: var(--g-ceu);
  isolation: isolate;
}

/* Véu para o texto branco ter contraste sobre o céu claro */
.erro404::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at center, rgb(28 52 130 / 0.55), rgb(28 52 130 / 0.25) 70%);
}

.erro404__conteudo {
  display: grid;
  justify-items: center;
  gap: var(--s-4);
  max-width: 40rem;
  color: var(--c-branco);
  text-align: center;
  text-shadow: 0 2px 16px rgb(20 17 15 / 0.35);
}

.erro404__codigo {
  font-family: var(--f-titulo);
  font-size: clamp(5rem, 3rem + 10vw, 9rem);
  font-weight: var(--fw-extrabold);
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--c-sol);
}

.erro404 h1,
.erro404 .lead {
  color: var(--c-branco);
}

.erro404 .btn {
  margin-top: var(--s-3);
  text-shadow: none;
}

/* Frutos de cacau caindo */
.chuva {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.chuva span {
  position: absolute;
  top: -80px;
  left: var(--x);
  width: 26px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(90deg, #C47F22 0 18%, #E9A23B 18% 50%, #C47F22 50% 56%, #E9A23B 56%);
  opacity: 0.85;
  transform: rotate(var(--r));
}

.chuva span:nth-child(even) {
  background: linear-gradient(90deg, #9C4A20 0 18%, #C2622E 18% 50%, #9C4A20 50% 56%, #C2622E 56%);
}

/* Parados (espalhados pela tela) para quem pediu menos movimento */
.chuva span:nth-child(1) { top: 12%; }
.chuva span:nth-child(2) { top: 70%; }
.chuva span:nth-child(3) { top: 28%; }
.chuva span:nth-child(4) { top: 82%; }
.chuva span:nth-child(5) { top: 18%; }
.chuva span:nth-child(6) { top: 60%; }
.chuva span:nth-child(7) { top: 40%; }

@media (prefers-reduced-motion: no-preference) {
  .chuva span {
    top: -80px;
    animation: cacau-cai var(--d) linear var(--a) infinite;
  }

  @keyframes cacau-cai {
    from { transform: translateY(0) rotate(var(--r)); }
    to   { transform: translateY(calc(100vh + 160px)) rotate(calc(var(--r) + 180deg)); }
  }
}
