/* =========================================================
   SIPCORP — Soluções em Tecnologias
   Folha de estilos principal (desktop-first)
   Breakpoints: 1200px · 980px (menu mobile) · 640px
   ========================================================= */

/* ==== 0. TOKENS ==== */
:root {
  --green-500: #03C14A;
  --green-400: #03DB52;
  --green-700: #026F2D;
  --green-50: #E8F8EE;
  --gradient-brand: linear-gradient(135deg, #03DB52 0%, #03C14A 45%, #026F2D 100%);

  --graphite-900: #161618;
  --graphite-800: #24282C;
  --graphite-700: #32363C;
  --graphite-500: #5A6069;
  --gray-200: #E3E7E5;
  --gray-100: #F4F6F5;
  --white: #FFFFFF;

  --font-title: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 14px;
  --radius-pill: 999px;
  --shadow: 0 10px 30px rgba(22, 22, 24, .08);
  --shadow-lg: 0 20px 50px rgba(22, 22, 24, .16);

  --container: 1200px;
  --gutter: 32px;
  --header-h: 80px;
  --header-h-scrolled: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* traços de velocidade do logo (decorativo) */
  --speed-lines-green: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 22'%3E%3Cg stroke='%23026F2D' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M14 2.5h24'/%3E%3Cpath d='M6 8.5h32'/%3E%3Cpath d='M18 14.5h20'/%3E%3Cpath d='M2 20h26'/%3E%3C/g%3E%3C/svg%3E");
  --speed-lines-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 22'%3E%3Cg stroke='%2303DB52' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M14 2.5h24'/%3E%3Cpath d='M6 8.5h32'/%3E%3Cpath d='M18 14.5h20'/%3E%3Cpath d='M2 20h26'/%3E%3C/g%3E%3C/svg%3E");
}

/* ==== 1. BASE ==== */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--graphite-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--green-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--graphite-800); }

h1, h2, h3, h4 {
  font-family: var(--font-title);
  color: var(--graphite-800);
  line-height: 1.2;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(34px, 4.4vw, 56px); font-weight: 700; }
h2 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 700; }
h3 { font-size: 21px; font-weight: 600; }
p { margin: 0 0 1em; }

:focus-visible {
  outline: 3px solid var(--green-500);
  outline-offset: 3px;
  border-radius: 6px;
}

.icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.icon-sm { width: 18px; height: 18px; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 1000;
  padding: 10px 18px;
  background: var(--white);
  color: var(--graphite-800);
  border-radius: var(--radius-pill);
  font-weight: 600;
  box-shadow: var(--shadow);
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* marcador de dado a preencher — deve ficar visível */
.todo {
  display: inline;
  padding: 1px 6px;
  border-radius: 6px;
  background: #FFF3C4;
  color: #5C4300;
  border: 1px dashed #C99A00;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: .85em;
  font-weight: 500;
  word-break: break-word;
}

/* ==== 2. BOTÕES E RÓTULOS ==== */
.btn {
  --btn-pad: 14px 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: var(--btn-pad);
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, color .25s, border-color .25s;
}
.btn .icon { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover .icon-arrow { transform: translateX(3px); }

.btn-primary {
  background: var(--gradient-brand);
  background-size: 140% 140%;
  background-position: 0 0;
  /* o degradê começa na borda e não se repete: evita a faixa escura no canto esquerdo */
  background-origin: border-box;
  background-repeat: no-repeat;
  color: var(--white);
  box-shadow: 0 8px 22px rgba(3, 193, 74, .28);
  /* texto branco sobre o degradê: sombra leve garante legibilidade no trecho mais claro */
  text-shadow: 0 1px 1px rgba(2, 60, 24, .35);
}
.btn-primary:hover {
  color: var(--white);
  background-position: 100% 100%;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(3, 193, 74, .36);
}

.btn-outline-light {
  color: var(--white);
  border-color: rgba(255, 255, 255, .55);
  background: transparent;
}
.btn-outline-light:hover { color: var(--graphite-900); background: var(--white); border-color: var(--white); }

.btn-outline {
  color: var(--green-700);
  border-color: var(--green-700);
  background: transparent;
}
.btn-outline:hover { color: var(--white); background: var(--green-700); }

.btn-white {
  background: var(--white);
  color: var(--green-700);
}
.btn-white:hover { color: var(--graphite-900); transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn-dark {
  background: var(--graphite-900);
  color: var(--white);
}
.btn-dark:hover { color: var(--white); background: var(--graphite-700); transform: translateY(-2px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--green-700);
}
.eyebrow::before {
  content: "";
  width: 30px;
  height: 17px;
  background: var(--speed-lines-green) no-repeat center / contain;
  opacity: .7;
}
.on-dark .eyebrow, .eyebrow.light { color: var(--green-400); }
.on-dark .eyebrow::before, .eyebrow.light::before { background-image: var(--speed-lines-light); }

.section {
  padding: 104px 0;
  position: relative;
  scroll-margin-top: var(--header-h-scrolled);
}
.section-alt { background: var(--gray-100); }

.section-head {
  max-width: 760px;
  margin: 0 0 56px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--graphite-500); font-size: 18px; }

/* animação de entrada */
/* só esconde quando o JS está ativo (classe .js aplicada no <head>) */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ==== 3. HEADER / NAVEGAÇÃO ==== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  color: var(--white);
  background: transparent;
  transition: height .3s var(--ease), background-color .3s, box-shadow .3s, color .3s;
}
.site-header.scrolled {
  height: var(--header-h-scrolled);
  color: var(--graphite-800);
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(22, 22, 24, .08);
}

/* o header fica sobre o hero escuro: o primeiro bloco sobe sob ele */
.site-header + main > :first-child { margin-top: calc(var(--header-h) * -1); }

.header-inner {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  border-radius: 8px;
}
.brand img { height: 44px; width: auto; }
.brand .logo-dark { display: none; }
.site-header.scrolled .brand .logo-light { display: none; }
.site-header.scrolled .brand .logo-dark { display: block; }

.main-nav { margin-left: auto; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 12px;
  min-height: 44px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: inherit;
  text-decoration: none;
  background: none;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
}
.nav-link:hover { color: inherit; }
.nav-link::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 6px;
  height: 2px;
  border-radius: 2px;
  background: var(--green-500);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .3s var(--ease);
}
.nav-link:hover::after,
.nav-link.is-active::after,
.nav-link[aria-expanded="true"]::after { transform: scaleX(1); }
.nav-link .chevron { width: 16px; height: 16px; transition: transform .2s; }
.nav-link[aria-expanded="true"] .chevron { transform: rotate(180deg); }

.header-client {
  --btn-pad: 9px 18px;
  min-height: 44px;
  flex-shrink: 0;
  gap: 8px;
  font-size: 15px;
  color: var(--white);
  border-color: rgba(3, 219, 82, .55);
  background: rgba(3, 193, 74, .10);
}
.header-client .icon { width: 18px; height: 18px; color: var(--green-400); transition: color .25s; }
.header-client:hover, .header-client[aria-current] {
  color: var(--graphite-900);
  background: var(--green-400);
  border-color: var(--green-400);
}
.header-client:hover .icon, .header-client[aria-current] .icon { color: inherit; }
.site-header.scrolled .header-client { color: var(--green-700); border-color: var(--green-700); background: transparent; }
.site-header.scrolled .header-client .icon { color: var(--green-700); }
.site-header.scrolled .header-client:hover,
.site-header.scrolled .header-client[aria-current] { color: var(--white); background: var(--green-700); }
.site-header.scrolled .header-client:hover .icon,
.site-header.scrolled .header-client[aria-current] .icon { color: inherit; }

/* botão "Loja online" no topo (verde cheio: chama mais atenção que a Área do Cliente) */
.header-loja {
  --btn-pad: 9px 18px;
  min-height: 44px;
  flex-shrink: 0;
  gap: 8px;
  font-size: 15px;
  color: var(--graphite-900);
  border-color: var(--green-400);
  background: var(--green-400);
  box-shadow: 0 6px 18px rgba(3, 193, 74, .28);
}
.header-loja + .header-client { margin-left: -10px; } /* os dois botões ficam juntos (o espaço do topo é de 24 px) */
.header-loja .icon { width: 18px; height: 18px; }
.header-loja .label-short { display: none; }
.header-loja:hover { color: var(--white); background: var(--green-700); border-color: var(--green-700); }
.site-header.scrolled .header-loja { color: var(--white); background: var(--green-700); border-color: var(--green-700); box-shadow: none; }
.site-header.scrolled .header-loja:hover { background: var(--graphite-900); border-color: var(--graphite-900); }

/* loja no menu do celular */
.drawer-loja { display: flex; align-items: center; gap: 12px; margin: 18px 0 0; padding: 14px; border: 1px solid rgba(3, 219, 82, .45); border-radius: 16px; background: rgba(3, 193, 74, .12); color: var(--white); text-decoration: none; }
.drawer-loja-icone { display: grid; flex-shrink: 0; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--green-400); color: var(--graphite-900); }
.drawer-loja-icone .icon { width: 20px; height: 20px; }
.drawer-loja > span:nth-child(2) { flex: 1; }
.drawer-loja strong { display: block; font-size: 15.5px; }
.drawer-loja small { display: block; color: rgba(255, 255, 255, .7); font-size: 12.5px; line-height: 1.35; }
.drawer-loja > .icon { width: 18px; height: 18px; color: var(--green-400); }

