/* DNIB Presença Digital — estilos compartilhados.
   Layout: faixas largas alternando claro e azul-marinho; conteúdo em coluna de até 1180px; cartões só onde há objeto (preço, celular, formulário). */
:root {
  --bg: #F4F6FB;
  --surface: #FFFFFF;
  --surface-2: #EEF2FA;
  --ink: #0B1630;
  --muted: #56607A;
  --line: #DDE3EF;
  --accent: #2156F3;
  --accent-strong: #1440C8;
  --accent-ink: #FFFFFF;
  --accent-soft: #E7EEFF;
  --spark: #FFB547;
  --spark-ink: #2B1A00;
  --navy: #071330;
  --navy-2: #0E2257;
  --navy-ink: #EEF2FF;
  --navy-muted: #A6B2D6;
  --navy-line: rgba(166, 178, 214, .18);
  --danger: #C8322A;
  --ok: #128A5B;
  --warn-bg: #FFF3D6;
  --warn-ink: #5C4100;
  --shadow-sm: 0 1px 2px rgba(11, 22, 48, .06), 0 2px 6px rgba(11, 22, 48, .05);
  --shadow-lg: 0 2px 4px rgba(11, 22, 48, .04), 0 18px 40px -12px rgba(11, 22, 48, .18), 0 40px 80px -40px rgba(33, 86, 243, .25);
  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Onest", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --radius: 16px;
  --wrap: 1180px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #070D1E; --surface: #0E1730; --surface-2: #121D3B; --ink: #E8EDFA; --muted: #98A3C2; --line: #1F2B4B;
    --accent: #5B8CFF; --accent-strong: #8AAEFF; --accent-ink: #05102B; --accent-soft: #142450;
    --spark: #FFC46B; --spark-ink: #2B1A00;
    --navy: #040A1A; --navy-2: #0B1A44; --navy-ink: #EEF2FF; --navy-muted: #A6B2D6; --navy-line: rgba(166, 178, 214, .16);
    --danger: #FF8577; --ok: #4CD59A; --warn-bg: #3A2E10; --warn-ink: #F7D98C;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4); --shadow-lg: 0 18px 40px -12px rgba(0,0,0,.6), 0 40px 80px -40px rgba(91,140,255,.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #070D1E; --surface: #0E1730; --surface-2: #121D3B; --ink: #E8EDFA; --muted: #98A3C2; --line: #1F2B4B;
  --accent: #5B8CFF; --accent-strong: #8AAEFF; --accent-ink: #05102B; --accent-soft: #142450;
  --spark: #FFC46B; --spark-ink: #2B1A00;
  --navy: #040A1A; --navy-2: #0B1A44; --navy-ink: #EEF2FF; --navy-muted: #A6B2D6; --navy-line: rgba(166, 178, 214, .16);
  --danger: #FF8577; --ok: #4CD59A; --warn-bg: #3A2E10; --warn-ink: #F7D98C;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4); --shadow-lg: 0 18px 40px -12px rgba(0,0,0,.6), 0 40px 80px -40px rgba(91,140,255,.25);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3 { font-family: var(--display); line-height: 1.06; letter-spacing: -0.025em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--accent); text-underline-offset: 3px; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--spark); outline-offset: 2px; border-radius: 8px; }
.mono { font-family: var(--mono); font-size: .86em; }
.wrap {
  max-width: var(--wrap); margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 500; }
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 58ch; }
.section { padding-block: clamp(72px, 10vw, 120px); }
.section-head { display: grid; gap: 14px; max-width: 700px; margin-bottom: 48px; }
.center { text-align: center; margin-inline: auto; justify-items: center; }

