/* =========================================================
   Meu Vista — estilos compartilhados do site
   Fontes, tokens, cabeçalho (.topo) e rodapé (.rodape).
   Cada página tem o seu css/styles.css com o restante.
   Não colocar aqui estilos de uma página só.
   ========================================================= */

@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400 700;  font-display: swap; src: url('../fonts/ibmplexsans-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400 700;  font-display: swap; src: url('../fonts/ibmplexsans-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: 'Sora'; font-style: normal; font-weight: 400 800;  font-display: swap; src: url('../fonts/sora-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Sora'; font-style: normal; font-weight: 400 800;  font-display: swap; src: url('../fonts/sora-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; }

:root {
  /* Fundos */
  --bg-deep: #0b1229;
  --bg-alt: #141a32;
  --bg-card: #131f45;
  --bg-elev: #181e36;
  --bg-footer: #060d24;

  /* Texto */
  --fg: #dce1ff;
  --fg-muted: #c4c5d5;
  --fg-dim: #8b93b3;
  --fg-white: #fffeff;

  /* Marca */
  --teal: #4ecec5;
  --teal-hover: #63d8d0;
  --lilac: #b6c4ff;

  /* Fontes */
  --font-titulo: 'Sora', ui-sans-serif, system-ui, sans-serif;
  --font-texto: 'IBM Plex Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;

  --topo-altura: 80px;
}

*, *::before, *::after { box-sizing: border-box; }

/* ---------- Cabeçalho ----------
   Computador: passar o mouse em Plataforma / Para quem é / Educacional abre um painel na largura toda
   (colunas, links entrando em cascata, fundo da página desfocado); a altura anima de um menu para o outro.
   Celular: o botão de duas linhas vira um X e abre o menu em tela cheia, com submenus que entram pela direita.
   Comportamento em _comum/js/site.js; HTML em layout/cabecalho.html. */
:root { --topo-ease: cubic-bezier(0.32, 0.72, 0, 1); }

.topo {
  position: sticky;
  top: 0;
  z-index: 50;
  font-family: var(--font-texto);
  line-height: 1.5;
}
/* fundo translúcido num pseudo-elemento: blur no próprio .topo prenderia os filhos "fixed" dentro dele */
.topo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(11, 18, 41, 0.88);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
  transition: background-color 0.3s var(--topo-ease), box-shadow 0.3s var(--topo-ease);
}
.topo.is-painel-aberto::before,
.topo.is-folha-aberta::before { background: var(--bg-deep); box-shadow: none; }
.topo a { text-decoration: none; }
.topo {
  --topo-altura-rolado: 52px;
  transition: margin-bottom 0.3s var(--topo-ease);
}
.topo__barra {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  height: var(--topo-altura);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: height 0.3s var(--topo-ease);
}
.topo__logo { position: relative; flex: 0 0 auto; display: block; }
.topo__logo-completo {
  width: 102px;
  height: auto;
  display: block;
  transition: opacity 0.25s ease 0.3s; /* voltando ao topo: reaparece quando o A já chegou ao lugar dele */
}
/* Celular: ao rolar, o "A" do logo desliza até a esquerda e fica sozinho no lugar do logo (classe is-rolado vem do JS).
   As medidas abaixo põem o A (icone-a.webp) exatamente sobre o A do logo de 102 px e, no fim, à esquerda da barra. */
.topo__icone {
  position: absolute;
  left: 0;
  top: 50%;
  width: 32px;
  height: 32px;
  margin-top: -16px;
  pointer-events: none;
}
.topo__icone-a {
  position: absolute;
  left: 0;
  top: 2.95px;
  width: 26.6px;
  height: 26.1px;
  max-width: none;
  opacity: 0;
  transform-origin: 0 0;
  /* posição e tamanho do A dentro do logo completo */
  transform: translate(73.6px, 4.69px) scale(1.068);
  transition: transform 0.45s var(--topo-ease), opacity 0.15s ease 0.45s;
}
@media (max-width: 767.98px) {
  .topo.is-rolado:not(.is-folha-aberta) .topo__logo-completo { opacity: 0; transition: opacity 0.1s ease; }
  .topo.is-rolado:not(.is-folha-aberta) .topo__icone-a {
    opacity: 1;
    transform: none;
    transition: opacity 0.08s ease, transform 0.5s var(--topo-ease) 0.1s; /* sai depois que o logo some */
  }
  /* e a barra fica mais baixa (52 px). A margem transparente repõe a diferença no fluxo da página,
     para o conteúdo não dar um pulo na hora em que a barra encolhe. */
  .topo.is-rolado:not(.is-folha-aberta) .topo__barra { height: var(--topo-altura-rolado); }
  .topo.is-rolado:not(.is-folha-aberta) { margin-bottom: calc(var(--topo-altura) - var(--topo-altura-rolado)); }
}

.topo__nav { display: none; align-items: center; gap: 2px; font-size: 16px; white-space: nowrap; }
.topo__grupo-btn {
  display: inline-flex;
  align-items: center;
  height: var(--topo-altura);
  padding: 0 14px;
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  color: var(--fg-muted);
  background: none;
  border: 0;
  cursor: pointer;
  transition: color 0.2s ease;
}
.topo__grupo-btn:hover,
.topo__grupo.is-aberto .topo__grupo-btn { color: var(--fg-white); }
.topo__grupo.is-ativo .topo__grupo-btn,
.topo__link[aria-current="page"] {
  color: var(--fg-white);
  font-weight: 600;
}
.topo__link { display: inline-flex; align-items: center; color: var(--fg-muted); padding: 4px 14px; transition: color 0.2s ease; }
.topo__link:hover { color: var(--fg-white); }
/* Pill no hover (e enquanto o submenu do item está aberto) */
.topo__grupo-btn, .topo__link { position: relative; z-index: 0; }
.topo__grupo-btn::before, .topo__link::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 0;
  right: 0;
  top: 50%;
  height: 38px;
  border-radius: 9999px;
  background: rgba(220, 225, 255, 0.1);
  opacity: 0;
  transform: translateY(-50%) scale(0.92);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}
.topo__grupo-btn:hover::before, .topo__link:hover::before,
.topo__grupo.is-aberto .topo__grupo-btn::before, .topo__grupo-btn[aria-expanded="true"]::before { opacity: 1; transform: translateY(-50%) scale(1); }
/* Sublinhado teal da página atual: só do tamanho do texto */
.topo__grupo.is-ativo .topo__grupo-btn::after,
.topo__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 2px;
  background: var(--teal);
}

