/* ===== Design tokens — identidade visual Central Jurídica (azul/ciano). ===== */
:root {
  --navy-950: #050d1c;   /* fundo base da página, ligeiramente mais escuro que o azul-profundo da marca */
  --navy-900: #0b1f3b;   /* Azul Profundo — cor institucional da marca */
  --navy-800: #142a4d;
  --navy-700: #1f3a63;
  --accent-500: #2563eb;   /* Azul Principal da marca */
  --accent-600: #1d4ed8;   /* variante mais escura, usada em gradientes/hover */
  --accent-300: #06b6d4;   /* Ciano da marca — destaque de texto sobre fundo escuro */
  --accent-solid: #3b82f6; /* Azul Claro da marca */
  --accent-100: #eef2ff;   /* Fundo Claro da marca */
  --accent-border: rgba(37, 99, 235, 0.45);
  --accent-border-soft: rgba(37, 99, 235, 0.18);
  --ink-900: #e7ecf7;   /* texto principal sobre fundo escuro */
  --ink-700: #94a3b8;   /* Cinza da marca — texto secundário */
  --ink-500: #64748b;
  --white: #ffffff;
  --ok-600: #4de898;
  --warn-600: #ffd77c;
  --danger-600: #ff7070;
  --blue-600: #70aaff;

  --font-display: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-erp: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* fonte real da ERP, usada dentro da demo */

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --shadow-soft: 0 10px 24px rgba(0, 0, 0, 0.28);
  --shadow-lift: 0 20px 60px rgba(0, 0, 0, 0.4);
  --container: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--navy-950);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
  color: var(--white);
}
p { margin: 0 0 1em; }
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
.container--wide { max-width: 1440px; }
section {
  padding: 88px 0;
  position: relative;
  background: linear-gradient(180deg, var(--navy-950), var(--navy-900));
  border-bottom: 1px solid rgba(37, 99, 235, 0.08);
}
.section--tight { padding: 56px 0; }
.section--petrol { background: linear-gradient(160deg, var(--navy-900), var(--navy-950)); }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-500);
  font-weight: 700;
  margin-bottom: 14px;
}
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); }
.section-head p { color: var(--ink-700); font-size: 17px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15.5px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--brand {
  background: linear-gradient(135deg, var(--accent-300), var(--accent-500));
  color: var(--navy-950);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.35);
}
.btn--brand:hover { box-shadow: 0 14px 36px rgba(37, 99, 235, 0.48); transform: translateY(-2px); }
.btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.16); }
.btn--dark {
  background: var(--navy-950);
  color: var(--white);
}
.btn--dark:hover { background: var(--navy-800); transform: translateY(-2px); }
.btn--sm { padding: 10px 18px; font-size: 13.5px; }
.btn--block { width: 100%; justify-content: center; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 14px 0;
  background: rgba(6, 13, 26, 0.55);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.25s ease;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-logo { height: 42px; width: auto; }
.site-header nav { display: flex; gap: 26px; align-items: center; }
.site-header nav a {
  color: rgba(247, 245, 240, 0.82);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
}
.site-header nav a:hover { color: var(--white); }
.nav-links { display: flex; gap: 26px; }
@media (max-width: 820px) {
  .nav-links { display: none; }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 160px 0 100px;
  background:
    radial-gradient(1200px 600px at 15% -10%, rgba(37, 99, 235, 0.16), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(18, 80, 79, 0.35), transparent 55%),
    linear-gradient(180deg, var(--navy-950), var(--navy-900) 70%, var(--navy-800));
  color: var(--ink-900);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 940px) {
  .hero__grid { grid-template-columns: 1fr; }
}
.hero h1 {
  font-size: clamp(32px, 5.4vw, 54px);
  color: var(--white);
  letter-spacing: -0.01em;
}
.hero h1 em { color: var(--accent-300); font-style: normal; }
.hero__q2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(20px, 2.8vw, 28px);
  color: var(--accent-300);
  line-height: 1.25;
  margin: 14px 0 22px;
}
.hero__q2 em { font-style: normal; color: var(--white); }
.hero .lede { font-size: 18.5px; color: rgba(247, 245, 240, 0.82); max-width: 520px; }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin: 30px 0 26px; }
.court-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 12.5px;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(247, 245, 240, 0.85);
  background: rgba(255, 255, 255, 0.04);
}
.chip--ok { border-color: rgba(63, 185, 138, 0.4); color: #8fe3bd; background: rgba(63, 185, 138, 0.08); }
.chip--soon { border-color: rgba(37, 99, 235, 0.4); color: var(--accent-300); background: rgba(37, 99, 235, 0.08); }

/* ===== Badges de tribunais (hero) ===== */
.court-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.court-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 88px;
  padding: 12px 14px;
  background: linear-gradient(160deg, var(--navy-800), var(--navy-900));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
}
.court-badge__mark { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--white); }
.court-badge__label { font-size: 10.5px; color: var(--ink-700); text-align: center; line-height: 1.3; }

