/* App, estilos parte 3 de 8: onboarding em quiz, Entrar, abertura do app, abertura da aula, treino contínuo, conquista, cartões de tom, resumo, revisão. Mapa em css/app/01-base.css. */
/* ---------- onboarding em quiz ---------- */
.quiz { min-height: calc(100dvh - 32px); display: grid; grid-template-rows: auto 1fr auto; gap: 16px; padding-block: 8px 24px; animation: q-in .24s ease-out both; }
.quiz.back { animation-name: q-back; }
@keyframes q-in { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@keyframes q-back { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }
.q-top { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; }
.q-back { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--ink-2); }
.q-bar { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; }
.q-bar i { display: block; height: 100%; background: var(--green); border-radius: 99px; transition: width .4s ease; }
.q-body { display: grid; gap: 16px; align-content: start; }
.q-foot { display: grid; gap: 8px; }
.q-foot .textlink { justify-self: center; }
/* passo 5 (plano): a lista das 7 aulas e os cartões empurravam o "Salvar meu plano" 2 telas para baixo no celular; o rodapé fica preso embaixo (portão 05-28, achado alto) */
#modo-msg:empty { display: none; }
.quiz:has(#q-plan) .q-foot { position: sticky; bottom: 0; z-index: 4; background: var(--bg); margin-inline: -16px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
.q-hero .portrait { border-radius: 24px; overflow: hidden; background: #F3F2EE; height: 240px; }
.portrait picture { display: block; height: 100%; } /* retrato.webp com o jpg de reserva (Safari antigo) */
.q-hero .portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 12%; display: block; } /* cabeça inteira (revisor de jornada, portão 21-28) */
.q-ia { text-align: center; }
.q-mentor .bubble p { min-height: 1.5em; }
.q-fala.in { animation: q-fade .3s ease-out both; }
@keyframes q-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
/* "digitando" do Seu José no quiz (só dentro do balão: antes vazava para os pontinhos dos cartões das aulas e eles ficavam pulando) */
.q-mentor .dots { display: inline-flex; gap: 4px; align-items: center; height: 1.4em; }
.q-mentor .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); animation: q-dot 1s infinite ease-in-out; }
.q-mentor .dots i:nth-child(2) { animation-delay: .15s; } .q-mentor .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes q-dot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.q-opts { display: grid; gap: 10px; }
.q-opt { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1.5px solid var(--line); font-weight: 700; font-size: 16px; text-align: left; transition: border-color .15s, background .15s, transform .15s; }
.q-opt[aria-pressed="true"] { border-color: var(--green); background: var(--green-tint); color: var(--green); }
.q-opt .box { width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--line); display: grid; place-items: center; flex: none; }
.q-opt .box .ico { width: 14px; height: 14px; opacity: 0; }
.q-opt[aria-pressed="true"] .box { background: var(--green); border-color: var(--green); }
.q-opt[aria-pressed="true"] .box .ico { opacity: 1; stroke: #fff; }
.q-opt.pop { animation: q-pop .22s ease-out; }
@keyframes q-pop { 50% { transform: scale(.97); } }
.q-dica { background: var(--brass-tint); border-color: transparent; box-shadow: none; }
.q-load { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 14px; }
.q-load li { display: flex; gap: 12px; align-items: center; font-weight: 700; color: var(--ink-3); transition: color .3s; }
.q-load .ck { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; transition: background .3s, border-color .3s; }
.q-load .ck .ico { width: 16px; height: 16px; opacity: 0; stroke: #fff; transition: opacity .3s; }
.q-load li.on { color: var(--ink); }
.q-load li.on .ck { background: var(--green); border-color: var(--green); }
.q-load li.on .ck .ico { opacity: 1; }
.q-plan { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px; display: grid; gap: 10px; box-shadow: var(--shadow); }
.q-fim { font-size: 34px; font-weight: 800; color: var(--green); line-height: 1.1; animation: q-sobe .5s .3s ease-out both; } /* só movimento: a data tem contraste cheio desde o primeiro quadro */
@keyframes q-sobe { from { transform: translateY(6px); } to { transform: none; } }
.q-aulas { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.q-aulas li { display: grid; grid-template-columns: 32px 1fr; gap: 10px; align-items: center; animation: q-fade .3s ease-out both; animation-delay: calc(var(--i) * 70ms); }
.q-aulas .n { width: 32px; height: 32px; border-radius: 10px; background: var(--green-tint); color: var(--green); display: grid; place-items: center; font-weight: 800; }
.q-aulas li.meu .n { background: var(--brass); color: #fff; }
.q-aulas b { display: block; font-size: 15px; }
.q-aulas small { color: var(--ink-3); font-size: 13px; }
.q-aulas em { color: var(--brass); font-style: normal; font-weight: 700; }
.q-vs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.q-vs > div { border-radius: 16px; padding: 14px; display: grid; gap: 4px; }
.q-vs .sem { background: var(--red-tint); }
.q-vs .com { background: var(--green-tint); }
.q-vs p { margin: 0; font-size: 13px; line-height: 1.45; }
.q-vs b { font-size: 15px; }
.q-vs ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; font-size: 13.5px; line-height: 1.35; }
.q-vs li { display: grid; grid-template-columns: 16px 1fr; gap: 6px; }
.q-vs .sem li::before { content: "✕"; color: var(--red); font-weight: 800; }
.q-vs .com li::before { content: "✓"; color: var(--ok); font-weight: 800; }
@media (prefers-reduced-motion: reduce) { .quiz, .q-fala.in, .q-fim, .q-aulas li, .q-mentor .dots i, .q-opt.pop { animation: none !important; } }
.q-lock { display: inline-flex; vertical-align: -2px; color: var(--ink-3); } .q-lock .ico { width: 14px; height: 14px; }

.ela-alerta { background: var(--red-tint); border-radius: 12px; padding: 12px 16px; display: grid; gap: 8px; }
.ela-alerta-t { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--red); font-size: 15px; }
.ela-alerta-t svg { width: 18px; height: 18px; flex: none; }
.ela-alerta ul { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: 15px; line-height: 1.4; color: var(--ink); }
.pose.foto img { object-fit: cover; object-position: center 20%; height: auto; aspect-ratio: 4 / 5; max-height: 60vh; } /* foto 3:4: a moldura de 260 px cortava o rosto do Seu José (fundador, 18/10) */
.pose.foto img[src*="a3-pausa-v2"] { height: auto; aspect-ratio: 1 / 1.05; } /* cartão mais alto: rosto do Seu José e bebê inteiro (visual 16-31) */
.pose.foto img[src*="a3-colo-lado-v3"] { height: auto; aspect-ratio: 1 / 1.05; } /* cartão mais alto: bebê inteiro sem cortar o rosto do Seu José no nariz a 320 (visual v79) */
/* quiz B v2.3: toque no Seu José, presente, reação, montando, aceite LGPD, indicação */
.bubble .who { justify-self: start; }
[data-sobre] { cursor: pointer; }
.q-gift { display: flex; gap: 12px; align-items: center; width: 100%; min-height: 56px; border: 1.5px solid var(--green); border-radius: 16px; padding: 10px 14px; color: var(--green); background: var(--surface); }
.q-gift .gi, .q-share .si { width: 40px; height: 40px; border-radius: 50%; background: var(--green-tint); display: grid; place-items: center; flex: none; }
.q-gift b, .q-share b { display: block; font-size: 16px; color: var(--ink); }
.q-gift small, .q-share small { color: var(--ink-3); font-size: 13px; }
.q-mont { margin: auto 0; background: var(--brass-tint); border-radius: 24px; padding: 24px 18px; display: grid; gap: 12px; justify-items: center; text-align: center; }
.q-mont .mav { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--surface); }
.q-mont .mt { font-family: var(--voice); font-size: 20px; font-weight: 600; color: var(--green); }
.q-mont .mbar { width: 100%; height: 6px; background: var(--surface); border-radius: 99px; overflow: hidden; }
.q-mont .mbar i { display: block; width: 0; height: 100%; background: var(--green); transition: width 5.2s ease-out; }
.q-mont .mstep { width: 100%; display: flex; gap: 10px; align-items: center; background: var(--surface); border-radius: 14px; padding: 12px 14px; font-weight: 700; text-align: left; color: var(--ink-3); transition: color .3s; }
.q-mont .mc { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--green-tint); border-top-color: var(--green); display: grid; place-items: center; flex: none; animation: q-spin .8s linear infinite; }
.q-mont .mc .ico { width: 15px; height: 15px; stroke: #fff; stroke-width: 3; opacity: 0; }
.q-mont .mstep.on { color: var(--ink); }
.q-mont .mstep.on .mc { background: var(--green); border-color: var(--green); animation: none; }
.q-mont .mstep.on .mc .ico { opacity: 1; }
@keyframes q-spin { to { transform: rotate(360deg); } }
.q-marca { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: var(--bg); animation: q-marca .65s ease-out both; pointer-events: none; }
.q-marca img { border-radius: 22px; animation: q-pulo .65s ease-out both; }
@keyframes q-marca { 0% { opacity: 0; } 20%, 75% { opacity: 1; } 100% { opacity: 0; } }
@keyframes q-pulo { 0% { transform: scale(.6); } 45% { transform: scale(1.08); } 60%, 100% { transform: scale(1); } }
.q-lbl { font-size: 14px; font-weight: 800; margin: 6px 0 0; }
.q-aulas li { grid-template-columns: 32px 1fr auto; }
.q-aulas li em { font-size: 11px; font-weight: 800; color: var(--brass); background: var(--brass-tint); border-radius: 99px; padding: 3px 9px; white-space: nowrap; }
.q-plan.quieto .q-fim, .q-plan.quieto .q-aulas li { animation: none; }
.q-aceite { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.q-aceite .box { width: 24px; height: 24px; border-radius: 7px; border: 2px solid var(--ink-3); display: grid; place-items: center; }
.q-aceite .box .ico { width: 15px; height: 15px; stroke: #fff; stroke-width: 3; opacity: 0; }
.q-aceite[aria-pressed="true"] .box { background: var(--green); border-color: var(--green); }
.q-aceite[aria-pressed="true"] .box .ico { opacity: 1; }
.q-aceite a { color: var(--green); font-weight: 700; }
.q-share { display: flex; gap: 12px; align-items: center; min-height: 60px; border: 1.5px solid var(--green); border-radius: 16px; padding: 10px 14px; text-decoration: none; color: var(--green); background: var(--surface); }
.q-msg { background: var(--brass-tint); border-radius: 14px; padding: 12px 14px; }
.q-msg small { color: var(--ink-3); font-size: 12.5px; }
.q-msg p { margin: 4px 0 0; font-size: 14px; overflow-wrap: anywhere; }
.aviso { display: grid; gap: 4px; }
.aviso p { margin: 0; }
.aviso .textlink { justify-self: start; }
@media (prefers-reduced-motion: reduce) { .q-marca, .q-marca img, .q-mont .mc { animation: none !important; } .q-mont .mbar i { transition: none; } }
.q-opts.chipwrap { display: flex; flex-wrap: wrap; gap: 8px; }
.q-opts.chipwrap .q-opt { min-height: 44px; padding: 9px 15px; border-radius: 999px; font-size: 15px; }
.q-opts.chipwrap .q-opt[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: var(--green-ink); }
/* Entrar: ajudas recolhidas, para a tela respirar no celular */
.q-logo { display: flex; justify-content: center; }
.q-logo .logo { font-size: 15px; gap: 8px; }
.garantia-d > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; font-weight: 800; }
.garantia-d > summary::-webkit-details-marker { display: none; }
.garantia-d > summary .ico:last-child { margin-left: auto; color: var(--ink-3); transition: transform .2s; }
.garantia-d[open] > summary .ico:last-child { transform: rotate(90deg); }
.q-msg small .ico { width: 14px; height: 14px; vertical-align: -2px; }
.r-ajuda > summary { list-style: none; } .r-ajuda > summary::-webkit-details-marker { display: none; }
.r-ajuda summary { cursor: pointer; font-size: 14px; font-weight: 700; color: var(--green); }
.r-ajuda .note { margin-top: 6px; }
#r-err:empty, #q-err:empty, #g-err:empty, #ofe-err:empty { display: none; }
/* capa do quiz: o botão vem logo depois do texto, sem vão no celular */
.quiz.capa { min-height: 0; grid-template-rows: auto auto auto; align-content: start; }
/* abertura do app (1 vez por sessão) */
.abertura { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; align-content: center; gap: 12px; padding: 24px; text-align: center; background: var(--green); color: #fff; animation: ab-sai .5s ease-in 3.05s forwards; }
.abertura img { border-radius: 24px; box-shadow: 0 10px 30px rgba(0,0,0,.25); animation: q-pulo .7s ease-out both; }
.abertura b { font-size: 22px; font-weight: 800; opacity: 0; animation: q-fade .4s .35s ease-out forwards; }
.abertura .ab-frase { margin: 10px 0 0; display: grid; gap: 6px; max-width: 22ch; line-height: 1.25; }
.abertura .ab-frase span { font-size: 18px; font-weight: 600; color: rgba(255,255,255,.78); opacity: 0; animation: q-fade .45s .6s ease-out forwards; }
.abertura .ab-frase strong { font-size: 24px; font-weight: 800; color: #E9D49A; opacity: 0; animation: q-fade .45s 1.3s ease-out forwards; }
@keyframes ab-sai { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .abertura { display: none; } }
.quiz.capa .q-mentor { grid-template-columns: 1fr; }
.bencao { font-family: "Lora", serif; font-style: italic; color: var(--green); margin: 4px 0 0; }

/* toque duplo não dá zoom (iPhone); os botões respondem na hora */
html, body, button, a, .deck, .opt { touch-action: manipulation; }
/* data no iPhone: o campo nativo ignorava a largura e saía da tela */
input[type="date"] { -webkit-appearance: none; appearance: none; display: block; width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; text-align: left; }
input[type="date"]::-webkit-date-and-time-value { text-align: left; }
.abertura { cursor: pointer; }
.garantia { display: grid; grid-template-columns: 20px 1fr; gap: 8px; align-items: start; margin: 4px 0 0; font-size: 14px; font-weight: 700; color: var(--green); }
.garantia .ico { width: 20px; height: 20px; }
#garantia details > * + * { margin-top: 12px; }
/* abertura da aula: "Nesta aula" com ícones */
.nesta { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.nesta li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: start; font-size: 15px; line-height: 1.4; }
.nesta li .ico { width: 20px; height: 20px; color: var(--green); margin-top: 1px; }
.cap .ico { width: 14px; height: 14px; vertical-align: -2px; }
/* treino contínuo */
.rounds { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.round { display: grid; grid-template-columns: 28px 1fr; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 14px; border: 1.5px solid var(--line); font-size: 13.5px; font-weight: 700; color: var(--ink-2); background: var(--surface); }
.round b { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--line); color: var(--ink-2); }
.round.now { border-color: var(--green); color: var(--ink); }
.round.now b { background: var(--green); color: #fff; }
.round.done b { background: var(--ok); color: #fff; }
.tr-bar { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; margin-top: 12px; }
.tr-bar i { display: block; height: 100%; width: 0; background: var(--green); }
.tr-ctl { display: grid; gap: 8px; }
.tr-row { display: flex; gap: 8px; }
.tr-row .btn { flex: 1 1 0; }
.tr-row .btn[hidden] { display: none; }
.tr-row .btn:disabled { opacity: .45; }
.tr-row, #tr-go { scroll-margin-bottom: 104px; } /* acima da barra fixa de baixo */
.tr-row { margin-bottom: 96px; } /* espaço para rolar os controles acima da barra fixa */
.tr-row .btn { min-height: 48px; padding: 8px; font-size: 14px; }
/* conquista */
.festa { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; z-index: 5; }
.festa i { position: absolute; width: 8px; height: 8px; margin: -4px; border-radius: 50%; background: var(--brass, #C98B4E); animation: festa .8s ease-out forwards; }
.festa i:nth-child(3n) { background: var(--green); }
@keyframes festa { from { transform: rotate(var(--a)) translateY(0); opacity: 1; } to { transform: rotate(var(--a)) translateY(calc(var(--d) * -1)); opacity: 0; } }
/* cards em 3 tons (perigo / normal / 192) */
.dcard.tons { display: grid; gap: 12px; }
.tom { border-radius: 14px; padding: 12px 14px; display: grid; gap: 8px; }
.tom.red { background: var(--red-tint); } .tom.green { background: var(--ok-tint); } .tom.amber { background: var(--brass-tint, #F5ECDD); }
.tom-h { display: flex; gap: 6px; align-items: center; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.tom.red .tom-h { color: var(--red); } .tom.green .tom-h { color: var(--ok); } .tom.amber .tom-h { color: var(--brass, #94651F); }
.tom-h .ico { width: 16px; height: 16px; }
.tom-i { display: grid; gap: 2px; font-size: 15px; line-height: 1.35; }
.tom-i span { font-size: 14px; color: var(--ink-2); }
/* resumo (mapa mental) */
.resumo .mapa { display: grid; gap: 12px; }
.mapa-c { background: var(--green); color: #fff; font-weight: 800; border-radius: 14px; padding: 12px 14px; text-align: center; }
.mapa ol { list-style: none; counter-reset: m; margin: 0; padding: 0 0 0 14px; border-left: 3px solid var(--green-tint); display: grid; gap: 10px; }
.mapa li { counter-increment: m; display: grid; grid-template-columns: 28px 1fr; gap: 8px; align-items: start; font-size: 15px; line-height: 1.35; }
.mapa li::before { content: counter(m); width: 26px; height: 26px; border-radius: 50%; background: var(--brass, #C98B4E); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 13px; }
/* revisão */
.revisao .rv { display: grid; gap: 8px; padding-top: 4px; }
.revisao .rv + .rv { border-top: 1px solid var(--line); padding-top: 12px; }
.revisao .rv p { margin: 0; }

.mentor:not(:has(.av)) { grid-template-columns: 1fr; }
.fig.fig-n { display: grid; place-items: center; min-height: 160px; background: var(--green); border-radius: 16px; }
.fig.fig-n b { font-size: 88px; font-weight: 900; color: #C98B4E; line-height: 1; }
.deck .dcard { align-self: start; }
.q-logo .logo img { width: 32px; height: 32px; border-radius: 8px; }
.q-msg small:last-child { display: block; margin-top: 4px; }
.rules1 { font-size: 14px; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.order .pos:empty::before { content: ""; display: inline-block; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); vertical-align: -3px; }
.section-h .gh { display: flex; align-items: center; gap: 8px; }
.section-h .gh .ico { width: 20px; height: 20px; color: var(--green); }

