/* Finanças da Casa: telas do app (celular primeiro). Segue as maquetes aprovadas da financas-casa-2. */
:root {
  --verde: #0F3D2E;
  --verde-2: #17573F;
  --verde-3: #1F6B4E;
  --amarelo: #FBBF24;
  --amarelo-claro: #FFF7E0;
  --fundo: #F3F6F4;
  --cartao: #ffffff;
  --texto: #12201a;
  --suave: #5d6b64;
  --mais-suave: #7a867f;
  --linha: #eef1ef;
  --campo: #EEF3F0;
  --positivo: #15803D;
  --alerta: #F59E0B;
  --perigo: #DC2626;
  --sombra: 0 1px 2px rgba(10, 30, 20, .05), 0 6px 20px rgba(10, 30, 20, .04);
  --r: 20px;
  --titulo: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
  --corpo: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --topo-seguro: env(safe-area-inset-top, 0px);
  --baixo-seguro: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--fundo);
  color: var(--texto);
  font: 15px/1.4 var(--corpo);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- casca */
.app {
  position: relative;
  height: 100dvh;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background: var(--fundo);
  overflow: hidden;
}
.palco { flex: 1; min-height: 0; position: relative; }
.vista {
  position: absolute; inset: 0;
  overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: calc(var(--topo-seguro) + 14px) 16px 20px;
  display: flex; flex-direction: column; gap: 12px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .22s ease, transform .22s ease, visibility 0s .22s;
}
.vista.aqui { opacity: 1; visibility: visible; transform: none; transition: opacity .22s ease, transform .22s ease; }
.vista > * { flex: none; }

