/* DataProof · home (sistema visual Better Now, claro). As demais páginas ainda usam styles.css. */

:root {
  /* Marca Better Now (DIRETRIZES.md) */
  --blue: #2f31a1;
  --blue-hover: #26288a;
  --blue-press: #1f2176;
  --navy: #22377a;
  --teal: #3ec1ad;
  --teal-dark: #2495a4;
  --teal-ink: #177c74;
  --sky: #46a0dc;
  --gradient: linear-gradient(90deg, #3ec1ad 0%, #46a0dc 100%);

  /* Estados de validação */
  --ok-bg: #e6f6f3;
  --ok-fg: #177c74;
  --alert: #d94848;
  --alert-bg: #fceded;
  --alert-fg: #a42424;
  --warn: #cc6e00;
  --warn-bg: #fdf3e6;
  --warn-fg: #9a5300;
  --info-bg: #eceefa;
  --info-fg: #2f31a1;

  /* Neutros */
  --bg: #ffffff;
  --soft: #f6f7fa;
  --soft-2: #eef0f5;
  --line: #e4e7ee;
  --line-strong: #cfd4df;
  --text: #14172e;
  --text-2: #464b63;
  --muted: #5b6078;
  --black: #080810;
  --black-2: #13141f;
  --on-black-2: #b9bdd0;
  --on-navy: #d2d8ec;

  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-num: "Poppins", "Montserrat", system-ui, sans-serif;
  --font-data: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-file: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(72px, 9vw, 128px);
  --r-xs: 4px;
  --r-sm: 8px;
  --r-lg: 20px;
  --r-card: 30px;
  --r-pill: 999px;

  /* Escala tipográfica (DESIGN.md: typography) */
  --fs-2xs: .72rem;
  --fs-xs: .8rem;
  --fs-sm: .88rem;
  --fs-md: .95rem;
  --fs-base: 1rem;
  --fs-body: 1.0625rem;
  --fs-lg: 1.15rem;
  --fs-xl: 1.35rem;
  --fs-count: 2.6rem;
  --fs-lead: clamp(1.05rem, 1.4vw, 1.2rem);
  --fs-lead-lg: clamp(1.08rem, 1.5vw, 1.25rem);
  --fs-title-lg: clamp(1.4rem, 2.6vw, 1.75rem);
  --fs-headline-sm: clamp(1.9rem, 3.4vw, 2.75rem);
  --fs-headline: clamp(2.1rem, 4.4vw, 3.5rem);
  --fs-headline-xl: clamp(2.2rem, 4.8vw, 3.8rem);
  --fs-display: clamp(2.5rem, 6vw, 5rem);
  --fs-number-sm: clamp(1.3rem, 2.2vw, 1.75rem);
  --fs-number: clamp(2.2rem, 3.6vw, 3.2rem);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --shadow-window: 0 2px 4px rgba(20, 23, 46, .04), 0 40px 80px -36px rgba(34, 55, 122, .35);

  --i-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  --i-x: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E");
  --i-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
  --i-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
  --i-chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6078' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  --i-play: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m10 8 6 4-6 4Z'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: var(--fs-body); line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.1; letter-spacing: -.025em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-hover); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: var(--r-xs); }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--blue); color: #fff; padding: 8px 14px; border-radius: var(--r-sm); }
.skip:focus { left: 8px; color: #fff; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

.ico { display: inline-block; flex: none; width: 1em; height: 1em; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; vertical-align: -.125em; }
.ico--check { --i: var(--i-check); }
.ico--arrow { --i: var(--i-arrow); }
.ico--x { --i: var(--i-x); }
.ico--play { --i: var(--i-play); width: 1.25em; height: 1.25em; vertical-align: -.28em; }

/* ---------- Botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 24px; border: 1.5px solid transparent; border-radius: var(--r-sm); font: 600 var(--fs-base)/1.2 var(--font); text-decoration: none; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s, transform .15s; }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 1px 2px rgba(20, 23, 46, .12), 0 8px 20px -10px rgba(47, 49, 161, .55); }
.btn--primary:hover { background: var(--blue-hover); color: #fff; }
.btn--primary:active { background: var(--blue-press); transform: translateY(1px); }
.btn--quiet { background: var(--bg); color: var(--text); border-color: var(--line-strong); }
.btn--quiet:hover { border-color: var(--text); color: var(--text); }
.btn--quiet .ico--play { color: var(--teal-dark); }
.btn--lg { min-height: 56px; padding: 14px 28px; font-size: var(--fs-body); }
.btn--sm { min-height: 42px; padding: 8px 18px; font-size: var(--fs-md); }
.btn--block { width: 100%; }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--soft-2); color: var(--navy); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn .ico--arrow { transition: transform .25s var(--ease); }
.btn:hover .ico--arrow { transform: translateX(4px); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.link-arrow .ico { transition: transform .25s var(--ease); }
.link-arrow:hover .ico { transform: translateX(4px); }

/* ---------- Tags de estado ---------- */
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--r-pill); font: 600 var(--fs-2xs)/1.35 var(--font); white-space: nowrap; }
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag--ok { background: var(--ok-bg); color: var(--ok-fg); }
.tag--alert { background: var(--alert-bg); color: var(--alert-fg); }
.tag--warn { background: var(--warn-bg); color: var(--warn-fg); }
.tag--info { background: var(--info-bg); color: var(--info-fg); }

/* ---------- Menu ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--line); }
.nav__inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); margin-right: auto; }
.brand img { display: block; width: 64px; height: auto; }
.brand__product { padding-left: 12px; border-left: 1px solid var(--line-strong); font-weight: 700; font-size: var(--fs-lg); letter-spacing: -.02em; line-height: 1; }
.brand:hover { color: var(--text); }
.nav__links { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav__links a { display: block; padding: 8px 12px; border-radius: var(--r-sm); color: var(--text-2); font-weight: 500; font-size: var(--fs-md); text-decoration: none; }
.nav__links a:hover { color: var(--text); background: var(--soft); }
.nav__toggle { display: none; width: 44px; height: 44px; margin-right: -8px; padding: 12px 10px; border: 0; background: none; cursor: pointer; flex-direction: column; justify-content: space-between; }
.nav__toggle span { display: block; height: 2px; border-radius: var(--r-xs); background: var(--text); transition: transform .25s var(--ease), opacity .2s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Herói ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 88px) 0 clamp(64px, 8vw, 104px); background: var(--bg); }

/* Pílulas de contorno em verde-água, como na capa da Better Now */
.hero::before, .hero::after { content: ""; position: absolute; z-index: 0; border: 1.5px solid rgba(62, 193, 173, .28); border-radius: var(--r-pill); pointer-events: none; }
.hero::before { width: 520px; height: 220px; left: -180px; top: 120px; transform: rotate(-24deg); }
.hero::after { width: 460px; height: 200px; right: -170px; top: 60px; transform: rotate(28deg); }
.hero > .wrap { position: relative; z-index: 1; }
.hero__inner { display: flex; flex-direction: column; align-items: center; text-align: center; }