/* ===== Assinatura da marca (hero) ===== */
.brand-taglines { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 24px; }
.brand-tagline { display: flex; align-items: center; gap: 10px; }
.brand-tagline__icon { font-size: 19px; line-height: 1; }
.brand-tagline strong { display: block; font-size: 13.5px; color: var(--white); font-weight: 700; }
.brand-tagline span { display: block; font-size: 11.5px; color: var(--ink-700); }

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-lift);
  padding: 0 18px 18px;
}
.hero-visual__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  margin: 0 -18px 14px;
  padding: 0 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), transparent);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.hero-visual__bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.15); }
.hero-visual__bar span:nth-child(1) { background: #ff6159; }
.hero-visual__bar span:nth-child(2) { background: #ffbd2e; }
.hero-visual__bar span:nth-child(3) { background: #28c93f; }
/* height:auto é obrigatório junto do width/height explícitos do <img> (que
   existem pra reservar espaço e evitar salto de layout no carregamento): sem
   ele o max-width:100% global encolhe a largura mas mantém a altura fixa,
   achatando o screenshot em telas estreitas. */
.hero-visual img { border-radius: var(--radius-md); height: auto; }
.hero-visual .tag-live {
  position: absolute;
  top: -14px; left: 24px;
  background: var(--accent-500);
  color: var(--navy-950);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
}

/* ===== Problem / agitation ===== */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 800px) { .problem-grid { grid-template-columns: 1fr; } }
.problem-card {
  background: linear-gradient(160deg, var(--navy-800), var(--navy-700));
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--accent-border-soft);
}
.problem-card .icn { font-size: 26px; margin-bottom: 12px; display: block; }
.problem-card h3 { font-size: 18px; color: var(--white); }
.problem-card p { color: var(--ink-700); font-size: 15px; margin: 0; }

/* ===== Steps ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  counter-reset: step;
}
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 8px; }
.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-300), var(--accent-500));
  color: var(--navy-950);
  font-weight: 800;
  font-family: var(--font-display);
  font-size: 18px;
  margin-bottom: 18px;
}
.step h3 { font-size: 19px; }
.step p { color: var(--ink-500); font-size: 15px; }

/* ===== Feature tour ===== */
.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 800px) { .feature-list { grid-template-columns: 1fr; } }
.feature-item {
  background: linear-gradient(160deg, var(--navy-800), var(--navy-700));
  border-radius: var(--radius-md); padding: 24px;
  box-shadow: var(--shadow-soft); border: 1px solid var(--accent-border-soft);
  display: flex; flex-direction: column; gap: 10px;
}
.feature-item .icn { font-size: 22px; }
.feature-item h3 { font-size: 17px; color: var(--white); }
.feature-item p { color: var(--ink-700); font-size: 14.5px; margin: 0; }
.feature-item .open-demo {
  align-self: flex-start; font-size: 13px; font-weight: 700; color: var(--accent-300);
  background: none; border: none; cursor: pointer; padding: 0; margin-top: 4px;
}
.feature-item .open-demo:hover { text-decoration: underline; }

