﻿/* =========================================================
   Nexus GED — Landing page
   Cores da identidade: azul de ação #4059d8, marinho #182044,
   e as abas da marca (amarelo, coral, verde).
   ========================================================= */

:root {
  --brand-50: #eff3ff;
  --brand-100: #e0e8ff;
  --brand-200: #c5d2ff;
  --brand-300: #9dafff;
  --brand-500: #5870e5;
  --brand-600: #4059d8;
  --brand-700: #3449b3;
  --brand-800: #2d3e90;
  --brand-900: #28366f;
  --brand-950: #182044;
  --navy: #2a4f89;

  --yellow: #ffc645;
  --coral: #f1726b;
  --green: #1c9174;

  --ink: #141a33;
  --text: #3d4566;
  --muted: #6b7394;
  --line: #e3e7f2;
  --soft: #f6f8fd;
  --white: #ffffff;

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(20, 26, 51, .06), 0 2px 8px rgba(20, 26, 51, .04);
  --shadow: 0 12px 32px -12px rgba(24, 32, 68, .22);
  --shadow-lg: 0 30px 60px -20px rgba(24, 32, 68, .35);

  --font-body: "Geist", "Segoe UI", system-ui, sans-serif;
  --font-head: "Plus Jakarta Sans", "Geist", "Segoe UI", sans-serif;

  --container: 1180px;
  --header-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { color: var(--brand-700); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--brand-300); outline-offset: 2px; border-radius: 4px; }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--brand-600); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px;
  font: 600 15px/1 var(--font-body);
  border-radius: 10px; border: 1px solid transparent;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn i { font-size: 18px; }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 16px; }
.btn-block { width: 100%; }

.btn-primary { background: var(--brand-600); color: #fff; box-shadow: 0 8px 20px -8px rgba(64, 89, 216, .7); }
.btn-primary:hover { background: var(--brand-700); color: #fff; transform: translateY(-1px); }

.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand-300); color: var(--brand-700); background: var(--brand-50); }

.btn-light { background: #fff; color: var(--brand-700); }
.btn-light:hover { background: var(--brand-50); color: var(--brand-800); }

/* ---------- Rótulos ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 13px/1 var(--font-body); letter-spacing: .04em; text-transform: uppercase;
  color: var(--brand-600); background: var(--brand-50);
  padding: 8px 12px; border-radius: 999px; margin-bottom: 18px;
}
.eyebrow i { font-size: 16px; }
.eyebrow-light { color: #dfe6ff; background: rgba(255, 255, 255, .1); }

.text-gradient {
  background: linear-gradient(100deg, var(--brand-600), #7b90ef 60%, var(--green));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.tag {
  display: inline-block; font: 600 11px/1 var(--font-body); font-style: normal;
  padding: 5px 8px; border-radius: 999px; white-space: nowrap;
}
.tag-blue { background: var(--brand-100); color: var(--brand-700); }
.tag-green { background: #d6f1e9; color: #11664f; }
.tag-yellow { background: #fff1cc; color: #8a5a00; }
.tag-coral { background: #fde1df; color: #a8322b; }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(20, 26, 51, .4); }

.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font: 600 20px/1 var(--font-head); letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.brand strong { color: var(--brand-600); font-weight: 800; }
.brand-light, .brand-light:hover { color: #fff; }
.brand-light strong { color: var(--brand-300); }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav ul { display: flex; gap: 4px; }
.main-nav ul a {
  display: block; padding: 8px 12px; border-radius: 8px;
  color: var(--text); font-weight: 500; font-size: 15px;
  transition: color .2s, background .2s;
}
.main-nav ul a:hover, .main-nav ul a.active { color: var(--brand-700); background: var(--brand-50); }

.menu-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: #fff;
  border-radius: 10px; cursor: pointer; padding: 0; position: relative;
}
.menu-toggle span {
  position: absolute; left: 12px; width: 18px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .25s, opacity .2s, top .25s;
}
.menu-toggle span:nth-child(1) { top: 15px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle span:nth-child(3) { top: 27px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
/* A foto ocupa a largura toda (com sobra à direita) e o texto fica sobre a área clara à esquerda. */
.hero { position: relative; overflow: hidden; background: #ecebe8; }
.hero-media {
  position: relative; width: 118%;
  margin-top: -9%; margin-bottom: -8%;   /* recorta parte do teto e da mesa */
  aspect-ratio: 2400 / 1350;
}
.hero-media > img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero::after {   /* véu claro para o texto ficar legível sobre a foto */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(250, 250, 249, .97) 0%, rgba(250, 250, 249, .92) 34%, rgba(250, 250, 249, .55) 46%, rgba(250, 250, 249, 0) 56%);
}
.hero-content {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center;
  padding-block: 40px;
}
.hero-copy { max-width: min(560px, 44vw); }

.hero h1 { font-size: clamp(36px, 4.4vw, 60px); font-weight: 800; letter-spacing: -.035em; margin-bottom: 20px; }
.lead { font-size: 18px; color: var(--text); max-width: 540px; margin-bottom: 30px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }

.hero-checks { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--muted); font-weight: 500; }
.hero-checks li { display: inline-flex; align-items: center; gap: 6px; }
.hero-checks i { color: var(--green); font-size: 18px; }