.topo__acoes { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.topo__cta {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 9999px;
  background: var(--teal);
  color: var(--bg-deep);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.35px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(78, 206, 197, 0.35);
  transition: all .15s ease;
}
.topo__cta:hover { background: var(--teal-hover); color: var(--bg-deep); transform: translateY(-1px); }

/* ícone de pessoa: abre as áreas de membros */
.topo__membros { position: relative; }
.topo__membros-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0; border-radius: 9999px; cursor: pointer;
  border: 1px solid rgba(220, 225, 255, 0.18); background: rgba(220, 225, 255, 0.04); color: var(--fg);
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.topo__membros-btn:hover, .topo__membros-btn[aria-expanded="true"] { border-color: var(--teal); color: var(--teal); background: rgba(78, 206, 197, 0.08); }
/* celular e tablet (com o menu de três linhas): só o ícone, sem o círculo */
@media (max-width: 1219.98px) {
  .topo__membros-btn, .topo__membros-btn:hover, .topo__membros-btn[aria-expanded="true"] { border-color: transparent; background: none; }
}
.topo__membros-menu {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 60; min-width: 220px;
  display: flex; flex-direction: column; gap: 2px; padding: 10px;
  border-radius: 18px; background: var(--bg-elev); border: 1px solid rgba(220, 225, 255, 0.12);
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.6);
}
.topo__membros-menu[hidden] { display: none; }
.topo__membros-titulo { padding: 6px 12px 8px; font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--fg-dim); }
.topo__membros-link { padding: 10px 12px; border-radius: 12px; font-size: 15px; font-weight: 600; color: var(--fg); }
.topo__membros-link:hover, .topo__membros-link:focus-visible { background: rgba(78, 206, 197, 0.1); color: var(--teal); }
.topo__membros-link + .topo__membros-titulo { margin-top: 6px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.08); }