/* ===== Courts ===== */
.courts-grid { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* ===== Social proof ===== */
.proof-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 34px; }
@media (max-width: 720px) { .proof-stats { grid-template-columns: 1fr; } }
.proof-stat { text-align: center; }
.proof-stat .n { font-family: var(--font-display); font-size: 36px; color: var(--accent-300); font-weight: 700; }
.proof-stat .l { font-size: 13.5px; color: rgba(247,245,240,0.7); }
.testimonial {
  max-width: 700px; margin: 0 auto; text-align: center;
  font-family: var(--font-display); font-size: 21px; font-style: italic; color: var(--white);
}
.testimonial .who { font-family: var(--font-body); font-style: normal; font-size: 14px; color: var(--accent-300); margin-top: 14px; font-weight: 600; }
.placeholder-tag {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; color: rgba(247,245,240,0.55); border: 1px dashed rgba(255,255,255,0.3);
  padding: 3px 10px; border-radius: 999px; margin-top: 14px;
}

/* ===== Pricing ===== */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; } }
.price-card {
  background: linear-gradient(160deg, var(--navy-800), var(--navy-700));
  border-radius: var(--radius-lg); padding: 32px 26px;
  box-shadow: var(--shadow-soft); border: 1px solid var(--accent-border-soft);
  display: flex; flex-direction: column;
}
.price-card.featured {
  border: 2px solid var(--accent-500);
  box-shadow: var(--shadow-lift);
  transform: translateY(-8px);
}
.price-card .plan-name { font-family: var(--font-display); font-size: 21px; margin-bottom: 4px; color: var(--white); }
.price-card .plan-value { font-size: 34px; font-weight: 800; color: var(--accent-300); margin: 10px 0 4px; }
.price-card .plan-value span { font-size: 14px; font-weight: 500; color: var(--ink-700); }
.price-card .plan-note { font-size: 12.5px; color: var(--ink-700); margin-bottom: 18px; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.price-card li { font-size: 14px; color: var(--ink-700); padding-left: 22px; position: relative; }
.price-card li::before { content: '✓'; position: absolute; left: 0; color: var(--ok-600); font-weight: 700; }
.price-placeholder-note { text-align: center; font-size: 12.5px; color: var(--ink-700); margin-top: 22px; }

/* ===== FAQ ===== */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: linear-gradient(160deg, var(--navy-800), var(--navy-700));
  border-radius: var(--radius-md); border: 1px solid var(--accent-border-soft); overflow: hidden;
}
.faq-item summary {
  padding: 18px 22px; cursor: pointer; font-weight: 600; font-size: 15.5px; color: var(--white);
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 20px; color: var(--accent-500); font-weight: 700; }
.faq-item[open] summary::after { content: '–'; }
.faq-item .faq-a { padding: 0 22px 20px; color: var(--ink-700); font-size: 14.5px; }

/* ===== Final CTA & footer ===== */
.final-cta { text-align: center; }
.final-cta h2 { font-size: clamp(28px, 4.4vw, 42px); }
.site-footer { background: var(--navy-950); color: rgba(247,245,240,0.6); padding: 50px 0 26px; font-size: 13.5px; border-top: 1px solid var(--accent-border-soft); }
.site-footer .foot-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin-bottom: 26px; }
.site-footer a { color: rgba(247,245,240,0.75); text-decoration: none; }
.site-footer a:hover { color: var(--accent-300); }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-legal { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 18px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ===== Floating WhatsApp ===== */
.wa-float {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 90;
  background: #25D366;
  color: var(--white);
  width: 58px; height: 58px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(0,0,0,0.28);
  text-decoration: none;
  transition: transform 0.2s ease;
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 30px; height: 30px; }

/* ===== Cookie / consent banner ===== */
.consent-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px;
  max-width: 620px; margin: 0 auto;
  background: var(--navy-800); border: 1px solid var(--accent-border); color: var(--ink-900);
  border-radius: var(--radius-md); padding: 18px 20px;
  box-shadow: var(--shadow-lift);
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
  z-index: 200;
  transform: translateY(140%);
  transition: transform 0.4s ease;
}
.consent-banner.show { transform: translateY(0); }
.consent-banner p { margin: 0; font-size: 13.5px; flex: 1 1 260px; color: rgba(247,245,240,0.85); }
.consent-banner .actions { display: flex; gap: 10px; }

