/*
  Pagina de entrada do English Buddie (index.html, bloco .eb-home).
  Lote pedagogico de 28/09/2026: PE-01 (faixas com as cores da marca),
  PE-02 (escala unica de tipo), PE-03 (Buddie em video na abertura),
  PE-04 (Buddie no tablet), PE-05 (selos coloridos), PE-06 (logo grande no
  rodape), PE-09 (desenvolvimento infantil), PE-10 (um menu so).
  Os padroes daqui sao a referencia visual do site: docs/IDENTIDADE_VISUAL.md §7.

  Tudo fica debaixo de .eb-home e as classes comecam com h- para nao brigar
  com o styles.css (que tem .button, .pill, .field globais) nem mudar as
  paginas /download e /oferta-especial, que usam as classes sales-*.

  O bloco aparece SEM JavaScript (e o que os analistas das lojas leem). Com
  JavaScript, a copia original (data-estatico) fica escondida e o app.js monta a mesma
  pagina dentro do #app (ver landingScreen no app.js).
*/

.eb-js .eb-home[data-estatico] { display: none; }

.eb-home {
  /* Faixas (PE-01): tres azuis + amarelo-claro de apoio. Nenhuma e branco puro. */
  --h-azul: #1441a8;          /* azul-escuro: abertura e botoes */
  --h-noite: #0e2f80;         /* azul mais fundo: rodape */
  --h-vivo: #2563eb;          /* faixa dos selos */
  --h-ceu: #d9e9fc;           /* azul-claro */
  --h-gelo: #f1f7ff;          /* quase-branco azulado */
  --h-sol: #fff3c4;           /* amarelo-claro de apoio */
  --h-amarelo: #ffc933;       /* destaque: botao principal e estrela */
  --h-tinta: #1b2a4a;
  --h-tinta-suave: #3d4d70;
  --h-cartao: #fbfdff;
  --h-borda: #cfe0f6;

  /* Escala unica de tipo (PE-02). Texto corrido: 17px no celular, 19px no desktop. */
  --h-t-titulo: clamp(2.6rem, 1.7rem + 4vw, 4.6rem);
  --h-t-secao: clamp(2rem, 1.45rem + 2.4vw, 3.25rem);
  --h-t-lede: clamp(1.2rem, 1.08rem + 0.55vw, 1.5rem);
  --h-t-cartao: clamp(1.3rem, 1.2rem + 0.4vw, 1.55rem);
  --h-t-texto: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  --h-t-botao: 1.125rem;
  --h-t-miudo: 0.9375rem;

  --h-fonte-titulo: "Baloo 2", "Nunito", ui-rounded, system-ui, sans-serif;
  --h-fonte-texto: "Nunito", "Segoe UI", system-ui, sans-serif;
  --h-raio: 26px;
  --h-sombra: 0 18px 40px rgba(14, 47, 128, 0.14);
  --h-respiro: clamp(64px, 8vw, 112px);

  font-family: var(--h-fonte-texto);
  font-size: var(--h-t-texto);
  line-height: 1.6;
  color: var(--h-tinta);
  background: var(--h-gelo);
  overflow-x: clip;
}

.eb-home *, .eb-home *::before, .eb-home *::after { box-sizing: border-box; }
.eb-home img, .eb-home video { display: block; max-width: 100%; height: auto; }
.eb-home ul, .eb-home ol { list-style: none; margin: 0; padding: 0; }
.eb-home h1, .eb-home h2, .eb-home h3, .eb-home p, .eb-home figure { margin: 0; }
.eb-home a { color: inherit; }
.eb-home :focus-visible { outline: 3px solid var(--h-amarelo); outline-offset: 3px; border-radius: 8px; }

.eb-home .h-wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }

/* ---- Tipo ------------------------------------------------------------- */
.eb-home .h-titulo {
  font: 800 var(--h-t-titulo)/1.02 var(--h-fonte-titulo);
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.eb-home .h-titulo-secao {
  font: 800 var(--h-t-secao)/1.08 var(--h-fonte-titulo);
  letter-spacing: -0.015em;
  color: var(--h-azul);
  text-wrap: balance;
}
.eb-home h3 { font: 800 var(--h-t-cartao)/1.2 var(--h-fonte-titulo); color: var(--h-azul); }
.eb-home .h-lede { font-size: var(--h-t-lede); line-height: 1.5; font-weight: 600; }
.eb-home .h-texto { font-size: var(--h-t-texto); color: var(--h-tinta-suave); max-width: 62ch; }
.eb-home .h-etiqueta {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 201, 51, 0.18);
  color: #ffe08a;
  font-size: var(--h-t-miudo);
  font-weight: 800;
  letter-spacing: 0.01em;
}

/* ---- Botoes (um so desenho, tres variantes) --------------------------- */
.eb-home .h-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 26px;
  border: 2px solid transparent;
  border-radius: 999px;
  font: 900 var(--h-t-botao)/1.2 var(--h-fonte-texto);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.eb-home .h-btn:hover { transform: translateY(-2px); }
