/*
 * Landing da Fluton (flutonpay.com). Estática: HTML + este CSS + app.js.
 *
 * FICHA DE DIREÇÃO DE ARTE (guia de landing pages, 1.3) — mesma linguagem do
 * painel "Fluton Liquid" (docs/plano-v2-liquid.md):
 * Tema ............ escuro, grafite liso com luz difusa e ESTÁTICA (como o app)
 * Fundo/superfície  #111211 / #1A1B19 / #222321; campo #161715
 * Texto ........... #F2F2EE / apoio #B4B5AE / discreto #8C8D86
 * Borda ........... rgba(242,242,238,.08) / forte .16 (hairline, sem sombra)
 * Acento .......... lima #D4F53C (hover #DEF86A), texto #0E0E0E por cima.
 *                   Só no botão principal, no saldo, nas entradas e no bloco final.
 * Fontes .......... Space Grotesk (títulos 600/700), DM Sans (texto), DM Mono (ids e código)
 * Escala .......... H1 76/1.02 (cel. 40) · H2 52/1.05 (cel. 31) · cartão 22 · apoio 19 (cel. 16) · pequeno 13
 * Raios ........... pílula 999 · bloco 28 · cartão 20 · painel interno 14
 * Botão ........... pílula sólida lima; secundário de vidro fino; pressionar = scale(.97)
 * Rótulo .......... nenhum (regra do Liquid: sem sobretítulo, sem texto em degradê)
 * Assinatura ...... os dois círculos do símbolo (entrada lima, saída clara) em escala
 *                   gigante sob um painel de vidro com o saldo e os Pix chegando.
 *                   Volta no fim: bloco lima do saldo com os círculos nascendo da base.
 * Técnicas do kit . cabeçalho de vidro, entrada ao carregar, revelação ao rolar (sem
 *                   blur), bento de larguras diferentes, sanfona, CTA com objeto por trás.
 *                   De fora: texto em degradê e rótulo pílula (contra o Liquid), botão
 *                   "vivo" com faixa de luz (não é Fluton), carrossel (sem clientes reais).
 */

