/* =========================================================
   BE Tecnologia — folha de estilos principal
   Mobile first · tokens no :root · temas por segmento no <body>
   ========================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  --navy: #0B1F3A;
  --navy-800: #102a4d;
  --navy-700: #16365f;
  --blue: #1F6FEB;
  --blue-700: #1A5FCC;
  --blue-50: #EDF4FF;
  --cyan: #22D3EE;
  --white: #FFFFFF;
  --gray-50: #F5F8FC;
  --gray-100: #EBF0F6;
  --gray-200: #DCE3EC;
  --gray-300: #C3CDDA;
  --text: #1E2B3C;
  --muted: #4B5A6E;
  --success: #12704A;
  --success-bg: #EAF7F0;
  --error: #B42318;
  --error-bg: #FDF0EE;
  --whatsapp: #0E7A43;

  --c-construcao: #F97316; --c-construcao-text: #B4440B; --c-construcao-soft: #FFF4EC;
  --c-saude: #14B8A6;      --c-saude-text: #0F766E;      --c-saude-soft: #EAFBF8;
  --c-seguranca: #3B82F6;  --c-seguranca-text: #1D4ED8;  --c-seguranca-soft: #EEF4FF;

  --accent: var(--blue);
  --accent-text: var(--blue);
  --accent-soft: var(--blue-50);

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

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(11, 31, 58, .06), 0 1px 3px rgba(11, 31, 58, .08);
  --shadow: 0 10px 30px -12px rgba(11, 31, 58, .18), 0 2px 6px rgba(11, 31, 58, .06);
  --shadow-lg: 0 30px 60px -20px rgba(11, 31, 58, .35);
  --header-h: 68px;
  --gutter: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

body.theme-construcao { --accent: var(--c-construcao); --accent-text: var(--c-construcao-text); --accent-soft: var(--c-construcao-soft); }
body.theme-saude      { --accent: var(--c-saude);      --accent-text: var(--c-saude-text);      --accent-soft: var(--c-saude-soft); }
body.theme-seguranca  { --accent: var(--c-seguranca);  --accent-text: var(--c-seguranca-text);  --accent-soft: var(--c-seguranca-soft); }

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--white); color: var(--text);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 1.5rem + 3vw, 3.75rem); }
h2 { font-size: clamp(1.7rem, 1.3rem + 1.8vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 1.05rem + .4vw, 1.35rem); font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
a { color: var(--blue-700); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--navy); }
strong { font-weight: 600; }
main { display: block; }
main:focus { outline: none; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.section-dark :focus-visible, .site-footer :focus-visible, .hero :focus-visible, .cta-box :focus-visible { outline-color: var(--cyan); }

.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: 12px; top: -100px; z-index: 200; background: var(--navy); color: var(--white); padding: 12px 18px; border-radius: var(--radius-sm); font-weight: 600; }
.skip-link:focus { top: 12px; color: var(--white); }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: 820px; }

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

/* Marcadores de conteúdo pendente: [A CONFIRMAR], [TELEFONE]... */
mark.tbc { background: #FFF1B8; color: #4D3A00; padding: .05em .35em; border-radius: 5px; font-weight: 600; font-size: .9em; white-space: normal; }
.site-footer mark.tbc, .section-dark mark.tbc, .hero mark.tbc, .cta-box mark.tbc { background: rgba(255, 241, 184, .16); color: #FFE58A; }

/* ---------- 3. Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .7em 1.35em; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { min-height: 44px; padding: .55em 1.1em; font-size: .95rem; }
.btn-lg { min-height: 54px; padding: .85em 1.6em; font-size: 1.05rem; }
.btn-primary { background: var(--blue); color: var(--white); box-shadow: 0 8px 20px -10px rgba(31, 111, 235, .8); }
.btn-primary:hover { background: var(--blue-700); color: var(--white); }
.btn-outline { background: var(--white); color: var(--navy); border-color: var(--gray-300); }
.btn-outline:hover { border-color: var(--navy); color: var(--navy); }
.btn-ghost-light { background: rgba(255, 255, 255, .06); color: var(--white); border-color: rgba(255, 255, 255, .35); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .14); color: var(--white); border-color: var(--white); }
.btn-whatsapp-outline { background: var(--white); color: var(--whatsapp); border-color: var(--whatsapp); }
.btn-whatsapp-outline:hover { background: #EAF6EF; color: var(--whatsapp); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; color: var(--blue-700); text-decoration: none; }
.link-arrow .icon { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- 4. Cabeçalho ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(255, 255, 255, .92); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--gray-200); box-shadow: 0 4px 20px -12px rgba(11, 31, 58, .25); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--navy); border-radius: 8px; }
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark { width: 34px; height: 34px; }
.logo-text { font-family: var(--font-head); font-size: 1.15rem; font-weight: 500; letter-spacing: -.02em; color: var(--navy); white-space: nowrap; }
.logo-text strong { font-weight: 700; }
.brand-light .logo-text { color: var(--white); }
.brand-light .logo-mark rect { fill: #163a66; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px;
  border: 1px solid var(--gray-200); border-radius: 12px; background: var(--white); color: var(--navy); cursor: pointer;
}
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.main-nav {
  /* absoluto ao cabeçalho: o backdrop-filter do cabeçalho impediria um painel "fixed" de ocupar a tela */
  position: absolute; top: 100%; left: 0; right: 0;
  height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); background: var(--white);
  padding: 12px var(--gutter) 32px; overflow-y: auto; display: none; border-top: 1px solid var(--gray-200);
}
.main-nav.is-open { display: flex; flex-direction: column; gap: 20px; animation: navIn .22s var(--ease); }
@keyframes navIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-list > li { border-bottom: 1px solid var(--gray-100); }
.nav-link {
  display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 52px; padding: 10px 4px;
  background: none; border: 0; font: 600 1.05rem/1.3 var(--font-body); color: var(--navy); text-decoration: none; cursor: pointer; text-align: left;
}
.nav-link[aria-current="page"], .nav-link.is-current { color: var(--blue-700); }
.nav-sub-toggle .icon { transition: transform .2s var(--ease); }
.nav-sub-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.submenu { list-style: none; margin: 0 0 10px; padding: 0 0 0 4px; display: none; }
.has-sub.is-open .submenu { display: block; }
.submenu a { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 8px 6px; color: var(--text); text-decoration: none; font-weight: 500; border-radius: 8px; }
.submenu a:hover { background: var(--gray-50); color: var(--navy); }
.submenu a[aria-current="page"] { color: var(--blue-700); font-weight: 600; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot-construcao { background: var(--c-construcao); }
.dot-saude { background: var(--c-saude); }
.dot-seguranca { background: var(--c-seguranca); }
.nav-actions { display: flex; flex-direction: column; gap: 10px; }
.nav-actions .btn { width: 100%; }
body.nav-open { overflow: hidden; }

@media (min-width: 1100px) {
  .nav-toggle { display: none; }
  .main-nav { position: static; height: auto; display: flex; flex-direction: row; align-items: center; gap: 22px; padding: 0; border: 0; background: none; overflow: visible; }
  .main-nav.is-open { animation: none; flex-direction: row; }
  .nav-list { display: flex; align-items: center; gap: 2px; }
  .nav-list > li { border: 0; position: relative; }
  .nav-link { min-height: 44px; padding: 8px 12px; font-size: .96rem; font-weight: 500; border-radius: 10px; gap: 4px; }
  .nav-link:hover { background: var(--gray-50); }
  .nav-link[aria-current="page"], .nav-link.is-current { color: var(--blue-700); font-weight: 600; }
  .submenu {
    position: absolute; top: calc(100% + 8px); left: 0; min-width: 300px; margin: 0; padding: 8px;
    background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); box-shadow: var(--shadow);
  }
  .nav-actions { flex-direction: row; }
  .nav-actions .btn { width: auto; }
  .nav-only-mobile { display: none; }
}

