/* Celular interativo do topo (tour.js). Tudo com o prefixo tp-. */
.tp { position: relative; width: 316px; height: min(640px, calc(100svh - 84px)); min-height: 470px; border: 9px solid var(--tinta); border-radius: 42px; background: var(--tinta); box-shadow: 0 24px 50px rgba(59,70,86,.18); }
.tp-tela { position: relative; width: 100%; height: 100%; border-radius: 32px; overflow: hidden; background: #fff; isolation: isolate; user-select: none; -webkit-user-select: none; }
.tp button { font: inherit; color: inherit; border: 0; background: none; padding: 0; margin: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.tp button:focus-visible { outline: 3px solid var(--azul); outline-offset: 2px; }
.tp p + p { margin-top: 0; }
.tp-tela > noscript img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; z-index: 20; }

/* Capa */
.tp-capa { position: absolute; inset: 0; z-index: 8; overflow: hidden; display: grid; align-content: center; justify-items: center; gap: 14px; padding: 24px; text-align: center; background: var(--fundo-capa); }
.tp-capa .bolha { width: 190px; height: 190px; }
.tp-capa .x1 { background: var(--azul-l); top: -60px; left: -70px; }
.tp-capa .x2 { background: var(--rosa-l); top: 20%; right: -110px; }
.tp-capa .x3 { background: var(--amarelo-l); bottom: 12%; left: -110px; }
.tp-capa .x4 { background: var(--verde-l); bottom: -70px; right: -50px; }
.tp-capa > :not(.bolha) { position: relative; }
.tp-capa .marca { justify-items: center; margin: 0; }
.tp-capa .tp-frase { font-family: var(--f-script); font-size: 29px; line-height: 1.05; color: #5A9FC6; }
.tp .tp-play { display: inline-flex; align-items: center; gap: 10px; min-height: 58px; padding: 8px 24px; margin-top: 10px; border: 2px solid var(--tinta); border-radius: 40px; background: var(--amarelo); font-family: var(--f-titulo); font-weight: 600; font-size: 18px; box-shadow: 0 4px 0 var(--tinta); animation: tp-pulsa 1.8s ease-in-out infinite; }
.tp .tp-play:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--tinta); animation: none; }
.tp-play svg { flex: none; }
.tp-capa small { font-size: 13.5px; color: var(--cinza); }
@keyframes tp-pulsa { 50% { transform: scale(1.045); } }
.tp-capa.abrindo { animation: tp-some .35s ease .8s forwards; }
.tp-capa.abrindo .tp-play, .tp-capa.abrindo small, .tp-capa.abrindo .tp-frase { animation: tp-some .2s ease forwards; pointer-events: none; }
.tp-capa.abrindo .marca { animation: tp-cresce .8s cubic-bezier(.3,1.4,.5,1) forwards; }
@keyframes tp-some { to { opacity: 0; } }
@keyframes tp-cresce { to { transform: translateY(42px) scale(1.22); } }

