/* Geomapatec. Barlow foi escolhida por vir da sinalização de infraestrutura pública,
   o mesmo mundo das redes que o Geomapa Hydro Web cadastra. */

@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }

:root {
  --navy: #02385A;
  --green: #017E40;
  --green-dark: #01672F;
  --water: #2EA8E6;
  --water-2: #7FD3FF;
  --night: #04213A;
  --night-2: #072B47;
  --paper: #FFFFFF;
  --mist: #EDF2F5;
  --ink-2: #44596A;
  --on-night-2: #B9CCDA;
  --line: #CFDAE2;
  --focus: #0B74B8;
  --f-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --f-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --wrap: 1240px;
  --gutter: clamp(20px, 4.2vw, 48px);
  --header-h: 72px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; font: 400 1.0625rem/1.6 var(--f-body); color: var(--navy); background: var(--paper); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 3px; }
.on-dark :focus-visible { outline-color: var(--water-2); }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; background: #fff; color: var(--navy); padding: 12px 16px; border-radius: 6px; font-weight: 600; }
.skip:focus { top: 12px; }

h1, h2 { font-family: var(--f-display); line-height: .94; margin: 0; text-wrap: balance; letter-spacing: -.005em; }
h1 { font-size: clamp(3.4rem, 1.4rem + 7.4vw, 8.75rem); font-weight: 700; }
h2 { font-size: clamp(2.5rem, 1.55rem + 3.4vw, 4.75rem); font-weight: 600; }
h3 { font: 600 1.375rem/1.2 var(--f-body); margin: 0; }
p { margin: 0 0 1em; max-width: 62ch; }
.lead { font-size: clamp(1.15rem, 1.02rem + .45vw, 1.4rem); line-height: 1.5; }
.muted { color: var(--ink-2); }

