/* Nasta Finance · base compartilhada das landings por perfil
   Marca: Manual de Identidade Visual revisado (Inter, azul-petróleo, grafite-azulado, branco predominante) */

:root {
  --petroleo: #397F91;
  --grafite: #263746;
  --azul: #3978B8;
  --azul-escuro: #2C6299;
  --ceu: #79A8D4;
  --acinzentado: #7189A8;
  --branco: #FFFFFF;
  --quase-branco: #F8FAFC;
  --linha: #DCE5EF;
  --cinza: #64748B;
  --salvia: #A3B77B;
  --salvia-texto: #5E7A3A;
  --rosa: #C77D7D;
  --ambar: #D9B44A;
  --info: #3B82F6;

  --cat-azul: #3978B8;
  --cat-ceu: #79A8D4;
  --cat-petroleo: #246A78;
  --cat-floresta: #347653;
  --cat-menta: #79BFA1;
  --cat-oliva: #89965B;
  --cat-dourado: #D9B44A;
  --cat-laranja: #E58A2B;
  --cat-terracota: #C4775A;
  --cat-tomate: #E05252;
  --cat-cereja: #A92F45;
  --cat-pink: #E45C91;
  --cat-lavanda: #8977B8;
  --cat-chocolate: #85563C;

  --bg: var(--branco);
  --bg-2: var(--quase-branco);
  --texto: var(--grafite);
  --texto-2: var(--cinza);
  --borda: var(--linha);
  --cta: var(--azul);
  --cta-hover: var(--azul-escuro);
  --cta-texto: #fff;

  --raio: 18px;
  --raio-lg: 28px;
  --sombra: 0 1px 2px rgba(38, 55, 70, .04), 0 8px 24px -12px rgba(38, 55, 70, .12);
  --sombra-lg: 0 2px 4px rgba(38, 55, 70, .04), 0 30px 60px -30px rgba(38, 55, 70, .28);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--texto);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-optical-sizing: auto;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, select { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--azul); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--ceu); color: var(--grafite); }

.tnum { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1, "cv11" 1; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* Rótulo pequeno: caixa alta só aqui, como o manual permite */
.rotulo {
  display: inline-flex; align-items: center; gap: .55em;
  font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--texto-2);
}
.rotulo::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--petroleo); }

/* ---------- Topo ---------- */
.topo {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--gutter);
  transition: background .5s var(--ease), box-shadow .5s var(--ease), transform .6s var(--ease);
}
.topo__marca img { height: 34px; width: auto; }
.topo__acoes { display: flex; align-items: center; gap: 10px; }
.topo.is-solid { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 1px 0 var(--borda); }
.topo.is-hidden { transform: translateY(-110%); }
.link-login { font-size: 14px; font-weight: 500; color: var(--texto-2); padding: 10px 6px; transition: color .3s; }
.link-login:hover { color: var(--texto); }