.announce { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; margin-bottom: 28px; padding: 5px 14px 5px 5px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--bg); color: var(--text); font-size: var(--fs-sm); font-weight: 500; text-decoration: none; box-shadow: 0 1px 2px rgba(20, 23, 46, .05); transition: border-color .2s; }
.announce:hover { color: var(--text); border-color: var(--line-strong); }
.announce__tag { flex: none; white-space: nowrap; padding: 3px 10px; border-radius: var(--r-pill); background: var(--blue); color: #fff; font-size: var(--fs-2xs); font-weight: 700; }
.announce__text b { font-family: var(--font-num); font-weight: 600; font-variant-numeric: tabular-nums; }
.announce .ico { color: var(--blue); transition: transform .25s var(--ease); }
.announce:hover .ico { transform: translateX(3px); }

.hero__title { max-width: 22ch; font-size: var(--fs-display); font-weight: 700; line-height: 1.02; letter-spacing: -.04em; }
.hero__title em { display: block; font-style: normal; color: var(--teal-dark); }
.hero__lead { max-width: 64ch; margin: 24px 0 36px; color: var(--text-2); font-size: var(--fs-lead-lg); line-height: 1.55; }

/* ---------- Demo do produto (abas + janela) ---------- */
.demo { position: relative; margin-top: clamp(48px, 6vw, 72px); display: flex; flex-direction: column; align-items: center; }
/* Faixa cinza que atravessa a janela do produto */
.demo::before { content: ""; position: absolute; z-index: -1; left: -50vw; right: -50vw; top: 42%; bottom: calc(-1 * clamp(64px, 8vw, 104px)); background: var(--soft); }
.hero > .demo { z-index: 1; }
.demo__tabs { display: inline-flex; gap: 4px; padding: 5px; margin-bottom: 24px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--bg); box-shadow: 0 1px 2px rgba(20, 23, 46, .05); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.demo__tabs::-webkit-scrollbar { display: none; }
.demo__tabs button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 18px; border: 0; border-radius: var(--r-pill); background: none; color: var(--text-2); font: 600 var(--fs-md)/1 var(--font); white-space: nowrap; cursor: pointer; transition: background-color .2s, color .2s; }
.demo__tabs button:hover { color: var(--text); background: var(--soft); }
.demo__tabs button[aria-selected="true"] { background: var(--blue); color: #fff; }
.demo__tabs svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.app { position: relative; width: 100%; max-width: 1040px; margin: 0; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-window); overflow: hidden; font-family: var(--font-data); font-size: var(--fs-sm); text-align: left; }
.app__bar { display: flex; align-items: center; gap: 16px; padding: 18px 24px 14px; border-bottom: 1px solid var(--line); }
.app__crumb { display: flex; align-items: center; gap: 8px; min-width: 0; margin-right: auto; color: var(--muted); white-space: nowrap; overflow: hidden; }
.app__crumb b { color: var(--text); font-family: var(--font); font-weight: 700; }
.app__crumb span::before { content: "/"; margin-right: 8px; color: var(--line-strong); }
.app__crumb span:last-child { color: var(--text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.app__mode { flex: none; padding: 3px 10px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); color: var(--text-2); font: 600 var(--fs-2xs)/1.35 var(--font); white-space: nowrap; }
.app__status { display: grid; flex: none; }
.app__status > * { grid-area: 1 / 1; justify-self: end; }
.app__live { opacity: 0; }

.app__kpis { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--soft); border-bottom: 1px solid var(--line); }
.app__kpis p { display: grid; gap: 2px; padding: 16px 24px; }
.app__kpis p + p { border-left: 1px solid var(--line); }
.app__kpis span { color: var(--muted); font-size: var(--fs-xs); font-weight: 500; }
.app__kpis b { font-family: var(--font-num); font-size: var(--fs-number-sm); font-weight: 600; line-height: 1.15; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.app__kpis small { color: var(--muted); font-size: var(--fs-2xs); }
.app__kpis .is-alert b { color: var(--alert-fg); }

.rows { position: relative; display: grid; gap: 2px; margin: 0; padding: 12px 14px; list-style: none; overflow: hidden; }
.rows li { display: grid; grid-template-columns: .9fr 1.15fr 1.1fr 1.2fr 116px; gap: 12px; align-items: center; padding: 8px 10px; border-radius: var(--r-sm); font-variant-numeric: tabular-nums; }
.rows li > span:nth-child(4) { color: var(--text-2); }
.rows li > .tag { justify-self: start; }
.rows--reg li { grid-template-columns: 1.2fr .9fr .9fr 1.3fr 130px; }
/* Nos reportes, o problema está na conciliação (vermelho) ou na versão do layout (âmbar) */
.rows--reg .is-flag > span:nth-child(3), .rows--reg .is-warn > span:nth-child(3) { color: inherit; font-weight: inherit; }
.rows--reg .is-flag > span:nth-child(4) { color: var(--alert-fg); font-weight: 600; }
.rows--reg .is-warn > span:nth-child(2) { color: var(--warn-fg); font-weight: 600; }
.rows .rows__head { padding-top: 4px; padding-bottom: 4px; color: var(--muted); font-size: var(--fs-2xs); font-weight: 600; }
.rows .is-flag { background: var(--alert-bg); }
.rows .is-flag > span:nth-child(3) { color: var(--alert-fg); font-weight: 600; }
.rows .is-warn { background: var(--warn-bg); }
.rows .is-warn > span:nth-child(3) { color: var(--warn-fg); font-weight: 600; }
/* Onde o valor errado é o "encontrado" (4ª coluna), o destaque vai para ela */
.app--hl4 .rows .is-flag > span:nth-child(3), .app--hl4 .rows .is-warn > span:nth-child(3) { color: inherit; font-weight: inherit; }
.app--hl4 .rows .is-flag > span:nth-child(4) { color: var(--alert-fg); font-weight: 600; }
.app--hl4 .rows .is-warn > span:nth-child(4) { color: var(--warn-fg); font-weight: 600; }

.lanes { display: grid; gap: 10px; padding: 16px 24px 18px; border-top: 1px solid var(--line); }
.lane { display: grid; grid-template-columns: 240px 1fr 110px; gap: 16px; align-items: center; font-size: var(--fs-sm); font-weight: 500; color: var(--text-2); }
.lane i { display: block; height: 8px; border-radius: var(--r-pill); background: var(--soft-2); overflow: hidden; }
.lane s { display: block; height: 100%; border-radius: var(--r-pill); transform-origin: left; }
.lane--ok s { width: 100%; background: var(--gradient); }
.lane--alert s { width: 8px; background: var(--alert); }
.lane b { text-align: right; color: var(--text); font-family: var(--font-num); font-weight: 600; font-size: var(--fs-base); font-variant-numeric: tabular-nums; }
.lane--alert b { color: var(--alert-fg); }
.app figcaption { padding: 8px 18px 10px; border-top: 1px solid var(--line); background: var(--soft); color: var(--muted); font-size: var(--fs-2xs); text-align: right; }

/* A execução: único movimento autoral da página. Reinicia ao trocar de aba. */
@keyframes scan { 0% { transform: translateY(-110%); opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { transform: translateY(110%); opacity: 0; } }
@keyframes row-in { from { opacity: .25; transform: translateY(6px); } }
@keyframes row-mark { from { background: transparent; } }
@keyframes tag-in { from { transform: scale(.8); opacity: 0; } }
@keyframes grow { from { transform: scaleX(0); } }
@keyframes live-out { 0%, 80% { opacity: 1; } 100% { opacity: 0; } }
@keyframes done-in { 0%, 80% { opacity: 0; } 100% { opacity: 1; } }
.app .rows::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 0%, rgba(62, 193, 173, .08) 42%, rgba(62, 193, 173, .26) 50%, transparent 52%); animation: scan 2s ease-in-out .3s both; }
.app .rows li:not(.rows__head) { animation: row-in .6s var(--ease) both; }
.app .rows li:nth-child(2) { animation-delay: .35s; }
.app .rows li:nth-child(3) { animation-delay: .6s, 1s; }
.app .rows li:nth-child(4) { animation-delay: .85s, 1.25s; }
.app .rows li:nth-child(5) { animation-delay: 1.1s, 1.5s; }
.app .rows li:nth-child(6) { animation-delay: 1.35s; }
.app .rows .is-flag, .app .rows .is-warn { animation-name: row-in, row-mark; animation-duration: .6s, .5s; animation-timing-function: var(--ease), ease-out; animation-fill-mode: both, both; }
.app .rows li .tag { animation: tag-in .45s var(--ease) both; }
.app .rows li:nth-child(2) .tag { animation-delay: .75s; }
.app .rows li:nth-child(3) .tag { animation-delay: 1s; }
.app .rows li:nth-child(4) .tag { animation-delay: 1.25s; }
.app .rows li:nth-child(5) .tag { animation-delay: 1.5s; }
.app .rows li:nth-child(6) .tag { animation-delay: 1.75s; }
.app .lane s { animation: grow 1.2s var(--ease) 2s both; }
.app .lane--alert s { animation-delay: 2.2s; }
.app .app__live { animation: live-out 2.6s linear both; }
.app .app__done { animation: done-in 2.6s linear both; }

