/* Lumino Solar — base compartilhada (tokens da marca, fonte, reset, componentes) */
@font-face {
  font-family: "League Spartan";
  src: url("fonts/LeagueSpartan-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --marinho: #00003c;
  --laranja: #ff7900;
  --grafite: #1b1918;
  --branco: #ffffff;

  --superficie: #ffffff;
  --superficie-2: #f4f4f8;
  --superficie-3: #eaeaf1;
  --linha: #d9d9e3;
  --borda-controle: #8a8aa3;
  --texto: #1b1918;
  --titulo: #00003c;
  --texto-suave: #5b5b70;
  --laranja-texto: #a84a00;
  --laranja-suave: #fff0e3;
  --marinho-suave: #e8e8f2;
  --acao: #ff7900;
  --acao-hover: #e86e00;
  --on-laranja: #00003c;
  --secundario: #00003c;
  --on-secundario: #ffffff;
  --foco: #a84a00;
  --sucesso: #1f7a4d;
  --sucesso-suave: #e6f4ec;
  --erro: #c0262d;
  --erro-suave: #fdeaea;
  --sol-fundo: #ffdcbd;
  --sombra-cartao: 0 1px 2px rgba(0, 0, 60, .06), 0 4px 16px rgba(0, 0, 60, .08);

  --font-marca: "League Spartan", "Helvetica Neue", Arial, sans-serif;
  --raio-sm: 4px;
  --raio-md: 8px;
  --raio-lg: 16px;
  --raio-pill: 999px;
  --e1: 4px; --e2: 8px; --e3: 12px; --e4: 16px; --e5: 24px; --e6: 32px; --e7: 48px; --e8: 80px;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

[data-theme="escuro"] {
  --superficie: #00002a;
  --superficie-2: #00003c;
  --superficie-3: #0b0b4a;
  --linha: #1c1c5c;
  --borda-controle: #5a5a96;
  --texto: #f4f4f8;
  --titulo: #ffffff;
  --texto-suave: #a9a9c4;
  --laranja-texto: #ff7900;
  --laranja-suave: #3a2208;
  --marinho-suave: #1c1c5c;
  --acao-hover: #ff9233;
  --secundario: #ffffff;
  --on-secundario: #00003c;
  --foco: #ff7900;
  --sucesso: #5fd39b;
  --sucesso-suave: #0d3326;
  --erro: #ff8a8a;
  --erro-suave: #3d1218;
  --sol-fundo: #3a2208;
  --sombra-cartao: none;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-marca);
  font-size: 16px;
  line-height: 1.5;
  color: var(--texto);
  background: var(--superficie);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-variant-numeric: lining-nums;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
h1, h2, h3, h4 { color: var(--titulo); font-weight: 700; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--laranja); color: var(--marinho); }
:focus-visible { outline: 2px solid var(--foco); outline-offset: 2px; border-radius: 2px; }
html { scrollbar-color: var(--borda-controle) transparent; scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--borda-controle); border-radius: 10px; border: 3px solid var(--superficie); }
::-webkit-scrollbar-track { background: transparent; }

.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; }
.pular { position: absolute; left: var(--e4); top: -60px; z-index: 1000; background: var(--acao); color: var(--on-laranja); padding: var(--e3) var(--e4); border-radius: var(--raio-md); font-weight: 600; text-decoration: none; }
.pular:focus { top: var(--e4); }

/* Tipografia da marca */
.t-display { font-size: clamp(44px, 7.2vw, 104px); line-height: .94; font-weight: 900; letter-spacing: -.02em; }
.t-h1 { font-size: clamp(34px, 4.6vw, 60px); line-height: 1.02; font-weight: 800; letter-spacing: -.01em; }
.t-h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.08; font-weight: 700; }
.t-h3 { font-size: 24px; line-height: 28px; font-weight: 700; }
.t-assinatura { font-size: 14px; line-height: 20px; font-weight: 400; letter-spacing: .35em; text-transform: lowercase; color: var(--texto-suave); }
.t-corpo-lg { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; }
.t-legenda { font-size: 13px; line-height: 18px; color: var(--texto-suave); }
.t-numero { font-size: 40px; line-height: 40px; font-weight: 900; font-variant-numeric: tabular-nums lining-nums; }
.tab { font-variant-numeric: tabular-nums lining-nums; }

