/* Cores e fontes da Labora (paleta Mineral, sem âmbar) */
:root {
  --verde: #1E3329;
  --offwhite: #F5F2EA;
  --preto: #151515;
  --pedra: #C9C2B0;
  --cinza: #6E6B63;
  --verde-cinza: #A9B8AE;
  --suave: cubic-bezier(.23, 1, .32, 1);
  --margem: clamp(16px, 5vw, 72px);
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("../fontes/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fontes/instrument-serif-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

body {
  background: var(--offwhite);
  color: var(--preto);
  font-family: Manrope, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol { list-style: none; }

:focus-visible { outline: 2px solid var(--pedra); outline-offset: 3px; border-radius: 4px; }
.claro :focus-visible { outline-color: var(--verde); }

h1, h2, h3 { font-weight: 500; letter-spacing: -.025em; }
h2 { font-size: clamp(32px, 4.6vw, 56px); line-height: 1.08; max-width: 20ch; }
h3 { font-size: 19px; line-height: 1.3; letter-spacing: -.01em; }
p { max-width: 62ch; }

.destaque {
  position: relative;
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  padding: 0 .02em 0 .04em;
}

/* ---------- topo ---------- */
.topo {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px var(--margem);
  background: var(--verde);
  color: var(--offwhite);
  transition: background-color .35s var(--suave);
}
.js .topo:not(.rolado) { background-color: transparent; }
.topo-logo { flex-shrink: 0; border-radius: 4px; }
.topo img { width: 150px; min-width: 120px; }
.botao-topo {
  flex-shrink: 0;
  color: var(--offwhite); text-decoration: none; white-space: nowrap;
  font-size: 14px; font-weight: 500;
  padding: 10px 16px;
  border: 1px solid rgba(245, 242, 234, .3); border-radius: 999px;
  transition: border-color .3s, background-color .3s;
}
.botao-topo:hover { border-color: var(--pedra); background-color: rgba(245, 242, 234, .06); }

/* ---------- blocos ---------- */
.bloco { padding: clamp(80px, 11vw, 136px) var(--margem); }
.conteudo { max-width: 1100px; margin: 0 auto; }

.fundo-vivo {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--verde); color: var(--offwhite);
}
.fundo-vivo .destaque { color: var(--offwhite); }

.claro { background: var(--offwhite); color: var(--preto); }
.claro + .claro { border-top: 1px solid var(--pedra); }
.claro .destaque { color: var(--verde); }

.intro { margin-top: 24px; font-size: clamp(17px, 1.5vw, 19px); }
.fundo-vivo .intro { color: var(--offwhite); }
.claro .intro { color: var(--cinza); }

/* botões */
.acoes { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
.botao {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--offwhite); color: var(--verde); text-decoration: none;
  font-size: 16px; font-weight: 500; line-height: 1.2;
  padding: 16px 26px; border-radius: 999px;
  transition: transform .3s var(--suave);
}
.botao:hover { transform: scale(1.04); }
.claro .botao { background: var(--verde); color: var(--offwhite); }
.pulso { position: relative; flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.nota { font-size: 14px; }
.fundo-vivo .nota { color: var(--offwhite); }
.claro .nota { color: var(--cinza); }

/* 1. primeira tela */
.primeira-tela {
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: 128px;
}
.primeira-tela .conteudo { width: 100%; }
.descritor {
  font-size: 13px; letter-spacing: .18em; text-transform: lowercase;
  color: var(--offwhite); margin-bottom: 28px;
}
h1 {
  font-size: clamp(40px, 6.6vw, 92px); line-height: 1.04;
  max-width: 1100px;
}
h1 .linha { display: block; overflow: hidden; padding-bottom: .08em; }
h1 .linha > span { display: inline-block; }
.sub {
  margin-top: 28px; max-width: 540px;
  font-size: clamp(17px, 1.6vw, 20px); line-height: 1.5; color: var(--offwhite);
}

/* 2. problemas */
.cartoes {
  margin-top: 56px;
  display: grid; gap: 8px 40px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
.cartao { border-top: 1px solid var(--pedra); padding: 24px 0 16px; }
.cartao p { margin-top: 10px; color: var(--cinza); }
#titulo-problemas { max-width: none; }
[data-bloco="problemas"] .intro { max-width: 96ch; }
@media (min-width: 860px) {
  #titulo-problemas { white-space: nowrap; font-size: min(56px, calc((100vw - 2 * var(--margem)) / 15.8)); }
  [data-bloco="problemas"] .cartoes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
#titulo-o-que-faz .destaque { font-size: 1.25em; }
.fecho { margin-top: 48px; font-size: clamp(19px, 1.8vw, 22px); font-weight: 500; letter-spacing: -.01em; }

/* 3. diagnóstico */
.lugares {
  counter-reset: lugar;
  margin-top: 48px;
  display: grid; gap: 0 24px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
}
.lugares li {
  counter-increment: lugar;
  padding: 18px 0 22px;
  border-top: 1px solid rgba(201, 194, 176, .35);
  font-size: clamp(20px, 2vw, 24px); font-weight: 500; letter-spacing: -.015em; line-height: 1.25;
}
.lugares li::before {
  content: counter(lugar, decimal-leading-zero);
  display: block; margin-bottom: 10px;
  font-size: 13px; font-weight: 400; letter-spacing: .12em; color: var(--offwhite);
}
.lugares li span { display: block; margin-top: 4px; font-size: 14px; font-weight: 400; letter-spacing: 0; color: var(--offwhite); }
.recebe { margin-top: 48px; }
.recebe ul { margin-top: 12px; }
.recebe li { padding-left: 22px; position: relative; color: var(--offwhite); }
.recebe li::before { content: "—"; position: absolute; left: 0; color: var(--pedra); }

/* 4. o que faz */
.colunas {
  margin-top: 56px;
  display: grid; gap: 32px 56px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}
.coluna { border-top: 1px solid var(--pedra); padding-top: 24px; }
.coluna p { margin-top: 10px; color: var(--cinza); }

/* 5. como funciona */
.etapas {
  margin-top: 56px;
  display: grid; gap: 32px 64px;
}
.numero { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 400; letter-spacing: .12em; color: var(--offwhite); }
.etapas-abas { display: grid; gap: 4px; }
html:not(.js) .etapas-abas { display: none; }
.etapas-abas button {
  font: inherit; font-size: 18px; font-weight: 500; letter-spacing: -.01em; text-align: left;
  color: var(--verde-cinza); background: transparent; cursor: pointer;
  border: 0; border-left: 2px solid rgba(201, 194, 176, .3);
  padding: 12px 0 12px 20px;
  transition: color .4s var(--suave), border-color .4s var(--suave);
}
.etapas-abas button .numero { margin-bottom: 4px; }
.etapas-abas button[aria-selected="true"] { color: var(--offwhite); border-left-color: var(--pedra); }
.etapas-paineis { display: grid; gap: 40px 48px; }
html:not(.js) .etapas-paineis { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.etapas-paineis [role="tabpanel"] { border-radius: 4px; }
.etapas-paineis h3 { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.15; letter-spacing: -.02em; }
.etapas-paineis p { margin-top: 14px; font-size: clamp(17px, 1.5vw, 19px); color: var(--offwhite); }

/* 6. incluso */
.lista-incluso { margin-top: 48px; max-width: 760px; }
.lista-incluso li {
  position: relative;
  padding: 18px 0 18px 36px;
  border-top: 1px solid var(--pedra);
  font-size: clamp(18px, 1.7vw, 21px); font-weight: 500; letter-spacing: -.01em; line-height: 1.35;
}
.lista-incluso li::before {
  content: ""; position: absolute; left: 4px; top: 50%;
  width: 12px; height: 7px; margin-top: -6px;
  border-left: 2px solid var(--verde); border-bottom: 2px solid var(--verde);
  transform: rotate(-45deg);
}
.aviso { margin-top: 28px; color: var(--cinza); }

/* 7. quem cuida */
.pessoa {
  margin-top: 48px;
  display: grid; gap: 32px 64px; align-items: center;
}
.pessoa img { width: 100%; max-width: 420px; border-radius: 4px; background: var(--pedra); }
.pessoa-texto p { font-size: clamp(19px, 1.8vw, 22px); line-height: 1.5; }
.pessoa-texto p + p { margin-top: 14px; }
.pessoa-texto .assinatura { margin-top: 28px; font-size: 14px; letter-spacing: .04em; color: var(--cinza); }

/* 8. perguntas */
.lista-perguntas { margin-top: 48px; max-width: 820px; }
.lista-perguntas details { border-top: 1px solid var(--pedra); }
.lista-perguntas details:last-child { border-bottom: 1px solid var(--pedra); }
.lista-perguntas summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; gap: 20px;
  padding: 20px 0;
  font-size: clamp(18px, 1.7vw, 21px); font-weight: 500; letter-spacing: -.01em; line-height: 1.35;
}
.lista-perguntas summary::-webkit-details-marker { display: none; }
.lista-perguntas summary::after { content: "+"; flex-shrink: 0; font-weight: 400; color: var(--cinza); }
.lista-perguntas details[open] summary::after { content: "−"; }
.lista-perguntas details p { padding: 0 0 24px; color: var(--cinza); }

/* 9. fechamento */
.fechamento .conteudo { text-align: center; }
.fechamento h2 { margin: 0 auto; max-width: 18ch; }
.fechamento .acoes { justify-content: center; }
.local { margin: 32px auto 0; font-size: 14px; color: var(--offwhite); }
.local a { color: var(--offwhite); }

/* rodapé */
.rodape {
  background: var(--verde); color: var(--verde-cinza);
  padding: 28px var(--margem) 40px;
  border-top: 1px solid rgba(201, 194, 176, .2);
  font-size: 14px; text-align: center;
}
.rodape p { margin: 0 auto; }
.rodape a { color: var(--offwhite); text-underline-offset: 3px; }

/* privacidade */
.cabecalho-pagina { padding-top: 160px; padding-bottom: 64px; }
.cabecalho-pagina h1 { font-size: clamp(40px, 6vw, 72px); }
.texto-corrido .conteudo { max-width: 720px; }
.texto-corrido h2 { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; margin-top: 40px; }
.texto-corrido h2:first-child { margin-top: 0; }
.texto-corrido p, .texto-corrido li { margin-top: 12px; }
.texto-corrido ul li { position: relative; padding-left: 22px; }
.texto-corrido ul li::before { content: "—"; position: absolute; left: 0; color: var(--cinza); }
.texto-corrido strong { font-weight: 500; color: var(--preto); }
.voltar { margin-top: 48px !important; }

/* ---------- telas ---------- */
@media (min-width: 860px) {
  .js .etapas { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); align-items: start; }
  .js .etapas-paineis { padding-top: 12px; }
  .pessoa { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); }
}

@media (max-width: 560px) {
  .topo { padding-top: 12px; padding-bottom: 12px; }
  .topo img { width: 120px; }
  .botao-topo { font-size: 13px; padding: 8px 12px; }
  h1 .linha, h1 .linha > span { display: inline; overflow: visible; }
  .primeira-tela { padding-top: 88px; }
  .descritor { margin-bottom: 16px; }
  .primeira-tela .sub { margin-top: 20px; }
  .primeira-tela .acoes { margin-top: 28px; }
}

/* aviso de cookies: no rodapé da tela, longe do botão do topo */
.banner-cookies {
  position: fixed; z-index: 15; left: 12px; right: 12px; bottom: 12px;
  max-width: 560px; margin-left: auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px;
  padding: 16px 18px;
  background: var(--offwhite); color: var(--preto);
  border: 1px solid var(--pedra); border-radius: 8px;
  font-size: 14px; line-height: 1.45;
}
.banner-cookies p { flex: 1 1 260px; }
.banner-cookies :focus-visible { outline-color: var(--verde); }
.banner-botoes { display: flex; gap: 8px; }
.banner-botoes button {
  font: inherit; font-weight: 500; cursor: pointer;
  min-width: 96px; padding: 10px 16px; border-radius: 999px;
  background: var(--verde); color: var(--offwhite); border: 1px solid var(--verde);
}
@media (max-width: 560px) {
  .banner-cookies { left: 8px; right: 8px; bottom: 8px; padding: 10px 12px; gap: 8px 12px; font-size: 12.5px; line-height: 1.35; }
  .banner-cookies p { flex-basis: 100%; }
  .banner-botoes button { min-width: 0; padding: 8px 18px; }
}