/* ===== Lead form ===== */
.lead-form { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.lead-form input {
  flex: 1 1 180px; padding: 13px 16px; border-radius: 999px;
  border: 1px solid var(--accent-border); background: rgba(255,255,255,0.05); color: var(--white);
  font-size: 14.5px; font-family: var(--font-body);
}
.lead-form input::placeholder { color: var(--ink-700); }
.lead-form input:focus { outline: 2px solid var(--accent-500); }
.lead-status { font-size: 13px; margin-top: 8px; min-height: 18px; }
.lead-status.ok { color: var(--ok-600); }
.lead-status.err { color: var(--danger-600); }

/* ===== Reveal on scroll ===== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

@media (max-width: 720px) {
  section { padding: 60px 0; }
  .hero { padding: 130px 0 70px; }
}

/* ===== Seção Antecipação (autos × DJEN) — fusão ago/2026 ===== */
#antecipacao .antecipa__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
@media (max-width: 820px) {
  #antecipacao .antecipa__grid { grid-template-columns: 1fr; gap: 32px; }
}
.antecipa__p { color: var(--ink-700); max-width: 34em; margin-top: 12px; }
.antecipa__lista { list-style: none; margin-top: 20px; display: flex; flex-direction: column; gap: 12px; padding: 0; }
.antecipa__lista li { position: relative; padding-left: 26px; color: var(--ink-700); font-size: 15px; line-height: 1.6; }
.antecipa__lista li::before { content: '—'; position: absolute; left: 0; color: var(--accent-500); }
.antecipa__lista strong { color: var(--ink-900); }

.tl { list-style: none; position: relative; padding: 0 0 0 26px; margin: 0; }
.tl::before {
  content: ''; position: absolute; left: 7px; top: 6px; bottom: 14px; width: 1px;
  background: linear-gradient(180deg, var(--accent-500), rgba(37, 99, 235, 0.1));
}
.tl li { position: relative; padding-bottom: 22px; }
.tl li:last-child { padding-bottom: 0; }
.tl li::before {
  content: ''; position: absolute; left: -24px; top: 6px; width: 9px; height: 9px;
  border-radius: 50%; background: var(--accent-500);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}
.tl li.tl--ghost::before { background: var(--navy-700); box-shadow: 0 0 0 3px rgba(107, 122, 148, 0.15); }
.tl__quando { display: block; font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 12px; color: var(--ink-500); }
.tl__oque { font-size: 15.5px; color: var(--ink-900); }
.tl li.tl--ghost .tl__oque { color: var(--ink-500); }
.tl__chip {
  display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: 0.04em;
  padding: 2px 9px; border-radius: 999px; margin-left: 6px; vertical-align: 1px;
}
.tl__chip--cap { background: rgba(37, 99, 235, 0.14); color: var(--accent-300); border: 1px solid var(--accent-border); }
.tl__chip--ok { background: rgba(77, 232, 152, 0.1); color: var(--ok-600); border: 1px solid rgba(77, 232, 152, 0.3); }
.tl__chip--tarde { background: rgba(255, 112, 112, 0.08); color: var(--danger-600); border: 1px solid rgba(255, 112, 112, 0.25); }
.tl li.tl--pulse::before { animation: tl-pulse 2.4s ease-out infinite; }
@keyframes tl-pulse {
  0% { box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25); }
  55% { box-shadow: 0 0 0 10px rgba(37, 99, 235, 0); }
  100% { box-shadow: 0 0 0 3px rgba(37, 99, 235, 0); }
}
@media (prefers-reduced-motion: reduce) { .tl li.tl--pulse::before { animation: none; } }