@font-face { font-family: "DM Sans"; src: url("/fontes/dm-sans.woff2") format("woff2"); font-weight: 100 1000; font-style: normal; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("/fontes/space-grotesk.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("/fontes/dm-mono-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("/fontes/dm-mono-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --bg: #111211;
  --surface: #1a1b19;
  --surface-2: #222321;
  --field: #161715;
  --border: rgba(242, 242, 238, 0.08);
  --border-strong: rgba(242, 242, 238, 0.16);
  --fg: #f2f2ee;
  --muted: #b4b5ae;
  --subtle: #8c8d86;
  --lima: #d4f53c;
  --lima-hover: #def86a;
  --lima-press: #bfdd2e;
  --lima-muted: rgba(212, 245, 60, 0.14);
  --tinta: #0e0e0e;
  --critico: #ef6461;

  --glass-bg: rgba(30, 31, 29, 0.58);
  --glass-strong: rgba(26, 27, 25, 0.78);
  --glass-border: rgba(255, 255, 255, 0.09);
  --glass-highlight: rgba(255, 255, 255, 0.14);
  --glass-shadow: 0 12px 32px -10px rgba(0, 0, 0, 0.6), 0 2px 6px rgba(0, 0, 0, 0.22);

  --r-bloco: 28px;
  --r-cartao: 20px;
  --r-painel: 14px;

  --f-display: "Space Grotesk", "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --f-texto: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-gaveta: cubic-bezier(0.32, 0.72, 0, 1);

  --largura: 1200px;
  --gutter: 24px;
  --respiro: 136px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-texto);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, p, ul, dl, dd, pre { margin: 0; }
ul { padding: 0; list-style: none; }
code, .mono { font-family: var(--f-mono); font-size: 0.92em; letter-spacing: -0.01em; }
.num { font-variant-numeric: tabular-nums; }
::selection { background: var(--lima); color: var(--tinta); }
:focus-visible { outline: 2px solid var(--lima); outline-offset: 3px; border-radius: 6px; }

.pular {
  position: fixed; left: 16px; top: -60px; z-index: 50;
  padding: 10px 16px; border-radius: 999px; background: var(--lima); color: var(--tinta); font-weight: 600;
  transition: top 0.2s var(--ease-out);
}
.pular:focus { top: 16px; }

.conteiner { width: min(var(--largura), 100% - var(--gutter) * 2); margin-inline: auto; }
.voz2 { color: var(--subtle); }

/* ── Ícones ─────────────────────────────────────────────── */
.ic { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ── Botões ─────────────────────────────────────────────── */
.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: 999px;
  font-size: 15px; font-weight: 600; letter-spacing: -0.005em; white-space: nowrap;
  transition: background-color 0.18s var(--ease-out), border-color 0.18s var(--ease-out), transform 0.14s var(--ease-out), color 0.18s;
  -webkit-tap-highlight-color: transparent;
}
.botao:active { transform: scale(0.97); }
.botao .ic { transition: transform 0.26s var(--ease-out); }
.botao--p { height: 40px; padding: 0 18px; font-size: 14px; gap: 8px; }
.botao--lima { background: var(--lima); color: var(--tinta); }
.botao--lima:active { background: var(--lima-press); }
.botao--vidro {
  background: rgba(255, 255, 255, 0.05); color: var(--fg);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 var(--glass-highlight);
  backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%);
}
.botao--tinta { background: var(--tinta); color: var(--fg); }
.botao--contorno { color: var(--tinta); border: 1.5px solid rgba(14, 14, 14, 0.28); }
@media (hover: hover) and (pointer: fine) {
  .botao--lima:hover { background: var(--lima-hover); }
  .botao--vidro:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.16); }
  .botao--tinta:hover { background: #262724; }
  .botao--contorno:hover { border-color: rgba(14, 14, 14, 0.6); }
  .botao:hover .ic { transform: translateX(3px); }
}

.link {
  color: var(--fg); text-decoration: underline; text-decoration-color: var(--border-strong);
  text-underline-offset: 5px; text-decoration-thickness: 1px; transition: text-decoration-color 0.18s;
}
@media (hover: hover) { .link:hover { text-decoration-color: var(--lima); } }

