/* "Comece aqui": a família nova conhece o app em 9 telinhas (roteiro e aprovação dela em 01/11/2026).
   Abre como um story, na primeira semana. Tudo tem o prefixo cm- para não bater no resto do app. */
.story-tela--comece { color: var(--ink); }
.tom--comece-lilas { background: var(--lilac-soft); } .tom--comece-sol { background: var(--sun-soft); } .tom--comece-menta { background: var(--mint-soft); }
.tom--comece-ceu { background: var(--sky-soft); } .tom--comece-rosa { background: var(--rose-soft); } .tom--comece-pink { background: var(--pink); }
.tom--comece-pink .story-tela__topo, .tom--comece-pink .story-tela__topo small { color: #fff; }
.story-tela--comece .story-tela__conteudo { top: 72px; bottom: 0; padding: 0; align-items: stretch; justify-content: flex-start; animation: none; }
.cm-sl { position: absolute; inset: 0; display: flex; flex-direction: column; }
.cm-peca { position: relative; display: flex; flex-direction: column; align-items: center; zoom: var(--cm-escala, 1); }
@keyframes cm-enche { from { width: 0; } to { width: 100%; } }

.cm-palco { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
.cm-tx { flex: none; padding: 0 26px 34px; animation: cm-sobe .5s .15s cubic-bezier(.2,.9,.25,1) both; }
.cm-tx h2 { margin: 0 0 6px; font-family: var(--font-display); font-weight: 800; font-size: 27px; line-height: 30px; letter-spacing: -.02em; }
.cm-tx p { margin: 0; font-size: 16px; line-height: 23px; }
.cm-tx--centro { text-align: center; }
@keyframes cm-sobe { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* o toque que ensina onde mexer */
.cm-toque { position: absolute; z-index: 6; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: rgba(43,34,51,.28); opacity: 0; pointer-events: none; }
.cm-on .cm-toque { animation: cm-toque .7s ease both; }
@keyframes cm-toque { 0% { opacity: 0; transform: scale(1.5); } 35% { opacity: 1; transform: scale(.82); } 65% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.1); } }

/* 1 e 7: a redinha se monta */
.cm-sim circle { transform-box: fill-box; transform-origin: center; }
.cm-on .cm-sim--grande .cm-sim__fios { animation: cm-aparece .4s .1s both; }
.cm-on .cm-sim--grande circle { animation: cm-estala .55s cubic-bezier(.3,.8,.3,1.5) both; }
.cm-on .cm-sim--grande .cm-b0 { animation-delay: .15s; } .cm-on .cm-sim--grande .cm-b1 { animation-delay: .35s; } .cm-on .cm-sim--grande .cm-b2 { animation-delay: .47s; } .cm-on .cm-sim--grande .cm-b3 { animation-delay: .59s; } .cm-on .cm-sim--grande .cm-b4 { animation-delay: .71s; } .cm-on .cm-sim--grande .cm-b5 { animation-delay: .83s; }
.cm-flutua { animation: cm-flutua 3.4s 1.4s ease-in-out infinite; }
@keyframes cm-aparece { from { opacity: 0; } to { opacity: 1; } }
@keyframes cm-estala { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: none; } }
@keyframes cm-flutua { 50% { transform: translateY(-8px); } }