/* ---------- topo */
.oi { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.oi small { display: block; font-size: 13px; color: var(--suave); }
.oi b, .tit { font-family: var(--titulo); font-size: 26px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.av {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  background: var(--amarelo); color: var(--verde);
  display: grid; place-items: center; font-weight: 700; font-size: 16px; text-decoration: none;
}
.quem { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
.quem::-webkit-scrollbar { display: none; }
.quem button {
  flex: none; padding: 7px 14px; border-radius: 99px; background: #E3EAE6; color: var(--verde);
  font-size: 13.5px; font-weight: 650; transition: background .2s, color .2s;
}
.quem button.on { background: var(--verde); color: #fff; }
.vendo {
  display: flex; align-items: center; gap: 8px; font-size: 13px; color: #6b4e00;
  background: var(--amarelo-claro); border: 1px solid #FBE3A0; border-radius: 12px; padding: 8px 12px;
}

/* ---------- cartões */
.cx { background: var(--cartao); border-radius: var(--r); padding: 14px 16px; box-shadow: var(--sombra); }
.cx > h4, .rotulo {
  margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--suave);
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.cx > h4 .acao, .link-acao { text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 650; color: var(--verde-3); }

.heroi {
  position: relative; overflow: hidden; color: #fff; border-radius: 26px; padding: 18px 18px 16px;
  background: linear-gradient(150deg, var(--verde) 0%, var(--verde-2) 100%);
  box-shadow: 0 14px 30px -14px rgba(15, 61, 46, .55);
}
.heroi::after {
  content: ""; position: absolute; right: -50px; top: -50px; width: 190px; height: 190px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(251, 191, 36, .34), transparent); pointer-events: none;
}
.heroi small { font-size: 12px; opacity: .78; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
.heroi strong {
  display: block; margin-top: 4px; font-family: var(--titulo); font-size: 46px; font-weight: 700;
  line-height: 1.02; letter-spacing: -.03em; font-variant-numeric: tabular-nums;
}
.heroi strong.neg { color: #FCA5A5; }
.heroi .sub { font-size: 13.5px; opacity: .82; margin-top: 4px; }
.barra { height: 8px; border-radius: 9px; background: rgba(255, 255, 255, .16); margin-top: 14px; overflow: hidden; }
.barra i {
  display: block; height: 100%; width: 0; border-radius: 9px; background: var(--amarelo);
  transition: width 1s cubic-bezier(.2, .8, .2, 1);
}
.barra i.cheia { background: #F87171; }
.heroi .pes { display: flex; gap: 16px; margin-top: 12px; font-size: 13px; }
.heroi .pes span { opacity: .78; }
.heroi .pes b { font-weight: 650; opacity: 1; }

/* linhas de lançamento */
.lin { display: flex; align-items: center; gap: 11px; padding: 9px 0; width: 100%; text-align: left; }
.lin + .lin { border-top: 1px solid var(--linha); }
.bol {
  width: 38px; height: 38px; border-radius: 12px; flex: none; display: grid; place-items: center; font-size: 18px;
  background: var(--tom, #EEF3F0);
}
.lin .t { flex: 1; min-width: 0; }
.lin .t b { display: block; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lin .t small { display: block; font-size: 12.5px; color: var(--mais-suave); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lin .v { font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lin .v.mais { color: var(--positivo); }
.lin.toca { border-radius: 12px; transition: background .15s; }
.lin.toca:active { background: #F5F8F6; }
.vazio { color: var(--mais-suave); font-size: 14px; padding: 6px 0 2px; }

.dica {
  background: var(--amarelo-claro); border: 1px solid #FBE3A0; border-radius: 18px; padding: 13px 15px;
  font-size: 14.5px; line-height: 1.45; display: flex; gap: 10px; align-items: flex-start;
}
.dica .ico { flex: none; width: 26px; height: 26px; border-radius: 9px; background: var(--amarelo); color: var(--verde); display: grid; place-items: center; }
.dica .ico svg { width: 15px; height: 15px; }
.dica b { color: #92400E; }
.carregando { color: transparent !important; background: linear-gradient(90deg, #f6ecd0, #fff6dc, #f6ecd0); background-size: 200% 100%; animation: brilho 1.4s infinite linear; border-radius: 8px; }
@keyframes brilho { to { background-position: -200% 0; } }

/* ---------- campo de escrever (fixo embaixo) */
.campo {
  flex: none; margin: 0 12px 10px; background: #fff; border-radius: 26px; padding: 6px 6px 6px 16px;
  display: flex; align-items: flex-end; gap: 8px; box-shadow: 0 6px 22px rgba(10, 30, 20, .13);
  position: relative; z-index: 3;
}
.campo textarea {
  flex: 1; min-width: 0; border: 0; outline: 0; resize: none; background: transparent; padding: 9px 0;
  font-size: 16px; line-height: 1.35; max-height: 120px; color: var(--texto);
}
.campo textarea::placeholder { color: #8a958f; }
.campo .bt {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex: none;
  transition: transform .15s, background .2s, opacity .2s;
}
.campo .bt:active { transform: scale(.92); }
.campo .bt svg { width: 20px; height: 20px; }
.campo .mic { background: var(--campo); color: var(--verde); }
.campo .env { background: var(--verde); color: var(--amarelo); }
.campo .env:disabled { opacity: .45; }
.campo.gravando { padding-left: 10px; }
.gravacao { flex: 1; display: none; align-items: center; gap: 10px; padding: 9px 0; font-size: 15px; font-weight: 600; }
.campo.gravando .gravacao { display: flex; }
.campo.gravando textarea, .campo.gravando .env { display: none; }
.campo.gravando .mic { background: var(--perigo); color: #fff; }
.gravacao .ponto { width: 10px; height: 10px; border-radius: 50%; background: var(--perigo); animation: pulsa 1s infinite; }
.gravacao .cancelar { margin-left: auto; font-size: 13.5px; font-weight: 600; color: var(--suave); padding: 6px 10px; }
.gravacao .ondas { display: flex; gap: 3px; align-items: center; height: 18px; }
.gravacao .ondas i { width: 3px; border-radius: 2px; background: var(--verde-3); height: 30%; animation: onda .9s infinite ease-in-out; }
.gravacao .ondas i:nth-child(2) { animation-delay: .15s; } .gravacao .ondas i:nth-child(3) { animation-delay: .3s; }
.gravacao .ondas i:nth-child(4) { animation-delay: .45s; } .gravacao .ondas i:nth-child(5) { animation-delay: .6s; }
@keyframes onda { 50% { height: 100%; } }
@keyframes pulsa { 50% { opacity: .35; } }

/* ---------- abas */
.abas {
  flex: none; display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-top: 1px solid #e9eeeb;
  padding: 6px 6px calc(6px + var(--baixo-seguro)); position: relative; z-index: 4;
}
.abas a {
  display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 5px 0 3px; text-decoration: none;
  font-size: 11.5px; font-weight: 650; color: var(--mais-suave); transition: color .2s;
}
.abas a svg { width: 24px; height: 24px; }
.abas a .bolha { display: grid; place-items: center; width: 54px; height: 30px; border-radius: 99px; transition: background .25s; }
.abas a.aqui { color: var(--verde); }
.abas a.aqui .bolha { background: #E3EEE8; }

/* ---------- conversa */
.msgs { display: flex; flex-direction: column; gap: 8px; padding-bottom: 6px; }
.msg { max-width: 84%; padding: 10px 14px; border-radius: 20px; font-size: 15px; line-height: 1.4; animation: entra .28s ease both; overflow-wrap: anywhere; }
.msg.ela { align-self: flex-end; background: var(--verde); color: #fff; border-bottom-right-radius: 6px; }
.msg.ia { align-self: flex-start; background: #fff; border-bottom-left-radius: 6px; box-shadow: var(--sombra); }
.msg.ia.erro { background: #FEF2F2; color: #7f1d1d; }
.msg .quando { display: block; font-size: 11px; opacity: .55; margin-top: 3px; text-align: right; }
.dia-sep { align-self: center; font-size: 12px; font-weight: 650; color: var(--mais-suave); background: #E6ECE8; padding: 4px 10px; border-radius: 99px; margin: 6px 0 2px; }
@keyframes entra { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.anot {
  margin-top: 8px; display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  background: #F0FAF3; border: 1px solid #CDEBD6; border-radius: 14px; padding: 8px 10px; transition: background .15s;
}
.anot:active { background: #E2F4E8; }
.anot .bol { width: 32px; height: 32px; font-size: 15px; border-radius: 10px; background: #fff; }
.anot .t { flex: 1; min-width: 0; }
.anot b { display: block; font-size: 14px; font-weight: 650; }
.anot small { display: block; font-size: 12px; color: var(--suave); }
.anot .ok { color: var(--positivo); font-weight: 800; font-size: 15px; }
.anot.entrada { background: #F0F7FF; border-color: #CFE0F7; }
.anot.apagado { background: #F5F5F4; border-color: #e7e5e4; opacity: .7; }
.anot.apagado b { text-decoration: line-through; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.chips button { font-size: 13px; font-weight: 650; padding: 6px 12px; border-radius: 99px; background: var(--campo); color: var(--verde); }
.chips button.forte { background: var(--amarelo); }
.digitando { display: inline-flex; gap: 4px; padding: 4px 2px; }
.digitando i { width: 7px; height: 7px; border-radius: 50%; background: #9aa7a0; animation: pula 1.1s infinite; }
.digitando i:nth-child(2) { animation-delay: .15s; } .digitando i:nth-child(3) { animation-delay: .3s; }
@keyframes pula { 30% { transform: translateY(-5px); opacity: 1; } 0%, 60%, 100% { opacity: .5; } }
.sugestoes { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.sugestoes p { margin: 0 0 4px; color: var(--suave); font-size: 14px; }
.sugestoes button { align-self: flex-start; background: #fff; border-radius: 16px; padding: 10px 14px; font-size: 14.5px; box-shadow: var(--sombra); text-align: left; }
.lista-mini { margin-top: 6px; border-top: 1px solid var(--linha); }
.lista-mini .lin { padding: 6px 0; }
.lista-mini .bol { width: 28px; height: 28px; font-size: 13px; border-radius: 9px; }
.lista-mini .t b, .lista-mini .v { font-size: 13.5px; }

/* ---------- mês */
.mes-nav { display: flex; align-items: center; justify-content: space-between; }
.mes-nav .tit { text-align: center; flex: 1; }
.mes-nav .tit small { display: block; font-family: var(--corpo); font-size: 13px; font-weight: 500; color: var(--suave); letter-spacing: 0; }
.seta { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: var(--sombra); color: var(--verde); }
.seta:disabled { opacity: .35; }
.seta svg { width: 20px; height: 20px; }

.total-mes { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.total-mes strong { display: block; font-family: var(--titulo); font-size: 34px; font-weight: 700; letter-spacing: -.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.total-mes small { font-size: 13px; color: var(--suave); }
.pilula { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 700; padding: 5px 10px; border-radius: 99px; white-space: nowrap; }
.pilula.bom { background: #E7F6EC; color: var(--positivo); }
.pilula.ruim { background: #FDECEC; color: #B91C1C; }
.pilula.neutro { background: var(--campo); color: var(--suave); }

.grafico { display: grid; place-items: center; margin: 14px 0 6px; position: relative; }
.grafico svg { width: 220px; height: 220px; overflow: visible; }
.grafico .seg { fill: none; stroke-linecap: butt; cursor: pointer; transition: opacity .3s, stroke-width .3s; }
.grafico.filtrado .seg { opacity: .18; }
.grafico.filtrado .seg.on { opacity: 1; stroke-width: 30; }
.grafico .meio { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; text-align: center; }
.grafico .meio b { display: block; font-family: var(--titulo); font-size: 24px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.grafico .meio small { display: block; font-size: 12.5px; color: var(--suave); max-width: 120px; }
.grafico .meio .emo { font-size: 20px; line-height: 1; margin-bottom: 2px; }

.leg { display: flex; flex-direction: column; margin-top: 4px; }
.leg button { display: grid; grid-template-columns: 12px 1fr auto; column-gap: 10px; row-gap: 5px; align-items: center; padding: 10px 6px; border-radius: 12px; text-align: left; transition: background .2s, opacity .3s; }
.leg button + button { border-top: 1px solid var(--linha); }
.leg button.on { background: #F3F7F5; }
.leg.filtrado button:not(.on) { opacity: .5; }
.leg .cor { width: 12px; height: 12px; border-radius: 4px; background: var(--cor); }
.leg .nome { font-size: 14.5px; font-weight: 600; }
.leg .nome small { font-weight: 500; color: var(--mais-suave); font-size: 12.5px; margin-left: 4px; }
.leg .val { font-size: 14.5px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.leg .delta { grid-column: 2 / 4; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--mais-suave); }
.leg .trilho { flex: 1; height: 6px; border-radius: 9px; background: #EEF1EF; position: relative; overflow: visible; }
.leg .trilho i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 9px; background: var(--cor); width: 0; transition: width .9s cubic-bezier(.2, .8, .2, 1); }
.leg .trilho em { position: absolute; top: -3px; bottom: -3px; width: 2px; border-radius: 2px; background: #12201a; opacity: .35; left: 0; transition: left .9s cubic-bezier(.2, .8, .2, 1); }
.leg .delta .sobe { color: #B91C1C; font-weight: 650; }
.leg .delta .desce { color: var(--positivo); font-weight: 650; }
.leg-nota { font-size: 12px; color: var(--mais-suave); margin-top: 8px; display: flex; align-items: center; gap: 6px; }
.leg-nota em { display: inline-block; width: 2px; height: 12px; background: #12201a; opacity: .35; border-radius: 2px; }

.ritmo svg { width: 100%; height: 150px; display: block; overflow: visible; }
.ritmo .linha-atual { fill: none; stroke: var(--verde-3); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ritmo .area-atual { fill: url(#gradRitmo); }
.ritmo .linha-ant { fill: none; stroke: #9aa7a0; stroke-width: 2; stroke-dasharray: 4 5; stroke-linecap: round; }
.ritmo .eixo { stroke: #EEF1EF; stroke-width: 1; }
.ritmo text { font-size: 11px; fill: var(--mais-suave); font-family: var(--corpo); }
.ritmo .ponto { fill: var(--verde-3); stroke: #fff; stroke-width: 3; }
.ritmo .legendas { display: flex; gap: 14px; font-size: 12.5px; color: var(--suave); margin-top: 8px; }
.ritmo .legendas span { display: inline-flex; align-items: center; gap: 6px; }
.ritmo .legendas i { width: 16px; height: 3px; border-radius: 2px; background: var(--verde-3); }
.ritmo .legendas i.ant { background: repeating-linear-gradient(90deg, #9aa7a0 0 4px, transparent 4px 8px); }
.desenha { stroke-dasharray: var(--comp); stroke-dashoffset: var(--comp); animation: desenha 1.1s cubic-bezier(.3, .7, .2, 1) forwards; }
@keyframes desenha { to { stroke-dashoffset: 0; } }
.aparece { opacity: 0; animation: aparece .6s .5s ease forwards; }
@keyframes aparece { to { opacity: 1; } }

.lim { display: block; width: 100%; text-align: left; padding: 8px 0; }
.lim + .lim { border-top: 1px solid var(--linha); }
.lim .tp { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 14.5px; font-weight: 600; }
.lim .tp span:last-child { font-size: 13px; font-weight: 600; color: var(--suave); font-variant-numeric: tabular-nums; }
.lim .tr { height: 9px; border-radius: 9px; background: #EEF1EF; margin-top: 7px; overflow: hidden; }
.lim .tr i { display: block; height: 100%; border-radius: 9px; width: 0; background: var(--cor); transition: width .9s cubic-bezier(.2, .8, .2, 1); }
.lim .msg-lim { font-size: 12px; margin-top: 4px; font-weight: 600; }
.lim.verde { --cor: #16A34A; } .lim.verde .msg-lim { color: var(--positivo); }
.lim.amarelo { --cor: #F59E0B; } .lim.amarelo .msg-lim { color: #B45309; }
.lim.vermelho { --cor: #DC2626; } .lim.vermelho .msg-lim { color: #B91C1C; }
.botao-linha { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; margin-top: 8px; padding: 11px; border-radius: 14px; background: var(--campo); color: var(--verde); font-weight: 650; font-size: 14.5px; }
.botao-linha svg { width: 18px; height: 18px; }

.resumo ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.resumo li { font-size: 15px; padding-left: 18px; position: relative; line-height: 1.4; }
.resumo li::before { content: ""; position: absolute; left: 0; top: 7px; width: 8px; height: 8px; border-radius: 3px; background: var(--verde-3); }
.resumo li:nth-child(2)::before { background: var(--amarelo); }
.resumo li:nth-child(3)::before { background: #2563EB; }
.resumo .carregando { height: 16px; margin: 4px 0; }
.filtro-ativo { display: inline-flex; align-items: center; gap: 6px; text-transform: none; letter-spacing: 0; font-size: 12.5px; font-weight: 650; color: var(--verde); background: var(--campo); padding: 4px 10px; border-radius: 99px; }
.grupo-dia { font-size: 12.5px; font-weight: 650; color: var(--mais-suave); margin: 10px 0 0; display: flex; justify-content: space-between; }
.grupo-dia:first-child { margin-top: 0; }

/* ---------- ajustes */
.ajuste-linha { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ajuste-linha strong { font-family: var(--titulo); font-size: 26px; letter-spacing: -.02em; }
.ajuste-linha small { display: block; color: var(--suave); font-size: 13px; }
.bt-claro { padding: 9px 14px; border-radius: 12px; background: var(--campo); color: var(--verde); font-weight: 650; font-size: 14px; }
.passos { margin: 6px 0 0; padding: 0; list-style: none; counter-reset: p; display: flex; flex-direction: column; gap: 10px; }
.passos li { counter-increment: p; display: flex; gap: 10px; font-size: 14.5px; line-height: 1.4; align-items: flex-start; }
.passos li::before { content: counter(p); flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--verde); color: var(--amarelo); font-size: 12.5px; font-weight: 700; display: grid; place-items: center; }
.passos svg { width: 16px; height: 16px; vertical-align: -3px; }
.seg { display: flex; background: #E6ECE8; border-radius: 12px; padding: 3px; margin-bottom: 10px; }
.seg button { flex: 1; text-align: center; font-size: 14px; font-weight: 650; padding: 8px; border-radius: 9px; color: var(--suave); transition: background .2s; }
.seg button.on { background: #fff; color: var(--texto); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.instalado { display: flex; align-items: center; gap: 8px; color: var(--positivo); font-weight: 650; font-size: 14.5px; }
.pe { text-align: center; padding: 14px 0 6px; color: var(--suave); }
.pe .versao { display: block; font-size: 11.5px; color: var(--mais-suave); margin-top: 2px; }
.custo { font-size: 13px; color: var(--suave); }

/* ---------- folha de baixo (corrigir, limite, conta fixa) */
.veu { position: fixed; inset: 0; background: rgba(8, 24, 17, .42); z-index: 20; opacity: 0; transition: opacity .25s; }
.veu.aberto { opacity: 1; }
.folha {
  position: fixed; left: 50%; bottom: 0; width: 100%; max-width: 480px; z-index: 21;
  background: #fff; border-radius: 26px 26px 0 0; padding: 10px 18px calc(18px + var(--baixo-seguro));
  transform: translate(-50%, 105%); transition: transform .32s cubic-bezier(.2, .8, .2, 1);
  max-height: 88dvh; overflow-y: auto; box-shadow: 0 -10px 40px rgba(0, 0, 0, .15);
}
.folha.aberta { transform: translate(-50%, 0); }
.folha .alca { width: 40px; height: 5px; border-radius: 9px; background: #dfe5e1; margin: 0 auto 12px; }
.folha h3 { margin: 0 0 4px; font-family: var(--titulo); font-size: 22px; letter-spacing: -.015em; }
.folha .sub { margin: 0 0 14px; color: var(--suave); font-size: 14px; }
.cmp { display: block; margin-bottom: 12px; }
.cmp > span { display: block; font-size: 13px; font-weight: 650; color: var(--suave); margin-bottom: 5px; }
.cmp input, .cmp select {
  width: 100%; border: 1.5px solid #E1E8E4; border-radius: 14px; padding: 12px 14px; font-size: 16px; background: #FAFCFB; outline: 0;
  transition: border-color .2s;
}
.cmp input:focus, .cmp select:focus { border-color: var(--verde-3); background: #fff; }
.cmp.dinheiro { position: relative; }
.cmp.dinheiro::before { content: "R$"; position: absolute; left: 14px; bottom: 13px; font-weight: 650; color: var(--suave); }
.cmp.dinheiro input { padding-left: 42px; font-family: var(--titulo); font-size: 22px; font-weight: 700; }
.dupla { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tipos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 12px; }
.tipos button { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 2px; border-radius: 12px; font-size: 11.5px; font-weight: 600; color: var(--suave); border: 1.5px solid transparent; background: #F5F8F6; line-height: 1.15; text-align: center; }
.tipos button span { font-size: 19px; }
.tipos button.on { border-color: var(--verde); background: #EAF4EE; color: var(--verde); }
.trocar { display: flex; align-items: center; gap: 10px; font-size: 14.5px; margin-bottom: 14px; }
.trocar input { width: 20px; height: 20px; accent-color: var(--verde); }
.botoes { display: flex; gap: 8px; margin-top: 6px; }
.botao { flex: 1; padding: 14px; border-radius: 16px; font-weight: 700; font-size: 15.5px; text-align: center; }
.botao.principal { background: var(--verde); color: #fff; }
.botao.secundario { background: var(--campo); color: var(--verde); }
.botao.perigo { background: #FDECEC; color: #B91C1C; }
.botao:disabled { opacity: .5; }

/* aviso que some sozinho */
.aviso {
  position: fixed; left: 50%; bottom: calc(150px + var(--baixo-seguro)); transform: translate(-50%, 20px); z-index: 30;
  background: #12201a; color: #fff; padding: 11px 14px 11px 16px; border-radius: 16px; font-size: 14.5px;
  display: flex; align-items: center; gap: 14px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
  max-width: calc(100% - 32px); box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
}
.aviso.ver { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.aviso button { color: var(--amarelo); font-weight: 700; }

/* ---------- fora (sem convite) e páginas simples */
.fora, .pagina-simples main {
  min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 32px 28px; gap: 6px; background: linear-gradient(160deg, #0B2E22, var(--verde) 60%, var(--verde-2)); color: #fff;
}
.pagina-simples { margin: 0; }
.fora h1, .pagina-simples h1 { font-family: var(--titulo); font-size: 30px; letter-spacing: -.02em; margin: 14px 0 0; }
.fora p, .pagina-simples p { max-width: 320px; opacity: .85; font-size: 16px; line-height: 1.5; margin: 6px 0 0; }
.marca-ico { width: 84px; height: 84px; border-radius: 24px; background: url(/icones/icone.svg) center / cover; box-shadow: 0 16px 40px rgba(0, 0, 0, .3); }

/* entrada da tela */
.surge { animation: surge .45s cubic-bezier(.2, .8, .2, 1) both; }
.surge:nth-child(2) { animation-delay: .04s; } .surge:nth-child(3) { animation-delay: .08s; }
.surge:nth-child(4) { animation-delay: .12s; } .surge:nth-child(5) { animation-delay: .16s; } .surge:nth-child(6) { animation-delay: .2s; }
@keyframes surge { from { opacity: 0; transform: translateY(10px); } }

/* ---------- computador: o app no meio, com a marca do lado */
.lado { display: none; }
@media (min-width: 900px) {
  body { background: radial-gradient(1200px 700px at 20% 10%, #17573F 0%, transparent 60%), linear-gradient(160deg, #0B2E22, #0F3D2E); }
  .tela-pc { display: grid; grid-template-columns: minmax(0, 1fr) 440px minmax(0, 1fr); align-items: center; height: 100dvh; padding: 24px; gap: 48px; }
  .lado { display: block; color: #fff; justify-self: end; max-width: 380px; }
  .lado .marca-ico { width: 64px; height: 64px; border-radius: 18px; }
  .lado h1 { font-family: var(--titulo); font-size: 44px; line-height: 1.02; letter-spacing: -.03em; margin: 20px 0 10px; }
  .lado h1 em { font-style: normal; color: var(--amarelo); }
  .lado p { font-size: 16px; line-height: 1.55; opacity: .8; margin: 0; }
  .lado.dir { justify-self: start; }
  .lado.dir ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
  .lado.dir li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; opacity: .88; line-height: 1.45; }
  .lado.dir li b { display: block; color: var(--amarelo); font-weight: 650; }
  .lado.dir li span:first-child { flex: none; width: 36px; height: 36px; border-radius: 12px; background: rgba(255, 255, 255, .1); display: grid; place-items: center; font-size: 17px; }
  .app { height: min(860px, calc(100dvh - 48px)); width: 440px; border-radius: 34px; box-shadow: 0 40px 90px rgba(0, 0, 0, .45); margin: 0; }
  .folha { max-width: 440px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .desenha { stroke-dashoffset: 0; }
}

/* ajustes finos depois dos prints */
#a-corpo, .m-corpo { display: flex; flex-direction: column; gap: 12px; }
.cx > h4 .total-dia { text-transform: none; letter-spacing: 0; font-size: 13.5px; font-weight: 650; color: var(--suave); }
.leg .delta { display: grid; grid-template-columns: 1fr 96px; gap: 10px; }
.leg .delta > span:last-child { text-align: right; white-space: nowrap; }
.ritmo text.rotulo { paint-order: stroke; stroke: #fff; stroke-width: 5px; stroke-linejoin: round; }