/* Botões */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent;
  font: 600 1rem/1 var(--body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary {
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 88%, #fff) 0%, var(--accent) 55%, var(--accent-strong) 100%);
  color: var(--accent-ink);
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 10px 24px -10px color-mix(in srgb, var(--accent) 70%, transparent);
}
.btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s ease;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 16px 30px -12px color-mix(in srgb, var(--accent) 80%, transparent); }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--accent); transform: translateY(-2px); }
.btn-light { background: rgba(255,255,255,.08); color: var(--navy-ink); border-color: var(--navy-line); backdrop-filter: blur(8px); }
.btn-light:hover { background: rgba(255,255,255,.14); transform: translateY(-2px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }

/* Cabeçalho */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--navy); }
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--navy) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--navy-line); color: var(--navy-ink);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: inherit; }
.logo-mark {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(145deg, #3A6BFF, #1440C8); color: #fff;
  font: 800 .74rem/1 var(--display); letter-spacing: .03em;
  box-shadow: 0 1px 0 rgba(255,255,255,.3) inset, 0 6px 16px -6px rgba(33,86,243,.8);
}
.logo-text { display: grid; line-height: 1.05; }
.logo-text strong { font: 700 1.06rem/1.1 var(--display); letter-spacing: -0.01em; }
.logo-text span { font-size: .72rem; opacity: .7; font-weight: 500; letter-spacing: .02em; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) { color: var(--navy-muted); text-decoration: none; font-weight: 500; font-size: .95rem; transition: color .2s; }
.nav a:not(.btn):hover { color: var(--navy-ink); }
.nav .btn { min-height: 44px; padding: 0 20px; font-size: .94rem; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--navy-line); background: transparent; color: var(--navy-ink); cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; }
@media (max-width: 860px) {
  .menu-btn { display: grid; place-items: center; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--navy); border-bottom: 1px solid var(--navy-line);
    padding: 10px max(20px, env(safe-area-inset-right, 0px)) 22px max(20px, env(safe-area-inset-left, 0px)); }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 13px 4px; border-bottom: 1px solid var(--navy-line); }
  .nav .btn { margin-top: 12px; min-height: 52px; }
}

/* Rodapé */
.site-footer { background: var(--navy); color: var(--navy-ink); padding-block: 56px 36px; }
.site-footer a { color: var(--navy-ink); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.footer-grid h4 { margin: 0 0 14px; font: 500 .72rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--navy-muted); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: .95rem; }
.footer-brand p { color: var(--navy-muted); margin-top: 14px; max-width: 32ch; }
.footer-legal { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--navy-line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .84rem; color: var(--navy-muted); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.pendente { background: var(--warn-bg); color: var(--warn-ink); padding: 1px 6px; border-radius: 5px; font-family: var(--mono); font-size: .8em; }

/* Campos de formulário */
.field { display: grid; gap: 7px; min-width: 0; }
.field > label, .field > .label { font-weight: 600; font-size: .96rem; }
.field label small, .field .label small { color: var(--muted); font-weight: 400; }
.hint { color: var(--muted); font-size: .88rem; }
.input, .field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="url"], .field textarea, .field select {
  width: 100%; min-height: 52px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font: 400 1rem/1.4 var(--body); padding: 13px 15px; box-shadow: var(--shadow-sm);
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.field input::placeholder, .field textarea::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }
.field .err { color: var(--danger); font-size: .86rem; font-weight: 500; }
.field.invalid input, .field.invalid textarea { border-color: var(--danger); }