/* ── Barra (vidro, flutuando 12px do topo, como no painel) ── */
.barra {
  position: fixed; z-index: 40; top: 12px; left: 50%; transform: translateX(-50%);
  width: min(var(--largura) + 24px, 100% - 24px); height: 64px;
  display: flex; align-items: center; gap: 24px; padding: 0 12px 0 22px;
  border-radius: 999px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 var(--glass-highlight), var(--glass-shadow);
  backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%);
  transition: background-color 0.3s var(--ease-out);
}
.barra.rolou { background: var(--glass-strong); }
.marca { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.marca__simbolo { width: 30px; height: auto; }
.marca__nome { font-family: var(--f-display); font-weight: 600; font-size: 22px; letter-spacing: -0.03em; line-height: 1; }
.barra__menu { display: flex; gap: 4px; margin-inline: auto; }
.barra__menu a {
  padding: 8px 14px; border-radius: 999px; font-size: 14px; color: var(--muted);
  transition: color 0.18s, background-color 0.18s;
}
@media (hover: hover) { .barra__menu a:hover { color: var(--fg); background: rgba(255, 255, 255, 0.06); } }
.barra__acoes { display: flex; align-items: center; gap: 6px; flex: none; }
.barra__entrar { padding: 10px 14px; font-size: 14px; font-weight: 500; color: var(--fg); border-radius: 999px; }
@media (hover: hover) { .barra__entrar:hover { background: rgba(255, 255, 255, 0.06); } }

/* ── Herói ─────────────────────────────────────────────── */
.heroi { position: relative; padding: 168px 0 48px; isolation: isolate; overflow-x: clip; }
.heroi::before {
  content: ""; position: absolute; inset: 0 0 -200px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(42% 46% at 76% 28%, rgba(212, 245, 60, 0.10), transparent 70%),
    radial-gradient(36% 40% at 100% 0%, rgba(61, 214, 198, 0.07), transparent 70%),
    radial-gradient(34% 30% at 12% 62%, rgba(109, 140, 255, 0.05), transparent 70%);
}
.heroi__grade { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.heroi h1 {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(40px, 4.8vw, 68px); line-height: 1.03; letter-spacing: -0.04em;
  text-wrap: balance; max-width: 10.4em;
}
.heroi__apoio { margin-top: 28px; font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 31em; text-wrap: pretty; }
.heroi__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.heroi__nota { margin-top: 20px; font-size: 13px; color: var(--subtle); max-width: 34em; }

/* Palco: o símbolo em escala gigante + o painel de vidro por cima. */
.palco {
  --d: 380px;                         /* diâmetro dos círculos */
  --sep: calc(var(--d) * 4 / 7);      /* distância entre os centros: a do símbolo (8/7 do raio) */
  --topo: 24px;
  position: relative; min-height: 560px;
  padding-top: calc(var(--topo) + var(--d) * 0.5);
  display: flex; justify-content: center;
}
.circulo {
  position: absolute; top: var(--topo); width: var(--d); height: var(--d); border-radius: 50%;
  left: calc(50% - (var(--d) + var(--sep)) / 2);
}
.circulo--entrada {
  background:
    radial-gradient(60% 60% at 30% 22%, rgba(255, 255, 255, 0.42), transparent 62%),
    var(--lima);
}
.circulo--saida { left: calc(50% - (var(--d) + var(--sep)) / 2 + var(--sep)); background: #f2f2ee; }

.ficha {
  position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  font-family: var(--f-mono); font-size: 12px; color: var(--fg);
  background: rgba(20, 21, 19, 0.55); border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 var(--glass-highlight), var(--glass-shadow);
  backdrop-filter: blur(18px) saturate(180%); -webkit-backdrop-filter: blur(18px) saturate(180%);
}
.ficha--1 { left: calc(50% - (var(--d) + var(--sep)) / 2 - 18px); top: calc(var(--topo) + var(--d) * 0.2); }
.ficha--2 { right: calc(50% - (var(--d) + var(--sep)) / 2 - 22px); top: calc(var(--topo) + var(--d) * 0.08); }
.ponto { width: 7px; height: 7px; border-radius: 50%; background: var(--lima); box-shadow: 0 0 0 3px rgba(212, 245, 60, 0.2); }
.ponto--neutro { background: var(--fg); box-shadow: 0 0 0 3px rgba(242, 242, 238, 0.16); }

.painel {
  position: relative; z-index: 1; width: min(392px, 100%);
  padding: 22px 22px 10px; border-radius: var(--r-bloco);
  background: rgba(22, 23, 21, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 40px 80px -30px rgba(0, 0, 0, 0.75), 0 2px 8px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(30px) saturate(190%); -webkit-backdrop-filter: blur(30px) saturate(190%);
}
.painel__topo { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); }
.painel__vivo { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--subtle); }
.painel__vivo i { width: 6px; height: 6px; border-radius: 50%; background: var(--lima); }
.painel__saldo {
  margin-top: 6px; font-family: var(--f-display); font-weight: 700;
  font-size: 42px; line-height: 1.1; letter-spacing: -0.035em; white-space: nowrap;
}
.painel__mini { display: flex; gap: 18px; margin-top: 8px; font-size: 12.5px; color: var(--subtle); }
.painel__mini b { color: var(--fg); font-weight: 500; margin-left: 4px; }
.feed { margin-top: 16px; height: calc(56px * 4); overflow: hidden; border-top: 1px solid var(--border); }
.feed__linha {
  display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  height: 56px; border-bottom: 1px solid var(--border); overflow: hidden;
}
.feed__ic {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.07); color: var(--muted);
}
.feed__ic--in { background: var(--lima-muted); color: var(--lima); }
.feed__txt { min-width: 0; display: grid; line-height: 1.25; }
.feed__txt b { font-weight: 500; font-size: 14px; }
.feed__txt small { font-size: 12px; color: var(--subtle); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed__txt .mono { font-size: 11.5px; }
.feed__valor { font-weight: 500; font-size: 14px; white-space: nowrap; }
.feed__valor--out { color: var(--muted); }
.feed__linha.entra { animation: linha-entra 0.62s var(--ease-gaveta) both; }
@keyframes linha-entra {
  from { height: 0; opacity: 0; transform: translateY(-10px); }
  to { height: 56px; opacity: 1; transform: none; }
}
.painel__saldo.pulsa { animation: pulsa 0.9s var(--ease-out); }
@keyframes pulsa { 0% { color: var(--lima); } 100% { color: var(--fg); } }

/* Entrada ao carregar (só opacidade e deslocamento curto, como o app). */
.js .surgir { opacity: 0; transform: translateY(14px); animation: surgir 0.7s var(--ease-out) forwards; }
.js .surgir--2 { animation-delay: 0.08s; }
.js .surgir--3 { animation-delay: 0.16s; }
@keyframes surgir { to { opacity: 1; transform: none; } }
.js .palco { animation: palco 1s var(--ease-out) both; animation-delay: 0.1s; }
@keyframes palco { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }

/* Revelação ao rolar. */
.js .rv { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.js .rv.on { opacity: 1; transform: none; }
.js .rv--2 { transition-delay: 0.08s; }

/* ── Seções ─────────────────────────────────────────────── */
.secao { padding: var(--respiro) 0; }
.secao + .secao { padding-top: 0; }
.cabeca { max-width: 760px; margin-bottom: 56px; }
.ia__texto h2, .seg__texto h2, .faq__cabeca h2 { font-size: clamp(30px, 3.3vw, 44px); }
h2 {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(31px, 3.9vw, 52px); line-height: 1.05; letter-spacing: -0.035em; text-wrap: balance;
}
.cabeca p, .ia__texto > p, .seg__texto p, .faq__cabeca p {
  margin-top: 20px; font-size: 17px; line-height: 1.6; color: var(--muted); max-width: 36em; text-wrap: pretty;
}

/* Como funciona */
.passos { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; align-items: start; }
.passos__lista { display: grid; gap: 8px; }
.passo {
  display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 16px; text-align: left;
  padding: 20px 20px 22px; border-radius: var(--r-cartao); border: 1px solid transparent;
  transition: background-color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}
.passo.ativo { background: var(--surface); border-color: var(--border); }
@media (hover: hover) { .passo:not(.ativo):hover { background: rgba(255, 255, 255, 0.03); } }
.passo__n {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--f-display); font-weight: 600; font-size: 14px;
  border: 1px solid var(--border-strong); color: var(--muted);
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.passo.ativo .passo__n { background: var(--lima); border-color: var(--lima); color: var(--tinta); }
.passo__txt { display: grid; gap: 6px; padding-top: 4px; }
.passo__txt b { font-family: var(--f-display); font-weight: 600; font-size: 19px; letter-spacing: -0.02em; }
.passo__txt small { font-size: 15px; line-height: 1.55; color: var(--muted); }
.passo__txt code { color: var(--fg); }

.janelas { min-width: 0; }
.janela {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-cartao);
  overflow: hidden;
}
.js .passo-painel:not(.ativo) { display: none; }
.passo-painel + .passo-painel { margin-top: 16px; }
.js .passo-painel + .passo-painel { margin-top: 0; }
.janela__topo {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 12px 12px 18px; border-bottom: 1px solid var(--border); background: var(--field);
}
.janela__rota { display: inline-flex; align-items: center; gap: 10px; min-width: 0; font-size: 13px; }
.janela__rota code { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.metodo {
  font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.02em;
  padding: 3px 8px; border-radius: 6px; background: var(--lima-muted); color: var(--lima);
}
.metodo--get { background: rgba(127, 166, 232, 0.14); color: #9dbbee; }
.alterna {
  position: relative; display: inline-flex; padding: 3px; border-radius: 999px; flex: none;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border);
}
.alterna button { padding: 6px 12px; border-radius: 999px; font-size: 12.5px; color: var(--subtle); transition: color 0.18s, background-color 0.2s var(--ease-out); }
.alterna button.ativo { background: rgba(255, 255, 255, 0.1); color: var(--fg); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08); }
.codigo {
  padding: 22px 24px 26px; min-height: 452px; overflow-x: auto;
  font-family: var(--f-mono); font-size: 13px; line-height: 1.75; color: var(--fg); tab-size: 2;
}
.codigo code { font-size: inherit; letter-spacing: 0; }
.js .janela .codigo:not(.ativo) { display: none; }
.janela .codigo + .codigo { border-top: 1px dashed var(--border); }
.js .janela .codigo + .codigo { border-top: 0; }
.c-k { color: var(--muted); }
.c-s { color: var(--fg); }
.c-n { color: var(--lima); }
.c-p { color: var(--subtle); }
.c-h { color: var(--subtle); }
.c-m { color: var(--lima); font-weight: 500; }
.c-c { color: var(--subtle); }
.c-ok { color: var(--lima); font-weight: 500; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; }
.cartao {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 28px;
  padding: 30px 30px 0; min-height: 400px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-cartao);
}
.cartao--a { grid-column: span 7; padding-bottom: 30px; }
.cartao--b { grid-column: span 5; padding-bottom: 30px; }
.cartao--c { grid-column: span 5; padding-bottom: 30px; }
.cartao--d { grid-column: span 7; }
.cartao h3 { font-family: var(--f-display); font-weight: 600; font-size: 22px; letter-spacing: -0.025em; line-height: 1.2; }
.cartao__texto p { margin-top: 10px; font-size: 15px; line-height: 1.6; color: var(--muted); max-width: 30em; }
.cartao__texto code { color: var(--fg); }

.idem { margin-top: auto; display: grid; gap: 8px; }
.idem__linha {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px;
  padding: 12px 14px; border-radius: var(--r-painel); background: var(--field); border: 1px solid var(--border);
  font-size: 12.5px;
}
.idem__req { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.idem__chave { color: var(--subtle); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.idem__res em { font-style: normal; font-family: var(--f-texto); color: var(--muted); }
.idem__res { display: inline-flex; align-items: center; gap: 8px; color: var(--subtle); white-space: nowrap; }
.idem__res code { color: var(--fg); }
.idem__res--novo code { color: var(--lima); }
.idem__linha--erro { border-style: dashed; }
.idem__res--erro code { color: var(--critico); }

.eventos { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; }
.eventos li {
  padding: 6px 11px; border-radius: 999px; font-family: var(--f-mono); font-size: 11.5px;
  color: var(--subtle); border: 1px solid var(--border); background: var(--field);
}
.eventos li.on { color: var(--tinta); background: var(--lima); border-color: var(--lima); }

.extrato { margin-top: auto; border-radius: var(--r-painel); border: 1px solid var(--border); background: var(--field); overflow: hidden; font-size: 13px; }
.extrato__cab, .extrato__linha { display: grid; grid-template-columns: minmax(0, 1fr) auto 92px; gap: 14px; align-items: center; padding: 12px 16px; }
.extrato__cab { font-size: 11.5px; color: var(--subtle); border-bottom: 1px solid var(--border); }
.extrato__cab span:not(:first-child), .extrato__linha span:not(:first-child) { text-align: right; }
.extrato__linha + .extrato__linha { border-top: 1px solid var(--border); }
.extrato__linha small { display: block; font-size: 11px; color: var(--subtle); margin-top: 2px; }
.extrato .pos { color: var(--lima); }

.papel {
  margin: auto auto 0; width: min(420px, 100%);
  padding: 22px 24px 30px; border-radius: 16px 16px 0 0;
  background: #f7f7f3; color: var(--tinta);
  box-shadow: 0 -20px 50px -20px rgba(0, 0, 0, 0.6);
  transform: translateY(18px);
}
.papel__topo { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; }
.papel__topo svg { width: 26px; }
.papel__valor { margin-top: 18px; font-family: var(--f-display); font-weight: 700; font-size: 34px; letter-spacing: -0.03em; }
.papel__dados { margin-top: 14px; display: grid; gap: 0; font-size: 13px; }
.papel__dados div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-top: 1px solid #e6e6df; }
.papel__dados dt { color: #5f5f5f; }
.papel__dados dd { text-align: right; }
.papel__dados .mono { font-size: 12px; }

.tambem {
  margin-top: 12px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--border); border-radius: var(--r-cartao); overflow: hidden;
}
.tambem li { display: grid; gap: 6px; padding: 24px 26px; border-left: 1px solid var(--border); border-top: 1px solid var(--border); margin: -1px 0 0 -1px; }
.tambem b { font-family: var(--f-display); font-weight: 600; font-size: 16px; letter-spacing: -0.015em; }
.tambem span { font-size: 14px; line-height: 1.55; color: var(--muted); }
.tambem code { color: var(--fg); font-size: 0.88em; }

/* Integre com IA */
.secao--ia { position: relative; isolation: isolate; }
.secao--ia::before {
  content: ""; position: absolute; z-index: -1; inset: -10% 0 0; pointer-events: none;
  background: radial-gradient(38% 50% at 72% 50%, rgba(212, 245, 60, 0.075), transparent 72%);
}
.ia { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.ia__links { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 28px !important; font-size: 15px; }
.ia__painel {
  min-width: 0; padding: 20px; border-radius: 24px;
  background: var(--glass-strong); border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 var(--glass-highlight), var(--glass-shadow);
  backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%);
}
.ia__opcoes { display: grid; gap: 14px; }
.ia__rotulo { font-size: 12px; font-weight: 500; color: var(--subtle); margin-bottom: 8px; }
.segmentos {
  display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 999px; max-width: 100%;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border);
}
.segmentos button {
  padding: 7px 14px; border-radius: 999px; font-size: 13px; color: var(--muted);
  transition: color 0.18s, background-color 0.22s var(--ease-out);
}
.segmentos button[aria-checked="true"] { background: rgba(255, 255, 255, 0.1); color: var(--fg); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08); }
@media (hover: hover) { .segmentos button[aria-checked="false"]:hover { color: var(--fg); } }
.pedido {
  margin-top: 16px; height: 318px; overflow: auto; padding: 18px 20px;
  border-radius: var(--r-painel); background: rgba(14, 15, 13, 0.6); border: 1px solid var(--border);
  font-family: var(--f-mono); font-size: 12.5px; line-height: 1.7; color: var(--muted);
  white-space: pre-wrap; word-break: break-word;
}
.ia__painel .botao--vidro { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(255, 255, 255, 0.06); }
.ia__acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.ia__aviso { font-size: 13px; color: var(--lima); min-height: 1em; }

/* Segurança: linhas no estilo Ajustes */
.seg { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.ajustes { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-cartao); overflow: hidden; }
.ajustes div { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 18px 22px; }
.ajustes div + div { border-top: 1px solid var(--border); }
.ajustes dt { font-size: 15px; font-weight: 500; }
.ajustes dd { font-size: 14px; color: var(--muted); text-align: right; }
.ajustes code { color: var(--fg); }

/* Perguntas */
.faq { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.faq__cabeca { position: sticky; top: 112px; }
.faq__lista { display: grid; gap: 8px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; transition: border-color 0.2s; }
.faq details[open] { border-color: var(--border-strong); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px 22px; font-family: var(--f-display); font-weight: 600; font-size: 17px; letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; width: 14px; height: 14px; flex: none; }
.faq summary i::before, .faq summary i::after {
  content: ""; position: absolute; left: 0; top: 6.25px; width: 14px; height: 1.5px; border-radius: 2px; background: var(--muted);
  transition: transform 0.3s var(--ease-out);
}
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i::after { transform: rotate(0deg); }
.faq details p { padding: 0 22px 22px; font-size: 15px; line-height: 1.65; color: var(--muted); max-width: 40em; }
.faq details code { color: var(--fg); font-size: 0.86em; }

/* Fim: bloco lima do saldo */
.secao--fim { padding-bottom: 96px; }
.fim {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 80px 64px; border-radius: var(--r-bloco);
  background:
    radial-gradient(55% 80% at 88% 0%, rgba(255, 255, 255, 0.45), transparent 60%),
    var(--lima);
  color: var(--tinta);
}
.fim__texto { position: relative; z-index: 1; max-width: 560px; }
.fim h2 { font-size: clamp(32px, 4.2vw, 56px); }
.fim .voz2 { color: rgba(14, 14, 14, 0.5); }
.fim p { margin-top: 18px; font-size: 18px; line-height: 1.55; color: rgba(14, 14, 14, 0.72); max-width: 26em; }
.fim__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.fim__circulo { position: absolute; z-index: 0; width: 360px; height: 360px; border-radius: 50%; top: 46%; }
.fim__circulo--1 { right: calc(64px + 360px * 4 / 7); background: var(--bg); }
.fim__circulo--2 { right: 64px; background: #f2f2ee; }

/* Rodapé */
.rodape { border-top: 1px solid var(--border); padding: 64px 0 40px; }
.rodape__grade { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.rodape__marca p { margin-top: 14px; font-size: 14px; color: var(--subtle); max-width: 22em; }
.rodape__links { display: flex; gap: 64px; flex-wrap: wrap; }
.rodape__links div { display: grid; gap: 10px; align-content: start; }
.rodape__links p { font-size: 12px; font-weight: 500; color: var(--subtle); margin-bottom: 4px; }
.rodape__links a { font-size: 14px; color: var(--muted); transition: color 0.18s; }
@media (hover: hover) { .rodape__links a:hover { color: var(--fg); } }
.rodape__base { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 13px; color: var(--subtle); }

/* ── Tablet ─────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .barra__menu { display: none; }
  .barra { justify-content: space-between; }
  .heroi__grade { grid-template-columns: 1fr; gap: 56px; }
  .heroi h1 { max-width: 13em; }
  .palco { max-width: 640px; width: 100%; margin-inline: auto; }
  .passos, .ia, .seg, .faq { grid-template-columns: 1fr; gap: 32px; }
  .faq__cabeca { position: static; }
  .cartao--a, .cartao--b, .cartao--c, .cartao--d { grid-column: span 12; min-height: 0; }
  .cartao--d { min-height: 360px; }
  .tambem { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── Celular (redesenhado, não só empilhado) ────────────── */
@media (max-width: 640px) {
  :root { --gutter: 16px; --respiro: 88px; }
  html { scroll-padding-top: 84px; }
  .barra { top: max(8px, env(safe-area-inset-top)); height: 56px; padding: 0 6px 0 16px; gap: 8px; width: calc(100% - 16px); }
  .marca__nome { font-size: 20px; }
  .marca__simbolo { width: 26px; }
  .barra__entrar { padding: 8px 10px; }
  .heroi { padding: 116px 0 8px; }
  .heroi h1 { font-size: 40px; line-height: 1.04; letter-spacing: -0.035em; }
  .heroi__apoio { margin-top: 18px; font-size: 16px; }
  .heroi__ctas { margin-top: 28px; display: grid; grid-template-columns: 1fr; }
  .heroi__ctas .botao { width: 100%; }
  .heroi__nota { margin-top: 14px; }
  .palco { --d: 236px; --topo: 8px; min-height: 0; padding-top: calc(var(--topo) + var(--d) * 0.52); }
  .ficha { font-size: 11px; padding: 6px 11px; }
  .ficha--1 { left: 0; top: calc(var(--topo) + var(--d) * 0.14); }
  .ficha--2 { right: 0; top: calc(var(--topo) + var(--d) * 0.02); }
  .painel { padding: 18px 16px 6px; border-radius: 24px; }
  .painel__saldo { font-size: 34px; }
  .painel__mini { gap: 12px; font-size: 12px; flex-wrap: wrap; }
  .cabeca { margin-bottom: 36px; }
  .cabeca p, .ia__texto > p, .seg__texto p, .faq__cabeca p { font-size: 15.5px; margin-top: 14px; }
  .passo { padding: 16px; gap: 14px; }
  .passo__txt b { font-size: 17px; }
  .passo__txt small { font-size: 14px; }
  .janela__topo { flex-wrap: wrap; padding: 10px 10px 10px 14px; }
  .codigo { padding: 18px 16px 20px; font-size: 12px; min-height: 0; }
  .cartao { padding: 24px 20px 0; gap: 22px; }
  .cartao--a, .cartao--b, .cartao--c { padding-bottom: 20px; }
  .cartao h3 { font-size: 20px; }
  .idem__linha { grid-template-columns: 1fr; gap: 6px; padding: 12px; }
  .idem__chave { white-space: normal; }
  .extrato__cab, .extrato__linha { grid-template-columns: minmax(0, 1fr) auto; padding: 11px 12px; }
  .extrato__cab span:last-child, .extrato__linha span:last-child { display: none; }
  .cartao--d { min-height: 0; }
  .papel { padding: 18px 18px 26px; }
  .papel__valor { font-size: 28px; }
  .tambem { grid-template-columns: 1fr; }
  .tambem li { padding: 20px; }
  .ia { gap: 28px; }
  .ia__painel { padding: 14px; border-radius: 20px; margin-inline: -4px; }
  .segmentos button { padding: 7px 11px; font-size: 12.5px; }
  .pedido { height: 280px; font-size: 11.5px; padding: 14px; }
  .ia__acoes .botao--lima { width: 100%; }
  .ia__acoes .botao--vidro { flex: 1; }
  .ajustes div { flex-direction: column; gap: 4px; padding: 15px 18px; }
  .ajustes dd { text-align: left; }
  .faq summary { padding: 18px; font-size: 16px; }
  .faq details p { padding: 0 18px 18px; font-size: 14.5px; }
  .secao--fim { padding-bottom: 56px; }
  .fim { padding: 48px 24px 230px; border-radius: 24px; }
  .fim p { font-size: 16px; }
  .fim__ctas { display: grid; }
  .fim__ctas .botao { width: 100%; }
  .fim__circulo { width: 240px; height: 240px; top: auto; bottom: -110px; }
  .fim__circulo--1 { right: calc(50% - 120px + 240px * 2 / 7); }
  .fim__circulo--2 { right: calc(50% - 120px - 240px * 2 / 7); }
  .rodape { padding-top: 48px; }
  .rodape__links { gap: 32px 40px; }
  .rodape__base { margin-top: 40px; }
}

@media (max-width: 380px) {
  .barra__entrar { display: none; }
  .painel__saldo { font-size: 30px; }
}

/* Movimento reduzido: tudo parado e visível. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .surgir, .js .palco, .js .rv { opacity: 1; transform: none; animation: none; transition: none; }
  .feed__linha.entra, .painel__saldo.pulsa { animation: none; }
  .botao, .botao .ic { transition: none; }
}
/* Pouca transparência ou mais contraste: vidro vira sólido. */
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .barra, .painel, .ficha, .ia__painel, .botao--vidro { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--surface-2); }
}

/* Página 404 */
.erro { min-height: 100vh; min-height: 100dvh; display: grid; align-content: center; justify-items: start; gap: 20px; width: min(560px, 100% - 32px); margin-inline: auto; padding: 48px 0; }
.erro h1 { margin-top: 28px; font-family: var(--f-display); font-weight: 600; font-size: clamp(34px, 6vw, 52px); line-height: 1.05; letter-spacing: -0.035em; }
.erro p { color: var(--muted); font-size: 17px; }
.erro__acoes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
