/* Home v3 - pagina publica com seletor de publico.
   Regras do projeto que este arquivo respeita:
   . so var(--*) de base.html; nenhum hexa novo (so #fff);
   . um unico @media, em 767px (docs/mobile/BREAKPOINTS.md);
   . nada que use [hidden] declara display fora de :not([hidden]).

   A especificacao do Designer cita 8 tokens que NAO existem em base.html
   (--grad-hero, --grad-progress, --grad-avatar, --sh-btn, --sh-btn-hover,
   --focus-ring, --video-bg, --star). Custom property inexistente invalida a
   declaracao inteira - foi assim que o botao de feedback saiu branco no
   branco em 12/09. Aqui elas viram apelidos locais, montados com os tokens
   reais e com os valores que a landing em producao ja usa. */
.home {
  --hm-grad-hero: linear-gradient(135deg, var(--l50), var(--b50));
  --hm-grad-figura: linear-gradient(150deg, var(--l50) 0%, var(--b50) 60%, var(--l100) 100%);
  --hm-grad-avatar: linear-gradient(135deg, var(--l300), var(--b300));
  --hm-sh-hero: 0 20px 60px rgba(142, 106, 218, .22);
  --hm-video-bg: var(--tp);
  --hm-pad: 4rem;
  font-family: var(--fb);
  color: var(--tp);
  background: #fff;
}
.home h1, .home h2, .home h3 { font-family: var(--fd); font-weight: 400; }
.home p, .home li { text-wrap: pretty; }
.home h1, .home h2, .home h3 { text-wrap: pretty; }

/* ---------------------------------------------------------------- header */
.hm-nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem var(--hm-pad);
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--brs);
}
.hm-logo { margin: 0; font-size: 1.65rem; }
.hm-nav-acoes { display: flex; gap: .5rem; }

/* ----------------------------------------------------------------- hero */
.hm-hero { display: grid; grid-template-columns: 1fr 1fr; min-height: 620px; }
.hm-hero-texto {
  display: flex; flex-direction: column; justify-content: center; gap: 1.25rem;
  padding: 3.5rem var(--hm-pad); background: #fff;
}
.hm-hero-bloco:not([hidden]) { display: block; }
.hm-hero-figura {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  padding: 3rem; min-height: 420px;
  background: var(--hm-grad-figura);
}
.hm-hero-figura::before, .hm-hero-figura::after {
  content: ''; position: absolute; border-radius: 50%;
}
.hm-hero-figura::before {
  width: 400px; height: 400px; background: var(--l200); opacity: .2;
  top: -100px; right: -100px;
}
.hm-hero-figura::after {
  width: 280px; height: 280px; background: var(--b200); opacity: .18;
  bottom: -60px; left: -60px;
}
.hm-h1 { font-size: 2.9rem; line-height: 1.12; margin: 0 0 1.1rem; }
.hm-h1 em { font-style: italic; color: var(--l400); }
.hm-sub {
  font-size: 15.5px; line-height: 1.7; color: var(--ts);
  max-width: 430px; margin: 0 0 1.75rem;
}
.hm-ctas { display: flex; flex-wrap: wrap; gap: .7rem; margin-bottom: 1.5rem; }
/* Em coluna, o flex-basis de 180px do wrapper viraria ALTURA e esticaria os
   dois botoes. Aqui eles voltam a ter a altura do proprio conteudo. */
.hm-ctas-col { flex-direction: column; }
.hm-ctas-col .hm-cta-vaga { flex: 0 0 auto; }
.hm-cta-vaga { flex: 1 1 180px; }
.hm-cta-vaga .btn { width: 100%; justify-content: center; }
.hm-feat { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .65rem; }
.hm-feat li { display: flex; align-items: center; gap: .7rem; font-size: 13.5px; color: var(--ts); }
.hm-feat li::before { content: '\2726'; color: var(--l400); font-size: 11px; flex-shrink: 0; }