/* ---------- 5. Seções e títulos ---------- */
.section { padding: clamp(64px, 8vw, 112px) 0; position: relative; }
.section-tight { padding: clamp(48px, 6vw, 80px) 0; }
.section-alt { background: var(--gray-50); }
.section-dark { background: var(--navy); color: #D5DEEA; }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark a:not(.btn) { color: var(--cyan); }
.section-dark strong { color: var(--white); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.section-dark .section-head p { color: #B8C6D8; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
  font: 600 .8rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.section-dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--cyan); }
.lead { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); color: var(--muted); max-width: 640px; }

.grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } .grid-gap-lg { gap: 28px; } }
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } .split-wide-left { grid-template-columns: 1.15fr .85fr; } .split-narrow-left { grid-template-columns: .75fr 1.25fr; align-items: start; } }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #C9D5E6;
  background: radial-gradient(1200px 600px at 85% -10%, rgba(31, 111, 235, .45), transparent 60%),
              radial-gradient(700px 400px at -10% 110%, rgba(34, 211, 238, .18), transparent 60%), var(--navy);
  padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 8vw, 112px);
}
.hero::before, .page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 85%); mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 85%);
}
.hero .container, .page-hero .container { position: relative; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 56px; } }
.hero h1 { color: var(--white); max-width: 14ch; }
.hero h1 .hl { background: linear-gradient(90deg, var(--cyan), #7CB4FF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { color: #C9D5E6; margin-bottom: 28px; }
.hero-note { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 26px 0 0; padding: 0; list-style: none; font-size: .94rem; color: #AFC0D6; }
.hero-note li { display: inline-flex; align-items: center; gap: 7px; }
.hero-note .icon { color: var(--cyan); width: 18px; height: 18px; }

/* Ilustração do hero: sensores → IA → painel */
.flow-visual { position: relative; width: 100%; max-width: 560px; margin: 0 auto; }
.flow-visual svg { width: 100%; height: auto; overflow: visible; }
.fv-line { stroke: rgba(34, 211, 238, .45); stroke-width: 1.5; fill: none; stroke-dasharray: 4 6; animation: dash 1.6s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -20; } }
.fv-node { fill: #102a4d; stroke: rgba(124, 180, 255, .55); stroke-width: 1.2; }
.fv-ico { fill: none; stroke: #E6F0FF; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.fv-hub { fill: url(#hubGrad); }
.fv-pulse { fill: none; stroke: var(--cyan); stroke-width: 1.2; opacity: 0; transform-box: fill-box; transform-origin: center; animation: pulse 2.8s ease-out infinite; }
.fv-pulse.d2 { animation-delay: 1.4s; }
@keyframes pulse { 0% { opacity: .7; transform: scale(.85); } 100% { opacity: 0; transform: scale(1.6); } }
.fv-label { fill: #9FB3CC; font: 500 11px var(--font-body); }
.fv-card { fill: rgba(255, 255, 255, .97); }
.fv-card-text { fill: var(--navy); font: 600 11.5px var(--font-body); }
.fv-card-sub { fill: #4B5A6E; font: 500 10px var(--font-body); }
.illus-note { margin: 10px 0 0; text-align: center; font-size: .8rem; color: #8FA3BE; }

/* Hero das páginas internas */
.page-hero {
  position: relative; overflow: hidden; color: #C9D5E6; background: var(--navy);
  padding: clamp(40px, 6vw, 80px) 0 clamp(48px, 6vw, 88px);
}
.page-hero::after {
  content: ""; position: absolute; right: -120px; top: -160px; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 55%, transparent), transparent 65%); opacity: .55; pointer-events: none;
}
.page-hero h1 { color: var(--white); max-width: 20ch; }
.page-hero .lead { color: #C9D5E6; }
.page-hero .btn-row { margin-top: 28px; }
.page-hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1000px) { .page-hero-grid { grid-template-columns: 1.2fr .8fr; } }
.breadcrumb { margin: 0 0 22px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: .9rem; color: #9FB3CC; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: #5F7593; }
.breadcrumb a { color: #C9D5E6; }
.breadcrumb [aria-current] { color: var(--white); }
.seg-tag {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; margin-bottom: 18px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); color: var(--white); font-size: .85rem; font-weight: 600;
}
.seg-tag .dot { width: 9px; height: 9px; background: var(--accent); }
.hero-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.hero-points li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); color: #DCE5F1; }
.hero-points .icon { color: var(--accent); margin-top: 1px; }
.theme-default .hero-points .icon { color: var(--cyan); }

/* ---------- 7. Cartões ---------- */
.card {
  position: relative; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); margin-bottom: 0; }
.card p + p { margin-top: .8em; }
.card-icon {
  display: inline-grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; margin-bottom: 18px;
  background: var(--accent-soft); color: var(--accent-text);
}
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--gray-300); }
.section-alt .card { box-shadow: none; }

.segment-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.segment-card .seg-top { position: relative; height: 132px; overflow: hidden; }
.segment-card .seg-top svg { width: 100%; height: 100%; }
.segment-card .seg-body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.segment-card .seg-body ul { list-style: none; padding: 0; margin: 4px 0 22px; display: grid; gap: 8px; color: var(--muted); font-size: .98rem; }
.segment-card .seg-body li { display: flex; gap: 10px; }
.segment-card .seg-body li .icon { width: 18px; height: 18px; margin-top: 4px; color: var(--seg); }
.segment-card .link-arrow { margin-top: auto; color: var(--seg-text); }
.segment-card .link-arrow::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.segment-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.segment-card:focus-within { outline: 3px solid var(--blue); outline-offset: 3px; }
.segment-card .link-arrow:focus-visible { outline: none; }
.seg-construcao { --seg: var(--c-construcao); --seg-text: var(--c-construcao-text); --seg-soft: var(--c-construcao-soft); }
.seg-saude { --seg: var(--c-saude); --seg-text: var(--c-saude-text); --seg-soft: var(--c-saude-soft); }
.seg-seguranca { --seg: var(--c-seguranca); --seg-text: var(--c-seguranca-text); --seg-soft: var(--c-seguranca-soft); }
.seg-label { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--seg-text); margin-bottom: 8px; }
.seg-label .dot { background: var(--seg); }

/* Problemas */
.problem { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--gray-200); }
.problem .icon { color: var(--accent-text); margin-top: 2px; }
.problem h3 { font-size: 1.08rem; margin-bottom: .25em; }
.problem p { margin: 0; color: var(--muted); font-size: .98rem; }