.eb-home .h-btn:active { transform: translateY(0); }
.eb-home .h-btn-amarelo { background: var(--h-amarelo); color: var(--h-tinta); box-shadow: 0 6px 0 #d9a412; }
.eb-home .h-btn-amarelo:hover { background: #ffd24f; }
.eb-home .h-btn-contorno { border-color: rgba(255, 255, 255, 0.7); color: #fff; min-height: 44px; padding: 8px 20px; }
.eb-home .h-btn-contorno:hover { background: rgba(255, 255, 255, 0.12); }
.eb-home .h-btn-cheio { width: 100%; }
.eb-home .h-link { font-weight: 800; text-underline-offset: 4px; }
.eb-home .h-acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }

/* ---- Topo -------------------------------------------------------------- */
.eb-home .h-topo { background: var(--h-azul); color: #fff; position: relative; z-index: 2; }
.eb-home .h-topo-linha {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding-block: 14px;
}
.eb-home .h-marca img { width: 150px; height: auto; }
.eb-home .h-menu ul { display: flex; flex-wrap: wrap; gap: 4px 6px; justify-content: center; }
.eb-home .h-menu a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
}
.eb-home .h-topo .h-menu a:hover { background: rgba(255, 255, 255, 0.14); }

/* ---- Abertura (PE-03) -------------------------------------------------- */
.eb-home .h-abertura {
  position: relative;
  isolation: isolate;
  background: var(--h-azul);
  color: #fff;
  min-height: min(680px, 86vh);
  display: flex;
  align-items: center;
  padding-block: 48px 72px;
}
.eb-home .h-abertura-palco {
  position: absolute;
  inset: 0 0 0 38%;
  z-index: -1;
  /* O video tem fundo claro de sala de aula: a mascara funde a borda esquerda
     no azul da faixa, e o texto fica sempre sobre azul, nunca sobre o video. */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28%);
  mask-image: linear-gradient(90deg, transparent 0, #000 28%);
}
.eb-home .h-abertura-cartaz,
.eb-home .h-abertura-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
}
.eb-home .h-abertura-texto { position: relative; }
.eb-home .h-abertura-texto > * { max-width: 560px; }
.eb-home .h-abertura .h-titulo { margin: 18px 0 18px; }
.eb-home .h-abertura .h-lede { color: #e4eeff; margin-bottom: 30px; }
.eb-home .h-abertura .h-link { color: #fff; }

/* ---- Faixas ------------------------------------------------------------ */
.eb-home .h-faixa { padding-block: var(--h-respiro); }
.eb-home .h-faixa-gelo { background: var(--h-gelo); }
.eb-home .h-faixa-ceu { background: var(--h-ceu); }
.eb-home .h-faixa-sol { background: var(--h-sol); }
.eb-home .h-faixa-azul { background: var(--h-vivo); color: #fff; }
.eb-home .h-faixa-azul .h-titulo-secao { color: #fff; }
.eb-home .h-cabeca { margin-bottom: clamp(32px, 4vw, 48px); }
.eb-home .h-cabeca .h-texto { margin-top: 16px; }

/* ---- Vitrine em movimento (Nosso conteudo) ---------------------------- */
.eb-home .h-vitrine { overflow: hidden; padding-block: 6px 12px; }
.eb-home .h-vitrine-trilho { display: flex; width: max-content; animation: h-vitrine 60s linear infinite; }
.eb-home .h-vitrine:hover .h-vitrine-trilho { animation-play-state: paused; }
.eb-home .h-vitrine ul { display: flex; gap: 20px; padding-right: 20px; }
.eb-home .h-vitrine li {
  width: clamp(220px, 24vw, 300px);
  background: var(--h-cartao);
  border-radius: var(--h-raio);
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(14, 47, 128, 0.1);
}
.eb-home .h-vitrine img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.eb-home .h-vitrine span { display: block; padding: 12px 18px 14px; font: 800 1.2rem/1.2 var(--h-fonte-titulo); color: var(--h-azul); }
@keyframes h-vitrine { to { transform: translateX(-50%); } }

/* ---- Desenvolvimento (PE-09) ------------------------------------------ */
.eb-home .h-areas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.eb-home .h-area {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 22px;
  padding: 14px 24px 14px 14px;
  background: var(--h-cartao);
  border-radius: var(--h-raio);
  box-shadow: 0 10px 24px rgba(14, 47, 128, 0.08);
}
.eb-home .h-area img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; }
.eb-home .h-area p { margin-top: 8px; color: var(--h-tinta-suave); }

/* ---- Duas colunas: arte + texto (Como funciona, Familia, Lista) ------- */
.eb-home .h-dupla { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 5vw, 72px); }
.eb-home .h-arte img { width: 100%; border-radius: var(--h-raio); box-shadow: var(--h-sombra); }
.eb-home .h-dupla .h-titulo-secao { margin-bottom: 20px; }

.eb-home .h-passos { display: grid; gap: 18px; margin-top: 8px; }
.eb-home .h-passos li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: start; }
.eb-home .h-passo-icone {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: var(--h-sol);
  color: var(--h-azul);
}
.eb-home .h-passo-icone svg { width: 28px; height: 28px; }
.eb-home .h-passos p { color: var(--h-tinta-suave); margin-top: 2px; }
.eb-home .h-nota { margin-top: 26px; }

.eb-home .h-lista { display: grid; gap: 14px; margin-top: 24px; }
.eb-home .h-lista li { position: relative; padding-left: 34px; color: var(--h-tinta-suave); }
.eb-home .h-lista li strong { color: var(--h-tinta); }
.eb-home .h-lista li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 20px;
  height: 20px;
  background: var(--h-azul);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.9 6 6.6.9-4.8 4.6 1.2 6.5L12 17.4l-5.9 3.1 1.2-6.5L2.5 9.4l6.6-.9z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.9 6 6.6.9-4.8 4.6 1.2 6.5L12 17.4l-5.9 3.1 1.2-6.5L2.5 9.4l6.6-.9z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---- Selos (PE-05) ---------------------------------------------------- */
.eb-home .h-selos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.eb-home .h-selo {
  padding: 28px 26px 30px;
  border-radius: var(--h-raio);
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.22);
}
.eb-home .h-selo h3 { color: #fff; margin: 18px 0 8px; }
.eb-home .h-selo p { color: #e8f0ff; }
.eb-home .h-selo-icone { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 22px; color: var(--h-tinta); }
.eb-home .h-selo-icone svg { width: 34px; height: 34px; }
.eb-home .h-selo-amarelo { background: var(--h-amarelo); }
.eb-home .h-selo-verde { background: #8fe089; }
.eb-home .h-selo-rosa { background: #ffb3cf; }
.eb-home .h-rodape-secao { margin-top: 28px; font-weight: 800; }
.eb-home .h-rodape-secao a { text-underline-offset: 4px; }

/* ---- Lista de espera -------------------------------------------------- */
.eb-home .h-dupla-form { align-items: start; }
.eb-home .h-lista-arte { width: min(420px, 100%); margin-top: 28px; border-radius: var(--h-raio); box-shadow: var(--h-sombra); }
.eb-home .h-form {
  display: grid;
  gap: 18px;
  padding: clamp(24px, 3vw, 36px);
  background: var(--h-cartao);
  border-radius: var(--h-raio);
  box-shadow: var(--h-sombra);
}
.eb-home .h-campo { display: grid; gap: 6px; }
.eb-home .h-campo label { font-weight: 800; font-size: 1rem; }
.eb-home .h-campo label span { font-weight: 600; color: var(--h-tinta-suave); }
.eb-home .h-campo input,
.eb-home .h-campo select {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 2px solid var(--h-borda);
  border-radius: 14px;
  background: #fff;
  color: var(--h-tinta);
  font: 600 1.0625rem/1.3 var(--h-fonte-texto);
}
.eb-home .h-campo input:focus,
.eb-home .h-campo select:focus { outline: none; border-color: var(--h-azul); box-shadow: 0 0 0 3px rgba(20, 65, 168, 0.18); }
.eb-home .h-aceite { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: var(--h-t-miudo); color: var(--h-tinta-suave); line-height: 1.5; }
.eb-home .h-aceite input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--h-azul); }

/* ---- Rodape (PE-06, PE-07, PE-10) ------------------------------------- */
.eb-home .h-rodape { background: var(--h-noite); color: #fff; padding-block: clamp(56px, 7vw, 96px) 36px; }
.eb-home .h-rodape-abertura {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  padding-bottom: clamp(36px, 5vw, 56px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}
.eb-home .h-rodape-marca img { width: clamp(240px, 30vw, 380px); height: auto; }
.eb-home .h-rodape-frase { font: 800 var(--h-t-secao)/1.08 var(--h-fonte-titulo); margin-bottom: 22px; text-wrap: balance; }
.eb-home .h-rodape .h-link { color: #fff; }
.eb-home .h-rodape-grade {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) auto;
  gap: 40px;
  padding-block: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}
.eb-home .h-menu-rodape ul { flex-direction: column; align-items: flex-start; gap: 2px; }
.eb-home .h-menu-rodape a { padding: 6px 0; }
.eb-home .h-menu-rodape a:hover { text-decoration: underline; text-underline-offset: 4px; }
.eb-home .h-redes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; align-content: start; }
.eb-home .h-redes a { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 800; text-decoration: none; }
.eb-home .h-redes a:hover span { text-decoration: underline; text-underline-offset: 4px; }
.eb-home .h-redes svg { width: 24px; height: 24px; flex: none; color: var(--h-amarelo); }
.eb-home .h-qr { display: grid; justify-items: center; gap: 10px; max-width: 150px; text-align: center; font-size: var(--h-t-miudo); font-weight: 700; text-decoration: none; }
.eb-home .h-qr img { padding: 8px; background: #fff; border-radius: 14px; }
.eb-home .h-rodape-legal { display: grid; gap: 14px; padding-top: 28px; font-size: var(--h-t-miudo); color: #c9d8f5; }
.eb-home .h-rodape-legal nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.eb-home .h-rodape-legal a { color: #fff; font-weight: 700; }
.eb-home .h-rodape-legal strong { color: #fff; }

/* ---- Celular e tablet -------------------------------------------------- */
@media (max-width: 1080px) {
  .eb-home .h-topo-linha { grid-template-columns: minmax(0, 1fr) auto; row-gap: 6px; }
  .eb-home .h-topo-linha > .h-btn { grid-column: 2; grid-row: 1; justify-self: end; }
  .eb-home .h-topo .h-menu { grid-column: 1 / -1; grid-row: 2; margin-inline: -16px; overflow-x: auto; scrollbar-width: none; }
  .eb-home .h-topo .h-menu::-webkit-scrollbar { display: none; }
  .eb-home .h-topo .h-menu ul { flex-wrap: nowrap; justify-content: flex-start; padding-inline: 10px; }
  .eb-home .h-rodape-grade { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
  .eb-home .h-qr { grid-column: 1 / -1; grid-template-columns: auto 1fr; max-width: none; justify-items: start; align-items: center; text-align: left; }
}

@media (max-width: 860px) {
  .eb-home .h-marca img { width: 120px; }
  .eb-home .h-abertura { display: block; min-height: 0; padding-block: 0 56px; }
  .eb-home .h-abertura-palco {
    position: relative;
    inset: auto;
    aspect-ratio: 5 / 4;
    -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
  }
  .eb-home .h-abertura-texto { margin-top: -28px; }
  .eb-home .h-areas { grid-template-columns: minmax(0, 1fr); }
  .eb-home .h-dupla { grid-template-columns: minmax(0, 1fr); }
  .eb-home .h-dupla-invertida .h-arte { order: -1; }
  .eb-home .h-selos { grid-template-columns: minmax(0, 1fr); }
  .eb-home .h-rodape-abertura { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 520px) {
  .eb-home .h-area { grid-template-columns: minmax(0, 1fr); padding: 12px 12px 20px; gap: 14px; }
  .eb-home .h-area > div { padding-inline: 8px; }
  .eb-home .h-acoes .h-btn { width: 100%; }
  .eb-home .h-rodape-grade { grid-template-columns: minmax(0, 1fr); }
  .eb-home .h-redes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---- Movimento reduzido: sem video em loop, sem faixa andando --------- */
@media (prefers-reduced-motion: reduce) {
  .eb-home .h-abertura-video { display: none; }
  .eb-home .h-vitrine { overflow-x: auto; }
  .eb-home .h-vitrine-trilho { animation: none; }
  .eb-home .h-vitrine ul[aria-hidden="true"] { display: none; }
  .eb-home .h-btn { transition: none; }
  .eb-home .h-btn:hover { transform: none; }
}

/* ---- Planos (AV-03, 16/10/2026) ---------------------------------------- */
.eb-home .h-planos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.eb-home .h-plano { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 30px 22px 24px; background: var(--h-cartao); border: 2px solid var(--h-borda); border-radius: var(--h-raio); box-shadow: var(--h-sombra); }
.eb-home .h-plano h3 { margin: 0; color: var(--h-azul); }
.eb-home .h-plano-preco { margin: 4px 0 0; color: var(--h-tinta); font-weight: 700; }
.eb-home .h-plano-preco strong { font-size: clamp(2rem, 1.6rem + 1.2vw, 2.6rem); font-weight: 900; }
.eb-home .h-plano-nota { margin: 0 0 14px; color: var(--h-tinta-suave); font-size: var(--h-t-miudo); }
.eb-home .h-plano .h-btn { margin-top: auto; white-space: normal; text-align: center; }
.eb-home .h-plano-destaque { border-color: var(--h-azul); border-width: 3px; }
.eb-home .h-plano-selo { position: absolute; top: -14px; left: 22px; padding: 4px 12px; border-radius: 999px; background: var(--h-azul); color: #fff; font-size: 0.85rem; font-weight: 900; }
.eb-home .h-btn-plano { background: var(--h-azul); color: #fff; box-shadow: 0 6px 0 var(--h-noite); }
.eb-home .h-btn-plano:hover { background: #1a4fc4; }
@media (max-width: 1080px) { .eb-home .h-planos { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; } }
@media (max-width: 520px) { .eb-home .h-planos { grid-template-columns: minmax(0, 1fr); } }
