/* Ninho · landing com a identidade do app.
   Mesmas cores, letra e botões do app (ninho_flutter/lib/ui/theme.dart e o app.css do PWA):
   fundo claro, contornos de 2 px, botões "3D" que afundam ao toque, Nunito e as figurinhas do Pipo. */

:root {
  --bg: #ffffff;
  --fill: #f3f3fa;
  --fill-forte: #e4e5f0;
  --borda: #e6e7f1;
  --borda-forte: #d3d5e4;
  --texto: #2b2f45;
  --texto-2: #5a6078;
  --texto-3: #6b7088;
  --azul: #0a6fd1;
  --azul-fundo: #0754a3;
  --azul-suave: #e3f0fe;

  /* cores vivas das abas: cor, tinta e a borda de baixo */
  --ceu: #76c7ff;     --ceu-tinta: #002a42;     --ceu-fundo: #069ce4;
  --coral: #ffa098;   --coral-tinta: #431614;   --coral-fundo: #df6862;
  --verde: #6ed889;   --verde-tinta: #042f12;   --verde-fundo: #3eab5e;
  --amarelo: #ffd93b; --amarelo-tinta: #2f2600; --amarelo-fundo: #d6a800;
  --lilas: #ebe3ff;   --lilas-tinta: #3a2659;   --lilas-fundo: #c7b5f2;

  /* tons suaves */
  --t-ceu: #d3ecff; --t-menta: #cff3d5; --t-pessego: #fee2cc; --t-manteiga: #fff0b3; --t-coral: #ffdfdc; --t-lilas: #ebe3ff;

  --raio: 22px;
  --raio-p: 16px;
  --largura: 1160px;
  --gutter: clamp(20px, 4vw, 40px);
  --topo: 72px;
  --mola: cubic-bezier(0.34, 1.56, 0.64, 1);
  --saida: cubic-bezier(0.22, 1, 0.36, 1);
  --sombra-flutua: 0 18px 40px -14px rgb(40 46 110 / 30%);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--topo) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--texto);
  font-family: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 900; line-height: 1.12; letter-spacing: -0.015em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
::selection { background: var(--amarelo); color: var(--amarelo-tinta); }
:focus-visible { outline: 3px solid var(--azul); outline-offset: 3px; border-radius: 10px; }