/* mega-menu */
.mega {
  position: absolute;
  top: calc(100% - 6px);
  left: 50%;
  width: min(960px, calc(100vw - 40px));
  padding: 28px 28px 0;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--graphite-800);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s .2s;
}
.mega.is-open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s;
}
.mega::before { /* ponte invisível para o hover não “cair” no vão */
  content: "";
  position: absolute;
  left: 0; right: 0; top: -18px;
  height: 18px;
}
.mega-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.mega-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  padding: 16px;
  border-radius: 12px;
  color: var(--graphite-800);
  text-decoration: none;
  transition: background-color .2s;
}
.mega-item:hover, .mega-item:focus-visible { background: var(--gray-100); color: var(--graphite-800); }
.mega-item strong { font-size: 15px; line-height: 1.3; }
.mega-item span { font-size: 13.5px; line-height: 1.45; color: var(--graphite-500); }
.icon-bubble {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--green-50);
  color: var(--green-700);
}
.icon-bubble .icon { width: 21px; height: 21px; }
.mega-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px -28px 0;
  padding: 16px 28px;
  border-top: 1px solid var(--gray-200);
  background: var(--gray-100);
  border-radius: 0 0 var(--radius) var(--radius);
  font-size: 14px;
  color: var(--graphite-500);
}
.mega-footer a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; min-height: 44px; }

/* hambúrguer */
.menu-toggle {
  display: none;
  margin-left: auto;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  position: relative;
}
.menu-toggle span {
  position: absolute;
  left: 13px;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .3s var(--ease), opacity .2s, top .3s var(--ease);
}
.menu-toggle span:nth-child(1) { top: 16px; }
.menu-toggle span:nth-child(2) { top: 23px; }
.menu-toggle span:nth-child(3) { top: 30px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { top: 23px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { top: 23px; transform: rotate(-45deg); }

/* drawer mobile */
.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 140;
  background: rgba(22, 22, 24, .55);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility 0s .3s;
}
.drawer-overlay.is-open { opacity: 1; visibility: visible; transition: opacity .3s; }
.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 150;
  width: min(380px, 88vw);
  display: flex;
  flex-direction: column;
  background: var(--graphite-900);
  color: var(--white);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .35s var(--ease), visibility 0s .35s;
}
.drawer.is-open { transform: none; visibility: visible; transition: transform .35s var(--ease); }
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.drawer-head img { height: 34px; width: auto; }
.drawer-close {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, .06);
  color: var(--white);
  cursor: pointer;
}
.drawer-body { flex: 1; overflow-y: auto; padding: 12px 20px; }
.drawer-list { list-style: none; margin: 0; padding: 0; }
.drawer-list > li { border-bottom: 1px solid rgba(255, 255, 255, .08); }
.drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 56px;
  padding: 12px 4px;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 500;
  color: var(--white);
  text-decoration: none;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
}
.drawer-link:hover, .drawer-link.is-active { color: var(--green-400); }
.drawer-link .chevron { transition: transform .25s; }
.drawer-link > .icon { color: var(--green-400); }
.drawer-link[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.drawer-sub {
  list-style: none;
  margin: 0;
  padding: 0 0 12px;
  display: grid;
  gap: 2px;
}
.drawer-sub[hidden] { display: none; }
.drawer-sub a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 10px;
  color: rgba(255, 255, 255, .82);
  font-size: 15.5px;
  text-decoration: none;
}
.drawer-sub a:hover { background: rgba(255, 255, 255, .06); color: var(--white); }
.drawer-sub .icon { color: var(--green-400); width: 20px; height: 20px; }
.drawer-foot { padding: 16px 20px 24px; border-top: 1px solid rgba(255, 255, 255, .08); }
.drawer-foot .btn { width: 100%; }

/* ==== 4. HERO ==== */
.hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + 72px) 0 0;
  background:
    radial-gradient(60% 70% at 80% 40%, rgba(3, 193, 74, .18) 0%, rgba(3, 193, 74, 0) 70%),
    radial-gradient(40% 50% at 0% 100%, rgba(3, 193, 74, .10) 0%, rgba(3, 193, 74, 0) 70%),
    var(--graphite-900);
  color: rgba(255, 255, 255, .82);
}
.hero h1 { color: var(--white); font-size: clamp(34px, 3.9vw, 52px); }
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
  padding-bottom: 80px;
}
.hero-copy .lead { font-size: 19px; max-width: 580px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.speed-lines {
  position: absolute;
  pointer-events: none;
  color: var(--green-500);
}
.speed-lines rect { fill: currentColor; }
.hero .speed-lines.a { left: -150px; top: 120px; width: 240px; opacity: .12; }
.hero .speed-lines.b { right: -30px; bottom: 120px; width: 220px; opacity: .08; color: var(--white); }

/* ilustração: núcleo SIPCORP + 8 áreas conectadas */
.hub {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1 / .94;
  margin-left: auto;
}
.hub-orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  aspect-ratio: 1;
  border-radius: 50%;
  translate: -50% -50%;
  pointer-events: none;
}
.hub-orbit.o1 { width: 48%; border: 1px dashed rgba(3, 219, 82, .35); animation: spin 40s linear infinite; }
.hub-orbit.o2 { width: 80%; border: 1px dashed rgba(255, 255, 255, .10); animation: spin 70s linear infinite reverse; }
@keyframes spin { to { rotate: 360deg; } }

.hub-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.hub-lines line {
  stroke: var(--green-500);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 4 8;
  vector-effect: non-scaling-stroke;
  opacity: .35;
  animation: dash 1.6s linear infinite, line-glow 8s ease-in-out infinite;
  animation-delay: 0s, var(--d);
}
@keyframes dash { to { stroke-dashoffset: -24; } }
@keyframes line-glow {
  0%, 14% { opacity: 1; stroke: var(--green-400); }
  24%, 100% { opacity: .35; }
}

.hub-core {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  display: grid;
  place-items: center;
  width: 24%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #2E3339 0%, #1B1E21 70%);
  border: 1px solid rgba(3, 219, 82, .4);
  color: var(--green-400);
  box-shadow: 0 0 0 10px rgba(3, 193, 74, .06), 0 0 70px rgba(3, 193, 74, .35);
}
.hub-core .icon { width: 44%; height: 44%; stroke-width: 2.25; filter: drop-shadow(0 0 10px rgba(3, 219, 82, .6)); }
.hub-core::before,
.hub-core::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid var(--green-500);
  animation: ring 3s ease-out infinite;
}
.hub-core::after { animation-delay: 1.5s; }
@keyframes ring { from { transform: scale(1); opacity: .7; } to { transform: scale(1.7); opacity: 0; } }

.hub-chip {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 104px;
  translate: -50% -50%;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  color: rgba(255, 255, 255, .88);
  animation: float 6s ease-in-out infinite;
  animation-delay: var(--f);
}
@keyframes float { 50% { transform: translateY(-6px); } }
.hub-chip .hub-tile {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background-color: rgba(36, 40, 44, .96);
  border: 1px solid rgba(255, 255, 255, .12);
  color: var(--green-400);
  box-shadow: 0 12px 24px rgba(0, 0, 0, .35);
  animation: chip-glow 8s ease-in-out infinite;
  animation-delay: var(--d);
}
.hub-chip .hub-tile .icon { width: 26px; height: 26px; }
@keyframes chip-glow {
  0%, 14% {
    background-color: #03A940;
    border-color: var(--green-400);
    color: var(--white);
    box-shadow: 0 0 0 5px rgba(3, 219, 82, .14), 0 0 34px rgba(3, 219, 82, .5);
  }
  24%, 100% {
    background-color: rgba(36, 40, 44, .96);
    border-color: rgba(255, 255, 255, .12);
    color: var(--green-400);
    box-shadow: 0 12px 24px rgba(0, 0, 0, .35);
  }
}

