/* nexum.id · site institucional
   Marca Nexum.iD v1.0 (out/2026) · co-irmã da CCB Gestão
   Modo claro como padrão do site; tokens do escuro prontos em [data-theme="dark"]. */

/* ---------- Tokens ---------- */
:root {
  /* paleta oficial */
  --nx-noite: #0B1020;
  --nx-ciano-profundo: #067A9E;
  --nx-ciano-eletrico: #16D9FF; /* sinal: no claro só preenche forma, nunca texto */
  --nx-gelo: #F5F8FC;
  --nx-bruma: #ECF7FB;
  --nx-ardosia: #4A5468;
  --nx-superficie: #131A2C;
  --nx-neblina: #9AA6BD;
  --nx-frost: #EAF4FF;

  /* tema claro (padrão do site) */
  --bg: var(--nx-gelo);
  --surface: #FFFFFF;
  --band: var(--nx-bruma);
  --text: var(--nx-noite);
  --text-2: var(--nx-ardosia);
  --accent: var(--nx-ciano-profundo);
  --line: #D5DEE8;
  --btn: var(--nx-ciano-profundo);
  --btn-text: #FFFFFF;
  --module: var(--nx-ciano-eletrico);

  /* tipografia */
  --font-brand: "Space Grotesk", system-ui, sans-serif;
  --font-text: "Instrument Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* motor comum CCB: grid 8 px e raios */
  --radius-s: 6px;
  --radius-m: 12px;
  --radius-l: 20px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(72px, 10vw, 128px);
}

[data-theme="dark"] {
  --bg: var(--nx-noite);
  --surface: var(--nx-superficie);
  --band: var(--nx-superficie);
  --text: var(--nx-frost);
  --text-2: var(--nx-neblina);
  --accent: var(--nx-ciano-eletrico);
  --line: #24304A;
  --btn: var(--nx-ciano-eletrico);
  --btn-text: var(--nx-noite);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.625;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--font-brand); margin: 0; }
p { margin: 0; }
a { color: var(--accent); }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--font-mono); font-size: 12px; line-height: 16px; letter-spacing: 0.06em; }
.muted { color: var(--text-2); }
.accent { color: var(--accent); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--text); color: var(--bg); padding: 8px 16px; border-radius: var(--radius-s);
}
.skip-link:focus { top: 16px; }

/* módulo de canto (o mesmo da CCB): uso pontual */
.module {
  display: block; width: 22px; height: 22px; background: var(--module);
  border-radius: 3px 16px 3px 6px;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 24px; border-radius: var(--radius-m);
  font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn--primary { background: var(--btn); color: var(--btn-text); }
.btn--primary:hover { background: var(--nx-noite); color: #FFFFFF; }
.btn--ghost { border: 1px solid var(--line); color: var(--text); }
.btn--ghost:hover { border-color: var(--text); color: var(--text); }
/* sobre o bloco colorido */
.btn--inverse { background: var(--bg); color: var(--text); }
.btn--inverse:hover { background: var(--nx-noite); color: #FFFFFF; }
.btn--outline-on-color { border: 1px solid currentColor; color: var(--btn-text); }
.btn--outline-on-color:hover { color: var(--btn-text); background: rgba(255,255,255,.12); }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px 32px;
  min-height: 72px; padding-block: 12px;
}
.brand { display: flex; flex-direction: column; gap: 4px; text-decoration: none; }
.brand img { width: 186px; height: auto; }
.brand__endorse { font-size: 11px; line-height: 14px; color: var(--text-2); padding-left: 32px; }
.nav { display: flex; align-items: center; gap: 4px 28px; font-size: 15px; }
.nav a:not(.btn) { color: var(--text-2); text-decoration: none; padding: 10px 0; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--text); }
.menu-toggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius-m);
  background: transparent; color: var(--text); cursor: pointer;
}
@media (max-width: 860px) {
  .js .menu-toggle { display: inline-flex; }
  .js .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 24px;
  }
  .js .nav[data-open="true"] { display: flex; }
  .js .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .js .nav .btn { margin-top: 16px; }
  .site-header__inner { position: relative; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(64px, 9vw, 120px) clamp(48px, 6vw, 80px); }
