/* ==========================================================
   Massokids · prévia v2
   As cores do logo vivem no logo, nas abas e na trilha;
   o resto da página é branco, azul-céu e tinta azul-profunda.
   ========================================================== */
:root {
  --tinta: #22304A;        /* títulos, faixa da frase, rodapé */
  --texto: #3B4659;        /* texto corrido (9,6:1 no branco) */
  --fundo: #FFFFFF;
  --ceu: #EEF6FA;          /* seções alternadas */
  --linha: #CFDDE7;
  --acao: #1F7A4D;         /* verde do "K": botões (5,3:1 com branco) */
  --amarelo: #F6D24A;
  --rosa: #F4A5B5;
  --azul: #6CC3D6;
  --laranja: #F5A56E;
  --verde: #9BCB5A;
  --fonte-titulo: "Fredoka", "Trebuchet MS", sans-serif;
  --fonte-texto: "Atkinson Hyperlegible Next", system-ui, sans-serif;
  --altura-cabecalho: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fundo);
  color: var(--texto);
  font-family: var(--fonte-texto);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 {
  margin: 0;
  color: var(--tinta);
  font-family: var(--fonte-titulo);
  font-weight: 600;
  line-height: 1.08;
  text-wrap: balance;
}
h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3rem); }
h3 { font-size: 1.35rem; font-weight: 600; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--acao); text-underline-offset: 0.18em; }
a:hover { color: var(--tinta); }
:focus-visible { outline: 3px solid var(--tinta); outline-offset: 3px; border-radius: 6px; }
[id] { scroll-margin-top: var(--altura-cabecalho); }
svg { flex-shrink: 0; }
.botao svg, .menu-botao svg, .whats-flutuante svg {
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.oculto { position: absolute; width: 0; height: 0; overflow: hidden; }
.largura { width: min(100% - 2.5rem, 1160px); margin-inline: auto; }

/* ---------- Logo em vetor ---------- */
.logo-letras {
  font-family: var(--fonte-titulo);
  font-weight: 700;
  font-size: 64px;
  stroke: #3A3A44;
  stroke-width: 7px;
  stroke-linejoin: round;
  paint-order: stroke;
}
.l1 { fill: var(--amarelo); }
.l2 { fill: var(--rosa); }
.l3 { fill: var(--laranja); }
.l4 { fill: var(--azul); }
.l5 { fill: var(--laranja); }
.l6 { fill: #2FA35A; }
.l7 { fill: var(--laranja); }
.l8 { fill: var(--rosa); }
.l9 { fill: var(--verde); }

/* ---------- Acesso rápido e faixa de prévia ---------- */
.pular {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  padding: 0.75rem 1rem; background: var(--tinta); color: #fff;
}
.pular:focus { top: 1rem; color: #fff; }
.faixa-demo {
  padding: 0.4rem 1.25rem;
  background: var(--tinta);
  color: #fff;
  font-size: 0.8125rem;
  text-align: center;
}

/* ---------- Cabeçalho ---------- */
.cabecalho {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 255 255 / 0.96);
  border-bottom: 1px solid var(--linha);
}
.cabecalho-interno {
  display: flex; align-items: center; gap: 1.25rem;
  width: min(100% - 2.5rem, 1160px);
  min-height: var(--altura-cabecalho);
  margin-inline: auto;
}
.logo { display: block; margin-right: auto; line-height: 0; }
.logo svg { width: 160px; height: auto; }
.menu ul { display: flex; gap: 0.25rem; margin: 0; padding: 0; list-style: none; }
.menu a {
  display: flex; align-items: center; min-height: 44px; padding: 0 0.7rem;
  color: var(--tinta); text-decoration: none; font-weight: 700;
}
.menu a:hover { text-decoration: underline; }
.menu-botao {
  display: none; align-items: center; gap: 0.4rem;
  min-height: 44px; min-width: 44px; padding: 0 0.7rem;
  border: 2px solid var(--linha); border-radius: 999px;
  background: #fff; color: var(--tinta); font: inherit; font-weight: 700; cursor: pointer;
}
.menu-botao .icone-fechar,
.menu-botao[aria-expanded="true"] .icone-abrir { display: none; }
.menu-botao[aria-expanded="true"] .icone-fechar { display: block; }

/* ---------- Botões ---------- */
.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 50px; padding: 0.7rem 1.5rem;
  border: 2px solid var(--acao); border-radius: 999px;
  background: var(--acao); color: #fff;
  font-weight: 700; line-height: 1.2; text-decoration: none;
  transition: background-color 0.2s ease-out, border-color 0.2s ease-out;
}
.botao:hover { background: var(--tinta); border-color: var(--tinta); color: #fff; }
.botao-grande { min-height: 58px; padding-inline: 1.8rem; font-size: 1.125rem; }
.botao-contorno { background: #fff; color: var(--acao); }
.botao-contorno:hover { background: #fff; color: var(--tinta); border-color: var(--tinta); }
.botao-cabecalho { min-height: 44px; padding-block: 0.5rem; }

/* ---------- Topo ---------- */
.topo {
  display: grid;
  grid-template-columns: 6fr 5fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  width: min(100% - 2.5rem, 1160px);
  margin-inline: auto;
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3.5rem, 8vw, 6.5rem);
}
.topo h1 {
  max-width: 13ch;
  font-size: clamp(2.6rem, 1.3rem + 5vw, 4.8rem);
  font-weight: 700;
  line-height: 1.0;
}
.topo-sub { max-width: 33rem; margin-block: 1.5rem 2rem; font-size: 1.2rem; }
.topo-acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }
.link-seta { font-weight: 700; color: var(--tinta); }

.topo-arte { position: relative; }
/* recorte orgânico, como uma pedra de rio */
.topo-foto {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 58% 42% 46% 54% / 46% 52% 48% 54%;
}

/* ---------- Frase da Cris ---------- */
.frase { background: var(--tinta); color: #fff; padding-block: clamp(3.5rem, 8vw, 6rem); }
.frase figure { margin-inline: auto; }
.frase blockquote { margin: 0; }
.frase blockquote p {
  max-width: 20ch;
  font-family: var(--fonte-titulo);
  font-weight: 600;
  font-size: clamp(2rem, 1.2rem + 3.6vw, 3.6rem);
  line-height: 1.1;
}
.frase figcaption { margin-top: 1.5rem; color: var(--amarelo); font-weight: 700; }

/* ---------- Seções ---------- */
.secao { padding-block: clamp(4rem, 9vw, 7rem); }
.secao-ceu { background: var(--ceu); }
.secao-sub { max-width: 38rem; margin-top: 1rem; font-size: 1.125rem; }

/* ---------- Para quem é: abas ---------- */
.abas { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-block: 2rem 1.25rem; }
.aba {
  min-height: 48px; padding: 0.5rem 1.4rem;
  border: 2px solid var(--tinta); border-radius: 999px;
  background: #fff; color: var(--tinta);
  font: inherit; font-family: var(--fonte-titulo); font-weight: 600; font-size: 1.15rem;
  cursor: pointer;
}
.aba[aria-selected="true"] { background: var(--tinta); color: #fff; }
.painel {
  max-width: 52rem;
  padding: clamp(1.75rem, 4vw, 3rem);
  border-radius: 36px 36px 36px 8px;
}
.painel h3 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); margin-bottom: 0.75rem; }
.painel p { max-width: 42rem; font-size: 1.125rem; }
.cor-a { background: #FFF3C4; }
.cor-b { background: #DDF1F6; }
.cor-c { background: #FCE4EA; }
.aviso { max-width: 46rem; margin-top: 1.5rem; font-size: 0.9375rem; }

/* ---------- Como é a sessão: trilha de jogo ---------- */
.trilha {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin: 3rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: casa;
}
/* caminho pontilhado ligando as casas */
.trilha::before {
  content: "";
  position: absolute;
  top: 36px;
  left: 36px;
  right: calc(25% - 1.5rem); /* termina na última casa */
  border-top: 4px dashed var(--linha);
}
.trilha li { position: relative; counter-increment: casa; }
.trilha li::before {
  content: counter(casa);
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: 1.25rem;
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--amarelo);
  color: var(--tinta);
  font-family: var(--fonte-titulo);
  font-size: 2rem;
  font-weight: 700;
}
.trilha li:nth-child(2)::before { background: var(--rosa); }
.trilha li:nth-child(3)::before { background: var(--azul); }
.trilha li:nth-child(4)::before { background: var(--verde); }
.trilha h3 { margin-bottom: 0.4rem; }

/* ---------- O espaço: foto da sala com o detalhe sobreposto (fotos do Instagram, em bloco médio para não esticar) ---------- */
.espaco {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.espaco-fotos { position: relative; max-width: 26rem; padding: 0 3.5rem 3.5rem 0; }
.espaco-foto { width: 100%; border-radius: 46% 54% 50% 50% / 40% 40% 60% 60%; }
.espaco-detalhe {
  position: absolute; right: 0; bottom: 0;
  width: 44%;
  border: 6px solid #fff;
  border-radius: 50%;
}
.espaco-texto { display: grid; gap: 1rem; max-width: 34rem; font-size: 1.125rem; }

/* ---------- Quem atende ---------- */
.cris {
  display: grid;
  grid-template-columns: 6fr 4fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.cris-texto { display: grid; gap: 1rem; max-width: 34rem; font-size: 1.125rem; }
.cris-foto { width: 100%; max-width: 24rem; justify-self: end; border-radius: 36px 36px 36px 8px; }

/* ---------- Dúvidas ---------- */
.duvidas { display: grid; grid-template-columns: 1fr 2fr; gap: 2rem 4rem; align-items: start; }
.duvidas-lista { display: grid; gap: 0.75rem; }
details { border-radius: 20px; background: #fff; }
summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  min-height: 56px; padding: 1rem 1.5rem;
  color: var(--tinta); font-weight: 700; cursor: pointer; list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  display: grid; place-items: center; flex-shrink: 0;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--ceu); color: var(--tinta);
  font-size: 1.4rem; line-height: 1;
}
details[open] summary::after { content: "−"; background: var(--amarelo); }
details p { max-width: 40rem; padding: 0 1.5rem 1.25rem; }

/* ---------- Onde fica ---------- */
.local { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 4rem; align-items: center; }
.local address {
  margin-block: 1.25rem 0.75rem;
  color: var(--tinta);
  font-family: var(--fonte-titulo);
  font-size: clamp(1.4rem, 1.1rem + 1vw, 1.8rem);
  font-style: normal;
  font-weight: 500;
  line-height: 1.3;
}
.local-acoes { display: grid; gap: 0.75rem; justify-items: stretch; max-width: 24rem; }

/* ---------- Rodapé ---------- */
.rodape {
  padding-block: 3.5rem 6.5rem; /* espaço para o botão flutuante não cobrir o texto */
  background: var(--tinta);
  color: #fff;
  font-size: 0.9375rem;
}
.rodape-interno { display: grid; gap: 1rem; }
.rodape-logo { width: 180px; height: auto; }
.rodape-autor { color: var(--amarelo); }

/* ---------- WhatsApp flutuante ---------- */
.whats-flutuante {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 60;
  display: grid; place-items: center;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--acao); color: #fff;
  box-shadow: 0 3px 10px rgb(34 48 74 / 0.3);
  transition: background-color 0.2s ease-out;
}
.whats-flutuante:hover { background: var(--tinta); color: #fff; }
.whats-flutuante:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 7px var(--tinta); }

/* ---------- Telas menores ---------- */
@media (max-width: 1000px) {
  .menu-botao { display: inline-flex; }
  .menu {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--linha);
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.25s ease-out, display 0.25s allow-discrete;
  }
  .menu-botao[aria-expanded="true"] ~ .menu { display: block; clip-path: inset(0); }
  @starting-style {
    .menu-botao[aria-expanded="true"] ~ .menu { clip-path: inset(0 0 100% 0); }
  }
  .menu ul {
    flex-direction: column;
    width: min(100% - 2.5rem, 1160px);
    margin-inline: auto;
    padding-block: 0.5rem 1rem;
  }
  .menu a { padding-inline: 0; font-size: 1.125rem; }
  .cabecalho-interno { gap: 0.75rem; } /* o menu se posiciona pelo .cabecalho (sticky) e ocupa a tela toda */
  .trilha { grid-template-columns: repeat(2, 1fr); }
  .trilha::before { display: none; }
}

@media (max-width: 860px) {
  .topo, .espaco, .cris, .duvidas, .local { grid-template-columns: 1fr; }
  .topo-arte { max-width: 26rem; margin-inline: auto 0; }
  .cris-foto { justify-self: start; }
}

@media (max-width: 600px) {
  .botao-cabecalho { display: none; } /* no celular o botão flutuante faz esse papel */
  .menu-rotulo { display: none; }
  .logo svg { width: 140px; }
  .trilha { grid-template-columns: 1fr; gap: 1.5rem; }
  /* no celular a trilha desce em zigue-zague, com o caminho pontilhado à esquerda */
  .trilha::before { display: block; top: 0; bottom: 2rem; left: 34px; right: auto; border-top: 0; border-left: 4px dashed var(--linha); }
  .trilha li { display: grid; grid-template-columns: 72px 1fr; column-gap: 1rem; }
  .trilha li::before { grid-row: span 2; margin-bottom: 0; }
  .topo-acoes .botao { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