/* botão do celular: duas linhas que viram um X */
.topo__alternar {
  position: relative;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  border-radius: 9999px;
  background: none;
  color: var(--fg);
  cursor: pointer;
}
.topo__alternar-linha {
  position: absolute;
  left: 50%;
  top: 17px;
  width: 18px;
  height: 1.5px;
  margin-left: -9px;
  border-radius: 9999px;
  background: currentColor;
  transition: top 0.3s var(--topo-ease), transform 0.3s var(--topo-ease);
}
.topo__alternar-linha + .topo__alternar-linha { top: 25px; }
.topo.is-folha-aberta .topo__alternar-linha { top: 21px; transform: rotate(45deg); }
.topo.is-folha-aberta .topo__alternar-linha + .topo__alternar-linha { transform: rotate(-45deg); }

/* ---- Painel do computador ---- */
.topo__painel {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 0;
  overflow: hidden;
  background: var(--bg-deep);
  transition: height 0.36s var(--topo-ease), box-shadow 0.36s var(--topo-ease);
}
.topo.is-painel-aberto .topo__painel { box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.7), inset 0 -1px 0 rgba(255, 255, 255, 0.06); }
.topo__painel-conteudo { position: relative; }
.topo__flyout {
  display: flex;
  gap: 88px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px 24px 72px;
  transition: opacity 0.12s ease;
}
.topo__flyout[hidden] { display: none; }
/* o menu que sai fica por cima, fora do fluxo, enquanto some: a altura já anima para o próximo */
.topo__flyout.is-saindo { position: absolute; top: 0; left: 0; right: 0; opacity: 0; pointer-events: none; }
.topo__coluna { min-width: 160px; }
.topo__coluna-titulo { margin: 0 0 14px; font-size: 12px; letter-spacing: 0.2px; color: var(--fg-dim); }
.topo__coluna ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.topo__coluna a { font-size: 14px; font-weight: 500; color: rgba(220, 225, 255, 0.8); transition: color 0.2s ease; }
.topo__coluna a:hover { color: var(--fg-white); }
.topo__coluna--principal a {
  font-family: var(--font-titulo);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.topo__coluna a[aria-current="page"] { color: var(--teal); }
/* Pill no hover dos links do menu aberto (só com mouse); a margem negativa mantém o texto alinhado ao título da coluna */
@media (hover: hover) and (pointer: fine) {
  .topo__coluna a {
    display: inline-block;
    padding: 6px 14px;
    margin: -6px -14px;
    border-radius: 9999px;
    transition: color 0.2s ease, background-color 0.2s ease;
  }
  .topo__coluna a:hover { background: rgba(220, 225, 255, 0.1); }
}
/* cascata: dentro de cada coluna, título e links entram um depois do outro (--i vem do JS) */
.topo__flyout .topo__coluna-titulo,
.topo__flyout li {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.32s var(--topo-ease), transform 0.32s var(--topo-ease);
  transition-delay: calc(var(--i, 0) * 35ms);
}
.topo__flyout.is-visivel .topo__coluna-titulo,
.topo__flyout.is-visivel li { opacity: 1; transform: none; }

/* fundo desfocado atrás do painel */
.topo-veu {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(6, 13, 36, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s var(--topo-ease), visibility 0s linear 0.3s;
}
.topo-veu.is-visivel { opacity: 1; visibility: visible; transition: opacity 0.3s var(--topo-ease); }

/* ---- Menu do celular (tela cheia) ---- */
.topo-folha {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 45;
  height: 0;
  overflow: hidden;
  background: var(--bg-deep);
  font-family: var(--font-texto);
  line-height: 1.5;
  transition: height 0.3s var(--topo-ease);
}
.topo-folha[hidden] { display: none; }
.topo-folha.is-aberta { height: 100vh; height: 100dvh; transition-duration: 0.4s; }
.topo-folha a { text-decoration: none; }
.topo-folha__rolagem {
  position: relative;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: calc(var(--topo-altura) + 16px) clamp(24px, 8vw, 48px) calc(32px + env(safe-area-inset-bottom));
}
.topo-folha__vista { transition: opacity 0.25s var(--topo-ease), transform 0.25s var(--topo-ease); }
.topo-folha__vista[hidden] { display: none; }
.topo-folha__vista.is-saindo-esq { opacity: 0; transform: translateX(-24px); transition-duration: 0.2s; }
.topo-folha__vista.is-saindo-dir,
.topo-folha__vista.is-entrando-dir { opacity: 0; transform: translateX(24px); }
.topo-folha__lista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.topo-folha__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 2px 0;
  border: 0;
  background: none;
  font-family: var(--font-titulo);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--fg);
  text-align: left;
  cursor: pointer;
}
.topo-folha__item svg { flex: none; color: var(--fg-dim); opacity: 0.6; transition: opacity 0.2s ease; }
.topo-folha__item:hover svg { opacity: 1; }
.topo-folha__item[aria-current="page"] { color: var(--teal); }
.topo-folha__cta-item { margin-top: 20px; }
.topo-folha__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: 9999px;
  background: var(--teal);
  color: var(--bg-deep);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.35px;
  text-align: center;
}
.topo-folha__voltar {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 40px;
  margin: 0 0 16px -6px;
  padding: 0 6px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 14px;
  color: var(--fg-dim);
  cursor: pointer;
}
.topo-folha__voltar:hover { color: var(--fg); }
.topo-folha .topo__coluna { margin-bottom: 32px; }
.topo-folha .topo__coluna-titulo { margin-bottom: 12px; }
.topo-folha .topo__coluna ul { gap: 12px; }
.topo-folha .topo__coluna a { font-size: 16px; color: rgba(220, 225, 255, 0.8); }
.topo-folha .topo__coluna--principal a { font-size: 28px; line-height: 1.2; color: var(--fg); }
/* cascata no celular */
.topo-folha__lista > li,
.topo-folha .topo__coluna-titulo,
.topo-folha .topo__coluna li,
.topo-folha__voltar {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.32s var(--topo-ease), transform 0.32s var(--topo-ease), color 0.2s ease;
  transition-delay: calc(80ms + var(--i, 0) * 30ms);
}
.topo-folha__vista.is-visivel .topo-folha__lista > li,
.topo-folha__vista.is-visivel .topo__coluna-titulo,
.topo-folha__vista.is-visivel .topo__coluna li,
.topo-folha__vista.is-visivel .topo-folha__voltar { opacity: 1; transform: none; }
html.is-menu-aberto { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .topo__painel, .topo-folha, .topo-folha__vista, .topo-veu, .topo__alternar-linha, .topo__logo-completo, .topo__icone-a, .topo, .topo__barra,
  .topo__flyout .topo__coluna-titulo, .topo__flyout li,
  .topo-folha__lista > li, .topo-folha .topo__coluna-titulo, .topo-folha .topo__coluna li, .topo-folha__voltar { transition: none !important; }
}