/* 2: o post */
.cm-post { position: relative; width: 284px; animation: cm-entra .6s cubic-bezier(.2,.9,.25,1) both; }
@keyframes cm-entra { from { opacity: 0; transform: translateY(40px) rotate(2deg); } to { opacity: 1; transform: none; } }
.cm-aba { position: relative; display: inline-block; padding: 7px 13px 5px; border-radius: 15px 15px 0 0; background: #FFE3EC; color: #A8235A; font-size: 12.5px; line-height: 16px; }
.cm-aba b { font-weight: 700; }
.cm-aba::after { content: ""; position: absolute; right: -14px; bottom: 0; width: 14px; height: 14px; background: radial-gradient(circle at 100% 0, transparent 13.5px, #FFE3EC 14px); }
.cm-moldura { padding: 5px 5px 34px; border-radius: 0 24px 24px 24px; background: #FFE3EC; }
.cm-moldura img { display: block; width: 100%; height: 196px; object-fit: cover; border-radius: 19px; }
.cm-reage { position: absolute; left: 14px; top: 180px; z-index: 3; display: flex; gap: 6px; }
.cm-vidro { position: relative; display: flex; align-items: center; gap: 5px; height: 36px; padding: 0 10px; border-radius: 999px; color: #fff; font-size: 13px; font-weight: 600; background: rgba(40,30,46,.44); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.cm-vidro svg { width: 19px; height: 19px; }
.cm-cora { fill: none; stroke: currentColor; stroke-width: 2; }
.cm-on .cm-cora { animation: cm-cora .5s 1.7s cubic-bezier(.3,.8,.3,1.6) both; }
@keyframes cm-cora { 0% { fill: transparent; stroke: #fff; transform: scale(1); } 50% { fill: #FF4F87; stroke: #FF4F87; transform: scale(1.4); } 100% { fill: #FF4F87; stroke: #FF4F87; transform: scale(1); } }
.cm-vidro svg.cora { transform-origin: center; }
.cm-num { position: relative; display: inline-block; width: 15px; height: 16px; line-height: 16px; }
.cm-num em { position: absolute; left: 0; top: 0; font-style: normal; }
.cm-on .cm-num em:first-child { animation: cm-some .1s 1.8s both; }
.cm-on .cm-num em:last-child { animation: cm-aparece .1s 1.8s both; }
@keyframes cm-some { to { opacity: 0; } }
.cm-on .cm-bala { animation: cm-pula .5s 3.1s cubic-bezier(.3,.8,.3,1.6); }
@keyframes cm-pula { 50% { transform: scale(1.18); } }
.cm-nota { position: absolute; left: 96px; top: 136px; z-index: 4; padding: 6px 11px; border-radius: 14px 14px 14px 4px; background: #fff; font-size: 12.5px; font-weight: 600; box-shadow: 0 10px 20px -10px rgba(31,24,38,.4); opacity: 0; }
.cm-on .cm-nota { animation: cm-nota 1.5s 3.2s both; }
@keyframes cm-nota { 0% { opacity: 0; transform: translateY(8px) scale(.8); } 15%, 80% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-6px); } }
.cm-adesivo { position: absolute; left: 14px; right: 14px; top: 224px; z-index: 4; padding: 10px 12px; border-radius: 18px; background: #fff; box-shadow: 0 12px 26px -12px rgba(31,24,38,.42); transform: rotate(-1.2deg); }
.cm-on .cm-adesivo { animation: cm-carimbo .55s 4.7s cubic-bezier(.3,.8,.3,1.3) both; }
@keyframes cm-carimbo { from { opacity: 0; transform: scale(1.3) rotate(4deg); } to { opacity: 1; transform: rotate(-1.2deg); } }
.cm-adesivo small { display: block; font-size: 11px; font-weight: 600; color: #5B3FD0; }
.cm-adesivo b { display: block; margin: 1px 0 7px; font-family: var(--font-display); font-weight: 800; font-size: 16.5px; line-height: 19px; letter-spacing: -.02em; }
.cm-perg { position: relative; display: inline-block; padding: 7px 14px; border-radius: 999px; background: var(--pink); color: #fff; font-size: 13px; font-weight: 600; }
.cm-perg__ok { position: absolute; left: 0; top: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; border-radius: 999px; background: #E3FAF0; color: #11624A; opacity: 0; }
.cm-on .cm-perg__ok { animation: cm-aparece .15s 6.3s both; }
.cm-on .cm-perg { animation: cm-pula .46s 6.2s cubic-bezier(.3,.8,.3,1.6); }
.cm-festa { position: absolute; left: 44px; top: 18px; width: 0; height: 0; pointer-events: none; }
.cm-festa svg { position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; max-width: none; opacity: 0; }
.cm-on .cm-festa svg { animation: cm-voa .9s cubic-bezier(.16,.8,.3,1) both; animation-delay: var(--e, 6.25s); }
.cm-festa svg:nth-child(1) { color: #E0306F; --x: -46px; --y: -66px; --g: -24deg; }
.cm-festa svg:nth-child(2) { color: #FFC94D; --x: -14px; --y: -92px; --g: 14deg; }
.cm-festa svg:nth-child(3) { color: #5AA9FF; --x: 24px; --y: -84px; --g: -12deg; }
.cm-festa svg:nth-child(4) { color: #3CC48A; --x: 62px; --y: -64px; --g: 22deg; }
.cm-festa svg:nth-child(5) { color: #B46BFF; --x: 92px; --y: -34px; --g: 34deg; }
.cm-festa svg:nth-child(6) { color: #FF8A5C; --x: -66px; --y: -22px; --g: -36deg; }
.cm-festa svg:nth-child(7) { color: #FF4F87; --x: 34px; --y: -40px; --g: 8deg; width: 24px; height: 24px; }
@keyframes cm-voa { 0% { opacity: 0; transform: translate(0,0) scale(.3); } 18% { opacity: 1; } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--x),var(--y)) scale(1.1) rotate(var(--g)); } }

/* 3: as bolinhas */
.cm-fila { display: flex; gap: 12px; }
.cm-bol { position: relative; width: 66px; text-align: center; opacity: 0; }
.cm-on .cm-bol { animation: cm-estala .5s cubic-bezier(.3,.8,.3,1.5) both; }
.cm-on .cm-bol0 { animation-delay: .2s; } .cm-on .cm-bol1 { animation-delay: .4s; } .cm-on .cm-bol2 { animation-delay: .6s; } .cm-on .cm-bol3 { animation-delay: .8s; }
.cm-bol__anel { padding: 3px; border-radius: 50%; background: conic-gradient(#E0306F, #FFC94D, #3CC48A, #5AA9FF, #B46BFF, #E0306F); }
.cm-bol__anel > div { padding: 2px; border-radius: 50%; background: #fff; }
.cm-bol img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; }
.cm-bol p { margin: 5px 0 0; font-size: 12px; font-weight: 600; }
.cm-palco--col .cm-peca { gap: 18px; }
.cm-cartinha { position: relative; width: 196px; height: 250px; overflow: hidden; border-radius: 20px; background: #fff; box-shadow: 0 22px 40px -22px rgba(31,24,38,.5); transform-origin: 18% -30%; }
.cm-cartinha img { width: 100%; height: 100%; object-fit: cover; }
.cm-on .cm-cartinha { animation: cm-cresce .6s 1.5s cubic-bezier(.2,.9,.25,1.2) both; }
@keyframes cm-cresce { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: rotate(-2deg); } }
.cm-cartinha i { position: absolute; left: 10px; right: 10px; top: 8px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.5); }
.cm-cartinha i::after { content: ""; display: block; width: 0; height: 100%; border-radius: 3px; background: #fff; }
.cm-on .cm-cartinha i::after { animation: cm-enche 4s 2.1s linear both; }

/* 4: o sino */
.cm-palco--sino .cm-peca { gap: 20px; }
.cm-sino { position: relative; color: var(--ink); transform-origin: 50% 8%; }
.cm-on .cm-sino { animation: cm-balanca 1.3s .3s ease both, cm-balanca 1.1s 4.4s ease; }
@keyframes cm-balanca { 15% { transform: rotate(18deg); } 35% { transform: rotate(-14deg); } 55% { transform: rotate(9deg); } 75% { transform: rotate(-5deg); } 100% { transform: none; } }
.cm-sino svg { display: block; width: 104px; height: 104px; fill: #FFC94D; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.cm-selo { position: absolute; right: 2px; top: 4px; min-width: 28px; height: 28px; padding: 0 7px; border-radius: 999px; background: var(--pink); color: #fff; font-size: 15px; font-weight: 700; line-height: 28px; text-align: center; opacity: 0; }
.cm-on .cm-selo { animation: cm-estala .5s 1.1s cubic-bezier(.3,.8,.3,1.7) both; }
.cm-lista { display: flex; flex-direction: column; gap: 8px; width: 284px; }
.cm-rec { display: flex; align-items: center; gap: 11px; padding: 9px 13px; border-radius: 18px; background: #fff; box-shadow: 0 12px 24px -18px rgba(31,24,38,.45); opacity: 0; font-size: 14px; line-height: 18px; }
.cm-rec b { display: block; font-weight: 600; } .cm-rec small { display: block; font-size: 12.5px; color: var(--ink-soft); }
.cm-rec__dia { flex: none; width: 34px; text-align: center; }
.cm-rec__dia b { font-family: var(--font-display); font-weight: 800; font-size: 19px; line-height: 20px; }
.cm-rec__dia small { font-size: 11px; line-height: 13px; text-transform: lowercase; }
.cm-on .cm-rec { animation: cm-lado .5s cubic-bezier(.2,.9,.25,1.15) both; }
.cm-on .cm-rec0 { animation-delay: 1.6s; } .cm-on .cm-rec1 { animation-delay: 2.1s; } .cm-on .cm-rec2 { animation-delay: 2.6s; }
@keyframes cm-lado { from { opacity: 0; transform: translateX(46px); } to { opacity: 1; transform: none; } }

/* a conversa */
.cm-chat { display: flex; flex-direction: column; gap: 10px; width: 284px; padding: 14px; border-radius: 26px; background: #fff; box-shadow: 0 22px 40px -24px rgba(31,24,38,.45); animation: cm-entra .6s cubic-bezier(.2,.9,.25,1) both; }
.cm-chat__topo { display: flex; align-items: center; gap: 7px; padding-bottom: 8px; font-size: 14px; font-weight: 700; border-bottom: 1px solid #F3EFF6; }
.cm-chat__topo svg { width: 20px; height: 20px; }
.cm-msg { max-width: 86%; padding: 9px 13px; border-radius: 18px 18px 18px 5px; background: #F3EFF6; font-size: 14.5px; line-height: 20px; opacity: 0; }
.cm-msg--eu { align-self: flex-end; border-radius: 18px 18px 5px 18px; background: var(--pink); color: #fff; }
.cm-on .cm-msg1 { animation: cm-bolha .45s .9s cubic-bezier(.3,.8,.3,1.35) both; }
.cm-on .cm-msg2 { animation: cm-bolha .45s 4s cubic-bezier(.3,.8,.3,1.35) both; }
.cm-msg1 { transform-origin: 100% 100%; } .cm-msg2 { transform-origin: 0 100%; }
@keyframes cm-bolha { from { opacity: 0; transform: translateY(10px) scale(.75); } to { opacity: 1; transform: none; } }
.cm-digita { display: flex; gap: 4px; align-self: flex-start; height: 0; overflow: hidden; padding: 0 13px; border-radius: 18px 18px 18px 5px; background: #F3EFF6; opacity: 0; }
.cm-on .cm-digita { animation: cm-digita 2.2s 1.8s both; }
@keyframes cm-digita { 0% { opacity: 0; height: 0; padding: 0 13px; } 8%, 92% { opacity: 1; height: 32px; padding: 12px 13px; } 100% { opacity: 0; height: 0; padding: 0 13px; margin-bottom: -10px; } }
.cm-digita i { width: 8px; height: 8px; border-radius: 50%; background: #B9AEC4; }
.cm-on .cm-digita i { animation: cm-pontinho .9s 1.8s ease-in-out infinite; }
.cm-on .cm-digita i:nth-child(2) { animation-delay: 1.95s; } .cm-on .cm-digita i:nth-child(3) { animation-delay: 2.1s; }
@keyframes cm-pontinho { 50% { transform: translateY(-4px); } }

/* avisar falta */
.cm-falta { position: relative; width: 284px; height: 296px; overflow: hidden; border-radius: 26px; background: #fff; box-shadow: 0 22px 40px -24px rgba(31,24,38,.45); animation: cm-entra .6s cubic-bezier(.2,.9,.25,1) both; }
.cm-falta__topo { display: flex; align-items: center; justify-content: space-between; padding: 14px; font-size: 16px; }
.cm-falta__topo b { font-family: var(--font-display); font-weight: 800; letter-spacing: -.02em; }
.cm-falta__btn { position: relative; padding: 8px 13px; border-radius: 999px; background: #F3EFF6; font-size: 13.5px; font-weight: 600; }
.cm-on .cm-falta__btn { animation: cm-pula .46s 1.3s cubic-bezier(.3,.8,.3,1.6); }
.cm-falta__foto { display: block; width: calc(100% - 28px); height: 216px; margin: 0 14px; object-fit: cover; border-radius: 20px; }
.cm-falta__veu { position: absolute; inset: 0; z-index: 2; background: rgba(43,34,51,.42); opacity: 0; }
.cm-on .cm-falta__veu { animation: cm-aparece .3s 1.6s both; }
.cm-falta__topo .cm-toque { z-index: 5; }
.cm-falta__folha { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 16px 14px 14px; border-radius: 24px 24px 0 0; background: #fff; transform: translateY(102%); }
.cm-on .cm-falta__folha { animation: cm-folha .5s 1.65s cubic-bezier(.2,.9,.25,1.05) both; }
@keyframes cm-folha { from { transform: translateY(102%); } to { transform: none; } }
.cm-falta__tit { margin: 0 0 10px; font-family: var(--font-display); font-weight: 800; font-size: 21px; line-height: 24px; letter-spacing: -.02em; }
.cm-falta__rot { margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.cm-escs { display: flex; gap: 6px; margin-bottom: 14px; }
.cm-esc { position: relative; flex: 1 1 auto; padding: 10px 0; border-radius: 14px; background: #F3EFF6; font-size: 13.5px; font-weight: 600; text-align: center; }
.cm-on .cm-esc--hoje { animation: cm-escolhe .3s 2.8s both; }
@keyframes cm-escolhe { to { background: #E0306F; color: #fff; } }
.cm-envia { position: relative; padding: 13px 0; border-radius: 999px; background: var(--ink); color: #fff; font-size: 15px; font-weight: 600; text-align: center; }
.cm-on .cm-envia { animation: cm-pula .46s 4.3s cubic-bezier(.3,.8,.3,1.5); }
.cm-envia__ok { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; border-radius: 999px; background: #E3FAF0; color: #11624A; opacity: 0; }
.cm-on .cm-envia__ok { animation: cm-aparece .15s 4.4s both; }

/* 5: o potinho */
.cm-cai { opacity: 0; transform-box: fill-box; transform-origin: center; }
.cm-on .cm-cai { animation: cm-cai .55s cubic-bezier(.3,.6,.4,1.25) both; }
@keyframes cm-cai { from { opacity: 0; transform: translateY(-110px) rotate(-30deg) scale(.7); } 30% { opacity: 1; } to { opacity: 1; transform: none; } }
.cm-on .cm-pote { animation: cm-pula .5s 4.8s cubic-bezier(.3,.8,.3,1.5); }
.cm-palco--pote .cm-peca { padding-bottom: 50px; }
.cm-cheio { position: absolute; bottom: 0; left: 50%; padding: 7px 15px; border-radius: 999px; background: #fff; color: #A8235A; font-size: 14.5px; font-weight: 700; white-space: nowrap; box-shadow: 0 12px 24px -14px rgba(31,24,38,.45); opacity: 0; transform: translateX(-50%); }
.cm-on .cm-cheio { animation: cm-chegou .5s 4.9s cubic-bezier(.3,.8,.3,1.5) both; }
@keyframes cm-chegou { from { opacity: 0; transform: translateX(-50%) scale(.6); } to { opacity: 1; transform: translateX(-50%); } }
.cm-palco--pote .cm-festa { left: 50%; top: 42%; }
.cm-palco--pote .cm-festa svg { --e: 5s; }

/* 6: o livrinho abre, com as páginas de verdade */
.cm-palco--livro { overflow: hidden; }
.cm-livro { --p: min(165px, calc((100vw - 60px) / 2)); position: relative; width: var(--p); aspect-ratio: 1240 / 1754; perspective: 1500px; }
.cm-on .cm-livro { animation: cm-abre-livro 1s 1.1s cubic-bezier(.3,.8,.3,1) both; }
@keyframes cm-abre-livro { from { transform: none; } to { transform: translateX(calc(var(--p) / 2)); } }
.cm-zoom { --p: min(165px, calc((100vw - 60px) / 2)); }
.cm-on .cm-zoom { animation: cm-aproxima 1s 8.2s cubic-bezier(.4,.1,.2,1) both; }
@keyframes cm-aproxima { from { transform: none; } to { transform: scale(1.62) translateX(calc(var(--p) / 2)); } }
.cm-fol { position: absolute; inset: 0; transform-origin: 0 50%; transform-style: preserve-3d; }
.cm-fol1 { z-index: 3; } .cm-fol2 { z-index: 2; }
.cm-on .cm-fol1 { animation: cm-vira 1s 1.1s cubic-bezier(.4,.1,.3,1) both; }
.cm-on .cm-fol2 { animation: cm-vira2 1s 6s cubic-bezier(.4,.1,.3,1) both; }
@keyframes cm-vira { from { transform: rotateY(0); } to { transform: rotateY(-180deg); } }
@keyframes cm-vira2 { 0% { transform: rotateY(0); z-index: 2; } 1% { z-index: 4; } 100% { transform: rotateY(-180deg); z-index: 4; } }
.cm-face { position: absolute; inset: 0; overflow: hidden; border-radius: 2px 9px 9px 2px; background: #fff; -webkit-backface-visibility: hidden; backface-visibility: hidden; box-shadow: 0 24px 32px -20px rgba(31,24,38,.5); }
.cm-face img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cm-face::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, rgba(43,34,51,.16), rgba(43,34,51,0) 15px); }
.cm-face--vs { border-radius: 9px 2px 2px 9px; transform: rotateY(180deg); }
.cm-face--vs::after { background: linear-gradient(to left, rgba(43,34,51,.16), rgba(43,34,51,0) 15px); }
.cm-face--base { z-index: 1; }

/* 7: bem-vindos */
.cm-sl--fim { color: #fff; }
.cm-disco { padding: 18px; border-radius: 50%; background: #fff; }
.cm-sl--fim .cm-festa { left: 50%; top: 46%; transform: scale(1.8); }
.cm-sl--fim .cm-festa svg { --e: 1.2s; }
.cm-comecar { position: relative; z-index: 6; display: block; width: 100%; min-height: 52px; margin-top: 18px; border: 0; border-radius: 999px; background: #fff; color: var(--pink); font-size: 17px; font-weight: 700; animation: cm-sobe .5s .9s cubic-bezier(.2,.9,.25,1.4) both; }
.cm-tx { padding-bottom: calc(34px + env(safe-area-inset-bottom, 0px)); }
.cm-comecar { pointer-events: auto; }
.cm-toque--coracao { left: 38px; top: 198px; animation-delay: 1.45s !important; }
.cm-toque--balao { left: 104px; top: 198px; animation-delay: 2.85s !important; }
.cm-toque--perguntei { left: 50%; top: 50%; animation-delay: 5.95s !important; }
.cm-toque--bolinha { left: 50%; top: 33px; animation-delay: 1.1s !important; }
.cm-toque--falta { left: 50%; top: 50%; animation-delay: 1.2s !important; }
.cm-toque--hoje { left: 50%; top: 50%; animation-delay: 2.7s !important; }
.cm-toque--enviar { left: 50%; top: 50%; animation-delay: 4.2s !important; }
/* sem movimento: cada tela já abre pronta, no fim da animação */
@media (prefers-reduced-motion: reduce) {
  .cm-sl *, .cm-sl *::before, .cm-sl *::after { animation-duration: .01s !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; }
}
