/* DesafogAI — duas vozes visuais:
   1. Apresentação: azul, lima, tipografia expandida, cartões de vidro.
   2. Aplicativo demonstrativo: sóbrio, no padrão iPadOS, com a fonte do sistema. */

:root {
  --azul: #0131cd;
  --azul-fundo: #0029b3;
  --lima: #b9fc01;
  --tinta: #0a1033;
  --papel: #fff;
  --nevoa: #f2f4fa;
  --linha: #dfe3ee;
  --cinza: #59607a;

  --app-fundo: #f1f2f6;
  --sep: rgba(10, 16, 51, 0.1);
  --txt2: #5b6278;
  --ok: #157a43;
  --ok-f: #e1f5e9;
  --pend: #9a5b00;
  --pend-f: #fff0d2;
  --erro: #c4281c;
  --erro-f: #fde7e4;

  --topo: 56px;
  --wrap: 1140px;
  --margem: clamp(18px, 4vw, 52px);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --marca: "Plus Jakarta Sans", "Helvetica Neue", Arial, system-ui, sans-serif;
  --sistema: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--topo) + 12px); }
body { margin: 0; font-family: var(--marca); font-size: 1.0625rem; line-height: 1.5; font-weight: 500; color: var(--tinta); background: var(--azul); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
button, a, summary, label { touch-action: manipulation; }
button, summary, .btn, .bt { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--lima); outline-offset: 3px; }
.lencol :focus-visible, .app :focus-visible, dialog :focus-visible { outline-color: var(--azul); }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
svg { flex: none; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--margem)); margin-inline: auto; padding-inline: var(--margem); }
.pular { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--lima); color: var(--tinta); padding: 12px 16px; font-weight: 700; border-radius: 12px; }
.pular:focus { top: 12px; }

/* ================= barra superior ================= */
.topo {
  position: sticky; top: 0; z-index: 50;
  height: calc(var(--topo) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) max(var(--margem), env(safe-area-inset-right, 0px)) 0 max(var(--margem), env(safe-area-inset-left, 0px));
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--azul); color: var(--papel);
}
.marca { display: inline-flex; align-items: center; min-height: 44px; flex: none; }
.marca img { height: 23px; width: auto; }
.vistas { display: inline-flex; padding: 3px; gap: 2px; background: rgba(255, 255, 255, 0.14); border-radius: 999px; }
.vistas a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 clamp(12px, 2.4vw, 20px); border-radius: 999px;
  font-size: 0.9375rem; font-weight: 640; text-decoration: none; color: var(--papel); white-space: nowrap;
  transition: background-color 200ms ease, color 200ms ease, transform 120ms var(--ease-out);
}
.vistas a:active { transform: scale(0.96); }
.vistas a[aria-current="true"] { background: var(--papel); color: var(--azul); }
.vistas-home { background: none; }
.btn-topo {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px; flex: none;
  border: 1.5px solid rgba(255, 255, 255, 0.55); border-radius: 999px; color: var(--papel);
  font-size: 0.9375rem; font-weight: 640; text-decoration: none;
  transition: transform 120ms var(--ease-out), background-color 160ms ease;
}
.btn-topo:active { transform: scale(0.96); }
@media (max-width: 759px) { .vistas-home { display: none; } .btn-topo[data-abrir-nichos] span { display: none; } .btn-topo[data-abrir-nichos] { padding: 0 12px; } .marca img { height: 20px; } }
@media (max-width: 379px) { .marca img { height: 17px; } .vistas a { padding: 0 10px; font-size: 0.875rem; } }

/* ================= botões ================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 28px; border: 1.5px solid transparent; border-radius: 999px;
  font-family: var(--marca); font-size: 1.0625rem; font-weight: 720; font-stretch: 104%; line-height: 1.15; text-decoration: none; text-align: center;
  transition: transform 120ms var(--ease-out), background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}
.btn:active { transform: scale(0.97); }
.btn-lima { background: var(--lima); color: var(--tinta); }
.btn-vidro { border-color: rgba(255, 255, 255, 0.6); color: var(--papel); background: rgba(255, 255, 255, 0.08); }
.btn-azul { background: var(--azul); color: var(--papel); }
.btn-contorno { border-color: var(--linha); color: var(--tinta); background: var(--papel); }
.btn-grande { min-height: 60px; width: 100%; }
.btn:disabled { opacity: 0.35; cursor: default; }
.link-azul { display: inline-flex; align-items: center; min-height: 44px; color: var(--azul); font-weight: 640; text-underline-offset: 4px; }
@media (hover: hover) and (pointer: fine) {
  .btn-lima:hover { background: #cbff3a; }
  .btn-vidro:hover, .btn-topo:hover { background: rgba(255, 255, 255, 0.18); }
  .btn-azul:hover { background: var(--azul-fundo); }
  .btn-contorno:hover { border-color: var(--azul); }
  .vistas a:not([aria-current="true"]):hover { background: rgba(255, 255, 255, 0.14); }
}

/* ================= palco azul (apresentação) ================= */
.palco {
  background-color: var(--azul); color: var(--papel);
  background-image: linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 72px 72px; background-position: center top;
}
.heroi { padding: clamp(28px, 5vh, 64px) 0 calc(clamp(40px, 7vh, 88px) + 36px); min-height: calc(100svh - var(--topo)); display: grid; align-items: center; }
.heroi-grade { display: grid; gap: clamp(28px, 4vw, 56px); align-items: center; }
@media (min-width: 1000px) { .heroi-grade { grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); } }
.rotulo { display: inline-block; margin-bottom: 20px; padding: 6px 14px 5px; border: 1.5px solid rgba(255, 255, 255, 0.5); border-radius: 999px; font-size: 0.875rem; font-weight: 620; line-height: 1.25; }
.cartaz { font-size: clamp(2.05rem, 5vw, 3.75rem); line-height: 0.95; font-weight: 900; font-stretch: 112%; letter-spacing: -0.022em; text-transform: uppercase; overflow-wrap: anywhere; }
.cartaz span { display: block; }
.cartaz span:last-child { color: var(--lima); }
.cartaz-m { font-size: clamp(1.8rem, 4.2vw, 3.1rem); }
.heroi-sub { margin-top: 22px; max-width: 44ch; font-size: clamp(1.0625rem, 0.95rem + 0.6vw, 1.3125rem); line-height: 1.35; font-weight: 520; color: rgba(255, 255, 255, 0.94); }
.heroi-acoes { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.cartaz span { animation: subir 640ms var(--ease-out) both; }
.cartaz span:nth-child(2) { animation-delay: 70ms; }
.cartaz span:nth-child(3) { animation-delay: 130ms; }
.rotulo { animation: surgir 420ms ease both; }
.heroi-sub { animation: subir-leve 560ms var(--ease-out) 180ms both; }
.heroi-acoes { animation: subir-leve 520ms var(--ease-out) 250ms both; }

/* cartões de vidro */
.cena-vidro { position: relative; display: grid; gap: 14px; }
.vidro {
  display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px;
  background: rgba(255, 255, 255, 0.15); border: 1px solid rgba(255, 255, 255, 0.36); border-radius: 24px;
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 26px 50px -24px rgba(0, 8, 70, 0.6);
  animation: chegar 620ms var(--ease-out) both; animation-delay: calc(300ms + var(--i) * 140ms);
}
.vidro-de { font-weight: 750; font-size: 0.9375rem; line-height: 1.3; display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; }
.vidro-de span { font-weight: 520; font-size: 0.8125rem; opacity: 0.8; }
.vidro-txt { font-size: 1rem; line-height: 1.35; margin-top: 2px; }
.vidro-ia { display: block; background: var(--lima); color: var(--tinta); border-color: transparent; border-bottom-right-radius: 8px; -webkit-backdrop-filter: none; backdrop-filter: none; }
.vidro-ia .vidro-txt { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.vidro-rot { display: flex; align-items: center; gap: 6px; font-size: 0.8125rem; font-weight: 780; margin-bottom: 4px; }
.vidro-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--papel); color: var(--azul); }
.avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--papel); color: var(--azul); font-weight: 800; font-size: 1rem; flex: none; }
.espera { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 4px 10px; background: rgba(255, 255, 255, 0.18); border-radius: 999px; font-size: 0.8125rem; font-weight: 600; line-height: 1.3; }
.espera i { width: 8px; height: 8px; border-radius: 50%; background: var(--lima); animation: piscar 1.6s ease-in-out infinite; }
.espera b { font-weight: 850; font-variant-numeric: tabular-nums; font-size: 0.9375rem; }
.rabisco { display: none; stroke: var(--lima); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.rabisco path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: riscar 700ms var(--ease-in-out) 760ms forwards; }
.rabisco path + path { animation-delay: 1380ms; animation-duration: 260ms; }
.selo-giro { display: none; }
@media (min-width: 1000px) {
  .cena-vidro { display: block; min-height: min(470px, 62svh); }
  .cena-vidro .vidro { position: absolute; }
  .v1 { top: 2%; left: 0; width: 80%; rotate: -5deg; }
  .v2 { top: 37%; right: 0; width: 72%; rotate: 4deg; }
  .v3 { bottom: 7%; left: 5%; width: 62%; rotate: -3deg; }
  .cena-home .v2 { top: 34%; right: 0; left: auto; }
  .cena-home .v3 { bottom: 5%; }
  .rabisco { display: block; position: absolute; width: 130px; }
  .cena-vidro .rabisco-laco { top: 15%; right: 2%; rotate: 18deg; }
  .selo-giro { display: block; position: absolute; right: 0; bottom: -4%; width: 138px; height: 138px; border-radius: 50%; background: var(--lima); color: var(--tinta); transition: transform 160ms var(--ease-out); animation: surgir 500ms ease 900ms both; }
  .selo-giro:active { transform: scale(0.95); }
  .selo-giro svg { width: 100%; height: 100%; }
  .selo-giro text { font-family: var(--marca); font-size: 17.5px; font-weight: 820; font-stretch: 112%; fill: currentColor; letter-spacing: 0.02em; }
  .giro { transform-origin: 100px 100px; animation: girar 22s linear infinite; }
  .selo-seta { fill: none; stroke: currentColor; stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
}

/* lençol branco que sobe sobre o azul */
.lencol { position: relative; margin-top: -36px; background: var(--papel); border-radius: 36px 36px 0 0; overflow: hidden; }
.sec { padding-block: clamp(48px, 8vh, 92px); scroll-margin-top: var(--topo); }
.sec-nevoa { background: var(--nevoa); }
.sec-topo { margin-bottom: clamp(22px, 3.6vh, 38px); }
.sec-topo h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); line-height: 1.08; font-weight: 820; letter-spacing: -0.022em; max-width: 22ch; }
.sec-topo p { margin-top: 10px; max-width: 60ch; font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem); color: var(--cinza); }