.hero__inner { display: flex; flex-direction: column; gap: 40px; }
.hero__kicker { font-size: 15px; color: var(--text-2); }
.hero h1 {
  max-width: 1000px; font-size: clamp(44px, 7vw, 92px); line-height: 0.98;
  font-weight: 700; letter-spacing: -0.03em; text-wrap: balance;
}
.hero__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px 64px; }
.hero__lead { flex: 1 1 480px; max-width: 600px; font-size: 20px; line-height: 1.55; color: var(--text-2); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Tabelas ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ledger, .compare { width: 100%; border-collapse: collapse; text-align: left; }
.ledger { min-width: 720px; font-size: 17px; line-height: 26px; }
.ledger thead th, .compare thead th {
  font-family: var(--font-mono); font-size: 12px; line-height: 16px; letter-spacing: 0.06em;
  font-weight: 500; color: var(--text-2); padding: 0 24px 14px 0; vertical-align: bottom;
}
.ledger thead th { border-bottom: 2px solid var(--text); }
.ledger thead th:first-child { width: 36%; }
.ledger thead th:nth-child(2) { width: 30%; }
.ledger tbody th, .ledger td { padding: 20px 24px 20px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.ledger tbody th { font-family: var(--font-brand); font-weight: 500; font-size: 20px; }
.ledger td:nth-child(2) { color: var(--text-2); }
.ledger td:last-child { color: var(--accent); font-weight: 600; padding-right: 0; }
.ledger-note { margin-top: 16px; font-size: 14px; line-height: 22px; color: var(--text-2); }

.compare { min-width: 560px; font-size: 16px; line-height: 24px; }
.compare thead th { border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.compare thead th:first-child { width: 30%; }
.compare thead th:last-child { color: var(--accent); }
.compare tbody th, .compare td { padding: 18px 24px 18px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare tbody th { font-weight: 600; }
.compare td:nth-child(2) { color: var(--text-2); }
.compare td:last-child { padding-right: 0; }

/* ---------- Seções ---------- */
.section { padding-block: var(--section-y); }
.section--tight-top { padding-top: 0; }
.section--surface { background: var(--surface); border-block: 1px solid var(--line); }
.section--band { background: var(--band); }
.section__grid { display: flex; flex-wrap: wrap; gap: 32px 64px; }
.section__label { flex: 0 1 240px; display: flex; flex-direction: column; gap: 16px; font-size: 15px; }
.section__label-title { display: flex; gap: 12px; font-weight: 600; }
.section__label-title span:first-child { font-family: var(--font-mono); font-weight: 400; color: var(--accent); }
.section__label a { text-decoration: none; }
.section__body { flex: 1 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 40px; }
.section__head { display: flex; flex-direction: column; gap: 16px; max-width: 720px; }
.h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.08; font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
.lead { font-size: 18px; line-height: 28px; color: var(--text-2); }

/* Como funciona */
.steps { display: flex; flex-wrap: wrap; gap: 40px; list-style: none; margin: 0; padding: 0; }
.step { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 12px; padding-top: 20px; border-top: 2px solid var(--text); position: relative; }
.step h3 { font-size: 26px; line-height: 32px; font-weight: 600; }
.step p { color: var(--text-2); }
.step--arrival { border-top-color: var(--accent); }
.step--arrival .module { position: absolute; top: -12px; right: 0; }

/* Isso dá para automatizar? */
.qa-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.qa-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.qa-list__niche { flex: 0 0 120px; color: var(--text-2); }
.qa-list__q { flex: 1 1 360px; font-size: 19px; line-height: 28px; }
.qa-list__a { font-family: var(--font-brand); font-weight: 700; font-size: 19px; color: var(--accent); }

/* Soluções */
.products { display: flex; flex-direction: column; }
.product-row {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 32px;
  padding: 28px 0; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none;
}
.product-row:first-child { border-top: 2px solid var(--text); }
.product-row:last-child { border-bottom: 0; }
.product-row__name { flex: 1 1 280px; font-family: var(--font-brand); font-size: 34px; line-height: 40px; font-weight: 700; letter-spacing: -0.015em; }
.product-row__desc { flex: 2 1 320px; color: var(--text-2); }
.product-row__status { flex: 0 0 auto; color: var(--text-2); text-decoration: none; }
a.product-row:hover .product-row__name { color: var(--accent); }
a.product-row .product-row__status, a.product-row__status { color: var(--accent); }

/* Programa de Validação */
.validation { display: flex; flex-wrap: wrap; gap: 48px 64px; align-items: flex-start; }
.validation__main { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.validation__kicker { font-size: 15px; font-weight: 600; }
.validation__path {
  flex: 1 1 320px; min-width: 0; padding-top: 8px;
  font-family: var(--font-brand); font-size: clamp(24px, 2.6vw, 32px); line-height: 1.35; font-weight: 500; color: var(--text-2);
}
.validation__path strong { color: var(--text); font-weight: 700; }

/* Sobre */
.statement { font-family: var(--font-brand); font-size: clamp(26px, 3.2vw, 38px); line-height: 1.25; font-weight: 500; letter-spacing: -0.01em; }
.two-col { display: flex; flex-wrap: wrap; gap: 24px 48px; color: var(--text-2); }
.two-col p { flex: 1 1 280px; }

/* Bloco de chamada (CTA) */
.cta-block {
  position: relative; overflow: hidden; background: var(--btn); color: var(--btn-text);
  border-radius: var(--radius-l); padding: clamp(32px, 6vw, 72px);
  display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-end; justify-content: space-between;
}
.cta-block::after {
  content: ""; position: absolute; top: -24px; right: -24px; width: 96px; height: 96px;
  background: var(--module); border-radius: 14px 72px 14px 28px;
}
.cta-block__text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.cta-block h2 { font-size: clamp(32px, 4.4vw, 56px); line-height: 1.04; font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
.cta-block p { font-size: 18px; line-height: 28px; }
.cta-block__actions { display: flex; flex-direction: column; gap: 12px; }
.cta-block--center { align-items: center; }
.cta-block--center h2 { flex: 1 1 480px; font-size: clamp(28px, 3.6vw, 44px); line-height: 1.1; }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); }
.site-footer__inner { padding-block: 48px 32px; display: flex; flex-direction: column; gap: 40px; }
.site-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.site-footer__brand { flex: 1 1 280px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 48px; font-size: 15px; }
.footer-nav div { display: flex; flex-direction: column; gap: 10px; }
.footer-nav__title { font-size: 13px; font-weight: 600; color: var(--text-2); }
.footer-nav a { color: var(--text); text-decoration: none; }
.footer-nav a:hover { color: var(--accent); }
.site-footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; line-height: 20px; color: var(--text-2);
}
.site-footer__bottom--simple { border-top: 0; padding-top: 0; }

/* ---------- Página de produto ---------- */
.product-hero { padding-block: clamp(56px, 8vw, 104px) clamp(48px, 6vw, 80px); }
.product-hero__inner { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.product-hero__text { flex: 1 1 540px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.product-hero__text .hero__lead { flex: none; }
.product-hero h1 { font-size: clamp(38px, 5vw, 64px); line-height: 1.05; font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
.kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.08em; }
.kicker .module { width: 12px; height: 12px; border-radius: 2px 9px 2px 3.5px; }
.pill { padding: 3px 8px; border-radius: var(--radius-s); border: 1px solid var(--accent); color: var(--accent); letter-spacing: 0.06em; }

.funnel {
  flex: 1 1 380px; min-width: 0; position: relative;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l);
  padding: 28px; display: flex; flex-direction: column; gap: 12px;
}
.funnel::before {
  content: ""; position: absolute; top: -12px; right: -12px; width: 40px; height: 40px;
  background: var(--module); border-radius: 6px 30px 6px 12px;
}
.funnel__head { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); color: var(--text-2); }
.funnel__row { display: flex; flex-direction: column; gap: 6px; }
.funnel__label { display: flex; justify-content: space-between; font-size: 15px; }
.funnel__label span:last-child { font-family: var(--font-mono); color: var(--text-2); }
.funnel__bar { height: 10px; border-radius: var(--radius-s); background: var(--band); overflow: hidden; }
.funnel__bar span { display: block; height: 100%; border-radius: var(--radius-s); background: var(--accent); }
.funnel__note { margin-top: 6px; font-size: 13px; line-height: 20px; color: var(--text-2); }

.cards { display: flex; flex-wrap: wrap; gap: 16px; list-style: none; margin: 0; padding: 0; }
.card {
  flex: 1 1 340px; min-width: 0; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-m); padding: 24px; display: flex; flex-direction: column; gap: 10px;
}
.card h3 { font-size: 20px; line-height: 26px; font-weight: 600; }
.card p { font-size: 15px; line-height: 24px; color: var(--text-2); }

.split { display: flex; flex-wrap: wrap; gap: 56px; }
.split > * { flex: 1 1 420px; min-width: 0; }
.terms { margin: 0; border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; background: var(--surface); }
.terms div { display: flex; justify-content: space-between; gap: 16px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.terms div:last-child { border-bottom: 0; }
.terms dt { margin: 0; }
.terms dd { margin: 0; font-family: var(--font-mono); font-size: 14px; color: var(--text-2); text-align: right; }
.terms dd.accent { color: var(--accent); }

.faq { max-width: 880px; }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px;
  font-family: var(--font-brand); font-size: 19px; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 12px; color: var(--text-2); }

/* ---------- Texto longo (Privacidade) ---------- */
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 16px; }
.prose h2 { font-size: 24px; line-height: 30px; font-weight: 600; margin: 48px 0 12px; }
.prose p, .prose li { color: var(--text-2); }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 20px; margin: 12px 0 0; }
.prose li + li { margin-top: 6px; }
.prose strong { color: var(--text); }
.notice { margin-top: 24px; padding: 16px 20px; border-radius: var(--radius-m); background: var(--band); color: var(--text); font-size: 15px; }

