:root {
  --bg: #f4f1ea; --tinta: #15161c; --suave: #6f6b64; --linha: #e2ddd2; --branco: #fff;
  --roxo: #8f7cf7; --lavanda: #c9bdfb; --lima: #ddf36c; --amarelo: #f8c64c; --azul: #a9ccf8; --rosa: #f3a8e7; --coral: #ee6b4d;
  --ok-bg: #e4f7a6; --ok-tx: #3f5a00; --al-bg: #ffdccf; --al-tx: #9c3214;
  --raio: 28px;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--tinta); font-family: Outfit, system-ui, sans-serif; touch-action: manipulation; -webkit-tap-highlight-color: transparent; -webkit-font-smoothing: antialiased; }
#app { max-width: 480px; margin: 0 auto; min-height: 100dvh; padding: 0 16px; }
button { font-family: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; }
.ic { width: 22px; height: 22px; flex: none; }
.sub { color: var(--suave); margin: 6px 0 14px; font-size: 16px; }
.erro-txt { color: var(--coral) !important; font-weight: 600; }
.mega { font-size: 40px; font-weight: 700; line-height: 1.02; margin: 12px 0 4px; }

/* cores de card */
.c-roxo { background: var(--roxo); color: #fff; }
.c-lavanda { background: var(--lavanda); }
.c-lima { background: var(--lima); }
.c-amarelo { background: var(--amarelo); }
.c-azul { background: var(--azul); }
.c-rosa { background: var(--rosa); }
.c-coral { background: var(--coral); color: #fff; }

/* botões e etiquetas */
.btn-escuro, .btn-borda { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 16px 22px; font-size: 17px; font-weight: 600; border: 0; }
.btn-escuro { background: var(--tinta); color: #fff; }
.btn-escuro .ic { width: 18px; height: 18px; }
.btn-borda { background: transparent; border: 1.5px solid var(--tinta); }
.btn-borda .ic { width: 18px; height: 18px; }
.btn-escuro:active, .btn-borda:active, .etapa:active, .tecla:active { transform: scale(.97); }
.largo { width: 100%; }
.duplo { display: flex; gap: 10px; width: 100%; } .duplo > * { flex: 1; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 500; background: rgba(255,255,255,.6); }
.tag.escura { background: var(--tinta); color: #fff; }
.tag.escura .ic { width: 14px; height: 14px; color: var(--lima); }
.tag.lima, .tag.bom { background: var(--lima); color: var(--tinta); }
.tag.azul { background: var(--azul); }
.tag.medio { background: var(--amarelo); } .tag.ruim { background: var(--coral); color: #fff; }

/* conta */
.tela-conta { min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; padding: 32px 0; }
.tela-conta > .circulo-btn { position: absolute; top: 16px; }
.marca { position: relative; width: 72px; height: 72px; border-radius: 24px; background: var(--lavanda); display: grid; place-items: center; }
.marca .ic { width: 34px; height: 34px; }
.marca-brilho { position: absolute; right: -10px; top: -10px; color: var(--roxo); } .marca-brilho .ic { width: 26px; height: 26px; }
.tela-conta .mega { font-size: 44px; margin-top: 24px; }
.destaques { display: flex; gap: 8px; margin: 4px 0 28px; }
.pilha-botoes { display: flex; flex-direction: column; gap: 10px; }
.form { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.campo { display: flex; flex-direction: column; gap: 6px; font-weight: 500; }
.campo input { font: 400 17px Outfit, system-ui, sans-serif; color: var(--tinta); padding: 16px 18px; border-radius: 20px; border: 1.5px solid var(--linha); background: var(--branco); outline: none; }
.campo input:focus { border-color: var(--tinta); }
.form .erro-txt:empty { display: none; }
.form .btn-escuro { margin-top: 6px; }
.btn-escuro:disabled { opacity: .5; }
.link { background: none; border: 0; padding: 4px; font: 600 16px Outfit, sans-serif; color: var(--tinta); text-decoration: underline; text-underline-offset: 3px; }
.centro-txt { text-align: center; margin-top: 18px; }
.treme { animation: treme .35s; }
@keyframes treme { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

/* casca */
.pagina { padding-bottom: 120px; }
.nav { position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(448px, calc(100% - 32px)); display: flex; justify-content: space-around; padding: 10px; border-radius: 999px; background: var(--tinta); z-index: 10; }
.nav button { width: 64px; height: 56px; border-radius: 999px; border: 0; background: transparent; color: #fff; display: grid; place-items: center; }
.nav button.ativo { background: #fff; color: var(--tinta); width: 72px; }

/* início */
.topo { display: flex; align-items: center; gap: 12px; padding: 18px 0 14px; }
.avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--lavanda); display: grid; place-items: center; font-weight: 700; font-size: 22px; }
.ola { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.ola b { font-size: 18px; font-weight: 600; } .ola span { color: var(--suave); }
.pilula-fogo { display: flex; align-items: center; gap: 4px; height: 52px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--linha); background: var(--branco); }
.pilula-fogo .ic { color: var(--coral); fill: var(--coral); } .pilula-fogo b { font-size: 18px; }

.hero { position: relative; overflow: hidden; border-radius: var(--raio); background: var(--lavanda); padding: 24px; min-height: 220px; }
.hero-txt { position: relative; z-index: 2; max-width: 62%; }
.hero h1 { font-size: 38px; font-weight: 700; line-height: 1; }
.hero p { margin: 10px 0 18px; font-size: 15px; }
.hero .btn-escuro { padding: 13px 18px; font-size: 15px; }
.formas span { position: absolute; display: block; }
.formas .f1 { width: 120px; height: 120px; right: -18px; top: 18px; border-radius: 50%; border: 26px solid var(--amarelo); }
.formas .f2 { width: 84px; height: 84px; right: 70px; top: 96px; border-radius: 26px; background: var(--tinta); transform: rotate(18deg); }
.formas .f3 { width: 64px; height: 64px; right: 14px; bottom: -14px; border-radius: 50%; background: var(--lima); }
.formas .f4 { width: 34px; height: 34px; right: 108px; top: 30px; border-radius: 50%; background: var(--roxo); }

.semana { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: 16px 0; }
.dia { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 12px; border-radius: 999px; border: 1.5px solid var(--linha); }
.dia i { width: 6px; height: 6px; border-radius: 50%; margin-bottom: 4px; }
.dia i.on { background: var(--roxo); }
.dia small { color: var(--suave); font-size: 13px; text-transform: capitalize; } .dia b { font-size: 17px; font-weight: 600; }
.dia.hoje { background: var(--tinta); border-color: var(--tinta); color: #fff; } .dia.hoje small { color: #bdbdc4; } .dia.hoje i.on { background: var(--lima); }

.saldo { border-radius: var(--raio); background: var(--azul); padding: 20px 22px; }
.saldo-top { display: flex; justify-content: space-between; align-items: center; font-size: 18px; font-weight: 500; }
.saldo-top .tag { background: var(--roxo); color: #fff; }
.saldo-num { font-size: 52px; font-weight: 600; letter-spacing: -0.03em; margin: 6px 0 10px; }
.saldo-num small { font-size: 26px; font-weight: 500; }

.secao { font-size: 28px; font-weight: 600; margin: 30px 0 4px; }
.unidade { color: var(--suave); margin: 14px 0 10px; }
.pilha { display: flex; flex-direction: column; gap: 10px; }
.etapa { text-align: left; border: 0; border-radius: var(--raio); padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.etapa-top { display: flex; justify-content: space-between; align-items: center; }
.etapa h3 { font-size: 28px; font-weight: 600; line-height: 1.05; }
.etapa p { margin: 0; font-size: 14px; opacity: .8; }
.circulo { width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--tinta); display: grid; place-items: center; }
.etapa.trancada { background: #e9e5dc; color: #9b968c; cursor: default; }
.etapa.trancada .tag.escura { background: #cfc9bd; color: #fff; }
.etapa.trancada .circulo { background: transparent; border: 1.5px solid #cfc9bd; color: #9b968c; }
.estrelas { display: flex; gap: 2px; }
.estrelas span { color: rgba(0,0,0,.15); } .estrelas span.on { color: var(--tinta); }
.c-roxo .estrelas span.on, .c-coral .estrelas span.on { color: var(--lima); }
.c-roxo .estrelas span, .c-coral .estrelas span { color: rgba(255,255,255,.3); }
.estrelas .ic { width: 20px; height: 20px; }

/* progresso */
.topo-mega { padding-top: 24px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0 6px; width: 100%; }
.tile { border-radius: 24px; padding: 16px 14px; display: flex; flex-direction: column; text-align: left; }
.tile small { font-size: 13px; opacity: .8; } .tile b { font-size: 34px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; margin-top: 8px; } .tile span { font-size: 13px; opacity: .8; }
.lista { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.linha { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 22px; background: var(--branco); border: 1.5px solid var(--linha); }
.linha b { display: block; font-weight: 600; } .linha small { color: var(--suave); }
.nota-mini { min-width: 52px; text-align: center; padding: 8px 10px; border-radius: 999px; font-weight: 600; background: #eee; }
.nota-mini.bom { background: var(--lima); } .nota-mini.medio { background: var(--amarelo); } .nota-mini.ruim { background: var(--coral); color: #fff; }

/* lição */
.licao { min-height: 100dvh; display: flex; flex-direction: column; }
.barra { display: flex; align-items: center; gap: 12px; padding: 16px 0 6px; }
.circulo-btn { width: 48px; height: 48px; flex: none; border-radius: 50%; border: 1.5px solid var(--linha); background: var(--branco); display: grid; place-items: center; }
.progresso { flex: 1; height: 12px; border-radius: 999px; background: var(--linha); overflow: hidden; }
.progresso div { height: 100%; border-radius: 999px; background: var(--tinta); transition: width .4s; }
.contador { font-weight: 600; color: var(--suave); }
.ex { flex: 1; padding: 18px 0 8px; }
.ex > .tag { margin-top: 6px; }
.cartao { margin: 0 0 12px; padding: 22px; border-radius: var(--raio); font-size: 22px; line-height: 1.35; font-weight: 500; }
.rodape { position: sticky; bottom: 0; padding: 14px 0 max(18px, env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--bg) 22%); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.rodape .sub { margin: 4px 0; }

.gravador { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 10px 10px 22px; border-radius: 999px; background: var(--tinta); color: #fff; }
.relogio { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; min-width: 92px; }
.dica { color: #bdbdc4; font-size: 13px; text-align: right; flex: 1; }
.mic { order: 3; width: 68px; height: 68px; border-radius: 50%; border: 0; background: var(--lima); color: var(--tinta); display: grid; place-items: center; }
.mic .ic { width: 30px; height: 30px; }
.mic.gravando { background: var(--coral); color: #fff; animation: pulsa 1.2s infinite; }
@keyframes pulsa { 0% { box-shadow: 0 0 0 0 rgba(238,107,77,.6); } 100% { box-shadow: 0 0 0 16px rgba(238,107,77,0); } }
.analisando { display: flex; gap: 8px; padding: 14px; }
.analisando span { width: 14px; height: 14px; border-radius: 50%; background: var(--roxo); animation: sobe .9s infinite; }
.analisando span:nth-child(2) { animation-delay: .15s; background: var(--amarelo); } .analisando span:nth-child(3) { animation-delay: .3s; background: var(--coral); }
@keyframes sobe { 50% { transform: translateY(-8px); } }

#resultado:not(:empty) { margin: 10px 0 12px; }
.placar-fala { text-align: center; padding: 8px 0 14px; }
.placar-fala small { color: var(--suave); font-size: 15px; }
.nota-grande { font-size: 84px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; margin: 4px 0 10px; }
.nota-grande span { font-size: 28px; color: var(--suave); font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chip { padding: 8px 14px; border-radius: 999px; background: var(--branco); border: 1.5px solid var(--linha); font-size: 14px; font-weight: 500; }
.chip.ok { background: var(--ok-bg); border-color: var(--ok-bg); color: var(--ok-tx); }
.chip.alerta { background: var(--al-bg); border-color: var(--al-bg); color: var(--al-tx); }
.treinador { margin: 16px 0 12px; padding: 18px; border-radius: var(--raio); background: var(--lavanda); }
.treinador p { margin: 12px 0 0; font-size: 17px; line-height: 1.45; }
details { color: var(--suave); padding: 4px 4px 0; } summary { cursor: pointer; font-weight: 600; }

.respira { position: relative; height: 260px; display: grid; place-items: center; }
.respira .anel, .respira .bola { position: absolute; border-radius: 50%; }
.respira .anel { width: 130px; height: 130px; background: var(--lavanda); }
.respira .bola { width: 70px; height: 70px; background: var(--roxo); }
.fase { text-align: center; font-size: 28px; font-weight: 600; margin: 0; }

.resposta { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.certo { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 22px; font-weight: 500; }
.num { width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--tinta); color: #fff; display: grid; place-items: center; font-size: 14px; font-weight: 600; }
.blocos { display: flex; flex-direction: column; gap: 8px; }
.bloco { text-align: left; padding: 16px 18px; border-radius: 22px; border: 1.5px solid var(--linha); background: var(--branco); font-size: 16px; font-weight: 500; }
.veredito { display: flex; align-items: center; gap: 6px; font-size: 20px; font-weight: 600; margin: 4px 0 8px; }
.veredito .ic { color: var(--roxo); }

/* perfil */
.perfil-topo { display: flex; align-items: center; gap: 16px; padding: 28px 0 18px; }
.perfil-topo .mega { margin: 0; font-size: 34px; } .perfil-topo .sub { margin: 2px 0 8px; }
.avatar.grande { width: 84px; height: 84px; font-size: 36px; flex: none; }
.sub-card { margin: 0; opacity: .85; }
#sair { margin-top: 16px; }

/* fim */
.fim { min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 32px 0; }
.estrelas.grandes .ic { width: 52px; height: 52px; }
.estrelas.grandes span.on { color: var(--amarelo); }
.brilho-txt { color: var(--roxo); } .brilho-txt .ic { width: 34px; height: 34px; vertical-align: top; }
.fim .duplo { margin-top: 14px; }
.saldo.c-amarelo { background: var(--amarelo); } .saldo.c-roxo { background: var(--roxo); color: #fff; }

/* anamnese */
.onboarding .mega { font-size: 34px; }
.opcoes { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.opcao { display: flex; align-items: center; gap: 12px; text-align: left; padding: 18px 20px; border-radius: 22px; border: 1.5px solid var(--linha); font-size: 18px; font-weight: 600; }
:where(.opcao) { background: var(--branco); }
.opcao[class*="c-"] { border-color: transparent; }
.opcao .ic { margin-left: auto; width: 20px; height: 20px; }
.opcao b { font-size: 20px; } .opcao small { margin-left: auto; font-weight: 500; opacity: .8; }
.opcao .num { width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--tinta); color: #fff; display: grid; place-items: center; font-size: 14px; }
.opcao:active { transform: scale(.98); }
.marcavel .caixa { margin-left: auto; width: 28px; height: 28px; border-radius: 9px; border: 1.5px solid var(--linha); display: grid; place-items: center; color: transparent; flex: none; }
.marcavel .caixa .ic { margin: 0; width: 18px; height: 18px; }
.marcavel.on { border-color: var(--tinta); }
.marcavel.on .caixa { background: var(--tinta); border-color: var(--tinta); color: var(--lima); }
.horas { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 8px 0 14px; }
.opcao.hora { justify-content: center; font-size: 26px; padding: 22px; }

/* avisos e premium */
.aviso-plano { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; margin: 0 0 14px; padding: 14px 16px; border-radius: 22px; border: 0; background: var(--tinta); color: #fff; font-size: 15px; line-height: 1.35; }
.aviso-plano .ic { color: var(--lima); flex: none; }
.aviso-plano.estatico { background: var(--branco); color: var(--tinta); border: 1.5px solid var(--linha); margin: 10px 0 0; }
.aviso-plano.estatico .ic { color: var(--tinta); }
.aviso-plano.estatico[class*="c-"] { border-color: transparent; }
.aviso-plano.c-lima { background: var(--lima); } .aviso-plano.c-amarelo { background: var(--amarelo); }
.tag.coral { background: var(--coral); color: #fff; }
.brilho-roxo { color: var(--roxo); width: 34px; height: 34px; vertical-align: top; }
.beneficios { margin: 18px 0; }
.linha .check { width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--lima); display: grid; place-items: center; }
.linha .check .ic { width: 18px; height: 18px; }
.beneficios .linha { justify-content: flex-start; }
.preco { border-radius: var(--raio); padding: 20px 22px; margin-bottom: 10px; }
.preco .saldo-num { margin: 4px 0 2px; }
a.btn-escuro, a.btn-borda, label.btn-borda { text-decoration: none; cursor: pointer; }
.meta-barra { height: 12px; border-radius: 999px; background: rgba(21,22,28,.12); overflow: hidden; margin: -2px 0 12px; }
.meta-barra div { height: 100%; border-radius: 999px; background: var(--tinta); }
.saldo .btn-escuro { margin-top: 14px; padding: 13px 18px; font-size: 15px; }

/* Raio-X */
.acoes-raiox { margin: 14px 0 0; }
.acoes-raiox .btn-escuro, .acoes-raiox .btn-borda { padding: 16px 12px; }
#titulo { font: 400 17px Outfit, system-ui, sans-serif; padding: 16px 18px; border-radius: 20px; border: 1.5px solid var(--linha); background: var(--branco); color: var(--tinta); }
.campo { margin-top: 14px; }
.clicavel { width: 100%; text-align: left; font: inherit; color: inherit; }
.grafico { display: flex; align-items: flex-end; gap: 4px; height: 150px; padding: 12px 10px 0; border-radius: 22px; background: var(--branco); border: 1.5px solid var(--linha); overflow-x: auto; }
.grafico .col { position: relative; flex: 1 0 14px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.grafico .col small { font-size: 11px; color: var(--suave); padding: 4px 0 6px; }
.barra-ppm { width: 100%; max-width: 26px; border-radius: 8px 8px 4px 4px; background: var(--azul); min-height: 4px; }
.barra-ppm.ok, .barra-ppm.bom { background: var(--lima); } .barra-ppm.fora, .barra-ppm.ruim { background: var(--coral); }
.barra-ppm.medio { background: var(--amarelo); } .barra-ppm.vazio { background: var(--linha); }
.pino { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--tinta); color: #fff; font-size: 11px; font-weight: 600; }
.grafico .pino { position: absolute; top: 0; }
.legenda { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; }
.ponto { display: inline-block; width: 12px; height: 12px; border-radius: 4px; } .ponto.ok { background: var(--lima); } .ponto.fora { background: var(--coral); }
.itens { margin: 8px 0 0; padding-left: 22px; line-height: 1.5; font-size: 16px; } .itens li { margin-bottom: 8px; }
.trecho { border-radius: 22px; padding: 16px 18px; } .trecho p { margin: 8px 0 0; line-height: 1.4; }
.citacao { font-weight: 600; font-size: 17px; }
.raiox-rel .ex { padding-bottom: 40px; }

/* progresso */
.antes-depois { margin-top: 12px; }
.ad { display: flex; align-items: center; gap: 18px; margin: 8px 0 12px; }
.ad div { display: flex; flex-direction: column; } .ad small { opacity: .8; } .ad b { font-size: 46px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.contagem { font-size: 18px; color: var(--suave); font-weight: 500; }
.medalhas { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 12px; }
.medalha { border-radius: 22px; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.medalha .ic { width: 28px; height: 28px; margin-bottom: 4px; }
.medalha b { font-size: 16px; } .medalha small { font-size: 13px; opacity: .85; }
.medalha.apagada { background: #ebe7de; color: #9b968c; }

/* perfil */
.ajustes { display: flex; flex-direction: column; }
.campo select { font: 500 17px Outfit, system-ui, sans-serif; color: var(--tinta); padding: 15px 16px; border-radius: 20px; border: 1.5px solid var(--linha); background: var(--branco); appearance: none; }
.ajustes .btn-borda { margin-top: 14px; }
.pagina a { color: var(--tinta); }
.fim > .tag, .ex > .tag { align-self: flex-start; width: fit-content; }
.linha small { display: block; color: var(--suave); }
.hero-txt { max-width: 56%; }
.hero-txt p { font-size: 15px; line-height: 1.3; }
.formas .f2 { right: 30px; top: 124px; width: 70px; height: 70px; }
.formas .f4 { right: 92px; top: 22px; }