/* situações (dores) */
.dores { display: grid; gap: 12px; }
@media (min-width: 640px) { .dores { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .dores { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.dor {
  width: 100%; height: 100%; min-height: 132px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 22px; text-align: left;
  background: var(--nevoa); border: 1.5px solid transparent; border-radius: 22px;
  transition: transform 120ms var(--ease-out), border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}
.dor:active { transform: scale(0.985); }
.dor-t { font-size: clamp(1.1875rem, 1.05rem + 0.6vw, 1.4375rem); line-height: 1.15; font-weight: 760; letter-spacing: -0.012em; }
.dor-mod { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 0.875rem; font-weight: 660; color: var(--azul); }
.dor-estado { font-size: 0.875rem; font-weight: 620; }
.dor-estado:empty { display: none; }
.dor[data-estado="marcada"] { background: var(--azul); color: var(--papel); }
.dor[data-estado="marcada"] .dor-mod { color: var(--lima); }
.dor[data-estado="ok"] .dor-estado { color: var(--ok); }
@media (hover: hover) and (pointer: fine) { .dor:hover { border-color: var(--azul); } }

/* a conta */
.conta-grade { display: grid; gap: clamp(26px, 5vw, 60px); align-items: center; }
@media (min-width: 900px) { .conta-grade { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.conta-entrada .sec-topo { margin-bottom: 6px; }
.campo { margin-top: 24px; }
.campo label { display: block; font-size: 1.0625rem; font-weight: 640; line-height: 1.3; margin-bottom: 10px; max-width: 36ch; }
.passo-num { display: inline-flex; border: 1.5px solid var(--linha); border-radius: 16px; overflow: hidden; background: var(--papel); }
.passo-num button { width: 58px; height: 58px; font-size: 1.75rem; font-weight: 500; line-height: 1; color: var(--azul); transition: background-color 120ms ease; }
.passo-num button:active { background: var(--nevoa); }
.passo-num input { width: 100px; height: 58px; border: 0; border-inline: 1.5px solid var(--linha); text-align: center; font-size: 1.5rem; font-weight: 800; font-variant-numeric: tabular-nums; background: var(--papel); border-radius: 0; }
.dinheiro { display: flex; max-width: 280px; border: 1.5px solid var(--linha); border-radius: 16px; overflow: hidden; background: var(--papel); }
.dinheiro > span { display: grid; place-items: center; padding: 0 14px; background: var(--nevoa); font-weight: 750; color: var(--cinza); }
.dinheiro input { flex: 1; min-width: 0; height: 58px; border: 0; padding: 0 14px; font-size: 1.5rem; font-weight: 800; font-variant-numeric: tabular-nums; background: var(--papel); border-radius: 0; }
.passo-num input:focus-visible, .dinheiro input:focus-visible { outline-offset: -3px; }
.passo-num:focus-within, .dinheiro:focus-within { border-color: var(--azul); }
.conta-saida { background: var(--azul); color: var(--papel); padding: clamp(24px, 4vw, 44px); border-radius: 30px; }
.conta-formula { color: rgba(255, 255, 255, 0.78); font-size: 1rem; font-variant-numeric: tabular-nums; min-height: 1.5em; }
.conta-total { margin-top: 6px; font-size: clamp(2.6rem, 1.6rem + 5vw, 4.75rem); line-height: 1; font-weight: 900; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; transition: color 240ms ease; }
.conta-saida[data-cheia] .conta-total { color: var(--lima); }
.conta-frase { margin-top: 12px; font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); line-height: 1.3; font-weight: 620; max-width: 26ch; }
.conta-ano { margin-top: 8px; color: rgba(255, 255, 255, 0.78); font-variant-numeric: tabular-nums; min-height: 1.5em; }
.conta-nota { margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.22); color: rgba(255, 255, 255, 0.78); font-size: 0.9375rem; }

/* relatos */
.relatos { display: grid; gap: 12px; }
@media (min-width: 760px) { .relatos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.relato { background: var(--papel); padding: 22px 24px; border-radius: 22px; }
.relato h3 { font-size: 1.1875rem; line-height: 1.2; font-weight: 760; margin-bottom: 8px; }
.relato-saida { margin-top: 10px; }
.relato-fonte { margin-top: 12px; font-size: 0.875rem; color: var(--cinza); }
.relato-fonte a { color: var(--azul); text-underline-offset: 3px; display: inline-block; padding-block: 6px; }

/* dúvidas */
.duv-grade { display: grid; gap: 8px clamp(28px, 5vw, 60px); }
@media (min-width: 900px) { .duv-grade { grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); align-items: start; } }
.duvidas details { border-top: 1.5px solid var(--linha); }
.duvidas details:last-child { border-bottom: 1.5px solid var(--linha); }
.duvidas summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; min-height: 62px; cursor: pointer; list-style: none; font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem); line-height: 1.25; font-weight: 700; }
.duvidas summary::-webkit-details-marker { display: none; }
.duvidas summary svg { color: var(--azul); transition: transform 220ms var(--ease-out); }
.duvidas details[open] summary svg { transform: rotate(45deg); }
.duvidas details p { padding-bottom: 22px; max-width: 62ch; color: var(--cinza); }
.duvidas details[open] p { animation: surgir 260ms ease both; }

/* fecho */
.sec-fecho { padding-top: 0; }
.fecho { position: relative; overflow: hidden; border-radius: 36px; padding: clamp(30px, 6vw, 68px); }
.fecho > p { margin-top: 16px; max-width: 46ch; font-size: 1.125rem; font-weight: 500; color: rgba(255, 255, 255, 0.92); }
.fecho .rabisco { display: block; position: absolute; right: clamp(8px, 5vw, 70px); top: 50%; translate: 0 -50%; width: clamp(110px, 18vw, 230px); opacity: 0.95; }
.fecho .rabisco path { animation: none; stroke-dashoffset: 0; }
@media (max-width: 719px) { .fecho .rabisco { display: none; } }

/* rodapé */
.rodape { background: var(--tinta); color: #aab0cb; padding-block: 40px calc(40px + env(safe-area-inset-bottom, 0px)); font-size: 0.9375rem; }
.rodape-grade { display: grid; gap: 22px; }
@media (min-width: 860px) { .rodape-grade { grid-template-columns: 170px minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: start; } }
.rodape-logo { width: 150px; }
.rodape-lema { color: var(--papel); font-weight: 700; font-size: 1.0625rem; margin-bottom: 6px; }
.rodape a { color: var(--papel); text-underline-offset: 3px; display: inline-block; padding-block: 6px; }
.rodape-aviso { font-size: 0.875rem; }

/* ================= vistas ================= */
.vista { animation: surgir 240ms ease both; }
.vista-app { height: calc(100dvh - var(--topo) - env(safe-area-inset-top, 0px)); background: var(--app-fundo); }
html[data-app] { overflow: hidden; }

/* ================= folhas (diálogos) ================= */
html.travada { overflow: hidden; }
dialog { color: var(--tinta); }
.folha { width: min(720px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 28px; background: var(--papel); overflow: hidden; overscroll-behavior: contain; }
.folha[open] { display: flex; flex-direction: column; animation: folha-entra 280ms var(--ease-out); }
.folha.saindo { animation: folha-sai 150ms ease-out forwards; }
dialog::backdrop { background: rgba(4, 10, 50, 0.5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: surgir 200ms ease both; }
dialog.saindo::backdrop { animation: sumir 150ms ease forwards; }
.folha-topo { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 0 clamp(20px, 4vw, 30px); }
.folha-pos { font-size: 0.875rem; color: var(--cinza); font-variant-numeric: tabular-nums; font-weight: 620; }
.folha-topo h3 { font-size: 1.25rem; font-weight: 800; }
.fechar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--nevoa); color: var(--cinza); transition: transform 120ms var(--ease-out); }
.fechar:active { transform: scale(0.92); }
.folha-corpo { padding: 6px clamp(20px, 4vw, 30px) 24px; overflow-y: auto; overscroll-behavior: contain; }
.folha-corpo > h3 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.125rem); line-height: 1.08; font-weight: 830; letter-spacing: -0.022em; max-width: 22ch; }
.bloco { margin-top: 20px; }
.bloco h4 { font-size: 0.875rem; font-weight: 720; color: var(--cinza); margin-bottom: 6px; }
.bloco p { font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); line-height: 1.42; }
.bloco-sol { background: #eef2ff; padding: 18px 20px 20px; border-radius: 20px; }
.bloco-sol h4 { color: var(--azul); }
.bloco-sol .btn { margin-top: 16px; min-height: 48px; padding: 0 20px; font-size: 1rem; }
.bloco-pergunta .pergunta { font-weight: 660; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { min-height: 44px; padding: 0 16px; background: var(--papel); border: 1.5px solid var(--linha); border-radius: 999px; font-size: 0.9375rem; font-weight: 640; transition: transform 120ms var(--ease-out), background-color 160ms ease, color 160ms ease, border-color 160ms ease; }
.chip:active { transform: scale(0.96); }
.chip[aria-pressed="true"] { background: var(--azul); border-color: var(--azul); color: var(--papel); }
.folha-pe { display: flex; justify-content: space-between; gap: 10px; padding: 12px clamp(20px, 4vw, 30px) calc(14px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--linha); }
.folha-pe .btn { min-height: 46px; padding: 0 20px; font-size: 0.9375rem; }
.folha-lista .busca { margin: 12px clamp(20px, 4vw, 30px) 4px; }
.indice-lista { overflow-y: auto; overscroll-behavior: contain; padding: 8px clamp(20px, 4vw, 30px); display: grid; column-gap: 20px; }
@media (min-width: 560px) { .indice-lista { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.indice-lista li.fav-on { order: -1; }
.indice-lista a { display: flex; align-items: center; min-height: 48px; padding: 0 12px; border-radius: 12px; font-weight: 620; text-decoration: none; }
.indice-lista a[aria-current="page"] { background: var(--azul); color: var(--papel); }
.folha-lista .link-azul { margin: 4px clamp(20px, 4vw, 30px) calc(14px + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 639px) {
  .folha { width: 100vw; margin: auto 0 0; max-height: 92dvh; border-radius: 28px 28px 0 0; }
  .folha[open] { animation: gaveta-entra 440ms var(--ease-drawer); }
  .folha.saindo { animation: gaveta-sai 220ms var(--ease-drawer) forwards; }
  .folha-pe .btn { flex: 1; }
}
@media (hover: hover) and (pointer: fine) { .indice-lista a:not([aria-current]):hover { background: var(--nevoa); } .chip:hover { border-color: var(--azul); } }

/* ================= página inicial ================= */
.filtros { display: grid; gap: 12px; margin-bottom: 20px; }
@media (min-width: 900px) { .filtros { grid-template-columns: minmax(240px, 320px) minmax(0, 1fr); align-items: center; } }
.busca { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px; border: 1.5px solid var(--linha); border-radius: 999px; background: var(--papel); color: var(--cinza); }
.busca input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; font-size: 1.0625rem; color: var(--tinta); outline: none; -webkit-appearance: none; appearance: none; }
.busca:focus-within { border-color: var(--azul); }
.grupos { display: flex; flex-wrap: wrap; gap: 8px; }
.grupos button { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--linha); border-radius: 999px; font-size: 0.9375rem; font-weight: 640; transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease; }
.grupos button[aria-pressed="true"] { background: var(--azul); color: var(--papel); border-color: var(--azul); }
.tiles { display: grid; gap: 12px; }
@media (min-width: 560px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tile { position: relative; }
.tile.fav-on { order: -1; }
.tile a { display: flex; flex-direction: column; height: 100%; min-height: 148px; padding: 20px 52px 18px 20px; border-radius: 22px; text-decoration: none; background: var(--nevoa); transition: transform 160ms var(--ease-out), background-color 180ms ease, color 180ms ease; }
.tile a:active { transform: scale(0.985); }
.tile h3 { font-size: 1.1875rem; line-height: 1.16; font-weight: 780; letter-spacing: -0.012em; }
.tile p { margin-top: 6px; font-size: 0.9375rem; line-height: 1.35; color: var(--cinza); }
.tile-mod { margin-top: auto; padding-top: 12px; display: inline-flex; align-items: center; gap: 6px; font-size: 0.8125rem; font-weight: 660; color: var(--azul); }
.tile-destaque a { background: var(--azul); color: var(--papel); }
.tile-destaque p { color: rgba(255, 255, 255, 0.82); }
.tile-destaque .tile-mod { color: var(--lima); }
.fav { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 46px; height: 46px; color: #9aa1b8; border-radius: 50%; transition: transform 120ms var(--ease-out), color 160ms ease; }
.fav:active { transform: scale(0.88); }
.fav[aria-pressed="true"] { color: var(--azul); }
.fav[aria-pressed="true"] svg { fill: currentColor; }
.tile-destaque .fav { color: rgba(255, 255, 255, 0.7); }
.tile-destaque .fav[aria-pressed="true"] { color: var(--lima); }
.tiles-vazio { padding: 28px 0; color: var(--cinza); font-size: 1.125rem; max-width: 52ch; }
@media (hover: hover) and (pointer: fine) { .tile a:hover { transform: translateY(-2px); } .grupos button:hover { border-color: var(--azul); } }

.padrao { display: grid; gap: 12px; }
@media (min-width: 620px) { .padrao { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .padrao { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.padrao li { background: var(--papel); border-radius: 22px; padding: 22px; }
.padrao-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--azul); color: var(--papel); margin-bottom: 16px; }
.padrao h3, .principios h3, .passos h3 { font-size: 1.125rem; line-height: 1.2; font-weight: 760; margin-bottom: 6px; }
.padrao p, .principios p, .passos p { color: var(--cinza); font-size: 1rem; }
.principios { display: grid; gap: 24px 28px; }
@media (min-width: 700px) { .principios { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .principios { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.principios li { border-top: 2px solid var(--azul); padding-top: 16px; }

/* ================= proposta ================= */
.prop-topo { padding: clamp(28px, 5vh, 56px) 0 calc(clamp(28px, 5vh, 56px) + 36px); }
.prop-topo .heroi-sub { max-width: 60ch; }
.prop-grade { display: grid; gap: clamp(26px, 4vw, 48px); align-items: start; }
@media (min-width: 960px) { .prop-grade { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); } }
.prop-mods { display: grid; gap: 10px; }
.prop-mod { display: grid; grid-template-columns: 46px minmax(0, 1fr) 28px; gap: 14px; align-items: center; padding: 16px 18px; border: 1.5px solid var(--linha); border-radius: 20px; cursor: pointer; transition: border-color 180ms ease, background-color 180ms ease, transform 120ms var(--ease-out); }
.prop-mod:active { transform: scale(0.99); }
.prop-mod input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.prop-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--nevoa); color: var(--cinza); transition: background-color 180ms ease, color 180ms ease; }
.prop-corpo { display: grid; gap: 2px; }
.prop-corpo b { font-size: 1.0625rem; font-weight: 740; line-height: 1.25; }
.prop-corpo span { font-size: 0.9375rem; color: var(--cinza); line-height: 1.38; }
.prop-corpo small { margin-top: 4px; font-size: 0.8125rem; font-weight: 600; color: var(--azul); line-height: 1.35; }
.prop-marca { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--linha); color: transparent; transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 200ms var(--ease-out); }
.prop-mod:has(input:checked) { border-color: var(--azul); background: #f3f6ff; }
.prop-mod:has(input:checked) .prop-ic { background: var(--azul); color: var(--papel); }
.prop-mod:has(input:checked) .prop-marca { background: var(--azul); border-color: var(--azul); color: var(--papel); }
.prop-mod:has(input:focus-visible) { outline: 3px solid var(--azul); outline-offset: 3px; }
.prop-base { cursor: default; }
.prop-sub { margin: 30px 0 12px; font-size: 1.25rem; font-weight: 800; letter-spacing: -0.012em; }
.prop-manual { display: grid; gap: 10px; }
.prop-manual li { display: flex; gap: 10px; align-items: flex-start; color: var(--cinza); }
.prop-manual svg { color: var(--azul); margin-top: 3px; }
.prop-manual b { color: var(--tinta); font-weight: 700; }
.prop-resumo { background: var(--azul); color: var(--papel); border-radius: 30px; padding: clamp(22px, 3vw, 30px); }
@media (min-width: 960px) { .prop-resumo { position: sticky; top: calc(var(--topo) + 16px); } }
.prop-resumo h3 { font-size: 1.375rem; font-weight: 830; letter-spacing: -0.015em; }
.prop-conta { margin-top: 4px; color: rgba(255, 255, 255, 0.8); font-size: 0.9375rem; }
.prop-lista { margin-top: 14px; display: grid; gap: 7px; }
.prop-lista li { display: flex; gap: 8px; align-items: center; font-weight: 600; font-size: 0.9375rem; animation: surgir 240ms ease both; }
.prop-lista svg { color: var(--lima); }
.prop-extra { display: grid; gap: 8px; margin-top: 14px; }
.prop-extra:empty { display: none; }
.prop-extra p { padding: 10px 12px; background: rgba(255, 255, 255, 0.12); border-radius: 14px; font-size: 0.9375rem; line-height: 1.35; }
.prop-extra b { color: var(--lima); font-variant-numeric: tabular-nums; }
.prop-resumo h4 { margin-top: 20px; font-size: 1rem; font-weight: 760; }
.prop-valores { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.prop-valores label > span:first-child { display: block; font-size: 0.8125rem; font-weight: 620; color: rgba(255, 255, 255, 0.82); margin-bottom: 5px; }
.prop-valores .dinheiro { max-width: none; border: 0; border-radius: 14px; }
.prop-valores .dinheiro > span { padding: 0 10px; font-size: 0.875rem; }
.prop-valores input { height: 48px; font-size: 1.0625rem; padding: 0 10px; color: var(--tinta); }
.prop-valores input::placeholder { font-weight: 500; font-size: 0.9375rem; color: #8a90a8; }
.prop-nota { margin-top: 10px; font-size: 0.8125rem; color: rgba(255, 255, 255, 0.78); line-height: 1.4; }
.prop-resumo .btn-grande { margin-top: 18px; }
.prop-contato { margin-top: 10px; font-size: 0.9375rem; color: rgba(255, 255, 255, 0.85); text-align: center; }
.prop-contato a { font-weight: 720; color: var(--papel); display: inline-block; padding-block: 8px; }
.passos { display: grid; gap: 22px; counter-reset: passo; }
@media (min-width: 800px) { .passos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.passos li { counter-increment: passo; }
.passos li::before { content: counter(passo); display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--lima); color: var(--tinta); font-weight: 850; margin-bottom: 14px; }

/* ================= aplicativo demonstrativo ================= */
.app { position: relative; height: 100%; display: grid; grid-template-columns: 232px minmax(0, 1fr); font-family: var(--sistema); font-size: 15px; line-height: 1.4; font-weight: 400; color: var(--tinta); letter-spacing: -0.005em; }
.app b, .app strong { font-weight: 600; }
.app-lado { display: flex; flex-direction: column; gap: 14px; padding: 16px 12px calc(12px + env(safe-area-inset-bottom, 0px)); background: rgba(255, 255, 255, 0.78); border-right: 1px solid var(--sep); overflow-y: auto; }
.app-emp { display: grid; gap: 6px; padding: 4px 10px 0; }
.app-emp b { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
.app-nav { display: grid; gap: 2px; }
.app-nav button, .app-acao { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 46px; padding: 0 12px; border-radius: 12px; font-size: 15px; font-weight: 500; text-align: left; text-decoration: none; color: var(--tinta); transition: background-color 140ms ease, color 140ms ease, transform 120ms var(--ease-out); }
.app-nav button:active, .app-acao:active { transform: scale(0.98); }
.app-nav button svg { color: var(--azul); }
.app-nav button[aria-current="page"] { background: var(--azul); color: var(--papel); font-weight: 600; }
.app-nav button[aria-current="page"] svg { color: var(--papel); }
.ponto { width: 9px; height: 9px; border-radius: 50%; background: var(--lima); box-shadow: 0 0 0 2px var(--tinta); margin-left: auto; animation: pulso 420ms var(--ease-out); }
.app-lado-pe { margin-top: auto; display: grid; gap: 2px; padding-top: 10px; border-top: 1px solid var(--sep); }
.app-acao { color: var(--txt2); }
.app-acao-prop { background: var(--lima); color: var(--tinta); font-weight: 600; }
.app-conteudo { overflow-y: auto; overscroll-behavior: contain; padding: 22px clamp(14px, 2.4vw, 30px) 44px; container-type: inline-size; }
.app-conteudo:focus { outline: none; }
.app-mod { animation: mod-entra 240ms var(--ease-out) both; display: grid; gap: 18px; max-width: 1080px; margin-inline: auto; }
.app-abas { display: none; }

.mt { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 16px; }
.mt h2 { font-size: 30px; line-height: 1.1; font-weight: 700; letter-spacing: -0.028em; }
.mt p { color: var(--txt2); font-size: 15px; margin-top: 3px; }
.mt-acoes { display: flex; gap: 8px; flex-wrap: wrap; }
.bl-t { font-size: 13px; font-weight: 600; color: var(--txt2); margin: 0 4px 8px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bl-t button { color: var(--azul); font-weight: 600; font-size: 13px; min-height: 30px; }
.cx { background: var(--papel); border-radius: 18px; padding: 4px 16px; box-shadow: 0 1px 2px rgba(10, 16, 51, 0.04); }
.cx-p { padding: 16px; }
.duas { display: grid; gap: 18px; }
@container (min-width: 720px) { .duas { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

.st { display: inline-flex; align-items: center; gap: 5px; width: fit-content; padding: 3px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 600; line-height: 1.35; white-space: nowrap; background: rgba(10, 16, 51, 0.07); color: var(--txt2); }
.st-ok { background: var(--ok-f); color: var(--ok); }
.st-pend { background: var(--pend-f); color: var(--pend); }
.st-erro { background: var(--erro-f); color: var(--erro); }
.st-ia { background: var(--lima); color: var(--tinta); }
.st-azul { background: #e6ecff; color: var(--azul); }

.bt { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 11px; font-size: 14px; font-weight: 600; background: #e6ecff; color: var(--azul); white-space: nowrap; text-decoration: none; transition: transform 120ms var(--ease-out), background-color 140ms ease, opacity 140ms ease; }
.bt:active { transform: scale(0.96); }
.bt-cheio { background: var(--azul); color: var(--papel); }
.bt-lima { background: var(--lima); color: var(--tinta); }
.bt-quieto { background: rgba(10, 16, 51, 0.06); color: var(--tinta); }
.bt[disabled] { opacity: 0.5; cursor: default; }
.bt-g { min-height: 46px; padding: 0 18px; font-size: 15px; border-radius: 13px; }

.ln { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--sep); }
.ln:last-child { border-bottom: 0; }
.ln-c { display: grid; gap: 1px; min-width: 0; }
.ln-c b { font-size: 15px; line-height: 1.3; }
.ln-c small { font-size: 13px; color: var(--txt2); line-height: 1.35; }
.ln-f { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.ln-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #e6ecff; color: var(--azul); }
.ic-pend { background: var(--pend-f); color: var(--pend); }
.ic-erro { background: var(--erro-f); color: var(--erro); }
.ic-ia { background: var(--lima); color: var(--tinta); }
.hora { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 15px; min-width: 46px; }
.hora small { display: block; font-size: 11.5px; font-weight: 500; color: var(--txt2); }
.ln.novo, .cartao.novo { animation: realce 2200ms ease-out both; }
.porque { display: inline-flex; align-items: center; gap: 4px; color: var(--azul); font-size: 12.5px; font-weight: 600; min-height: 26px; text-align: left; }
@container (max-width: 520px) { .ln { grid-template-columns: auto minmax(0, 1fr); } .ln-f { grid-column: 1 / -1; justify-content: flex-start; } }

/* guia */
.guia { background: var(--azul); color: var(--papel); border-radius: 20px; padding: 16px 18px; display: grid; gap: 12px; }
.guia-t { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; font-weight: 600; opacity: 0.9; }
.guia ol { display: grid; gap: 8px; }
@container (min-width: 720px) { .guia ol { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.guia button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 54px; padding: 8px 12px; border-radius: 13px; background: rgba(255, 255, 255, 0.13); font-size: 13.5px; font-weight: 500; line-height: 1.25; text-align: left; transition: transform 120ms var(--ease-out), background-color 160ms ease; }
.guia button:active { transform: scale(0.97); }
.guia button i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.6); font-style: normal; font-size: 12px; font-weight: 700; flex: none; }
.guia li[data-feito] button { background: rgba(255, 255, 255, 0.06); opacity: 0.85; }
.guia li[data-feito] i { background: var(--lima); border-color: var(--lima); color: var(--tinta); }
.guia li[data-atual] button { background: var(--papel); color: var(--tinta); font-weight: 600; }
.guia li[data-atual] i { border-color: var(--azul); color: var(--azul); }

/* indicadores */
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@container (min-width: 720px) { .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kpi { display: grid; gap: 2px; align-content: start; padding: 14px 16px; text-align: left; width: 100%; transition: transform 120ms var(--ease-out); }
.kpi:active { transform: scale(0.98); }
.kpi small { font-size: 13px; font-weight: 600; color: var(--txt2); }
.kpi b { font-size: 27px; line-height: 1.15; font-weight: 700; letter-spacing: -0.028em; font-variant-numeric: tabular-nums; }
.kpi span { font-size: 12.5px; color: var(--txt2); line-height: 1.35; }
.kpi.mudou { animation: realce 2400ms ease-out both; }
.kpi.mudou small::after { content: "atualizado"; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--lima); color: var(--tinta); font-size: 11px; }

/* barras */
.barras { display: grid; gap: 12px; padding: 14px 0; }
.barra { display: grid; gap: 5px; }
.barra-t { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; }
.barra-t span:last-child { color: var(--txt2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.barra-f { height: 9px; border-radius: 5px; background: rgba(10, 16, 51, 0.07); overflow: hidden; }
.barra-f i { display: block; height: 100%; border-radius: 5px; background: var(--azul); transform-origin: left; animation: crescer 600ms var(--ease-out) both; }
.colunas { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; align-items: end; height: 150px; padding: 16px 0 8px; }
.colunas div { display: grid; gap: 6px; justify-items: center; align-content: end; height: 100%; font-size: 12px; color: var(--txt2); font-variant-numeric: tabular-nums; }
.colunas i { display: block; width: min(34px, 70%); border-radius: 7px 7px 3px 3px; background: #c9d4fb; transform-origin: bottom; animation: subir-barra 600ms var(--ease-out) both; }
.colunas div[data-hoje] i { background: var(--azul); }
.colunas div[data-hoje] { color: var(--tinta); font-weight: 600; }

/* atendimento */
.at { display: grid; gap: 14px; }
@container (min-width: 640px) { .at { grid-template-columns: 236px minmax(0, 1fr); align-items: start; } }
@container (min-width: 840px) { .at { grid-template-columns: 218px minmax(0, 1fr) 250px; } }
.at-lista { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.at-lista::-webkit-scrollbar { display: none; }
@container (min-width: 640px) { .at-lista { display: grid; overflow: visible; } }
.at-item { display: grid; gap: 3px; flex: 0 0 210px; padding: 12px 14px; border-radius: 16px; background: var(--papel); text-align: left; border: 1.5px solid transparent; transition: border-color 160ms ease, transform 120ms var(--ease-out); }
.at-item:active { transform: scale(0.98); }
.at-item[aria-current="true"] { border-color: var(--azul); }
.at-item b { font-size: 14.5px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.at-item p { font-size: 13px; color: var(--txt2); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.at-item .st { margin-top: 3px; }
.at-item .st b { font-size: inherit; font-variant-numeric: tabular-nums; display: inline; }
.at-sim { background: var(--azul); color: var(--papel); }
.at-sim p { color: rgba(255, 255, 255, 0.84); }
.at-sim[aria-current="true"] { border-color: var(--lima); }
.at-chat { display: flex; flex-direction: column; background: var(--papel); border-radius: 18px; overflow: hidden; height: min(560px, calc(100dvh - var(--topo) - 190px)); min-height: 380px; }
@container (min-width: 640px) and (max-width: 839px) { .at-ficha { grid-column: 2; } }
.at-chat-t { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--sep); }
.at-chat-t .avatar { width: 36px; height: 36px; font-size: 15px; background: #e6ecff; }
.at-chat-t b { display: block; font-size: 15px; line-height: 1.2; }
.at-chat-t small { font-size: 12.5px; color: var(--txt2); }
.chat { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 14px; display: flex; flex-direction: column; gap: 7px; scrollbar-width: thin; }
.msg { max-width: 84%; padding: 9px 13px; border-radius: 18px; font-size: 15px; line-height: 1.34; }
.msg.nova { animation: msg-entra 280ms var(--ease-out) both; }
.msg-c { align-self: flex-start; background: #e9eaf0; border-bottom-left-radius: 5px; transform-origin: left bottom; }
.msg-a { align-self: flex-end; background: var(--azul); color: var(--papel); border-bottom-right-radius: 5px; transform-origin: right bottom; }
.msg-a small { display: flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; opacity: 0.85; margin-bottom: 1px; }
.msg-s { align-self: center; max-width: 94%; text-align: center; padding: 5px 11px; font-size: 12.5px; font-weight: 600; color: var(--tinta); background: var(--lima); border-radius: 999px; }
.digitando { align-self: flex-end; display: inline-flex; gap: 5px; padding: 13px 15px; background: var(--azul); border-radius: 18px; border-bottom-right-radius: 5px; }
.digitando i { width: 7px; height: 7px; border-radius: 50%; background: var(--papel); animation: ponto 1s ease-in-out infinite; }
.digitando i:nth-child(2) { animation-delay: 140ms; }
.digitando i:nth-child(3) { animation-delay: 280ms; }
.at-pe { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--sep); }
.at-pe small { color: var(--txt2); font-size: 12.5px; font-variant-numeric: tabular-nums; margin-left: auto; }
.at-ficha { display: grid; gap: 12px; align-content: start; background: var(--papel); border-radius: 18px; padding: 16px; }
.at-ficha h3 { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.at-ficha h3 svg { color: var(--azul); }
.etapas { display: grid; gap: 6px; }
.etapas li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--txt2); }
.etapas li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: rgba(10, 16, 51, 0.14); flex: none; transition: background-color 240ms ease; }
.etapas li.feita { color: var(--tinta); }
.etapas li.feita::before { background: var(--azul); }
.etapas li.atual { color: var(--tinta); font-weight: 600; }
.etapas li.atual::before { background: var(--lima); box-shadow: 0 0 0 2px var(--tinta); }
.campos { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 12px; font-size: 13.5px; }
.campos dt { color: var(--txt2); }
.campos dd { font-weight: 600; }
.campos .novo { animation: realce 1600ms ease-out both; border-radius: 4px; }
.tarefa { border-radius: 13px; padding: 11px 13px; background: var(--pend-f); font-size: 13.5px; }
.tarefa small { display: block; font-weight: 600; color: var(--pend); margin-bottom: 2px; }
.notas { display: grid; gap: 5px; font-size: 12.5px; color: var(--txt2); }
.notas li { display: flex; gap: 7px; }
.notas li::before { content: ""; width: 5px; height: 5px; margin-top: 6px; border-radius: 50%; background: currentColor; flex: none; }
.vazio { color: var(--txt2); font-size: 13.5px; }
.at-fim { display: grid; gap: 8px; padding: 12px; border-radius: 14px; background: #eef2ff; font-size: 13.5px; }
.at-fim div { display: flex; flex-wrap: wrap; gap: 6px; }

/* CRM */
.quadro { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(196px, 1fr); gap: 10px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.coluna { display: grid; gap: 8px; align-content: start; padding: 10px; border-radius: 16px; background: rgba(10, 16, 51, 0.045); scroll-snap-align: start; }
.coluna-t { display: grid; gap: 1px; padding: 2px 4px 4px; }
.coluna-t b { font-size: 13.5px; display: flex; justify-content: space-between; gap: 8px; }
.coluna-t b span { color: var(--txt2); font-weight: 500; }
.coluna-t small { font-size: 12px; color: var(--txt2); font-variant-numeric: tabular-nums; }
.cartao { display: grid; gap: 4px; width: 100%; padding: 12px; border-radius: 13px; background: var(--papel); text-align: left; box-shadow: 0 1px 2px rgba(10, 16, 51, 0.06); transition: transform 120ms var(--ease-out); }
.cartao:active { transform: scale(0.98); }
.cartao b { font-size: 14.5px; line-height: 1.25; }
.cartao p { font-size: 13px; color: var(--txt2); line-height: 1.3; }
.cartao-pe { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.cartao-pe .st { margin-left: auto; }
.coluna-vazia { font-size: 12.5px; color: var(--txt2); padding: 10px 4px; }

.card-topo { display: flex; align-items: center; gap: 12px; padding: 20px 14px 0 22px; }
.card-topo .avatar { background: #e6ecff; }
.card-topo div { flex: 1; min-width: 0; font-family: var(--sistema); }
.card-topo b { display: block; font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.card-topo small { color: var(--txt2); font-size: 14px; }
.card-corpo { font-family: var(--sistema); padding: 14px 22px 8px; display: grid; gap: 14px; font-size: 15px; overflow-y: auto; }
.card-etapas { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; }
.card-etapas li { padding-top: 8px; border-top: 4px solid rgba(10, 16, 51, 0.1); font-size: 12px; color: var(--txt2); line-height: 1.25; }
.card-etapas li.feita { border-color: var(--azul); color: var(--tinta); }
.card-etapas li.atual { border-color: var(--azul); color: var(--tinta); font-weight: 600; }
.linha-tempo { display: grid; gap: 10px; }
.linha-tempo li { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 10px; font-size: 14px; }
.linha-tempo li::before { content: ""; width: 9px; height: 9px; margin-top: 5px; border-radius: 50%; background: var(--azul); }
.linha-tempo li.ia::before { background: var(--lima); box-shadow: 0 0 0 2px var(--tinta); }
.card-pe { font-family: var(--sistema); display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 22px calc(18px + env(safe-area-inset-bottom, 0px)); }
.card-pe .bt { flex: 1 1 180px; }

/* automações */
.autos { display: grid; gap: 12px; }
@container (min-width: 720px) { .autos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.auto { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 16px; }
.auto b { font-size: 15.5px; }
.auto p { font-size: 13.5px; color: var(--txt2); grid-column: 1; }
.auto-pe { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; margin-top: 4px; }
.chave { position: relative; width: 51px; height: 31px; border-radius: 999px; background: rgba(10, 16, 51, 0.16); transition: background-color 220ms ease; flex: none; }
.chave::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: var(--papel); box-shadow: 0 2px 5px rgba(10, 16, 51, 0.25); transition: transform 260ms var(--ease-out); }
.chave[aria-checked="true"] { background: var(--azul); }
.chave[aria-checked="true"]::after { transform: translateX(20px); }

/* equipe */
.pessoas { display: grid; gap: 12px; }
@container (min-width: 560px) { .pessoas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container (min-width: 860px) { .pessoas { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pessoa { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; padding: 16px; align-items: center; }
.pessoa .avatar { background: #e6ecff; grid-row: span 2; }
.pessoa b { font-size: 15.5px; }
.pessoa small { color: var(--txt2); font-size: 13px; }
.pessoa p { grid-column: 1 / -1; font-size: 13px; color: var(--txt2); margin-top: 6px; }
.pessoa p b { font-size: inherit; color: var(--tinta); }
.marca-t { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid rgba(10, 16, 51, 0.25); color: transparent; transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 200ms var(--ease-out); }
.ln[data-feito] .marca-t { background: var(--azul); border-color: var(--azul); color: var(--papel); }
.ln[data-feito] .ln-c b { text-decoration: line-through; color: var(--txt2); font-weight: 400; }
.toque { display: grid; place-items: center; min-width: 44px; min-height: 44px; margin: -6px; }
.nota-equipe { padding: 14px 16px; border-radius: 16px; background: #eef2ff; font-size: 14px; color: var(--tinta); }
.app-rodape { font-size: 12.5px; color: var(--txt2); text-align: center; padding-top: 6px; }
.perguntas { display: grid; gap: 0; }

/* avisos do sistema (estilo notificação) */
.app-avisos { position: absolute; top: 10px; left: 50%; translate: -50% 0; z-index: 30; display: grid; gap: 8px; width: min(440px, calc(100% - 24px)); pointer-events: none; }
.aviso { pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 18px; background: rgba(13, 18, 48, 0.92); color: var(--papel); font-size: 14px; line-height: 1.3; text-align: left; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 16px 40px -14px rgba(4, 10, 50, 0.55); animation: aviso-entra 420ms var(--ease-drawer) both; }
.aviso svg { color: var(--lima); }
.aviso.saindo { animation: aviso-sai 240ms ease forwards; }

/* trilho estreito (iPad em pé) */
@media (max-width: 1023px) and (min-width: 760px) {
  .app { grid-template-columns: 88px minmax(0, 1fr); }
  .app-lado { padding-inline: 8px; align-items: stretch; }
  .app-emp b { display: none; }
  .app-emp { padding: 0; justify-items: center; }
  .app-emp .st { font-size: 0; padding: 5px; }
  .app-emp .st::before { content: "Demo"; font-size: 11px; }
  .app-nav button, .app-acao { flex-direction: column; justify-content: center; gap: 4px; min-height: 60px; padding: 6px 2px; font-size: 10.5px; text-align: center; line-height: 1.15; position: relative; }
  .app-nav .ponto { position: absolute; top: 8px; right: 18px; margin: 0; }
}
/* celular */
@media (max-width: 759px) {
  .app { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  .app-lado { display: none; }
  .app-conteudo { padding: 16px 14px 28px; }
  .mt h2 { font-size: 26px; }
  .app-abas { display: grid; grid-template-columns: repeat(5, 1fr); padding: 4px 6px calc(4px + env(safe-area-inset-bottom, 0px)); background: rgba(255, 255, 255, 0.92); border-top: 1px solid var(--sep); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
  .app-abas button { position: relative; display: grid; justify-items: center; gap: 2px; min-height: 50px; padding: 6px 0 4px; font-size: 10.5px; font-weight: 500; color: var(--txt2); border-radius: 12px; }
  .app-abas button[aria-current="page"] { color: var(--azul); font-weight: 600; }
  .app-abas .ponto { position: absolute; top: 5px; left: calc(50% + 8px); margin: 0; }
  .at-chat { height: min(480px, calc(100dvh - var(--topo) - 250px)); min-height: 340px; }
}
.mais-lista { display: grid; gap: 4px; padding: 8px 14px 6px; font-family: var(--sistema); }
.mais-lista button, .mais-lista a { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 12px; border-radius: 14px; font-size: 16px; font-weight: 500; text-decoration: none; color: var(--tinta); }
.mais-lista svg { color: var(--azul); }

@media (hover: hover) and (pointer: fine) {
  .app-nav button:not([aria-current]):hover, .app-acao:not(.app-acao-prop):hover { background: rgba(10, 16, 51, 0.06); }
  .bt:hover { background: #d7e0ff; }
  .bt-cheio:hover { background: var(--azul-fundo); }
  .bt-lima:hover { background: #cbff3a; }
  .at-item:hover, .cartao:hover { border-color: rgba(1, 49, 205, 0.35); }
  .cartao:hover { transform: translateY(-1px); }
}

/* ================= movimento ================= */
@keyframes subir { from { opacity: 0; transform: translateY(18px); } }
@keyframes subir-leve { from { opacity: 0; transform: translateY(8px); } }
@keyframes surgir { from { opacity: 0; } }
@keyframes sumir { to { opacity: 0; } }
@keyframes chegar { from { opacity: 0; transform: translateY(22px) scale(0.96); } }
@keyframes piscar { 50% { opacity: 0.25; } }
@keyframes riscar { to { stroke-dashoffset: 0; } }
@keyframes girar { to { transform: rotate(360deg); } }
@keyframes pulso { 0% { transform: scale(0.4); } 60% { transform: scale(1.25); } }
@keyframes folha-entra { from { opacity: 0; transform: translateY(14px) scale(0.975); } }
@keyframes folha-sai { to { opacity: 0; transform: translateY(8px) scale(0.985); } }
@keyframes gaveta-entra { from { transform: translateY(100%); } }
@keyframes gaveta-sai { to { transform: translateY(100%); } }
@keyframes mod-entra { from { opacity: 0; transform: translateY(6px); } }
@keyframes msg-entra { from { opacity: 0; transform: translateY(8px) scale(0.95); } }
@keyframes ponto { 0%, 60%, 100% { opacity: 0.35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
@keyframes realce { 0%, 30% { box-shadow: 0 0 0 2px var(--lima), 0 0 0 6px rgba(185, 252, 1, 0.35); background-color: #f6ffd9; } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes crescer { from { transform: scaleX(0); } }
@keyframes subir-barra { from { transform: scaleY(0); } }
@keyframes aviso-entra { from { opacity: 0; transform: translateY(-120%); } }
@keyframes aviso-sai { to { opacity: 0; transform: translateY(-40%); } }

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 240ms; animation-timing-function: var(--ease-out); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  @view-transition { navigation: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .vidro { background: rgba(20, 60, 215, 0.96); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .app-lado, .app-abas { background: var(--papel); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* =====================================================================
   Tipografia nova, painel com gráficos, demonstração guiada, calendário e fichas.
   Este arquivo é somado ao estilo.css na geração do site.
   ===================================================================== */
.cartaz { font-size: clamp(2.3rem, 5.4vw, 4.2rem); line-height: 1.02; font-weight: 800; letter-spacing: -0.042em; text-transform: none; }
.cartaz-m { font-size: clamp(2rem, 4.4vw, 3.3rem); }
.sec-topo h2, .folha-corpo > h3 { font-weight: 800; letter-spacing: -0.032em; }
.btn { font-weight: 700; letter-spacing: -0.012em; font-size: 1rem; }
.btn-grande { padding: 0 18px; min-height: 58px; }
.heroi-sub { font-weight: 500; }
.dor-t, .tile h3, .relato h3 { letter-spacing: -0.022em; }
.conta-total { font-weight: 800; letter-spacing: -0.045em; }

/* personalização (nome e logo do cliente) */
.perso { margin-top: 26px; max-width: 470px; animation: subir-leve 520ms var(--ease-out) 320ms both; }
.perso > label { font-size: 0.8125rem; font-weight: 600; color: rgba(255, 255, 255, 0.82); }
.perso-linha { display: flex; gap: 8px; margin-top: 8px; }
.perso-linha > input { flex: 1; min-width: 0; height: 48px; padding: 0 14px; border-radius: 14px; border: 1.5px solid rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.1); color: var(--papel); font-size: 1rem; font-weight: 600; }
.perso-linha > input::placeholder { color: rgba(255, 255, 255, 0.62); font-weight: 500; }
.perso-linha > input:focus-visible { outline-offset: 2px; border-color: var(--lima); }
.perso-logo { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 14px; border-radius: 14px; border: 1.5px dashed rgba(255, 255, 255, 0.5); font-size: 0.875rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.perso-logo img { height: 30px; max-width: 60px; object-fit: contain; border-radius: 6px; background: var(--papel); }
.perso-limpar { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: rgba(255, 255, 255, 0.12); color: var(--papel); flex: none; }
@media (max-width: 479px) { .perso-linha { flex-wrap: wrap; } .perso-linha > input { flex: 1 1 100%; } }

/* proposta: valores e desconto */
.prop-valores { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.prop-valores label { display: block; min-width: 0; }
.prop-valores label > span:first-child small { font-weight: 500; opacity: 0.75; }
.prop-valores .dinheiro { width: 100%; max-width: none; }
.prop-valores input { width: 100%; min-width: 0; font-weight: 700; }
.prop-tab { display: block; margin-top: 5px; min-height: 1.4em; font-size: 0.75rem; color: rgba(255, 255, 255, 0.82); }
.prop-tab s { opacity: 0.7; margin-right: 4px; }
.prop-desc { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; }
.prop-desc > span { font-size: 0.8125rem; font-weight: 600; margin-right: 4px; }
.prop-desc button { min-height: 38px; padding: 0 13px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, 0.4); color: var(--papel); font-size: 0.8125rem; font-weight: 600; transition: background-color 160ms ease, color 160ms ease, transform 120ms var(--ease-out); }
.prop-desc button:active { transform: scale(0.95); }
.prop-desc button[aria-pressed="true"] { background: var(--lima); border-color: var(--lima); color: var(--tinta); }

/* aplicativo: base mais limpa */
.app { background: #f4f5f9; font-feature-settings: "cv11", "ss01"; }
.vista-app { background: #f4f5f9; }
.app-lado { background: var(--papel); border-right: 1px solid #e8eaf1; }
.app-emp { display: flex; align-items: center; gap: 10px; padding: 2px 6px 4px; }
.app-emp img { height: 40px; max-width: 64px; object-fit: contain; border-radius: 10px; border: 1px solid #e8eaf1; background: var(--papel); }
.app-emp .avatar { background: var(--azul); color: var(--papel); }
.app-emp > div { display: grid; gap: 4px; min-width: 0; }
.app-emp b { font-size: 15px; font-weight: 700; letter-spacing: -0.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-nav button svg { color: #7a8198; }
.app-nav button[aria-current="page"] { background: #eaf0ff; color: var(--azul); font-weight: 600; }
.app-nav button[aria-current="page"] svg { color: var(--azul); }
.ponto { box-shadow: 0 0 0 2px #0a1033; }
.app-mod.parado { animation: none; }
.app-conteudo { overflow-x: hidden; }
.app-mod { max-width: 1120px; gap: 16px; }
.mt h2 { font-size: 28px; font-weight: 700; letter-spacing: -0.035em; }
.cx { border: 1px solid #e8eaf1; box-shadow: none; border-radius: 20px; }
.leve { font-weight: 400 !important; color: var(--txt2); }
.ln-c.larga { grid-column: 1 / -1; }
.cd { background: var(--papel); border: 1px solid #e8eaf1; border-radius: 22px; padding: 18px 20px; min-width: 0; }
.cd > h3 { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 8px; }
.cd > h3 .st, .cd > h3 .conta-bolha { margin-left: auto; }
.cd > h3 svg { color: var(--azul); }
.cd .ln:first-child { padding-top: 6px; }
.seg2 { display: inline-flex; padding: 3px; gap: 2px; border-radius: 12px; background: rgba(10, 16, 51, 0.06); }
.seg2 button { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 12px; border-radius: 9px; font-size: 13.5px; font-weight: 600; color: var(--txt2); transition: background-color 160ms ease, color 160ms ease; }
.seg2 button[aria-pressed="true"] { background: var(--papel); color: var(--tinta); box-shadow: 0 1px 3px rgba(10, 16, 51, 0.14); }

/* painel */
.dash { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.dash > * { grid-column: 1 / -1; }
@container (min-width: 860px) {
  .dash > .cd-principal { grid-column: span 7; }
  .dash > .cd-atencao { grid-column: span 5; }
  .dash > .cd-lima { grid-column: span 7; }
  .dash > .cd-vivo { grid-column: span 5; }
  .dash > .cd-graf { grid-column: span 7; }
  .dash > .cd-rank { grid-column: span 5; }
}
.cd-principal { padding: 22px 24px; }
.numero { font-size: clamp(40px, 6.2cqw, 60px); line-height: 1; font-weight: 700; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; margin-top: 10px; }
.moeda { color: #9aa1b5; font-weight: 600; margin-right: 8px; letter-spacing: -0.02em; }
.delta { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--ok); }
.segs { display: flex; gap: 4px; height: 12px; margin-top: 22px; }
.segs i { min-width: 8px; border-radius: 6px; transform-origin: left; animation: crescer 700ms var(--ease-out) both; animation-delay: calc(var(--i) * 80ms); }
.segs-leg { display: grid; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); gap: 12px 16px; margin-top: 14px; }
.segs-leg li { display: grid; gap: 2px; }
.segs-leg span { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--txt2); }
.segs-leg i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.segs-leg b { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.conta-bolha { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--erro); color: var(--papel); font-size: 12px; font-weight: 700; }
.cd-atencao .ln { grid-template-columns: auto minmax(0, 1fr) auto; }
.cd-atencao .ln-c b { font-size: 14px; }
.cd-atencao .ln-c b, .cd-atencao .ln-c small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cd-atencao .ln { padding: 10px 0; }
.cd-atencao .bt { min-height: 36px; padding: 0 11px; font-size: 13px; }
.kps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@container (min-width: 860px) { .kps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kps.kps-op { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.kp { display: grid; gap: 3px; align-content: start; padding: 16px 18px; }
.kp-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: #e9eeff; color: var(--azul); margin-bottom: 8px; }
.kp small { font-size: 13px; font-weight: 600; color: var(--txt2); }
.kp b { font-size: 25px; line-height: 1.15; font-weight: 700; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.kp p { font-size: 12.5px; line-height: 1.35; color: var(--txt2); }
.kp-erro .kp-ic { background: var(--erro-f); color: var(--erro); }
.kp-erro b { color: var(--erro); }
.cd-lima { background: var(--lima); border-color: transparent; border-radius: 28px; padding: 20px 22px; }
.cd-lima > h3 { font-size: 17px; font-weight: 700; margin-bottom: 14px; }
.cd-lima ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 0; }
@container (min-width: 520px) { .cd-lima ul { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cd-lima li { display: grid; gap: 2px; padding-left: 16px; border-left: 1px solid rgba(10, 16, 51, 0.18); }
.cd-lima li:first-child { padding-left: 0; border-left: 0; }
.cd-lima small { font-size: 12.5px; font-weight: 600; opacity: 0.72; }
.cd-lima b { font-size: 34px; line-height: 1.1; font-weight: 700; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.cd-lima span { font-size: 12.5px; opacity: 0.72; }
.cd-vivo { display: grid; gap: 16px; align-content: center; background: #0b1024; border-color: transparent; border-radius: 28px; color: var(--papel); padding: 20px 22px; }
.cd-vivo > * { min-width: 0; }
.vivo-t { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.vivo-t span { font-size: 15px; font-weight: 600; color: #9db0ff; }
.vivo-t b { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.vivo-trilho { position: relative; height: 12px; border-radius: 6px; background: rgba(255, 255, 255, 0.14); }
.vivo-trilho i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #4f6ff2, var(--lima)); transition: width 700ms var(--ease-out); }
.vivo-trilho span { position: absolute; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -16px; border-radius: 50%; background: #2a3157; border: 3px solid #0b1024; transition: background-color 300ms ease; }
.vivo-trilho span.on { background: var(--lima); }
.vivo-espera i { background: linear-gradient(90deg, #ffb020, #ff5d5d); animation: piscar 1.8s ease-in-out infinite; }
.vivo-pe { display: flex; align-items: center; gap: 12px; }
.vivo-pe .avatar { background: #1c2447; color: var(--papel); }
.vivo-pe > div { flex: 1; min-width: 0; }
.vivo-pe b { display: block; font-size: 16px; }
.vivo-pe small { display: block; font-size: 13px; color: #aab3d6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.graf { display: block; width: 100%; height: auto; }
.graf-guia { stroke: rgba(10, 16, 51, 0.07); stroke-width: 1; }
.graf-linha { fill: none; stroke: var(--azul); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: riscar 1100ms var(--ease-in-out) 150ms forwards; }
.graf-area { animation: surgir 900ms ease 500ms both; }
.graf-pt { fill: var(--papel); stroke: var(--azul); stroke-width: 2.5; animation: surgir 300ms ease both; animation-delay: calc(400ms + var(--i) * 90ms); }
.graf-pt-hoje { fill: var(--lima); stroke: var(--tinta); }
.graf-rot { font-size: 12px; fill: var(--txt2); font-family: var(--sistema); }
.graf-rot-hoje { fill: var(--tinta); font-weight: 600; }
.graf-val { font-size: 15px; font-weight: 700; fill: var(--tinta); font-family: var(--sistema); }
.parado .graf-linha { animation: none; stroke-dashoffset: 0; }
.parado .graf-area, .parado .graf-pt, .parado .segs i, .parado .barra-f i { animation: none; }
.rank li { display: grid; grid-template-columns: 22px auto minmax(0, 1fr); gap: 10px; align-items: center; padding: 9px 0; }
.rank .avatar { width: 36px; height: 36px; font-size: 15px; background: #e9eeff; }
.rk-pos { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 12.5px; font-weight: 700; color: var(--txt2); }
.rank li:first-child .rk-pos { background: var(--lima); color: var(--tinta); }
.rk-c { display: grid; gap: 5px; min-width: 0; }
.rk-c > div:first-child { display: flex; justify-content: space-between; gap: 10px; }
.rk-c b { font-size: 14.5px; }
.rk-c span { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.rk-c small { font-size: 12px; color: var(--txt2); }

/* demonstração guiada */
.app-guia { position: absolute; left: calc(232px + 16px); right: 16px; bottom: 16px; z-index: 20; pointer-events: none; }
.guia-barra { pointer-events: auto; position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 18px; align-items: center; max-width: 1040px; margin-inline: auto; padding: 18px 20px 16px; border-radius: 24px; background: #0b1024; color: var(--papel); font-family: var(--sistema); box-shadow: 0 24px 60px -18px rgba(4, 10, 50, 0.6); animation: guia-entra 480ms var(--ease-drawer) both; }
.guia-prog { position: absolute; inset: 0 0 auto 0; height: 4px; background: rgba(255, 255, 255, 0.12); }
.guia-prog i { display: block; height: 100%; background: var(--lima); transition: width 500ms var(--ease-out); }
.guia-txt small { font-size: 12.5px; font-weight: 600; color: #9db0ff; }
.guia-txt b { display: block; font-size: 19px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.2; margin-top: 2px; }
.guia-txt p { font-size: 14.5px; line-height: 1.4; color: #cbd2ea; margin-top: 3px; max-width: 64ch; }
.guia-bts { display: flex; align-items: center; gap: 8px; }
.guia-bts .bt-quieto { background: rgba(255, 255, 255, 0.1); color: var(--papel); }
.guia-bts .bt[disabled] { opacity: 0.7; }
.guia-x { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); color: var(--papel); }
.app[data-guiando] .app-conteudo { padding-bottom: 190px; }
.app[data-guiando] .at-chat { height: calc(100dvh - var(--topo) - 318px); min-height: 300px; }
.foco { position: relative; z-index: 2; outline: 3px solid var(--lima); outline-offset: 4px; border-radius: 18px; animation: foco 1500ms ease-in-out infinite; }
@media (max-width: 1023px) and (min-width: 760px) { .app-guia { left: calc(88px + 14px); } }
@media (max-width: 759px) {
  .app-guia { left: 8px; right: 8px; bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
  .guia-barra { grid-template-columns: minmax(0, 1fr); padding: 16px 14px 12px; border-radius: 20px; }
  .guia-txt b { font-size: 17px; }
  .guia-txt p { font-size: 13.5px; }
  .guia-bts .bt-g { flex: 1; }
  .app[data-guiando] .app-conteudo { padding-bottom: 250px; }
}

/* calendário */
.cd-cal { padding: 14px 14px 12px; }
.cal-rolo { overflow-x: auto; scrollbar-width: thin; }
.cal { min-width: 640px; }
.cal-dias, .cal-corpo { display: grid; grid-template-columns: 50px repeat(6, minmax(0, 1fr)); column-gap: 6px; }
.cal-dias { padding-bottom: 8px; }
.cal-dias b { display: grid; justify-items: center; gap: 2px; font-size: 12.5px; font-weight: 600; color: var(--txt2); }
.cal-dias small { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-size: 15px; font-weight: 600; color: var(--tinta); }
.cal-dias b.hoje { color: var(--azul); }
.cal-dias b.hoje small { background: var(--azul); color: var(--papel); }
.cal-corpo { background-image: linear-gradient(var(--sep) 1px, transparent 1px); background-size: 100% 54px; }
.cal-h { grid-column: 1; padding-top: 4px; font-size: 11.5px; color: var(--txt2); font-variant-numeric: tabular-nums; }
.cal-col { grid-row: 1 / -1; border-radius: 10px; background: rgba(10, 16, 51, 0.022); }
.cal-col.hoje { background: rgba(1, 49, 205, 0.06); }
.ev { z-index: 1; margin: 2px; padding: 5px 8px; border-radius: 9px; border: 1px solid transparent; text-align: left; font-size: 12px; line-height: 1.25; overflow: hidden; display: grid; align-content: start; transition: transform 120ms var(--ease-out); }
.ev[data-a]:active { transform: scale(0.97); }
.ev:not([data-a]) { cursor: default; }
.ev b, .ev span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev b { font-weight: 600; }
.ev span { opacity: 0.82; }
.ev-ok { background: #e6ecff; border-color: var(--azul); color: #0a2a9e; }
.ev-pend { background: var(--pend-f); border-color: #f0a020; color: var(--pend); }
.ev-env { background: #eef2ff; border-color: #9fb1ff; color: var(--azul); }
.ev-livre { background: var(--papel); border: 1.5px dashed #b9c0d6; color: var(--txt2); }
.ev-ia { background: var(--lima); border-color: var(--tinta); color: var(--tinta); }
.cal-leg { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 12.5px; color: var(--txt2); }
.cal-leg span { display: inline-flex; align-items: center; gap: 6px; }
.cal-leg i { width: 12px; height: 12px; border-radius: 4px; border: 1px solid transparent; }

/* fichas do módulo do segmento (veículos, imóveis, unidades) */
.fichas { display: grid; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); gap: 14px; }
.ficha { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.ficha-arte { position: relative; padding: 30px 18px 6px; background: linear-gradient(180deg, #eef2fb, #e1e7f5); }
.ficha-arte svg { display: block; width: 100%; height: 104px; }
.ficha-arte .st { position: absolute; top: 12px; left: 12px; }
.ficha-ilus { position: absolute; top: 14px; right: 12px; font-size: 10.5px; font-weight: 500; color: #7f88a6; }
.ficha-c { display: grid; gap: 3px; padding: 14px 16px 16px; flex: 1; align-content: start; }
.ficha-c > b { font-size: 16px; letter-spacing: -0.015em; }
.ficha-c > small { font-size: 13px; color: var(--txt2); }
.ficha-preco { font-size: 22px; font-weight: 700; letter-spacing: -0.035em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 6px 0; }
.tags li { padding: 3px 8px; border-radius: 7px; background: rgba(10, 16, 51, 0.06); color: var(--txt2); font-size: 12px; font-weight: 500; }
.tags .tag-ok { background: var(--ok-f); color: var(--ok); }
.tags .tag-pend { background: var(--pend-f); color: var(--pend); }
.ficha-obs { font-size: 13px; color: var(--txt2); }
.ficha .bt { margin-top: 10px; width: 100%; }
.ficha-fim { opacity: 0.74; }

@keyframes guia-entra { from { opacity: 0; transform: translateY(40px); } }
@keyframes foco { 0%, 100% { box-shadow: 0 0 0 0 rgba(185, 252, 1, 0.6); } 50% { box-shadow: 0 0 0 12px rgba(185, 252, 1, 0); } }