/* ícones clicáveis: ao passar o mouse, a sequência pausa e só a área apontada acende */
a.hub-chip { text-decoration: none; cursor: pointer; z-index: 1; }
a.hub-chip:hover, a.hub-chip:focus-visible { color: var(--white); z-index: 5; }
a.hub-chip:focus-visible { outline: none; }
a.hub-chip:focus-visible .hub-tile { outline: 3px solid var(--green-400); outline-offset: 3px; }
.hub-chip .hub-tile { transition: transform .25s var(--ease); }
.hub:has(.hub-chip:is(:hover, :focus-visible)) .hub-chip .hub-tile { animation: none; }
.hub:has(.hub-chip:is(:hover, :focus-visible)) .hub-lines line { animation: dash 1.6s linear infinite; opacity: .18; }
.hub-chip:is(:hover, :focus-visible) .hub-tile {
  background-color: #03A940;
  border-color: var(--green-400);
  color: var(--white);
  box-shadow: 0 0 0 5px rgba(3, 219, 82, .14), 0 0 34px rgba(3, 219, 82, .5);
  transform: scale(1.08);
}
.hub:has(.hub-chip[data-i="0"]:is(:hover, :focus-visible)) .hub-lines line:nth-of-type(1),
.hub:has(.hub-chip[data-i="1"]:is(:hover, :focus-visible)) .hub-lines line:nth-of-type(2),
.hub:has(.hub-chip[data-i="2"]:is(:hover, :focus-visible)) .hub-lines line:nth-of-type(3),
.hub:has(.hub-chip[data-i="3"]:is(:hover, :focus-visible)) .hub-lines line:nth-of-type(4),
.hub:has(.hub-chip[data-i="4"]:is(:hover, :focus-visible)) .hub-lines line:nth-of-type(5),
.hub:has(.hub-chip[data-i="5"]:is(:hover, :focus-visible)) .hub-lines line:nth-of-type(6),
.hub:has(.hub-chip[data-i="6"]:is(:hover, :focus-visible)) .hub-lines line:nth-of-type(7),
.hub:has(.hub-chip[data-i="7"]:is(:hover, :focus-visible)) .hub-lines line:nth-of-type(8) {
  opacity: 1;
  stroke: var(--green-400);
}

.hub-tip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  width: 230px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--white);
  color: var(--graphite-500);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  text-align: left;
  box-shadow: var(--shadow-lg);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 6px);
  transition: opacity .2s, transform .2s var(--ease), visibility 0s .2s;
}
.hub-tip strong { display: block; margin-bottom: 2px; font-size: 13.5px; font-weight: 600; color: var(--graphite-800); }
.hub-chip:is(:hover, :focus-visible) .hub-tip {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition: opacity .2s, transform .2s var(--ease);
}
.hub-chip.tip-left .hub-tip { left: 0; transform: translate(0, 6px); }
.hub-chip.tip-left:is(:hover, :focus-visible) .hub-tip { transform: none; }
.hub-chip.tip-right .hub-tip { left: auto; right: 0; transform: translate(0, 6px); }
.hub-chip.tip-right:is(:hover, :focus-visible) .hub-tip { transform: none; }
@media (hover: none) { .hub-tip { display: none; } }

/* contato direto abaixo dos botões */
.hero-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin: 22px 0 0;
  font-size: 15px;
  color: rgba(255, 255, 255, .65);
}
.hero-contact .icon { width: 18px; height: 18px; color: var(--green-400); }
.hero-contact a { padding: 8px 0; color: var(--white); font-weight: 600; text-decoration: none; }
.hero-contact a:hover { color: var(--green-400); }
.hero-contact span::before { content: "·"; margin-right: 10px; }

.hero-badges {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .02);
}
.hero-badges ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
  margin: 0 auto;
  padding: 0;
}
.hero-badges li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px 12px;
  font-weight: 500;
  color: var(--white);
  font-size: 15.5px;
}
.hero-badges li + li { border-left: 1px solid rgba(255, 255, 255, .08); }
.hero-badges .icon { color: var(--green-400); }

/* hero curto (páginas internas) */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + 72px) 0 72px;
  background:
    radial-gradient(50% 90% at 85% 30%, rgba(3, 193, 74, .18) 0%, rgba(3, 193, 74, 0) 70%),
    var(--graphite-900);
  color: rgba(255, 255, 255, .82);
}
.page-hero h1 { color: var(--white); margin-bottom: 14px; }
.page-hero p { max-width: 680px; font-size: 18px; margin: 0; }
.page-hero .speed-lines { right: 4%; top: 50%; width: 260px; transform: translateY(-30%); opacity: .14; }
.breadcrumb { margin: 0 0 18px; font-size: 14px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: rgba(255, 255, 255, .4); }
.breadcrumb a { color: rgba(255, 255, 255, .8); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb [aria-current] { color: var(--green-400); }

/* ==== 5. CARDS DE ÁREAS ==== */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.area-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px 24px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow);
  color: var(--graphite-800);
  text-decoration: none;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
  overflow: hidden;
}
.area-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; right: 0;
  height: 3px;
  background: var(--gradient-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.area-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; color: var(--graphite-800); }
.area-card:hover::before { transform: scaleX(1); }
.area-card .icon-badge { margin-bottom: 20px; }
.area-card h3 { font-size: 19px; margin-bottom: 10px; }
.area-card p { font-size: 15px; color: var(--graphite-500); margin-bottom: 20px; }
.more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--green-700);
}
.more .icon { width: 17px; height: 17px; transition: transform .25s var(--ease); }
.area-card:hover .more .icon { transform: translateX(4px); }

.icon-badge {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--gradient-brand);
  color: var(--white);
  box-shadow: 0 8px 18px rgba(3, 193, 74, .25);
}
.icon-badge .icon { width: 26px; height: 26px; }
.icon-badge.dark { background: var(--graphite-700); box-shadow: none; color: var(--green-400); }

/* ==== 6. SOLUÇÕES INTEGRADAS ==== */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}
.steps::before {
  content: "";
  position: absolute;
  top: 36px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: linear-gradient(90deg, var(--green-400), var(--green-700));
}
.step { position: relative; text-align: center; }
.step-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--green-500);
  color: var(--green-700);
  box-shadow: 0 0 0 8px var(--gray-100);
}
.step-icon .icon { width: 30px; height: 30px; }
.step-icon::after {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -4px; right: -4px;
  display: grid; place-items: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--graphite-800);
  color: var(--white);
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 700;
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { font-size: 15px; color: var(--graphite-500); margin: 0; }
.integrated-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 56px auto 0;
  width: fit-content;
  max-width: 100%;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  background: var(--graphite-800);
  color: var(--white);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 18px;
  text-align: center;
}
.integrated-note .icon { color: var(--green-400); }

/* ==== 7. DIFERENCIAIS ==== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature {
  display: flex;
  gap: 18px;
  padding: 28px 24px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--gray-200);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature .icon-bubble { width: 48px; height: 48px; flex-shrink: 0; }
.feature h3 { font-size: 18px; margin-bottom: 6px; }
.feature p { font-size: 15px; color: var(--graphite-500); margin: 0; }

/* ==== 8. COMO TRABALHAMOS ==== */
.how {
  background:
    radial-gradient(50% 60% at 100% 0%, rgba(3, 193, 74, .14) 0%, rgba(3, 193, 74, 0) 70%),
    var(--graphite-800);
  color: rgba(255, 255, 255, .78);
}
.how h2, .how h3 { color: var(--white); }
.how .section-head p { color: rgba(255, 255, 255, .7); }
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.timeline li {
  position: relative;
  padding: 28px 24px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  transition: transform .3s var(--ease), border-color .3s;
}
.timeline li:hover { transform: translateY(-4px); border-color: rgba(3, 219, 82, .4); }
.timeline .num {
  display: block;
  margin-bottom: 18px;
  font-family: var(--font-title);
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.timeline li::after { /* conector */
  content: "";
  position: absolute;
  top: 50px;
  right: -24px;
  width: 24px;
  height: 2px;
  background: rgba(3, 219, 82, .5);
}
.timeline li:last-child::after { display: none; }
.timeline h3 { font-size: 19px; }
.timeline p { font-size: 15px; margin: 0; }

/* ==== 9. SEGMENTOS ==== */
.segments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.segment {
  padding: 36px 30px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.segment:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.segment .icon-badge { margin-bottom: 22px; }
.segment h3 { font-size: 21px; margin-bottom: 8px; }
.segment p { color: var(--graphite-500); margin: 0; font-size: 16px; }

/* ==== 10. CTA ==== */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: 80px 0;
  background: var(--gradient-brand);
  color: var(--white);
}
.cta-band .speed-lines { color: var(--white); opacity: .2; }
.cta-band .speed-lines.a { left: -30px; top: 50%; width: 280px; transform: translateY(-50%); }
.cta-band .speed-lines.b { right: -20px; top: 24px; width: 180px; }
.cta-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.cta-band h2 {
  color: var(--white);
  max-width: 640px;
  margin: 0;
  text-shadow: 0 1px 2px rgba(2, 60, 24, .25);
}
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; flex-shrink: 0; }

/* ==== 11. CONTATO ==== */
.contact-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 56px;
  align-items: start;
}
.contact-info p.intro { color: var(--graphite-500); font-size: 18px; margin-bottom: 32px; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list .icon-bubble { width: 46px; height: 46px; flex-shrink: 0; }
.contact-list strong { display: block; font-size: 14px; color: var(--graphite-500); font-weight: 500; }
.contact-list a, .contact-list span.value { font-weight: 600; color: var(--graphite-800); text-decoration: none; }
.contact-list a:hover { color: var(--green-700); text-decoration: underline; }
.contact-list .regiao { display: block; margin-top: 2px; font-size: 14.5px; line-height: 1.5; color: var(--graphite-500); }
.contact-list .wa-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  min-height: 32px;
  font-size: 14.5px;
  color: var(--green-700);
}
.contact-list div > a:first-of-type { display: block; }

.form-card {
  padding: 40px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; color: var(--graphite-800); }