/* ---------- Logos ---------- */
.clients { padding: 40px 0 8px; }
.clients__title { margin-bottom: 16px; text-align: center; color: var(--muted); font-size: var(--fs-md); font-weight: 500; }
.clients__viewport { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.clients__track { flex: none; display: flex; align-items: center; gap: clamp(28px, 4vw, 56px); margin: 0; padding: 0 clamp(14px, 2vw, 28px); list-style: none; animation: clients-scroll 50s linear infinite; }
/* Os arquivos são brancos (feitos para fundo escuro): aqui viram silhuetas em grafite */
.clients__track img { display: block; width: clamp(92px, 9vw, 124px); height: auto; filter: brightness(0); opacity: .5; }
.clients__viewport:hover .clients__track { animation-play-state: paused; }
@keyframes clients-scroll { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
  .clients__viewport { -webkit-mask-image: none; mask-image: none; }
  .clients__track { flex: 1; flex-wrap: wrap; justify-content: center; }
  .clients__track[aria-hidden] { display: none; }
}

/* ---------- Seções ---------- */
.section { padding: var(--section-y) 0; }
.head { max-width: 760px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.head h2 { font-size: var(--fs-headline); font-weight: 700; letter-spacing: -.035em; }
.head p { max-width: 56ch; margin: 18px auto 0; color: var(--text-2); font-size: var(--fs-lead); }

/* Valida, separa, prova */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar { display: flex; flex-direction: column; }
.pillar h3 { margin: 24px 8px 10px; font-size: var(--fs-xl); letter-spacing: -.02em; }
.pillar > p { margin: 0 8px; color: var(--text-2); font-size: var(--fs-base); }
.pillar__art { display: grid; place-content: center; height: 240px; padding: 24px; border-radius: var(--r-card); background: var(--soft); font-family: var(--font-data); }

.rule { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; padding: 9px 12px; border-radius: var(--r-sm); background: var(--bg); font-size: var(--fs-xs); }
.rule:last-child { margin-bottom: 0; }
.rule span { color: var(--muted); font-size: var(--fs-2xs); }
.rule b { font-weight: 500; }
.rule::after { content: ""; width: 16px; height: 16px; margin-left: auto; padding-left: 16px; background: var(--ok-fg); -webkit-mask: var(--i-check) center / contain no-repeat; mask: var(--i-check) center / contain no-repeat; }

.dots { display: grid; grid-template-columns: repeat(8, 16px); gap: 10px; }
.dots i { width: 16px; height: 16px; border-radius: 50%; background: var(--teal); opacity: .9; }
.dots i:nth-child(3n) { opacity: .6; }
.dots i:nth-child(5n + 1) { opacity: .75; }
.dots .is-bad { background: var(--alert); opacity: 1; box-shadow: 0 0 0 5px var(--alert-bg); }

.proof { display: grid; gap: 0; min-width: 230px; margin: 0; font-size: var(--fs-sm); }
.proof div { display: flex; justify-content: space-between; gap: 20px; padding: 7px 0; }
.proof div + div { border-top: 1px solid var(--line-strong); }
.proof dt { color: var(--muted); }
.proof dd { margin: 0; font-weight: 500; font-variant-numeric: tabular-nums; }

/* Vídeo em modal */
.video-modal { width: min(1040px, calc(100vw - 24px)); padding: 0; border: 0; border-radius: var(--r-lg); background: var(--black); overflow: visible; box-shadow: 0 40px 100px -30px rgba(8, 8, 16, .6); }
.video-modal::backdrop { background: rgba(8, 8, 16, .75); backdrop-filter: blur(3px); }
.video-modal[open] { animation: modal-in .35s var(--ease); }
.video-modal__frame { aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; }
.video-modal__frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.video-modal__close { position: absolute; right: 0; top: -52px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: var(--fs-lg); cursor: pointer; }
.video-modal__close:hover { background: rgba(255, 255, 255, .26); }
.video-modal__close:focus-visible { outline-color: var(--teal); }
html:has(.video-modal[open]) { overflow: hidden; }

/* Rastro de origem (arte do pilar "de onde veio") */
.trace { display: grid; gap: 0; min-width: 240px; font-size: var(--fs-sm); }
.trace span { position: relative; padding: 0 0 18px 22px; }
.trace span::before { content: ""; position: absolute; left: 4px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--teal); }
.trace span::after { content: ""; position: absolute; left: 8px; top: 16px; bottom: 2px; width: 1px; background: var(--line-strong); }
.trace b { display: inline-flex; align-items: center; gap: 8px; margin-left: 22px; padding: 4px 10px; border-radius: var(--r-pill); background: var(--ok-bg); color: var(--ok-fg); font-size: var(--fs-xs); font-weight: 600; justify-self: start; }
.proof dd.is-bad { color: var(--alert-fg); font-weight: 600; }

/* 12 dimensões */
.dims { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.dim { padding: 28px; border-radius: var(--r-card); background: var(--soft); }
.dim h3 { font-size: var(--fs-lg); letter-spacing: -.02em; }
.dim ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.dim li { padding: 5px 12px; border-radius: var(--r-pill); background: var(--bg); font-size: var(--fs-sm); font-weight: 500; }
.note { max-width: 70ch; margin: 24px auto 0; color: var(--muted); font-size: var(--fs-sm); text-align: center; }

/* Fases (sequência real, por isso numeradas) */
.section--soft { background: var(--soft); }
.phases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; }
.phases li { padding: 32px; border-radius: var(--r-card); background: var(--bg); }
.phases__n { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 24px; border-radius: 50%; background: var(--blue); color: #fff; font-family: var(--font-num); font-weight: 600; }
.phases h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: var(--fs-xl); letter-spacing: -.02em; }
.phases small { color: var(--teal-ink); font-size: var(--fs-sm); font-weight: 600; letter-spacing: 0; }
.phases p { margin-top: 10px; color: var(--text-2); font-size: var(--fs-base); }

/* Guia para baixar */
.guide { display: grid; grid-template-columns: 1fr 440px; gap: clamp(32px, 5vw, 72px); align-items: center; }
.guide h2 { font-size: var(--fs-headline-sm); letter-spacing: -.03em; }
.guide__copy p { margin-top: 18px; max-width: 52ch; color: var(--text-2); font-size: var(--fs-lead); }
.guide-form { padding: clamp(24px, 3vw, 32px); border-radius: var(--r-card); background: var(--bg); }

/* Perguntas frequentes */
.faq { max-width: 860px; }
.faq h2 { margin-bottom: 32px; font-size: var(--fs-headline-sm); letter-spacing: -.03em; text-align: center; }
.faq__list { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 16px 0; font-weight: 600; font-size: var(--fs-body); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; background: var(--blue); -webkit-mask: var(--i-plus) center / contain no-repeat; mask: var(--i-plus) center / contain no-repeat; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { max-width: 70ch; padding: 0 0 20px; color: var(--text-2); }

/* ---------- Painel de conformidade RC 18 (simulação do app) ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; width: 100%; max-width: 1120px; margin-bottom: 20px; }
.features button { display: grid; gap: 4px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg); color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: border-color .2s, background-color .2s, color .2s; }
.features button:hover { border-color: var(--line-strong); }
.features b { font-size: var(--fs-md); font-weight: 700; letter-spacing: -.01em; }
.features span { color: var(--text-2); font-size: var(--fs-sm); line-height: 1.45; }
.features button[aria-selected="true"] { border-color: var(--blue); background: var(--blue); color: #fff; }
.features button[aria-selected="true"] span { color: var(--on-navy); }

.console { display: grid; grid-template-columns: 200px 1fr; width: 100%; max-width: 1120px; margin: 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--bg); box-shadow: var(--shadow-window); font-family: var(--font-data); font-size: var(--fs-sm); text-align: left; }
.console__side { padding: 20px 12px; background: var(--navy); color: var(--on-navy); }
.console__brand { margin: 0 10px 20px; color: #fff; font: 700 var(--fs-md) var(--font); }
.console__side ul { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.console__side li { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: var(--r-sm); font-size: var(--fs-sm); opacity: .75; }
.console__side li[data-tab-proxy] { cursor: pointer; opacity: 1; }
.console__side li[data-tab-proxy]:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.console__side li.is-on { background: rgba(62, 193, 173, .18); color: #fff; font-weight: 600; }
.console__side li i { margin-left: auto; padding: 1px 7px; border-radius: var(--r-pill); background: rgba(217, 72, 72, .32); color: #fff; font-size: var(--fs-2xs); font-style: normal; font-weight: 600; }
.console__main { display: flex; flex-direction: column; min-width: 0; background: var(--soft); }
.console__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line); background: var(--bg); }
.console__head > b { margin-right: auto; color: var(--text); font: 700 var(--fs-lg) var(--font); letter-spacing: -.01em; }
.c-select { padding: 6px 28px 6px 10px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--bg) var(--i-chev) no-repeat right 9px center / 12px; color: var(--text-2); font-size: var(--fs-xs); white-space: nowrap; }
.c-deadline { padding: 5px 12px; border-radius: var(--r-pill); background: var(--warn-bg); color: var(--warn-fg); font-size: var(--fs-xs); font-weight: 600; white-space: nowrap; }
.c-deadline b { font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.console__body { flex: 1; min-height: 560px; padding: 18px 20px; }
.console figcaption { padding: 8px 18px 10px; border-top: 1px solid var(--line); background: var(--bg); color: var(--muted); font-size: var(--fs-2xs); text-align: right; }

.c-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.c-kpi { display: grid; gap: 4px; align-content: start; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg); }
.c-kpi > span { color: var(--text-2); font-size: var(--fs-xs); }
.c-kpi > b { font-family: var(--font-num); font-size: var(--fs-number-sm); font-weight: 600; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.c-kpi em { color: var(--muted); font-size: var(--fs-base); font-style: normal; font-weight: 500; }
.c-kpi small { color: var(--muted); font-size: var(--fs-2xs); }
.c-kpi.is-alert { border-color: rgba(164, 36, 36, .35); background: var(--alert-bg); }
.c-kpi.is-alert > b { color: var(--alert-fg); }
.c-bar { display: block; height: 5px; margin-top: 4px; border-radius: var(--r-pill); background: var(--soft-2); overflow: hidden; }
.c-bar s { display: block; height: 100%; border-radius: var(--r-pill); background: var(--teal); transform-origin: left; animation: grow 1s var(--ease) .1s both; }
.c-bar.is-warn s { background: var(--warn); }
.c-kpi .c-bar s { background: var(--blue); }
.w72 { width: 72%; } .w82 { width: 82%; } .w87 { width: 87%; } .w88 { width: 88%; } .w91 { width: 91%; } .w93 { width: 93%; }
.w95 { width: 95%; } .w96 { width: 96%; } .w98 { width: 98%; } .w99 { width: 99%; } .w100 { width: 100%; }

.c-card { margin-top: 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg); overflow: hidden; }
.c-card__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.c-card__head p { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-right: auto; }
.c-card__head b { font-family: var(--font); font-size: var(--fs-md); font-weight: 700; }
.c-card__head span { color: var(--muted); font-size: var(--fs-xs); }
.c-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: var(--fs-2xs); }
.c-legend span { display: inline-flex; align-items: center; gap: 6px; }
.mk { display: inline-block; flex: none; width: 8px; height: 8px; }
.mk--measured { background: var(--text-2); transform: rotate(45deg); }
.mk--evid { border: 1.5px solid var(--text-2); transform: rotate(45deg); }
.mk--attest { border: 1.5px solid var(--text-2); border-radius: 50%; }
.c-grid12 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0; padding: 14px 16px; list-style: none; }
.c-grid12 li { display: grid; align-content: start; gap: 3px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); }
.c-grid12 li > b { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); font-weight: 600; }
.c-grid12 li > span:not(.tag) { color: var(--text-2); font-size: var(--fs-xs); }
.c-grid12 li .tag { justify-self: start; margin-top: 4px; }
.c-grid12 .is-attested { background: var(--soft); }

.c-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.c-table th { padding: 10px 16px; background: var(--soft); color: var(--muted); font-size: var(--fs-2xs); font-weight: 600; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--line); }
.c-table td { padding: 11px 16px; border-bottom: 1px solid var(--line); color: var(--text-2); vertical-align: middle; }
.c-table tr:last-child td { border-bottom: 0; }
.c-table td:nth-child(2), .c-table td:nth-child(5), .c-table td:nth-child(6) { white-space: nowrap; }
.c-table td b { display: block; color: var(--text); font-weight: 600; }
.c-table td small { color: var(--muted); font-size: var(--fs-2xs); }
.c-sev { font-size: var(--fs-xs); font-weight: 600; }
.c-sev--high { color: var(--alert-fg); } .c-sev--mid { color: var(--warn-fg); } .c-sev--low { color: var(--muted); }
.tag--neutral { background: var(--soft-2); color: var(--text-2); }

.c-split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 12px; }
.c-split > .c-card { margin-top: 0; }
.c-dates, .c-compose { margin: 0; padding: 4px 16px; list-style: none; }
.c-dates li, .c-compose li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.c-dates li:last-child, .c-compose li:last-child { border-bottom: 0; }
.c-dates li > span:nth-child(2) b, .c-compose li > span:nth-child(2) b { display: block; font-weight: 600; }
.c-dates small, .c-compose small { color: var(--muted); font-size: var(--fs-2xs); }
.c-date { display: grid; justify-items: center; width: 52px; padding: 5px 0; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--soft); color: var(--muted); font-size: var(--fs-2xs); }
.c-date b { color: var(--text); font-family: var(--font-num); font-size: var(--fs-lg); font-weight: 600; line-height: 1.1; }
.c-dates .is-urgent .c-date { border-color: var(--warn); background: var(--warn-bg); }
.c-dates .is-urgent .c-date b { color: var(--warn-fg); }
.c-check { width: 20px; height: 20px; border-radius: 50%; background: var(--ok-bg); position: relative; }
.c-check::after { content: ""; position: absolute; inset: 5px; background: var(--ok-fg); -webkit-mask: var(--i-check) center / contain no-repeat; mask: var(--i-check) center / contain no-repeat; }
.c-check.is-pending { background: var(--warn-bg); }
.c-check.is-pending::after { inset: 7px; border-radius: 50%; background: var(--warn); -webkit-mask: none; mask: none; }
.c-check.is-empty { background: var(--soft-2); }
.c-check.is-empty::after { display: none; }
.c-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 16px 16px; }
.c-btn { display: inline-flex; align-items: center; padding: 7px 14px; border: 1px solid var(--blue); border-radius: var(--r-sm); background: var(--blue); color: #fff; font: 600 var(--fs-xs) var(--font); }
.c-btn--quiet { background: var(--bg); color: var(--blue); }

.c-attests { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.c-attests .c-card { margin-top: 0; }
.c-attest { display: grid; gap: 10px; align-content: start; padding: 16px 0 0; }
.c-attest > p { margin: 0 16px; }
.c-attest > .c-actions { margin: 0; }
.c-attest__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.c-attest__top b { font-weight: 600; }
.c-signer { display: flex; align-items: center; gap: 10px; }
.c-signer b { display: block; font-weight: 600; }
.c-signer small { color: var(--muted); font-size: var(--fs-2xs); }
.c-avatar { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; font-size: var(--fs-2xs); font-weight: 700; }
.c-hash { padding: 7px 10px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--soft); color: var(--muted); font-size: var(--fs-2xs); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-blocked { color: var(--alert-fg); font-size: var(--fs-xs); font-weight: 600; }
.c-evidence { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 14px 16px; }
.c-evidence b { display: block; font-weight: 600; }
.c-evidence small { color: var(--muted); font-size: var(--fs-xs); }
.c-evidence__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.c-evidence__tags span:not(.c-btn) { padding: 4px 9px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--soft); color: var(--text-2); font-size: var(--fs-2xs); font-weight: 600; }

/* ---------- Guia da RC 18 (modo leitura) ---------- */
.doc-bar .brand { margin-right: auto; }
.doc-bar .nav__inner { gap: 12px; }
.doc-bar .btn { white-space: nowrap; }
.doc-cover { padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 5vw, 64px); background: var(--soft); }
.doc-cover h1 { max-width: 24ch; font-size: var(--fs-headline); font-weight: 700; line-height: 1.08; letter-spacing: -.035em; }
.doc-meta { margin-top: 18px; color: var(--muted); font-size: var(--fs-sm); font-weight: 500; }
.doc-lead { max-width: 60ch; margin-top: 14px; color: var(--text-2); font-size: var(--fs-lead); }
.doc-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 36px 0 0; padding: 0; list-style: none; }
.doc-facts li { display: grid; gap: 6px; align-content: start; padding: 22px 24px; border-radius: var(--r-card); background: var(--bg); }
.doc-facts strong { font-family: var(--font-num); font-size: var(--fs-number-sm); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.doc-facts span { color: var(--text-2); font-size: var(--fs-sm); line-height: 1.45; }
.doc-facts b { font-weight: 600; color: var(--warn-fg); }
.doc-facts i { font-style: normal; font-family: var(--font-num); }

.doc-layout { display: grid; grid-template-columns: 220px minmax(0, 760px); justify-content: center; gap: clamp(32px, 5vw, 80px); padding-top: clamp(40px, 5vw, 64px); padding-bottom: var(--section-y); }
.doc-toc { position: sticky; top: 96px; align-self: start; }
.doc-toc > p { margin-bottom: 12px; color: var(--muted); font-size: var(--fs-xs); font-weight: 600; }
.doc-toc ol { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.doc-toc a { display: block; padding: 6px 10px; border-radius: var(--r-sm); color: var(--text-2); font-size: var(--fs-sm); text-decoration: none; line-height: 1.35; }
.doc-toc a:hover { background: var(--soft); color: var(--text); }

.doc { min-width: 0; font-size: var(--fs-body); line-height: 1.7; }
.doc h2 { margin: 56px 0 16px; font-size: var(--fs-title-lg); letter-spacing: -.025em; scroll-margin-top: 96px; }
.doc > h2:first-child { margin-top: 0; }
.doc p { max-width: 68ch; margin: 0 0 14px; color: var(--text-2); }
.doc b { color: var(--text); }
.doc a { font-weight: 500; }
.doc code { padding: 1px 6px; border-radius: var(--r-xs); background: var(--soft); font-family: var(--font-data); font-size: .92em; }
.guide__list { display: grid; gap: 8px; margin: 0; padding-left: 22px; color: var(--text-2); }
.guide__list li::marker { color: var(--teal-dark); }
.guide__list--num li::marker { font-family: var(--font-num); font-weight: 600; }
.doc-table { margin: 4px 0 8px; border: 1px solid var(--line); border-radius: var(--r-sm); overflow-x: auto; }
.guide__table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: var(--fs-md); line-height: 1.55; }
.guide__table th, .guide__table td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; color: var(--text-2); }
.guide__table tr:last-child th, .guide__table tr:last-child td { border-bottom: 0; }
.guide__table thead th { background: var(--soft); color: var(--muted); font-size: var(--fs-xs); font-weight: 600; }
.guide__table tbody th[scope="row"] { width: 30%; color: var(--text); font-weight: 600; }
.guide__table small { display: block; margin-top: 4px; color: var(--muted); font-size: var(--fs-xs); }
.guide__table--dims { min-width: 720px; font-size: var(--fs-sm); }
.guide__table--dims td[rowspan] { background: var(--soft); }
.guide__note { font-size: var(--fs-sm); }
.doc .guide__note { color: var(--muted); }
.guide__glossary { display: grid; gap: 16px; margin: 0; }
.guide__glossary dt { font-weight: 700; }
.guide__glossary dd { margin: 4px 0 0; color: var(--text-2); }
.doc-cta { margin-top: 64px; padding: clamp(28px, 4vw, 44px); border-radius: var(--r-card); background: var(--navy); color: #fff; }
.doc-cta h2 { margin: 0 0 10px; color: #fff; }
.doc-cta p { color: var(--on-navy); }
.doc-cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 22px; }
.doc-cta .link-arrow { color: #fff; }
.doc-cta .link-arrow:hover { color: var(--teal); }
.doc-cta :focus-visible { outline-color: var(--teal); }
.guide__legal { margin-top: 32px; font-size: var(--fs-sm); }
.doc .guide__legal { color: var(--muted); }

@media (max-width: 1060px) {
  .doc-layout { grid-template-columns: minmax(0, 760px); }
  .doc-toc { display: none; }
  .doc-facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .doc-bar__cta { display: none; }
  .doc-bar .btn--quiet { min-height: 40px; padding: 8px 14px; }
  .doc-facts li { padding: 18px; }
}
@media print {
  .doc-bar, .doc-toc, .doc-cta, .skip, .sticky-cta { display: none !important; }
  body { font-size: 11pt; }
  .doc-cover { padding: 0 0 16pt; background: none; }
  .doc-facts li { border: 1px solid var(--line); }
  .doc-layout { display: block; padding: 16pt 0 0; }
  .doc h2 { margin-top: 24pt; break-after: avoid; }
  .doc-table { overflow: visible; }
  .guide__table { min-width: 0; font-size: 9.5pt; }
  .guide__table tr { break-inside: avoid; }
  .doc a { color: var(--text); text-decoration: none; }
}

/* ---------- /plataforma ---------- */
.hero--compact { padding-bottom: clamp(40px, 5vw, 64px); }
.hero__title--md { max-width: 20ch; font-size: var(--fs-headline-xl); }
.hero--compact .hero__lead { margin-bottom: 28px; }
.jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.jump a { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--bg); color: var(--text-2); font-size: var(--fs-sm); font-weight: 600; text-decoration: none; transition: border-color .2s, color .2s; }
.jump a:hover { border-color: var(--line-strong); color: var(--text); }
.section--tight-top { padding-top: clamp(24px, 3vw, 40px); }
.caps { display: flex; flex-direction: column; align-items: center; }
.cap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); width: 100%; padding: clamp(28px, 4vw, 48px); border-radius: var(--r-card); background: var(--soft); }
.cap h3 { font-size: var(--fs-title-lg); letter-spacing: -.025em; }
.cap__copy > p { margin-top: 14px; color: var(--text-2); }
.cap__side { padding: 24px; border-radius: var(--r-lg); background: var(--bg); align-self: start; }
.cap__label { margin-bottom: 10px; color: var(--muted); font-size: var(--fs-xs); font-weight: 600; }
.cap__label:not(:first-child) { margin-top: 22px; }
.ticks { display: grid; gap: 12px; margin: 22px 0 0; padding: 0; list-style: none; color: var(--text-2); }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--ok-bg); }
.ticks li::after { content: ""; position: absolute; left: 5px; top: 8px; width: 10px; height: 10px; background: var(--ok-fg); -webkit-mask: var(--i-check) center / contain no-repeat; mask: var(--i-check) center / contain no-repeat; }
.ticks b { color: var(--text); }
.ticks--card { margin: 0; padding: 28px; border-radius: var(--r-card); background: var(--soft); align-self: start; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pills li { padding: 5px 12px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--bg); color: var(--text); font-size: var(--fs-sm); font-weight: 500; }
.pills--docs li { font-family: var(--font-data); font-variant-numeric: tabular-nums; font-weight: 600; }
.pills--docs a { color: inherit; text-decoration: none; }
.pills--docs li:has(a):hover { border-color: var(--blue); }
.pills--docs span { margin-left: 4px; color: var(--muted); font-family: var(--font); font-weight: 500; }
.pills--center { justify-content: center; margin-top: 32px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile { padding: 32px; border-radius: var(--r-card); background: var(--bg); }
.tile h3 { font-size: var(--fs-xl); letter-spacing: -.02em; }
.tile p { margin-top: 10px; color: var(--text-2); font-size: var(--fs-base); }
.secure { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; }
.secure__where { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.secure__where .tile { background: var(--soft); }
.modules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; }
.modules li { padding: 28px; border-radius: var(--r-card); background: var(--bg); }
.modules h3 { font-size: var(--fs-lg); letter-spacing: -.02em; }
.modules p { margin-top: 8px; color: var(--text-2); font-size: var(--fs-base); }
.versus { width: 100%; min-width: 760px; border-collapse: collapse; font-size: var(--fs-sm); }
.versus th, .versus td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.versus thead th { background: var(--soft); color: var(--muted); font-size: var(--fs-xs); font-weight: 600; line-height: 1.35; }
.versus tbody th { color: var(--text); font-weight: 600; }
.versus tr:last-child th, .versus tr:last-child td { border-bottom: 0; }
.versus .is-us { background: var(--ok-bg); }
.versus thead .is-us { color: var(--ok-fg); font-size: var(--fs-sm); font-weight: 700; }
.compare-table { max-width: 1100px; margin: 0 auto; }

/* ---------- /obrigado ---------- */
.thanks { padding: clamp(56px, 8vw, 104px) 0 var(--section-y); }
.thanks__inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.thanks__check { position: relative; width: 64px; height: 64px; margin-bottom: 24px; border-radius: 50%; background: var(--ok-bg); }
.thanks__check::after { content: ""; position: absolute; inset: 18px; background: var(--ok-fg); -webkit-mask: var(--i-check) center / contain no-repeat; mask: var(--i-check) center / contain no-repeat; }
.thanks h1 { max-width: 20ch; font-size: var(--fs-headline); letter-spacing: -.035em; }
.thanks__lead { max-width: 54ch; margin: 18px 0 32px; color: var(--text-2); font-size: var(--fs-lead); }
.thanks__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; width: 100%; max-width: 1000px; margin-top: clamp(48px, 6vw, 72px); text-align: left; }
.thanks__card { padding: 32px; border-radius: var(--r-card); background: var(--soft); }
.thanks__card h2 { font-size: var(--fs-xl); letter-spacing: -.02em; }
.thanks__card > p { margin: 12px 0 20px; color: var(--text-2); }
.thanks__card .ticks { margin-top: 18px; }
.thanks__guide { margin-top: 20px; }
.notfound { margin-bottom: 12px; color: var(--teal-dark); font-family: var(--font-num); font-size: var(--fs-number); font-weight: 700; line-height: 1; }
.notfound__actions { margin-top: 32px; }
.footer--slim { padding: 8px 0 24px; }
.footer--slim .footer__legal { margin-top: 0; border-top: 0; }

