/* Rede Que Cuida — folha de estilo única. Sem framework, sem build de CSS. */

[hidden] { display: none !important; }

:root {
  --texto:   #141414;
  --acento:  #DF539E;   /* rosa da marca */
  --teal:    #0BADB4;
  --terra:   #D3793F;
  --cinza:   #C8D5DC;
  --fundo:   #FFFFFF;
  --fundo-2: #F9FAFD;
  --fundo-3: #F3F5F8;
  --largura: 1140px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Archivo, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--texto);
  background: var(--fundo);
  line-height: 1.6;
  font-size: 17px;
}

.container { max-width: var(--largura); margin-inline: auto; padding-inline: 24px; }

a { color: var(--acento); }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { line-height: 1.2; font-weight: 700; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.25rem; }

/* ---------- cabeçalho ---------- */
.topo {
  position: sticky; top: 0; z-index: 50;
  background: transparent; border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
}
/* vidro fosco só depois que a página rola */
.topo.rolado {
  background: rgba(255,255,255,.62);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom-color: rgba(20,20,20,.08);
}
@supports not (backdrop-filter: blur(1px)) {
  .topo.rolado { background: rgba(255,255,255,.95); }
}
/* na home o cabeçalho flutua sobre o vídeo: menu branco e marca só uma vez,
   porque o herói já traz a marca grande */