/* ---------- Telas encaixadas nos aparelhos ---------- */
/* O script posiciona .device-screen sobre a tela da foto com matrix3d. */
.device-stage { position: relative; }
.device-screen {
  position: absolute; left: 0; top: 0; transform-origin: 0 0;
  overflow: hidden; visibility: hidden;   /* aparece quando o script calcula a posição */
  font-family: var(--font-body); color: var(--ink); background: #fff;
}
.device-screen.ready { visibility: visible; }
.device-screen::after {   /* reflexo do vidro */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(118deg, rgba(255, 255, 255, .22) 0%, rgba(255, 255, 255, 0) 32%, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, .06) 100%);
}

/* Interface do notebook (1024 × 640) */
.app-screen { display: grid; grid-template-columns: 188px 1fr; font-size: 12px; background: #f6f8fd; }
.as-side { background: #fff; border-right: 1px solid var(--line); padding: 18px 12px; display: flex; flex-direction: column; }
.as-brand { display: flex; align-items: center; gap: 8px; font: 600 15px/1 var(--font-head); margin: 0 6px 22px; }
.as-brand img { width: 24px; height: 24px; border-radius: 6px; }
.as-brand b { color: var(--brand-600); }
.as-side nav { display: grid; gap: 2px; }
.as-side nav span { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 7px; color: var(--text); font-weight: 500; }
.as-side nav i { font-size: 16px; }
.as-side nav em { margin-left: auto; font-style: normal; font-size: 10px; background: var(--brand-100); color: var(--brand-700); padding: 2px 6px; border-radius: 99px; font-weight: 600; }
.as-side nav .on { background: var(--brand-600); color: #fff; }
.as-unit { margin-top: auto; display: flex; gap: 8px; align-items: center; font-size: 10.5px; color: var(--muted); line-height: 1.3; padding: 10px 6px 0; border-top: 1px solid var(--line); }
.as-unit b { width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 10px; flex-shrink: 0; }
.as-main { display: flex; flex-direction: column; min-width: 0; }
.as-top { height: 52px; display: flex; align-items: center; gap: 14px; padding: 0 22px; background: #fff; border-bottom: 1px solid var(--line); }
.as-top > i { font-size: 18px; color: var(--muted); margin-left: auto; }
.as-search { flex: 1; max-width: 420px; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; color: #9aa1bd; font-size: 11.5px; }
.as-body { padding: 20px 22px; }
.as-body h4 { font-size: 18px; margin-bottom: 14px; }
.as-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.as-kpis > div { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.as-kpis small { display: block; color: var(--muted); font-size: 10.5px; }
.as-kpis strong { display: block; font: 800 24px/1.2 var(--font-head); margin: 4px 0 2px; }
.as-kpis span { font-size: 10px; color: var(--muted); }
.as-kpis span.up { color: var(--green); font-weight: 600; }
.as-cols { display: grid; grid-template-columns: 1.5fr 1fr; gap: 12px; }
.as-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.as-card h5 { font: 700 13px/1 var(--font-head); margin: 0 0 10px; }
.as-row { display: grid; grid-template-columns: 78px 1fr auto; gap: 8px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); font-size: 11.5px; }
.as-row b { color: var(--brand-700); font-weight: 600; }
.as-row .tag { font-size: 9.5px; padding: 4px 7px; }
.as-doc { display: flex; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); }
.as-doc > i { font-size: 22px; color: var(--brand-600); }
.as-doc b { display: block; font-size: 11.5px; }
.as-doc small { color: var(--muted); font-size: 10px; }
.as-btn { display: block; margin-top: 10px; text-align: center; background: var(--brand-600); color: #fff; border-radius: 7px; padding: 9px; font-weight: 600; font-size: 11.5px; }

/* Interface do celular (360 × 781) */
.phone-media { width: min(100%, 420px); margin-inline: auto; aspect-ratio: 1100 / 1320; }
.phone-media > img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: var(--radius-lg); }
.phone-screen { border-radius: 34px; background: #f6f8fd; padding: 0 18px; font-size: 13px; }
.ps-notch { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 190px; height: 28px; background: #fff; border-radius: 0 0 16px 16px; box-shadow: 0 1px 0 #e9ecf4; }
.ps-status { display: flex; justify-content: space-between; padding: 8px 10px 0; font-weight: 600; font-size: 12px; height: 34px; }
.ps-status i { font-size: 13px; }
.ps-head { margin: 26px 0 18px; }
.ps-head small { display: block; color: var(--brand-600); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.ps-head b { font: 800 22px/1.2 var(--font-head); }
.ps-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 20px; box-shadow: var(--shadow-sm); }
.ps-proto { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }
.ps-proto b { color: var(--brand-700); font-size: 13px; }
.ps-card p { margin: 6px 0 10px; font-weight: 600; line-height: 1.35; }
.ps-timeline { display: grid; gap: 0; margin-left: 6px; }
.ps-timeline li { position: relative; padding: 0 0 16px 22px; border-left: 2px solid #d9dfee; }
.ps-timeline li:last-child { border-color: transparent; }
.ps-timeline li::before { content: ""; position: absolute; left: -7px; top: 1px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid #c5cde3; }
.ps-timeline li.done { border-color: var(--green); }
.ps-timeline li.done::before { background: var(--green); border-color: var(--green); }
.ps-timeline li.now::before { background: var(--brand-600); border-color: var(--brand-600); box-shadow: 0 0 0 4px rgba(64, 89, 216, .18); }
.ps-timeline b { display: block; font-size: 12.5px; line-height: 1.25; }
.ps-timeline small { color: var(--muted); font-size: 11px; }
.ps-btn { position: absolute; left: 18px; right: 18px; bottom: 34px; text-align: center; background: var(--brand-600); color: #fff; border-radius: 12px; padding: 12px; font-weight: 600; }
.ps-home { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); width: 120px; height: 4px; border-radius: 4px; background: #c7cbd6; }

/* Foto da aba Documentos com cartão do sistema */
.photo-visual > img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-lg); }
.doc-card {
  position: absolute; left: -24px; bottom: -28px; width: min(330px, 80%);
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; box-shadow: var(--shadow-lg);
}
.doc-card-head { display: flex; gap: 12px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.doc-card-head > i { font-size: 22px; color: var(--brand-600); background: var(--brand-50); width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.doc-card-head b { display: block; color: var(--ink); font-size: 14px; }
.doc-card-head small { color: var(--muted); font-size: 12px; }
.doc-versions li { display: flex; align-items: center; gap: 10px; padding: 9px 0 0; font-size: 13px; color: var(--text); }
.doc-versions li span { font: 700 11px/1 var(--font-head); color: var(--muted); background: var(--soft); border: 1px solid var(--line); border-radius: 6px; padding: 4px 6px; }
.doc-versions li .tag { margin-left: auto; }
.doc-versions li.current { color: var(--ink); font-weight: 600; }
.doc-versions li.current span { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }

/* ---------- Faixa de módulos ---------- */
.modules-strip { border-block: 1px solid var(--line); background: #fff; overflow: hidden; }
.strip-list { display: flex; justify-content: space-between; gap: 16px; padding: 22px 0; flex-wrap: wrap; }
.strip-list li { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--muted); font-size: 15px; }
.strip-list i { font-size: 22px; color: var(--brand-600); }

/* ---------- Seções ---------- */
.section { padding: 104px 0; }
.section-soft { background: var(--soft); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head.left { text-align: left; margin: 0; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; }
.section-head p { font-size: 18px; color: var(--muted); margin: 0; }

/* ---------- Como funciona ---------- */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; counter-reset: step; }
.flow::before {
  content: ""; position: absolute; top: 60px; left: 12%; right: 12%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--brand-200) 0 8px, transparent 8px 16px);
  z-index: 0;
}
.flow-step {
  position: relative; z-index: 1; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 28px 24px; transition: transform .3s, box-shadow .3s, border-color .3s;
}
.flow-step:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand-200); }
.flow-num { position: absolute; top: 20px; right: 22px; font: 800 14px/1 var(--font-head); color: var(--brand-200); }
.flow-icon {
  width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; font-size: 30px;
  background: var(--brand-600); color: #fff; margin-bottom: 22px; box-shadow: 0 10px 24px -10px rgba(64, 89, 216, .8);
}
.flow-step:nth-child(2) .flow-icon { background: var(--navy); }
.flow-step:nth-child(3) .flow-icon { background: var(--green); box-shadow: 0 10px 24px -10px rgba(28, 145, 116, .8); }
.flow-step:nth-child(4) .flow-icon { background: var(--brand-950); }
.flow-step h3 { font-size: 20px; }
.flow-step p { font-size: 15px; color: var(--muted); margin: 0; }

/* ---------- Abas de recursos ---------- */
.tab-list {
  display: flex; gap: 6px; justify-content: center; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 6px;
  width: fit-content; margin: 0 auto 40px; max-width: 100%;
}
.tab {
  display: inline-flex; align-items: center; gap: 8px;
  border: 0; background: transparent; color: var(--text); cursor: pointer;
  font: 500 15px/1 var(--font-body); padding: 12px 18px; border-radius: 10px;
  transition: background .2s, color .2s;
}
.tab i { font-size: 19px; }
.tab:hover { color: var(--brand-700); background: var(--brand-50); }
.tab[aria-selected="true"] { background: var(--brand-600); color: #fff; box-shadow: 0 6px 16px -8px rgba(64, 89, 216, .9); }

.tab-panel {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 48px;
  animation: panelIn .45s ease;
}
.tab-panel[hidden] { display: none; }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.panel-copy h3 { font-size: 28px; font-weight: 800; }
.panel-copy > p { color: var(--muted); font-size: 17px; margin-bottom: 24px; }

.check-list li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; color: var(--ink); font-weight: 500; }
.check-list i { color: var(--brand-600); font-size: 20px; flex-shrink: 0; margin-top: 2px; }

.panel-visual { position: relative; }
.panel-visual > img { border-radius: var(--radius-lg); }
.mock-note { position: absolute; right: 12px; bottom: -28px; font-size: 12px; color: var(--muted); margin: 0; }

/* Mockups em CSS */
.mock {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg);
  overflow: hidden; font-size: 14px;
}
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: var(--soft); border-bottom: 1px solid var(--line); }
.mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: #d9deeb; }
.mock-bar span:nth-child(1) { background: var(--coral); }
.mock-bar span:nth-child(2) { background: var(--yellow); }
.mock-bar span:nth-child(3) { background: var(--green); }
.mock-bar em { font-style: normal; margin-left: 10px; font-weight: 600; color: var(--ink); font-size: 13px; }

.mock-row {
  display: grid; grid-template-columns: 96px 1fr auto; gap: 12px; align-items: center;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
}
.mock-row:last-child { border-bottom: 0; }
.mock-row b { color: var(--brand-700); font-weight: 600; font-variant-numeric: tabular-nums; }
.mock-row span { color: var(--ink); }

.wf { padding: 28px; display: flex; flex-direction: column; align-items: flex-start; }
.wf-node {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px;
  border: 1px dashed var(--brand-200); color: var(--muted); font-weight: 600; background: #fff;
}
.wf-node i { font-size: 18px; }
.wf-node.done { border-style: solid; border-color: #bfe6da; background: #eefaf6; color: #11664f; }
.wf-node.active { border-style: solid; border-color: var(--brand-600); background: var(--brand-50); color: var(--brand-700); box-shadow: 0 0 0 4px rgba(64, 89, 216, .12); }
.wf-line { width: 2px; height: 22px; background: var(--green); margin-left: 26px; }
.wf-line.muted { background: var(--brand-200); }

.kb { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 16px; background: var(--soft); }
.kb-col h4 { font: 600 13px/1 var(--font-body); color: var(--muted); margin: 4px 4px 12px; display: flex; justify-content: space-between; letter-spacing: 0; }
.kb-col h4 b { background: #fff; border: 1px solid var(--line); padding: 2px 7px; border-radius: 999px; color: var(--ink); }
.kb-card {
  background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px;
  margin-bottom: 8px; color: var(--ink); font-weight: 500; font-size: 13px; box-shadow: var(--shadow-sm);
  display: flex; gap: 8px; align-items: center;
}
.kb-card.done { color: var(--muted); text-decoration: line-through; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dot.blue { background: var(--brand-600); }
.dot.green { background: var(--green); }
.dot.yellow { background: var(--yellow); }
.dot.coral { background: var(--coral); }

/* ---------- Assinatura (seção escura) ---------- */
.section-dark {
  background:
    radial-gradient(700px 400px at 90% 10%, rgba(88, 112, 229, .35), transparent 70%),
    radial-gradient(500px 400px at 0% 100%, rgba(28, 145, 116, .18), transparent 70%),
    var(--brand-950);
  color: #c9d1ee;
}
.section-dark h2, .section-dark h3 { color: #fff; }

.sign-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 96px; align-items: center; }
.sign-copy h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; }
.sign-copy > p { font-size: 17px; }

.sign-steps { display: grid; gap: 14px; margin: 32px 0 24px; }
.sign-steps li {
  display: flex; gap: 16px; align-items: flex-start; padding: 16px 18px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); border-radius: 14px;
}
.sign-steps i {
  font-size: 22px; color: var(--yellow); width: 42px; height: 42px; border-radius: 10px;
  background: rgba(255, 198, 69, .12); display: grid; place-items: center; flex-shrink: 0;
}
.sign-steps strong { display: block; color: #fff; font-size: 16px; }
.sign-steps span { font-size: 14px; color: #a9b3d6; }
.fine-print { font-size: 14px; color: #8f99c0; margin: 0; }

/* Prévia do anexo de assinaturas (página de PDF) */
.seal-preview { margin: 0 0 0 auto; width: 100%; max-width: 500px; }
.pdf-stack { position: relative; padding: 0 0 0 40px; }
.pdf-page {
  position: relative; background: #fff; color: var(--text); border-radius: 6px;
  aspect-ratio: 1 / 1.2; padding: 30px 30px 40px;
}
.pdf-back {
  position: absolute; top: -26px; left: 22px; width: calc(100% - 80px);
  transform: rotate(-4deg); opacity: .5; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6);
}
.pdf-lines { display: grid; gap: 12px; padding-top: 8px; }
.pdf-lines span { height: 8px; border-radius: 4px; background: #e6e9f2; }
.pdf-lines .w40 { width: 40%; } .pdf-lines .w60 { width: 60%; } .pdf-lines .w70 { width: 70%; }
.pdf-lines .w85 { width: 85%; } .pdf-lines .w90 { width: 90%; }
.pdf-seal {
  margin-left: auto; width: calc(100% - 24px);
  display: flex; flex-direction: column; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .65);
}
.pdf-num { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; font-size: 11px; color: #9aa1bd; }

.seal-head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 2px solid var(--brand-600); }
.seal-head img { width: 36px; height: 36px; border-radius: 8px; }
.seal-head b { display: block; color: var(--ink); font: 700 16px/1.2 var(--font-head); }
.seal-head small { color: var(--muted); font-size: 12px; }
.seal-badge {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  background: #d6f1e9; color: #11664f; font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 999px;
}
.seal-badge i { font-size: 15px; }

.seal-signers { margin: 6px 0 0; }
.seal-meta { margin: 16px 0 auto; display: grid; gap: 10px; }
.seal-meta div { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; }
.seal-meta dt { color: var(--muted); }
.seal-meta dd { margin: 0; color: var(--ink); font-weight: 500; text-align: right; }
.seal-meta code { font: 500 12px/1 ui-monospace, "Cascadia Code", Consolas, monospace; color: var(--brand-800); }
.seal-signers li { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.seal-avatar {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  background: var(--brand-100); color: var(--brand-700); font: 700 13px/1 var(--font-head);
}
.seal-signers b { display: block; color: var(--ink); font-size: 14px; }
.seal-signers small { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.seal-signers time { margin-left: auto; font-size: 12px; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }

.seal-foot { display: flex; gap: 16px; align-items: center; margin-top: 18px; padding: 14px; border-radius: 12px; background: var(--soft); border: 1px solid var(--line); }
.seal-qr { width: 92px; height: 92px; flex-shrink: 0; background: #fff; padding: 4px; border-radius: 6px; }
.seal-qr rect { fill: var(--ink); }
.seal-foot b { display: block; color: var(--ink); font-size: 14px; margin-bottom: 4px; }
.seal-foot p { font-size: 12px; color: var(--muted); margin: 0 0 6px; line-height: 1.45; }
.seal-foot code { font: 600 12px/1 ui-monospace, "Cascadia Code", Consolas, monospace; color: var(--brand-700); }

.seal-preview figcaption { margin-top: 18px; text-align: right; font-size: 12px; color: #8f99c0; }

/* ---------- Governança ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand-200); }
.feature h3 { font-size: 19px; }
.feature p { font-size: 15px; color: var(--muted); margin: 0; }
.feature-icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-size: 24px; margin-bottom: 18px; }
.feature-icon.blue { background: var(--brand-100); color: var(--brand-700); }
.feature-icon.green { background: #d6f1e9; color: var(--green); }
.feature-icon.yellow { background: #fff1cc; color: #a26a00; }
.feature-icon.coral { background: #fde1df; color: #c0413a; }

.ai-banner {
  display: flex; align-items: center; gap: 24px; margin-top: 40px; padding: 28px 32px; border-radius: 24px;
  background: linear-gradient(110deg, var(--brand-700), var(--brand-600) 55%, #7b90ef);
  color: #e6ebff; box-shadow: 0 24px 48px -24px rgba(64, 89, 216, .8);
}
.ai-icon { width: 60px; height: 60px; border-radius: 16px; background: rgba(255, 255, 255, .15); display: grid; place-items: center; font-size: 30px; color: #fff; flex-shrink: 0; }
.ai-copy { flex: 1; }
.ai-copy h3 { color: #fff; font-size: 21px; margin-bottom: 4px; }
.ai-copy p { margin: 0; font-size: 15px; }

/* ---------- Planos ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 36px 30px;
  transition: transform .3s, box-shadow .3s;
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.plan h3 { font-size: 26px; font-weight: 800; margin-bottom: 8px; }
.plan-desc { color: var(--muted); font-size: 15px; min-height: 48px; }
.plan-list { display: grid; gap: 14px; margin: 12px 0 32px; flex: 1; }
.plan-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink); }
.plan-list i { font-size: 20px; color: var(--brand-600); flex-shrink: 0; margin-top: 1px; }
.plan-list b { font-weight: 700; }
.plan-list li.off { color: #a3a9c2; }
.plan-list li.off i { color: #c4c9db; }

.plan-featured { border: 2px solid var(--brand-600); box-shadow: var(--shadow-lg); transform: translateY(-8px); }
.plan-featured:hover { transform: translateY(-12px); }
.plan-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--brand-600); color: #fff; font: 600 12px/1 var(--font-body);
  padding: 8px 14px; border-radius: 999px; white-space: nowrap;
}
.plans-note { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 32px 0 0; color: var(--muted); font-size: 14px; }
.plans-note i { font-size: 18px; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.faq-grid .section-head { position: sticky; top: calc(var(--header-h) + 32px); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
  font: 600 17px/1.4 var(--font-head); color: var(--ink); transition: color .2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--brand-600); border-bottom: 2px solid var(--brand-600);
  transform: rotate(45deg); transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq summary:hover { color: var(--brand-700); }
.faq details p { color: var(--muted); padding: 0 40px 22px 0; margin: 0; animation: panelIn .3s ease; }

/* ---------- Contato ---------- */
.cta-section {
  background:
    linear-gradient(100deg, rgba(24, 32, 68, .96) 0%, rgba(24, 32, 68, .9) 45%, rgba(45, 62, 144, .78) 100%),
    url("../assets/img/contato.webp") center 30% / cover no-repeat,
    var(--brand-950);
  color: #d4dbf5;
}
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.cta-copy h2 { color: #fff; font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; }
.cta-copy > p { font-size: 18px; }
.cta-points { display: grid; gap: 14px; margin-top: 28px; }
.cta-points li { display: flex; align-items: center; gap: 12px; color: #fff; font-weight: 500; }
.cta-points i { font-size: 22px; color: var(--yellow); }

.wa-card { background: #fff; border-radius: 24px; padding: 32px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .5); color: var(--ink); }
.wa-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 24px; }
.wa-icon { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: #e7f8ee; color: #1a9e55; font-size: 30px; }
.wa-head h3 { font-size: 21px; margin: 2px 0 6px; color: var(--ink); }
.wa-head p { margin: 0; color: var(--muted); font-size: 15px; }
.wa-topics { display: grid; gap: 10px; margin-bottom: 22px; }
.wa-topics a {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  border: 1px solid #dfe3ee; border-radius: 12px; color: var(--ink); font-weight: 500; text-decoration: none;
  transition: border-color .2s, background .2s, transform .2s;
}
.wa-topics a span { flex: 1; }
.wa-topics a i:first-child { font-size: 22px; color: var(--brand-600); }
.wa-topics a i:last-child { color: var(--muted); }
.wa-topics a:hover { border-color: #25d366; background: #f3fcf6; transform: translateX(2px); }
.wa-topics a:focus-visible { outline: 3px solid rgba(37, 211, 102, .45); outline-offset: 2px; }
.btn-whatsapp { background: #1fa855; color: #fff; border-color: #1fa855; }
.btn-whatsapp:hover { background: #178c46; border-color: #178c46; color: #fff; }
.btn-whatsapp i { font-size: 22px; }

/* ---------- Rodapé ---------- */
.site-footer { background: #0f1430; color: #9aa3c7; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.footer-brand p { margin-top: 16px; max-width: 320px; font-size: 15px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; letter-spacing: 0; }
.site-footer ul { display: grid; gap: 10px; }
.site-footer nav a { color: #9aa3c7; font-size: 15px; }
.site-footer nav a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 24px; font-size: 14px; flex-wrap: wrap; }
.to-top { color: #c6cdee; display: inline-flex; gap: 6px; align-items: center; }
.to-top:hover { color: #fff; }

/* ---------- Animações de entrada ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

/* =========================================================
   Responsivo
   ========================================================= */
@media (max-width: 1080px) {
  .main-nav { gap: 12px; }
  .main-nav ul a { padding: 8px 8px; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .flow::before { display: none; }
  .tab-panel { padding: 36px; gap: 36px; }
}

@media (max-width: 920px) {
  :root { --header-h: 64px; }

  .menu-toggle { display: block; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 16px;
    background: #fff; padding: 16px 20px 24px; border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px -20px rgba(20, 26, 51, .35);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: transform .25s, opacity .25s, visibility .25s;
  }
  .main-nav.open { transform: none; opacity: 1; visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav ul a { padding: 12px; font-size: 16px; }
  .nav-cta { min-height: 48px; }

  /* No celular o texto vem primeiro e a foto aparece abaixo, ampliada e centrada no notebook */
  .hero { display: flex; flex-direction: column; background: #fafaf9; }
  .hero::after { display: none; }
  .hero .hero-content { position: relative; order: -1; width: 100%; padding: 40px 20px 28px; background: #fafaf9; }
  .hero-content::after {  /* transição suave entre o texto e a foto */
    content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 48px;
    background: linear-gradient(#fafaf9, rgba(250, 250, 249, 0));
  }
  .hero-copy { max-width: 620px; }
  .hero-media { width: 200%; margin: -32% 0 -14% -68%; }
  .sign-grid, .cta-grid, .faq-grid { grid-template-columns: 1fr; }
  .doc-card { left: 12px; bottom: -20px; }

  .faq-grid { gap: 32px; }
  .faq-grid .section-head { position: static; }

  .tab-panel { grid-template-columns: 1fr; }
  .tab-panel .panel-visual { order: -1; }
  .mock-note { position: static; text-align: right; margin-top: 8px; }

  .feature-grid, .plans { grid-template-columns: 1fr 1fr; }
  .plan-featured { transform: none; }
  .plan-featured:hover { transform: translateY(-4px); }

  .section { padding: 80px 0; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 32px, var(--container)); }
  .lead { font-size: 17px; }
  .hero-actions .btn { width: 100%; }
  .doc-card { position: relative; left: auto; bottom: auto; width: auto; margin: -40px 12px 0; }

  .strip-list { justify-content: flex-start; gap: 14px 20px; }

  .flow, .feature-grid, .plans { grid-template-columns: 1fr; }

  .tab-list { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; width: 100%; scrollbar-width: none; }
  .tab-list::-webkit-scrollbar { display: none; }
  .tab { flex-shrink: 0; }
  .tab-panel { padding: 22px; border-radius: 18px; }
  .panel-copy h3 { font-size: 23px; }

  .mock-row { grid-template-columns: 1fr auto; }
  .mock-row b { grid-column: 1 / -1; font-size: 12px; margin-bottom: -8px; }
  .kb { grid-template-columns: 1fr 1fr; }
  .kb-col:last-child { display: none; }

  .wa-card { padding: 22px; }
  .pdf-stack { padding-left: 0; }
  .pdf-page { aspect-ratio: auto; padding: 22px 18px 38px; }
  .pdf-back { display: none; }
  .pdf-seal { width: 100%; }
  .seal-badge { display: none; }
  .seal-signers li { flex-wrap: wrap; }
  .seal-signers time { margin-left: 50px; }
  .seal-qr { width: 76px; height: 76px; }

  .ai-banner { flex-direction: column; align-items: flex-start; padding: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