/* ---------- Catálogo de layouts ---------- */
.cat-hero { padding: clamp(40px, 6vw, 72px) 0 clamp(48px, 6vw, 72px); background: var(--bg); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; color: var(--muted); font-size: var(--fs-sm); }
.crumbs a { color: var(--text-2); font-weight: 600; text-decoration: none; }
.crumbs a:hover { color: var(--blue); }
.cat-hero h1 { max-width: 22ch; font-size: var(--fs-headline); line-height: 1.08; letter-spacing: -.035em; }
.cat-hero__lead { max-width: 60ch; margin: 18px 0 28px; color: var(--text-2); font-size: var(--fs-lead); }
.cat-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 0 0 28px; }
.cat-facts div { padding: 16px 18px; border-radius: var(--r-lg); background: var(--soft); }
.cat-facts dt { color: var(--muted); font-size: var(--fs-xs); font-weight: 600; }
.cat-facts dd { margin: 4px 0 0; font-size: var(--fs-md); font-weight: 600; line-height: 1.4; }
.cta-row--start { justify-content: flex-start; }
.cat-updated { margin-top: 20px; color: var(--muted); font-size: var(--fs-sm); }
.cat-split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.cat-split h2 { font-size: var(--fs-headline-sm); letter-spacing: -.03em; }
.cat-split p { margin-top: 16px; color: var(--text-2); }
.cat-note { color: var(--muted) !important; font-size: var(--fs-sm); }
.cat-struct { display: grid; gap: 0; margin: 0; border-top: 1px solid var(--line-strong); }
.cat-struct div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cat-struct dt { font-family: var(--font-data); font-weight: 600; }
.cat-struct dd { margin: 0; color: var(--text-2); }
.cat-errors { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 0; padding: 0; list-style: none; }
.cat-errors li { padding: 28px; border-radius: var(--r-card); background: var(--bg); }
.cat-errors__top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px 16px; }
.cat-errors h3 { max-width: 30ch; font-size: var(--fs-lg); letter-spacing: -.015em; }
.cat-errors dl { display: grid; gap: 12px; margin: 16px 0 0; }
.cat-errors dt { color: var(--muted); font-size: var(--fs-xs); font-weight: 600; }
.cat-errors dd { margin: 2px 0 0; color: var(--text-2); font-size: var(--fs-base); }

.lcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; }
.lcard a { display: flex; flex-direction: column; height: 100%; padding: 28px; border-radius: var(--r-card); background: var(--soft); color: var(--text); text-decoration: none; transition: background-color .2s; }
.lcard a:hover { background: var(--soft-2); color: var(--text); }
.lcard .tag { align-self: flex-start; }
.lcard .tag::before { display: none; }
.lcard h3 { margin-top: 16px; font-size: var(--fs-xl); letter-spacing: -.02em; }
.lcard p { margin: 10px 0 20px; color: var(--text-2); font-size: var(--fs-base); }
.lcard__meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; color: var(--blue); font-size: var(--fs-sm); font-weight: 600; }
.lcard__meta .ico { transition: transform .25s var(--ease); }
.lcard a:hover .ico { transform: translateX(4px); }
.cat-search { display: grid; gap: 12px; width: 100%; max-width: 640px; }
.cat-search label { position: absolute; left: -9999px; }
.cat-search input { width: 100%; min-height: 54px; padding: 12px 18px; border: 1.5px solid var(--line-strong); border-radius: var(--r-pill); background: var(--bg); color: var(--text); font: 400 var(--fs-body) var(--font); }
.cat-search input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47, 49, 161, .18); }
.cat-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.cat-empty { max-width: 60ch; margin: 24px auto 0; color: var(--text-2); text-align: center; }

