/* Funcionalmente — página inicial */
section {
  padding: clamp(80px, 11vw, 140px) 0;
}
section h2 {
  font-size: clamp(34px, 5.4vw, 64px);
  max-width: 16ch;
  margin-top: 14px;
}

/* Hero 100vh centralizada */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 120px 0 90px;
  overflow: clip;
  isolation: isolate;
}
.hero-centro {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero h1 {
  font-size: clamp(42px, 8.2vw, 112px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.98;
  margin-top: 18px;
}
.hero h1 em {
  font-style: normal;
  color: var(--brasa);
}
.hero-texto {
  max-width: 54ch;
  margin-top: 24px;
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--suave);
}
.hero-bts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

/* Crachá com o nome riscado */
.cracha {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 210px;
  margin-bottom: 26px;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 30px 50px -30px rgba(21, 32, 26, 0.55), inset 0 0 0 1px var(--linha);
  transform: rotate(-5deg);
  animation: balanca 6s ease-in-out infinite;
}
.cracha-topo {
  width: 100%;
  padding: 10px 0 8px;
  background: var(--brasa);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.cracha-nome {
  position: relative;
  padding: 10px 18px 2px;
  font-family: "Caveat", cursive;
  font-size: 42px;
  line-height: 1.1;
  color: var(--tinta);
}
.cracha-nome svg {
  position: absolute;
  inset: 16px 6px 6px;
  width: calc(100% - 12px);
  height: calc(100% - 22px);
  fill: none;
  stroke: var(--tinta);
  stroke-width: 5;
  stroke-linecap: round;
}
.cracha-nome path {
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
}
.pronto .cracha-nome path {
  animation: risca 0.7s 1.1s var(--saida) forwards;
}
.pronto .cracha-nome path + path {
  animation-delay: 1.45s;
}
.cracha-base {
  width: 100%;
  padding: 6px 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brasa-escura);
  opacity: 0;
  transition: opacity 0.4s 2.1s;
}
.pronto .cracha-base {
  opacity: 1;
}
@keyframes risca {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes balanca {
  0%,
  100% {
    transform: rotate(-5deg) translateY(0);
  }
  50% {
    transform: rotate(-2deg) translateY(-6px);
  }
}

/* Balões de tema flutuando no fundo */
.hero-fundo {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.bolha {
  position: absolute;
  padding: 10px 18px;
  border-radius: 18px 18px 18px 4px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--linha);
  font-weight: 600;
  font-size: 15px;
  color: var(--suave);
  white-space: nowrap;
  animation: flutua 9s ease-in-out infinite;
}
.b1 { top: 20%; left: 7%; }
.b2 { top: 28%; right: 8%; animation-delay: -2s; background: var(--sol); color: var(--tinta); }
.b3 { bottom: 22%; left: 10%; animation-delay: -4s; }
.b4 { bottom: 16%; right: 12%; animation-delay: -1s; background: var(--tinta); color: var(--papel); }
.b5 { top: 50%; right: 3%; animation-delay: -6s; }
.b6 { top: 14%; right: 26%; animation-delay: -3s; }
@keyframes flutua {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}
.hero-rolar {
  position: absolute;
  bottom: 26px;
  left: 50%;
  translate: -50% 0;
  width: 28px;
  height: 44px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 2px var(--tinta);
}
.hero-rolar span {
  position: absolute;
  top: 9px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 4px;
  background: var(--brasa);
  animation: rola 1.8s ease-in-out infinite;
}
@keyframes rola {
  60% {
    transform: translateY(14px);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

/* Anonimato */
.anonimato {
  background: var(--tinta);
  color: var(--papel);
}
.anonimato .olho {
  color: var(--sol);
}
.anonimato .olho::before {
  background: var(--sol);
}
.anon-grade {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}
.anon-cab {
  position: sticky;
  top: 120px;
}
.anon-cab p:not(.olho) {
  margin-top: 22px;
  max-width: 44ch;
  color: rgba(244, 239, 229, 0.72);
}
.travas {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.travas li {
  display: flex;
  gap: 22px;
  padding: 28px;
  border-radius: var(--raio);
  background: var(--tinta-2);
  box-shadow: inset 0 0 0 1px rgba(244, 239, 229, 0.08);
}
.trava-n {
  font-family: var(--titulo);
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  color: var(--brasa);
}
.travas h3 {
  font-size: 24px;
}
.travas p {
  margin-top: 8px;
  color: rgba(244, 239, 229, 0.72);
}

/* Avaliações */
.aval-grade {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 48px;
}
.aval {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 420px;
  padding: clamp(26px, 3.4vw, 44px);
  border-radius: 30px;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.5s var(--mola);
}
.aval:hover {
  transform: translateY(-6px);
}
.aval-alunos {
  background: var(--brasa);
  color: #fff;
}
.aval-prest {
  background: var(--sol);
  color: var(--tinta);
}
.aval-tag {
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  font-size: 13px;
  font-weight: 700;
}
.aval-prest .aval-tag {
  background: rgba(21, 32, 26, 0.1);
}
.aval h3 {
  margin-top: auto;
  padding-top: 60px;
  font-size: clamp(32px, 4vw, 50px);
  font-weight: 800;
}
.aval p {
  margin-top: 12px;
  max-width: 40ch;
  opacity: 0.88;
}
.aval ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 20px 0 0;
  padding: 0;
}
.aval li {
  padding: 5px 12px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px currentColor;
  font-size: 14px;
  font-weight: 600;
}
.aval-ir {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  font-weight: 700;
  font-size: 18px;
}
.aval-ir .seta {
  width: 22px;
  transition: transform 0.3s var(--saida);
}
.aval:hover .aval-ir .seta {
  transform: translateX(6px);
}

/* Ciclo */
.ciclo {
  padding-top: 0;
}
.ciclo-passos {
  list-style: none;
  counter-reset: p;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 48px 0 0;
  padding: 0;
}
.ciclo-passos li {
  counter-increment: p;
  padding-top: 22px;
  border-top: 2px solid var(--tinta);
}
.ciclo-passos li::before {
  content: "0" counter(p);
  display: block;
  font-family: var(--titulo);
  font-weight: 800;
  font-size: 15px;
  color: var(--brasa);
  margin-bottom: 18px;
}
.ciclo-passos b {
  font-family: var(--titulo);
  font-size: 24px;
  letter-spacing: -0.02em;
}
.ciclo-passos p {
  margin-top: 8px;
  color: var(--suave);
}

/* Você falou, a gente fez */
.mudamos {
  background: var(--papel-2);
}
.mud-lista {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 48px;
}
.mud {
  padding: 28px;
  border-radius: var(--raio);
  background: var(--papel);
  box-shadow: inset 0 0 0 1px var(--linha);
}
.mud-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brasa-escura);
}
.mud h3 {
  margin-top: 40px;
  font-size: 26px;
}
.mud p {
  margin-top: 10px;
  color: var(--suave);
}
.mud-vazio {
  color: var(--suave);
}

/* Dúvidas */
.duv-grade {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(30px, 6vw, 90px);
}
.duv-lista details {
  border-bottom: 1px solid var(--linha);
}
.duv-lista summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 72px;
  font-family: var(--titulo);
  font-size: 21px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.duv-lista summary::-webkit-details-marker {
  display: none;
}
.duv-lista summary::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  background: linear-gradient(var(--brasa), var(--brasa)) center / 100% 2px no-repeat, linear-gradient(var(--brasa), var(--brasa)) center / 2px 100% no-repeat;
  transition: transform 0.35s var(--saida);
}
.duv-lista details[open] summary::after {
  transform: rotate(45deg);
}
.duv-lista details p {
  padding-bottom: 24px;
  max-width: 60ch;
  color: var(--suave);
}

/* Final */
.final {
  background: var(--brasa);
  color: #fff;
}
.final-centro {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.final h2 {
  max-width: 20ch;
  font-size: clamp(34px, 5.6vw, 72px);
  font-weight: 800;
}
.final .bt {
  background: var(--tinta);
  box-shadow: none;
}
.final .bt-claro {
  background: transparent;
  color: #fff;
  box-shadow: inset 0 0 0 1.5px #fff;
}
.final .bt-claro:hover {
  background: #fff;
  color: var(--brasa-escura);
}

@media (max-width: 900px) {
  .anon-grade,
  .duv-grade,
  .aval-grade {
    grid-template-columns: 1fr;
  }
  .anon-cab {
    position: static;
    text-align: center;
  }
  .anon-cab h2,
  .anon-cab p {
    margin-inline: auto;
  }
  .ciclo-passos {
    grid-template-columns: 1fr 1fr;
    gap: 34px 18px;
  }
  .mud-lista {
    grid-template-columns: 1fr;
  }
  section > .caixa > .olho,
  section > .caixa > h2,
  .duv-grade > div:first-child {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-inline: auto;
  }
  .aval {
    min-height: 0;
    align-items: center;
    text-align: center;
  }
  .aval-tag {
    align-self: center;
  }
  .aval ul {
    justify-content: center;
  }
  .ciclo-passos li,
  .mud {
    text-align: center;
  }
  .mud-meta {
    justify-content: center;
  }
  .b5,
  .b6 {
    display: none;
  }
}
@media (max-width: 560px) {
  .hero-bts {
    flex-direction: column;
    width: 100%;
  }
  .hero-bts .bt {
    width: 100%;
  }
  .ciclo-passos {
    grid-template-columns: 1fr;
  }
  .travas li {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 24px 20px;
  }
  .b1 { top: 13%; left: 4%; }
  .b2 { top: 15%; right: 4%; }
  .b3 { bottom: 9%; left: 4%; }
  .b4 { bottom: 12%; right: 4%; }
  .cracha {
    width: 170px;
  }
  .cracha-nome {
    font-size: 34px;
  }
}
/* área de toque de 44 px no indicador de rolar */
.hero-rolar {
  width: 44px;
  height: 52px;
  box-shadow: none;
}
.hero-rolar::before {
  content: "";
  position: absolute;
  inset: 4px 8px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 2px var(--tinta);
}
.hero-rolar span {
  top: 13px;
}
@media (max-width: 560px) {
  .bolha {
    display: none;
  }
}