.field label .req { color: #B42318; }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1.5px solid #CBD2CE;
  border-radius: 10px;
  background: var(--white);
  font: inherit;
  font-size: 16px;
  color: var(--graphite-800);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field select {
  appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235A6069' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
}
.field input::placeholder, .field textarea::placeholder { color: #8A9098; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--green-500);
  box-shadow: 0 0 0 4px rgba(3, 193, 74, .18);
}
.field [aria-invalid="true"] { border-color: #B42318; }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(180, 35, 24, .15); }
.field-error { min-height: 0; font-size: 13.5px; color: #B42318; }
.field-error:empty { display: none; }

.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14.5px;
  color: var(--graphite-500);
  cursor: pointer;
}
.check input {
  width: 22px; height: 22px;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--green-700);
  cursor: pointer;
}
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 8px; }
.form-actions .btn { min-width: 220px; }
.form-note { font-size: 13px; color: var(--graphite-500); margin: 0; }
.btn[aria-busy="true"] { opacity: .75; pointer-events: none; }

.form-status {
  display: none;
  gap: 14px;
  align-items: flex-start;
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: 12px;
  font-size: 15px;
}
.form-status.is-success { display: flex; background: var(--green-50); color: var(--green-700); border: 1px solid rgba(3, 193, 74, .35); }
.form-status.is-error { display: flex; background: #FEF3F2; color: #912018; border: 1px solid #FDA29B; }
.form-status strong { display: block; color: inherit; }
.form-success-panel { text-align: center; padding: 24px 8px; }
.form-success-panel .icon-badge { margin: 0 auto 20px; width: 64px; height: 64px; border-radius: 50%; }
.form-success-panel p { color: var(--graphite-500); }

/* ==== 12. RODAPÉ ==== */
.site-footer {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(45% 60% at 0% 0%, rgba(3, 193, 74, .15) 0%, rgba(3, 193, 74, 0) 70%),
    var(--graphite-900);
  color: rgba(255, 255, 255, .72);
  font-size: 15px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 1.2fr .9fr 1.1fr .9fr;
  gap: 40px;
  padding: 80px 0 56px;
}
.footer-brand img { height: 46px; width: auto; margin-bottom: 18px; }
.footer-brand p { max-width: 300px; }
.site-footer h2 {
  margin: 0 0 18px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--white);
}
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer-links a, .footer-links button {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: rgba(255, 255, 255, .72);
  text-decoration: none;
  cursor: pointer;
  text-align: left;
}
.footer-links a:hover, .footer-links button:hover { color: var(--green-400); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; padding: 4px 0; }
.footer-contact small { font-size: 13px; color: rgba(255, 255, 255, .55); }
.footer-contact .icon { width: 18px; height: 18px; margin-top: 4px; color: var(--green-400); }
.site-footer .todo { background: rgba(255, 243, 196, .12); color: #FFE58A; border-color: rgba(255, 229, 138, .5); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 24px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: 14px;
}
.footer-bottom p { margin: 0; }

/* ==== 13. FLUTUANTES ==== */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--green-500);
  color: var(--white);
  box-shadow: 0 10px 26px rgba(3, 193, 74, .45);
  transition: transform .25s var(--ease), background-color .25s;
}
.whatsapp-float:hover { color: var(--white); background: var(--green-700); transform: scale(1.06); }
.whatsapp-float .icon { width: 30px; height: 30px; }
.whatsapp-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--green-500);
  z-index: -1;
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse { from { transform: scale(1); opacity: .5; } to { transform: scale(1.55); opacity: 0; } }

.back-to-top {
  position: fixed;
  right: 32px;
  bottom: 100px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: var(--graphite-800);
  color: var(--white);
  box-shadow: var(--shadow);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .3s, transform .3s var(--ease), visibility 0s .3s, background-color .2s;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity .3s, transform .3s var(--ease), background-color .2s; }
.back-to-top:hover { background: var(--green-700); }

.cookie-banner {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 120;
  width: min(440px, calc(100vw - 48px));
  padding: 22px 22px 20px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-lg);
  font-size: 14.5px;
  color: var(--graphite-500);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner h2 { font-size: 17px; margin-bottom: 6px; }
.cookie-banner p { margin-bottom: 16px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-actions .btn { --btn-pad: 10px 18px; font-size: 14.5px; min-height: 44px; }

/* ==== 14. PÁGINA DE SERVIÇOS (painel com abas e busca) ==== */
.svc-body { display: grid; grid-template-columns: 290px minmax(0, 1fr); min-height: 620px; }

/* coluna das áreas */
.svc-nav {
  padding: 20px 16px;
  background: var(--gray-100);
  border-right: 1px solid var(--gray-200);
}
.svc-search { position: relative; display: none; margin-bottom: 14px; }
.js .svc-search { display: block; }
.svc-search .icon {
  position: absolute;
  left: 12px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  color: var(--graphite-500);
  pointer-events: none;
}
.svc-search input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px 10px 38px;
  border: 1.5px solid #CBD2CE;
  border-radius: 12px;
  background: var(--white);
  font: inherit;
  font-size: 15px;
  color: var(--graphite-800);
  transition: border-color .2s, box-shadow .2s;
}
.svc-search input:focus { outline: none; border-color: var(--green-500); box-shadow: 0 0 0 4px rgba(3, 193, 74, .18); }

.svc-tabs { display: grid; gap: 4px; list-style: none; margin: 0; padding: 0; }
.svc-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  color: var(--graphite-700);
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color .2s, border-color .2s, box-shadow .2s, color .2s;
}
.svc-tab-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  color: var(--green-700);
  transition: background-color .2s, color .2s, border-color .2s;
}
.svc-tab-icon .icon { width: 18px; height: 18px; }
.svc-count {
  margin-left: auto;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 1px solid var(--gray-200);
  font-size: 12px;
  font-weight: 600;
  color: var(--graphite-500);
}
.svc-tab:hover { background: var(--white); color: var(--graphite-800); }
.svc-tab[aria-current="true"] {
  background: var(--white);
  border-color: rgba(3, 193, 74, .45);
  box-shadow: var(--shadow);
  color: var(--graphite-800);
  font-weight: 600;
}
.svc-tab[aria-current="true"] .svc-tab-icon { background: var(--gradient-brand); border-color: transparent; color: var(--white); }
.svc-tab-short, .svc-cta-mini, .svc-cta-bottom, .svc-chevron { display: none; }
.svc-tab[aria-current="true"] .svc-count { background: var(--green-50); border-color: transparent; color: var(--green-700); }

/* conteúdo da área */
.area-num {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--graphite-800);
  color: var(--white);
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 700;
  position: relative;
}
.area-num::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: -1px;
  height: 3px;
  border-radius: 3px;
  background: var(--gradient-brand);
}

.svc-panels { padding: 26px 28px 30px; }
.svc-panels .service-area { scroll-margin-top: calc(var(--header-h-scrolled) + 20px); }
.svc-panels .service-area.is-entering { animation: svc-in .35s var(--ease); }
@keyframes svc-in { from { opacity: 0; transform: translateY(8px); } }
/* sem JavaScript (ou durante a busca) as áreas aparecem em sequência */
.svc-panels .service-area:not([hidden]) ~ .service-area:not([hidden]) {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--gray-200);
}

.svc-head { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 22px; }
.svc-head .area-num { width: 56px; height: 56px; font-size: 20px; border-radius: 15px; }
.svc-head-text { flex: 1; min-width: 0; }
.svc-head h2 { font-size: clamp(22px, 2.2vw, 28px); margin: 2px 0 6px; }
.svc-head p { color: var(--graphite-500); font-size: 16px; margin: 0; }
.svc-head .btn { flex-shrink: 0; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.service-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--gray-200);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.service-card:hover {
  transform: translateY(-3px);
  border-color: rgba(3, 193, 74, .5);
  box-shadow: 0 12px 26px rgba(3, 193, 74, .14);
}
.svc-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--gradient-brand);
  color: var(--white);
}
.svc-icon .icon { width: 22px; height: 22px; }
.service-card h3 { font-size: 16.5px; line-height: 1.35; margin: 2px 0 6px; }
.service-card p { font-size: 14.5px; line-height: 1.55; color: var(--graphite-500); margin: 0; }
.service-card mark, .svc-tab mark {
  padding: 0 2px;
  border-radius: 3px;
  background: rgba(3, 219, 82, .25);
  color: inherit;
}

.svc-results-info { margin: 0 0 18px; font-size: 14px; color: var(--graphite-500); }
.svc-results-info:empty { display: none; }
.svc-empty { padding: 48px 16px; text-align: center; color: var(--graphite-500); }
.svc-empty p { margin-bottom: 18px; }
.svc-empty strong { color: var(--graphite-800); }

/* a janela não corta a coluna fixa (overflow: clip não cria área de rolagem) */
.portal.svc-portal { overflow: hidden; overflow: clip; scroll-margin-top: calc(var(--header-h-scrolled) + 16px); }
.svc-nav-inner { position: sticky; top: calc(var(--header-h-scrolled) + 16px); }
.svc-portal [hidden] { display: none !important; }