/* Aplicações (numeradas) */
.app-card { padding-top: 22px; }
.app-card .app-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.app-card .app-head .card-icon { margin: 0; }
.app-card .app-head h3 { margin: 0; }
.app-tag { display: inline-block; margin-top: 14px; font-size: .8rem; font-weight: 600; color: var(--accent-text); background: var(--accent-soft); padding: 4px 10px; border-radius: 999px; }

/* Lista com marcação */
.check-list { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list .icon { width: 22px; height: 22px; padding: 3px; border-radius: 50%; color: var(--white); background: var(--accent); stroke-width: 2.5; margin-top: 2px; }
.theme-construcao .check-list .icon { background: var(--c-construcao-text); }
.theme-saude .check-list .icon { background: var(--c-saude-text); }
.section-dark .check-list .icon { background: var(--cyan); color: var(--navy); }

/* ---------- 8. Como funciona (4 etapas) ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: step; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 22px; } }
.step { position: relative; padding: 26px 24px; border-radius: var(--radius); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .12); }
.step-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.step-num { font: 700 .85rem/1 var(--font-head); color: var(--cyan); letter-spacing: .08em; }
.step .icon-wrap { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: rgba(34, 211, 238, .1); color: var(--cyan); }
.step h3 { color: var(--white); margin-bottom: .1em; }
.step .step-sub { display: block; font-size: .85rem; color: var(--cyan); font-weight: 600; margin-bottom: .7em; }
.step p { margin: 0; color: #B8C6D8; font-size: .98rem; }
@media (min-width: 1080px) {
  .step:not(:last-child)::after {
    content: ""; position: absolute; top: 52px; right: -22px; width: 22px; height: 2px;
    background: linear-gradient(90deg, rgba(34, 211, 238, .7), rgba(34, 211, 238, .1));
  }
}
.steps.steps-vertical { grid-template-columns: 1fr; gap: 14px; }
.steps-vertical .step { padding: 20px 22px; }
.steps-vertical .step-top { margin-bottom: 12px; }
.steps-vertical .step::after { display: none; }
.card[class*="seg-"] .link-arrow { color: var(--seg-text); }
/* versão clara das etapas (páginas de segmento / soluções) */
.steps-light .step { background: var(--white); border-color: var(--gray-200); box-shadow: var(--shadow-sm); }
.steps-light .step h3 { color: var(--navy); }
.steps-light .step p { color: var(--muted); }
.steps-light .step-num { color: var(--accent-text); }
.steps-light .step .step-sub { color: var(--accent-text); }
.steps-light .step .icon-wrap { background: var(--accent-soft); color: var(--accent-text); }
.steps-light .step:not(:last-child)::after { background: linear-gradient(90deg, var(--gray-300), transparent); }

/* ---------- 9. Benefícios / diferenciais ---------- */
.benefit { display: flex; gap: 16px; align-items: flex-start; }
.benefit .card-icon { margin: 0; flex: none; }
.benefit h3 { font-size: 1.1rem; margin-bottom: .3em; }
.benefit p { margin: 0; color: var(--muted); }

.diff-grid { display: grid; gap: 16px; }
@media (min-width: 720px) { .diff-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .diff-grid { grid-template-columns: repeat(3, 1fr); } }
.diff { padding: 24px; border-radius: var(--radius); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .12); }
.diff .icon { color: var(--cyan); margin-bottom: 14px; width: 28px; height: 28px; }
.diff h3 { font-size: 1.1rem; }
.diff p { margin: 0; color: #B8C6D8; font-size: .98rem; }

/* Público por porte */
.tier { display: flex; flex-direction: column; }
.tier .tier-label { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 10px; }
.tier ul { margin: 14px 0 0; padding-left: 1.1em; color: var(--muted); }
.tier li { margin-bottom: 6px; }
.tier li::marker { color: var(--accent); }

/* ---------- 10. Avisos ---------- */
.notice {
  display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--radius);
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); color: var(--text);
}
.notice > .icon { color: var(--accent-text); margin-top: 2px; }
.notice p { margin: 0; }
.notice p + p { margin-top: .5em; }
.notice strong { color: var(--navy); }
.notice-neutral { background: var(--gray-50); border-color: var(--gray-200); }
.notice-neutral > .icon { color: var(--blue-700); }
.notice-legal { background: #FFF8E1; border-color: #F2D27A; }
.notice-legal > .icon { color: #8A5A00; }
.notice-dark { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16); color: #DCE5F1; }
.notice-dark strong { color: var(--white); }
.notice-dark > .icon { color: var(--cyan); }
.badge-sample {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  background: #FFF1B8; color: #4D3A00; font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}

/* ---------- 11. Painel ilustrativo ---------- */
.dash-wrap { position: relative; }
.dash {
  background: #0E2546; border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius-lg); padding: 16px;
  box-shadow: var(--shadow-lg); color: #DCE5F1; font-size: .9rem;
}
.dash-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 4px 14px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.dash-title { display: flex; align-items: center; gap: 10px; font: 600 .95rem var(--font-head); color: var(--white); }
.dash-dots { display: flex; gap: 6px; }
.dash-dots span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .2); }
.dash-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.dash-tabs span { padding: 4px 10px; border-radius: 999px; font-size: .78rem; background: rgba(255, 255, 255, .06); color: #B8C6D8; }
.dash-tabs span.on { background: var(--blue); color: var(--white); }
.dash-body { display: grid; gap: 12px; padding-top: 14px; }
@media (min-width: 760px) { .dash-body { grid-template-columns: 1.4fr 1fr; } }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 520px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 760px) { .kpis { grid-column: 1 / -1; } }
.kpi { padding: 12px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .07); }
.kpi-label { display: block; font-size: .74rem; color: #9FB3CC; margin-bottom: 4px; }
.kpi-value { font: 700 1.35rem/1.1 var(--font-head); color: var(--white); }
.kpi-trend { display: block; font-size: .72rem; color: var(--cyan); margin-top: 4px; }
.dash-panel { padding: 14px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .07); }
.dash-panel h3 { font: 600 .85rem var(--font-body); color: var(--white); margin: 0 0 12px; letter-spacing: 0; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 120px; padding-top: 6px; }
.bars span { flex: 1; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--cyan), rgba(31, 111, 235, .6)); min-height: 8px; }
.bars-x { display: flex; gap: 8px; margin-top: 6px; }
.bars-x span { flex: 1; text-align: center; font-size: .68rem; color: #8FA3BE; }
.events { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.events li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 10px; background: rgba(255, 255, 255, .04); font-size: .82rem; }
.events time { color: #8FA3BE; font-size: .74rem; }
.sev { width: 8px; height: 8px; border-radius: 50%; }
.sev-1 { background: #F59E0B; } .sev-2 { background: var(--cyan); } .sev-3 { background: #34D399; }
.ev-status { font-size: .7rem; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: #C9D5E6; white-space: nowrap; }
.dash-caption { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 14px; font-size: .86rem; color: var(--muted); }
.section-dark .dash-caption { color: #9FB3CC; }
.sensor-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; font-size: .82rem; }
.sensor-row + .sensor-row { margin-top: 10px; }
.meter { grid-column: 1 / -1; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--blue), var(--cyan)); }

/* ---------- 12. FAQ ---------- */
.faq-list { display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--gray-200); border-radius: var(--radius); background: var(--white); transition: border-color .2s, box-shadow .2s; }
.faq-item[open] { border-color: var(--gray-300); box-shadow: var(--shadow-sm); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 20px; font: 600 1.04rem/1.4 var(--font-body); color: var(--navy); border-radius: var(--radius);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--gray-50);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B1F3A' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E");
  background-size: 14px; background-repeat: no-repeat; background-position: center; transition: transform .2s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0 20px 20px; color: var(--muted); }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-group + .faq-group { margin-top: 48px; }