/* App */
.tp-app { position: absolute; inset: 0; display: flex; flex-direction: column; background: #fff; text-align: left; font-size: 14px; line-height: 1.35; transition: background-color .3s; text-wrap: balance; }
.tp-app[hidden] { display: none; }
.tp-topo { position: relative; flex: none; padding: 13px 0 9px; text-align: center; font-family: var(--f-titulo); font-weight: 500; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--rodape); }
.tp-topo i { position: absolute; top: 0; right: 16px; width: 36px; height: 24px; border-radius: 0 0 12px 12px; background: var(--f); transition: background-color .3s; }
.tp-corpo { flex: 1; min-height: 0; overflow: hidden; padding: 4px 14px 18px; }
.entrando .tp-corpo > * { animation: tp-entra .45s ease-out both; }
.entrando .tp-corpo > :nth-child(2) { animation-delay: .06s; } .entrando .tp-corpo > :nth-child(3) { animation-delay: .12s; }
.entrando .tp-corpo > :nth-child(4) { animation-delay: .18s; } .entrando .tp-corpo > :nth-child(5) { animation-delay: .26s; }
.entrando .tp-corpo > :nth-child(n+6) { animation-delay: .34s; }
@keyframes tp-entra { from { opacity: 0; transform: translateY(18px); } }
.tp-saud { font-family: var(--f-titulo); font-weight: 600; font-size: 21px; line-height: 1.2; }
.tp-data { font-size: 13px; color: var(--cinza); }
.tp-rot { display: block; margin: 12px 0 5px; font-family: var(--f-titulo); font-weight: 500; font-size: 13px; color: var(--f); filter: brightness(.75); }
.tp-g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.tp .tp-opt { min-height: 42px; padding: 4px 6px; border: 1.5px solid var(--f); border-radius: 40px; background: #fff; font-family: var(--f-titulo); font-size: 13.5px; line-height: 1.1; transition: background-color .2s; }
.tp .tp-opt.on { background: var(--l); font-weight: 600; box-shadow: inset 0 0 0 1px var(--f); }
.tp-dash { display: flex; align-items: center; gap: 12px; margin-top: 13px; padding: 12px; border: 1.5px solid var(--f); border-radius: 18px; }
.tp-dash .tp-rot { margin: 0; }
.tp-dash b { display: block; font-family: var(--f-titulo); font-weight: 600; font-size: 18px; line-height: 1.2; }
.tp-dash small { display: block; font-size: 12.5px; color: var(--cinza); line-height: 1.3; }
@property --p { syntax: '<number>'; inherits: true; initial-value: 0; }
.tp-anel { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: conic-gradient(var(--f) calc(var(--p) * 1%), var(--l) 0); flex: none; transition: --p .8s ease; }
.tp-anel > span { display: grid; place-items: center; width: 77%; height: 77%; border-radius: 50%; background: #fff; font-family: var(--f-titulo); font-weight: 600; font-size: 11px; }
.tp-anel.g { width: 66px; height: 66px; } .tp-anel.g > span { font-size: 15px; }
.tp-anel.pula { animation: tp-pulo .7s ease 1 .1s; }
@keyframes tp-pulo { 40% { transform: scale(1.5); } }
.tp-caixa { position: relative; margin-top: 22px; padding: 20px 10px 6px; border: 1.5px solid var(--f); border-radius: 18px; }
.tp-etq { position: absolute; left: 12px; top: -12px; padding: 1px 12px; border: 1px solid var(--f); border-radius: 30px; background: var(--l); font-family: var(--f-titulo); font-weight: 500; font-size: 13px; }
.tp-selo { position: absolute; right: 10px; top: -9px; padding: 1px 8px; border-radius: 30px; background: var(--f); color: #fff; font-weight: 800; font-size: 9.5px; letter-spacing: .05em; }
.tp-barra { height: 8px; margin: 0 2px 4px; border-radius: 8px; background: var(--l); overflow: hidden; }
.tp-barra i { display: block; height: 100%; border-radius: 8px; background: var(--f); transition: width .4s; }
.tp-linha { display: flex; align-items: center; border-bottom: 1px dashed var(--separador); }
.tp-caixa .tp-linha:last-child { border-bottom: 0; }
.tp .tp-tar { flex: 1; min-width: 0; min-height: 48px; display: flex; align-items: center; gap: 9px; padding: 6px 2px; text-align: left; }
.tp-qd { flex: none; display: grid; place-items: center; width: 27px; height: 27px; border: 2px solid var(--f); border-radius: 8px; background: #fff; font-weight: 800; font-size: 16px; line-height: 1; }
.feita .tp-qd { background: var(--l); animation: tp-pulo .35s ease; }
.tp-tx { flex: 1; min-width: 0; line-height: 1.2; font-size: 14.5px; }
.tp-tx small { display: block; font-size: 11.5px; color: var(--rodape); }
.feita .tp-tx { color: var(--cinza); text-decoration: line-through; text-decoration-color: var(--f); text-decoration-thickness: 2px; }
.tp-pill { flex: none; padding: 1px 8px; border-radius: 20px; background: var(--l); font-weight: 700; font-size: 11.5px; white-space: nowrap; }
.tp .tp-edit { flex: none; width: 38px; height: 44px; color: var(--rodape); font-size: 17px; }
.tp-linha.grande { border: 2px solid var(--f); border-radius: 18px; padding: 3px 10px; }
.tp-linha.grande .tp-tx { font-weight: 700; font-size: 15.5px; }
.tp-linha.entra { animation: tp-entra .4s ease-out; }
.tp-calmo { margin-top: 13px; padding: 12px; border: 1.5px solid var(--f); border-radius: 20px; text-align: center; background: linear-gradient(var(--l), #fff); animation: tp-entra .4s ease-out; }
.tp-calmo span { font-size: 28px; line-height: 1; }
.tp-calmo b { display: block; font-family: var(--f-titulo); font-weight: 600; font-size: 17px; }
.tp-calmo p { font-size: 13px; color: var(--cinza); }
.tp-semana { display: grid; grid-template-columns: repeat(7, 1fr); }
.tp-sdia { display: grid; justify-items: center; gap: 2px; padding: 4px 0; border-radius: 10px; }
.tp-sdia i, .tp-cal i { font-style: normal; font-family: var(--f-titulo); font-size: 10.5px; color: var(--cinza); }
.tp-sdia.hj { background: var(--azul-l); }
.hj > .tp-anel > span { box-shadow: inset 0 0 0 2px var(--tinta); }
.tp-tit { margin-top: 6px; text-align: center; font-family: var(--f-titulo); font-weight: 600; font-size: 22px; letter-spacing: .05em; text-transform: uppercase; color: var(--f); line-height: 1.1; }
.tp-sub { text-align: center; font-family: var(--f-script); font-size: 24px; line-height: 1.05; color: var(--f); }
.tp-abas { display: grid; grid-template-columns: 1fr 1fr; margin-top: 8px; text-align: center; font-family: var(--f-titulo); border-bottom: 1.5px solid var(--separador); }
.tp-abas > * { padding: 7px 0; font-weight: 500; color: var(--cinza); }
.tp-abas b { color: var(--tinta); font-weight: 600; box-shadow: 0 2px 0 var(--azul); }
.tp-abas i { font-style: normal; display: inline-grid; place-items: center; min-width: 20px; height: 20px; border-radius: 20px; background: var(--amarelo-l); font-size: 11px; }
.tp-campo { margin: 0 2px 10px; padding: 4px 0 7px; min-height: 33px; border-bottom: 1.4px solid var(--f); color: var(--rodape); }
.tp-campo.cheio { color: var(--tinta); }
.tp-caixa .tp-g2 { padding-bottom: 8px; }
.tp .tp-btn { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 46px; border: 2px solid var(--f); border-radius: 40px; background: #fff; font-family: var(--f-titulo); font-weight: 600; font-size: 15px; }
.tp .tp-btn.cheio { background: var(--f); }
.tp .tp-btn.ouv { background: var(--l); }
.tp-onda { display: flex; gap: 4px; align-items: center; height: 24px; }
.tp-onda i { width: 4px; height: 8px; border-radius: 4px; background: var(--tinta); animation: tp-onda .7s ease-in-out infinite alternate; }
.tp-onda i:nth-child(2) { animation-delay: .15s; } .tp-onda i:nth-child(3) { animation-delay: .3s; } .tp-onda i:nth-child(4) { animation-delay: .1s; } .tp-onda i:nth-child(5) { animation-delay: .25s; }
@keyframes tp-onda { to { height: 23px; } }
.tp-rasc { display: grid; gap: 2px; margin: 10px 0 4px; padding: 10px 12px 12px; border-radius: 16px; background: var(--amarelo-l); animation: tp-entra .35s ease-out; }
.tp-rasc b { font-family: var(--f-titulo); font-weight: 600; }
.tp-rasc span { padding: 4px 0; border-bottom: 1px dashed var(--amarelo); }
.tp .tp-rasc .tp-btn { margin-top: 10px; }
.tp-mes { margin: 12px 0 6px; text-align: center; font-family: var(--f-titulo); font-weight: 600; font-size: 16px; }
.tp-cal { display: grid; margin-top: 14px; grid-template-columns: repeat(7, 1fr); gap: 8px 0; justify-items: center; text-align: center; }
.tp-aviso { margin-top: 14px; padding: 10px 12px; border-radius: 16px; border: 1.5px solid var(--verde); background: var(--verde-l); font-size: 13px; text-align: center; }
.tp-nav { flex: none; display: flex; padding: 5px 2px 8px; border-top: 1.5px solid var(--separador); background: #fff; }
.tp .tp-nav button { flex: 1; min-width: 0; min-height: 46px; font-family: var(--f-titulo); font-size: 10.5px; color: var(--cinza); line-height: 1.2; }
.tp-nav span { display: block; font-size: 18px; }
.tp .tp-nav .on { color: var(--tinta); font-weight: 600; }

/* Folha de edição */
.tp-folhabg { position: absolute; inset: 0; background: rgba(59,70,86,.45); }
.tp-folha { position: absolute; left: 0; right: 0; bottom: 0; display: grid; padding: 8px 16px 22px; border-radius: 22px 22px 0 0; background: #fff; animation: tp-folha .3s ease-out; }
.tp-folha.parada { animation: none; }
@keyframes tp-folha { from { transform: translateY(100%); } }
.tp-grip { justify-self: center; width: 40px; height: 5px; border-radius: 5px; background: var(--separador); }
.tp-ftit { margin-top: 8px; font-family: var(--f-titulo); font-weight: 600; font-size: 18px; }
.tp-nome { padding: 9px 13px; border: 1.5px solid var(--f); border-radius: 13px; background: var(--l); font-size: 15px; }
.tp-freq { display: grid; grid-template-columns: auto 1.5fr auto; gap: 6px; }
.tp .tp-freq .tp-opt { padding: 4px 9px; font-size: 12.5px; }
.tp-dias { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; margin-top: 8px; animation: tp-entra .3s ease-out; }
.tp .tp-dias .tp-opt { padding: 0; font-size: 11.5px; }
.tp .tp-btn.salvar { margin-top: 14px; background: var(--l); }

/* Guia */
.tp-foco { position: absolute; z-index: 5; border-radius: 16px; pointer-events: none; box-shadow: 0 0 0 3px var(--amarelo), 0 0 0 900px rgba(59,70,86,.5); }
.tp-foco.redondo { border-radius: 40px; }
.tp-foco::after { content: '👆'; position: absolute; right: 12%; bottom: -15px; font-size: 27px; line-height: 1; filter: drop-shadow(0 2px 3px rgba(0,0,0,.3)); animation: tp-dedo 1s ease-in-out infinite; }
@keyframes tp-dedo { 50% { transform: translateY(6px); } }
.tp-foco.treme { animation: tp-treme .4s; }
@keyframes tp-treme { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.tp-balao { position: absolute; z-index: 6; left: 12px; right: 12px; padding: 11px 14px; border-radius: 16px; background: var(--tinta); color: #fff; font-size: 14.5px; line-height: 1.35; text-align: center; text-wrap: balance; pointer-events: none; box-shadow: 0 8px 22px rgba(0,0,0,.22); }
.tp-balao b { color: var(--amarelo); }
.tp-balao::after { content: ''; position: absolute; left: calc(var(--seta, 50%) - 12px); bottom: -8px; border: 9px solid transparent; border-bottom: 0; border-top-color: var(--tinta); }
.tp-balao.abaixo::after { bottom: auto; top: -8px; border: 9px solid transparent; border-top: 0; border-bottom-color: var(--tinta); }
.tp-balao.abaixo { margin-top: 8px; }
.tp-balao.sobe { animation: tp-entra .25s ease-out; }
.tp-pontos { display: flex; justify-content: center; gap: 5px; margin-top: 14px; min-height: 8px; }
.tp-pontos i { width: 8px; height: 8px; border-radius: 8px; background: var(--separador); transition: width .25s, background-color .25s; }
.tp-pontos i.ok { background: var(--verde); } .tp-pontos i.on { width: 22px; background: var(--amarelo); }
.tp-rodape { display: grid; justify-items: center; min-height: 58px; }
.tp-sair { min-height: 40px; padding: 4px 18px; border: 0; background: none; font: inherit; font-size: 14px; color: var(--cinza); text-decoration: underline; cursor: pointer; }
.tp-fala { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.tp-toast { position: absolute; z-index: 7; left: 16px; right: 16px; bottom: 82px; padding: 10px 14px; border-radius: 30px; background: var(--tinta); color: #fff; font-weight: 700; font-size: 14px; text-align: center; text-wrap: balance; animation: tp-entra .25s ease-out; }
.tp-confete { position: absolute; inset: 0; z-index: 9; pointer-events: none; overflow: hidden; }
.tp-confete i { position: absolute; top: -14px; width: 9px; height: 13px; border-radius: 3px; animation: tp-cai 1.5s ease-in forwards; }
@keyframes tp-cai { to { transform: translateY(680px) rotate(var(--g)); opacity: .5; } }

/* Fim */
.tp-fim { position: absolute; inset: 0; z-index: 8; display: grid; align-content: center; justify-items: center; gap: 12px; padding: 22px; text-align: center; text-wrap: balance; background: rgba(255,252,248,.97); animation: tp-entra .4s ease-out; }
.tp-fim .tp-ok { display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50%; background: var(--verde); color: #fff; font-size: 40px; font-weight: 800; animation: tp-pulo .6s ease .2s; }
.tp-fim h3 { font-size: 25px; margin: 0; }
.tp-fim p { font-size: 15.5px; }
.tp-fim .cta { font-size: 17px; min-height: 58px; padding: 8px 14px; margin-top: 4px; }
.tp .tp-denovo { min-height: 44px; padding: 0 14px; font-family: var(--f-titulo); font-weight: 500; font-size: 15px; color: var(--cinza); text-decoration: underline; }

body.tour-on .barra, body.tour-on .whats { display: none; }
@media (max-width: 359px) { .tp { width: 288px; } }
@media (prefers-reduced-motion: reduce) { .tp *, .tp *::after { animation: none !important; transition: none !important; } }
