/* =========================================================
   Educacional — estilos da página
   ========================================================= */

/* ---------- Base (estilos globais do original) ---------- */
html { scroll-padding-top: 88px; }
body {
  margin: 0;
  background: #0b1229;
  font-family: var(--font-texto);
  line-height: normal;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--font-titulo); }
a { color: #b6c4ff; text-decoration: none; }
a:hover { color: #dce1ff; }
img { display: block; max-width: 100%; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.container {
  position: relative;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(20px, 2vw, 24px);
}
.lista-limpa { list-style: none; margin: 0; padding: 0; }

.brilho { position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; }

/* ---------- Botões ---------- */
.botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.4px;
  min-height: 52px;
  padding: 14px 28px;
  background: #4ecec5;
  color: #0b1229;
  box-shadow: 0 4px 12px rgba(78, 206, 197, 0.35);
  transition: background-color 0.15s ease;
}
.botao:hover { background: #63d8d0; color: #0b1229; }
.botao--contorno {
  font-weight: 600;
  background: transparent;
  color: #4ecec5;
  box-shadow: inset 0 0 0 1.5px #4ecec5;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.botao--contorno:hover { background: #4ecec5; color: #0b1229; }
.botoes { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: #0b1229;
  padding: clamp(64px, 9vw, 112px) 0 clamp(64px, 8vw, 96px);
}
/* foto de fundo: a pessoa fica à direita; o véu escurece a esquerda para o texto continuar legível */
.hero__fundo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; }
.hero__veu { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 18, 41, 0.78) 0%, rgba(11, 18, 41, 0.9) 100%); }
@media (min-width: 900px) {
  /* no computador a foto ocupa só a metade direita: aparece inteira, sem zoom */
  .hero__fundo {
    left: auto; width: 58%; object-position: center 35%; opacity: 0.85;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 40%);
            mask-image: linear-gradient(90deg, transparent 0, #000 40%);
  }
  .hero__veu { display: none; }
}
.hero__conteudo { position: relative; z-index: 1; }
.hero .brilho--a { top: -120px; left: -80px; width: 520px; height: 520px; background: rgba(79, 111, 216, 0.15); }
.hero .brilho--b { top: 80px; right: -120px; width: 460px; height: 460px; background: rgba(111, 92, 226, 0.12); }
.hero__conteudo { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.selo-ia { margin: 0; }

.hero__titulo {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(31px, 6vw, 52px);
  line-height: 1.1;
  letter-spacing: -1.7px;
  font-weight: 700;
  color: #dce1ff;
  text-wrap: pretty;
}
.hero__titulo span {
  background: linear-gradient(90deg, #b6c4ff, #dce1ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lead { margin: 0; font-size: clamp(18px, 4.8vw, 20px); line-height: 1.45; color: #c4c5d5; max-width: 56ch; }

/* ---------- Manifesto ---------- */
.manifesto { background: #f4f2ee; padding: clamp(56px, 6vw, 80px) 0; overflow: hidden; }
.manifesto__conteudo { display: flex; flex-direction: column; gap: clamp(28px, 3.5vw, 40px); }
.manifesto__topo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr));
  gap: clamp(24px, 5vw, 64px);
  align-items: end;
}
.manifesto__cabeca { display: flex; flex-direction: column; gap: 14px; }
.manifesto__olho { margin: 0; font-size: 12px; letter-spacing: 1.2px; font-weight: 700; color: #6f5ce2; }
.manifesto__titulo {
  margin: 0;
  font-size: clamp(32px, 4vw, 47px);
  line-height: 1.05;
  letter-spacing: -1.3px;
  font-weight: 800;
  color: #0b1229;
  text-wrap: balance;
}
.manifesto__titulo span { color: #6f5ce2; }
.manifesto__texto { margin: 0; font-size: clamp(17px, 1.8vw, 20px); line-height: 1.55; color: #3a4160; max-width: 520px; }

.degraus {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(116px, 100%), 1fr));
  gap: clamp(8px, 1.4vw, 14px);
  align-items: end;
}
.degrau {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  min-height: var(--altura);
  border-radius: 18px;
  padding: 14px 16px;
  transform-origin: 50% 100%;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) var(--atraso), opacity 0.5s ease var(--atraso);
  background: #fff;
  box-shadow: 0 1px 0 rgba(11, 18, 41, 0.06), 0 18px 40px -28px rgba(11, 18, 41, 0.35);
}
/* Animação de entrada: o JS marca .is-animado e depois .is-visivel quando a lista aparece na tela */
.degraus.is-animado .degrau { transform: scaleY(0.25); opacity: 0; }
.degraus.is-animado.is-visivel .degrau { transform: scaleY(1); opacity: 1; }
.degrau__numero { font-size: 13px; font-weight: 700; letter-spacing: 1px; color: var(--cor); }
.degrau__traco { display: block; height: 4px; width: 36px; border-radius: 9999px; background: var(--cor); }
.degrau__nome { font-size: clamp(18px, 1.9vw, 22px); line-height: 1.1; letter-spacing: -0.5px; font-weight: 700; color: #0b1229; }
.degrau--topo { background: #0b1229; }
.degrau--topo .degrau__nome { color: #fffeff; }

.manifesto__rodape {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(11, 18, 41, 0.14);
  padding-top: 22px;
}
.manifesto__frase { margin: 0; font-size: clamp(18px, 2vw, 22px); line-height: 1.45; font-weight: 600; color: #0b1229; max-width: 720px; text-wrap: pretty; }
.botao--escuro { font-size: 14px; padding: 14px 26px; background: #0b1229; color: #fffeff; box-shadow: none; }
.botao--escuro:hover { background: #6f5ce2; color: #fffeff; }

/* ---------- Seções de catálogo ---------- */
.catalogo { background: #0b1229; padding: clamp(72px, 8vw, 88px) 0; }
.catalogo--alt { background: #141a32; }
.catalogo__olho { margin: 0 0 12px; font-size: 12px; letter-spacing: 1.2px; font-weight: 700; color: #8b93b3; }
.catalogo__titulo { margin: 0 0 40px; font-size: clamp(28px, 2.9vw, 36px); line-height: 1.15; letter-spacing: -0.8px; font-weight: 700; color: #dce1ff; }

.midia { position: relative; aspect-ratio: 16 / 9; background: #0e1739; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.midia img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.link-contorno {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.4px;
  min-height: 48px;
  padding: 12px 22px;
  color: var(--cor-link, var(--cor));
  box-shadow: inset 0 0 0 1.5px var(--cor);
  transition: background-color 0.15s ease, color 0.15s ease;
}
.link-contorno:hover { background: var(--cor); color: var(--cor-sobre, #0b1229); }

/* Cursos (livres e abertos) */
.cursos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 20px; align-items: stretch; }
.cursos--livres { grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); }
.curso {
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  overflow: hidden;
  border: 1.5px solid var(--cor);
  background: #131f45;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}
.curso__selo {
  position: absolute;
  top: 14px;
  left: 14px;
  pointer-events: none;
  border-radius: 9999px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--cor-sobre, #0b1229);
  background: var(--cor);
}
.curso__corpo { display: flex; flex-direction: column; gap: 14px; padding: 24px 22px 22px; flex: 1; }
.curso__formato { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 0.3px; color: var(--cor-texto, var(--cor)); }
.curso__titulo { margin: 0; font-size: 21px; line-height: 1.2; letter-spacing: -0.4px; font-weight: 700; color: #fffeff; }
.curso__autor { margin: 0; font-size: 14px; color: #8b93b3; }
.curso__texto { margin: 0; font-size: 15px; line-height: 1.5; color: #c4c5d5; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; flex: 1; align-content: flex-start; }
.chips li { border-radius: 9999px; padding: 6px 12px; font-size: 13px; color: #dce1ff; background: var(--chip); }

/* ---------- Diagnóstico ---------- */

/* ---------- Instagram ---------- */
.comunidade { background: #141a32; padding: 112px 0; }
.comunidade__conteudo { max-width: 1240px; margin: 0 auto; padding: 0 24px; display: flex; flex-direction: column; gap: 32px; }
.comunidade__topo { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.comunidade__titulo {
  margin: 0.83em 0;
  font-size: clamp(28px, 4.5vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.9px;
  font-weight: 800;
  color: #dce1ff;
  text-transform: uppercase;
}
.comunidade__perfil { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; letter-spacing: 1.2px; color: #8b93b3; }
.comunidade__perfil:hover { color: #4ecec5; }
.feed {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(170px, 1fr);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.feed::-webkit-scrollbar { display: none; }
.feed__seguir {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  aspect-ratio: 228 / 308;
  border-radius: 16px;
  background: linear-gradient(160deg, #63d8d0 0%, #4ecec5 45%, #2fb3ab 100%);
  color: #0b1229;
  box-shadow: 0 20px 40px -20px rgba(78, 206, 197, 0.55);
  transition: transform 0.2s ease;
}
.feed__seguir:hover { transform: translateY(-4px); color: #0b1229; }
.feed__seguir strong { font-size: 20px; font-weight: 700; }
.feed__seguir span { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; letter-spacing: 1.4px; }
.feed__post {
  display: block;
  aspect-ratio: 228 / 308;
  border-radius: 16px;
  overflow: hidden;
  background: #131f45;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.7);
  transition: transform 0.2s ease;
}
.feed__post:hover { transform: translateY(-4px); }
.feed__post img { width: 100%; height: 100%; object-fit: cover; }

@media (prefers-reduced-motion: reduce) {
  .degrau, .feed__seguir, .feed__post, .botao, .link-contorno { transition: none; }
  .degraus.is-animado .degrau { transform: none; opacity: 1; }
}

/* ---------- Celular (até 679 px): ajustes só para telas pequenas; o desktop não muda ---------- */
@media (max-width: 679px) {
  /* Botões do topo em largura total, um embaixo do outro */
  .hero .botoes { flex-direction: column; align-items: stretch; align-self: stretch; }

  /* Degraus do manifesto: no celular viram uma escada deitada (barras que crescem para a direita) */
  .degraus { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
  .degrau {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    min-height: 56px;
    border-radius: 14px;
    padding: 12px 16px;
    transform-origin: 0 50%;
  }
  .degrau:nth-child(1) { width: 60%; }
  .degrau:nth-child(2) { width: 70%; }
  .degrau:nth-child(3) { width: 80%; }
  .degrau:nth-child(4) { width: 90%; }
  .degrau:nth-child(5) { width: 100%; }
  .degrau__traco { width: 20px; flex: 0 0 auto; }
  .degraus.is-animado .degrau { transform: scaleX(0.3); }
  .degraus.is-animado.is-visivel .degrau { transform: scaleX(1); }

  /* Selos das imagens dos cursos legíveis */
  .curso__selo { font-size: 12px; }

  /* Diagnóstico: botão em largura total, texto numa linha só */

  /* Instagram: menos espaço vazio e link do perfil com área de toque maior */
  .comunidade { padding: 64px 0; }
  .comunidade__conteudo { padding: 0 20px; gap: 24px; }
  .comunidade__titulo { margin: 0; }
  .comunidade__perfil { min-height: 44px; }
  .feed { grid-auto-columns: minmax(150px, 42%); scroll-padding: 0 20px; }
}
@media (max-width: 679px) and (prefers-reduced-motion: reduce) {
  .degraus.is-animado .degrau { transform: none; }
}