.faq-group h2 { font-size: 1.4rem; display: flex; align-items: center; gap: 12px; }
.faq-group h2 .card-icon { margin: 0; width: 42px; height: 42px; }

/* ---------- 13. Formulário ---------- */
.form-section-grid { display: grid; gap: 40px; }
@media (min-width: 1000px) { .form-section-grid { grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; } }
.form-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: clamp(20px, 4vw, 36px); box-shadow: var(--shadow); }
.lead-form { display: block; }
.form-required-note { font-size: .9rem; color: var(--muted); margin-bottom: 18px; }
.form-grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; gap: 20px; } .field-full { grid-column: 1 / -1; } }
.field label { display: block; font-weight: 600; font-size: .95rem; color: var(--navy); margin-bottom: 6px; }
.req { color: var(--error); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid #8A97A8; border-radius: 10px;
  background: var(--white); color: var(--text); font: 400 1rem/1.4 var(--font-body);
  transition: border-color .15s, box-shadow .15s;
}
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B1F3A' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--navy); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(31, 111, 235, .22); }
.field [aria-invalid="true"] { border-color: var(--error); background: #FFFBFA; }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(180, 35, 24, .18); }
.field-hint { margin: 6px 0 0; font-size: .85rem; color: var(--muted); }
.field-error { margin: 6px 0 0; font-size: .88rem; font-weight: 600; color: var(--error); }
.field-error:empty { display: none; }
.field-error::before { content: "⚠ "; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; color: var(--text); cursor: pointer; }
.field .check { font-weight: 400; color: var(--text); }
.check input { width: 22px; height: 22px; min-height: 0; margin: 1px 0 0; flex: none; accent-color: var(--blue); cursor: pointer; }
.form-footer { display: flex; flex-direction: column; gap: 14px; margin-top: 26px; }
.form-footer .btn { align-self: flex-start; }
.form-demo-note { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-size: .88rem; color: var(--muted); }
.form-demo-note .icon { margin-top: 2px; color: var(--blue-700); }
.form-alert { padding: 16px 18px; border-radius: 12px; margin-bottom: 20px; }
.form-alert:focus { outline: 3px solid var(--blue); outline-offset: 2px; }
.form-alert ul { margin: 8px 0 0; padding-left: 1.2em; }
.form-alert a { color: inherit; font-weight: 600; }
.form-alert-error { background: var(--error-bg); color: var(--error); border: 1px solid #F3C1BB; }
.form-alert-success { display: flex; gap: 14px; background: var(--success-bg); color: #0D4F34; border: 1px solid #A8DDC2; margin: 22px 0 0; }
.form-alert-success[hidden], .form-alert[hidden] { display: none; }
.form-alert-success .icon { color: var(--success); flex: none; margin-top: 2px; }
.form-alert-success p { margin: 4px 0 0; }

.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border: 1px solid var(--gray-200); border-radius: var(--radius); background: var(--white); }
.contact-list .card-icon { margin: 0; width: 44px; height: 44px; }
.contact-list strong { display: block; color: var(--navy); }
.contact-list span { color: var(--muted); }

/* ---------- 14. CTA final ---------- */
.cta-final { padding-top: 0; }
.section-alt + .cta-final, .section-dark + .cta-final { padding-top: clamp(64px, 8vw, 112px); }
.cta-box {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(36px, 6vw, 72px) clamp(22px, 5vw, 64px);
  background: radial-gradient(800px 400px at 100% 0%, rgba(31, 111, 235, .55), transparent 60%), var(--navy); color: #C9D5E6;
}
.cta-net { position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: radial-gradient(rgba(34, 211, 238, .35) 1.2px, transparent 1.3px); background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000); mask-image: linear-gradient(90deg, transparent 30%, #000); }
.cta-content { position: relative; max-width: 680px; }
.cta-box h2 { color: var(--white); }
.cta-box p { font-size: 1.1rem; }
.cta-box .btn-row { margin: 28px 0 18px; }
.cta-note { font-size: .92rem !important; color: #9FB3CC; margin: 0; }

/* ---------- 15. Conteúdo longo (política) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.45rem; margin-top: 2em; padding-top: .2em; }
.prose h3 { font-size: 1.12rem; margin-top: 1.6em; }
.prose p, .prose li { color: #2E3C4F; }
.prose li { margin-bottom: .4em; }
.toc { padding: 20px 22px; border-radius: var(--radius); background: var(--gray-50); border: 1px solid var(--gray-200); margin: 28px 0; }
.toc h2 { font-size: 1rem; margin: 0 0 10px; padding: 0; }
.toc ol { margin: 0; columns: 1; }
@media (min-width: 720px) { .toc ol { columns: 2; column-gap: 40px; } }
.toc li { margin-bottom: 6px; break-inside: avoid; }
.data-table { width: 100%; border-collapse: collapse; margin: 1em 0 1.6em; font-size: .95rem; }
.data-table th, .data-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--gray-200); vertical-align: top; }
.data-table th { background: var(--gray-50); color: var(--navy); font-weight: 600; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Linha do tempo / valores */
.value { padding: 22px; border-left: 3px solid var(--accent); background: var(--white); border-radius: 0 var(--radius) var(--radius) 0; }
.value h3 { font-size: 1.08rem; margin-bottom: .3em; }
.value p { margin: 0; color: var(--muted); }
.mvv { padding: 30px; }
.mvv .card-icon { width: 54px; height: 54px; }

/* Tecnologia: blocos com ancoras */
.tech-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 28px; }
.tech-nav a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); color: var(--white); text-decoration: none; font-size: .92rem; font-weight: 500; }
.tech-nav a:hover { background: rgba(255, 255, 255, .14); }
.tech-nav .icon { width: 18px; height: 18px; color: var(--cyan); }
.tech-block { display: grid; gap: 28px; padding: clamp(28px, 4vw, 44px) 0; border-top: 1px solid var(--gray-200); }
.tech-block:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 900px) { .tech-block { grid-template-columns: .9fr 1.1fr; gap: 56px; } }
.tech-block h2 { display: flex; align-items: center; gap: 14px; font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem); }
.tech-block h2 .card-icon { margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 1em; }
.chips li { padding: 6px 12px; border-radius: 999px; background: var(--gray-50); border: 1px solid var(--gray-200); font-size: .9rem; color: var(--text); }