/* Palavra por palavra, com rastro: a mesma assinatura de movimento dos Reels. */
.js [data-reveal] .w { display: inline-block; white-space: pre; }
.js [data-reveal] .w { opacity: 0; }
.js [data-reveal].is-in .w { animation: word-in .8s var(--ease) both; animation-delay: calc(var(--i) * 85ms + var(--base, 0ms)); }
@keyframes word-in {
  from { opacity: 0; transform: translateX(.55em); text-shadow: .16em 0 0 var(--echo-1, rgba(2,56,90,.28)), .32em 0 0 var(--echo-2, rgba(2,56,90,.14)), .48em 0 0 var(--echo-3, rgba(2,56,90,.06)); }
  55% { opacity: 1; }
  to { opacity: 1; transform: none; text-shadow: 0 0 0 rgba(2,56,90,0), 0 0 0 rgba(2,56,90,0), 0 0 0 rgba(2,56,90,0); }
}
.on-dark { --echo-1: rgba(127,211,255,.42); --echo-2: rgba(127,211,255,.2); --echo-3: rgba(127,211,255,.08); }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 50px; padding: 0 24px; border-radius: 6px; border: 2px solid transparent; font: 600 1.0625rem/1 var(--f-body); text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); }
.btn-ghost { border-color: currentColor; color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.on-dark .btn-ghost { color: #fff; }
.on-dark .btn-ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn-small { min-height: 42px; padding: 0 16px; font-size: 1rem; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* Cabeçalho */
.site-header { position: sticky; top: 0; z-index: 60; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.brand { display: block; padding: 6px 0; flex: none; }
.brand img { height: 44px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) { font-weight: 500; text-decoration: none; padding: 10px 0; position: relative; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--green); }
.nav-toggle { display: none; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border: 2px solid var(--navy); border-radius: 6px; background: #fff; color: var(--navy); font: 600 1rem var(--f-body); cursor: pointer; }
.nav-toggle .bars { width: 18px; height: 12px; position: relative; }
.nav-toggle .bars::before, .nav-toggle .bars::after, .nav-toggle .bars i { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform .25s, opacity .2s; }
.nav-toggle .bars::before { top: 0; } .nav-toggle .bars i { top: 5px; } .nav-toggle .bars::after { bottom: 0; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-5px) rotate(-45deg); }
.nav-toggle[aria-expanded="true"] .bars i { opacity: 0; }

@media (max-width: 880px) {
  :root { --header-h: 64px; }
  .brand img { height: 38px; }
  .nav-toggle { display: inline-flex; }
  .nav { position: fixed; left: 0; right: 0; top: var(--header-h); flex-direction: column; align-items: stretch; gap: 0; background: #fff; padding: 8px var(--gutter) 28px; border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgba(2,56,90,.35); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .25s var(--ease), visibility 0s .25s; max-height: calc(100svh - var(--header-h)); overflow: auto; }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .25s var(--ease); }
  .nav a:not(.btn) { font-size: 1.3rem; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 20px; }
}

/* Hero: ocupa a janela inteira, com a simulação hidráulica rodando ao fundo */
.page-home .site-header { position: fixed; left: 0; right: 0; top: 0; transform: translateY(-105%); transition: transform .4s var(--ease), box-shadow .4s; }
.page-home .site-header.is-shown, .page-home .site-header:focus-within { transform: none; box-shadow: 0 10px 30px -18px rgba(2,56,90,.45); }
.hero { position: relative; background: var(--night); color: #fff; overflow: hidden; min-height: max(620px, 100svh); display: grid; align-items: center; isolation: isolate; }
.hero-map { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; transform-origin: 70% 50%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, rgba(4,33,58,.96) 0%, rgba(4,33,58,.86) 30%, rgba(4,33,58,.3) 54%, rgba(4,33,58,0) 68%); }
.hero-top { position: absolute; left: 0; right: 0; top: 30px; }
.hero-top img { height: 56px; width: auto; }
.hero-content { width: 100%; padding-block: 140px 130px; }
.hero h1 { margin: 0; }
.h-brand sup { font-size: .2em; font-weight: 600; vertical-align: top; position: relative; top: .5em; margin-left: .1em; letter-spacing: 0; opacity: 0; animation: fade .6s ease-out 1.3s forwards; }
.h-brand { display: block; font: 700 clamp(4rem, 1.6rem + 8.4vw, 10.5rem)/.84 var(--f-display); letter-spacing: -.012em; white-space: nowrap; }
.h-slogan { display: block; margin-top: .45em; max-width: 23ch; text-wrap: balance; font: 600 clamp(1.9rem, 1.15rem + 2.5vw, 3.6rem)/1 var(--f-display); color: var(--water-2); letter-spacing: 0; }
.hero .lead { max-width: 38ch; color: #D2E0EA; margin-top: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.scroll-cue { position: absolute; left: 50%; bottom: 18px; width: 44px; height: 70px; margin-left: -22px; display: block; }
.scroll-cue::before { content: ""; position: absolute; left: 21px; top: 6px; width: 2px; height: 56px; background: rgba(127,211,255,.28); border-radius: 1px; }
.scroll-cue span { position: absolute; left: 18px; top: 4px; width: 8px; height: 8px; border-radius: 50%; background: var(--water-2); box-shadow: 0 -7px 0 -1px rgba(127,211,255,.4), 0 -14px 0 -2px rgba(127,211,255,.18); animation: drop 2.4s cubic-bezier(.5,0,.6,1) infinite; }
@keyframes drop { 0% { transform: translateY(0); opacity: 0; } 15%, 80% { opacity: 1; } 100% { transform: translateY(52px); opacity: 0; } }
@keyframes drift { from { transform: scale(1.01) translate(0, 0); } to { transform: scale(1.05) translate(-1.4%, 1%); } }
.hero-map > svg { position: absolute; inset: 0; width: 100%; height: 100%; will-change: transform; }
.hero-map .main, .hero-map .sector { transition: none; }
.hero-map.is-sim .sector { fill-opacity: .14; }
@media (max-width: 880px) {
  .hero { align-items: start; }
  .hero::before { background: linear-gradient(180deg, rgba(4,33,58,.97) 0%, rgba(4,33,58,.9) 50%, rgba(4,33,58,.25) 76%, rgba(4,33,58,0) 100%); }
  .hero-top { top: 20px; }
  .hero-top img { height: 44px; }
  .hero-content { padding-block: 104px 260px; }
  .h-brand { white-space: normal; }
  .scroll-cue { display: none; }
}

/* Mapa (compartilhado entre hero e palco) */
.citymap { overflow: hidden; }
.citymap .land { fill: var(--night-2); transition: fill .6s; }
.citymap .river { fill: none; stroke: #0A3659; stroke-width: 14; stroke-linecap: round; transition: stroke .6s; }
.citymap .streets { fill: none; stroke: #fff; stroke-opacity: .07; stroke-width: 2.4; transition: stroke .6s, stroke-opacity .6s; }
.citymap .pipe-net { fill: none; stroke: var(--water); stroke-opacity: .62; stroke-width: 1.1; transition: stroke .6s, stroke-opacity .6s; }
.citymap .main { fill: none; stroke: var(--water-2); stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; transition: stroke .6s, stroke-opacity .6s; }
.citymap .sector { fill: transparent; stroke: transparent; transition: fill .6s, stroke .6s; }
.citymap .res .body { fill: #EAF6FF; stroke: var(--night); stroke-width: 1.2; transition: fill .4s; }
.citymap .res .top { fill: #fff; stroke: var(--night); stroke-width: 1.2; }
.citymap .res .ring { fill: none; stroke: var(--water-2); stroke-width: 1.6; opacity: 0; transform-box: fill-box; transform-origin: center; }
.citymap .pump { fill: #17C27A; stroke: var(--night); stroke-width: 1.4; }
.citymap .eta { fill: #FFD34D; stroke: var(--night); stroke-width: 2; }
.citymap .particle { fill: #E6F7FF; }
.citymap .particle.t1 { opacity: .5; } .citymap .particle.t2 { opacity: .25; }

.hero-map .main { stroke-dasharray: 1; stroke-dashoffset: 1; }
.hero-map.is-drawn .main { animation: draw 1.7s cubic-bezier(.55, 0, .25, 1) forwards; animation-delay: var(--d); }
.hero-map .res, .hero-map .pump { opacity: 0; transform-box: fill-box; transform-origin: center; }
.hero-map.is-drawn .res, .hero-map.is-drawn .pump { animation: pop .5s var(--ease) forwards; animation-delay: var(--d); }
.hero-map.is-drawn .res .ring { animation: ring 2.8s ease-out infinite; animation-delay: calc(var(--d) + .4s); }
.hero-map .particles { opacity: 0; transition: opacity 1s; }
.hero-map.is-flowing .particles { opacity: 1; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.2); } 70% { opacity: 1; transform: scale(1.15); } to { opacity: 1; transform: none; } }
@keyframes ring { 0% { opacity: .9; transform: scale(.6); } 80%, 100% { opacity: 0; transform: scale(2.6); } }

/* Seções gerais */
.section { padding-block: clamp(80px, 10vw, 150px); }
.section-mist { background: var(--mist); }
.section-night { background: var(--night); color: #fff; }

/* Feito para o saneamento */
.intro { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.intro h2 { max-width: 13ch; }
.intro .body { padding-top: 10px; }
.intro .lead { color: var(--navy); }
.valves { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 14px; }
.valves li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: center; font-weight: 500; }
.valves li svg { width: 26px; height: 14px; }
@media (max-width: 880px) { .intro { grid-template-columns: 1fr; } }

/* Módulos: capítulos à esquerda, palco fixo à direita */
.modules { padding-block: clamp(70px, 9vw, 130px) clamp(70px, 9vw, 140px); background: var(--paper); }
.modules-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px); align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.modules-head h2 { max-width: 12ch; }
.modules-head p { margin: 0; color: var(--ink-2); }
.modules-body { display: grid; grid-template-columns: minmax(0, 4.2fr) minmax(0, 7.8fr); gap: clamp(28px, 4.5vw, 64px); align-items: start; }
.chapters { position: relative; padding-left: 34px; }
.chapters::before { content: ""; position: absolute; left: 7px; top: 12px; bottom: 12px; width: 3px; background: var(--line); border-radius: 2px; }
.chapters .progress { position: absolute; left: 7px; top: 12px; width: 3px; height: var(--p, 0px); background: var(--green); border-radius: 2px; transition: height .5s var(--ease); }
.chapter { position: relative; min-height: 68vh; display: flex; flex-direction: column; justify-content: center; padding-block: 28px; }
.chapter h3 { position: relative; font: 600 clamp(1.9rem, 1.4rem + 1.4vw, 2.6rem)/1 var(--f-display); margin-bottom: 14px; }
.chapter h3::before { content: ""; position: absolute; left: -34px; top: .12em; width: 17px; height: 17px; border-radius: 50%; background: #fff; border: 3px solid var(--line); transition: border-color .3s, background-color .3s, transform .3s var(--ease); }
.chapter.is-active h3::before, .chapter.is-past h3::before { border-color: var(--green); }
.chapter.is-active h3::before { background: var(--green); transform: scale(1.2); }
.chapter p { color: var(--ink-2); margin-bottom: 18px; }
.keys { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.keys li { font-weight: 600; font-size: .9375rem; color: var(--navy); background: var(--mist); border-radius: 4px; padding: 6px 10px; }
.stage-col { position: sticky; top: calc(var(--header-h) + 28px); }
.stage-note { margin: 14px 0 0; font-size: .9375rem; color: var(--ink-2); }
.rail { display: flex; gap: 6px; margin-top: 16px; }
.rail button { flex: 1; height: 28px; border: 0; padding: 0; background: transparent; cursor: pointer; position: relative; }
.rail button::before { content: ""; position: absolute; left: 0; right: 0; top: 12px; height: 4px; border-radius: 2px; background: var(--line); transition: background-color .3s; }
.rail button[aria-current="true"]::before { background: var(--green); }
.rail button:hover::before { background: var(--navy); }

@media (max-width: 980px) {
  .modules-head { grid-template-columns: 1fr; }
  .modules-body { grid-template-columns: 1fr; gap: 0; }
  .stage-col { order: -1; top: var(--header-h); z-index: 5; background: var(--paper); padding: 12px 0 10px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); box-shadow: 0 14px 18px -16px rgba(2,56,90,.35); }
  .rail { display: none; }
  .stage-note { margin-top: 8px; font-size: .875rem; }
  .chapter { min-height: 62svh; }
}

/* Palco: uma "tela" de 1000x625 escalada para caber no espaço disponível */
.stage { position: relative; aspect-ratio: 1000 / 625; border-radius: 12px; overflow: hidden; background: var(--night); box-shadow: 0 34px 60px -34px rgba(2,56,90,.6), 0 0 0 1px rgba(2,56,90,.14); }
.screen { position: absolute; left: 0; top: 0; width: 1000px; height: 625px; zoom: var(--s, .6); font-family: var(--f-body); }
@supports not (zoom: 1) { .screen { transform-origin: 0 0; transform: scale(var(--s, .6)); } }
.topbar { position: relative; z-index: 6; height: 48px; display: flex; align-items: center; gap: 12px; padding: 0 16px; background: #fff; border-bottom: 1px solid #E1E8EE; }
.topbar img { height: 28px; width: auto; }
.topbar .pn { display: flex; flex-direction: column; gap: 2px; }
.topbar .pn b { font-weight: 600; font-size: 15px; color: var(--navy); line-height: 1; }
.topbar .pn small { font-weight: 500; font-size: 11px; color: var(--green); line-height: 1; }
.topbar .mt { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-weight: 600; font-size: 16px; color: var(--green); white-space: nowrap; }
.topbar .mt span { display: inline-block; }
.topbar .mt span.swap { animation: title-swap .55s var(--ease) both; }
@keyframes title-swap { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.topbar .tb-icons { margin-left: auto; display: flex; gap: 8px; }
.topbar .tb-icons i { width: 30px; height: 30px; border: 1px solid #E1E8EE; border-radius: 8px; display: block; }
.viewport { position: absolute; left: 0; right: 0; top: 48px; bottom: 0; overflow: hidden; }
.viewport > svg.citymap { position: absolute; left: 0; top: 0; width: 1600px; height: 1000px; max-width: none; max-height: none; transform-origin: 0 0; transition: opacity .5s; }
.viewport > svg.st-live { will-change: transform; }
.viewport .particles.fx:not(.on), .viewport .fx.lots:not(.on) { display: none; }
.viewport.dim > svg.citymap { opacity: .35; }

/* Tema claro do mapa (cena de diretrizes) */
.viewport.light { background: #F2F5F2; }
.viewport.light .citymap .land { fill: #F7F8F4; }
.viewport.light .citymap .river { stroke: #CFE4F2; }
.viewport.light .citymap .streets { stroke: #9AA7B2; stroke-opacity: .5; }
.viewport.light .citymap .pipe-net { stroke: #2350C8; stroke-opacity: .7; }
.viewport.light .citymap .main { stroke: #E2492F; }
.viewport { background: var(--night); transition: background-color .6s; }

/* Camadas por cena dentro do SVG */
.citymap .fx { opacity: 0; transition: opacity .4s; }
.citymap .fx.on { opacity: 1; }
.citymap .iso-seg { stroke: #FF4D4D; stroke-width: 3.2; stroke-linecap: round; fill: none; }
.citymap .iso-halo { stroke: #FF4D4D; stroke-opacity: .25; stroke-width: 11; stroke-linecap: round; fill: none; }
.citymap .fx.on .iso-halo { animation: halo 1.6s ease-in-out infinite alternate; }
@keyframes halo { from { stroke-opacity: .12; } to { stroke-opacity: .42; } }
.citymap .valve path { fill: #fff; stroke: var(--night); stroke-width: 1; }
.citymap .out-seg { stroke: #FF7A45; stroke-width: 2.8; stroke-linecap: round; fill: none; stroke-dasharray: 1; stroke-dashoffset: 1; }
.citymap .run .out-seg { animation: draw .45s ease-out forwards; animation-delay: var(--d); }
.citymap .pop { opacity: 0; transform-box: fill-box; transform-origin: center; }
.citymap .run .pop { animation: pop .45s var(--ease) forwards; animation-delay: var(--d); }
.citymap .break .ring { fill: none; stroke: #FF7A45; stroke-width: 2; transform-box: fill-box; transform-origin: center; opacity: 0; }
.citymap .fx.on .break .ring { animation: ring 1.6s ease-out infinite; }
.citymap .break .core { fill: #FF7A45; stroke: #fff; stroke-width: 2; }
.citymap .desc path { fill: var(--water-2); stroke: var(--night); stroke-width: 1.2; }
.citymap .sector.focus { fill: rgba(1,126,64,.16); stroke: var(--green); stroke-width: 2.4; }
.citymap .lote { fill: url(#hatch); stroke: var(--green); stroke-width: 2; stroke-dasharray: 7 5; }
.citymap .lote-street { fill: none; stroke: var(--green); stroke-width: 1.6; stroke-dasharray: 1; stroke-dashoffset: 1; }
.citymap .run .lote-street { animation: draw 1s ease-out forwards; animation-delay: var(--d); }
.citymap .lots .lg { opacity: 0; }
.citymap .lots.run .lg { animation: fade .45s ease-out forwards; animation-delay: var(--d); }
.citymap .lot.a0 { fill: var(--water-2); } .citymap .lot.a1 { fill: #F2C14E; } .citymap .lot.a2 { fill: #E8833A; } .citymap .lot.a3 { fill: #E5484D; }
.citymap .lots.plain .lot { fill: #E6F7FF; }
.citymap .lot-pick { fill: #fff; stroke: var(--green); stroke-width: 3; }
.citymap .lot-pick-ring { fill: none; stroke: #fff; stroke-width: 1.6; transform-box: fill-box; transform-origin: center; opacity: 0; }
.citymap .fx.on .lot-pick-ring { animation: ring 2s ease-out infinite; }
@keyframes fade { to { opacity: 1; } }

.res.st-ok .body { fill: #2E8BE6; }
.res.st-low .body { fill: #FF4D4D; }
.res.st-none .body { fill: #C9D3DA; }
.tel-rings { position: absolute; inset: 0; }
.tr-ring { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; border: 2px solid var(--water-2); opacity: 0; animation: tring 3.2s ease-out infinite; animation-delay: var(--d, 0s); will-change: transform, opacity; }
.tr-ring.low { border-color: #FF4D4D; animation-duration: 1.2s; }
@keyframes tring { 0% { opacity: .9; transform: scale(.6); } 80%, 100% { opacity: 0; transform: scale(2.2); } }

/* Cartões de interface dentro do palco */
.scene { position: absolute; inset: 0; pointer-events: none; opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; --trail-1: rgba(255,255,255,.26); --trail-2: rgba(255,255,255,.14); --trail-3: rgba(255,255,255,.06); }
.scene.is-on { opacity: 1; visibility: visible; transition: opacity .3s; }
.ui { position: absolute; background: #fff; color: var(--navy); border-radius: 10px; box-shadow: 0 14px 34px -16px rgba(0,0,0,.55); font-size: 13px; line-height: 1.3; }
.scene.is-on .ui { animation: echo-in .75s var(--ease) both; animation-delay: var(--d, .1s); }
/* Painéis grandes entram só deslizando: o rastro com filtro custa caro em áreas grandes. */
.scene.is-on .ui.plain { animation-name: slide-in; }
@keyframes slide-in { from { opacity: 0; transform: translateX(var(--dx, 46px)); } to { opacity: 1; transform: none; } }
@keyframes echo-in {
  from { opacity: 0; transform: translateX(var(--dx, 46px)); filter: drop-shadow(16px 0 0 var(--trail-1)) drop-shadow(32px 0 0 var(--trail-2)) drop-shadow(48px 0 0 var(--trail-3)); }
  50% { opacity: 1; }
  to { opacity: 1; transform: none; filter: drop-shadow(0 0 0 transparent) drop-shadow(0 0 0 transparent) drop-shadow(0 0 0 transparent); }
}
.ui h4 { margin: 0; font-size: 15px; font-weight: 600; }
.ui .sub { color: #5B6F80; font-size: 12px; }
.ui .big { font: 700 34px/1 var(--f-display); letter-spacing: .005em; }
.ui .num { font-variant-numeric: tabular-nums; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex: none; }
.dot.blue { background: #2E8BE6; } .dot.orange { background: #F0A030; } .dot.red { background: #FF4D4D; } .dot.grey { background: #C9D3DA; } .dot.green { background: #17A65A; }
.live { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 12px; color: #0E7A3E; background: #E3F6EA; border-radius: 99px; padding: 4px 9px; }
.live .dot { width: 7px; height: 7px; background: #17A65A; animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }
.chip { display: inline-block; font-weight: 600; font-size: 11px; border-radius: 4px; padding: 3px 7px; }
.chip.red { background: #FFE4E4; color: #B42318; }
.chip.green { background: #E3F6EA; color: #0E7A3E; }

/* Telemetria */
.tel-head { left: 16px; top: 14px; display: flex; align-items: center; gap: 12px; padding: 10px 14px; }
.tel-head .t1 { font-weight: 600; font-size: 16px; }
.tel-head .clock { font: 700 22px/1 var(--f-display); font-variant-numeric: tabular-nums; }
.tel-res { right: 16px; top: 14px; width: 250px; padding: 14px 16px; }
.tel-res .row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.stack { display: flex; height: 6px; border-radius: 3px; overflow: hidden; background: #EEF2F5; margin-bottom: 12px; }
.stack i { display: block; height: 100%; width: var(--w); }
.stack { transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease) .5s; }
.scene.is-on .stack { transform: none; }
.tel-res dl { display: grid; grid-template-columns: 1fr auto; gap: 7px 10px; margin: 0; }
.tel-res dt { display: flex; align-items: center; gap: 8px; color: #33495A; }
.tel-res dd { margin: 0; font: 700 18px/1 var(--f-display); text-align: right; }
.tel-alert { left: 16px; bottom: 16px; display: flex; gap: 12px; align-items: center; padding: 12px 16px; }
.tel-alert .dot { width: 12px; height: 12px; animation: blink 1s ease-in-out infinite; }

/* Isolamentos */
.iso-panel { right: 0; top: 0; bottom: 0; width: 310px; border-radius: 0; padding: 14px; display: flex; flex-direction: column; gap: 10px; --dx: 60px; }
.iso-panel .hd { display: flex; justify-content: space-between; align-items: center; }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kpis div { border: 1px solid #E3EAF0; border-radius: 8px; padding: 9px 10px; }
.kpis b { display: block; font: 700 24px/1 var(--f-display); margin-bottom: 3px; }
.kpis b.red { color: #D92D20; }
.kpis div > span { font-size: 11px; color: #5B6F80; font-weight: 500; }
.iso-item { border: 1px solid #E3EAF0; border-left: 0; border-radius: 8px; padding: 10px 11px; position: relative; overflow: hidden; }
.iso-item::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: #D92D20; }
.iso-item.ok::before { background: #F0A030; }
.iso-item .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.iso-item code { font: 600 12px var(--f-body); color: #33495A; }
.iso-item h5 { margin: 0 0 6px; font-size: 14px; font-weight: 600; }
.iso-item .meta { display: flex; gap: 12px; font-size: 11.5px; color: #5B6F80; }

/* Desabastecimento */
.out-steps { left: 16px; top: 14px; padding: 12px 14px; width: 270px; }
.out-steps ol { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 7px; counter-reset: s; }
.out-steps li { display: flex; gap: 9px; align-items: center; color: #8A9AA8; font-weight: 500; transition: color .3s; counter-increment: s; }
.out-steps li::before { content: counter(s); width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid currentColor; display: grid; place-items: center; font-size: 11px; font-weight: 700; flex: none; }
.out-steps li.done { color: var(--navy); }
.out-steps li.done::before { background: var(--green); border-color: var(--green); color: #fff; }
.out-res { left: 16px; right: 16px; bottom: 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; padding: 0; overflow: hidden; --dx: 0px; }
.out-res div { padding: 12px 16px; border-right: 1px solid #E3EAF0; }
.out-res div:last-child { border-right: 0; }
.out-res b { display: block; font: 700 30px/1 var(--f-display); }
.out-res b.hot { color: #D9480F; }
.out-res div > span { font-size: 12px; color: #5B6F80; font-weight: 500; }
.callout { position: absolute; display: flex; align-items: center; gap: 8px; background: #fff; color: var(--navy); font-weight: 600; font-size: 13px; padding: 7px 11px; border-radius: 6px; box-shadow: 0 10px 24px -12px rgba(0,0,0,.6); opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s var(--ease); white-space: nowrap; }
.callout.on { opacity: 1; transform: none; }
.callout svg { width: 18px; height: 12px; }

/* Simulação hidráulica */
.sim-btn { right: 16px; top: 14px; padding: 10px 14px; background: var(--green); color: #fff; font-weight: 600; font-size: 14px; display: flex; gap: 8px; align-items: center; }
.sim-legend { right: 16px; bottom: 70px; width: 228px; padding: 12px 14px; }
.sim-legend .lg { margin-bottom: 10px; }
.sim-legend .lg:last-child { margin-bottom: 0; }
.sim-legend .lt { display: flex; justify-content: space-between; font-size: 11px; font-weight: 600; color: #33495A; margin-bottom: 5px; }
.sim-legend .ramp { height: 7px; border-radius: 4px; background: linear-gradient(90deg, #2350C8, #2EA8E6, #A7E3F7, #F2C14E, #E8833A, #D92D20); }
.sim-legend .ticks { display: flex; justify-content: space-between; font-size: 10.5px; color: #5B6F80; margin-top: 3px; font-variant-numeric: tabular-nums; }
.sim-time { left: 0; right: 0; bottom: 0; height: 52px; border-radius: 0; display: flex; align-items: center; gap: 14px; padding: 0 16px; --dx: 0px; }
.sim-time .play { width: 30px; height: 30px; border-radius: 50%; background: var(--green); display: grid; place-items: center; flex: none; }
.sim-time .play svg { width: 12px; height: 12px; fill: #fff; }
.sim-time .tm { font: 700 20px/1 var(--f-display); font-variant-numeric: tabular-nums; width: 56px; }
.sim-time .track { flex: 1; height: 4px; background: #E3EAF0; border-radius: 2px; position: relative; }
.sim-time .track i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--t, 0%); background: var(--green); border-radius: 2px; }
.sim-time .track i::after { content: ""; position: absolute; right: -7px; top: -5px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--green); }
.sim-time .speeds { display: flex; gap: 4px; font-size: 11px; font-weight: 600; color: #5B6F80; }
.sim-time .speeds span { border: 1px solid #E3EAF0; border-radius: 4px; padding: 3px 6px; }
.sim-time .speeds span.on { background: var(--navy); border-color: var(--navy); color: #fff; }

/* Diretrizes */
.dir-panel { left: 0; top: 0; bottom: 0; width: 320px; border-radius: 0; padding: 16px; display: flex; flex-direction: column; gap: 10px; --dx: -50px; --trail-1: rgba(2,56,90,.18); --trail-2: rgba(2,56,90,.1); --trail-3: rgba(2,56,90,.04); }
.dir-panel .sel { border: 1px solid #D5DEE5; border-radius: 6px; padding: 8px 10px; font-weight: 600; display: flex; justify-content: space-between; }
.dir-panel .grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.dir-panel .grid3 div { background: #F3F6F8; border-radius: 6px; padding: 8px; }
.dir-panel .grid3 b { display: block; font: 700 20px/1 var(--f-display); }
.dir-panel .grid3 div > span { font-size: 10.5px; color: #5B6F80; font-weight: 500; }
.dir-box { border-radius: 8px; padding: 12px 14px; color: #fff; }
.dir-box > span { font-size: 11px; font-weight: 600; letter-spacing: .02em; opacity: .9; }
.dir-box b { display: block; font: 700 34px/1.05 var(--f-display); }
.dir-box small { font-size: 11px; opacity: .85; }
.dir-box.now { background: #2350C8; }
.dir-box.future { background: var(--green); }
.lote-tag { position: absolute; background: var(--green); color: #fff; font-weight: 600; font-size: 13px; padding: 7px 11px; border-radius: 6px; opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s var(--ease); white-space: nowrap; }
.lote-tag.on { opacity: 1; transform: none; }

/* Perdas */
.loss { inset: 0; border-radius: 0; display: grid; grid-template-columns: 330px 1fr; background: #F4F7F9; --dx: 0px; animation: none !important; }
.loss .idx { background: #fff; border-right: 1px solid #E3EAF0; padding: 16px; }
.loss .idx h4 { margin-bottom: 10px; display: flex; gap: 8px; align-items: center; }
.loss .row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid #EEF2F5; font-size: 12.5px; opacity: 0; transform: translateX(-12px); transition: opacity .4s, transform .4s var(--ease); }
.loss .row b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.scene.is-on .loss .row { opacity: 1; transform: none; transition-delay: var(--d); }
.loss .tm { padding: 14px; display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 4px; }
.tcol { display: grid; gap: 4px; }
.tb { border-radius: 4px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 6px; font-size: 11px; color: #1C3D5A; opacity: 0; transform: scale(.94); transition: opacity .45s, transform .45s var(--ease); box-shadow: 14px 0 0 -2px transparent; }
.tb b { font-size: 12px; } .tb .v { font-variant-numeric: tabular-nums; } .tb .p { font-weight: 700; font-size: 13px; }
.tb.blue { background: #CFE3F7; } .tb.orange { background: #FBE0C3; color: #6B3A08; } .tb.pink { background: #F7D0D3; color: #7A1C25; }
.scene.is-on .tb { opacity: 1; transform: none; transition-delay: var(--d); }

/* Dashboards */
.dash { left: 0; top: 0; bottom: 0; width: 560px; border-radius: 0; padding: 14px 18px; display: flex; flex-direction: column; --dx: -50px; --trail-1: rgba(2,56,90,.18); --trail-2: rgba(2,56,90,.1); --trail-3: rgba(2,56,90,.04); }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid #E3EAF0; margin-bottom: 10px; }
.tabs span { font-size: 12px; font-weight: 500; color: #5B6F80; padding: 7px 10px; }
.tabs span.on { color: var(--green); font-weight: 600; box-shadow: inset 0 -2px 0 var(--green); }
.dash .total { text-align: center; margin: 4px 0 10px; }
.dash .total b { font: 700 26px/1.1 var(--f-display); display: block; }
.bars { flex: 1; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; align-items: end; padding: 0 6px 0; border-bottom: 1px solid #C9D3DA; position: relative; }
.bar { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.bar .v { font-size: 11.5px; font-weight: 600; margin-bottom: 4px; font-variant-numeric: tabular-nums; opacity: 0; transition: opacity .4s ease; }
.scene.is-on .bar .v { opacity: 1; transition-delay: calc(var(--d) + .7s); }
.bar i { display: block; width: 100%; height: var(--h); border-radius: 10px 10px 0 0; transform: scaleY(0); transform-origin: bottom; transition: transform 1.1s var(--ease); }
.scene.is-on .bar i { transform: none; transition-delay: var(--d); }
.bar-l { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; padding: 6px 6px 0; font-size: 11px; color: #5B6F80; text-align: center; font-weight: 500; }
.dash .avg { margin-top: 12px; border-top: 1px solid #E3EAF0; padding-top: 10px; display: flex; justify-content: space-between; align-items: baseline; }
.dash .avg b { font: 700 38px/1 var(--f-display); }

/* Integração comercial */
.int-card { left: 16px; top: 16px; width: 270px; padding: 14px; }
.int-card h4 { margin-bottom: 10px; }
.int-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid #EEF2F5; font-weight: 600; }
.int-row svg { width: 22px; height: 22px; flex: none; }
.int-row .chip { margin-left: auto; }
.links-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.links-svg path { fill: none; stroke: var(--water-2); stroke-width: 1.8; stroke-dasharray: 5 7; opacity: 0; transition: opacity .5s; }
.links-svg.on path { opacity: .9; animation: flow 1s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -24; } }
.lot-card { width: 250px; padding: 12px 14px; --dx: 0px; opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s var(--ease); animation: none !important; }
.lot-card.on { opacity: 1; transform: none; }
.lot-card dl { display: grid; grid-template-columns: auto 1fr; gap: 5px 10px; margin: 8px 0 0; font-size: 12px; }
.lot-card dt { color: #5B6F80; font-weight: 500; }
.lot-card dd { margin: 0; font-weight: 600; text-align: right; }

/* App de campo */
.phone { position: absolute; right: 120px; top: 22px; width: 248px; height: 520px; border-radius: 34px; background: #0B1620; padding: 10px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.7), inset 0 0 0 2px #2A3A48; --dx: 0px; transform: translateY(40px); opacity: 0; transition: transform .8s var(--ease), opacity .5s; }
.scene.is-on .phone { transform: none; opacity: 1; }
.phone .scr { position: relative; width: 100%; height: 100%; border-radius: 26px; overflow: hidden; background: #F4F6F5; }
.phone .notch { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 70px; height: 18px; border-radius: 10px; background: #0B1620; z-index: 3; }
.ph-page { position: absolute; inset: 0; transition: transform .6s var(--ease); }
.ph-list { transform: translateX(0); }
.ph-map { transform: translateX(100%); background: var(--night); }
.phone.on-map .ph-list { transform: translateX(-30%); }
.phone.on-map .ph-map { transform: translateX(0); }
.ph-head { background: #17A65A; color: #fff; padding: 36px 14px 12px; font-weight: 600; font-size: 17px; }
.ph-status { display: flex; align-items: center; gap: 7px; font-size: 11px; padding: 9px 12px; background: #fff; border-bottom: 1px solid #E3EAF0; color: #33495A; }
.ph-status svg { width: 16px; height: 16px; }
.wf { margin: 9px 10px 0; background: #fff; border: 1px solid #E3EAF0; border-radius: 12px; padding: 10px 11px; }
.wf b { display: block; font-size: 13px; margin-bottom: 2px; }
.wf small { display: block; font-size: 10.5px; color: #5B6F80; }
.wf .pb { height: 5px; background: #E3EAF0; border-radius: 3px; margin: 8px 0 4px; overflow: hidden; }
.wf .pb i { display: block; height: 100%; width: var(--from); background: #17A65A; border-radius: 3px; transition: width 1.6s var(--ease) .8s; }
.scene.is-on .wf .pb i { width: var(--to); }
.wf .open { margin-top: 8px; background: #17A65A; color: #fff; border-radius: 8px; text-align: center; font-weight: 600; font-size: 12px; padding: 7px; }
.ph-map svg { width: 100%; height: 100%; }
.ph-map .pt { fill: #fff; stroke: #0B1620; stroke-width: 1.5; transition: fill .3s; }
.ph-map .pt.ok { fill: #17C27A; }
.ph-sheet { position: absolute; left: 8px; right: 8px; bottom: 8px; background: #fff; border-radius: 14px; padding: 11px 12px; font-size: 12px; transform: translateY(120%); transition: transform .5s var(--ease); }
.ph-sheet.on { transform: none; }
.ph-sheet b { display: block; font-size: 13px; }
.sync { left: 40px; top: 40px; padding: 12px 14px; display: flex; gap: 10px; align-items: center; max-width: 260px; }
.sync svg { width: 26px; height: 26px; flex: none; }

/* Vídeo */
.video-section { padding-block: clamp(70px, 9vw, 130px); }
.video-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px); align-items: end; margin-bottom: 40px; }
.video-head h2 { max-width: 12ch; }
.video-head p { color: var(--on-night-2); margin: 0; }
.player { position: relative; border-radius: 12px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.player video { width: 100%; height: 100%; object-fit: cover; }
.player .play-btn { position: absolute; inset: 0; display: grid; place-items: center; border: 0; background: linear-gradient(0deg, rgba(4,33,58,.45), rgba(4,33,58,.1)); cursor: pointer; color: #fff; }
.player .play-btn span { display: inline-flex; align-items: center; gap: 12px; background: var(--green); padding: 16px 24px; border-radius: 8px; font: 600 1.125rem var(--f-body); transition: background-color .2s; }
.player .play-btn:hover span { background: var(--green-dark); }
.player .play-btn svg { width: 18px; height: 18px; fill: currentColor; }
.player.is-playing .play-btn { display: none; }
@media (max-width: 880px) { .video-head { grid-template-columns: 1fr; } }

/* Serviços: cada item sai da adutora como um ramal */
.services-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.services-grid .aside { position: sticky; top: calc(var(--header-h) + 40px); }
.services-grid .aside h2 { max-width: 10ch; margin-bottom: 22px; }
.pipeline { list-style: none; margin: 0; padding: 0 0 0 46px; position: relative; }
.pipeline::before { content: ""; position: absolute; left: 9px; top: 10px; bottom: 10px; width: 4px; border-radius: 2px; background: var(--navy); }
.pipeline li { position: relative; padding: 0 0 clamp(30px, 4vw, 48px); }
.pipeline li:last-child { padding-bottom: 0; }
.pipeline li::before { content: ""; position: absolute; left: -46px; top: 13px; width: 38px; height: 3px; background: var(--navy); }
.pipeline li::after { content: ""; position: absolute; left: -42px; top: 7px; width: 15px; height: 15px; border-radius: 50%; background: var(--paper); border: 3px solid var(--green); }
.section-mist .pipeline li::after { background: var(--mist); }
.pipeline h3 { font: 600 clamp(1.6rem, 1.25rem + 1.1vw, 2.2rem)/1.05 var(--f-display); margin-bottom: 10px; }
.pipeline p { color: var(--ink-2); margin: 0; }
@media (max-width: 880px) { .services-grid { grid-template-columns: 1fr; } .services-grid .aside { position: static; } }

/* Sobre */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.about .big-years { font: 700 clamp(5rem, 3rem + 9vw, 11rem)/.8 var(--f-display); color: var(--green); letter-spacing: -.01em; }
.about .big-years small { display: block; font: 600 clamp(1.4rem, 1.1rem + 1vw, 2rem)/1.1 var(--f-display); color: var(--navy); margin-top: 14px; letter-spacing: 0; }
.about .lead { margin-bottom: 1.2em; }
@media (max-width: 880px) { .about { grid-template-columns: 1fr; } }

/* Chamada para contato */
.cta { background: var(--navy); color: #fff; padding-block: clamp(64px, 8vw, 110px); position: relative; overflow: hidden; }
.cta-inner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px); align-items: end; }
.cta h2 { max-width: 15ch; }
.cta .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-start; }
.cta .btn-primary { background: #fff; color: var(--navy); }
.cta .btn-primary:hover { background: var(--mist); }
@media (max-width: 880px) { .cta-inner { grid-template-columns: 1fr; } }

/* Rodapé */
.site-footer { background: var(--night); color: var(--on-night-2); padding-block: 64px 32px; font-size: 1rem; }
.foot-top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; padding-bottom: 44px; border-bottom: 1px solid rgba(185,204,218,.22); }
.foot-brand img { height: 56px; width: auto; margin-bottom: 18px; }
.foot-brand p { color: #fff; font: 600 1.5rem/1.15 var(--f-display); max-width: 20ch; margin: 0; }
.foot-contacts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 36px; margin: 0; }
.foot-contacts dt { font-size: .9375rem; color: #8FA9BC; margin-bottom: 4px; }
.foot-contacts dd { margin: 0; color: #fff; }
.foot-contacts a { text-decoration: none; }
.foot-contacts a:hover { text-decoration: underline; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; padding-top: 26px; }
.foot-bottom nav { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.foot-bottom a { text-decoration: none; color: var(--on-night-2); padding: 4px 0; }
.foot-bottom a:hover { color: #fff; text-decoration: underline; }
@media (max-width: 880px) { .foot-top { grid-template-columns: 1fr; } .foot-contacts { grid-template-columns: 1fr; } }

/* Cabeçalho das páginas internas */
.page-head { padding-block: clamp(56px, 8vw, 120px) clamp(40px, 5vw, 72px); }
.page-head h1 { font-size: clamp(3rem, 1.6rem + 5.2vw, 6.5rem); max-width: 14ch; }
.page-head .lead { margin-top: 26px; color: var(--ink-2); }
.split { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
@media (max-width: 980px) { .split { grid-template-columns: 1fr; } }

/* Legenda de módulos (página Produto) */
.legend-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(28px, 5vw, 72px); margin: 0; padding: 0; list-style: none; }
.legend-list li { display: grid; grid-template-columns: 54px 1fr; gap: 18px; padding: 24px 0; border-top: 1px solid var(--line); }
.legend-list .sw { width: 54px; height: 30px; margin-top: 4px; }
.legend-list h3 { font: 600 1.6rem/1.05 var(--f-display); margin-bottom: 6px; }
.legend-list p { margin: 0; color: var(--ink-2); font-size: 1rem; }
.legend-list li.base h3 { color: var(--ink-2); }
@media (max-width: 760px) { .legend-list { grid-template-columns: 1fr; } }

.mvv { margin: 0; display: grid; gap: 0; }
.mvv div { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 28px; padding: 30px 0; border-top: 1px solid var(--line); }
.mvv dt { font: 600 clamp(2rem, 1.5rem + 1.6vw, 3rem)/1 var(--f-display); }
.mvv dd { margin: 0; font-size: 1.15rem; max-width: 56ch; }
@media (max-width: 760px) { .mvv div { grid-template-columns: 1fr; gap: 10px; } }

/* Contato */
.contact { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.form { display: grid; gap: 18px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--ink-2); }
.field input, .field textarea { width: 100%; font: 400 1.0625rem/1.4 var(--f-body); color: var(--navy); background: #fff; border: 2px solid #A9BAC7; border-radius: 6px; padding: 12px 14px; min-height: 50px; transition: border-color .2s; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--navy); }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--navy); }
.field [aria-invalid="true"] { border-color: #B42318; }
.field .err { color: #B42318; font-size: .9375rem; margin-top: 6px; display: none; }
.field [aria-invalid="true"] + .err { display: block; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form .submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.btn[disabled] { opacity: .7; cursor: progress; }
.spinner { width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; display: none; }
.is-sending .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-status { border-radius: 8px; padding: 16px 18px; font-weight: 500; display: none; }
.form-status.ok { display: block; background: #E3F6EA; color: #0B5A2F; }
.form-status.error { display: block; background: #FFE4E4; color: #8A1C12; }
.contact-list { margin: 0; display: grid; gap: 22px; }
.contact-list dt { font-weight: 600; color: var(--ink-2); font-size: .9375rem; margin-bottom: 2px; }
.contact-list dd { margin: 0; font-size: 1.2rem; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
@media (max-width: 880px) { .contact { grid-template-columns: 1fr; } .form .two { grid-template-columns: 1fr; } }

/* 404 */
.notfound { min-height: 60vh; display: grid; align-items: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js [data-reveal] .w { opacity: 1; }
  .hero-map .main { stroke-dashoffset: 0; }
  .hero-map .res, .hero-map .pump { opacity: 1; }
  .citymap .res .ring, .citymap .break .ring, .citymap .lot-pick-ring { display: none; }
}

.stage.paused *, .stage.paused *::before, .stage.paused *::after { animation-play-state: paused !important; }
.ph-map .ph-pipes { fill: none; stroke: var(--water); stroke-opacity: .8; stroke-width: 1.4; }
.ph-map .ph-land { fill: var(--night-2); }
.int-row svg { stroke: var(--navy); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sim-btn svg, .sync svg, .ph-status svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sync svg { stroke: var(--green); }
.tel-head img { height: 22px; width: auto; }

/* Números reais da Geomapa (fonte: site anterior) */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); margin-top: clamp(48px, 6vw, 88px); padding-top: clamp(32px, 4vw, 48px); border-top: 3px solid var(--navy); }
/* Algarismos proporcionais: o "1" de largura fixa tem recuo à esquerda e desalinha com a legenda.
   Durante a contagem, a largura final fica reservada no script, então a unidade não se mexe. */
.stat b { display: block; font: 700 clamp(2.8rem, 1.7rem + 3.4vw, 4.8rem)/1 var(--f-display); color: var(--navy); white-space: nowrap; }
.stat b > span { display: inline-block; }
.stat b small { font-size: .46em; font-weight: 600; color: var(--green); margin-left: .18em; }
.stat > span { display: block; margin-top: 10px; color: var(--ink-2); font-weight: 500; }
.stats-band { padding-block: 0 clamp(56px, 7vw, 96px); }
.stats-band .stats { margin-top: 0; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr; } }

.local-note { background: #FFF4D6; color: #5C4200; font-weight: 500; text-align: center; padding: 10px 16px; font-size: .9375rem; }

.viewport[data-scene="telemetria"] .res, .viewport[data-scene="simulacao"] .res, .viewport[data-scene="app"] .res { transform: scale(1.6); transform-box: fill-box; transform-origin: center; }
.viewport .res { transition: transform .6s var(--ease); }

/* Por que o Geomapa Hydro: uma adutora com a água passando por cada motivo */
.why { background: var(--mist); padding-block: clamp(80px, 9vw, 130px); }
.why-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px); align-items: end; }
.why-head h2 { max-width: 13ch; }
.why-head p { margin: 0; color: var(--ink-2); }
.why-line { list-style: none; margin: clamp(48px, 6vw, 80px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 32px); position: relative; }
.why-line::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 4px; border-radius: 2px; background: var(--navy); }
.why-line::after { content: ""; position: absolute; top: 5px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--water); box-shadow: -12px 0 0 -2px rgba(46,168,230,.45), -24px 0 0 -3px rgba(46,168,230,.22), -36px 0 0 -4px rgba(46,168,230,.1); animation: run-x 7s linear infinite; }
@keyframes run-x { from { left: 0; } to { left: calc(100% - 12px); } }
.why-line li { position: relative; padding-top: 46px; }
.why-line li::before { content: ""; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--mist); border: 4px solid var(--green); animation: node 7s linear infinite; animation-delay: calc(var(--i) * 1.4s); }
@keyframes node { 0% { background: var(--green); transform: scale(1.3); } 10% { background: var(--mist); transform: none; } 100% { background: var(--mist); } }
.why-line h3 { font: 600 clamp(1.55rem, 1.2rem + .9vw, 2rem)/1.02 var(--f-display); margin-bottom: 10px; }
.why-line p { margin: 0; color: var(--ink-2); font-size: 1rem; }
@media (max-width: 880px) {
  .why-head { grid-template-columns: 1fr; }
  .why-line { grid-template-columns: 1fr; gap: 30px; padding-left: 44px; }
  .why-line::before { left: 9px; right: auto; top: 0; bottom: 0; width: 4px; height: auto; }
  .why-line::after { left: 5px; top: 0; box-shadow: 0 -12px 0 -2px rgba(46,168,230,.45), 0 -24px 0 -3px rgba(46,168,230,.22); animation: run-y 7s linear infinite; }
  @keyframes run-y { from { top: 0; } to { top: calc(100% - 12px); } }
  .why-line li { padding-top: 0; }
  .why-line li::before { left: -44px; top: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .why-line::after, .scroll-cue span { display: none; }
  .hero-map.is-sim { animation: none; }
}