.cat-notice { max-width: 70ch; margin-top: 16px; color: var(--muted); font-size: var(--fs-sm); }
.deps { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 20px; padding: clamp(28px, 4vw, 44px); border-radius: var(--r-card); background: var(--soft); }
.deps__intro h2 { font-size: var(--fs-title-lg); letter-spacing: -.025em; }
.deps__intro p { margin-top: 12px; color: var(--text-2); font-size: var(--fs-base); }
.deps__col h3 { margin-bottom: 12px; color: var(--muted); font-size: var(--fs-sm); font-weight: 600; letter-spacing: 0; }
.deps__col ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.deps__col a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--r-lg); background: var(--bg); color: var(--text); text-decoration: none; transition: box-shadow .2s; }
.deps__col a:hover { color: var(--text); box-shadow: 0 0 0 1px var(--line-strong); }
.deps__col b { font-family: var(--font-num); font-weight: 600; font-variant-numeric: tabular-nums; }
.deps__col span:not(.ico) { color: var(--text-2); font-size: var(--fs-sm); }
.deps__col .ico { color: var(--blue); }

/* Demo da tela de validação (espelha o app) */
.val-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 14px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--bg); color: var(--text-2); font: 600 var(--fs-sm) var(--font); cursor: pointer; }
.val-chip:hover { border-color: var(--line-strong); color: var(--text); }
.val-chip[aria-pressed="true"] { border-color: var(--blue); background: var(--blue); color: #fff; }
.val-chip i { font-style: normal; font-family: var(--font-num); }
.val { width: 100%; margin: 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--soft); overflow: hidden; box-shadow: var(--shadow-window); font-family: var(--font-data); font-size: var(--fs-sm); }
.val__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); background: var(--bg); }
.val__head small { display: block; color: var(--muted); font-size: var(--fs-xs); }
.val__head b { font-family: var(--font); font-size: var(--fs-lg); font-weight: 700; word-break: break-all; }
.val__head .c-btn { cursor: pointer; }
.val__kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 16px 20px 0; }
.val__kpis p { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg); }
.val__kpis span { color: var(--muted); font-size: var(--fs-xs); }
.val__kpis b { font-family: var(--font-num); font-size: var(--fs-number-sm); font-weight: 600; line-height: 1.15; font-variant-numeric: tabular-nums; }
.val__kpis .is-alert b { color: var(--alert-fg); }
.val__kpis .is-ok b { color: var(--ok-fg); }
.val__errors, .val__file { margin: 16px 20px 0; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg); overflow: hidden; }
.val__file { margin-bottom: 20px; }
.val__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.val__bar > b { font: 700 var(--fs-md) var(--font); }
.val__filters { display: flex; flex-wrap: wrap; gap: 6px; }
.val__filters .val-chip { min-height: 32px; padding: 4px 12px; font-size: var(--fs-xs); }
.val__hint { color: var(--muted); font-size: var(--fs-xs); }
.val__list { display: grid; gap: 8px; padding: 12px; }
.val-err { border: 1px solid var(--line); border-radius: var(--r-sm); }
.val-err[open] { border-color: var(--line-strong); }
.val-err summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; padding: 12px 14px; cursor: pointer; list-style: none; }
.val-err summary::-webkit-details-marker { display: none; }
.val-err__name { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.val-err__name::before { content: ""; width: 10px; height: 10px; background: var(--text-2); -webkit-mask: var(--i-chev) center / contain no-repeat; mask: var(--i-chev) center / contain no-repeat; transform: rotate(-90deg); transition: transform .2s; }
.val-err[open] .val-err__name::before { transform: none; }
.val-err__name i { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: var(--r-pill); background: var(--alert); color: #fff; font-family: var(--font-num); font-size: var(--fs-2xs); font-style: normal; }
.val-err__meta { display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: var(--fs-xs); }
.val-err__meta b { color: var(--text); }
.val-err__body { padding: 4px 14px 14px; border-top: 1px solid var(--line); }
.val-err__desc { padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.val-err__desc small { display: block; color: var(--muted); font-size: var(--fs-2xs); font-weight: 400; }
.val-err dl { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 12px 20px; margin: 12px 0; }
.val-err dt { color: var(--muted); font-size: var(--fs-2xs); }
.val-err dd { margin: 2px 0 0; font-weight: 500; }
.val-err dd.is-bad { color: var(--alert-fg); font-weight: 600; }
.val-err code, .fm-value, .vcell { font-family: var(--font-file); }
.val-err__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.val-err__actions .c-btn { cursor: pointer; }
.val__grid { max-height: 440px; overflow: auto; padding: 8px 0; overscroll-behavior: contain; }
.vrow { display: flex; gap: 4px; width: max-content; min-width: 100%; padding: 3px 12px 3px 0; }
.vrow__n { position: sticky; left: 0; z-index: 1; flex: none; display: grid; place-items: center end; width: 56px; padding: 4px 10px; border-radius: 0 var(--r-xs) var(--r-xs) 0; background: var(--soft-2); color: var(--muted); font-family: var(--font-num); font-size: var(--fs-xs); font-variant-numeric: tabular-nums; }
.vcell { flex: none; padding: 4px 6px; border: 1px solid var(--line); border-radius: var(--r-xs); background: var(--bg); color: var(--text); font-size: var(--fs-xs); line-height: 1.5; white-space: pre; cursor: pointer; }
.vcell:hover { border-color: var(--line-strong); background: var(--soft); }
button.vcell { font: inherit; font-family: var(--font-file); font-size: var(--fs-xs); }
.vcell.is-err { border-color: var(--alert); background: var(--alert-bg); color: var(--alert-fg); font-weight: 600; }
.vrow.is-err .vrow__n { background: var(--alert); color: #fff; }
.vrow.is-flash .vcell { animation: row-flash 1.4s var(--ease); }
@keyframes row-flash { 0%, 30% { box-shadow: 0 0 0 2px rgba(47, 49, 161, .35); } 100% { box-shadow: none; } }
.val figcaption { padding: 8px 18px 10px; border-top: 1px solid var(--line); background: var(--bg); color: var(--muted); font-size: var(--fs-2xs); text-align: right; }
/* Execução: varredura no arquivo, erros assentando depois */
.val__file { position: relative; }
.val.is-run .val__grid::after { content: ""; position: absolute; left: 0; right: 0; top: 48px; height: 120px; pointer-events: none; background: linear-gradient(180deg, transparent, rgba(62, 193, 173, .22), transparent); animation: val-scan 1.6s ease-in-out both; }
@keyframes val-scan { 0% { transform: translateY(-40%); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateY(320px); opacity: 0; } }
.val.is-run .vcell.is-err, .val.is-run .vrow.is-err .vrow__n { animation: cell-flag .5s var(--ease) 1.3s both; }
@keyframes cell-flag { from { border-color: var(--line); background: var(--bg); color: var(--text); } }
.val.is-run .val__kpis .is-alert b { animation: tag-in .45s var(--ease) 1.5s both; }

/* Mito: o mesmo arquivo num editor comum e no DataProof */
.myth { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; max-width: 1040px; margin: 0 auto; }
.myth figure { margin: 0; border-radius: var(--r-card); overflow: hidden; }
.myth figcaption { padding: 14px 22px; font-size: var(--fs-sm); font-weight: 600; }
.myth__raw { background: var(--soft-2); }
.myth__raw figcaption { color: var(--muted); }
.myth__raw pre { margin: 0; padding: 4px 22px 24px; color: var(--muted); font-family: var(--font-file); font-size: var(--fs-sm); line-height: 1.8; white-space: pre-wrap; word-break: break-all; }
.myth__decoded { background: var(--soft); }
.myth__decoded figcaption { color: var(--ok-fg); }
.myth__decoded dl { display: grid; margin: 0; padding: 0 22px 18px; }
.myth__decoded div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
.myth__decoded div:last-child { border-bottom: 0; }
.myth__decoded dt { color: var(--muted); font-weight: 600; }
.myth__decoded dd { margin: 0; font-family: var(--font-data); font-weight: 600; font-variant-numeric: tabular-nums; }
.myth__arrow { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--blue); color: #fff; }

/* Demo de mensagens ISO 8583 */
.msgs { max-height: 560px; overflow: auto; overscroll-behavior: contain; }
.msg { border-bottom: 1px solid var(--line); }
.msg:last-child { border-bottom: 0; }
.msg summary { display: flex; align-items: center; gap: 10px; padding: 11px 16px; cursor: pointer; list-style: none; font-weight: 600; }
.msg summary::-webkit-details-marker { display: none; }
.msg summary::before { content: ""; flex: none; width: 10px; height: 10px; background: var(--text-2); -webkit-mask: var(--i-chev) center / contain no-repeat; mask: var(--i-chev) center / contain no-repeat; transform: rotate(-90deg); transition: transform .2s; }
.msg[open] summary::before { transform: none; }
.msg__txt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-data); font-size: var(--fs-xs); }
.msg.is-err > summary { background: var(--alert-bg); color: var(--alert-fg); }
.msg.is-err > summary::before { background: var(--alert-fg); }
.mbadge { flex: none; margin-left: 8px; padding: 2px 8px; border-radius: var(--r-pill); background: var(--alert); color: #fff; font-size: var(--fs-2xs); font-style: normal; font-weight: 700; white-space: nowrap; }
.mtable { border-top: 1px solid var(--line); }
.mtable__head, .mrow { display: grid; grid-template-columns: 28px minmax(200px, 34%) 1fr; }
.mtable__head { background: var(--info-bg); color: var(--text); font-size: var(--fs-xs); font-weight: 700; }
.mtable__head span { padding: 9px 12px; }
.mtable__head span:first-child { grid-column: 1 / 3; padding-left: 14px; }
.mrow { align-items: stretch; border-top: 1px solid var(--line); cursor: pointer; }
.mrow:hover { background: var(--soft); }
.mrow__tog { align-self: center; justify-self: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: var(--r-xs); background: none; cursor: pointer; }
.mrow__tog::before { content: ""; display: block; width: 10px; height: 10px; margin: auto; background: var(--text-2); -webkit-mask: var(--i-chev) center / contain no-repeat; mask: var(--i-chev) center / contain no-repeat; transform: rotate(-90deg); transition: transform .2s; }
.mrow__tog[aria-expanded="true"]::before { transform: none; }
.mrow__tog:hover { background: var(--soft-2); }
.mrow__tog--none::before { display: none; }
.mrow__name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 9px 12px 9px 0; border-right: 1px solid var(--line); font-family: var(--font); font-size: var(--fs-xs); font-weight: 600; }
.mrow__val { padding: 9px 12px; color: var(--text-2); font-family: var(--font-file); font-size: var(--fs-xs); word-break: break-all; }
.mrow.lvl-1 .mrow__name { padding-left: 20px; font-weight: 500; }
.mrow.lvl-2 .mrow__name { padding-left: 40px; font-weight: 500; }
.mrow.lvl-1 { background: var(--soft); }
.mrow.is-err, .mrow.has-kid-err { background: var(--alert-bg); }
.mrow.is-err .mrow__name, .mrow.is-err .mrow__val, .mrow.has-kid-err .mrow__name { color: var(--alert-fg); }
.mrow.is-err .mrow__val b { font-weight: 700; }
.mrow.is-flash { animation: row-flash 1.4s var(--ease); }
.val.is-run .mrow.is-err, .val.is-run .msg.is-err > summary { animation: cell-flag .5s var(--ease) .6s both; }

.field-modal { width: min(560px, calc(100vw - 24px)); max-height: min(92vh, 820px); padding: 0; border: 0; border-radius: var(--r-lg); background: var(--bg); color: var(--text); box-shadow: 0 40px 100px -30px rgba(8, 8, 16, .5); overflow: auto; }
.field-modal::backdrop { background: rgba(8, 8, 16, .55); backdrop-filter: blur(3px); }
.field-modal[open] { animation: modal-in .3s var(--ease); }
.field-modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 24px 16px; border-bottom: 1px solid var(--line); }
.field-modal__head h2 { font-size: var(--fs-xl); letter-spacing: -.02em; }
.field-modal__head p { margin-top: 4px; color: var(--muted); font-size: var(--fs-sm); }
.field-modal__body { display: grid; gap: 8px; padding: 18px 24px 24px; }
.fm-label { margin-top: 8px; color: var(--muted); font-size: var(--fs-2xs); font-weight: 600; }
.fm-name { font-size: var(--fs-lg); font-weight: 700; }
.fm-desc { padding: 10px 14px; border-radius: var(--r-sm); background: var(--info-bg); color: var(--text-2); font-size: var(--fs-sm); }
.fm-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 6px; }
.fm-box { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); }
.fm-box small { color: var(--muted); font-size: var(--fs-2xs); }
.fm-box b { font-family: var(--font-num); font-weight: 600; }
.fm-value { padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--soft); font-size: var(--fs-sm); white-space: pre-wrap; word-break: break-all; }
.fm-value.is-bad { border-color: rgba(164, 36, 36, .3); background: var(--alert-bg); color: var(--alert-fg); font-weight: 600; }
.fm-error { padding: 10px 14px; border: 1px solid rgba(164, 36, 36, .3); border-radius: var(--r-sm); background: var(--alert-bg); color: var(--alert-fg); font-size: var(--fs-sm); font-weight: 600; }
.fm-plain { font-weight: 500; }
.fm-ok { margin-top: 8px; padding: 10px 14px; border-radius: var(--r-sm); background: var(--ok-bg); color: var(--ok-fg); font-weight: 600; font-size: var(--fs-sm); }
html:has(.field-modal[open]) { overflow: hidden; }