@media (min-width: 560px) {
  .topo__cta { display: inline-flex; }
  .topo-folha__cta-item { display: none; }
}
@media (min-width: 1220px) {
  /* o menu começa sempre no mesmo ponto, logo depois do logo: não anda conforme o tamanho do botão da direita */
  .topo__barra { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 0; }
  .topo__nav { margin-left: 48px; }
  .topo__logo { justify-self: start; }
  .topo__acoes { justify-self: end; }
  .topo__nav { display: flex; }
  .topo__painel { display: block; }
  .topo__alternar, .topo-folha { display: none !important; }
}
@media (max-width: 1219.98px) {
  .topo-veu { display: none; }
}

/* ---------- Rodapé ---------- */
.rodape {
  font-family: var(--font-texto);
  line-height: 1.5;
  background: var(--bg-footer);
  color: var(--fg-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.rodape a { color: var(--fg-muted); text-decoration: none; }
.rodape a:hover { color: var(--fg); }
.rodape p { margin: 0; }
.rodape__conteudo {
  max-width: 1240px;
  margin: 0 auto;
  padding: 64px 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.rodape__colunas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 40px;
}
.rodape__marca { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.rodape__marca img { width: 150px; height: auto; display: block; }
.rodape__marca p { font-size: 15px; line-height: 22px; max-width: 30ch; text-wrap: pretty; }
.rodape__selo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-alt);
  padding: 8px 16px;
  border-radius: 12px;
}
.rodape__selo svg { color: var(--lilac); flex: 0 0 auto; }
.rodape__selo strong { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.72px; color: var(--fg); }
.rodape__selo span { font-size: 13px; line-height: 18px; }
/* Links das lojas do app Meu Vista (App Store e Google Play) */
.rodape__lojas { display: flex; flex-direction: column; gap: 10px; }
.rodape__lojas-botoes { display: flex; flex-wrap: wrap; gap: 10px; }
.rodape .rodape__lojas-botoes a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 9999px;
  border: 1px solid rgba(220, 219, 235, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: var(--fg);
  font-size: 14px;
  font-weight: 600;
}
.rodape .rodape__lojas-botoes a:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.rodape__lojas-botoes svg { flex: 0 0 auto; }
.rodape__nav { display: flex; flex-direction: column; gap: 12px; }
.rodape__nav a { font-size: 15px; }
.rodape__titulo { margin: 0 0 4px !important; font-size: 12px; font-weight: 700; letter-spacing: 1.2px; color: var(--fg-dim); }
.rodape .rodape__destaque { color: var(--teal); }
.rodape .rodape__destaque:hover { color: var(--teal-hover); }
.rodape__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.rodape__sociais { display: flex; gap: 10px; }
.rodape__sociais a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.rodape__sociais a:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }
.rodape__legal { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; font-size: 14px; }
.rodape__legal span { color: var(--fg-dim); }