/* Botões (componente Botao) */
.botao {
  --h: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--e2);
  min-height: var(--h); padding: 0 var(--e5);
  border-radius: var(--raio-md); border: 1.5px solid transparent;
  font-size: 15px; line-height: 20px; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease-out), color .2s var(--ease-out), border-color .2s var(--ease-out), transform .2s var(--ease-out);
  white-space: nowrap;
}
.botao:active { transform: translateY(1px); }
.botao--lg { --h: 56px; padding: 0 var(--e6); font-size: 17px; }
.botao--sm { --h: 36px; padding: 0 var(--e4); font-size: 14px; }
.botao--principal { background: var(--acao); color: var(--on-laranja); }
.botao--principal:hover { background: var(--acao-hover); }
.botao--secundario { background: var(--secundario); color: var(--on-secundario); }
.botao--secundario:hover { background: color-mix(in srgb, var(--secundario) 86%, var(--laranja)); }
.botao--contorno { background: transparent; color: var(--titulo); border-color: var(--borda-controle); }
.botao--contorno:hover { border-color: var(--titulo); }
.botao[aria-busy="true"] { opacity: .7; pointer-events: none; }
.botao svg { width: 18px; height: 18px; flex: none; }

/* Selos */
.selo { display: inline-flex; align-items: center; gap: var(--e1); padding: 3px 10px; border-radius: var(--raio-pill); font-size: 13px; line-height: 18px; font-weight: 600; background: var(--marinho-suave); color: var(--titulo); }
.selo--laranja { background: var(--laranja-suave); color: var(--laranja-texto); }
.selo--sucesso { background: var(--sucesso-suave); color: var(--sucesso); }
.selo--provisorio { background: var(--laranja-suave); color: var(--laranja-texto); font-weight: 600; }

/* Campos */
.campo { display: grid; gap: 6px; }
.campo label { font-size: 15px; line-height: 20px; font-weight: 600; color: var(--titulo); }
.campo .ajuda { font-size: 13px; line-height: 18px; color: var(--texto-suave); }
.campo input, .campo select, .campo textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border: 1.5px solid var(--borda-controle); border-radius: var(--raio-md);
  background: var(--superficie); color: var(--texto);
  transition: border-color .2s, box-shadow .2s;
}
.campo textarea { min-height: 112px; resize: vertical; }
.campo input:hover, .campo select:hover, .campo textarea:hover { border-color: var(--titulo); }
.campo input:focus-visible, .campo select:focus-visible, .campo textarea:focus-visible { outline: 2px solid var(--foco); outline-offset: 2px; border-color: var(--titulo); }
.campo input::placeholder, .campo textarea::placeholder { color: var(--texto-suave); opacity: 1; }
.campo[data-erro] input, .campo[data-erro] select, .campo[data-erro] textarea { border-color: var(--erro); }
.campo .msg-erro { font-size: 13px; color: var(--erro); font-weight: 600; }
.form-status { font-size: 15px; font-weight: 600; padding: var(--e3) var(--e4); border-radius: var(--raio-md); }
.form-status[data-tipo="ok"] { background: var(--sucesso-suave); color: var(--sucesso); }
.form-status[data-tipo="erro"] { background: var(--erro-suave); color: var(--erro); }

/* Sol de fundo: só baixo contraste, grande, sangrando a borda, um por peça */
.sol-fundo { position: absolute; pointer-events: none; z-index: 0; color: var(--sol-fundo); }
.sol-fundo svg { width: 100%; height: auto; }
.sol-fundo path { fill: currentColor; }

/* Ícones de traço 2px */
.icone { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Marcador de dado a confirmar */
.confirmar { background: var(--laranja-suave); color: var(--laranja-texto); border-radius: var(--raio-sm); padding: 0 4px; font-weight: 600; }

/* Barra de avaliação (só no preview) */
.barra-versoes { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 900; display: flex; gap: 4px; padding: 4px; border-radius: var(--raio-pill); background: rgba(0, 0, 42, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 6px 24px rgba(0,0,40,.25); }
.barra-versoes a { color: #fff; text-decoration: none; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: var(--raio-pill); }
.barra-versoes a[aria-current="page"] { background: var(--laranja); color: var(--marinho); }
.barra-versoes a:hover:not([aria-current]) { background: rgba(255,255,255,.12); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
.sol-fundo img { width: 100%; height: auto; }
[hidden] { display: none !important; }

/* Bancos e financeiras parceiros: marcas nas cores originais, sobre placa branca */
.bancos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.banco { background: #fff; border: 1px solid #e4e4ee; border-radius: 12px; height: 76px; display: grid; place-items: center; padding: 14px 18px; transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out); }
.banco:hover { transform: translateY(-3px); box-shadow: 0 10px 24px -12px rgba(0,0,60,.35); }
.banco img { max-height: 36px; max-width: 100%; width: auto; height: auto; object-fit: contain; }
.banco--alto img { max-height: 44px; }
.bancos--mini { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; margin-top: 12px; }
.bancos--mini .banco { height: 52px; padding: 8px 10px; border-radius: 8px; }
.bancos--mini .banco img { max-height: 24px; }
.bancos--mini .banco--alto img { max-height: 30px; }