/* ---------- RC 18: layouts do Bacen ---------- */
.section--tight { padding-top: 0; }
.reg { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; padding: clamp(32px, 5vw, 64px); border-radius: var(--r-card); background: var(--navy); color: #fff; }
.reg h2 { font-size: var(--fs-headline-sm); letter-spacing: -.03em; }
.reg__copy > p { margin-top: 18px; color: var(--on-navy); font-size: var(--fs-lead); }
.reg__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; margin-top: 32px; }
.reg__count { display: flex; align-items: center; gap: 10px; }
.reg__count strong { font-family: var(--font-num); font-size: var(--fs-count); font-weight: 700; line-height: 1; letter-spacing: -.03em; color: var(--teal); font-variant-numeric: tabular-nums; }
.reg__count span { color: var(--on-navy); font-size: var(--fs-sm); line-height: 1.3; }
.reg :focus-visible { outline-color: var(--teal); }
.layouts { margin: 0; border-radius: var(--r-lg); background: var(--bg); color: var(--text); overflow: hidden; font-family: var(--font-data); box-shadow: 0 30px 60px -30px rgba(8, 8, 16, .55); }
.layouts__head { padding: 16px 20px 12px; border-bottom: 1px solid var(--line); font: 700 var(--fs-md)/1.2 var(--font); }
.layouts ul { margin: 0; padding: 8px 10px; list-style: none; }
.layouts li { display: grid; grid-template-columns: 92px 1fr auto; gap: 12px; align-items: center; padding: 9px 10px; border-radius: var(--r-sm); font-size: var(--fs-sm); }
.layouts li b { font-weight: 600; font-variant-numeric: tabular-nums; }
.layouts li span:not(.tag) { color: var(--text-2); }
.layouts .layouts__conc { margin-top: 6px; background: var(--ok-bg); }
.layouts figcaption { padding: 8px 18px 10px; border-top: 1px solid var(--line); background: var(--soft); color: var(--muted); font-size: var(--fs-2xs); text-align: right; }