/* ===== Tabela comparativa (Advbox / Astrea) — fusão ago/2026 ===== */
.cmp-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.cmp { width: 100%; border-collapse: collapse; min-width: 680px; }
.cmp th, .cmp td {
  padding: 12px 16px; text-align: center; font-size: 14.5px;
  border-bottom: 1px solid rgba(159, 176, 201, 0.12);
}
.cmp th { font-family: var(--font-display); font-weight: 500; font-size: 16px; color: var(--ink-700); }
.cmp th.cmp-nos { color: var(--accent-300); }
.cmp td:first-child, .cmp th:first-child { text-align: left; }
.cmp td:first-child { color: var(--ink-700); }
.cmp col.cmp-col-nos { background: rgba(37, 99, 235, 0.07); }
.cmp-sim { color: var(--accent-solid); font-weight: 700; }
.cmp-sim2 { color: var(--ink-900); font-weight: 600; }
.cmp-nao { color: var(--ink-500); }
.cmp-obs { font-size: 12px; color: var(--ink-500); font-weight: 400; margin-top: 2px; }
.cmp tr.cmp-grp td {
  background: var(--navy-800); color: var(--accent-300);
  font-family: var(--font-display); font-size: 15px; text-align: left;
  padding: 10px 16px; border-bottom: 1px solid var(--accent-border);
}
.cmp-foot { font-size: 12.5px; color: var(--ink-500); margin-top: 14px; max-width: 52em; }

/* ===== Demo ao vivo: gate de lead + iframe da ERP real — fusão ago/2026 ===== */
.demo-gate {
  max-width: 480px; margin: 0 auto; text-align: center;
  background: linear-gradient(160deg, var(--navy-800), var(--navy-700));
  border: 1px solid var(--accent-border-soft); border-radius: var(--radius-lg);
  padding: 32px 28px; box-shadow: var(--shadow-soft);
}
.demo-gate-form { display: flex; flex-direction: column; gap: 12px; }
.demo-gate-form input {
  padding: 13px 16px; border-radius: 10px; border: 1px solid var(--accent-border-soft);
  background: var(--navy-950); color: var(--white); font-size: 15px; font-family: var(--font-body);
}
.demo-gate-form input::placeholder { color: var(--ink-500); }
.demo-gate-nota { font-size: 12.5px; color: var(--ink-500); margin: 14px 0 0; }
.demo-gate-status { font-size: 13px; color: var(--ink-700); margin-top: 10px; min-height: 1.2em; }
.demo-gate-status--erro { color: var(--danger-600); }

/* Bem mais largo que .container (1120px) — a ERP é tabela densa, ganha
   com espaço horizontal. 96vw com teto generoso, nunca cola na borda. */
.container--frame { max-width: 1920px; margin: 0 auto; padding: 0 20px; }

.demo-frame-wrap {
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--accent-border); box-shadow: var(--shadow-lift);
  /* .site-header é fixed (~72px) — sem isto, o scrollIntoView do gate
     encosta a barra "Recarregar/Tela cheia" embaixo do cabeçalho, escondida. */
  scroll-margin-top: 92px;
}
.demo-frame-wrap:fullscreen { border-radius: 0; }
.demo-frame-wrap:fullscreen .demo-frame { height: 100vh; }
.demo-frame-topo {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px; background: var(--navy-800);
  border-bottom: 1px solid var(--accent-border-soft);
  font-size: 12.5px; color: var(--ink-700);
}
.demo-frame-acoes { display: flex; gap: 8px; flex: none; }
.demo-frame {
  display: block; width: 100%; height: 85vh; min-height: 560px;
  border: none; background: var(--navy-950);
}
@media (max-width: 700px) {
  .demo-gate { padding: 24px 18px; }
  .container--frame { padding: 0 10px; }
  .demo-frame { height: 72vh; }
  .demo-frame-topo { flex-wrap: wrap; }
}

/* ===== Demo mobile: mesma ERP, dentro de uma moldura de smartphone ===== */
.demo-mobile-wrap { margin-top: 40px; }
.demo-mobile-head {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 10px 16px; margin-bottom: 16px;
  font-size: 12.5px; color: var(--ink-700); text-align: center;
}
.phone-frame {
  position: relative; width: 400px; max-width: 100%; margin: 0 auto;
  background: var(--navy-950); border-radius: 40px; padding: 12px;
  box-shadow: var(--shadow-lift); border: 1px solid var(--accent-border);
}
.phone-notch {
  position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  width: 120px; height: 22px; border-radius: 999px; background: var(--navy-800);
  z-index: 1;
}
.phone-screen {
  display: block; width: 100%; height: 760px;
  border: none; border-radius: 28px; background: var(--navy-950);
}
@media (max-width: 460px) {
  .phone-frame { border-radius: 24px; padding: 8px; }
  .phone-notch { top: 14px; width: 90px; height: 16px; }
  .phone-screen { height: 640px; border-radius: 18px; }
  .demo-mobile-head { flex-direction: column; gap: 8px; }
}

