:root {
  --azul: #0d4a80; --azul-escuro: #082f57; --azul-claro: #d9ecfb; --fundo: #f4f9fe;
  --amarelo: #ffc93c; --creme: #fff0c4; --texto: #1c2f45; --suave: #55687d; --borda: #cfe0f1; --prod: #0d4a80;
}
* { box-sizing: border-box; }
html { font-size: 100%; }
html.acessivel { font-size: 125%; }
body { margin: 0; background: linear-gradient(135deg, #e6f2fc, #fff7df); color: var(--texto); font: 1rem/1.5 Nunito, ui-rounded, "Segoe UI", system-ui, sans-serif; }
#app { max-width: 480px; margin: 0 auto; min-height: 100dvh; background: var(--fundo); display: flex; flex-direction: column; box-shadow: 0 0 40px rgb(8 47 87 / .12); }
h1, h2, h3 { color: var(--azul-escuro); line-height: 1.15; margin: .4rem 0; }
h1 { font-size: 1.75rem; font-weight: 800; } h2 { font-size: 1.15rem; } p { margin: .4rem 0; }
a { color: var(--azul); }
img { max-width: 100%; }
.i { width: 1.35em; height: 1.35em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.3em; flex: none; }
:focus-visible { outline: 3px solid #f29f05; outline-offset: 2px; }

.topo { background: var(--prod); color: #fff; display: grid; grid-template-columns: auto 1fr auto; gap: .7rem; align-items: center; padding: calc(.8rem + env(safe-area-inset-top)) .9rem 1rem; border-bottom: 5px solid var(--amarelo); }
.marca { display: flex; align-items: center; gap: .45rem; color: #fff; text-decoration: none; font-weight: 800; line-height: 1.1; font-size: .95rem; }
.marca img { border-radius: 50%; } .marca em { font-style: normal; color: #ffe08a; }
.produto-nome { border-left: 1px solid rgb(255 255 255 / .4); padding-left: .7rem; font-size: .85rem; line-height: 1.15; text-align: center; }
.produto-nome b { color: var(--amarelo); } .produto-nome strong { font-size: 1.05rem; }
.botao-menu { color: #fff; font-size: 1.3rem; padding: .3rem; }
main { flex: 1; padding: 1rem 1rem 6.5rem; }

.abas { position: fixed; bottom: 0; left: 50%; translate: -50% 0; width: 100%; max-width: 480px; display: grid; grid-template-columns: repeat(5, 1fr); background: #fff; border-top: 1px solid var(--borda); border-radius: 18px 18px 0 0; padding: .35rem .25rem calc(.35rem + env(safe-area-inset-bottom)); z-index: 5; }
.abas a { display: grid; justify-items: center; text-decoration: none; color: var(--suave); font-size: .72rem; padding: .3rem 0; border-radius: 14px; }
.abas a .i { width: 24px; height: 24px; }
.abas a.ativa { background: var(--azul-claro); color: var(--azul-escuro); font-weight: 800; }

.botao { display: flex; align-items: center; justify-content: center; gap: .5rem; width: 100%; min-height: 48px; margin: .5rem 0; padding: .6rem 1rem; border: 2px solid var(--azul); border-radius: 14px; background: var(--azul); color: #fff; font: inherit; font-weight: 800; text-align: center; text-decoration: none; cursor: pointer; }
.botao.grande { min-height: 56px; font-size: 1.08rem; }
.botao.contorno { background: #fff; color: var(--azul); border-width: 1.5px; }
.botao.contorno.marcado { background: #fff0f0; } .botao.marcado .i { fill: #d9485f; stroke: #d9485f; }
.botao.perigo { background: #fff; color: #a8261b; border-color: #a8261b; }
.botao:disabled { opacity: .65; cursor: default; }
.link { display: block; text-align: center; margin: .8rem 0; font-weight: 700; }
.link-botao { background: none; border: 0; color: var(--azul); font: inherit; text-decoration: underline; cursor: pointer; padding: .4rem; }
.voltar { display: inline-flex; align-items: center; gap: .2rem; text-decoration: none; font-weight: 700; }
.etiqueta { display: inline-block; background: var(--amarelo); color: var(--azul-escuro); font-weight: 800; font-size: .8rem; border-radius: 99px; padding: .3rem .8rem; }
.pilula { display: inline-flex; align-items: center; gap: .35rem; background: var(--azul-claro); color: var(--azul-escuro); border-radius: 99px; padding: .35rem .85rem; font-weight: 700; font-size: .88rem; margin: .2rem 0; }
.pilula.amarela { background: var(--creme); }
.nota { background: var(--creme); border-radius: 12px; padding: .7rem .8rem; font-size: .88rem; }
.mini { font-size: .8rem; color: var(--suave); }
.slogan { text-align: center; font-weight: 800; font-style: italic; color: var(--azul); }
.cartao { background: #fff; border: 1px solid var(--borda); border-radius: 18px; padding: .9rem 1rem; margin: .7rem 0; box-shadow: 0 3px 10px rgb(8 47 87 / .06); min-width: 0; }
.centro { text-align: center; } .grande-i { width: 52px; height: 52px; color: var(--azul); }

.boas-vindas, .acesso { padding: 1.2rem 1.3rem 2rem; background: #fff; text-align: center; }
.logo { width: min(290px, 85%); }
.boas-vindas h1 { font-size: 2.7rem; font-weight: 900; margin: .6rem 0; } .boas-vindas h1 span { display: block; color: #a66d00; background: var(--creme); border-radius: 40% 12% 40% 12%; }
.autora { font-size: .92rem; }
.foto-capa { display: block; width: 100%; border-radius: 22px; margin: .8rem 0; }
.tres { display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; padding: 0; font-size: .85rem; font-weight: 700; gap: .4rem; }
.tres i { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto .3rem; border-radius: 50%; background: var(--creme); font-size: 1.2rem; }
.rodape { font-size: .85rem; }
.acesso { flex: 1; } .acesso > .voltar { float: left; } .acesso .logo { display: block; margin: 2.5rem auto 1rem; }
.texto { text-align: left; padding-bottom: 2rem; background: #fff; }
.texto li { margin: .35rem 0; }

.formulario { text-align: left; } label { display: block; margin: .7rem 0; font-weight: 700; font-size: .92rem; }
input:not([type=checkbox], [type=radio]), select, textarea { display: block; width: 100%; margin-top: .25rem; padding: .65rem .7rem; font: inherit; font-weight: 400; border: 1.5px solid var(--borda); border-radius: 12px; background: #fff; color: var(--texto); min-height: 46px; }
input[type=color] { padding: .2rem; width: 90px; }
.marcar { display: flex; gap: .6rem; align-items: flex-start; font-weight: 500; }
input[type=checkbox] { width: 22px; height: 22px; flex: none; accent-color: var(--azul); }
fieldset { border: 1.5px solid var(--borda); border-radius: 14px; margin: .7rem 0; min-width: 0; } legend { font-weight: 800; padding: 0 .4rem; overflow-wrap: anywhere; }
.sensacoes { display: flex; gap: .4rem; } .sensacoes label { margin: 0; } .sensacoes input { position: absolute; opacity: 0; }
.sensacoes span { display: block; font-size: 1.8rem; padding: .25rem .5rem; border-radius: 12px; border: 2px solid transparent; cursor: pointer; }
.sensacoes input:checked + span { border-color: var(--azul); background: var(--azul-claro); } .sensacoes input:focus-visible + span { outline: 3px solid #f29f05; }
.linha { display: flex; gap: .5rem; align-items: center; } .linha .botao { width: auto; margin: 0; } .linha label { flex: 1; }
.filtros { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; } .filtros input, .filtros button { grid-column: 1 / -1; }

.saudacao { position: relative; padding-right: 3.5rem; } .saudacao h1 { font-size: 2.1rem; overflow-wrap: anywhere; } .sol { position: absolute; right: 0; top: 0; font-size: 3rem; }
.jornada { display: flex; gap: .8rem; align-items: center; } .jornada .emoji { font-size: 2rem; } .jornada div { flex: 1; }
.jornada p { display: flex; justify-content: space-between; margin: 0 0 .3rem; }
progress { width: 100%; height: 12px; border: 0; border-radius: 99px; overflow: hidden; background: #dbe5ef; appearance: none; }
progress::-webkit-progress-bar { background: #dbe5ef; } progress::-webkit-progress-value { background: var(--amarelo); } progress::-moz-progress-bar { background: var(--amarelo); }
.missao { position: relative; background: linear-gradient(135deg, #ffeab0, #fff4d2); border-radius: 22px; padding: 1rem; margin: .8rem 0; overflow: hidden; }
.missao img { position: absolute; right: 0; top: .6rem; width: 38%; mask-image: radial-gradient(ellipse at center, #000 55%, transparent 74%); }
.missao img.oculta { display: none; }
.missao h2 { font-size: 1.5rem; margin-top: .7rem; max-width: 100%; } .missao img:not(.oculta) ~ h2, .missao img:not(.oculta) ~ p { max-width: 64%; }
.missao p { font-size: .92rem; }
.atalhos { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.atalhos a { display: grid; justify-items: center; gap: .25rem; background: #fff; border: 1px solid var(--borda); border-radius: 18px; padding: .8rem .3rem; text-decoration: none; font-weight: 800; font-size: .82rem; color: var(--azul-escuro); text-align: center; box-shadow: 0 3px 8px rgb(8 47 87 / .07); }
.atalhos span { font-size: 1.9rem; }

.item { display: flex; gap: .8rem; align-items: center; background: #fff; border: 1px solid var(--borda); border-radius: 16px; padding: .7rem; margin: .5rem 0; text-decoration: none; color: var(--texto); }
.item span, .item.admin > a { display: grid; flex: 1; min-width: 0; text-decoration: none; color: inherit; overflow-wrap: anywhere; } .item small { color: var(--suave); }
.selo { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--azul-claro); }
.selo.feito { background: #1f7a4d; color: #fff; }
.grade { display: grid; grid-template-columns: repeat(5, 1fr); gap: .45rem; margin: .8rem 0; }
.grade a { display: grid; place-content: center; justify-items: center; aspect-ratio: 1; background: #fff; border: 1.5px solid var(--borda); border-radius: 14px; text-decoration: none; color: var(--azul-escuro); font-size: 1.1rem; }
.grade small { font-size: .68rem; min-height: 1em; }
.grade a.atual { background: var(--creme); border: 3px solid var(--amarelo); } .grade a.feito { background: var(--azul); border-color: var(--azul); color: #fff; }
.pilar { display: grid; grid-template-columns: 8.5rem 1fr 2.6rem; gap: .5rem; align-items: center; margin: .35rem 0; font-size: .88rem; }

.faixa-voltar { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.cabecalho { margin: .7rem 0; } .cabecalho .pilula { margin-right: .3rem; }
.cabecalho.com-foto { display: grid; grid-template-columns: 1.1fr 1fr; gap: .8rem; align-items: center; }
.cabecalho img { border-radius: 18px; width: 100%; }
.ficha { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; margin: .6rem 0; text-align: center; }
.ficha div { background: #fff; border: 1px solid var(--borda); border-radius: 12px; padding: .4rem; } .ficha dt { font-size: .72rem; color: var(--suave); } .ficha dd { margin: 0; font-weight: 800; font-size: .82rem; }
.bloco { background: #fff; border: 1.5px solid var(--borda); border-radius: 16px; overflow: hidden; margin: .7rem 0; }
.bloco h2 { background: var(--azul-claro); margin: 0; padding: .55rem .9rem; } .bloco > div { padding: .35rem .9rem .6rem; }
.bloco ol { padding-left: 1.2rem; margin: .3rem 0; }
.bloco.amarelo { background: #fff8e2; border-color: var(--creme); } .bloco.amarelo h2 { background: var(--creme); }
blockquote { margin: .6rem 0; background: var(--creme); border-radius: 12px; padding: .6rem .8rem; font-style: italic; font-weight: 700; color: var(--azul); }
.duplo { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; } .duplo .botao { font-size: .85rem; }

.rotina { list-style: none; padding: 0; } .rotina li { display: flex; align-items: center; background: #fff; border: 1px solid var(--borda); border-radius: 14px; padding: 0 .7rem; margin: .4rem 0; }
.rotina label { flex: 1; display: flex; gap: .7rem; align-items: center; min-width: 0; } .rotina input:checked + span { text-decoration: line-through; color: var(--suave); }
.rotina button { background: none; border: 0; color: var(--suave); cursor: pointer; min-width: 36px; min-height: 36px; }
.memoria img { border-radius: 12px; width: 100%; max-height: 300px; object-fit: cover; } .memoria p { white-space: pre-wrap; overflow-wrap: anywhere; }
.produto { border-top: 7px solid var(--azul); }
.abas-admin { display: flex; flex-wrap: wrap; gap: .3rem; margin: .6rem 0; } .abas-admin a { padding: .4rem .75rem; border-radius: 99px; border: 1.5px solid var(--azul); text-decoration: none; font-weight: 700; font-size: .85rem; } .abas-admin a.ativa { background: var(--azul); color: #fff; }

.folha { background: #fff; border: 1px solid var(--borda); border-radius: 12px; padding: 1rem; margin: .8rem 0; overflow-x: auto; }
.folha table { width: 100%; border-collapse: collapse; font-size: .78rem; } .folha th, .folha td { border: 1px solid #789; padding: .35rem; height: 2.2rem; }
.cal-papel { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; } .cal-papel div { border: 1px solid #789; border-radius: 6px; padding: 3px; font-size: .62rem; display: flex; flex-direction: column; min-height: 72px; overflow-wrap: anywhere; } .cal-papel i { margin: auto 0 0 auto; width: 14px; height: 14px; border: 1px solid #789; border-radius: 50%; }
.certificado { text-align: center; border: 8px double var(--azul); } .certificado img { width: 220px; } .certificado h3 { font-size: 1.6rem; } .assinatura { margin-top: 2.5rem; border-top: 1px solid #789; display: inline-block; padding: .3rem 2rem 0; }

#toast { position: fixed; left: 50%; bottom: 6rem; translate: -50% 1rem; width: max-content; max-width: min(90vw, 420px); background: var(--azul-escuro); color: #fff; padding: .7rem 1rem; border-radius: 12px; opacity: 0; pointer-events: none; transition: .25s; z-index: 10; text-align: center; }
#toast.on { opacity: 1; translate: -50% 0; }
@media (max-width: 370px) { .produto-nome { display: none; } .topo { grid-template-columns: 1fr auto; } .cabecalho.com-foto { grid-template-columns: 1fr; } }
html.acessivel .abas span { font-size: .68rem; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ── Férias na Casa da Vovó: leitura ampliada, alto contraste e botões grandes ── */
html.acessivel.tam-1 { font-size: 112.5%; } html.acessivel.tam-2 { font-size: 125%; } html.acessivel.tam-3 { font-size: 150%; }
html.contraste { --azul: #003a6b; --azul-escuro: #001a33; --texto: #000; --suave: #1d1d1d; --borda: #33516e; --fundo: #fff; }
html.contraste body { background: #fff; }
html.contraste .topo { background: #001a33; }
html.contraste .item, html.contraste .cartao, html.contraste .grandes a, html.contraste .dias a { border-width: 2px; }
html.vovo .botao, html.vovo .item { min-height: 56px; }
html.vovo .produto-nome { font-size: .75rem; } html.vovo .produto-nome strong { font-size: .85rem; }
@media (max-width: 480px) { html.vovo.tam-3 .produto-nome { display: none; } html.vovo.tam-3 .topo { grid-template-columns: 1fr auto; } }
html.vovo .mini, html.vovo small { font-size: .85rem; }
html.vovo .link-botao, html.vovo summary { min-height: 48px; }
summary { cursor: pointer; font-weight: 800; color: var(--azul); display: flex; align-items: center; gap: .4rem; }
summary::before { content: '▸'; } details[open] > summary::before { content: '▾'; }
html.vovo .marcar input { width: 28px; height: 28px; }
.leitura { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; justify-content: flex-end; margin-bottom: .6rem; font-weight: 800; }
.leitura button, .chips button { min-height: 46px; min-width: 46px; padding: .3rem .8rem; border: 2px solid var(--azul); border-radius: 12px; background: #fff; color: var(--azul); font: inherit; font-weight: 800; cursor: pointer; }
.leitura button[aria-pressed=true], .chips button[aria-pressed=true] { background: var(--azul); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: .6rem 0; } .chips button { border-radius: 99px; }
.capa-vovo { text-align: center; } .capa-vovo img { width: 100%; border-radius: 22px; }
.capa-vovo h1 { font-size: 1.9rem; } .capa-vovo h1 span { display: block; color: var(--azul); background: var(--creme); border-radius: 40% 12% 40% 12%; }
.pergunta { font-size: 1.35rem; text-align: center; }
.grandes { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.2rem, 1fr)); gap: .6rem; margin-top: .6rem; }
.grandes a { display: grid; align-content: start; justify-items: center; gap: .3rem; min-height: 7rem; padding: .8rem .4rem; background: #fff; border: 1.5px solid var(--borda); border-radius: 18px; text-align: center; text-decoration: none; color: var(--azul-escuro); line-height: 1.2; overflow-wrap: anywhere; box-shadow: 0 3px 8px rgb(8 47 87 / .07); }
.grandes span { font-size: 2.2rem; }
.item img { width: 68px; height: 68px; object-fit: cover; border-radius: 12px; flex: none; }
.dias { display: grid; gap: .5rem; margin: .8rem 0; }
.dias a { display: flex; gap: .8rem; align-items: center; background: #fff; border: 1.5px solid var(--borda); border-radius: 16px; padding: .6rem; text-decoration: none; color: var(--texto); }
.dias b { display: grid; place-items: center; width: 2.8rem; height: 2.8rem; flex: none; border-radius: 50%; background: var(--azul-claro); font-size: 1.15rem; }
.dias span { display: grid; min-width: 0; overflow-wrap: anywhere; } .dias small { color: var(--suave); }
.dias a.atual { background: var(--creme); border: 3px solid var(--amarelo); } .dias a.feito b { background: #1f7a4d; color: #fff; }
.foto-ativ { display: block; width: 100%; max-height: 260px; object-fit: cover; border-radius: 18px; margin: .6rem 0; }
.idades { margin: .3rem 0; } .idades div { padding: .35rem .5rem; border-radius: 10px; } .idades dt { font-weight: 800; color: var(--azul); } .idades dd { margin: 0; } .idades .meu { background: var(--creme); }
.marcas { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: 0 .5rem; }
.conquistas { list-style: none; padding: 0; } .conquistas li { padding: .25rem 0; color: var(--suave); } .conquistas li.feita { color: var(--texto); font-weight: 800; }
html.vovo .rotina label { min-height: 56px; }
.tema { font-weight: 800; color: var(--azul); margin: .9rem 0 -.2rem; }
html.vovo .ficha, html.vovo .duplo { grid-template-columns: repeat(auto-fit, minmax(6.5rem, 1fr)); }
html.vovo .pilar { grid-template-columns: minmax(0, 1fr) minmax(3rem, 1fr) auto; }
html.vovo .filtros { grid-template-columns: 1fr; }
.contato { margin: 1.4rem 0 .4rem; padding: 1rem; background: #fff; border: 2px solid #12703c; border-radius: 18px; text-align: center; }
.botao.whatsapp { background: #12703c; border-color: #12703c; color: #fff; min-height: 56px; }
.botao.instagram { background: #a3246b; border-color: #a3246b; color: #fff; min-height: 56px; }
@media print {
  .contato { display: none; }
  body { background: #fff; } #app { box-shadow: none; max-width: none; background: #fff; }
  .topo, .abas, .nao-imprimir, #toast { display: none !important; } main { padding: 0; }
  main:not(.imprimivel) { display: none; }
  .folha { border-radius: 0; break-after: page; overflow: visible; } .folha:last-child { break-after: auto; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Kit 45 dias */
button.item { width: 100%; font: inherit; text-align: left; cursor: pointer; }
.bloco .idades { margin: .3rem 0; } .bloco .idades div { display: flex; gap: .6rem; padding: .2rem 0; } .bloco .idades dt { flex: none; width: 6.5rem; font-weight: 800; } .bloco .idades dd { margin: 0; }