/* ---------- Resultados (faixa preta) ---------- */
.band { position: relative; padding: var(--section-y) 0; background: var(--black); color: #fff; }
.band::before, .footer::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: linear-gradient(180deg, #3ec1ad 0%, #46a0dc 100%); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.stats li { display: flex; flex-direction: column; padding: 28px 28px 32px; border-radius: var(--r-card); background: var(--black-2); }
.stats strong { margin: 0 0 14px; font-family: var(--font-num); font-size: var(--fs-number); font-weight: 700; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stats strong em { font-style: normal; color: var(--teal); }
.stats--3 { grid-template-columns: repeat(3, 1fr); }
.stats p { color: var(--on-black-2); font-size: var(--fs-md); line-height: 1.5; }
.band__link { margin-top: 36px; text-align: center; }
.band__link a { color: #fff; }
.band__link a:hover { color: var(--teal); }
.band :focus-visible { outline-color: var(--teal); }

/* ---------- CTA final ---------- */
.final { padding: var(--section-y) 0; background: var(--soft); }
.final__inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.final h2 { max-width: 18ch; font-size: var(--fs-headline-xl); font-weight: 700; letter-spacing: -.035em; }
.final p { max-width: 54ch; margin: 18px 0 32px; color: var(--text-2); font-size: var(--fs-lead); }

/* ---------- Rodapé ---------- */
.footer { position: relative; padding: 64px 0 32px; background: var(--black); color: var(--on-black-2); font-size: var(--fs-md); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr 1fr; gap: 40px; }
.footer img { display: block; width: 96px; margin-bottom: 16px; }
.footer p { margin-bottom: 10px; }
.footer address { font-style: normal; line-height: 1.6; color: #9ba0b8; }
.footer__h { color: #fff; font-weight: 700; }
.footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.footer a { color: var(--on-black-2); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer :focus-visible { outline-color: var(--teal); }
.footer__legal p + p { margin-top: 8px; font-size: var(--fs-xs); }
.footer__legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); color: #9ba0b8; font-size: var(--fs-sm); }

/* ---------- Formulário (modal) ---------- */
.form-modal { width: min(560px, calc(100vw - 24px)); max-height: min(92vh, 860px); padding: clamp(24px, 4vw, 36px); border: 0; border-radius: var(--r-lg); background: var(--bg); color: var(--text); box-shadow: 0 40px 100px -30px rgba(8, 8, 16, .5); overflow: auto; overscroll-behavior: contain; }
.form-modal::backdrop { background: rgba(8, 8, 16, .55); backdrop-filter: blur(3px); }
.form-modal[open] { animation: modal-in .35s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.form-modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.form-modal__head h2 { font-size: var(--fs-title-lg); letter-spacing: -.025em; }
.form-modal__close { flex: none; display: grid; place-items: center; width: 44px; height: 44px; margin: -8px -10px 0 0; border: 0; border-radius: var(--r-sm); background: none; color: var(--muted); font-size: var(--fs-lg); cursor: pointer; }
.form-modal__close:hover { background: var(--soft); color: var(--text); }
.form-modal__sub { margin: 8px 0 22px; color: var(--text-2); font-size: var(--fs-md); }
html:has(.form-modal[open]) { overflow: hidden; }

.lead__steps { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.lead__steps span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--soft-2); color: var(--muted); font-size: var(--fs-xs); font-weight: 700; }
.lead__steps span.is-on { background: var(--blue); color: #fff; }
.lead__steps i { flex: 0 0 40px; height: 2px; background: var(--line); }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { margin-bottom: 14px; padding: 0; color: var(--muted); font-size: var(--fs-xs); font-weight: 600; }
.field { margin-bottom: 14px; }
.field label { display: block; margin-bottom: 6px; font-size: var(--fs-sm); font-weight: 600; }
.field input, .field select { width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--r-sm); background: var(--bg); color: var(--text); font: 400 var(--fs-base) var(--font); transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47, 49, 161, .18); }
.field [aria-invalid="true"] { border-color: var(--alert-fg); }
.field__err { margin-top: 4px; color: var(--alert-fg); font-size: var(--fs-sm); font-weight: 600; }
.field__err:empty { display: none; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0 10px; font-size: var(--fs-sm); color: var(--text-2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--blue); }
.lead__actions { display: flex; gap: 10px; justify-content: space-between; margin-top: 14px; }
.lead__actions .btn--primary { flex: 1; }
.lead__status { margin-top: 12px; font-size: var(--fs-sm); }
.lead__status:empty { display: none; }
.lead__status.is-error { color: var(--alert-fg); font-weight: 600; }
.contact { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: var(--fs-md); }
.contact__title { font-weight: 600; margin-bottom: 6px; }
.contact ul { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; }

/* Formulário do RD, quando ligado */
.rd-embed { margin-top: 4px; }
.rd-modal { width: min(560px, calc(100vw - 24px)); max-height: min(92vh, 860px); padding: clamp(24px, 4vw, 36px); border: 0; border-radius: var(--r-lg); background: var(--bg); color: var(--text); box-shadow: 0 40px 100px -30px rgba(8, 8, 16, .5); overflow: auto; }
.rd-modal::backdrop { background: rgba(8, 8, 16, .55); }
.rd-modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.rd-modal__head h2 { font-size: var(--fs-title-lg); }
.rd-modal__close { flex: none; display: grid; place-items: center; width: 44px; height: 44px; margin: -8px -10px 0 0; border: 0; border-radius: var(--r-sm); background: none; color: var(--muted); cursor: pointer; }
.rd-modal__sub { margin: 8px 0 20px; color: var(--text-2); }
.rd-modal__loading { padding: 24px 0; color: var(--muted); }
html:has(.rd-modal[open]) { overflow: hidden; }
.rdstation-popup-js-popup, .rdstation-popup-position-center, .bricks--component-popup { display: none !important; }

/* ---------- CTA fixo no celular ---------- */
.sticky-cta { display: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 1060px) {
  .nav__links { position: absolute; left: 0; right: 0; top: 72px; display: none; flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px -24px rgba(20, 23, 46, .3); }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 14px 4px; font-size: var(--fs-body); border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav__links li:last-child a { border-bottom: 0; }
  .nav__toggle { display: flex; }
  .stats, .stats--3 { grid-template-columns: 1fr 1fr; }
  .dims { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .pillars { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .reg { grid-template-columns: 1fr; }
  .cap, .secure, .thanks__grid { grid-template-columns: 1fr; }
  .cat-split, .cat-errors { grid-template-columns: 1fr; }
  .deps { grid-template-columns: 1fr; }
  .myth { grid-template-columns: 1fr; }
  .myth__arrow { justify-self: center; transform: rotate(90deg); }
  .cat-facts, .val__kpis { grid-template-columns: 1fr 1fr; }
  .lcards { grid-template-columns: 1fr 1fr; }
  .val-err dl { grid-template-columns: 1fr; }
  .tiles, .modules { grid-template-columns: 1fr 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
  .console { grid-template-columns: 1fr; }
  .console__side { display: none; }
  .c-kpis, .c-grid12 { grid-template-columns: 1fr 1fr; }
  .c-split, .c-attests { grid-template-columns: 1fr; }
  .c-table th:nth-child(3), .c-table td:nth-child(3), .c-table th:nth-child(4), .c-table td:nth-child(4) { display: none; }
  .phases { grid-template-columns: 1fr; }
  .guide { grid-template-columns: 1fr; }
  .rows--reg li { grid-template-columns: 1fr 1.1fr 112px; }
  .rows.rows--reg li > span:nth-child(4) { display: block; }
  .rows.rows--reg li > span:nth-child(2) { display: none; }
  .lane { grid-template-columns: 1fr auto; gap: 6px 16px; }
  .lane i { grid-column: 1 / -1; grid-row: 2; }
  .rows li { grid-template-columns: .9fr 1.2fr 108px; }
  .rows li > span:nth-child(3), .rows li > span:nth-child(4) { display: none; }
}
@media (max-width: 720px) {
  .sticky-cta { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .35s var(--ease); }
  .sticky-cta.is-visible { transform: none; }
  body:has(.sticky-cta) .footer { padding-bottom: 108px; }
  body:has(.sticky-cta.is-visible) .rdstation-popup-position-bottom_right.floating-button--close { translate: 0 -68px; }
  .app__kpis { grid-template-columns: 1fr 1fr; }
  .app__kpis p { padding: 12px 16px; }
  .app__kpis p:last-child { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); }
  .app__bar { padding: 16px 16px 12px; }
  .app__crumb span:not(:last-child) { display: none; }
  .app__status { display: none; }
  .c-table th:nth-child(6), .c-table td:nth-child(6) { display: none; }
  .c-table th, .c-table td { padding-left: 12px; padding-right: 12px; }
  .console__body { min-height: 0; padding: 14px 12px; }
  .console__head { padding: 14px 12px; }
  .console__head .c-select { display: none; }
  .features button { padding: 12px 14px; }
  .features span { display: none; }
  .hide-sm { display: none; }
  .layouts li { grid-template-columns: 84px 1fr auto; }
  .rows { padding: 8px; }
  .lanes { padding: 14px 16px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .band::before, .footer::before { width: 5px; }
}
@media (max-width: 560px) {
  .nav__cta { display: none; }
  .cta-row { flex-direction: column; align-items: stretch; width: 100%; }
  .cta-row .btn { width: 100%; }
  .announce { font-size: var(--fs-xs); text-align: left; }
  .demo__tabs button { padding: 8px 14px; font-size: var(--fs-sm); }
  .demo__tabs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; border-radius: var(--r-lg); }
  .caps__tabs { grid-template-columns: repeat(3, 1fr); }
  .demo__tabs button { justify-content: center; gap: 6px; padding: 8px 6px; }
  .demo__tabs svg { width: 18px; height: 18px; }
  .hide-sm { display: none; }
  .stats, .stats--3 { grid-template-columns: 1fr; }
  .tiles, .modules, .secure__where { grid-template-columns: 1fr; }
  .lcards, .cat-facts { grid-template-columns: 1fr; }
  .cat-struct div { grid-template-columns: 1fr; gap: 4px; }
  .val__kpis { padding: 12px 12px 0; }
  .val__errors, .val__file { margin-left: 12px; margin-right: 12px; }
  .val__hint { display: none; }
  .fm-grid { grid-template-columns: 1fr 1fr; }
  .mtable__head, .mrow { grid-template-columns: 24px minmax(0, 46%) 1fr; }
  .myth__decoded div { grid-template-columns: 1fr; gap: 2px; }
  .cat-errors li { padding: 22px; }
  .cap { padding: 20px; }
  .cap__side { padding: 18px; }
  .dims { grid-template-columns: 1fr; }
  .stats li { padding: 24px; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .hero::before { display: none; }
  .hero::after { width: 300px; height: 130px; right: -150px; top: 20px; }
}