body.com-heroi .topo { position: fixed; left: 0; right: 0; }
body.com-heroi .topo:not(.rolado) .menu a { color: #fff; }
body.com-heroi .topo:not(.rolado) .menu a[aria-current] { color: #FFB7DA; border-color: #FFB7DA; }
body.com-heroi .topo:not(.rolado) .marca { opacity: 0; pointer-events: none; }
body.com-heroi .topo:not(.rolado) .abrir-menu { color: #fff; }
.marca { transition: opacity .3s ease; }
.topo .container { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.marca { font-weight: 800; font-size: 1.1rem; text-decoration: none; color: var(--texto); line-height: 1.1; }
.marca span { display: block; color: var(--acento); }
.menu { margin-left: auto; display: flex; gap: 28px; flex-wrap: wrap; }
.menu a {
  text-decoration: none; color: var(--texto); font-weight: 500; font-size: .95rem;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.menu a:hover, .menu a[aria-current="page"] { color: var(--acento); border-bottom-color: var(--acento); }

.abrir-menu { display: none; margin-left: auto; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--texto); }

/* ---------- herói ---------- */
.heroi { background: var(--fundo-2); padding: 72px 0; }
.heroi .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.heroi h1 { margin-bottom: .4em; }
.heroi h1 em { font-style: normal; color: var(--acento); }
.heroi p { font-size: 1.15rem; max-width: 46ch; }

.botao {
  display: inline-block; margin-top: 20px; padding: 14px 28px;
  background: var(--acento); color: #fff; text-decoration: none;
  border-radius: 999px; font-weight: 600;
}
.botao:hover { filter: brightness(.92); }
.botao.vazado { background: transparent; color: var(--acento); border: 2px solid var(--acento); }

/* ---------- números ---------- */
.numeros { padding: 64px 0; }
.numeros ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.numeros li { background: var(--fundo-3); border-radius: 18px; padding: 32px 28px; }
.numeros strong { display: block; font-size: 3rem; line-height: 1; color: var(--acento); font-weight: 800; }
.numeros span { display: block; margin-top: 12px; font-size: 1rem; }

/* ---------- seções ---------- */
.secao { padding: 64px 0; }
.secao.alt { background: var(--fundo-2); }
.secao > .container > p { max-width: 70ch; }

.duas { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }

/* ---------- cartões de recurso ---------- */
.cartoes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.cartao { background: #fff; border: 1px solid var(--fundo-3); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
.cartao img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.cartao .corpo { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.cartao h3 { font-size: 1.05rem; margin-bottom: 12px; }
.cartao a.ir { margin-top: auto; text-decoration: none; font-weight: 600; font-size: .92rem; }
.cartao a.ir::after { content: " →"; }
.etiqueta { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--teal); font-weight: 700; margin-bottom: 8px; }

/* ---------- conteúdo de texto ---------- */
.prosa { max-width: 72ch; }
.prosa h2 { margin-top: 1.8em; }
.prosa ul { padding-left: 1.2em; }
.prosa li { margin-bottom: .5em; }
.prosa blockquote {
  margin: 1.5em 0; padding: 18px 24px; background: var(--fundo-3);
  border-left: 4px solid var(--acento); border-radius: 0 12px 12px 0; font-style: italic;
}

.glossario { list-style: none; padding: 0; display: grid; gap: 16px; }
.glossario li { background: var(--fundo-3); border-radius: 14px; padding: 20px 24px; }
.glossario strong { color: var(--acento); display: block; margin-bottom: 4px; }

.faixas { display: grid; gap: 16px; }
.faixa { border: 1px solid var(--cinza); border-radius: 14px; padding: 20px 24px; }
.faixa strong { display: block; color: var(--teal); margin-bottom: 6px; }

/* ---------- rodapé ---------- */
.rodape { background: var(--texto); color: #fff; padding: 56px 0 40px; margin-top: 64px; }
.rodape a { color: #fff; }
.rodape .container { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.rodape h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--cinza); }
.rodape ul { list-style: none; padding: 0; margin: 0; }
.rodape li { margin-bottom: 8px; }
.rodape .creditos { grid-column: 1 / -1; border-top: 1px solid #333; padding-top: 24px; font-size: .85rem; color: var(--cinza); }

/* ---------- telas pequenas ---------- */
@media (max-width: 880px) {
  .heroi .container, .duas, .rodape .container { grid-template-columns: 1fr; }
  .numeros ul, .cartoes { grid-template-columns: 1fr; }
  .abrir-menu { display: block; }
  .menu { display: none; width: 100%; flex-direction: column; gap: 0; padding-bottom: 16px; }
  .menu.aberto { display: flex; }
  .topo .container { flex-wrap: wrap; }
  .menu a { padding: 12px 0; border-bottom: 1px solid var(--fundo-3); }

  /* com o menu aberto o cabeçalho precisa de fundo próprio: sobre o vídeo
     os links ficavam flutuando em cima do herói, ilegíveis */
  .topo:has(.menu.aberto) {
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border-bottom-color: rgba(20,20,20,.08);
    box-shadow: 0 18px 40px -30px rgba(20,20,20,.7);
  }
  body.com-heroi .topo:has(.menu.aberto) .marca { opacity: 1; pointer-events: auto; }
  body.com-heroi .topo:has(.menu.aberto) .menu a { color: var(--texto); }
  body.com-heroi .topo:has(.menu.aberto) .menu a[aria-current] { color: var(--acento); }
  body.com-heroi .topo:has(.menu.aberto) .abrir-menu { color: var(--texto); }
}

@media (min-width: 881px) and (max-width: 1040px) {
  .cartoes, .numeros ul { grid-template-columns: repeat(2, 1fr); }
}

/* ===================== movimento ===================== */

/* entrada ao rolar — só quando o visitante não pediu menos movimento */
@media (prefers-reduced-motion: no-preference) {
  .revela { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1); }
  .revela.visivel { opacity: 1; transform: none; }
  .revela:nth-child(2) { transition-delay: .08s; }
  .revela:nth-child(3) { transition-delay: .16s; }
  .cartoes .cartao { transition: transform .35s cubic-bezier(.2,.7,.3,1), box-shadow .35s ease, border-color .35s ease; }
  .cartoes .cartao:hover { transform: translateY(-6px); box-shadow: 0 18px 40px -22px rgba(20,20,20,.45); border-color: var(--acento); }
  .cartao img { transition: transform .6s cubic-bezier(.2,.7,.3,1); }
  .cartao:hover img { transform: scale(1.04); }
  .botao { transition: transform .2s ease, filter .2s ease, box-shadow .2s ease; }
  .botao:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -14px var(--acento); }
  .numeros li { transition: transform .35s cubic-bezier(.2,.7,.3,1), background .35s ease; }
  .numeros li:hover { transform: translateY(-4px); background: #fff; box-shadow: 0 16px 36px -24px rgba(20,20,20,.4); }
  .topo { transition: box-shadow .3s ease, background .3s ease; }
  .topo.rolado { box-shadow: 0 6px 24px -18px rgba(20,20,20,.6); }
  .menu a { transition: color .2s ease, border-color .2s ease; }
}

/* herói com profundidade */
.heroi {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 420px at 88% 12%, rgba(223,83,158,.16), transparent 62%),
    radial-gradient(700px 380px at 6% 92%, rgba(11,173,180,.14), transparent 62%),
    var(--fundo-2);
}
.heroi::after {
  content: ""; position: absolute; inset: auto -10% -45% auto;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(211,121,63,.10), transparent 68%);
  pointer-events: none;
}
.heroi > .container { position: relative; z-index: 1; }

/* números com contagem */
.numeros strong { font-variant-numeric: tabular-nums; }

/* cartão: imagem recortada */
.cartao { overflow: hidden; }
.cartao > img { will-change: transform; }

/* rodapé com as marcas */
.marcas-rodape { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-bottom: 20px; }
.marcas-rodape img { height: 46px; width: auto; }
.marcas-rodape .rqc { height: 58px; }
.rodape .selo { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--cinza); display: block; margin-bottom: 10px; }

/* foco visível para quem navega por teclado */
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--acento); outline-offset: 3px; border-radius: 4px;
}

/* herói com vídeo de fundo — era assim no site original */
.heroi-video {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.heroi.com-video::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(14,14,16,.82), rgba(14,14,16,.52) 58%, rgba(14,14,16,.28));
}
.heroi.com-video > .container {
  position: relative; z-index: 2;
  grid-template-columns: 1fr; min-height: 58vh; align-content: center;
}
.heroi.com-video h1, .heroi.com-video p { color: #fff; }
.heroi.com-video h1 { max-width: 16ch; }
.heroi.com-video h1 em { color: #FFB7DA; }
.heroi.com-video p { max-width: 42ch; }

.heroi.com-video::after { display: none; }

/* logo no cabeçalho */
.marca img { height: 40px; width: auto; display: block; }

/* herói full bleed: vídeo ocupando a dobra, logo sobreposta */
.heroi.com-video { padding: 0; }
.heroi.com-video > .container {
  min-height: min(78vh, 680px);
  padding-top: 72px; padding-bottom: 72px;
}
.heroi-marca {
  width: min(250px, 52vw); height: auto; display: block; margin-bottom: 52px;
  filter: drop-shadow(0 2px 18px rgba(0,0,0,.45));
}
@media (max-width: 760px) {
  .heroi.com-video > .container { min-height: 72vh; }
  .heroi-marca { width: min(200px, 56vw); margin-bottom: 38px; }
  .marca img { height: 32px; }
}

/* grade de guias por plataforma */
.guias { list-style: none; padding: 0; display: grid; gap: 16px;
         grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.guias a {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  height: 100%; padding: 20px; border: 1px solid var(--cinza); border-radius: 16px;
  background: #fff; text-decoration: none; color: var(--texto);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.guias a:hover { border-color: var(--acento); transform: translateY(-2px);
                 box-shadow: 0 14px 30px -22px rgba(20,20,20,.5); }
.guias img { height: 34px; width: auto; max-width: 140px; object-fit: contain; }
.guias strong { font-size: 1.02rem; }
.guias span { font-size: .85rem; color: var(--acento); font-weight: 600; }

/* tira de plataformas na home */
.plataformas { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
               gap: 14px; }
.plataformas a {
  display: block; height: 74px; padding: 14px 16px;
  background: #fff; border: 1px solid var(--cinza); border-radius: 14px;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.plataformas a:hover { border-color: var(--acento); transform: translateY(-2px);
                       box-shadow: 0 14px 30px -22px rgba(20,20,20,.5); }
.plataformas img { width: 100%; height: 100%; object-fit: contain; }

/* vídeos da campanha */
.videos { list-style: none; padding: 0; display: grid; gap: 18px;
          grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.videos video { width: 100%; aspect-ratio: 16/9; border-radius: 16px;
                background: #111; object-fit: cover; }

/* perguntas frequentes */
.container.estreito { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--cinza); }
.faq summary { cursor: pointer; padding: 18px 36px 18px 0; position: relative;
               font-weight: 700; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 15px;
                      font-size: 1.5rem; line-height: 1; color: var(--acento); }
.faq details[open] summary::after { content: "–"; }
.faq summary:hover { color: var(--acento); }
.faq details > div { padding: 0 0 18px; }
.faq details > div p { margin: 0 0 10px; }

/* paredes de marcas */
.rotulo-marcas { text-transform: lowercase; letter-spacing: .14em; font-size: .82rem;
                 color: var(--acento); margin: 40px 0 16px; }
.rotulo-marcas:first-child { margin-top: 0; }
.parede-marcas { list-style: none; padding: 0; display: flex; flex-wrap: wrap;
                 align-items: center; gap: 18px 36px; }
.parede-marcas img { height: 46px; width: auto; max-width: 160px; object-fit: contain; }

/* a marca do organizador é branca, então escurece na parede clara */
.parede-marcas.organizador img { filter: brightness(0); }

/* plataforma ainda sem guia: mesmo cartão, sem link */
.guias .sem-guia {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  height: 100%; padding: 20px; border: 1px dashed var(--cinza); border-radius: 16px;
  background: #fff; color: var(--texto);
}
.guias .sem-guia img { height: 34px; width: auto; max-width: 140px; object-fit: contain;
                       opacity: .6; }
.guias .sem-guia span { font-size: .85rem; color: #6B7580; font-weight: 600; }

/* visor de PDF */
.visor {
  width: min(1040px, 92vw); height: min(88vh, 960px); padding: 0; border: 0;
  border-radius: 18px; background: #fff; overflow: hidden;
  box-shadow: 0 40px 90px -40px rgba(0,0,0,.6);
}
.visor::backdrop { background: rgba(14,14,16,.62); backdrop-filter: blur(3px); }
.visor-topo { display: flex; align-items: center; gap: 16px; padding: 14px 18px;
              border-bottom: 1px solid var(--cinza); }
.visor-titulo { flex: 1; font-size: 1rem; }
.visor-abrir { font-size: .88rem; color: var(--acento); font-weight: 600; }
.visor-fechar { border: 0; background: none; font-size: 1.6rem; line-height: 1;
                cursor: pointer; color: #6B7580; padding: 0 4px; }
.visor-fechar:hover { color: var(--texto); }
.visor-quadro { width: 100%; height: calc(100% - 56px); border: 0; display: block; }

/* quiz de maturidade digital */
.quiz .chamada { font-size: 1.15rem; max-width: 52ch; }
.quiz .miudo { font-size: .86rem; color: #6B7580; max-width: 58ch; }
.quiz .tema { display: inline-block; text-transform: lowercase; letter-spacing: .14em;
              font-size: .78rem; color: var(--acento); font-weight: 700; margin-bottom: 10px; }
.quiz .enunciado { font-size: 1.45rem; font-weight: 700; line-height: 1.25;
                   margin-bottom: 22px; }
.quiz .opcoes { display: grid; gap: 12px; }
.quiz .opcoes button {
  text-align: left; font: inherit; cursor: pointer; padding: 16px 20px;
  border: 1px solid var(--cinza); border-radius: 14px; background: #fff; color: var(--texto);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.quiz .opcoes button:hover, .quiz .opcoes button:focus-visible {
  border-color: var(--acento); transform: translateY(-2px);
  box-shadow: 0 14px 30px -22px rgba(20,20,20,.5);
}
.quiz .faixas { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.quiz .barra { height: 4px; background: var(--fundo-3); border-radius: 4px; overflow: hidden;
               margin-bottom: 14px; }
.quiz .barra span { display: block; height: 100%; width: 0; background: var(--acento);
                    transition: width .3s ease; }
.quiz .contador { font-size: .86rem; color: #6B7580; margin-bottom: 26px; }
.quiz .voltar { margin-top: 26px; }
.quiz .r-passos { padding-left: 1.1em; margin: 18px 0; }
.quiz .r-passos li { margin-bottom: 12px; }
.quiz .r-faixa { padding: 16px 20px; border-left: 3px solid var(--teal);
                 background: var(--fundo-2); border-radius: 0 12px 12px 0; }

/* chamada do quiz na home */
.quiz-chamada { background: var(--fundo-2); }
.quiz-chamada .container { text-align: center; }
.quiz-chamada p { max-width: 54ch; margin-left: auto; margin-right: auto; }