/* --------------------------------------------------------------- seletor */
.seletor {
  display: flex; width: 100%; max-width: 420px; padding: 4px;
  background: var(--sf2); border: 1px solid var(--brs); border-radius: 100px;
}
.seletor button {
  flex: 1; min-height: 44px; border: 0; border-radius: 100px; cursor: pointer;
  font-family: var(--fb); font-size: 13.5px; font-weight: 500;
  background: transparent; color: var(--ts);
  transition: all .2s var(--spring);
}
.seletor button[aria-selected="true"] { background: var(--l500); color: #fff; box-shadow: var(--sh2); }
.seletor button:focus-visible { outline: none; box-shadow: var(--foco); }

/* --------------------------------------------------------------- secoes */
.hm-sec { padding: var(--hm-pad); }
.hm-sec-sf { background: var(--sf2); }
.hm-sec-br { background: #fff; }
.hm-interno { max-width: 980px; margin: 0 auto; }
.hm-interno-estreito { max-width: 720px; margin: 0 auto; }
.hm-interno-passos { max-width: 880px; margin: 0 auto; }
.hm-cab { max-width: 620px; margin: 0 auto 2rem; text-align: center; }
.hm-h2 { font-size: 2rem; line-height: 1.3; margin: 0; }
.hm-cab p { font-size: 14.5px; line-height: 1.7; color: var(--ts); margin: .75rem 0 0; }
.hm-p { font-size: 14.5px; line-height: 1.7; color: var(--ts); margin: 0 0 1.25rem; }

.hm-passos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.hm-passo { padding: 1.25rem 1rem; text-align: center; }
.hm-num { font-family: var(--fd); font-size: 2.8rem; color: var(--l200); line-height: 1; margin-bottom: .6rem; }
.hm-passo h3 { font-size: 1.2rem; line-height: 1.35; margin: 0 0 .5rem; }
.hm-passo p { font-size: 13.5px; line-height: 1.6; color: var(--ts); margin: 0; }

.hm-dupla { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.hm-dupla h2 { font-size: 2rem; line-height: 1.3; margin: 0 0 .9rem; }
.hm-fig { justify-self: center; width: 100%; max-width: 360px; }
.hm-fig-larga { max-width: 380px; }
.hm-inverte .hm-fig { order: -1; }

.hm-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; align-items: stretch; }

/* ------------------------------------------------------------ cartoes */
.hm-card-hero {
  width: 100%; max-width: 340px; padding: 2.25rem;
  background: #fff; border-radius: 28px; box-shadow: var(--hm-sh-hero);
  position: relative; z-index: 1;
}
.hm-card-hero-p { max-width: 380px; padding: 1.75rem; }
.hm-orn { font-family: var(--fd); font-size: 4rem; color: var(--l300); line-height: 1; text-align: center; margin-bottom: 1rem; }
.hm-card-hero h3 { font-size: 1.3rem; text-align: center; margin: 0 0 1.1rem; }
.hm-linha-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--tm); margin: .4rem 0 1.1rem; }
.hm-tile {
  display: flex; align-items: center; gap: .75rem;
  background: var(--sf2); border-radius: 14px; padding: .7rem .8rem; margin-bottom: .6rem;
}
.hm-tile:last-child { margin-bottom: 0; }
.hm-tile-ico {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--l600); background: var(--l100);
}
.hm-tile-ico-b { background: var(--b100); color: var(--b500); }
.hm-tile-txt { flex: 1; min-width: 0; }
.hm-tile-txt strong { display: block; font-size: 13px; font-weight: 500; }
.hm-tile-txt span { display: block; font-size: 11.5px; color: var(--tm); }

.hm-canvas-faixa {
  display: flex; align-items: stretch; gap: 0;
  background: var(--sf2); border-radius: 14px; padding: 1rem .8rem;
}
.hm-bloco {
  flex: 1; min-width: 0; padding: .55rem .6rem;
  background: #fff; border: 1px solid var(--br); border-radius: 8px;
}
.hm-bloco-b { border-color: var(--b300); }
.hm-bloco-rot { font-size: 9.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--tm); }
.hm-bloco-b .hm-bloco-rot { color: var(--b500); }
.hm-bloco-tit { font-size: 12.5px; font-weight: 500; line-height: 1.25; }
.hm-bloco-sub { font-size: 11px; color: var(--ts); }
.hm-traco { align-self: center; width: 16px; height: 2px; background: var(--l300); flex-shrink: 0; }
.hm-card-rodape { font-size: 12px; color: var(--ts); margin: 1.1rem 0 0; }
.hm-card-topo { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; margin-bottom: 1.1rem; }
.hm-card-topo h3 { text-align: left; margin: 0; }