/* ---------- Botões ---------- */
.btn {
  --h: 56px;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: var(--h); padding: 0 26px 0 22px; border-radius: 999px;
  font-size: 16px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap;
  background: var(--cta); color: var(--cta-texto);
  transition: background .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
  box-shadow: 0 10px 30px -12px color-mix(in srgb, var(--cta) 70%, transparent);
  will-change: transform;
}
.btn:hover { background: var(--cta-hover); }
.btn:active { transform: scale(.97); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--sm { --h: 42px; font-size: 14px; padding: 0 18px 0 15px; gap: 9px; }
.btn--sm svg { width: 17px; height: 17px; }
.btn--lg { --h: 68px; font-size: 18px; padding: 0 34px 0 28px; }
.btn--ghost { background: transparent; color: var(--texto); box-shadow: inset 0 0 0 1.5px var(--borda); }
.btn--ghost:hover { background: color-mix(in srgb, var(--texto) 6%, transparent); }
.btn__seta { transition: transform .4s var(--ease); }
.btn:hover .btn__seta { transform: translateX(4px); }
.cta-nota { font-size: 13px; color: var(--texto-2); margin-top: 14px; }

/* ---------- Chat (demonstração) ---------- */
.chat { display: flex; flex-direction: column; gap: 8px; }
.msg {
  max-width: 84%; padding: 10px 14px 9px; border-radius: 18px;
  font-size: 15px; line-height: 1.42; position: relative;
  box-shadow: 0 1px 1px rgba(38, 55, 70, .06);
  transform-origin: bottom left;
}
.msg small { display: block; font-size: 10.5px; opacity: .55; margin-top: 3px; text-align: right; }
.msg--eu { align-self: flex-end; background: #E3EFFA; color: var(--grafite); border-bottom-right-radius: 6px; transform-origin: bottom right; }
.msg--nasta { align-self: flex-start; background: #fff; color: var(--grafite); border-bottom-left-radius: 6px; border: 1px solid var(--linha); }
.msg--nasta strong { font-weight: 600; }
.msg__registro { display: flex; align-items: center; gap: 10px; margin-top: 6px; padding: 8px 10px; border-radius: 12px; background: var(--quase-branco); border: 1px solid var(--linha); font-size: 13.5px; }
.msg__registro i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.digitando { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 18px; background: #fff; border: 1px solid var(--linha); border-bottom-left-radius: 6px; }
.digitando img { width: 18px; height: auto; animation: pulsoN 1s var(--ease) infinite; }
.digitando span { font-size: 13px; color: var(--texto-2); }
@keyframes pulsoN { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.82); opacity: .55; } }

/* Moldura de celular */
.celular {
  position: relative; width: 100%; max-width: 360px; aspect-ratio: 9 / 18.6;
  border-radius: 46px; padding: 12px; background: #0E151C;
  box-shadow: 0 0 0 1.5px #2a3644 inset, 0 50px 100px -40px rgba(14, 21, 28, .55), 0 20px 40px -20px rgba(14, 21, 28, .35);
}
.celular__tela { position: relative; height: 100%; border-radius: 36px; overflow: hidden; background: #EEF3F8; display: flex; flex-direction: column; }
.celular__ilha { position: absolute; top: 20px; left: 50%; translate: -50% 0; width: 96px; height: 26px; border-radius: 20px; background: #0E151C; z-index: 3; }
.chat-topo { display: flex; align-items: center; gap: 10px; padding: 52px 16px 12px; background: #fff; border-bottom: 1px solid var(--linha); }
.chat-topo__avatar { width: 36px; height: 36px; border-radius: 50%; background: #fff; border: 1px solid var(--linha); display: grid; place-items: center; }
.chat-topo__avatar img { width: 20px; }
.chat-topo b { display: block; font-size: 15px; font-weight: 600; line-height: 1.1; }
.chat-topo span { font-size: 12px; color: var(--salvia-texto); }
.chat-corpo { flex: 1; overflow: hidden; padding: 16px 12px; display: flex; flex-direction: column; justify-content: flex-end; }
.chat-entrada { display: flex; align-items: center; gap: 8px; padding: 10px 10px 18px; background: #fff; border-top: 1px solid var(--linha); }
.chat-entrada__campo { flex: 1; height: 40px; border-radius: 20px; border: 1px solid var(--linha); padding: 0 14px; display: flex; align-items: center; font-size: 14px; color: var(--texto-2); background: var(--quase-branco); overflow: hidden; white-space: nowrap; }
.chat-entrada__enviar { width: 40px; height: 40px; border-radius: 50%; background: var(--azul); display: grid; place-items: center; flex: none; }
.chat-entrada__enviar svg { width: 18px; height: 18px; color: #fff; }

/* Cartões do painel (recriados a partir dos prints) */
.pcard { background: #fff; border: 1px solid var(--linha); border-radius: 16px; padding: 18px 18px 16px; box-shadow: var(--sombra); }
.pcard__topo { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--cinza); }
.pcard__icone { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: #EAF2FA; color: var(--azul); }
.pcard__icone svg { width: 15px; height: 15px; }
.pcard__valor { font-size: clamp(22px, 2.1vw, 28px); font-weight: 700; letter-spacing: -.02em; margin: 6px 0 4px; color: var(--grafite); }
.pcard__legenda { font-size: 12px; color: var(--cinza); }

/* Selo de exemplo: os valores das demonstrações são ilustrativos */
.exemplo { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--texto-2); letter-spacing: .01em; }
.exemplo::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--ambar); }

/* FAQ */
.faq { border-top: 1px solid var(--borda); }
.faq details { border-bottom: 1px solid var(--borda); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; font-size: clamp(17px, 1.6vw, 21px); font-weight: 500; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; width: 22px; height: 22px; flex: none; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.6px; background: currentColor; translate: -50% -50%; transition: transform .45s var(--ease); }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i::after { transform: rotate(0deg); }
.faq__resp { overflow: hidden; }
.faq__resp p { padding: 0 0 26px; max-width: 64ch; color: var(--texto-2); }

/* Rodapé */
.rodape { padding: 56px 0 40px; font-size: 13.5px; color: var(--texto-2); }
.rodape__linha { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px 32px; }
.rodape img { height: 30px; width: auto; }
.rodape nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.rodape a:hover { color: var(--texto); }
.rodape__nota { margin-top: 26px; max-width: 76ch; font-size: 12.5px; line-height: 1.6; opacity: .85; }

/* Barra fixa de CTA no celular */
.cta-fixo {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
  display: none; transform: translateY(140%); transition: transform .6s var(--ease);
}
.cta-fixo .btn { width: 100%; }
.cta-fixo.is-on { transform: none; }
@media (max-width: 760px) { .cta-fixo { display: block; } }

/* Revelações (o JS anima; sem JS tudo aparece) */
.js [data-reveal] { opacity: 0; transform: translateY(28px); }
.js [data-split] { visibility: hidden; }
.no-motion [data-split] { visibility: visible !important; }
.sl { padding-bottom: .06em; margin-bottom: -.06em; }
.no-motion [data-reveal] { opacity: 1 !important; transform: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
