/* App, estilos parte 8 de 8: novo Aprende (17/10), balão do Seu José, normal ou perigo, prova, fim da aula, cartão da aula e o que veio depois. Mapa em css/app/01-base.css. */
/* ---------- novo Aprende (fundador, 17/10; protótipo em produto/prototipo/aprende-aula3.html) ---------- */
:root { --pinho: #173F31; --creme: #F7F1E3; --latao-claro: #E2BD7B; }
.ap-h { display: flex; align-items: center; gap: 12px; }
.ap-n { width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--pinho); color: var(--creme); display: grid; place-items: center; font-weight: 800; font-size: 18px; }
.ap-h h2 { font-size: 20px; }
.ap-sit-w { display: grid; gap: 8px; }
.ap-sit { background: var(--pinho); color: var(--creme); border-radius: 20px; padding: 20px; display: grid; gap: 8px; }
.ap-sit .over { color: var(--latao-claro); }
.ap-sit p { font-size: 18px; line-height: 1.4; font-weight: 700; }
.ap-opts { display: grid; gap: 8px; }
.ap-opt { text-align: left; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 16px; padding: 14px 16px; font: inherit; font-size: 16px; line-height: 1.4; font-weight: 600; min-height: 56px; transition: border-color .2s, background .2s, opacity .3s; }
.ap-opt.ok { border-color: var(--ok); background: var(--ok-tint); }
.ap-opt.no { border-color: var(--red); background: var(--red-tint); color: var(--ink); } /* contraste cheio; o erro se vê pelo ✕ e pela cor (portão 17/10) */
.ap-opt.no::before { content: "✕ "; color: var(--red); font-weight: 800; }
.ap-opt.off { color: var(--ink-2); background: transparent; border-style: dashed; pointer-events: none; }
.ap-opt.shake { animation: shake .35s; }
.ap-fig .pose img { height: 220px; object-fit: cover; }
.ap-build { display: grid; gap: 8px; }
.ap-it { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; font-size: 15px; line-height: 1.5; animation: ap-pop .45s cubic-bezier(.2,.9,.3,1.25) both; }
.ap-it > .n { width: 28px; height: 28px; border-radius: 50%; background: var(--green-tint); color: var(--green); font-weight: 800; font-size: 14px; display: grid; place-items: center; }
.ap-it.forte { border-color: var(--green); background: var(--green-tint); }
@keyframes ap-pop { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
.ap-revela { animation: ap-pop .45s ease-out both; }
.ap-mais { border: 0; background: var(--green-tint); color: var(--green); font: inherit; font-weight: 800; border-radius: 16px; min-height: 52px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; cursor: pointer; }
.ap-mais-n { font-size: 13px; font-weight: 700; opacity: .75; }
.ap-mais .ico { width: 18px; height: 18px; }
.ap-nota { background: var(--brass-tint); border-radius: 14px; padding: 12px 14px; font-size: 14px; line-height: 1.45; }
.ap-al { display: grid; grid-template-columns: 20px 1fr; gap: 8px; background: var(--red-tint); border-radius: 12px; padding: 10px 12px; font-size: 14px; margin-top: 8px; }
.ap-al .ico { color: var(--red); width: 18px; height: 18px; }
/* bebê dos macetes */
.ap-corpo { display: block; width: 100%; max-height: 250px; }
.ap-corpo .ap-pele { fill: var(--skin); } .ap-corpo .ap-roupa { fill: var(--surface); stroke: var(--line); stroke-width: 2; } .ap-corpo .ap-fralda { fill: var(--green-tint); stroke: var(--line); stroke-width: 2; }
.ap-corpo .ap-olhos { stroke: #7A5240; stroke-width: 2.5; fill: none; stroke-linecap: round; } .ap-corpo .ap-boca { fill: #B5655A; }
.ap-corpo .ap-abraco { fill: none; stroke: var(--brass); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 600; stroke-dashoffset: 600; opacity: 0; transition: stroke-dashoffset .9s ease, opacity .3s; }
.ap-corpo.abraco-on .ap-abraco { stroke-dashoffset: 0; opacity: 1; }
.ap-corpo.tem-abraco .ap-abraco { stroke-dashoffset: 0; opacity: .45; } /* o 6 (abraço) fica no braço que envolve, como no cartão */
.ap-corpo.tem-abraco.abraco-on .ap-abraco { opacity: 1; }
.ap-pt { cursor: pointer; outline: none; }
.ap-pt .ring { fill: var(--green); opacity: .18; transform-box: fill-box; transform-origin: center; animation: ap-pulse 1.8s ease-out infinite; }
.ap-pt .dot { fill: var(--surface); stroke: var(--green); stroke-width: 3; transition: fill .25s; }
.ap-pt:focus-visible .dot { stroke-width: 5; }
.ap-pt text { font: 800 15px var(--font); fill: var(--green); text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.ap-pt.feito .dot { fill: var(--green); } .ap-pt.feito text { fill: var(--green-ink); } .ap-pt.feito .ring { animation: none; opacity: 0; }
.ap-pt.errou .dot { stroke: var(--brass); fill: var(--brass-tint); }
@keyframes ap-pulse { from { transform: scale(.9); opacity: .35; } to { transform: scale(1.9); opacity: 0; } }
.ap-chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 4px; }
.ap-chips span { height: 32px; border-radius: 10px; border: 1.5px dashed var(--line); font-size: 11px; font-weight: 800; display: grid; place-items: center; color: var(--ink-3); transition: all .3s; overflow: hidden; white-space: nowrap; }
.ap-chips span.on { border: 0; background: var(--green); color: var(--green-ink); }
.ap-det { min-height: 120px; }
.ap-det h3 { display: flex; align-items: center; gap: 8px; }
.ap-det h3 .n { width: 26px; height: 26px; border-radius: 50%; background: var(--green); color: var(--green-ink); font-size: 13px; display: grid; place-items: center; }
.ap-det p { color: var(--ink-2); margin-top: 6px; }
.ap-tl { list-style: none; margin: 0; padding: 0 0 0 28px; position: relative; display: grid; }
.ap-tl:before { content: ""; position: absolute; left: 9px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.ap-tl li { position: relative; padding-bottom: 16px; animation: ap-pop .5s both; }
.ap-tl li:last-child { padding-bottom: 0; }
.ap-tl li:before { content: ""; position: absolute; left: -25px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 3px solid var(--green); }
.ap-tl li.pico:before { background: var(--brass); border-color: var(--brass); }
.ap-tl small { font-size: 12px; font-weight: 800; color: var(--brass); letter-spacing: .06em; text-transform: uppercase; display: block; }
.ap-tl b { display: block; font-size: 17px; } .ap-tl span { font-size: 14px; color: var(--ink-2); }
.ap-acc { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 0 16px; }
.ap-acc summary { list-style: none; min-height: 52px; display: flex; align-items: center; justify-content: space-between; font-weight: 800; cursor: pointer; }
.ap-acc summary::-webkit-details-marker { display: none; }
.ap-acc[open] summary .ico { transform: rotate(90deg); }
.ap-acc .ap-build { padding-bottom: 16px; }
/* Seu José em balão, preso ao momento, no fluxo da tela (não cobre conteúdo) */
.ze { display: none; grid-template-columns: 44px 1fr; gap: 10px; align-items: end; margin-top: -8px; scroll-margin-bottom: 120px; }
.ze.on { display: grid; animation: ap-pop .35s both; }
.ze img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--surface); }
.ze-b { background: var(--surface); border: 1px solid var(--line); border-radius: 18px 18px 18px 4px; padding: 10px 14px; }
.ze.erro .ze-b { border-color: var(--brass); background: var(--brass-tint); }
.ze-b b { font-size: 12px; color: var(--brass); }
.ze-b p { font-family: var(--voice); font-style: italic; font-weight: 500; font-size: 16px; line-height: 1.5; }
/* normal ou perigo */
.np { display: grid; gap: 8px; }
.np-c { text-align: left; font: inherit; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: 16px; padding: 14px 16px; display: grid; gap: 6px; min-height: 56px; }
.np-c b { font-size: 15px; line-height: 1.4; }
.np-c .np-r { display: none; gap: 4px; font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.np-c.on .np-r { display: grid; animation: ap-pop .35s both; }
.np-q { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--green); } .np-q svg { width: 16px; height: 16px; flex: none; } .np-c.on .np-q { display: none; }
.np-tag { font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.np-c.np-perigo, .np-c.np-urg { border-color: var(--red); background: var(--red-tint); } .np-c.np-perigo .np-tag, .np-c.np-urg .np-tag { color: var(--red); }
.np-c.np-normal { border-color: var(--ok); background: var(--ok-tint); } .np-c.np-normal .np-tag { color: var(--ok); }
/* compromisso antes do treino */
.pacto { background: var(--pinho); color: var(--creme); border-radius: 24px; padding: 24px; display: grid; gap: 12px; position: relative; overflow: hidden; }
.pacto .over { color: var(--latao-claro); }
.pacto p { font-family: var(--voice); font-style: italic; font-size: 21px; line-height: 1.4; }
.pacto p b { font-family: var(--font); font-style: normal; color: var(--latao-claro); }
.pacto:after { content: ""; position: absolute; right: -28px; top: -28px; width: 120px; height: 120px; border-radius: 50%; border: 2px solid rgba(226, 189, 123, .35); }
.pacto.ok:after { background: rgba(226, 189, 123, .18); animation: ap-carimbo .6s cubic-bezier(.2,.9,.3,1.25) both; }
@keyframes ap-carimbo { from { transform: scale(1.6); opacity: 0; } to { transform: none; opacity: 1; } }
#next.ap-segura { position: relative; overflow: hidden; isolation: isolate; touch-action: none; user-select: none; -webkit-user-select: none; }
#next.ap-segura:before { content: ""; position: absolute; inset: 0; z-index: -1; background: color-mix(in srgb, var(--latao) 55%, var(--green)); transform: scaleX(0); transform-origin: left; transition: transform .2s; } /* o preenchimento passa por trás do texto */
#next.ap-segura.enchendo:before { transform: scaleX(1); transition: transform 1.2s linear; }
/* prova: o certo sobe para o lugar; o dedo mostra a primeira jogada */
.order { position: relative; }
.order button .pos { color: var(--ink-3); }
.order button.ok .pos { color: var(--ok); }
.order button.demo { border-color: var(--ok); background: var(--ok-tint); }
.o-div { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); padding: 4px 2px; }
.o-pr { scroll-margin-top: 120px; background: var(--green-tint); color: var(--green); font-weight: 800; border-radius: 14px; padding: 12px 14px; min-height: 48px; }
.dedo { position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; background: rgba(31, 91, 69, .25); border: 2px solid var(--green); pointer-events: none; opacity: 0; z-index: 3; transition: transform .7s cubic-bezier(.2,.8,.2,1), opacity .3s; }
.dedo.on { opacity: 1; } .dedo.tap { width: 36px; height: 36px; margin: 4px; }
/* fim: antes × agora em destaque */
.aa { background: var(--pinho); color: var(--creme); border-radius: 24px; padding: 8px 20px; display: grid; }
.aa-l { display: grid; grid-template-columns: 68px 1fr; gap: 12px; align-items: start; padding: 14px 0; }
.aa-l + .aa-l { border-top: 1px solid rgba(247, 241, 227, .15); }
.aa-k { font-size: 12px; font-weight: 800; letter-spacing: .08em; padding-top: 4px; }
.aa-antes .aa-k { color: rgba(247, 241, 227, .55); }
.aa-antes p { color: rgba(247, 241, 227, .75); font-family: var(--voice); font-style: italic; font-size: 17px; }
.aa-antes small { color: rgba(247, 241, 227, .55); font-size: 12px; }
.aa-agora .aa-k { color: var(--latao-claro); }
.aa-agora ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 16px; font-weight: 700; }
.aa-agora li { display: flex; gap: 8px; animation: ap-pop .5s both; }
.aa-agora li .ico { flex: none; color: var(--latao-claro); width: 18px; height: 18px; margin-top: 2px; }
/* cartão da aula (fundador, 17/10): a imagem que ele salva no celular */
.cartao-im { border-radius: 16px; overflow: hidden; background: #F4EEE2; min-height: 360px; display: grid; place-items: center; box-shadow: 0 1px 0 var(--line), 0 8px 24px rgba(23, 63, 49, .10); }
.cartao-im img { width: 100%; height: auto; display: block; opacity: 0; transition: opacity .35s ease; }
.cartao-im.on { min-height: 0; } .cartao-im.on img { opacity: 1; }
.cartao-im.erro::after { content: "Não deu para montar o cartão agora. Tente de novo mais tarde."; padding: 24px; color: var(--ink-2); font-size: 15px; text-align: center; }
.wpp { display: flex; align-items: center; justify-content: center; gap: 8px; }
/* "Achou um erro?" com menos destaque (fundador, 17/10) */
.erro-d summary { color: var(--ink-3); font-weight: 600; font-size: 13px; }
/* Relembre no Início: um toque abre as 3 perguntas e o mapa mental (novo Aprende) */
.relembre-b { display: grid; grid-template-columns: 1fr 20px; gap: 4px 12px; align-items: center; padding: 16px 20px; text-align: left; font: inherit; color: var(--ink); cursor: pointer; width: 100%; }
.relembre-b .over { grid-column: 1 / -1; }
.relembre-b .ico { color: var(--ink-3); }
.ficha-in .sos-check > div > span, .ficha-in .sos-check b { text-wrap: balance; } /* "agora." e "roxo" sozinhos na linha (revisor visual 15-00) */

/* Seus cartões e medalhas no Início e medalha guardada no app (fundador, 18/10) */
.cart-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cart-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px 6px 6px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }
.md-mini { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #F7F1E3; font-weight: 800; font-size: 14px; box-shadow: inset 0 0 0 2px var(--latao); }
.conq.conq-mini { padding-block: 16px; }
.ap-lead { margin: 4px 0; color: var(--ink-2); font-size: 16px; line-height: 1.45; } /* abertura ou fecho de passo numerado, fora dos cartões */
.np-c:not(.on) ~ .np-c:not(.on) .np-q { display: none; } /* "Toque para ver" só no primeiro cartão ainda fechado (revisor visual 17-55: repetia 8 vezes) */
@media (max-width: 359px) { .aa-l { grid-template-columns: 1fr; gap: 6px; } } /* a 320 o rótulo vai para cima e a lista do Agora usa a largura toda */
/* paywall 18/10 (thread do Gabriel Buzzi): promessa, preço e botão acima da dobra; selos; linha do tempo; "O que você leva" com ícones */
.pay-v2 h1.pay-h { font-size: clamp(24px, 6.6vw, 32px); line-height: 1.14; text-wrap: balance; margin: 4px 0 0; }
.paycard { display: grid; gap: 12px; padding: 20px; border-radius: 24px; background: var(--surface); border: 2px solid var(--green); box-shadow: 0 10px 30px rgba(22, 63, 49, .12); }
.paycard .ofe-p span { font-size: 13px; }
.pay-uma { margin: -6px 0 0; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.pay-selos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pay-selos li { display: grid; justify-items: center; gap: 4px; text-align: center; font-size: 12px; font-weight: 800; line-height: 1.25; color: var(--ink-2); }
.pay-selos .ico { width: 20px; height: 20px; color: var(--green); }
.pay-v2 .p-gift { justify-self: center; }
.tl { display: grid; gap: 8px; }
.tl-sub { margin: -4px 0 4px; }
.tl-l { list-style: none; margin: 0; padding: 0; display: grid; }
.tl-i { position: relative; display: grid; grid-template-columns: 64px 36px 1fr; gap: 10px; align-items: center; padding: 6px 0; }
.tl-i::before { content: ""; position: absolute; left: 91px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.tl-i:first-child::before { top: 50%; } .tl-i:last-child::before { bottom: 50%; }
.tl-d { font-size: 13px; font-weight: 800; color: var(--ink-3); text-align: right; }
.tl-i:first-child .tl-d { color: var(--green); }
.tl-p { position: relative; z-index: 1; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--green-tint); color: var(--green); }
.tl-p .ico { width: 18px; height: 18px; }
.tl-i b { display: block; font-size: 16px; line-height: 1.25; }
.tl-i small { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.tl-i small .ico { width: 14px; height: 14px; color: var(--brass); }
.tl-i.medo b::after { content: "você marcou"; margin-left: 8px; padding: 2px 8px; border-radius: 99px; background: var(--brass-tint); color: var(--brass); font-size: 11px; font-weight: 800; vertical-align: 2px; white-space: nowrap; }
.tl-g .tl-p { background: var(--brass); color: #FFFFFF; }
.tl-g b { color: var(--brass); }
.pay-leva { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pay-leva li { display: grid; gap: 8px; align-content: start; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.pay-leva .ico { width: 24px; height: 24px; color: var(--green); }
.pay-leva b { font-size: 14px; line-height: 1.3; }
.sum-ic { display: inline-flex; align-items: center; gap: 8px; } .sum-ic .ico { width: 20px; height: 20px; color: var(--brass); flex: none; }
@media (min-width: 720px) { .pay-leva { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 340px) { .paycard { padding: 16px; } .tl-i { grid-template-columns: 52px 32px 1fr; gap: 8px; } .tl-i::before { left: 75px; } .tl-p { width: 32px; height: 32px; } .pay-selos li { font-size: 11px; } }
:root[data-theme="dark"] .tl-g .tl-p { color: #0F1412; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tl-g .tl-p { color: #0F1412; } }
@media (max-width: 360px) { .paycard .p-go { font-size: 15px; padding-inline: 12px; } .paycard .ofe-p b { font-size: 36px; } }