/* ------------------------------------------------------------- figuras */
.hm-fig-linha { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .9rem; }
.hm-fig-rot { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--tm); }
.hm-score { display: flex; align-items: baseline; gap: .35rem; margin-bottom: 1rem; }
.hm-score b { font-family: var(--fd); font-size: 3rem; font-weight: 400; line-height: 1; }
.hm-score span { font-size: 13px; color: var(--ts); }
.hm-metrica { display: grid; grid-template-columns: 70px 1fr 28px; align-items: center; gap: .6rem; margin-bottom: .55rem; font-size: 13px; color: var(--ts); }
.hm-metrica .track { height: 5px; }
.hm-metrica b { font-weight: 400; text-align: right; }
.hm-citacao {
  font-family: var(--fd); font-style: italic; font-size: 1.05rem; line-height: 1.5;
  color: var(--tp); border-left: 3px solid var(--l400); padding-left: .85rem; margin: 1rem 0 0;
}

.hm-autor { display: flex; align-items: center; gap: .6rem; margin-bottom: .8rem; }
.hm-autor .av { width: 36px; height: 36px; background: var(--hm-grad-avatar); }
.hm-autor-nome { font-size: 13px; font-weight: 500; }
.hm-autor-meta { font-size: 11.5px; color: var(--tm); }
.hm-midia {
  aspect-ratio: 4 / 3; border-radius: 14px; margin: .8rem 0;
  background: var(--hm-grad-avatar);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 22px;
}
.hm-reacoes { font-size: 12.5px; color: var(--ts); }
.hm-comentario { display: flex; gap: .55rem; background: var(--sf2); border-radius: 14px; padding: .7rem .8rem; margin-top: .8rem; font-size: 12.5px; color: var(--ts); }
.hm-comentario .av { width: 26px; height: 26px; background: var(--l500); font-size: 11px; }
.hm-comentario strong { color: var(--tp); font-weight: 500; }

.hm-video-campo {
  aspect-ratio: 16 / 9; border-radius: 14px; background: var(--hm-video-bg);
  display: flex; align-items: center; justify-content: center; margin-bottom: .9rem;
  font-family: var(--fd); font-size: 2.4rem; color: var(--l300);
}
.hm-nota { font-size: 12.5px; color: var(--ts); margin: .6rem 0 0; }

.hm-aluna { display: grid; grid-template-columns: 30px 1fr; gap: .6rem; align-items: center; margin-bottom: .85rem; }
.hm-aluna .av { width: 30px; height: 30px; background: var(--hm-grad-avatar); font-size: 12px; }
.hm-aluna-linha { display: flex; justify-content: space-between; font-size: 12.5px; margin-bottom: .3rem; }
.hm-aluna-linha strong { font-weight: 500; }
.hm-aluna-linha span { color: var(--tm); }
.hm-aluna-linha .hm-travou { color: var(--b500); }