/* Páginas de texto */
.doc { padding-block: 56px 96px; }
.doc-inner { max-width: 760px; margin: 0 auto; display: grid; gap: 28px; }
.doc h1 { font-size: clamp(2rem, 4.6vw, 2.9rem); }
.doc h2 { font-size: 1.35rem; margin-top: 10px; }
.doc section { display: grid; gap: 12px; }
.doc ul, .doc ol { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.doc .meta { color: var(--muted); font-size: .94rem; }
.doc .aviso { background: var(--accent-soft); border-radius: var(--radius); padding: 16px 18px; font-size: .95rem; }
.doc table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.doc td, .doc th { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc .table-wrap { overflow-x: auto; }
.back { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; text-decoration: none; justify-self: start; }

/* Movimento */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes lift { from { transform: translateY(28px) scale(.98); } to { transform: none; } }
@supports (animation-timeline: view()) {
  .reveal { animation: lift linear both; animation-timeline: view(); animation-range: entry 0% cover 25%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ===== Visual escuro premium (todas as páginas do site DNIB) =====
   O site assume um único visual escuro, de propósito: degradê azul-marinho, bordas neon e brilho. */
body.site-dark {
  --bg: #050A1A; --surface: #0B1330; --surface-2: #101B40; --ink: #EAF0FF; --muted: #9DABCF; --line: rgba(130, 160, 255, .16);
  --accent: #4C8DFF; --accent-strong: #2F6BFF; --accent-ink: #FFFFFF; --accent-soft: rgba(76, 141, 255, .14);
  --cyan: #22D3EE; --violet: #A78BFA;
  --spark: #FFC46B; --spark-ink: #2B1A00;
  --navy: #050A1A; --navy-2: #0B1A44; --navy-ink: #EEF2FF; --navy-muted: #A6B2D6; --navy-line: rgba(166, 178, 214, .14);
  --danger: #FF8A7E; --ok: #4CD59A; --warn-bg: rgba(255, 196, 107, .1); --warn-ink: #FFD58F;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4), 0 6px 18px -8px rgba(0,0,0,.6);
  --shadow-lg: 0 24px 60px -20px rgba(0,0,0,.75), 0 0 50px -18px rgba(76,141,255,.35);
  --neon: linear-gradient(120deg, #4C8DFF, #22D3EE 45%, #2DD4BF 80%, #4C8DFF);
  color-scheme: dark;
  background-color: var(--bg);
  background-image:
    radial-gradient(60rem 40rem at 85% 0%, rgba(47, 107, 255, .32), transparent 60%),
    radial-gradient(46rem 36rem at 0% 32%, rgba(34, 211, 238, .11), transparent 60%),
    radial-gradient(54rem 40rem at 100% 58%, rgba(45, 212, 191, .11), transparent 60%),
    radial-gradient(50rem 36rem at 10% 88%, rgba(47, 107, 255, .16), transparent 60%),
    linear-gradient(180deg, #050A1A 0%, #07102A 50%, #050A1A 100%);
}
body.site-dark .site-footer { background: rgba(3, 7, 18, .75); border-top: 1px solid var(--navy-line); }
body.site-dark .btn-ghost { background: rgba(255,255,255,.04); color: var(--ink); border-color: var(--line); }
body.site-dark .btn-ghost:hover { border-color: var(--accent); background: rgba(76,141,255,.08); }
body.site-dark .field input, body.site-dark .field textarea, body.site-dark .field select, body.site-dark .input { background: rgba(255,255,255,.04); }
body.site-dark .doc .aviso { background: var(--accent-soft); }
body.site-dark a { color: #8FB4FF; }
body.site-dark .btn-primary, body.site-dark .btn-primary:hover { color: #fff; }
body.site-dark .btn-primary { background: linear-gradient(135deg, #5B97FF 0%, #2F6BFF 55%, #1E4FE0 100%); box-shadow: 0 1px 0 rgba(255,255,255,.3) inset, 0 0 0 1px rgba(120,170,255,.35), 0 10px 30px -8px rgba(47,107,255,.85), 0 0 28px -6px rgba(34,211,238,.45); }
body.site-dark .btn-primary:hover { box-shadow: 0 1px 0 rgba(255,255,255,.3) inset, 0 0 0 1px rgba(150,190,255,.5), 0 16px 36px -10px rgba(47,107,255,.95), 0 0 40px -4px rgba(34,211,238,.6); }

/* Borda neon: use em cartões de destaque */
.neon { position: relative; border: 1px solid transparent !important; background: linear-gradient(var(--card, #0B1330), var(--card, #0B1330)) padding-box, var(--neon) border-box; box-shadow: 0 0 0 1px rgba(76,141,255,.06), 0 30px 60px -28px rgba(0,0,0,.8), 0 0 46px -14px rgba(76,141,255,.45), 0 0 70px -30px rgba(34,211,238,.5); }
.glass { background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

/* Modo teste: esconde valores. Classe "teste" no body. */
body.teste .venda { display: none !important; }
body:not(.teste) .teste-only { display: none !important; }