/* janela na altura da tela (computador, tablet e celular): cabeçalho fixo, só a lista de serviços rola */
.portal.svc-portal {
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--header-h-scrolled) - 32px);
  height: calc(100dvh - var(--header-h-scrolled) - 32px);
  min-height: 560px;
}
.svc-body { flex: 1; min-height: 0; grid-template-rows: minmax(0, 1fr); }
.svc-panels { display: flex; flex-direction: column; min-height: 0; padding-bottom: 0; }
.svc-panels .service-area:not([hidden]) { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.svc-panels .service-grid {
  flex: 1;
  min-height: 0;
  align-content: start;
  overflow-y: auto;
  overscroll-behavior: contain;
  margin: 0 -10px;
  padding: 4px 10px 32px;
  scrollbar-width: thin;
  scrollbar-color: #C9D1CC transparent;
  /* esmaecido embaixo: indica que há mais serviços */
  -webkit-mask-image: linear-gradient(#000 calc(100% - 36px), transparent);
  mask-image: linear-gradient(#000 calc(100% - 36px), transparent);
}
.svc-cta-bottom { flex-shrink: 0; }
/* na busca, os resultados de várias áreas rolam juntos */
.svc-portal.is-searching .svc-panels { display: block; overflow-y: auto; padding-bottom: 28px; }
.svc-portal.is-searching .service-area:not([hidden]) { display: block; }
.svc-portal.is-searching .svc-panels .service-grid { overflow: visible; margin: 0; padding: 0; -webkit-mask-image: none; mask-image: none; }

/* computador: coluna das áreas com a busca fixa; só a lista de áreas rola, se não couber */
@media (min-width: 1101px) {
  .svc-nav { display: flex; flex-direction: column; min-height: 0; padding-bottom: 12px; }
  .svc-nav-inner { position: static; display: flex; flex-direction: column; flex: 1; min-height: 0; }
  .svc-search { flex-shrink: 0; }
  .svc-tabs {
    flex: 1;
    min-height: 0;
    align-content: start;
    overflow-y: auto;
    overscroll-behavior: contain;
    margin: 0 -6px;
    padding: 2px 6px 8px;
    scrollbar-width: thin;
    scrollbar-color: #C9D1CC transparent;
  }
}
/* tablet e celular: busca e grade de áreas no topo da janela; no fim da lista, o dedo segue rolando a página */
@media (max-width: 1100px) {
  .portal.svc-portal { min-height: 520px; }
  .svc-body { grid-template-rows: auto minmax(0, 1fr); }
  .svc-panels .service-grid { overscroll-behavior: auto; }
}

@media (max-width: 1100px) {
  .svc-body { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .svc-nav { min-width: 0; }
  .svc-nav { padding: 14px; border-right: 0; border-bottom: 1px solid var(--gray-200); }
  .svc-nav-inner { position: static; }
  .svc-search { margin-bottom: 10px; }
  /* áreas em grade 4 x 2: todas visíveis, trocar com um toque */
  .svc-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .svc-tab {
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    min-height: 72px;
    padding: 10px 4px 8px;
    background: var(--white);
    border-color: var(--gray-200);
    text-align: center;
    position: relative;
  }
  .svc-tab-icon { width: 34px; height: 34px; }
  /* nome completo continua para leitores de tela; na tela aparece o nome curto */
  .svc-tab-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .svc-tab-short { display: block; font-size: 12.5px; line-height: 1.2; font-weight: 600; color: inherit; }
  .svc-count { position: absolute; top: 5px; right: 5px; margin: 0; padding: 0 6px; font-size: 10.5px; line-height: 17px; }
  .svc-tab[aria-current="true"] { box-shadow: 0 6px 16px rgba(3, 193, 74, .16); }
}
@media (max-width: 640px) {
  .svc-panels { padding: 16px 12px 20px; }
  .svc-tabs { gap: 6px; }
  .svc-tab { min-height: 66px; padding: 8px 2px 6px; border-radius: 12px; }
  .svc-tab-icon { width: 30px; height: 30px; border-radius: 9px; }
  .svc-tab-icon .icon { width: 16px; height: 16px; }
  .svc-tab-short { font-size: 11.5px; }

  .svc-head { gap: 12px; margin-bottom: 14px; }
  .svc-head .area-num { width: 40px; height: 40px; font-size: 15px; border-radius: 11px; }
  .svc-head h2 { font-size: 20px; margin: 0 0 4px; }
  .svc-head p { font-size: 14px; line-height: 1.5; }
  .svc-cta-top { display: none; }
  .svc-cta-mini {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 36px;
    margin-top: 2px;
    font-size: 14px;
    font-weight: 600;
    color: var(--green-700);
    text-decoration: none;
  }
  .svc-cta-mini .icon { width: 15px; height: 15px; }
  .svc-cta-bottom { display: flex; width: 100%; margin-top: 16px; }

  .service-grid { grid-template-columns: 1fr; gap: 8px; }
  .service-card { align-items: flex-start; padding: 12px 12px 12px 14px; gap: 12px; border-radius: 12px; }
  .svc-icon { width: 36px; height: 36px; border-radius: 10px; }
  .svc-icon .icon { width: 18px; height: 18px; }
  .service-card h3 { font-size: 15px; margin: 7px 0 0; }
  .service-card p { font-size: 14px; margin-top: 8px; }
  .service-card:hover { transform: none; }
  /* lista compacta: a descrição abre ao tocar (com JavaScript) */
  .svc-compact .service-card { cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .svc-compact .service-card p { display: none; }
  .svc-compact .service-card.is-open p, .svc-compact.is-searching .service-card p { display: block; }
  .svc-compact .svc-chevron { display: grid; place-items: center; width: 28px; height: 36px; margin-left: auto; flex-shrink: 0; color: var(--graphite-500); }
  .svc-compact .svc-chevron .icon { width: 18px; height: 18px; transition: transform .25s var(--ease); }
  .svc-compact .service-card.is-open { border-color: rgba(3, 193, 74, .45); }
  .svc-compact .service-card.is-open .svc-chevron .icon { transform: rotate(180deg); color: var(--green-700); }
}

/* celular com a janela fixa: topo e cabeçalho da área compactos, botão sempre visível no rodapé da janela */
@media (max-width: 640px) {
  .portal.svc-portal {
    height: calc(100vh - var(--header-h-scrolled) - 24px);
    height: calc(100dvh - var(--header-h-scrolled) - 24px);
    min-height: 460px;
  }
  .svc-nav { padding: 10px 10px 10px; }
  .svc-search { margin-bottom: 8px; }
  .svc-search input { min-height: 40px; padding-top: 8px; padding-bottom: 8px; font-size: 14.5px; }
  .svc-panels { padding: 12px 12px 12px; }
  .svc-head { align-items: center; gap: 10px; margin-bottom: 10px; }
  .svc-head .area-num { width: 34px; height: 34px; font-size: 13px; border-radius: 10px; }
  .svc-head .area-num::after { left: 8px; right: 8px; }
  .svc-head h2 { font-size: 17.5px; line-height: 1.25; margin: 0; }
  .svc-head p { display: none; }
  .svc-cta-mini { min-height: 26px; margin-top: 1px; font-size: 13px; }
  .svc-panels .service-grid { margin: 0 -6px; padding: 2px 6px 24px; }
  /* deixa espaço à direita para o botão flutuante do WhatsApp */
  .svc-cta-bottom { width: calc(100% - 60px); margin-top: 10px; min-height: 46px; }
  .svc-tab { min-height: 58px; padding: 6px 2px 5px; gap: 4px; }
  .svc-tab-icon { width: 28px; height: 28px; }
}
/* telas baixas (celular antigo ou deitado): a janela volta à rolagem normal da página */
@media (max-width: 1100px) and (max-height: 600px) {
  .portal.svc-portal { height: auto; min-height: 0; }
  .svc-body { grid-template-rows: none; }
  .svc-panels { display: block; padding-bottom: 20px; }
  .svc-panels .service-area:not([hidden]) { display: block; }
  .svc-panels .service-grid { overflow: visible; margin: 0; padding: 0; -webkit-mask-image: none; mask-image: none; }
}

/* ==== 15. PÁGINA DE TEXTO (POLÍTICA) ==== */
.prose { max-width: 780px; }
.prose h2 { font-size: 24px; margin-top: 2em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--graphite-700); }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--green-700); }
.prose .updated { font-size: 14px; color: var(--graphite-500); }

/* ==== 15.1 ÁREA DO CLIENTE (painel em janela) ==== */
.page-hero.page-hero-portal { padding: calc(var(--header-h) + 28px) 0 104px; }
.page-hero-portal .breadcrumb { margin-bottom: 12px; }
.page-hero-portal h1 { font-size: clamp(30px, 3vw, 40px); margin-bottom: 6px; }
.page-hero-portal p { font-size: 16.5px; }

.client-page { background: var(--gray-100); padding-bottom: 72px; }

.portal {
  position: relative;
  margin-top: -72px;
  border-radius: 20px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  box-shadow: 0 30px 80px rgba(22, 22, 24, .18);
  overflow: hidden;
}
/* barra de título no estilo de janela (como o softphone) */
.portal-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 44px;
  padding: 0 18px;
  background: var(--graphite-800);
  color: rgba(255, 255, 255, .78);
  font-size: 13px;
  font-weight: 600;
}
.portal-bar .dots { display: flex; gap: 7px; }
.portal-bar .dots i { width: 11px; height: 11px; border-radius: 50%; background: #FF5F57; }
.portal-bar .dots i:nth-child(2) { background: #FEBC2E; }
.portal-bar .dots i:nth-child(3) { background: #28C840; }
.portal-title { display: flex; align-items: center; gap: 8px; }
.portal-title .icon { width: 15px; height: 15px; color: var(--green-400); stroke-width: 2.25; }

.portal-body { display: grid; grid-template-columns: minmax(0, 1fr) 330px; }
.portal-main { display: grid; gap: 24px; padding: 24px 28px 28px; }
.portal-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px; }
.portal-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 22px 24px;
  background: var(--gray-100);
  border-left: 1px solid var(--gray-200);
}

.portal-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--graphite-500);
}
.portal-label .icon { width: 16px; height: 16px; color: var(--green-700); }
.portal-label small {
  margin-left: auto;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--graphite-500);
}
.portal-side .portal-label { margin-bottom: 0; }