/* Princípios de privacidade */
.principle { display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 24px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--gray-200); }
.principle .card-icon { margin: 0; }
.principle h3 { font-size: 1.1rem; margin-bottom: .3em; }
.principle p { margin: 0; color: var(--muted); }

/* 404 */
.notfound { text-align: center; padding: clamp(80px, 12vw, 160px) 0; }
.notfound .code { font: 700 clamp(4rem, 3rem + 6vw, 8rem)/1 var(--font-head); color: var(--blue); letter-spacing: -.04em; margin-bottom: 10px; }
.notfound .btn-row { justify-content: center; margin-top: 28px; }

/* ---------- 16. Rodapé ---------- */
.site-footer { background: #081830; color: #AFC0D6; padding: 64px 0 96px; font-size: .96rem; }
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .footer-grid { grid-template-columns: 1.4fr .9fr .9fr 1.2fr; gap: 40px; } }
.footer-brand p { margin: 16px 0 20px; max-width: 360px; }
.footer-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.footer-title { font: 600 .82rem var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--white); margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer nav li { margin-bottom: 10px; }
.site-footer a:not(.btn) { color: #D5DEEA; text-decoration: none; }
.site-footer a:not(.btn):hover { color: var(--white); text-decoration: underline; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.footer-contact .icon { color: var(--cyan); margin-top: 3px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .88rem; }
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-legal .link-button { color: #D5DEEA; text-decoration: none; }
.footer-legal .link-button:hover { color: var(--white); text-decoration: underline; }

/* ---------- 17. WhatsApp flutuante ---------- */
.whatsapp-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 90; display: inline-flex; align-items: center; gap: 10px;
  min-width: 56px; height: 56px; padding: 0 16px; border-radius: 999px; background: var(--whatsapp); color: var(--white);
  text-decoration: none; font-weight: 600; box-shadow: 0 12px 28px -10px rgba(14, 122, 67, .75);
  transition: transform .2s var(--ease), bottom .3s var(--ease), background-color .2s;
}
.whatsapp-float .icon { width: 26px; height: 26px; }
.whatsapp-float:hover { background: #0A6436; color: var(--white); transform: translateY(-2px); }
.whatsapp-float:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.whatsapp-float-label { display: none; }
@media (min-width: 760px) { .whatsapp-float { right: 24px; bottom: 24px; } .whatsapp-float-label { display: inline; } }
body.cookie-visible .whatsapp-float { bottom: var(--cookie-h, 200px); }

/* ---------- 18. Aviso de cookies ---------- */
.cookie-banner { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 120; }
.cookie-inner {
  max-width: 980px; margin: 0 auto; padding: 20px; border-radius: var(--radius-lg); background: var(--white);
  border: 1px solid var(--gray-200); box-shadow: var(--shadow-lg); display: grid; gap: 16px;
}
@media (min-width: 900px) { .cookie-inner { grid-template-columns: 1fr auto; align-items: end; padding: 22px 26px; } }
.cookie-banner h2 { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; margin: 0 0 6px; }
.cookie-banner h2 .icon { color: var(--blue-700); }
.cookie-banner p { margin: 0; font-size: .92rem; color: var(--muted); }
.cookie-prefs { display: grid; gap: 10px; margin-top: 14px; font-size: .92rem; }
.cookie-prefs[hidden] { display: none; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie-actions .btn { flex: 1 1 auto; }
.cookie-actions [hidden] { display: none; }

/* ---------- 19. Animações ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-d1 { transition-delay: .08s; } .js .reveal-d2 { transition-delay: .16s; } .js .reveal-d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .fv-pulse { display: none; }
}

/* ---------- 20. Utilitários ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; } .mt-lg { margin-top: 40px; } .mt-md { margin-top: 24px; }
.text-center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.center-row { display: flex; justify-content: center; }

@media print {
  .site-header, .whatsapp-float, .cookie-banner, .cta-final, .site-footer .footer-cta { display: none !important; }
  .hero, .page-hero, .section-dark { background: none !important; color: #000; }
  .page-hero h1, .hero h1 { color: #000; }
}