/* ---------- Tabelas empilhadas no celular ---------- */
@media (max-width: 640px) {
  .ledger, .compare { min-width: 0; }
  .ledger thead, .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ledger, .ledger tbody, .ledger tr, .ledger th, .ledger td,
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: auto; }
  .ledger { border-top: 2px solid var(--text); }
  .ledger tr, .compare tr { padding: 16px 0; border-bottom: 1px solid var(--line); }
  .compare tr:last-child { border-bottom: 0; }
  .ledger tbody th, .ledger td, .compare tbody th, .compare td { padding: 0; border: 0; }
  .ledger tbody th { font-size: 19px; line-height: 26px; margin-bottom: 8px; }
  .compare tbody th { margin-bottom: 6px; }
  .ledger td + td, .compare td + td { margin-top: 4px; }
  .ledger td::before, .compare td::before {
    content: attr(data-label); display: block;
    font-family: var(--font-mono); font-size: 11px; line-height: 16px; letter-spacing: 0.06em;
    text-transform: uppercase; color: var(--text-2); font-weight: 400;
  }
  .compare td:last-child::before { color: var(--accent); }
  .table-scroll { overflow: visible; }
}

/* ---------- Referências de mercado (página de produto) ---------- */
.refs {
  flex: 1 1 380px; min-width: 0; margin: 0; position: relative;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l);
  padding: 28px; display: flex; flex-direction: column;
}
.refs::before {
  content: ""; position: absolute; top: -12px; right: -12px; width: 40px; height: 40px;
  background: var(--module); border-radius: 6px 30px 6px 12px;
}
.refs__head { color: var(--text-2); padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.refs__row { display: flex; flex-direction: column; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.refs__num { font-family: var(--font-brand); font-size: 30px; line-height: 36px; font-weight: 700; letter-spacing: -0.015em; color: var(--accent); }
.refs__row p { font-size: 15px; line-height: 23px; }
.refs__row cite { display: block; margin-top: 4px; font-style: normal; font-family: var(--font-mono); font-size: 11px; line-height: 16px; letter-spacing: 0.02em; }
.refs__row cite a { color: var(--text-2); }
.refs__row cite a:hover { color: var(--accent); }
.refs__note { margin-top: 14px; font-size: 13px; line-height: 20px; color: var(--text-2); }
