/* ==========================================================================
   01. VARIÁVEIS GLOBAIS E RESETS
   ========================================================================== */
:root {
  --bg: #ffffff;
  --surface: #f5f7fa;
  --surface-2: #eef2f5;
  --surface-dark: #07121f;
  --surface-dark-2: #091a28;
  --surface-dark-3: #0a2337;
  --text: #0f1720;
  --muted: #617180;
  --muted-dark: #a7b7c5;
  --line: #dfe5eb;
  --line-dark: rgba(255, 255, 255, .12);
  --blue: #2dc7ff;
  --blue-2: #178cff;
  --blue-soft: #dff6ff;
  --shadow: 0 18px 60px rgba(15, 23, 32, .12);
  --shadow-strong: 0 24px 80px rgba(0, 0, 0, .45);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body { 
  margin: 0; 
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; 
  color: var(--text); 
  background: var(--bg); 
  line-height: 1.45; 
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
svg { display: block; }
button { font: inherit; }


/* ==========================================================================
   02. COMPONENTES E ESTRUTURA BASE (LAYOUT)
   ========================================================================== */
.container { width: min(100% - 24px, 1180px); margin-inline: auto; }
.section-dark { background: var(--surface-dark); color: #fff; }
h2 {
  color: #194f70;
}

.section-dark h2, 
.portal-page h2, 
.case-hero h2, 
.case-architecture h2,
.cta-band h2 {
  color: #ffffff; 
}

/* Tipografia e Links Comuns */
.eyebrow { font-size: 12px; line-height: 1.2; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: var(--blue); margin-bottom: 14px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: #8fdcff; font-weight: 600; transition: color .2s ease; }
.text-link:hover { color: #d8f4ff; }
.dark-link { color: #178cff; }
.dark-link:hover { color: #0c69ce; }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 20px; border-radius: 12px; border: 1px solid transparent; font-weight: 700; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--blue-2), var(--blue)); color: #fff; box-shadow: 0 14px 28px rgba(23, 140, 255, .24); }
.btn-primary:hover { box-shadow: 0 16px 36px rgba(23, 140, 255, .34); }
.btn-ghost { border-color: rgba(45, 199, 255, .6); color: #fff; background: rgba(10, 33, 51, .35); }
.btn-ghost:hover { background: rgba(10, 33, 51, .6); }

/* Títulos Globais de Seção */
.section-heading { max-width: 760px; }
.section-heading.center { text-align: center; margin-inline: auto; }
.section-heading h2, .case-head h2, .cta-band h2 { margin: 0; font-size: clamp(30px, 9vw, 40px); line-height: 1.06; letter-spacing: -.045em; }
.section-heading p { color: var(--muted); font-size: 16px; margin: 16px 0 0; }
.section-dark .section-heading p { color: var(--muted-dark); }

/* Efeitos de Revelação/Animação */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: .08s; }
.delay-2 { transition-delay: .16s; }
.delay-3 { transition-delay: .24s; }
.delay-4 { transition-delay: .32s; }


/* ==========================================================================
   03. CABEÇALHO E MENU (HEADER)
   ========================================================================== */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; border-bottom: 1px solid transparent; transition: background .24s ease, box-shadow .24s ease, border-color .24s ease; }
.site-header.scrolled { background: rgba(7, 18, 31, .88); backdrop-filter: blur(16px); border-bottom-color: rgba(255, 255, 255, .07); box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }
.nav-wrap { height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: inline-flex; align-items: center; }
.brand img { width: auto; height: 28px; }

/* Navegação Desktop */
.desktop-nav { display: none; align-items: center; gap: 34px; }
.desktop-nav a { color: #f3f7fb; font-size: 15px; font-weight: 500; opacity: .94; transition: opacity .2s ease, color .2s ease; }
.desktop-nav a:hover { opacity: 1; color: #fff; }

.menu-toggle { display: grid; width: 32px; height: 32px; padding: 0; place-items: center; border: 2px solid rgba(233, 233, 233, .9); border-radius: 10px; background: rgba(10, 33, 59, .3); cursor: pointer; }
.menu-toggle svg { width: 20px; height: 20px; fill: #fff; }
.mobile-menu { display: none; }
.mobile-menu.open { display: grid; gap: 16px; padding: 18px 24px 24px; background: #07121f; border-top: 1px solid rgba(255, 255, 255, .08); }
.mobile-menu a { color: #fff; font-weight: 500; }

/* ==========================================================================
   04. SEÇÕES DA LANDING PAGE
   ========================================================================== */
.hero { 
  position: relative; 
  overflow: hidden; 
  padding: 114px 0 70px; 
  background: 
    linear-gradient(90deg, #05111d 30%, rgba(5, 17, 29, 0.6) 50%, transparent 70%),
    url('../assets/images/hero_section.webp') center right / cover no-repeat;
}

/* Desativado o overlay antigo para dar brilho total à nova imagem */
.hero::before { display: none; }

.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr; align-items: center; gap: 36px; }
.hero-copy { position: relative; z-index: 2; max-width: 700px; }
.hero h1 { margin: 0; font-size: 46px; line-height: .98; letter-spacing: -.05em; max-width: 700px; }
.hero h1 span { color: var(--blue); }
.hero p { margin: 22px 0 0; color: #d0dbe4; font-size: 16px; max-width: 580px; }
.hero-actions { display: flex; flex-direction: column; flex-wrap: wrap; align-items: flex-start; gap: 20px; margin-top: 30px; }

/* Award Card (Dentro do Hero) */
.award-card { display: flex; align-items: center; gap: 14px; max-width: 560px; margin-top: 36px; padding: 16px; border-radius: 18px; border: 1px solid rgba(45, 199, 255, .35); background: rgba(6, 22, 35, .46); box-shadow: 0 16px 36px rgba(0, 0, 0, .16); }
.award-icon { width: 44px; height: auto; flex-shrink: 0; object-fit: contain; }
.award-text { display: flex; flex-direction: column; gap: 2px; }
.award-text strong, .award-text span { display: block; }
.award-text strong { margin-bottom: 3px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: #79d9ff; }
.award-text span { font-size: 18px; font-weight: 700; color: #fff; line-height: 1.2; }

/* Elementos Visuais do Hero */
.hero-visual { position: relative; min-height: 360px; display: flex; align-items: center; justify-content: center; }
.scene-backdrop { display: none; } /* Desativada pois a imagem agora cobre a section inteira */
.scene-glow { position: absolute; inset: auto -5% 8% auto; width: 72%; height: 72%; background: radial-gradient(circle at center, rgba(23, 140, 255, .22), transparent 72%); filter: blur(24px); }

/* Centralização do Device Card Atualizada com Flexbox */
.device-card { 
  position: relative; 
  z-index: 2; 
  width: 78%;
  max-width: 320px; 
  filter: drop-shadow(0 32px 60px rgba(0, 0, 0, .55)); 
  transform: none; 
  display: flex; 
  justify-content: center; 
}
.device-card img { width: 100%; max-width: 100%; max-height: 590px; object-fit: contain; }

/* Signal Badges (Hero) */
.signal-card { display: none; position: absolute; z-index: 3; padding: 10px 14px; border: 1px solid rgba(77, 207, 255, .44); background: rgba(8, 28, 43, .72); color: #dff7ff; border-radius: 12px; font-size: 13px; font-weight: 600; backdrop-filter: blur(12px); box-shadow: 0 18px 30px rgba(0, 0, 0, .14); }
.signal-1 { top: 12%; left: 0; }
.signal-2 { top: 29%; right: 4%; }
.signal-3 { bottom: 24%; left: 4%; }
.signal-4 { bottom: 10%; right: 14%; }

/* Seção de Estatísticas (Stats Strip) */
.stats-strip { position: relative; z-index: 3; margin-top: -30px; margin-bottom: -12px; }
.stats-grid { display: grid; grid-template-columns: 1fr; background: #fff; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); }
.stat { display: grid; grid-template-columns: auto 1fr; column-gap: 18px; row-gap: 4px; align-items: center; padding: 22px 18px; }
.stat + .stat { border-left: none; border-top: 1px solid var(--line); }
.stat-icon { grid-row: 1/3; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: #eef8ff; color: var(--blue-2); }
.stat-icon svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.stat strong { display: block; font-size: 34px; line-height: 1; letter-spacing: -.055em; color: #101720; }
.stat span { display: block; color: #44515c; font-size: 15px; max-width: none; }

/* Seção Produtos */
.products { padding: 50px 0; background: #fff; }
.products-heading { text-align: center; margin-bottom: 30px; }
.products-heading h2 {
  margin: 0;
  color: #194f70;
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  letter-spacing: -.03em;
}
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.product-card {
  padding: 32px 24px;
  border-radius: 24px;
  background: #0a213b;
  color: #fff;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .08);
}
.product-card--vaiben { padding: 36px 24px; }
.product-logo { width: auto; display: block; }
.product-logo--billingpay,
.product-logo--anda { height: 38px; margin-bottom: 24px; }
.product-logo--vaiben { height: 28px; margin-bottom: 26px; }
.product-card h3 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.02em;
}
.product-card p {
  margin: 0;
  color: #eef2f5;
  font-size: 15px;
  line-height: 1.6;
  opacity: .95;
}

/* Seção Plataforma / Layers */
.platform { padding: 74px 0; background: radial-gradient(circle at 15% 10%, rgba(23, 140, 255, .13), transparent 24%), linear-gradient(180deg, #07121f 0%, #081725 100%); }
.layers { position: relative; display: grid; grid-template-columns: 1fr; gap: 26px; margin-top: 44px; }
.layers::before { content: ""; display: none; position: absolute; left: 11%; right: 11%; top: 40px; height: 2px; background: linear-gradient(90deg, transparent 0%, rgba(45, 199, 255, .22) 12%, rgba(45, 199, 255, .55) 50%, rgba(45, 199, 255, .22) 88%, transparent 100%); }
.layer { position: relative; text-align: left; display: grid; grid-template-columns: 64px 1fr; column-gap: 14px; row-gap: 4px; align-items: start; }
.icon-circle { position: relative; z-index: 1; grid-row: 1 / span 2; width: 58px; height: 58px; margin: 0; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(45, 199, 255, .65); background: radial-gradient(circle at 50% 50%, rgba(12, 34, 51, .95), rgba(7, 18, 31, 1)); color: var(--blue); box-shadow: 0 0 0 8px rgba(22, 139, 255, .03), 0 0 38px rgba(16, 126, 224, .14); }
.icon-circle svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.layer h3 { margin: 4px 0 10px; font-size: 22px; line-height: 1.05; letter-spacing: -.03em; }
.layer p { margin: 0; color: var(--muted-dark); font-size: 14px; max-width: none; margin-inline: 0; }

/* Seção Soluções (Cards Brancos) */
.solutions { padding: 60px 0; background: #fff; }
.solution-grid { display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: 44px; }
.solution-card { padding: 28px; border-radius: 18px; border: 1px solid var(--line); background: #fff; box-shadow: 0 10px 24px rgba(14, 35, 53, .03); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.solution-card:hover { transform: translateY(-4px); box-shadow: 0 20px 48px rgba(15, 23, 32, .08); border-color: #cfe8f3; }
.solution-card h3 { margin: 18px 0 10px; font-size: 24px; letter-spacing: -.03em; }
.solution-card p { margin: 0; color: #556370; font-size: 16px; min-height: 0; }
.solution-card a { display: inline-flex; align-items: center; margin-top: 16px; color: var(--blue-2); font-weight: 700; }
.solution-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; border: 1px solid var(--line); }
.solution-icon svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.solution-icon.mobility, .solution-icon.benefits, .solution-icon.payments, .solution-icon.urban { background: #edf6ff; color: #0081af; }

/* Seção Cases (Geral) */
.cases { padding: 74px 0; background: radial-gradient(circle at 20% 0%, rgba(24, 140, 255, .12), transparent 24%), linear-gradient(180deg, #08121d 0%, #091621 100%); }
.case-head { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 20px; }
.case-grid { display: flex; overflow-x: auto; gap: 14px; margin-top: 34px; padding-bottom: 8px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.case-card { position: relative; min-width: 84%; min-height: 368px; scroll-snap-align: start; border-radius: 18px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .11); background: #10202c; box-shadow: 0 12px 34px rgba(0, 0, 0, .12); }
.case-card img, .case-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease, filter .45s ease; }
.case-placeholder { background: linear-gradient(140deg, #0b2340, #155e91); }

/* Gradientes customizados de fundos dos cases */
.partiu-bg { background: linear-gradient(140deg, #06263f 0%, #0f4770 40%, #53a742 100%); }
.benefit-bg { background: linear-gradient(140deg, #2d4058 0%, #4e7ea1 30%, #efd7a7 100%); }
.rotativo-bg { background: linear-gradient(140deg, #0d243f 0%, #1b4668 38%, #687d8e 100%); }

/* Overlays e Hover do Card de Case */
.case-overlay { position: absolute; inset: auto 0 0; padding: 22px 22px 20px; background: linear-gradient(180deg, transparent 0%, rgba(5, 14, 23, .28) 20%, rgba(5, 14, 23, .94) 74%); transform: none; transition: transform .35s ease; }
.case-kicker { display: inline-block; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: #6bd5ff; font-weight: 700; }
.case-overlay h3 { margin: 8px 0 10px; font-size: 32px; line-height: 1; letter-spacing: -.04em; color: #fff; }
.case-overlay p { margin: 0; min-height: 82px; color: #c5d2dc; font-size: 15px; opacity: 1; transition: opacity .26s ease; }
.case-cta { display: inline-flex; margin-top: 16px; color: #8edfff; font-weight: 700; opacity: 1; transition: opacity .26s ease; }
.case-plus { display: none; position: absolute; right: 20px; bottom: 18px; width: 38px; height: 38px; border-radius: 50%; place-items: center; border: 1px solid rgba(255, 255, 255, .35); color: #fff; font-size: 24px; line-height: 1; background: rgba(255, 255, 255, .04); }

.case-card:hover img, .case-card:hover .case-placeholder { transform: scale(1.05); filter: brightness(.72); }
.case-card:hover .case-overlay { transform: translateY(0); }
.case-card:hover .case-overlay p, .case-card:hover .case-cta { opacity: 1; }

/* Seção Sobre (About) */
.about { display: block; width: auto; max-width: 100%; padding: 30px 20px 20px; background: #ffffff; }
.about-grid { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: start; padding-top: 30px; padding-bottom: 20px; }
.about-copy p { margin: 0 0 24px; font-size: 16px; line-height: 1.6; color: #42515d; }

/* Seção Parceiros (Trust/Partners) */
.trust-section {
  height: auto;
  display: flex;
  align-items: center; 
  padding: 74px 0;
  overflow: hidden;
  background: radial-gradient(circle at 12% 50%, rgba(41, 210, 255, .14), transparent 18%), radial-gradient(circle at 96% 50%, rgba(41, 210, 255, .14), transparent 18%), linear-gradient(135deg, #07121f 0%, #0a2340 55%, #07121f 100%); 
}

.section-heading .trust-title { margin: 0; color: #fff; font-size: 32px; }

.partners-grid { display: grid; grid-template-columns: 1fr; gap: 44px; align-items: center; }
.partner-panels { display: grid; grid-template-columns: 1fr; gap: 18px; }
.partner-panel { padding: 30px; border: 1px solid var(--line); background: #fff; border-radius: 18px; box-shadow: 0 8px 24px rgba(15, 23, 32, .04); }
.partner-panel span { display: block; font-size: 14px; color: #6b7a88; margin-bottom: 20px; }
.partner-list { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.partner-list strong { display: block; font-size: 24px; line-height: 1; letter-spacing: -.04em; color: #18212a; }
.partner-list.logos-text strong { color: #0d7cdf; }

/* Container do Slider */
.logo-slider {
  overflow: hidden;
  position: relative;
  width: 100%;
  margin-top: 30px;
  padding: 0px 0;
  background: transparent;
  border-radius: 14px;
}

.logo-slider::before, .logo-slider::after {
  content: "";
  height: 100%;
  position: absolute;
  width: 120px;
  z-index: 2;
  pointer-events: none;
  display: none;
}
.logo-slider::before { left: 0; background: linear-gradient(to right, #e2e2e2 0%, transparent 100%); }
.logo-slider::after { right: 0; background: linear-gradient(to left, #e2e2e2 0%, transparent 100%); }

.logo-track {
  display: flex;
  width: calc(280px * 12);
  height: auto;
  animation: scrollLinear 30s linear infinite;
}

.logo-track:hover {
  animation-play-state: paused;
}

.slide {
  width: 280px;            
  height: 90px;           
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 5px;          
}

.slide img {
  height: 75px;
  width: auto;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity .2s ease;
}

.slide img:hover { 
  opacity: 1; 
}

.logo-track:has(.slide:hover) {
  animation-play-state: paused;
}

@keyframes scrollLinear {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-280px * 6)); } 
}

/* Faixa de Chamada (CTA Band) */
.cta-band { padding: 46px 0; background: #fff; }
.cta-band .cta-title { color: #194f70; }
.cta-inner { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 28px; }
.cta-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; max-width: 760px; }
.cta-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: rgba(10, 33, 51, .5); border: 1px solid rgba(45, 199, 255, .24); box-shadow: 0 0 34px rgba(45, 199, 255, .1); }
.cta-icon img { width: 34px; height: 34px; }


/* ==========================================================================
   05. RODAPÉ (FOOTER)
   ========================================================================== */
.site-footer { padding: 58px 0; background: linear-gradient(135deg, #07121f 0%, #101920 100%); color: #d5e0e8; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: start; }
.footer-brand img { height: 28px; }
.footer-grid h4 { margin: 0 0 14px; color: #fff; font-size: 15px; }
.footer-grid p { margin: 0; color: #9fb0bd; font-size: 14px; line-height: 1.6; max-width: 280px; }
.footer-grid a:not(.brand):not(.btn):not(.footer-pill) { display: block; color: #9fb0bd; font-size: 14px; margin: 8px 0; transition: color .2s ease; }
.footer-grid a:not(.brand):not(.btn):not(.footer-pill):hover { color: #fff; }

/* Ícones Sociais e Pílulas de Links */
.footer-socials { display: flex; gap: 10px; margin-top: 20px; }
.footer-socials a { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .16); color: #fff; font-size: 13px; font-weight: 700; }
.footer-pills { display: flex; flex-direction: column; gap: 10px; }
.footer-pill { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 14px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .04); color: #fff; font-size: 14px; font-weight: 600; }
.footer-pill:hover { background: rgba(255, 255, 255, .08); }
.footer-access { margin-top: 14px; max-width: max-content; }


/* ==========================================================================
   06. TELA DE LOGIN / PORTAL
   ========================================================================== */
.portal-page { min-height: 100vh; background: radial-gradient(circle at 30% 20%, #0f527d 0%, #07121f 52%, #040b12 100%); color: #fff; }
.portal-shell { min-height: 100vh; display: grid; place-items: center; padding: 32px; }
.portal-card { width: min(480px, 100%); padding: 28px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(6, 20, 32, .78); border-radius: 24px; backdrop-filter: blur(18px); box-shadow: var(--shadow-strong); }
.portal-page .portal-brand img { height: 38px; margin-bottom: 40px; }
.portal-card h1 { margin: 0 0 12px; font-size: 36px; line-height: 1; letter-spacing: -.05em; }
.portal-card p { margin: 0; color: #aab9c7; }

/* Formulário do Portal */
.portal-card form { display: grid; gap: 16px; margin: 28px 0; }
.portal-card label { display: grid; gap: 8px; font-size: 13px; color: #d9e5ee; }
.portal-card input { width: 100%; height: 50px; padding: 0 14px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .15); background: #0b1a28; color: #fff; outline: none; }
.portal-card input:focus { border-color: var(--blue); }
.portal-actions { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.portal-actions a { color: #9edfff; font-size: 14px; }
.portal-legal { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }


/* ==========================================================================
   07. INTERFACES DE CASES INTERNOS (CASE PAGES)
   ========================================================================== */
.case-page { background: #fff; color: var(--text); }
.case-page .site-header { background: rgba(7, 18, 31, .78); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255, 255, 255, .07); }

/* Hero do Case */
.case-hero { position: relative; overflow: hidden; padding: 118px 0 68px; background: radial-gradient(circle at 82% 20%, color-mix(in srgb, var(--case-accent) 25%, transparent), transparent 24%), radial-gradient(circle at 64% 72%, color-mix(in srgb, var(--case-accent-2) 18%, transparent), transparent 28%), linear-gradient(135deg, #05101c 0%, #071827 58%, #09121d 100%); color: #fff; }
.case-hero::after { content: ""; position: absolute; inset: auto -8% -28% auto; width: 56%; aspect-ratio: 1; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--case-accent) 26%, transparent); box-shadow: 0 0 0 80px color-mix(in srgb, var(--case-accent) 4%, transparent), 0 0 0 160px color-mix(in srgb, var(--case-accent) 3%, transparent)}
.case-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center; }

/* Elementos de Texto do Case */
.case-breadcrumb { display: flex; gap: 10px; align-items: center; color: #9eb0bf; font-size: 13px; margin-bottom: 26px; }
.case-breadcrumb a { color: #d8e5ee; }
.case-breadcrumb i { opacity: .5; font-style: normal; }
.case-label { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; color: var(--case-accent); margin-bottom: 16px; }
.case-label::before { content: ""; width: 24px; height: 2px; background: currentColor; border-radius: 99px; }
.case-hero h1 { font-size: 60px; line-height: .9; letter-spacing: -.065em; margin: 0 0 24px; }
.case-hero .case-lead { font-size: 18px; line-height: 1.45; color: #d8e4ec; max-width: 680px; margin: 0; }
.case-hero .case-lead strong { color: #fff; }

/* Visual e Mídias dos Cases */
.case-visual { position: relative; min-height: 340px; border-radius: 28px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 28px 80px rgba(0, 0, 0, .36); background: linear-gradient(145deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02)); }
.case-visual.photo { background: #07121f; }
.case-visual.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.9) saturate(1.); }
.case-visual.photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(220deg, rgba(5, 15, 25, .8), rgba(5, 15, 25, .02)); }
.case-visual-badge { position: absolute; z-index: 2; left: 28px; bottom: 28px; max-width: 76%; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(5, 17, 28, .72); backdrop-filter: blur(14px); color: #fff; }
.case-visual-badge strong { display: block; font-size: 16px; }
.case-visual-badge span { display: block; margin-top: 4px; color: #b8c8d4; font-size: 13px; }

/* Linhas e Gráficos Abstratos de Fundo */
.case-abstract { position: absolute; inset: 0; overflow: hidden; }
.case-abstract .gridlines { position: absolute; inset: 0; background-size: 42px 42px; background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px); mask-image: linear-gradient(to bottom right, black, transparent 80%); }
.case-abstract .orb-one, .case-abstract .orb-two { position: absolute; border-radius: 50%; filter: blur(2px); }
.case-abstract .orb-one { width: 320px; height: 320px; right: -70px; top: -40px; background: radial-gradient(circle, var(--case-accent) 0%, transparent 68%); opacity: .22; }
.case-abstract .orb-two { width: 260px; height: 260px; left: -70px; bottom: -60px; background: radial-gradient(circle, var(--case-accent-2) 0%, transparent 68%); opacity: .2; }

/* Dispositivos Customizados nos Cases */
.case-device { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-5deg); width: 48%; height: 70%; border-radius: 28px; background: linear-gradient(145deg, #152432, #060b11); border: 1px solid rgba(255, 255, 255, .15); box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.case-device::before { content: ""; position: absolute; inset: 16px; border-radius: 20px; background: linear-gradient(160deg, color-mix(in srgb, var(--case-accent) 18%, #07121f), #09131e 58%, color-mix(in srgb, var(--case-accent-2) 16%, #07121f)); border: 1px solid rgba(255, 255, 255, .06); }
.case-device::after { content: ""; position: absolute; width: 18%; height: 6px; border-radius: 99px; left: 41%; top: 10px; background: rgba(255, 255, 255, .22); }

/* Tags/Chips Flutuantes no Mockup */
.case-chip { position: absolute; z-index: 2; display: grid; place-items: center; padding: 8px 10px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--case-accent) 44%, transparent); background: rgba(7, 20, 33, .75); color: #fff; font-size: 10px; font-weight: 700; backdrop-filter: blur(8px); }
.case-chip.a { left: 8%; top: 20%; }
.case-chip.b { right: 7%; top: 34%; }
.case-chip.c { left: 10%; bottom: 17%; }
.case-chip.d { right: 8%; bottom: 12%; }

/* Logomarca de Destaque no Mockup */
.case-mark { position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: clamp(38px, 5vw, 72px); font-weight: 800; letter-spacing: -.06em; color: #fff; text-align: center; line-height: .95; text-shadow: 0 12px 30px rgba(0, 0, 0, .28); }
.case-mark small { display: block; margin-top: 10px; font-size: 12px; letter-spacing: .13em; text-transform: uppercase; color: var(--case-accent); }

/* Seções de Métricas dos Cases */
.case-metrics { position: relative; z-index: 3; margin-top: -10px; }
.case-metrics-grid { display: grid; grid-template-columns: 1fr; border-radius: 24px; overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.case-metric { padding: 22px; }
.case-metric + .case-metric { border-left: 0; border-top: 1px solid var(--line); }
.case-metric strong { display: block; font-size: 34px; line-height: 1; letter-spacing: -.055em; color: #111922; }
.case-metric span { display: block; margin-top: 8px; color: #60707d; font-size: 14px; }

/* Corpo da História / Conteúdo do Case */
.case-story { padding: 74px 0; }
.case-story.alt { background: var(--surface); }
.case-story-grid { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: start; }
.case-story-grid.reverse { grid-template-columns: 1fr; }
.case-story-grid.reverse .case-story-heading { order: initial; }
.case-story-grid.reverse .case-story-body { order: initial; }
.case-story-heading { position: static; }
.case-story-heading h2 { margin: 0; font-size: clamp(38px, 4.5vw, 62px); line-height: 1; letter-spacing: -.055em; }
.case-story-heading p { font-size: 17px; color: #6b7883; margin: 18px 0 0; }
.case-story-body { font-size: 17px; color: #3f4d59; line-height: 1.7; }
.case-story-body p { margin: 0 0 24px; }
.case-story-body strong { color: #17202a; }

/* Grid de Recursos Técnicos */
.case-feature-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 34px; }
.case-feature { padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.case-feature .feature-icon { width: 42px; height: 42px; margin-bottom: 16px; border-radius: 12px; display: grid; place-items: center; background: transparent; border: 1.5px solid #e2e2e2; color: #2ds7ff; }
.case-feature .feature-icon svg { width: 22px; height: 22px; stroke: #0081af; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.case-feature h3 { margin: 0 0 8px; font-size: 20px; }
.case-feature p { margin: 0; font-size: 14px; line-height: 1.55; color: #657380; }

/* Seção de Arquitetura de Sistema */
.case-architecture { padding: 60px 0; background: #07121f; color: #fff; }
.case-architecture .section-heading { max-width: 780px; }
.case-architecture .section-heading p { color: #a9bac6; }
.arch-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 40px; }
.arch-card { padding: 24px; border-radius: 17px; border: 1px solid rgba(255, 255, 255, .11); background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .025)); min-height: 180px; }
.arch-number { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 10px; background: transparent; border: 1.5px solid #194f70; color: #2dc7ff; font-weight: 800; }
.arch-card h3 { font-size: 20px; margin: 18px 0 8px; }
.arch-card p { margin: 0; color: #a9bbc8; font-size: 14px; line-height: 1.55; }

/* Painel de Resultados & Testemunhos */
.case-result { padding: 74px 0; background: #fff; }
.result-panel { position: relative; overflow: hidden; border-radius: 28px; padding: 38px 24px; background: linear-gradient(135deg, #081624, #0a2b48); color: #fff; }
.result-panel::after { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; right: -120px; top: -160px; background: radial-gradient(circle, color-mix(in srgb, var(--case-accent) 36%, transparent), transparent 67%); }
.result-panel h2 { position: relative; z-index: 1; max-width: 850px; color: #fff; margin: 0; font-size: clamp(40px, 5vw, 66px); line-height: 1.02; letter-spacing: -.055em; }
.result-panel p { position: relative; z-index: 1; max-width: 860px; margin: 24px 0 0; color: #c4d2dc; font-size: 17px; line-height: 1.65; }
.result-quote { position: relative; z-index: 1; margin-top: 32px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 20px; line-height: 1.35; color: #fff; max-width: 900px; }
.result-quote strong { color: var(--case-accent); }

/* Navegação Próximo Case (Bottom Page) */
.case-next { padding: 40px 0; background: var(--surface); }
.case-next-head { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; align-items: flex-start; margin-bottom: 28px; }
.case-next-head h2 { font-size: 38px; margin: 0; letter-spacing: -.04em; }
.case-next-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.next-card { position: relative; overflow: hidden; min-height: 220px; padding: 26px; border-radius: 18px; background: #07121f; color: #fff; border: 1px solid rgba(255, 255, 255, .08); transition: transform .2s ease, box-shadow .2s ease; }
.next-card:hover { transform: translateY(-3px); box-shadow: 0 18px 38px rgba(15, 23, 32, .12); }
.next-card::before { content: ""; position: absolute; width: 160px; height: 160px; border-radius: 50%; right: -50px; top: -60px; background: radial-gradient(circle, var(--next-accent, #2dc7ff) 0%, transparent 68%); opacity: .22; }
.next-card span { color: #8fa4b3; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.next-card h3 { position: relative; z-index: 1; margin: 14px 0 8px; font-size: 32px; letter-spacing: -.045em; }
.next-card p { position: relative; z-index: 1; margin: 0; color: #aab9c5; font-size: 14px; max-width: 260px; }
.next-card b { position: absolute; right: 22px; bottom: 20px; color: #fff; font-size: 22px; }
.next-card.accent-jae { --next-accent: #27c3f3; }
.next-card.accent-blue { --next-accent: #2dc7ff; }
.next-card.accent-partiu { --next-accent: #50c76f; }
.next-card.accent-educa { --next-accent: #e21d76; }
.next-card.accent-rio { --next-accent: #25c9f0; }
.powered-by { margin: 0; color: #999; font-size: 12px; }

/* Configurações de Identidade Visual de Cada Case */
.case-jae { --case-accent: #27c3f3; --case-accent-2: #147dd9; }
.case-partiu { --case-accent: #27c3f3; --case-accent-2: #147dd9; }
.case-educa { --case-accent: #27c3f3; --case-accent-2: #147dd9; }
.case-rio { --case-accent: #27c3f3; --case-accent-2: #147dd9; }
/* ==========================================================================
   08. MOBILE FIRST — BREAKPOINTS PROGRESSIVOS
   Base: smartphones compactos. A partir daqui, o layout apenas se expande.
   ========================================================================== */
.hero-container {
  position: relative;
  margin-bottom: -470px;
  padding-bottom: 0;
  overflow: visible;
}
.validador-mobile {
  position: relative;
  z-index: 10;
  display: block;
  width: 80%;
  height: auto;
  margin: 0 auto;
  transform: translateY(-35px);
  object-fit: contain;
}
.about h2 { margin-top: 0; margin-bottom: 25px; padding-bottom: 0; }
.about p { margin-top: 0; padding-top: 0; }
.device-card img {
  filter: drop-shadow(20px 30px 35px rgba(0, 0, 0, .6)) drop-shadow(5px 10px 10px rgba(0, 0, 0, .35));
  display: block;
  max-width: 100%;
  height: auto;
}

@media (min-width: 481px) {
  .hero-container { margin-bottom: 0; overflow: initial; }
  .validador-mobile { display: none; }
  .about { padding: 74px 0; }
  .about-grid { padding-top: 0; padding-bottom: 0; }
}

@media (min-width: 641px) {
  .container { width: min(100% - 48px, 1180px); }
  .brand img { height: 34px; }
  .footer-brand img { height: 36px; }
  .section-heading h2, .case-head h2, .cta-band h2 { font-size: clamp(34px, 4vw, 56px); }
  .section-heading p { font-size: 18px; }
  .hero { padding: 128px 0 80px; }
  .hero h1 { font-size: clamp(46px, 5.3vw, 76px); }
  .hero p { font-size: 18px; }
  .hero-actions { flex-direction: row; align-items: center; }
  .award-card { gap: 16px; padding: 16px 20px; }
  .award-text span { font-size: 20px; }
  .hero-visual { min-height: 470px; }
  .device-card { width: min(390px, 82%); max-width: none; }
  .stats-strip { margin-top: -30px; margin-bottom: -30px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 30px 28px; }
  .stat + .stat { border-top: 0; border-left: 1px solid var(--line); }
  .stat:nth-child(3), .stat:nth-child(4) { border-top: 1px solid var(--line); }
  .stat:nth-child(3) { border-left: none; }
  .stat strong { font-size: 48px; }
  .stat span { font-size: 17px; max-width: 180px; }
  .products { padding: 80px 0; }
  .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-card { padding: 40px 32px; }
  .product-card--vaiben { padding: 44px 32px; }
  .layers { grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 56px; }
  .layer { text-align: center; display: block; }
  .icon-circle { width: 82px; height: 82px; margin: 0 auto 18px; }
  .icon-circle svg { width: 34px; height: 34px; }
  .layer h3 { margin: 0 0 10px; font-size: 26px; }
  .layer p { max-width: 215px; margin-inline: auto; }
  .solution-grid { grid-template-columns: repeat(2, 1fr); }
  .solution-card p { min-height: 72px; }
  .case-head { flex-direction: row; align-items: end; gap: 32px; }
  .case-grid { display: grid; overflow: visible; grid-template-columns: repeat(2, 1fr); gap: 16px; padding-bottom: 0; scroll-snap-type: none; }
  .case-card { min-width: 0; scroll-snap-align: none; }
  .case-overlay { transform: translateY(46px); }
  .case-overlay p, .case-cta { opacity: 0; }
  .case-plus { display: grid; }
  .partner-panels { grid-template-columns: 1fr 1fr; }
  .partner-list strong { font-size: 28px; }
  .cta-inner { flex-direction: row; align-items: center; }
  .cta-copy { flex-direction: row; align-items: center; }
  .cta-icon { width: 70px; height: 70px; }
  .portal-card { padding: 38px; }
  .portal-card h1 { font-size: 44px; }
  .portal-actions { flex-direction: row; align-items: center; }
  .case-hero { padding: 140px 0 82px; }
  .case-hero h1 { font-size: clamp(62px, 7vw, 108px); }
  .case-hero .case-lead { font-size: clamp(19px, 2vw, 26px); }
  .case-visual { min-height: 430px; }
  .case-device { width: 44%; height: 72%; }
  .case-chip { padding: 10px 14px; font-size: 12px; }
  .case-metrics { margin-top: -18px; }
  .case-metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .case-metric { padding: 30px 26px; }
  .case-metric + .case-metric { border-top: 0; border-left: 1px solid var(--line); }
  .case-metric:nth-child(3), .case-metric:nth-child(4) { border-top: 1px solid var(--line); }
  .case-metric:nth-child(3) { border-left: 0; }
  .case-metric strong { font-size: 42px; }
  .case-story, .case-result { padding: 80px 0; }
  .case-story-body { font-size: 19px; }
  .case-feature-grid { grid-template-columns: repeat(2, 1fr); }
  .arch-grid { grid-template-columns: repeat(2, 1fr); }
  .result-panel { padding: 52px; }
  .result-panel p { font-size: 19px; }
  .result-quote { font-size: 24px; }
  .case-next-head { flex-direction: row; align-items: end; gap: 28px; }
  .case-next-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 881px) {
  .desktop-nav, .desktop-only { display: flex; }
  .desktop-nav { gap: 26px; }
  .menu-toggle { display: none; }
  .mobile-menu, .mobile-menu.open { display: none; }
  .nav-wrap { height: 86px; gap: 24px; }
  .signal-card { display: block; }
  .layers { grid-template-columns: repeat(3, 1fr); }
  .about-grid, .partners-grid, .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust-section { padding: 0; height: 270px; }
}

@media (min-width: 981px) {
  .products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .case-hero-grid { grid-template-columns: 1.02fr .98fr; gap: 62px; }
  .case-visual { min-height: 510px; }
  .case-metrics { margin-top: -26px; }
  .case-metrics-grid { grid-template-columns: repeat(4, 1fr); }
  .case-metric + .case-metric { border-top: 0; border-left: 1px solid var(--line); }
  .case-story-grid { grid-template-columns: .78fr 1.22fr; gap: 76px; }
  .case-story-grid.reverse { grid-template-columns: 1.16fr .84fr; }
  .case-story-grid.reverse .case-story-heading { order: 2; }
  .case-story-grid.reverse .case-story-body { order: 1; }
  .case-story-heading { position: sticky; top: 120px; }
  .arch-grid { grid-template-columns: repeat(4, 1fr); }
  .case-next-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1141px) {
  .desktop-nav { gap: 34px; }
  .hero { padding: 100px 0 80px; }
  .case-hero { padding: 150px 0 84px; }
  .hero-grid { grid-template-columns: minmax(0, 1.03fr) minmax(420px, .97fr); gap: 56px; }
  .hero-copy { max-width: 585px; }
  .hero-visual { min-height: 650px; }
  .device-card { width: min(450px, 92%); transform: translateX(18px) rotate(1deg); }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .stat:nth-child(3), .stat:nth-child(4) { border-top: 0; }
  .stat:nth-child(3) { border-left: 1px solid var(--line); }
  .layers { grid-template-columns: repeat(5, 1fr); }
  .layers::before { display: block; }
  .solution-grid { grid-template-columns: repeat(4, 1fr); }
  .case-grid { grid-template-columns: repeat(4, 1fr); }
  .about-grid { grid-template-columns: .82fr 1.18fr; gap: 180px; }
  .partners-grid { grid-template-columns: .78fr 1.22fr; gap: 44px; }
  .footer-grid { grid-template-columns: 1.15fr .85fr .85fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.visible { opacity: 1; transform: none; transition: none; }
  .logo-track { animation: none; }
}


/* ==========================================================================
   09. COMPONENTES DA PAGINA LEGAL (MOBILE FIRST)
   ========================================================================= */
.legal-hero{padding:120px 0 56px;background:radial-gradient(circle at 82% 18%,rgba(45,199,255,.16),transparent 25%),linear-gradient(135deg,#05111d 0%,#071b2c 48%,#07121f 100%);color:#fff}
    .legal-hero .container{max-width:1180px}
    .legal-hero h1{margin:0;font-size:clamp(42px,6vw,74px);line-height:.98;letter-spacing:-.05em;max-width:880px}
    .legal-hero p{margin:22px 0 0;color:#c8d5df;font-size:18px;max-width:760px}
    .legal-switch{display:flex;flex-wrap:wrap;gap:12px;margin-top:30px}
    .legal-switch a{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:0 18px;border-radius:12px;border:1px solid rgba(45,199,255,.35);background:rgba(7,28,43,.42);color:#d9f5ff;font-weight:700}
    .legal-switch a:hover{background:rgba(45,199,255,.12);border-color:rgba(45,199,255,.6)}
    .legal-shell{padding:48px 0 70px;background:#f3f5f7}
    .legal-grid{display:grid;grid-template-columns:1fr;gap:42px;align-items:start}
    .legal-nav{position:static;display:flex;overflow-x:auto;gap:8px;padding:12px;background:#fff;border:1px solid #dde4ea;border-radius:18px;box-shadow:0 12px 30px rgba(15,23,32,.05)}
    .legal-nav strong{display:none;font-size:13px;text-transform:uppercase;letter-spacing:.08em;color:#697887;margin-bottom:14px}
    .legal-nav a{display:block;white-space:nowrap;border:1px solid #e3e9ee;border-radius:10px;padding:9px 12px;background:#fff;color:#30404c;font-size:14px;border-bottom:1px solid #edf1f4}
    .legal-nav a:last-child{border-bottom:0}
    .legal-nav a:hover{color:#168fe6}
    .legal-content{display:grid;gap:28px}
    .legal-doc{background:#fff;border:1px solid #dfe5eb;border-radius:22px;padding:24px 20px;box-shadow:0 16px 44px rgba(15,23,32,.05);scroll-margin-top:110px}
    .legal-doc + .legal-doc{margin-top:10px}
    .legal-title{display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;gap:24px;padding-bottom:28px;margin-bottom:32px;border-bottom:1px solid #e6ebef}
    .legal-title .eyebrow{margin-bottom:10px}
    .legal-title h2{margin:0;font-size:clamp(32px,4vw,50px);line-height:1;letter-spacing:-.045em}
    .legal-version{font-size:12px;color:#687785;text-align:left;line-height:1.5;white-space:normal}
    .legal-note{margin:0 0 30px;padding:14px 16px;border-left:3px solid #2dc7ff;background:#f1faff;color:#35505f;font-size:13px;border-radius:0 10px 10px 0}
    .legal-meta{width:100%;border-collapse:collapse;margin:0 0 34px;font-size:13px}
    .legal-meta th,.legal-meta td{display:block;width:100%;padding:11px 12px;border:1px solid #dce3e9;text-align:left;vertical-align:top}
    .legal-meta th{width:30%;background:#f6f8fa;color:#354653;font-weight:700}
    .legal-section{scroll-margin-top:110px}
    .legal-section + .legal-section{margin-top:34px}
    .legal-section h3{margin:0 0 14px;font-size:20px;line-height:1.2;letter-spacing:-.025em;color:#17324a}
    .legal-section p{margin:0 0 14px;color:#3e4b55;font-size:15px;line-height:1.72}
    .legal-section ul{margin:12px 0 14px;padding-left:22px;color:#3e4b55}
    .legal-section li{margin:8px 0;line-height:1.65}
    .legal-footer-links{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}
.legal-meta th{border-bottom:0}
.legal-meta td{border-top:0}
.legal-section li{font-size:15px}

@media (min-width: 641px) {
 .legal-hero{padding:156px 0 72px}
 .legal-shell{padding:72px 0 96px}
 .legal-doc{padding:clamp(26px,5vw,56px)}
 .legal-meta{font-size:14px}
 .legal-meta th,.legal-meta td{display:table-cell;width:auto;border:1px solid #dce3e9}
 .legal-meta th{width:30%}
 .legal-section h3{font-size:22px}
 .legal-section p,.legal-section li{font-size:16px}
}
@media (min-width: 921px) {
 .legal-grid{grid-template-columns:280px minmax(0,1fr)}
 .legal-nav{position:sticky;top:110px;display:block;overflow:visible;padding:22px}
 .legal-nav strong{display:block}
 .legal-nav a{white-space:normal;border:0;border-bottom:1px solid #edf1f4;border-radius:0;padding:10px 0;background:transparent}
 .legal-title{flex-direction:row}
 .legal-version{text-align:right;white-space:nowrap}
}

/* Referencia editorial nos cases */
.case-reference-page{font-size:calc(1em - 3pt)}

/* ===========================================================================
   10. ROBUSTEZ RESPONSIVA — ajustes conservadores para smartphones
   Mantem os estilos e breakpoints existentes em tablets e desktops.
   =========================================================================== */
/* Evita que textos extensos ampliem colunas flex/grid além do viewport. */
.container > *, .hero-copy, .section-heading, .product-card,
.solution-card, .case-story-body, .case-metric, .footer-grid > *,
.legal-content, .legal-doc { min-width: 0; }

/* Links, documentos e textos extensos devem quebrar sem cortar conteudo. */
.portal-card, .legal-doc, .case-story-body, .footer-grid,
.product-card, .solution-card { overflow-wrap: break-word; }

/* Mantem controles de formulario confortaveis no Safari iOS e Android. */
.portal-card input { font-size: 16px; }
.portal-card input, .portal-card button { max-width: 100%; }

/* Navegacao por teclado visivel sem alterar o estilo padrao de toque. */
.menu-toggle:focus-visible, .mobile-menu a:focus-visible,
.portal-card a:focus-visible, .portal-card button:focus-visible,
.legal-switch a:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

@media (max-width: 480px) {
  /* O botao do menu passa a ter uma area de toque minima de 44px. */
  .menu-toggle { width: 44px; height: 44px; }
  .mobile-menu a { display: flex; align-items: center; min-height: 44px; }
  /* Evita perda de largura util no formulario em smartphones compactos. */
  .portal-shell { padding-inline: 16px; }
  .portal-card { min-width: 0; }
  /* Tabelas juridicas podem conter identificadores ou URLs extensas. */
  .legal-meta td, .legal-meta th { overflow-wrap: anywhere; }
}

/* Menu mobile: SVG unico, geometria centralizada e sem pseudo-elementos. */
.menu-toggle {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(45, 199, 255, .6);
  border-radius: 12px;
  background: rgba(255,255,255,.045);
  color: #fff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.menu-toggle .menu-icon {
  display: block;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  overflow: visible;
}
.menu-toggle .menu-icon-lines,
.menu-toggle .menu-icon-close { transition: opacity .15s ease; }
.menu-toggle .menu-icon-close { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-icon-lines { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-icon-close { opacity: 1; }
@media (min-width: 1024px) { .menu-toggle { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .menu-toggle .menu-icon-lines, .menu-toggle .menu-icon-close { transition: none; }
}