/* blocos clicáveis */
.portal-tiles {
  display: grid;
  grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 16px 16px 15px;
  border-radius: 14px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  color: var(--graphite-800);
  text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.tile-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: var(--gradient-brand);
  color: var(--white);
}
.tile-icon .icon { width: 21px; height: 21px; }
/* ícones dos aplicativos (imagem oficial ou símbolo na cor da marca) */
.tile-icon.tile-app { background: var(--white); border: 1px solid var(--gray-200); padding: 5px; overflow: hidden; box-shadow: 0 4px 10px rgba(22, 22, 24, .06); }
.tile-icon.tile-app img { width: 100%; height: 100%; object-fit: contain; }
.tile-icon.tile-app-full { padding: 0; border: 0; }
.tile-icon.tile-app-full img { object-fit: cover; }
.tile-icon.tile-brand { background: var(--brand); box-shadow: 0 4px 10px rgba(22, 22, 24, .12); }
.tile-icon .icon-fill { width: 22px; height: 22px; }
/* ícones dos sistemas: estilo de aplicativo, cada um com a sua cor e um brilho no topo */
.tile-icon.tile-sys {
  position: relative;
  overflow: hidden;
  background: var(--sys-cor);
  box-shadow: 0 6px 14px var(--sys-sombra), inset 0 -2px 0 rgba(0, 0, 0, .12);
}
.tile-icon.tile-sys::before {
  content: "";
  position: absolute;
  inset: 0 0 50% 0;
  background: linear-gradient(rgba(255, 255, 255, .28), rgba(255, 255, 255, 0));
  pointer-events: none;
}
.tile-icon.tile-sys .icon { position: relative; width: 22px; height: 22px; stroke-width: 2; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .18)); }
.sys-verde    { --sys-cor: linear-gradient(145deg, #2EE877 0%, #03C14A 45%, #027A31 100%); --sys-sombra: rgba(3, 193, 74, .35); }
.sys-whatsapp { --sys-cor: linear-gradient(145deg, #5AF08F 0%, #25D366 40%, #0E8F6E 100%); --sys-sombra: rgba(18, 140, 126, .35); }
.sys-azul     { --sys-cor: linear-gradient(145deg, #60A5FA 0%, #2563EB 50%, #1E3A8A 100%); --sys-sombra: rgba(37, 99, 235, .35); }
.sys-laranja  { --sys-cor: linear-gradient(145deg, #FDBA4D 0%, #F59E0B 45%, #C2410C 100%); --sys-sombra: rgba(245, 158, 11, .38); }
.sys-roxo     { --sys-cor: linear-gradient(145deg, #C4A5FF 0%, #8B5CF6 45%, #5B21B6 100%); --sys-sombra: rgba(139, 92, 246, .35); }
.tile-go { position: absolute; top: 14px; right: 14px; color: var(--graphite-500); opacity: .45; transition: opacity .25s, color .25s, transform .25s var(--ease); }
.tile-go .icon { width: 16px; height: 16px; }
.tile strong { font-size: 15.5px; line-height: 1.3; }
.tile-sub { margin-top: 2px; font-size: 13.5px; line-height: 1.4; color: var(--graphite-500); }
.tile:hover, .tile:focus-visible {
  color: var(--graphite-800);
  border-color: rgba(3, 193, 74, .5);
  box-shadow: 0 12px 26px rgba(3, 193, 74, .14);
  transform: translateY(-3px);
}
.tile:hover .tile-go, .tile:focus-visible .tile-go { opacity: 1; color: var(--green-700); transform: translate(2px, -2px); }

.portal-hint { margin: 10px 0 0; font-size: 13px; line-height: 1.45; color: var(--graphite-500); }

/* lista de suporte */
.portal-list { display: grid; gap: 8px; list-style: none; margin: 0; padding: 0; }
.portal-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 9px 12px;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  color: var(--graphite-800);
  text-decoration: none;
  transition: border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.portal-list .icon-bubble { width: 38px; height: 38px; flex-shrink: 0; }
.portal-list .icon-bubble .icon { width: 19px; height: 19px; }
.row-text { display: flex; flex-direction: column; min-width: 0; }
.row-text strong { font-size: 14.5px; line-height: 1.3; }
.row-text span { font-size: 13px; color: var(--graphite-500); overflow-wrap: anywhere; }
.portal-list a > .icon { margin-left: auto; width: 16px; height: 16px; color: var(--graphite-500); flex-shrink: 0; transition: color .2s; }
.portal-list a:hover, .portal-list a:focus-visible { color: var(--graphite-800); border-color: rgba(3, 193, 74, .5); box-shadow: var(--shadow); transform: translateX(2px); }
.portal-list a:hover > .icon { color: var(--green-700); }

.portal-note {
  display: flex;
  gap: 10px;
  margin: auto 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #FFF8E6;
  border: 1px solid #F5D78E;
  color: #5C4300;
  font-size: 13px;
  line-height: 1.45;
}
.portal-note .icon { width: 18px; height: 18px; color: #B07800; flex-shrink: 0; margin-top: 1px; }

@media (max-width: 1100px) {
  .portal-body { grid-template-columns: 1fr; }
  .portal-side { border-left: 0; border-top: 1px solid var(--gray-200); }
  .portal-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
  .portal-tiles { --cols: 2 !important; }
  .portal-row { grid-template-columns: 1fr; }
  #aplicativos .portal-tiles { --cols: 2 !important; }
}
@media (max-width: 640px) {
  .page-hero.page-hero-portal { padding-bottom: 84px; }
  .portal { margin-top: -56px; border-radius: 16px; }
  .portal-main, .portal-side { padding: 18px 14px; }
  .portal-main { gap: 20px; }
  .portal-list { grid-template-columns: 1fr; }
  .portal-label small { display: none; }
  .portal-tiles { gap: 10px; }
  .tile { padding: 12px 12px 11px; border-radius: 12px; }
  .tile-icon { width: 36px; height: 36px; margin-bottom: 8px; border-radius: 10px; }
  .tile-icon .icon { width: 18px; height: 18px; }
  .tile-go { top: 10px; right: 10px; }
  .tile strong { font-size: 14px; }
  .tile-sub { font-size: 12.5px; }
  .portal-list a { min-height: 52px; padding: 8px 10px; }
  .portal-list .icon-bubble { width: 34px; height: 34px; }
}

/* Área do Cliente no celular: categorias no topo, janela fixa e atalhos em lista */
.portal-tabs { display: none; }
.portal [hidden] { display: none !important; }
@media (max-width: 640px) {
  .portal-tabs { display: block; }
  .portal-cliente .portal-body { display: flex; flex-direction: column; }
  .portal-tiles { --cols: 1 !important; gap: 8px; }
  .tile {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 20px;
    grid-template-areas: "icone titulo ir" "icone texto ir";
    column-gap: 12px;
    row-gap: 1px;
    align-items: center;
    padding: 10px 12px;
  }
  .tile .tile-icon { grid-area: icone; width: 40px; height: 40px; margin: 0; }
  .tile strong { grid-area: titulo; align-self: end; font-size: 14.5px; }
  .tile .tile-sub { grid-area: texto; align-self: start; margin: 0; font-size: 12.5px; }
  .tile .tile-go { grid-area: ir; position: static; opacity: .6; }
  .tile:hover, .tile:focus-visible { transform: none; }
  .portal-cliente .portal-main { gap: 16px; }
  .portal-cliente .portal-label { margin-bottom: 10px; }
  .portal-tabbed .portal-label { font-size: 11.5px; }
}
/* janela fixa (com as categorias ativas pelo JavaScript); telas baixas mantêm a rolagem normal */
@media (max-width: 640px) and (min-height: 600px) {
  .portal.portal-cliente.portal-tabbed {
    display: flex;
    flex-direction: column;
    height: calc(100vh - var(--header-h-scrolled) - 24px);
    height: calc(100dvh - var(--header-h-scrolled) - 24px);
    min-height: 460px;
  }
  .portal-tabbed .portal-body { flex: 1; min-height: 0; }
  .portal-tabbed .portal-tabs { flex-shrink: 0; }
  .portal-tabbed .portal-main:not([hidden]),
  .portal-tabbed .portal-side:not([hidden]) {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: thin;
  }
  .portal-tabbed .portal-side { border-top: 0; }
}

/* ==== 16. RESPONSIVO ==== */
@media (max-width: 1200px) {
  :root { --gutter: 28px; }
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .hero-grid { gap: 32px; }
}

/* header em telas intermediárias: compacta para caber numa linha */
@media (max-width: 1320px) {
  .main-nav .nav-link { padding: 10px 9px; font-size: 14.5px; }
  .nav-link::after { left: 9px; right: 9px; }
  .header-inner { gap: 18px; }
  .brand img { height: 40px; }
}
@media (max-width: 1200px) {
  .brand img { height: 36px; }
}
@media (max-width: 1100px) {
  .main-nav { display: none; }
  .menu-toggle { display: block; margin-left: 4px; }
  /* no celular, a Área do Cliente vira um botão redondo ao lado do menu */
  .header-client { margin-left: auto; width: 44px; padding: 0; }
  .header-client .label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  /* a loja continua com texto ("Loja") no celular: é o atalho principal */
  .header-loja { margin-left: auto; --btn-pad: 9px 14px; font-size: 14px; }
  .header-loja .label-long { display: none; }
  .header-loja .label-short { display: inline; }
  .header-loja + .header-client { margin-left: -14px; }
}

@media (max-width: 980px) {
  .brand img { height: 36px; }
  .section { padding: 80px 0; }
  .hero { padding-top: calc(var(--header-h) + 48px); }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; padding-bottom: 64px; }
  .hub { margin: 0 auto; }
  .hero-badges ul { grid-template-columns: repeat(2, 1fr); }
  .hero-badges li:nth-child(3) { border-left: 0; }
  .hero-badges li:nth-child(n + 3) { border-top: 1px solid rgba(255, 255, 255, .08); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 40px 28px; }
  .steps::before { display: none; }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .timeline li::after { display: none; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .segments-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --gutter: 20px; }
  body { font-size: 16px; }
  h1 { font-size: 34px; }
  h2 { font-size: 28px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 40px; }
  .section-head p, .hero-copy .lead, .page-hero p { font-size: 17px; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; }
  .hero-actions, .cta-actions { width: 100%; }
  .hub-chip { width: 80px; font-size: 11.5px; gap: 6px; }
  .hub-chip .hub-tile { width: 44px; height: 44px; border-radius: 13px; }
  .hub-chip .hub-tile .icon { width: 21px; height: 21px; }
  .hero-badges li { justify-content: flex-start; padding: 18px 8px; font-size: 14px; gap: 8px; }
  .hero-badges .icon { width: 20px; height: 20px; }
  .areas-grid, .features-grid, .steps, .timeline { grid-template-columns: 1fr; }
  .feature { padding: 22px 20px; }
  .integrated-note { border-radius: var(--radius); font-size: 16px; padding: 14px 18px; }
  .cta-band { padding: 64px 0; }
  .form-card { padding: 26px 20px; border-radius: var(--radius); }
  .form-grid { grid-template-columns: 1fr; }
  .form-actions .btn { width: 100%; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; padding: 64px 0 40px; }
  .whatsapp-float { right: 16px; bottom: 16px; width: 56px; height: 56px; }
  .back-to-top { right: 22px; bottom: 84px; }
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; width: auto; }
  .page-hero { padding-bottom: 56px; }
  .page-hero .speed-lines { display: none; }
}

/* celulares bem pequenos (até 400 px): topo compacto para logo, Área do Cliente e menu caberem */
@media (max-width: 400px) {
  .header-inner { gap: 8px; }
  .brand img { height: 30px; }
  .header-client { width: 40px; min-height: 40px; height: 40px; }
  .header-loja { min-height: 40px; --btn-pad: 8px 11px; font-size: 13px; gap: 6px; }
  .header-loja + .header-client { margin-left: 0; }
  .header-loja .icon { width: 16px; height: 16px; }
  .menu-toggle { width: 44px; height: 44px; }
  .menu-toggle span { left: 11px; }
  .menu-toggle span:nth-child(1) { top: 14px; }
  .menu-toggle span:nth-child(2) { top: 21px; }
  .menu-toggle span:nth-child(3) { top: 28px; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1),
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { top: 21px; }
}
@media (max-width: 360px) {
  .svc-tab-short { font-size: 10.5px; }
}

/* Contato no celular: janela com atalhos de contato imediato e formulário integrado */
.contact-bar, .contact-quick, .contact-quick-info, .form-title { display: none; }
@media (max-width: 640px) {
  .section.contact-section { padding: 20px 0 48px; scroll-margin-top: var(--header-h-scrolled); }
  .contact-window {
    overflow: hidden;
    border-radius: 18px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    box-shadow: 0 20px 50px rgba(22, 22, 24, .14);
  }
  .contact-window .contact-bar { display: flex; }
  .contact-window .contact-grid { gap: 0; }
  .contact-window .contact-info { padding: 18px 16px 16px; }
  .contact-window .contact-info .eyebrow { display: none; }
  .contact-window .contact-info h2 { font-size: 22px; margin-bottom: 6px; }
  .contact-window .contact-info p.intro { font-size: 14.5px; line-height: 1.55; margin-bottom: 16px; }
  .contact-window .contact-list { display: none; }

  .contact-quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; list-style: none; margin: 0; padding: 0; }
  .contact-quick a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    min-height: 82px;
    padding: 12px 6px 10px;
    border-radius: 14px;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    color: var(--graphite-800);
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: border-color .2s, background-color .2s;
  }
  .contact-quick a:active { background: var(--green-50); border-color: rgba(3, 193, 74, .45); }
  .cq-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--gradient-brand);
    color: var(--white);
    box-shadow: 0 6px 14px rgba(3, 193, 74, .28);
  }
  .cq-icon .icon { width: 21px; height: 21px; }
  .cq-wa { background: linear-gradient(145deg, #5AF08F 0%, #25D366 40%, #0E8F6E 100%); box-shadow: 0 6px 14px rgba(18, 140, 126, .3); }
  .cq-mail { background: linear-gradient(145deg, #60A5FA 0%, #2563EB 50%, #1E3A8A 100%); box-shadow: 0 6px 14px rgba(37, 99, 235, .3); }
  .contact-quick-info { display: block; margin: 10px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--graphite-500); text-align: center; }
  .contact-quick-info .icon { display: inline-block; width: 13px; height: 13px; vertical-align: -2px; color: var(--green-700); }

  .contact-window .form-card {
    padding: 16px 16px 18px;
    border: 0;
    border-top: 1px solid var(--gray-200);
    border-radius: 0;
    background: var(--gray-100);
    box-shadow: none;
  }
  .form-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--graphite-500);
  }
  .form-title .icon { width: 16px; height: 16px; color: var(--green-700); }
  .contact-window .form-grid { gap: 12px; }
  .contact-window .field input, .contact-window .field select, .contact-window .field textarea { min-height: 46px; padding: 10px 12px; }
  .contact-window .field textarea { min-height: 104px; }
  .contact-window .form-actions { margin-top: 4px; }
  .contact-window .form-note { width: 100%; text-align: center; }
}

/* Contato no celular: janela na altura da tela; o topo ("Fale com a SIPCORP" e atalhos) fica fixo
   e só o formulário rola. No fim do formulário, a rolagem continua para o rodapé. */
@media (max-width: 640px) and (min-height: 600px) {
  .contact-window {
    display: flex;
    flex-direction: column;
    height: calc(100vh - var(--header-h-scrolled) - 32px);
    height: calc(100dvh - var(--header-h-scrolled) - 32px);
    min-height: 460px;
  }
  .contact-window .contact-bar { flex-shrink: 0; }
  .contact-window .contact-grid { display: flex; flex-direction: column; align-items: stretch; flex: 1; min-height: 0; }
  .contact-window .contact-info { flex-shrink: 0; padding-bottom: 14px; }
  .contact-window .contact-info p.intro { display: none; }
  .contact-window .contact-info h2 { margin-bottom: 12px; }
  .contact-window .form-card {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #C9D1CC transparent;
  }
}

/* Rodapé no celular: logo centralizado, Soluções em 2 colunas, Empresa e Políticas lado a lado */
@media (max-width: 640px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px 18px; padding: 44px 0 28px; }
  .footer-brand { grid-column: 1 / -1; text-align: center; padding-bottom: 24px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .footer-brand img { height: 40px; margin: 0 auto 14px; }
  .footer-brand p { max-width: 320px; margin: 0 auto; font-size: 14px; }
  .site-footer h2 { margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 12px; }
  .footer-col .footer-links a, .footer-col .footer-links button { min-height: 38px; font-size: 14px; line-height: 1.3; }
  .footer-sol { grid-column: 1 / -1; order: 1; }
  .footer-sol .footer-links { grid-template-columns: 1fr 1fr; column-gap: 18px; }
  .footer-emp { order: 2; }
  .footer-pol { order: 3; }
  .footer-ctt { grid-column: 1 / -1; order: 4; }
  .footer-ctt .footer-links { gap: 2px; }
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 20px 0 96px;   /* espaço para o botão flutuante do WhatsApp */
    text-align: center;
    font-size: 13px;
  }
}

/* ==== 16.1 PÁGINA INICIAL NO CELULAR: estrutura mais compacta e organizada ==== */
@media (max-width: 640px) {
  .section { padding: 48px 0; }
  .section-head { margin-bottom: 24px; }
  .section-head h2, .contact-info h2 { font-size: 24px; }
  .section-head p { font-size: 15.5px; }
  .eyebrow { margin-bottom: 10px; font-size: 12px; }

  /* topo: a ilustração vira uma grade 4 x 2 com as áreas acendendo em sequência */
  .hero { padding-top: calc(var(--header-h) + 32px); }
  .hero-grid { gap: 28px; padding-bottom: 36px; }
  .hero h1 { font-size: 31px; }
  .hero-copy .lead { font-size: 15.5px; margin-bottom: 22px; }
  .hub {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px 6px;
    max-width: none;
    aspect-ratio: auto;
    padding: 14px 10px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .10);
    box-shadow: 0 0 60px rgba(3, 193, 74, .12) inset;
  }
  .hub::before {
    content: "Nossas soluções";
    grid-column: 1 / -1;
    margin: 0 4px 2px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--green-400);
  }
  .hub-orbit, .hub-lines, .hub-core { display: none; }
  .hub-chip {
    position: static;
    translate: none;
    width: auto;
    gap: 6px;
    font-size: 11.5px;
    animation: none;
  }
  .hub-chip .hub-tile { width: 48px; height: 48px; border-radius: 14px; }
  .hub-chip .hub-tile .icon { width: 22px; height: 22px; }
  .hero .speed-lines { display: none; }
  .hero-badges li { padding: 14px 8px; }

  /* "Nossas soluções": lista compacta (ícone, nome e seta) */
  .areas-grid { gap: 8px; }
  .area-card {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 20px;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(22, 22, 24, .05);
  }
  .area-card::before { display: none; }
  .area-card .icon-badge { width: 42px; height: 42px; margin: 0; border-radius: 12px; box-shadow: none; }
  .area-card .icon-badge .icon { width: 21px; height: 21px; }
  .area-card h3 { margin: 0; font-size: 15.5px; line-height: 1.3; }
  .area-card p { display: none; }
  .area-card .more { margin: 0; font-size: 0; color: var(--graphite-500); }
  .area-card .more .icon { width: 18px; height: 18px; }
  .area-card:hover { transform: none; }

  /* "Do telefone ao WhatsApp": linha do tempo vertical */
  .steps { gap: 18px; }
  .steps::before {
    display: block;
    top: 26px;
    bottom: 26px;
    left: 25px;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, var(--green-400), var(--green-700));
  }
  .step {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    grid-template-areas: "icone titulo" "icone texto";
    column-gap: 14px;
    align-items: start;
    text-align: left;
  }
  .step-icon { grid-area: icone; width: 52px; height: 52px; margin: 0; box-shadow: 0 0 0 6px var(--gray-100); }
  .step-icon .icon { width: 22px; height: 22px; }
  .step-icon::after { width: 20px; height: 20px; font-size: 11px; top: -6px; right: -6px; }
  .step h3 { grid-area: titulo; margin: 4px 0 2px; font-size: 16px; }
  .step p { grid-area: texto; font-size: 14px; }
  .integrated-note { margin-top: 28px; font-size: 15px; }

  /* diferenciais */
  .features-grid { gap: 10px; }
  .feature { padding: 16px; gap: 14px; }
  .feature .icon-bubble { width: 42px; height: 42px; }
  .feature h3 { font-size: 15.5px; margin-bottom: 4px; }
  .feature p { font-size: 14px; }

  /* "Como trabalhamos": número à esquerda */
  .timeline { gap: 10px; }
  .timeline li {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    grid-template-areas: "num titulo" "num texto";
    column-gap: 12px;
    align-items: start;
    padding: 16px;
  }
  .timeline .num { grid-area: num; margin: 0; font-size: 34px; }
  .timeline h3 { grid-area: titulo; margin: 2px 0 4px; font-size: 16px; }
  .timeline p { grid-area: texto; font-size: 14px; }

  /* segmentos: ícone à esquerda */
  .segments-grid { gap: 10px; }
  .segment {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    grid-template-areas: "icone titulo" "icone texto";
    column-gap: 14px;
    align-items: center;
    padding: 16px;
  }
  .segment .icon-badge { grid-area: icone; width: 46px; height: 46px; margin: 0; border-radius: 13px; }
  .segment h3 { grid-area: titulo; margin: 0 0 2px; font-size: 16.5px; }
  .segment p { grid-area: texto; font-size: 14px; }

  /* chamada final */
  .cta-band { padding: 44px 0; }
  .cta-band h2 { font-size: 24px; }
}

/* topo da página inicial: versões curtas (só no celular) */
.lead-curta, .hero-actions .label-short { display: none; }
@media (max-width: 640px) {
  .hero { padding-top: calc(var(--header-h) + 8px); }
  .hero-copy > .eyebrow { display: none; }
  .hero h1 { font-size: 26px; line-height: 1.2; margin-bottom: 10px; }
  .lead-longa { display: none; }
  .hero-copy .lead-curta { display: block; margin-bottom: 14px; font-size: 15px; line-height: 1.5; }
  .hero-actions { display: grid; grid-template-columns: 1.25fr 1fr; gap: 10px; }
  .hero-actions .btn { width: auto; min-height: 48px; padding: 12px 10px; font-size: 15px; }
  .hero-actions .label-long { display: none; }
  .hero-actions .label-short { display: inline; }
  .hero-contact { margin-top: 6px; font-size: 14px; }
  .hero-grid { gap: 12px; padding-bottom: 28px; }
  .hub { gap: 8px 6px; padding: 10px 10px 12px; }
  .hub-chip { gap: 5px; font-size: 11px; }
  .hub-chip .hub-tile { width: 44px; height: 44px; border-radius: 13px; }
  .hub-chip .hub-tile .icon { width: 20px; height: 20px; }
}

/* ==== 16.2 ABERTURA DA PÁGINA INICIAL = ALTURA DA TELA ====
 * A abertura ocupa a tela inteira (computador e celular), com a faixa "Comunicação · Redes · Suporte · Projetos"
 * encostada no fim: a próxima seção (fundo branco) só aparece ao rolar.
 * svh = altura visível no celular (sem pular quando a barra do navegador some); vh é o reserva para navegadores antigos.
 */
.hero {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}
.hero-grid { flex: 1 0 auto; align-content: center; }
.hero-badges { flex-shrink: 0; }
/* telas de computador baixas (notebook 1366 × 768, janela menor): tudo menor para caber */
@media (min-width: 981px) and (max-height: 860px) {
  .hero { padding-top: calc(var(--header-h) + 28px); }
  .hero-grid { gap: 40px; padding-bottom: 32px; }
  .hero h1 { font-size: clamp(30px, 5.2vh, 46px); }
  .hero-copy .lead { margin-bottom: 22px; font-size: 17px; }
  .hub { max-width: min(520px, 58vh); }
  .hero-badges li { padding: 18px 12px; }
}
@media (min-width: 981px) and (max-height: 700px) {
  .hero-copy > .eyebrow { margin-bottom: 10px; }
  .hero h1 { font-size: clamp(28px, 5vh, 36px); margin-bottom: 12px; }
  .hero-copy .lead { font-size: 16px; line-height: 1.55; }
  .hub { max-width: min(520px, 52vh); }
  .hero-badges li { padding: 14px 10px; font-size: 14.5px; }
}
/* tablet e celular: o conteúdo fica no alto e a faixa no fim (sem espaço vazio no meio quando a tela é alta) */
@media (max-width: 980px) {
  .hero-grid { align-content: start; }
}
/* tablet (uma coluna): ilustração menor para texto + ilustração + faixa caberem na tela */
@media (min-width: 641px) and (max-width: 980px) {
  .hero { padding-top: calc(var(--header-h) + 32px); }
  .hero-grid { gap: 24px; padding-bottom: 32px; }
  .hub { max-width: min(400px, 32vh); }
  .hero-badges li { padding: 14px 10px; }
}
/* celular baixo (até ~780 px de altura): aperta o topo */
@media (max-width: 640px) and (max-height: 800px) {
  .hero h1 { font-size: 24px; }
  .hero-copy .lead-curta { margin-bottom: 12px; font-size: 14.5px; }
  .hero-grid { gap: 10px; padding-bottom: 14px; }
  .hub { gap: 6px 4px; padding: 8px 8px 10px; }
  .hub::before { margin-bottom: 0; }
  .hub-chip .hub-tile { width: 40px; height: 40px; }
  .hero-badges li { padding: 10px 6px; font-size: 13.5px; }
}
@media (max-width: 640px) and (max-height: 690px) {
  .hero h1 { font-size: 22px; margin-bottom: 8px; }
  .hero-actions .btn { min-height: 44px; }
  .hero-contact { margin-top: 2px; }
  .hub-chip { font-size: 10.5px; }
  .hub-chip .hub-tile { width: 36px; height: 36px; border-radius: 11px; }
  .hero-badges li { padding: 8px 6px; font-size: 13px; }
}

/* ==== 17. MOVIMENTO REDUZIDO ==== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