/* ===== Carrossel de funções — mesma largura da demo (.container--frame),
   scroll-snap nativo, sem lib externa. Um slide inteiro por vez (sem "espiar"
   o vizinho — com prints de proporções bem diferentes, como o certificado em
   pé do assinador, o espiar cortava texto e ficava com cara de bug). Imagem
   sempre numa caixa de altura fixa com object-fit:contain, pra retrato e
   paisagem conviverem sem distorcer nem estourar a altura do card. ===== */
.carousel { position: relative; padding: 0 56px; }
.carousel__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 4px 0 22px;
  scrollbar-width: none;
  outline: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track:focus-visible { box-shadow: inset 0 0 0 2px var(--accent-border); border-radius: var(--radius-md); }
.carousel__slide {
  scroll-snap-align: start;
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 32px;
  align-items: center;
  background: var(--navy-900);
  border: 1px solid var(--accent-border-soft);
  border-radius: var(--radius-lg);
  padding: 28px 36px;
  min-height: 560px;
}
.carousel__media {
  position: relative;
  height: 560px;
  background: var(--navy-950);
  border-radius: var(--radius-md);
  border: 1px solid var(--accent-border-soft);
  overflow: hidden;
}
.carousel__media img {
  /* position:absolute + inset:0, não flex — um <img> como flex item com
     align-items:center não respeitava height:100% (virava altura pelo
     aspect-ratio intrínseco, sobrando 824px dentro de uma caixa de 440px e
     cortando o certificado do assinador pela metade). Absoluto preenchendo
     o pai garante a caixa inteira pro object-fit:contain trabalhar. */
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
  box-shadow: var(--shadow-soft);
}
/* Relatório: conteúdo real, denso — encolher pra caber na caixa deixava o
   texto ilegível. Rola de verdade em vez de forçar o "contain" a espremer
   tudo, com afordance visual de que dá pra descer. */
.carousel__media--scroll { overflow-y: auto; }
.carousel__media--scroll img {
  position: static;
  width: 100%;
  height: auto;
  object-fit: initial;
  display: block;
}
.carousel__media--scroll::after {
  content: '↓ role pra ver o relatório inteiro';
  position: sticky;
  bottom: 0;
  left: 0;
  display: block;
  text-align: center;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--accent-300);
  background: linear-gradient(180deg, transparent, var(--navy-950) 55%);
  padding: 22px 0 8px;
}
.carousel__copy { max-width: 460px; }
.carousel__copy h3 { font-size: 24px; margin: 12px 0 14px; }
.carousel__copy p { color: var(--ink-700); font-size: 15.5px; margin: 0; }
.carousel__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--accent-border); background: var(--navy-800); color: var(--accent-300);
  font-size: 24px; line-height: 1; cursor: pointer; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .15s, background .15s;
}
.carousel__arrow:hover { background: var(--navy-700); }
.carousel__arrow:disabled { opacity: 0.28; cursor: default; }
.carousel__arrow--prev { left: 0; }
.carousel__arrow--next { right: 0; }
.carousel__dots { display: flex; gap: 8px; justify-content: center; margin-top: 6px; }
.carousel__dot {
  width: 9px; height: 9px; border-radius: 50%; border: none;
  background: var(--navy-700); cursor: pointer; padding: 0;
  transition: background .15s, width .15s;
}
.carousel__dot.is-active { background: var(--accent-500); width: 22px; border-radius: 5px; }
@media (max-width: 900px) {
  .carousel { padding: 0 8px; }
  .carousel__arrow { display: none; }
  .carousel__slide { grid-template-columns: 1fr; min-height: 0; padding: 20px; gap: 18px; }
  .carousel__media { height: 300px; }
  .carousel__copy { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .carousel__track { scroll-behavior: auto; }
  .carousel__dot { transition: none; }
}