/* Rodapé no celular: marca em cima, menus em 2 colunas e links com área de toque de 40 px.
   A partir de 768 px volta ao layout do desktop. */
@media (max-width: 767px) {
  .rodape__conteudo { padding: 48px 20px 28px; gap: 36px; }
  .rodape__colunas { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .rodape__marca { grid-column: 1 / -1; }
  .rodape__nav { gap: 0; }
  .rodape__nav a { display: flex; align-items: center; min-height: 40px; padding: 6px 0; line-height: 1.3; }
  .rodape__titulo { margin: 0 0 6px !important; }
  .rodape__base { flex-direction: column; align-items: flex-start; }
  .rodape__legal { gap: 0 20px; }
  .rodape__legal a { display: inline-flex; align-items: center; min-height: 40px; }
  .rodape__legal span { flex-basis: 100%; padding-top: 4px; }
}

/* ---------- Formulário de lead (mesmo padrão das landing pages) ----------
   HTML em layout/formulario.html, inserido pelo "npm run layout" no marcador <!-- formulario titulo="…" -->.
   Envio e etapas: site.js (MeuVistaLead). */
.form-card {
  position: relative;
  min-width: 0;
  border-radius: 28px;
  overflow: hidden;
  background: rgba(19, 31, 69, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
  padding: 28px 20px 24px;
  font-family: var(--font-texto);
  line-height: 1.5;
  text-align: left;
}
.form-card__titulo {
  margin: 0 0 16px;
  font-family: var(--font-titulo);
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.6px;
  font-weight: 700;
  color: var(--fg-white);
}
.form-card__titulo:empty, .form-card__sub:empty { display: none; }
.form-card__sub { margin: -8px 0 18px; font-size: 15px; line-height: 1.5; color: #c4cae0; }
.form-card__rodape {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 0;
  font-size: 12px;
  color: var(--fg-dim);
}
.form-card__rodape svg { flex: 0 0 auto; }

.lead-form { position: relative; display: flex; flex-direction: column; gap: 16px; color-scheme: light; margin: 0; }
.lead-form__etapa {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  min-height: 420px;
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.lead-form__etapa[hidden] { display: none; }
.lead-form__pergunta--oculta {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.lead-form__campo { display: flex; flex-direction: column; gap: 8px; }
.lead-form__rotulo,
.lead-form__subpergunta-titulo {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #c4cae0;
}
.lead-form__input {
  font-family: inherit;
  font-size: 16px; /* 16 px evita o zoom automático do iPhone */
  color: #0f172a;
  background: #fff;
  border: 1px solid rgba(220, 219, 235, 0.14);
  border-radius: 9999px;
  padding: 10px 20px;
  min-height: 44px;
  width: 100%;
  transition: border-color 0.15s ease;
}
.lead-form__input::placeholder { color: #767b8c; }
.lead-form__input:focus-visible { outline: none; border-color: #4f6fd8; box-shadow: 0 0 0 3px rgba(79, 111, 216, 0.35); }
.lead-form__input:-webkit-autofill,
.lead-form__input:-webkit-autofill:hover,
.lead-form__input:-webkit-autofill:focus {
  -webkit-text-fill-color: #0f172a;
  -webkit-box-shadow: 0 0 0 1000px #fff inset;
  box-shadow: 0 0 0 1000px #fff inset;
  transition: background-color 9999s ease-in-out 0s;
}
.lead-form__select-wrap { position: relative; display: block; }
.lead-form__select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; }
.lead-form__select-wrap::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid #767b8c;
  border-bottom: 1.5px solid #767b8c;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.lead-form__opcoes { display: flex; flex-direction: column; gap: 8px; }
.lead-form__opcoes--linha { flex-direction: row; flex-wrap: wrap; }
.lead-form__opcao {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid rgba(220, 219, 235, 0.14);
  border-radius: 9999px;
  background: #fff;
  font-size: 15px;
  color: #0f172a;
  cursor: pointer;
}
.lead-form__opcao input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.lead-form__opcao:focus-within { box-shadow: 0 0 0 3px rgba(79, 111, 216, 0.35); }
.lead-form__opcao--compacta { flex: 1 1 100px; }
.lead-form__opcao.is-selecionada { border-color: transparent; color: #4f6fd8; box-shadow: inset 0 0 0 1.5px #4f6fd8; }
.lead-form__subpergunta { display: flex; flex-direction: column; gap: 8px; }
.lead-form__acoes { display: flex; flex-direction: column; gap: 10px; }
.lead-form__botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 9999px;
  border: 1px solid transparent;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  cursor: pointer;
}
.lead-form__botao--primario { width: 100%; }
.lead-form__botao--enviar { background: var(--teal); color: var(--bg-deep); box-shadow: 0 4px 12px rgba(78, 206, 197, 0.35); }
.lead-form__botao--enviar:hover { background: var(--teal-hover); }
.lead-form__botao--continuar { background: transparent; color: var(--teal); font-weight: 600; box-shadow: inset 0 0 0 1.5px var(--teal); }
.lead-form__botao--continuar:hover { background: var(--teal); color: var(--bg-deep); }
.lead-form__botao--voltar { align-self: center; background: transparent; color: var(--fg-dim); font-weight: 600; min-height: 44px; padding: 0 14px; }
.lead-form__botao--voltar:hover { color: #c4cae0; }
.lead-form__botao:disabled { opacity: 0.7; cursor: progress; }
.lead-form__mensagem { font-size: 14px; color: var(--teal); margin: 0; }
.lead-form__mensagem[hidden] { display: none; }

@media (min-width: 600px) {
  .form-card { padding: 32px 28px 26px; }
  .form-card__titulo { font-size: 24px; }
  .lead-form__etapa[data-etapa="contato"]:not([hidden]),
  .lead-form__etapa[data-etapa="escritorio"]:not([hidden]) {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 18px;
    align-items: start;
  }
  .lead-form__etapa[data-etapa="contato"] .lead-form__campo--largo,
  .lead-form__etapa[data-etapa="escritorio"] .lead-form__campo--largo,
  .lead-form__etapa[data-etapa="escritorio"] .lead-form__subpergunta,
  .lead-form__etapa[data-etapa="contato"] .lead-form__acoes,
  .lead-form__etapa[data-etapa="escritorio"] .lead-form__acoes { grid-column: 1 / -1; }
}

/* Peças extras para formulários próprios das páginas (lista de espera, newsletter, match…), no mesmo visual
   do formulário padrão: rótulo em caixa alta, campo branco em pílula, botão em pílula.
   Uso: <form class="form-mv"> + .lead-form__campo / __rotulo / __input / __select-wrap / __botao. */
.form-mv { display: flex; flex-direction: column; gap: 14px; color-scheme: light; font-family: var(--font-texto); }
.form-mv .lead-form__campo { min-width: 0; }
.lead-form__linha { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 12px; }
.lead-form__linha--igual { grid-template-columns: 1fr 1fr; }
textarea.lead-form__input { border-radius: 22px; min-height: 112px; padding: 12px 20px; resize: vertical; line-height: 1.5; }
.lead-form__aceite {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 44px;
  font-size: 14px;
  line-height: 1.45;
  color: #c4cae0;
  cursor: pointer;
}
.lead-form__aceite input { flex: 0 0 auto; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--teal); cursor: pointer; }
.lead-form__aceite a { color: var(--teal); text-decoration: underline; }
.lead-form__erro { margin: 0; font-size: 14px; color: #ff8a8a; }
.lead-form__erro[hidden] { display: none; }
.lead-form__input[aria-invalid="true"] { border-color: #e5484d; box-shadow: 0 0 0 3px rgba(229, 72, 77, 0.25); }
.form-mv .lead-form__botao { width: 100%; }

/* ---------- Pills (padrão da home; usar em todas as páginas) ----------
   Pill do topo da página:
     <p class="pill"><span class="pill__tag">NOVO</span><span class="pill__txt">Texto em frase normal</span></p>
     (a etiqueta colorida .pill__tag é opcional)
   Funcionalidade de IA (só nesse caso): class="pill pill--ia" → tons de rosa/roxo e a estrela no fim
   Pill de seção (sobretítulo em caixa alta):
     <p class="pill-secao">DIFERENCIAIS</p>   ·   em fundo claro: class="pill-secao pill-secao--claro" */
.pill {
  font-family: 'IBM Plex Sans', ui-sans-serif, system-ui, sans-serif;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  margin: 0;
  border-radius: 9999px;
  padding: 7px 12px 7px 14px;
  border: 1px solid rgba(78, 206, 197, 0.7);
  box-shadow: 0 0 18px rgba(78, 206, 197, 0.3);
  color: #fff;
  text-decoration: none;
  text-transform: none;
}
.pill__tag {
  margin-left: -5px;
  background: var(--teal);
  color: var(--bg-deep);
  border-radius: 9999px;
  padding: 0 8px;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 0;
  white-space: nowrap;
}
.pill__txt { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 500; line-height: 1.4; letter-spacing: 0.2px; color: #fff; }
.pill--ia { border-color: #8755f3; box-shadow: 0 0 18px rgba(135, 85, 243, 0.55); }
.pill--ia .pill__tag { background: linear-gradient(90deg, #fe7ed0 0%, #8755f3 52%, #6280ff 100%); color: #fff; }
.pill--ia .pill__txt::after {
  content: "";
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  background: #fe7ed0;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M11.98 10.88l1.6.53c.56.19.56.99 0 1.18l-1.6.53a3.6 3.6 0 0 0-2.36 2.36l-.53 1.6c-.19.56-.99.56-1.18 0l-.53-1.6a3.6 3.6 0 0 0-2.36-2.36l-1.6-.53c-.56-.19-.56-.99 0-1.18l1.6-.53a3.6 3.6 0 0 0 2.36-2.36l.53-1.6c.19-.56.99-.56 1.18 0l.53 1.6a3.6 3.6 0 0 0 2.36 2.36zM18.08 4.99l.72.24c.26.09.26.45 0 .54l-.72.24a1.6 1.6 0 0 0-1.07 1.07l-.24.72c-.09.26-.45.26-.54 0l-.24-.72a1.6 1.6 0 0 0-1.07-1.07l-.72-.24c-.26-.09-.26-.45 0-.54l.72-.24a1.6 1.6 0 0 0 1.07-1.07l.24-.72c.09-.26.45-.26.54 0l.24.72a1.6 1.6 0 0 0 1.07 1.07zM18.08 17.99l.72.24c.26.09.26.45 0 .54l-.72.24a1.6 1.6 0 0 0-1.07 1.07l-.24.72c-.09.26-.45.26-.54 0l-.24-.72a1.6 1.6 0 0 0-1.07-1.07l-.72-.24c-.26-.09-.26-.45 0-.54l.72-.24a1.6 1.6 0 0 0 1.07-1.07l.24-.72c.09-.26.45-.26.54 0l.24.72a1.6 1.6 0 0 0 1.07 1.07z'/%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' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M11.98 10.88l1.6.53c.56.19.56.99 0 1.18l-1.6.53a3.6 3.6 0 0 0-2.36 2.36l-.53 1.6c-.19.56-.99.56-1.18 0l-.53-1.6a3.6 3.6 0 0 0-2.36-2.36l-1.6-.53c-.56-.19-.56-.99 0-1.18l1.6-.53a3.6 3.6 0 0 0 2.36-2.36l.53-1.6c.19-.56.99-.56 1.18 0l.53 1.6a3.6 3.6 0 0 0 2.36 2.36zM18.08 4.99l.72.24c.26.09.26.45 0 .54l-.72.24a1.6 1.6 0 0 0-1.07 1.07l-.24.72c-.09.26-.45.26-.54 0l-.24-.72a1.6 1.6 0 0 0-1.07-1.07l-.72-.24c-.26-.09-.26-.45 0-.54l.72-.24a1.6 1.6 0 0 0 1.07-1.07l.24-.72c.09-.26.45-.26.54 0l.24.72a1.6 1.6 0 0 0 1.07 1.07zM18.08 17.99l.72.24c.26.09.26.45 0 .54l-.72.24a1.6 1.6 0 0 0-1.07 1.07l-.24.72c-.09.26-.45.26-.54 0l-.24-.72a1.6 1.6 0 0 0-1.07-1.07l-.72-.24c-.26-.09-.26-.45 0-.54l.72-.24a1.6 1.6 0 0 0 1.07-1.07l.24-.72c.09-.26.45-.26.54 0l.24.72a1.6 1.6 0 0 0 1.07 1.07z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.pill-secao {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  margin: 0;
  background: rgba(83, 141, 203, 0.16);
  border: 1px solid rgba(83, 141, 203, 0.35);
  border-radius: 9999px;
  padding: 5px 14px;
  font-family: var(--font-texto);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #9dc0ea;
}
.pill-secao--claro { background: rgba(79, 111, 216, 0.1); border-color: rgba(79, 111, 216, 0.3); color: #31478a; }

/* Celular: o texto da pill do topo quebra em 2 linhas; a etiqueta acompanha a 1ª linha e a estrela fica colada na última palavra */
@media (max-width: 767px) {
  .pill { border-radius: 18px; align-items: flex-start; gap: 10px; padding: 9px 14px; }
  .pill__tag { flex: 0 0 auto; font-size: 12px; line-height: 20px; padding: 0 9px; }
  .pill__txt { display: block; min-width: 0; max-width: 25ch; font-size: 13px; line-height: 20px; letter-spacing: 0; text-wrap: balance; }
  .pill--ia .pill__txt::after { display: inline-block; margin-left: 4px; vertical-align: -2px; }
  .pill-secao { border-radius: 14px; text-wrap: balance; }
}

/* Google Tag Manager: quadro do <noscript> (só existe com JavaScript desligado) fica invisível */
.gtm-noscript { display: none; visibility: hidden; }