.container { width: 100%; max-width: calc(var(--largura) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.pular { position: absolute; left: -9999px; top: 10px; z-index: 100; background: var(--azul); color: #fff; padding: 10px 16px; border-radius: 12px; font-weight: 800; text-decoration: none; }
.pular:focus { left: 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- botões: afundam ao toque, como no app ---------- */
.btn {
  --cor: var(--bg); --tinta: var(--texto-2); --base: var(--borda-forte); --linha: var(--borda-forte);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 24px; margin-bottom: 4px;
  border-radius: var(--raio-p); border: 2px solid var(--linha);
  background: var(--cor); color: var(--tinta);
  box-shadow: 0 4px 0 var(--base);
  font: inherit; font-size: 17px; font-weight: 900; letter-spacing: 0.01em; text-decoration: none; white-space: nowrap;
  cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
  transition: transform 0.1s ease-out, box-shadow 0.1s ease-out, filter 0.18s ease;
}
.btn:active { transform: translateY(4px); box-shadow: 0 0 0 var(--base); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primario { --cor: var(--azul); --tinta: #fff; --base: var(--azul-fundo); --linha: var(--azul); }
.btn-branco { --cor: #fff; --tinta: var(--ceu-tinta); --base: var(--ceu-fundo); --linha: #fff; }
.btn-p { min-height: 44px; padding: 0 18px; font-size: 15.5px; border-radius: 14px; }
@media (hover: hover) {
  .btn:hover { filter: brightness(1.06); }
  .btn-claro:hover { background: var(--fill); filter: none; }
}
.btn-claro { --cor: #fff; }

.link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--azul); font-weight: 800; text-decoration: none;
  border-radius: 10px; padding: 4px 2px;
}
.link svg { width: 18px; height: 18px; transition: transform 0.2s var(--saida); }
@media (hover: hover) { .link:hover svg { transform: translateX(3px); } .link:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; } }

/* ---------- figurinhas ---------- */
.fig { width: 32px; height: 32px; flex: none; overflow: visible; }
.selo {
  display: grid; place-items: center; flex: none;
  width: 56px; height: 56px; border-radius: 18px;
  background: var(--selo, var(--t-ceu));
}
.selo .fig { width: 34px; height: 34px; }

/* ---------- topo ---------- */
.topo {
  position: sticky; top: 0; z-index: 50;
  background: var(--ceu);
  border-bottom: 2px solid transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}
.topo.rolou { background: rgb(255 255 255 / 92%); border-bottom-color: var(--borda); backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%); }
.topo .container { display: flex; align-items: center; gap: 20px; height: var(--topo); }
.marca { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ceu-tinta); font-size: 25px; font-weight: 900; letter-spacing: -0.01em; border-radius: 14px; }
.marca img { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 3px 0 rgb(7 84 163 / 35%); }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav a { padding: 9px 14px; border-radius: 12px; color: var(--ceu-tinta); font-size: 15.5px; font-weight: 800; text-decoration: none; transition: background-color 0.18s ease; }
.topo.rolou .nav a { color: var(--texto-2); }
@media (hover: hover) { .nav a:hover { background: rgb(255 255 255 / 45%); } .topo.rolou .nav a:hover { background: var(--fill); color: var(--texto); } }
.topo-acoes { display: flex; align-items: center; gap: 10px; }
.topo .btn { margin-bottom: 0; }
.hamburguer {
  display: none; width: 46px; height: 46px; padding: 0; border-radius: 14px; cursor: pointer;
  background: #fff; border: 2px solid #fff; box-shadow: 0 3px 0 var(--ceu-fundo);
  align-items: center; justify-content: center; transition: transform 0.1s ease-out, box-shadow 0.1s ease-out;
}
.topo.rolou .hamburguer { border-color: var(--borda-forte); box-shadow: 0 3px 0 var(--borda-forte); }
.hamburguer:active { transform: translateY(3px); box-shadow: none; }
.hamburguer span, .hamburguer span::before, .hamburguer span::after { display: block; width: 18px; height: 2.5px; border-radius: 2px; background: var(--texto); position: relative; transition: transform 0.25s var(--saida), background-color 0.2s; }
.hamburguer span::before, .hamburguer span::after { content: ""; position: absolute; left: 0; }
.hamburguer span::before { top: -6px; }
.hamburguer span::after { top: 6px; }
.menu-aberto .hamburguer span { background: transparent; }
.menu-aberto .hamburguer span::before { transform: translateY(6px) rotate(45deg); }
.menu-aberto .hamburguer span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- abertura ---------- */
.abertura {
  position: relative;
  background: var(--ceu);
  color: var(--ceu-tinta);
  border-radius: 0 0 clamp(36px, 6vw, 64px) clamp(36px, 6vw, 64px);
  padding: clamp(24px, 4vw, 48px) 0 clamp(56px, 7vw, 96px);
  overflow: hidden;
}
.abertura::before, .abertura::after { /* bolinhas, como nos cabeçalhos das abas */
  content: ""; position: absolute; border-radius: 50%; background: #fff; opacity: 0.7; pointer-events: none;
}
.abertura::before { width: 14px; height: 14px; top: 16%; left: 46%; }
.abertura::after { width: 10px; height: 10px; bottom: 12%; right: 5%; }
.abertura .container { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center; gap: clamp(24px, 4vw, 56px); }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 6px; border-radius: 999px;
  background: rgb(255 255 255 / 70%); color: var(--ceu-tinta);
  font-size: 14.5px; font-weight: 800;
}
.chip .fig { width: 26px; height: 26px; }
.abertura h1 { margin-top: 20px; font-size: clamp(42px, 6.2vw, 72px); line-height: 1.02; letter-spacing: -0.025em; }
.marca-texto { /* "num lugar só" com marca-texto amarelo, como uma anotação */
  background: linear-gradient(transparent 58%, var(--amarelo) 58%, var(--amarelo) 92%, transparent 92%);
  padding: 0 0.06em; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.abertura .lead { margin-top: 20px; max-width: 34ch; font-size: clamp(18px, 1.8vw, 21px); line-height: 1.5; font-weight: 700; color: rgb(0 42 66 / 86%); }
.acoes { display: flex; flex-wrap: wrap; gap: 12px 14px; margin-top: 30px; }
.nota { margin-top: 18px; font-size: 15px; font-weight: 700; color: rgb(0 42 66 / 78%); display: flex; flex-wrap: wrap; gap: 6px 16px; }
.nota span { display: inline-flex; align-items: center; gap: 6px; }
.nota svg { width: 18px; height: 18px; }

.vitrine { position: relative; display: grid; place-items: center; min-height: 600px; }
.celular {
  position: relative; width: 300px; max-width: 100%;
  aspect-ratio: 720 / 1566;
  border-radius: 46px; padding: 10px;
  background: #1d2135;
  box-shadow: 0 0 0 2px #2e3450 inset, 0 40px 70px -28px rgb(0 42 66 / 55%);
}
.celular img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 36px; background: #fff; }
.vitrine .celular { width: 296px; }

.flutua {
  position: absolute; z-index: 2;
  background: #fff; color: var(--texto);
  border: 2px solid var(--borda); border-bottom-width: 4px; border-radius: 20px;
  box-shadow: var(--sombra-flutua);
  font-size: 14px; line-height: 1.3;
}
.flutua b { font-weight: 900; }
.flutua small { display: block; color: var(--texto-3); font-size: 12.5px; font-weight: 700; margin-top: 2px; }
.f-aconteceu { top: 9%; left: -2%; width: 236px; padding: 12px 12px 12px 14px; }
.f-aconteceu .cab { display: flex; align-items: center; gap: 8px; font-weight: 900; font-size: 15px; margin-bottom: 10px; }
.f-aconteceu .cab .fig { width: 22px; height: 22px; }
.f-aconteceu .linha { display: flex; align-items: center; gap: 10px; }
.f-aconteceu .linha div { flex: 1; min-width: 0; }
.mini-sim {
  display: inline-flex; align-items: center; gap: 4px; flex: none;
  padding: 7px 11px; border-radius: 12px;
  background: var(--verde); color: var(--verde-tinta); box-shadow: 0 3px 0 var(--verde-fundo);
  font-weight: 900; font-size: 13.5px;
}
.mini-sim svg { width: 15px; height: 15px; }
.f-remedio {
  right: -5%; top: 50%; width: max-content;
  display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 10px;
  background: var(--amarelo); border-color: var(--amarelo); border-bottom-color: var(--amarelo-fundo); color: var(--amarelo-tinta);
}
.f-remedio .selo { width: 44px; height: 44px; border-radius: 14px; --selo: #fff; }
.f-remedio .selo .fig { width: 28px; height: 28px; }
.f-remedio small { color: rgb(47 38 0 / 78%); }
.f-remedio div { flex: 1; min-width: 0; }
.f-remedio b, .flutua small { white-space: nowrap; }
.pipo-fala { position: absolute; z-index: 3; left: 0; bottom: 4%; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.pipo-fala .pipo { width: 104px; height: 104px; margin-left: 18px; }
.balao {
  position: relative; max-width: 172px;
  padding: 10px 14px; border-radius: 18px 18px 18px 6px;
  background: #fff; border: 2px solid var(--borda); border-bottom-width: 4px;
  font-size: 14px; font-weight: 800; line-height: 1.35; color: var(--texto);
  box-shadow: var(--sombra-flutua);
}

/* ---------- seções ---------- */
.secao { padding: clamp(72px, 10vw, 128px) 0; }
.cabeca { max-width: 720px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.cabeca.esq { margin-left: 0; text-align: left; }
.sobre { display: inline-block; margin-bottom: 12px; padding: 5px 12px; border-radius: 999px; background: var(--azul-suave); color: var(--azul-fundo); font-size: 14px; font-weight: 900; letter-spacing: 0.02em; }
.secao h2 { font-size: clamp(32px, 4.4vw, 50px); }
.cabeca p { margin-top: 16px; font-size: clamp(17px, 1.6vw, 19px); color: var(--texto-2); }

/* cartões como os do app: contorno de 2 px e a base de 4 px */
.cartao { background: #fff; border: 2px solid var(--borda); border-bottom-width: 4px; border-radius: var(--raio); }

.recursos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.recurso { padding: 24px; }
.recurso .selo { margin-bottom: 18px; }
.recurso h3 { font-size: 21px; }
.recurso p { margin-top: 8px; color: var(--texto-2); font-size: 16px; line-height: 1.55; }

/* cenas: uma por aba do app, cada uma na cor dela */
.cenas { display: grid; gap: clamp(72px, 9vw, 120px); }
.cena { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 6vw, 88px); }
.cena.inverte .cena-texto { order: 2; }
.cena-texto .aba { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 15px; font-weight: 900; color: var(--texto-2); }
.cena-texto .aba .fig { width: 30px; height: 30px; }
.cena-texto h2 { font-size: clamp(30px, 3.6vw, 44px); }
.cena-texto > p { margin-top: 16px; font-size: clamp(17px, 1.5vw, 18.5px); color: var(--texto-2); max-width: 46ch; }
.checks { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.checks li { display: flex; align-items: flex-start; gap: 12px; font-weight: 700; color: var(--texto); }
.checks .fig { width: 26px; height: 26px; margin-top: 1px; }

.painel {
  --cor: var(--ceu); --fundo: var(--ceu-fundo);
  position: relative; height: clamp(420px, 46vw, 540px);
  border-radius: 36px; background: var(--cor);
  border-bottom: 6px solid var(--fundo);
  overflow: hidden; isolation: isolate;
}
.painel::before, .painel::after { content: ""; position: absolute; border-radius: 50%; background: #fff; opacity: 0.75; z-index: -1; }
.painel::before { width: 14px; height: 14px; top: 11%; right: 14%; }
.painel::after { width: 10px; height: 10px; top: 26%; left: 10%; }
.painel-coral { --cor: var(--coral); --fundo: var(--coral-fundo); }
.painel-verde { --cor: var(--verde); --fundo: var(--verde-fundo); }
.painel-amarelo { --cor: var(--amarelo); --fundo: var(--amarelo-fundo); }
.painel-lilas { --cor: var(--lilas); --fundo: var(--lilas-fundo); }
.painel .celular { position: absolute; left: 50%; top: 13%; width: clamp(236px, 23vw, 280px); translate: -50% 0; }
.painel.dois .celular:first-of-type { left: 35%; }
.painel.dois .celular.atras { left: 69%; top: 19%; width: clamp(210px, 20vw, 248px); z-index: -1; rotate: 5deg; opacity: 0.98; }
.painel .pipo { position: absolute; width: 96px; height: 96px; right: 7%; bottom: 7%; z-index: 2; }

/* família */
.familia { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.ninho-ui { padding: clamp(20px, 3vw, 32px); background: var(--t-pessego); border-radius: 36px; border-bottom: 6px solid #f4c39c; display: grid; gap: 14px; }
.ninho-ui .cartao { padding: 16px 18px; }
.ninho-ui h3 { font-size: 17px; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.ninho-ui h3 .fig { width: 26px; height: 26px; }
.membro { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.membro + .membro { border-top: 2px solid var(--fill); }
.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 17px; flex: none; }
.membro div { flex: 1; min-width: 0; line-height: 1.3; }
.membro small, .historico small { display: block; color: var(--texto-3); font-size: 13.5px; font-weight: 700; }
.etiqueta { padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 900; background: var(--fill); color: var(--texto-2); }
.etiqueta.verde { background: var(--t-menta); color: #003f17; }
.historico { display: flex; gap: 12px; align-items: flex-start; line-height: 1.35; }
.historico .fig { width: 30px; height: 30px; }
.antes { text-decoration: line-through; text-decoration-thickness: 2px; color: var(--texto-3); }
.familia-texto > p { margin-top: 16px; font-size: clamp(17px, 1.5vw, 18.5px); color: var(--texto-2); }

/* privacidade */
.cuidado { background: var(--fill); border-radius: clamp(36px, 6vw, 64px); }
.cuidado-grade { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.cuidado .selo { width: 76px; height: 76px; border-radius: 24px; margin-bottom: 22px; }
.cuidado .selo .fig { width: 46px; height: 46px; }
.cuidado-texto > p { margin-top: 16px; font-size: clamp(17px, 1.5vw, 18.5px); color: var(--texto-2); }
.cuidado-texto .acoes { margin-top: 24px; gap: 8px 20px; }
.promessas { display: grid; gap: 14px; }
.promessa { display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px; }
.promessa .fig { width: 30px; height: 30px; margin-top: 2px; }
.promessa b { display: block; font-size: 18px; font-weight: 900; line-height: 1.3; }
.promessa p { margin-top: 4px; color: var(--texto-2); font-size: 15.5px; line-height: 1.5; }

/* perguntas */
.perguntas { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.pergunta { padding: 0; }
.pergunta summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; cursor: pointer; list-style: none;
  font-size: 18px; font-weight: 900; line-height: 1.35; border-radius: var(--raio);
}
.pergunta summary::-webkit-details-marker { display: none; }
.pergunta summary .mais { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--fill); color: var(--azul); transition: transform 0.3s var(--saida), background-color 0.2s; }
.pergunta summary .mais svg { width: 18px; height: 18px; }
.pergunta[open] summary .mais { transform: rotate(45deg); background: var(--azul-suave); }
@media (hover: hover) { .pergunta summary:hover .mais { background: var(--azul-suave); } }
.pergunta .resposta { padding: 0 20px 20px; color: var(--texto-2); font-size: 16.5px; }
.pergunta[open] .resposta { animation: abre 0.32s var(--saida); }
@keyframes abre { from { opacity: 0; transform: translateY(-6px); } }
.mais-respostas { text-align: center; margin-top: 28px; }
.resposta .link { display: inline; padding: 0; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; }
.nav-app { display: none; }

/* chamada final */
.chamada {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: clamp(20px, 4vw, 48px);
  padding: clamp(32px, 5vw, 56px) clamp(24px, 5vw, 64px);
  background: var(--azul); color: #fff;
  border-radius: 40px; border-bottom: 8px solid var(--azul-fundo);
}
.chamada::after { content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%; background: #fff; opacity: 0.35; top: 18%; right: 9%; }
.chamada .pipo { width: clamp(120px, 15vw, 168px); height: auto; aspect-ratio: 1; }
.chamada h2 { font-size: clamp(30px, 3.8vw, 46px); }
.chamada p { margin-top: 12px; font-size: clamp(17px, 1.5vw, 19px); color: rgb(255 255 255 / 88%); max-width: 48ch; }
.chamada .acoes { margin-top: 26px; }
.chamada .btn-branco { --tinta: var(--azul-fundo); --base: #043f7a; }
.btn-contorno { --cor: transparent; --tinta: #fff; --base: #043f7a; --linha: rgb(255 255 255 / 55%); }
@media (hover: hover) { .btn-contorno:hover { background: rgb(255 255 255 / 10%); filter: none; } }

/* rodapé */
.rodape { margin-top: clamp(72px, 9vw, 112px); padding: 56px 0 32px; border-top: 2px solid var(--borda); background: #fff; }
.rodape-grade { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 32px; }
.rodape .marca { color: var(--texto); }
.rodape-marca p { margin-top: 14px; max-width: 30ch; color: var(--texto-2); font-size: 15.5px; }
.rodape h4 { margin: 6px 0 14px; font-size: 14px; font-weight: 900; color: var(--texto); }
.rodape ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rodape ul a { color: var(--texto-2); text-decoration: none; font-size: 15.5px; font-weight: 700; overflow-wrap: anywhere; }
@media (hover: hover) { .rodape ul a:hover { color: var(--azul); text-decoration: underline; text-underline-offset: 3px; } }
.rodape-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; margin-top: 48px; padding-top: 22px; border-top: 2px solid var(--fill); color: var(--texto-3); font-size: 14px; font-weight: 700; }
.rodape-base a { color: inherit; }

/* ---------- Pipo: respira, pisca e acena (os mesmos movimentos do app) ---------- */
.pipo { overflow: visible; }
.pipo .corpo { transform-origin: 60px 106px; transform-box: view-box; animation: respira 3.6s ease-in-out infinite; }
.pipo .olhos { transform-origin: 60px 48px; transform-box: view-box; animation: pisca 5.2s linear infinite; }
.pipo .aceno { transform-origin: 96px 66px; transform-box: view-box; animation: acena 3.6s ease-in-out infinite; }
.pipo .asa-e, .pipo .asa-d { transform-box: view-box; }
.pipo .asa-e { transform-origin: 32px 62px; }
.pipo .asa-d { transform-origin: 88px 62px; --dir: -1; }
.revelar.visivel .pipo .asa-e, .revelar.visivel .pipo .asa-d { animation: bate 0.7s ease-in-out 0.5s 6 alternate; }
@keyframes respira { 50% { transform: scale(1.025, 0.975); } }
@keyframes pisca { 0%, 95%, 100% { transform: scaleY(1); } 97.5% { transform: scaleY(0.08); } }
@keyframes acena { 0%, 70%, 100% { transform: rotate(0); } 78%, 92% { transform: rotate(-16deg); } 85% { transform: rotate(6deg); } }
@keyframes bate { to { transform: rotate(calc(var(--dir, 1) * 12deg)); } }
@keyframes paira { 50% { transform: translateY(-8px); } }
.flutua { animation: paira 5s ease-in-out infinite; }
.f-remedio { animation-delay: -2.5s; }

/* ---------- entrada da abertura (sem depender de JavaScript) ---------- */
.entra { animation: entra 0.8s var(--saida) both; animation-delay: calc(var(--i, 0) * 90ms + 60ms); }
.vitrine.entra { animation-name: entra-vitrine; animation-duration: 1s; }
@keyframes entra { from { opacity: 0; transform: translateY(18px); } }
@keyframes entra-vitrine { from { opacity: 0; transform: translateY(36px) scale(0.97); } }

/* ---------- entrada ao rolar ---------- */
.revelar { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--saida), transform 0.7s var(--saida); transition-delay: calc(var(--i, 0) * 70ms); }
.revelar.visivel { opacity: 1; transform: none; }
.painel.revelar .celular { transform: translateY(60px); transition: transform 0.9s var(--saida) 0.1s; }
.painel.revelar .celular.atras { transition-delay: 0.22s; }
.painel.revelar.visivel .celular { transform: none; }
.painel.revelar { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .entra, .vitrine.entra { animation: none; }
  .revelar, .painel.revelar .celular { opacity: 1; transform: none; transition: none; }
  .pipo .corpo, .pipo .olhos, .pipo .aceno, .revelar.visivel .pipo .asa-e, .revelar.visivel .pipo .asa-d, .flutua, .pergunta[open] .resposta { animation: none; }
  .btn, .hamburguer { transition: none; }
}

/* ---------- telas menores ---------- */
@media (max-width: 1080px) {
  .f-aconteceu { left: -4%; }
  .f-remedio { right: -7%; }
}
@media (max-width: 920px) {
  :root { --topo: 64px; }
  .nav { display: none; }
  .hamburguer { display: inline-flex; }
  .topo-acoes { margin-left: auto; }
  .menu-aberto { overflow: hidden; }
  .menu-aberto .topo { background: #fff; border-bottom-color: var(--borda); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .menu-aberto .marca { color: var(--texto); }
  .menu-aberto .nav {
    display: flex; position: fixed; inset: var(--topo) 0 0; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    padding: 12px var(--gutter) 40px; background: #fff; overflow-y: auto;
    animation: desce 0.28s var(--saida);
  }
  .menu-aberto .nav .nav-app { display: block; margin-top: 20px; padding: 14px 20px; border: 0; border-radius: var(--raio-p); background: var(--azul); color: #fff; text-align: center; box-shadow: 0 4px 0 var(--azul-fundo); }
  .menu-aberto .nav a { padding: 16px 4px; border-radius: 0; border-bottom: 2px solid var(--fill); font-size: 21px; font-weight: 900; color: var(--texto); }
  @keyframes desce { from { opacity: 0; transform: translateY(-8px); } }

  .abertura .container { grid-template-columns: 1fr; }
  .abertura-texto { text-align: center; }
  .abertura .lead { margin-left: auto; margin-right: auto; }
  .acoes, .nota { justify-content: center; }
  .vitrine { min-height: 0; padding: 12px 0 8px; }
  .vitrine .celular { width: min(280px, 68vw); }
  .f-aconteceu { left: calc(50% - 250px); top: 7%; }
  .f-remedio { right: calc(50% - 270px); }
  .pipo-fala { left: calc(50% - 270px); }
  .recursos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cena, .familia, .cuidado-grade { grid-template-columns: 1fr; }
  .cena.inverte .cena-texto { order: 0; }
  .painel { height: clamp(400px, 92vw, 520px); }
  .painel .celular { width: clamp(220px, 52vw, 280px); }
  .painel.dois .celular.atras { width: clamp(196px, 46vw, 248px); }
  .rodape-grade { grid-template-columns: 1fr 1fr; }
  .rodape-marca { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .topo .btn-p { display: none; }
  .recursos { grid-template-columns: 1fr; }
  .recurso { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; padding: 18px; }
  .recurso .selo { margin-bottom: 0; grid-row: span 2; width: 52px; height: 52px; }
  .recurso h3 { font-size: 19px; align-self: end; }
  .recurso p { margin-top: 4px; }
  .acoes .btn { flex: 1 1 100%; }
  .f-aconteceu { left: 0; top: 4%; width: 206px; padding: 10px; font-size: 13px; }
  .f-aconteceu .cab { margin-bottom: 6px; font-size: 14px; }
  .f-remedio { right: 0; top: 46%; width: max-content; padding: 8px; font-size: 13px; gap: 8px; }
  .f-remedio .selo { width: 36px; height: 36px; border-radius: 12px; }
  .f-remedio .selo .fig { width: 24px; height: 24px; }
  .mini-sim { padding: 6px 9px; font-size: 12.5px; }
  .pipo-fala { bottom: 0; left: 0; }
  .pipo-fala .pipo { width: 82px; height: 82px; }
  .balao { max-width: 132px; font-size: 12.5px; padding: 8px 11px; }
  .pipo-fala .pipo { margin-left: 8px; }
  .painel { border-radius: 28px; }
  .painel.dois .celular:first-of-type { left: 40%; }
  .painel.dois .celular.atras { left: 70%; }
  .painel .pipo { width: 74px; height: 74px; right: 4%; bottom: 5%; }
  .chamada { grid-template-columns: 1fr; text-align: center; border-radius: 32px; }
  .chamada .pipo { margin: 0 auto; }
  .chamada p { margin-left: auto; margin-right: auto; }
  .chamada .acoes { justify-content: center; }
  .pergunta summary { font-size: 17px; padding: 16px; }
  .pergunta .resposta { padding: 0 16px 18px; }
  .rodape-grade { grid-template-columns: 1fr; gap: 24px; }
}
