/* Primeiro acesso da família (js/entrar.js). Aprovado em 01/11/2026, versão meio-termo e centralizada:
   quadro claude.ai/artifact/6VHhQDURCQvWipzeQbKYVJ. O texto usa a fonte do celular; a Baloo fica nos
   títulos, em peso mais leve. O convite da equipe (js/convite.js) segue com as regras .entrada__ do redinha.css. */
.entrada--familia {
  --ent-fonte: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  padding: 0; font-family: var(--ent-fonte); font-weight: 400; font-size: 15px; line-height: 22px; color: var(--ink); -webkit-font-smoothing: antialiased;
}
.entrada--familia button, .entrada--familia input { font-family: inherit; }

.ent-topo { position: sticky; top: 0; z-index: 2; background: var(--surface); padding-top: env(safe-area-inset-top, 0px); }
.ent-topo__linha { height: 52px; padding: 8px var(--space-5) 0 12px; display: flex; align-items: center; gap: 4px; }
.ent-topo__linha--marca { padding-left: var(--space-5); }
.ent-marca { display: flex; align-items: center; gap: 6px; }
.ent-marca .simbolo { display: block; }
.ent-marca .assinatura { font-size: 20px; }
.ent-etapa { margin-left: auto; font-size: 13px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.ent-barra { display: flex; gap: 4px; padding: 0 var(--space-5); }
.ent-barra i { flex: 1; height: 4px; border-radius: 2px; background: var(--line-strong); transition: background-color .3s; }
.ent-barra i.ligado { background: var(--pink); }

.entrada--familia .entrada__corpo { display: flex; flex-direction: column; padding: 0; }
.ent-passo { flex: 1; display: flex; flex-direction: column; gap: 16px; padding: 22px var(--space-5) 20px; text-align: center; animation: ent-entra .26s cubic-bezier(.2, .8, .2, 1); }
.ent-passo--volta { animation-name: ent-volta; }
@keyframes ent-entra { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
@keyframes ent-volta { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
/* o miolo fica no meio da tela; o cartão da escola, se houver, fica no topo */
.ent-miolo { margin-block: auto; display: flex; flex-direction: column; gap: 16px; }

.ent-cab { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ent-onde { margin: 0 0 2px; max-width: 100%; font-size: 13px; line-height: 18px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ent-titulo { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 27px; line-height: 32px; letter-spacing: -.005em; text-wrap: balance; }
.ent-sub { margin: 0; font-size: 15px; line-height: 22px; color: var(--ink-soft); text-wrap: pretty; }

.ent-escola { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 20px; background: var(--surface-sunk); text-align: left; }
.ent-escola__logo { flex: none; width: 48px; height: 48px; padding: 8px; box-sizing: border-box; border-radius: 50%; background: var(--surface); object-fit: cover; }
.ent-escola__nome { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ent-escola__nome b { font-size: 16px; line-height: 21px; font-weight: 600; overflow-wrap: anywhere; }
.ent-escola__nome span { font-size: 13px; line-height: 18px; color: var(--ink-soft); }
.ent-espia { flex: none; display: flex; padding-left: 10px; }
.ent-espia img { width: 34px; height: 34px; margin-left: -10px; border-radius: 50%; background: var(--surface); box-shadow: 0 0 0 2px var(--surface-sunk); }
.ent-espia img:nth-child(2) { animation: ent-flutua 3.2s ease-in-out infinite; }
@keyframes ent-flutua { 50% { transform: translateY(-3px); } }

/* o código: as casinhas são só desenho, quem recebe o texto é o campo invisível por cima */
.ent-slots { position: relative; display: flex; gap: 4px; margin-top: 4px; }
.ent-slots span { flex: 1; min-width: 0; height: 54px; border-radius: 12px; background: var(--surface-soft); border: 1.5px solid transparent; box-sizing: border-box; display: flex; align-items: center; justify-content: center; font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ent-slots span.cheio { background: var(--surface); border-color: var(--line-strong); }
.ent-slots span.meio { margin-right: 6px; }
.ent-slots:focus-within span.atual { background: var(--surface); border-color: var(--ink); }
.ent-slots--erro span { border-color: var(--rose-ink); }
.ent-slots input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0; border: 0; font-size: 16px; text-transform: uppercase; }
.ent-erro { margin: -6px 0 0; font-size: 14px; line-height: 20px; color: var(--rose-ink); }
.ent-nota { margin: 0; font-size: 13px; line-height: 19px; color: var(--ink-soft); }
.ent-ajuda { align-self: center; min-height: 44px; padding: 0 14px 0 10px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); color: var(--ink); display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; }
.ent-ajuda:active { background: var(--surface-soft); }
.ent-demo { padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.ent-demo p { margin: 0; font-size: 14px; line-height: 20px; color: var(--ink-soft); }
.ent-demo__botoes { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.ent-demo__botoes button { min-height: 44px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); color: var(--ink); font-size: 15px; font-weight: 500; }

/* a escolha das crianças é a grade de sempre (.grade-criancas, no redinha.css) */
.entrada--familia .crianca__nome { font-weight: 600; }
.ent-busca { position: relative; }
.ent-busca svg { position: absolute; left: 12px; top: 14px; color: var(--ink-soft); pointer-events: none; }
.ent-busca input { width: 100%; height: 46px; box-sizing: border-box; padding: 0 12px 0 38px; border: 0; border-radius: 12px; background: var(--surface-soft); color: var(--ink); font-size: 16px; }
.ent-busca input::placeholder { color: var(--ink-soft); }
.ent-busca input:focus { outline: none; box-shadow: inset 0 0 0 1px var(--ink); }
.ent-vazio { margin: 0; padding: 16px; border-radius: 16px; background: var(--surface-sunk); font-size: 14px; line-height: 20px; color: var(--ink-soft); }
.ent-mais { display: flex; flex-direction: column; align-items: center; margin-top: -4px; }
.ent-mais button { min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--ink); font-size: 14px; font-weight: 500; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }

.ent-grupo { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.ent-rotulo { font-size: 14px; line-height: 20px; font-weight: 500; }
.ent-papeis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ent-papel { min-height: 46px; padding: 0 6px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--surface); color: var(--ink); font-size: 15px; font-weight: 500; display: flex; align-items: center; justify-content: center; gap: 4px; }
.ent-papel--largo { grid-column: span 2; }
.ent-papel[aria-pressed="true"] { border-color: var(--pink); box-shadow: inset 0 0 0 1px var(--pink); background: var(--rose-soft); font-weight: 600; }
.ent-papel svg { display: none; color: var(--pink); }
.ent-papel[aria-pressed="true"] svg { display: block; }
.ent-campo { width: 100%; height: 50px; box-sizing: border-box; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--surface); color: var(--ink); font-size: 16px; }
.ent-campo::placeholder { color: var(--ink-mute); }
.ent-campo:focus { outline: none; border-color: var(--ink); box-shadow: inset 0 0 0 .5px var(--ink); }
.ent-campo--erro { border-color: var(--rose-ink); }
.ent-campo-erro { margin: 0; font-size: 13px; line-height: 18px; color: var(--rose-ink); }
.ent-assina { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 18px; background: var(--surface-sunk); text-align: left; }
.ent-assina img { flex: none; width: 34px; height: 34px; border-radius: 50%; }
.ent-assina div { min-width: 0; display: flex; flex-direction: column; }
.ent-assina small { font-size: 13px; line-height: 18px; color: var(--ink-soft); }
.ent-assina b { font-size: 15px; line-height: 20px; font-weight: 600; overflow-wrap: anywhere; }

/* listas com bolinha de tom clarinho: combinados, passos de instalar e as folhas de explicação */
.ent-lista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; text-align: left; }
.ent-lista li { display: flex; gap: 12px; padding: 14px 0; }
.ent-lista li + li { border-top: 1px solid var(--line); }
.ent-lista li:first-child { padding-top: 2px; }
.ent-lista li:last-child { padding-bottom: 0; }
.ent-lista b { display: block; font-size: 15px; line-height: 21px; font-weight: 600; }
.ent-lista span { display: block; margin-top: 2px; font-size: 14px; line-height: 20px; color: var(--ink-soft); }
.ent-ic { flex: none; width: 36px; height: 36px; margin-top: 1px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-style: normal; font-weight: 600; }
.ent-ic--mint { background: var(--mint-soft); color: var(--mint-ink); }
.ent-ic--rose { background: var(--rose-soft); color: var(--rose-ink); }
.ent-ic--sky { background: var(--sky-soft); color: var(--sky-ink); }
.ent-ic--sun { background: var(--sun-soft); color: var(--sun-ink); }
.ent-ic--lilac { background: var(--lilac-soft); color: var(--lilac-ink); }

.ent-guardado { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 18px; background: var(--surface-sunk); text-align: left; }
.ent-guardado div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ent-guardado small { font-size: 13px; line-height: 18px; color: var(--ink-soft); }
.ent-guardado b { font-size: 17px; line-height: 22px; font-weight: 600; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.ent-guardado button { flex: none; min-height: 44px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 500; }

.ent-avatares { display: flex; justify-content: center; padding: 4px 14px 2px 0; animation: ent-pula .5s cubic-bezier(.3, .7, .4, 1.5); }
.ent-avatar { position: relative; width: 78px; height: 78px; margin-right: -14px; padding: 3px; box-sizing: border-box; border-radius: 50%; background: linear-gradient(45deg, var(--ring-1), var(--ring-2), var(--ring-3), var(--ring-4)); }
.ent-avatar img { display: block; width: 100%; height: 100%; box-sizing: border-box; border-radius: 50%; border: 3px solid var(--surface); }
.ent-avatar b { position: absolute; inset: 3px; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 3px solid var(--surface); background: var(--surface-soft); font-size: 15px; font-weight: 600; }
@keyframes ent-pula { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: none; } }
.ent-resumo { list-style: none; margin: 0; padding: 0; border-radius: 20px; box-shadow: inset 0 0 0 1px var(--line-strong); text-align: left; }
.ent-resumo li { display: flex; gap: 12px; padding: 13px 14px; }
.ent-resumo li + li { border-top: 1px solid var(--line); }
.ent-resumo b { display: block; font-size: 15px; line-height: 21px; font-weight: 600; overflow-wrap: anywhere; }
.ent-resumo span { display: block; margin-top: 1px; font-size: 13.5px; line-height: 19px; color: var(--ink-soft); }
.ent-porta { align-self: center; width: 48px; height: 48px; border-radius: 50%; background: var(--surface-soft); display: flex; align-items: center; justify-content: center; }

.ent-rodape { position: sticky; bottom: 0; z-index: 2; padding: 12px var(--space-5) calc(20px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 4px; border-top: 1px solid var(--line); background: var(--surface); }
.ent-rodape:empty { display: none; }
.ent-rodape .botao--grande { min-height: 52px; font-size: 16px; font-weight: 600; border-radius: 16px; }
.ent-rodape .botao--transparente { min-height: 44px; font-size: 15px; font-weight: 500; }

/* o splash: a abertura do símbolo, depois o nome */
.ent-splash { flex: 1; width: 100%; min-height: 100dvh; box-sizing: border-box; padding: 24px; border: 0; background: var(--surface); color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; }
.ent-splash .assinatura { font-size: 42px; }
.ent-splash__titulo { margin: 14px 0 0; font-family: var(--font-display); font-weight: 700; font-size: 25px; line-height: 30px; animation: ent-surge .5s .9s ease both; }
.ent-splash__escola { margin: 0; font-size: 15px; line-height: 22px; color: var(--ink-soft); animation: ent-surge .5s 1.1s ease both; }
@keyframes ent-surge { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* as folhas de explicação */
.ent-folha { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", sans-serif; font-weight: 400; color: var(--ink); -webkit-font-smoothing: antialiased; }
.ent-folha .ent-titulo { font-size: 23px; line-height: 28px; text-align: center; margin-bottom: 12px; }
.ent-folha .ent-lista li { padding-top: 10px; padding-bottom: 10px; }
.ent-folha .ent-lista li:first-child { padding-top: 2px; }
.ent-folha .ent-lista li:last-child { padding-bottom: 0; }
.ent-folha__link { display: flex; align-items: center; justify-content: center; min-height: 44px; margin-top: 6px; color: var(--ink); font-size: 14px; font-weight: 500; text-underline-offset: 4px; text-decoration-color: var(--line-strong); }
button.ent-folha__link { width: 100%; border: none; background: none; font-family: inherit; text-decoration: underline; cursor: pointer; }
/* a política dentro da folha (11/11/2026), com o "Entendi" sempre à vista embaixo */
.ent-politica { font-size: 14.5px; line-height: 1.55; color: var(--ink); }
.ent-politica h1 { font-size: 21px; line-height: 1.2; margin: 4px 0 8px; }
.ent-politica h2 { font-size: 16px; line-height: 1.3; margin: 18px 0 6px; }
.ent-politica p, .ent-politica li { margin: 6px 0; }
.ent-politica ul, .ent-politica ol { padding-left: 20px; margin: 6px 0; }
.ent-politica table { display: block; overflow-x: auto; width: 100%; border-collapse: collapse; font-size: 12.5px; line-height: 17px; margin: 8px 0; }
.ent-politica th, .ent-politica td { border: 1px solid var(--line); padding: 5px 7px; text-align: left; vertical-align: top; }
.ent-politica a { color: inherit; }
.ent-folha .botao--largo { position: sticky; bottom: 0; margin-top: 8px; font-family: inherit; box-shadow: 0 10px 0 var(--surface), 0 -10px 14px var(--surface); }

@media (prefers-reduced-motion: reduce) {
  .ent-passo, .ent-avatares, .ent-splash__titulo, .ent-splash__escola, .ent-espia img:nth-child(2) { animation: none; }
  .ent-barra i { transition: none; }
}
/* com o texto longo da política rolando, o "Entendi" cobre também o espaço embaixo dele */
.ent-folha:has(.ent-politica) .botao--largo { box-shadow: 0 34px 0 var(--surface), 0 -14px 16px var(--surface); }