.hm-escada { background: var(--sf2); border: 1px solid var(--brs); border-radius: var(--rlg); padding: 1.4rem; }
.hm-degrau { display: flex; align-items: center; gap: .6rem; width: 78%; padding: .7rem .8rem; background: #fff; border: 1px solid var(--br); border-radius: 8px; }
.hm-degrau-2 { margin-left: 12%; }
.hm-degrau-3 { margin-left: 22%; border-color: var(--b300); }
.hm-degrau-num { width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 11px; background: var(--l100); color: var(--l600); }
.hm-degrau-3 .hm-degrau-num { background: var(--b100); color: var(--b500); }
.hm-degrau-txt { font-size: 12.5px; font-weight: 500; line-height: 1.3; }
.hm-degrau-txt span { display: block; font-size: 11px; font-weight: 400; color: var(--ts); }
.hm-vertical { width: 2px; height: 16px; background: var(--l300); margin-left: 8%; }
.hm-vertical-2 { margin-left: 18%; }

/* Span aninhado dentro de flex/grid nao e blocado pelo pai; sem isto a
   barra some e o nome cola no @handle. */
.hm-autor-nome, .hm-autor-meta { display: block; }
.home .fill { display: block; }
.hm-aluna .track, .hm-metrica .track { display: block; }

/* ------------------------------------------------------------- negocio */
.hm-negocio { border-top: 3px solid var(--l300); padding: 1.7rem; }
.hm-negocio h3 { font-size: 1.2rem; line-height: 1.35; margin: 0 0 .55rem; }

/* --------------------------------------------------------------- mural */
.hm-mural-card { display: flex; flex-direction: column; gap: .8rem; }
.hm-mural-topo { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.hm-mural-meta { font-size: 11.5px; color: var(--tm); }
.hm-mural-preco { font-family: var(--fd); font-size: 1.1rem; }
.hm-mural-txt { font-size: 14px; line-height: 1.6; margin: 0; }
.hm-mural-pe { font-size: 12.5px; color: var(--ts); margin-top: auto; }

/* -------------------------------------------------------------- planos */
.hm-plano { display: flex; flex-direction: column; position: relative; }
.hm-plano-destaque { border: 2px solid var(--l300); }
.hm-fita {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--l500); color: #fff; border-radius: 100px;
  padding: .18rem .7rem; font-size: 9.5px; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
}
.hm-preco { font-family: var(--fd); font-size: 2.1rem; line-height: 1; margin: .35rem 0 .5rem; }
.hm-preco span { font-family: var(--fb); font-size: 13px; color: var(--ts); }
.hm-plano-nota { font-size: 12.5px; color: var(--ts); margin: 0 0 1rem; line-height: 1.5; }
.hm-plano ul { list-style: none; margin: 0 0 1.25rem; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.hm-plano li { font-size: 13.5px; color: var(--ts); }
.hm-plano .btn { margin-top: auto; }
.hm-rodape-nota { font-size: 12.5px; color: var(--tm); text-align: center; margin: 1.5rem 0 0; }

/* ----------------------------------------------------------------- faq */
.hm-faq { list-style: none; margin: 0; padding: 0; }
.hm-faq li { padding: 1.25rem 0; border-top: 1px solid var(--br); }
.hm-faq li:last-child { border-bottom: 1px solid var(--br); }
.hm-faq h3 { font-size: 1.2rem; line-height: 1.35; margin: 0 0 .45rem; }
.hm-faq p { font-size: 14px; line-height: 1.7; color: var(--ts); margin: 0; }
.hm-faq a { color: var(--l600); }

/* ------------------------------------------------------------ cta final */
.hm-cta { background: var(--hm-grad-hero); padding: 5rem var(--hm-pad); text-align: center; }
.hm-cta h2 { font-size: 2.3rem; line-height: 1.25; margin: 0 0 .8rem; }
.hm-cta p { font-size: 14.5px; line-height: 1.7; color: var(--ts); max-width: 420px; margin: 0 auto 1.75rem; }
.hm-cta .btn { max-width: 330px; width: 100%; justify-content: center; }

/* --------------------------------------------------------------- rodape */
.hm-rodape {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 1rem; padding: 1.75rem var(--hm-pad);
  border-top: 1px solid var(--brs); background: #fff;
  font-size: 12.5px; color: var(--tm);
}
.hm-rodape-links { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; }
.hm-rodape-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--tm); text-decoration: none; }
.hm-rodape-links a.hm-ensine { color: var(--l600); }

/* ================================================================ mobile */
@media (max-width: 767px) {
  .home { --hm-pad: 1.25rem; }
  .hm-nav { padding: .85rem 1rem; }
  .hm-hero { grid-template-columns: 1fr; min-height: 0; }
  .hm-hero-texto { padding: 2rem 1.25rem; }
  .hm-hero-figura { padding: 2rem 1.25rem; min-height: 0; }
  .hm-h1 { font-size: 2.2rem; }
  .hm-sec { padding: 2.5rem 1.25rem; }
  .hm-cta { padding: 3rem 1.25rem; }
  .hm-h2, .hm-dupla h2 { font-size: 1.6rem; }
  .hm-cta h2 { font-size: 1.8rem; }
  .hm-ctas { flex-direction: column; }
  .hm-cta-vaga { flex: 1 1 100%; width: 100%; }
  .hm-passos, .hm-cards, .hm-dupla { grid-template-columns: 1fr; }
  .hm-dupla { gap: 2rem; }
  .hm-inverte .hm-fig { order: 0; }
  .hm-rodape { padding: 1.75rem 1.25rem; }
}
