/* Public presentation: isolated from the authenticated application's chrome.
   Blue and amber preserve PEC Vision's identity; every color uses a role token. */
:root {
  --paper: #f7f8f5;
  --surface: #fff;
  --ink: #172e48;
  --muted: #586777;
  --brand: #17458f;
  --brand-dark: #10366e;
  --blue-soft: #e9eff7;
  --line: #d9e0e4;
  --amber: #d98e2b;
  --amber-ink: #895511;
  --amber-soft: #fbefd9;
  --success: #27715c;
  --success-soft: #edf5f0;
  --night: #102d4d;
  --night-text: #f5f6f0;
  --night-muted: #b5c6d6;
  --night-line: #35506c;
  --map-bg: #eaf0ee;
  --map-block: #f5f7f2;
  --map-road: #fff;
  --map-river: #cadbdc;
  --map-link: #7696ad;
  --shadow: rgba(19, 43, 67, 0.1);
  --header-h: 88px;
  --sans: "IBM Plex Sans", "Segoe UI", sans-serif;
  --serif: "Newsreader", Georgia, serif;
  --mono: "IBM Plex Mono", monospace;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  overflow-x: clip;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 5px;
}
button:disabled {
  cursor: default;
}
svg {
  display: block;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
h1,
h2,
h3,
h4 {
  font-weight: 500;
}
em {
  font-family: var(--serif);
  font-weight: 400;
}
button[hidden],
[hidden] {
  display: none !important;
}
::selection {
  background: var(--amber-soft);
  color: var(--ink);
}
.section-shell {
  width: min(1240px, calc(100% - 112px));
  margin-inline: auto;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: 1.2px;
  font-weight: 400;
}
.eyebrow {
  color: var(--brand);
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 100;
  background: var(--surface);
  padding: 15px;
}
.skip-link:focus {
  top: 12px;
}
.site-header {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 56px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: relative;
  z-index: 10;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-size: 23px;
  letter-spacing: -0.8px;
}
.brand strong {
  font-weight: 600;
}
.brand-mark {
  width: 36px;
  height: 36px;
  color: var(--brand);
}
.brand-eye {
  fill: var(--paper);
}
.site-header nav {
  display: flex;
  gap: 34px;
  font-size: 13px;
  color: var(--muted);
}
.site-header nav a {
  padding: 12px 0;
  position: relative;
}
.site-header nav a:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 5px;
  width: 100%;
  height: 1px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s;
}
.site-header nav a:hover:after {
  transform: scaleX(1);
}
.header-access {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--line);
  padding: 12px 17px;
}
.header-access svg,
.button svg {
  width: 21px;
  height: 21px;
  transition: transform 0.2s;
}
.header-access:hover svg,
.button:hover svg {
  transform: translateX(4px);
}
.header-access:hover {
  border-color: var(--brand);
}
.hero {
  position: relative;
  max-width: 1600px;
  margin: auto;
  padding: 70px 56px 0;
  /* Ocupa ao menos a altura da tela abaixo do header: a seção seguinte só aparece
     ao rolar. A faixa de parceiros fica no pé (linha auto). */
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100dvh - var(--header-h));
  grid-template-rows: 1fr auto;
  display: grid;
  grid-template-columns: minmax(480px, 1fr) 1.25fr;
  column-gap: 32px;
  align-items: center;
}
.hero-copy {
  position: relative;
  z-index: 2;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: 0 16px 40px var(--shadow);
  padding: 30px 32px 26px;
  align-self: center;
  justify-self: start;
  width: fit-content;
  max-width: 100%;
}
.hero-copy h1 {
  margin-top: 0;
}

h1 {
  font-size: clamp(60px, 5.7vw, 86px);
  line-height: 1.04;
  letter-spacing: -4px;
  margin: 28px 0 25px;
}
h1 em {
  color: var(--brand);
  letter-spacing: -3px;
}
.hero-description {
  font-size: 20px;
  line-height: 1.5;
  letter-spacing: -0.3px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 52px;
  padding: 14px 21px;
  font-size: 14px;
  font-weight: 500;
  transition:
    background 0.2s,
    transform 0.2s;
}
.button-primary {
  background: var(--brand);
  color: var(--surface);
  margin-top: 27px;
}
.button-primary:hover {
  background: var(--brand-dark);
  transform: translateY(-2px);
}
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  position: relative;
  z-index: 2;
}
.has-vectors {
  position: relative;
  isolation: isolate;
}
.section-vectors {
  position: absolute;
  inset: 0 auto 0 50%;
  transform: translateX(-50%);
  width: 100vw;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}
.section-vectors svg {
  /* Tamanho fixo (proporção do viewBox): a faixa não estica nem encolhe com a
     tela; telas menores só mostram um recorte central. */
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1920px;
  height: 820px;
  max-width: none;
  transform: translate(-50%, -50%);
  display: block;
}
.section-vectors-journey {
  opacity: 0.55;
}
/* Toda seção ocupa ao menos a altura da tela, com o conteúdo centrado na
   vertical; conteúdo mais alto que a tela cresce normalmente. */
.demo-section,
.territory,
.journey {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.project,
.faq {
  min-height: 100vh;
  min-height: 100dvh;
  align-content: center;
}
.hero-screen-vectors {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100%;
  max-height: 850px;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.hero-screen-vectors svg {
  /* Tamanho fixo (proporção do viewBox): a faixa não estica nem encolhe com a
     tela; telas menores só mostram um recorte central. */
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1920px;
  height: 820px;
  max-width: none;
  transform: translate(-50%, -50%);
  display: block;
}
.hero-mockup-wrapper {
  position: relative;
  width: 100%;
  max-width: 960px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-mockup-single {
  transition: opacity 0.35s ease;
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.12));
}

.row-avatar,
.detail-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-soft);
  color: var(--brand);
  font-size: 13px;
}

.hero-bottom {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  margin-top: 55px;
  min-height: 78px;
  gap: 20px;
  font-size: 11px;
  color: var(--muted);
}

.hero-partners {
  display: flex;
  align-items: center;
  gap: 22px;
}
.hero-partner-logo {
  height: 38px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
  display: block;
}
.hero-partner-logo.hero-partner-city {
  height: 46px;
  max-width: 46px;
}
.hero-mockup-single:not(.is-loaded) {
  opacity: 0;
}
.demo-section {
  padding-top: 112px;
  padding-bottom: 105px;
}
/* Fundo escuro de ponta a ponta (a seção é .section-shell, de largura limitada),
   alternando claro/escuro com Como funciona. */
.demo-section::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: var(--night);
  z-index: -2;
}
.demo-section {
  color: var(--night-text);
}
.demo-section .eyebrow {
  color: var(--night-muted);
}
.demo-section .section-intro > p:last-child {
  color: var(--night-muted);
}
.demo-section .workspace {
  color: var(--ink);
  border-color: var(--night-line);
  box-shadow: 0 24px 60px rgba(4, 16, 32, 0.45);
}
.section-vectors-demo {
  opacity: 0.55;
}
.section-intro {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 20px 100px;
  align-items: end;
}
.section-intro .eyebrow {
  grid-column: 1/-1;
}
h2 {
  font-size: clamp(38px, 4vw, 57px);
  line-height: 1.1;
  letter-spacing: -2px;
}
h2 em {
  color: var(--brand);
}
.section-intro > p:last-child {
  color: var(--muted);
  line-height: 1.85;
  font-size: 15px;
  max-width: 405px;
  padding-bottom: 4px;
}
.workspace {
  margin-top: 48px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
  box-shadow: 0 18px 55px var(--shadow);
  overflow: hidden;
}
.workspace-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 25px;
  border-bottom: 1px solid var(--line);
}
.mini-brand {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
}
.mini-brand .brand-mark {
  width: 25px;
  height: 25px;
}
.mini-brand strong {
  font-weight: 600;
}
.demo-label {
  font: 10px var(--mono);
  letter-spacing: 1px;
  color: var(--muted);
}
.workspace-user {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
}
.workspace-user i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--paper);
  font-style: normal;
  font-size: 11px;
}
.workspace-body {
  padding: 28px 28px 0;
}
.demo-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 25px 0 22px;
}
.demo-filters button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  border-radius: 4px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  min-height: 44px;
  transition:
    background 0.2s,
    color 0.2s;
}
.demo-filters button span {
  font: 10px var(--mono);
}
.demo-filters button[aria-pressed="true"] {
  color: var(--surface);
  background: var(--brand);
  border-color: var(--brand);
}
.demo-filters button:hover:not([aria-pressed="true"]) {
  background: var(--blue-soft);
  color: var(--brand);
}
.demo-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 25px;
  min-height: 462px;
}
.list-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  color: var(--muted);
  font: 10px var(--mono);
  letter-spacing: 0.5px;
  padding: 10px 13px 13px;
}
.citizen-row {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr 14px;
  align-items: center;
  text-align: left;
  border: 0;
  border-top: 1px solid var(--line);
  padding: 13px;
  color: var(--ink);
  background: var(--surface);
  transition:
    background 0.2s,
    box-shadow 0.2s;
  min-height: 61px;
}
.citizen-row:hover {
  background: var(--paper);
}
.citizen-row.selected {
  background: var(--blue-soft);
  box-shadow: inset 3px 0 var(--brand);
}
.row-person {
  display: flex;
  align-items: center;
  gap: 10px;
}
.row-avatar {
  width: 32px;
  height: 32px;
  font-size: 11px;
  border-radius: 50%;
  background: var(--paper);
}
.row-person strong {
  display: block;
  font-size: 12px;
  font-weight: 500;
}
.row-person small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
.row-status {
  font-size: 11px;
  display: flex;
  gap: 6px;
  align-items: center;
}
.row-status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.attention {
  color: var(--amber-ink);
}
.okay {
  color: var(--success);
}
.row-arrow {
  color: var(--muted);
}
.list-footer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 18px 0;
  font-size: 11px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.person-detail {
  background: var(--night);
  color: var(--night-text);
  padding: 22px 23px 19px;
  align-self: start;
  min-height: 405px;
  border-radius: 4px;
}
.detail-avatar {
  height: 47px;
  width: 47px;
  border-radius: 50%;
  color: var(--night-text);
  background: var(--night-line);
  font-size: 14px;
}
.person-detail h4 {
  font-size: 25px;
  margin: 11px 0 5px;
  letter-spacing: -0.6px;
}
.person-detail > p {
  font-size: 11px;
  color: var(--night-muted);
  line-height: 1.7;
}
.detail-rule {
  height: 1px;
  background: var(--night-line);
  margin: 19px 0;
}
.detail-label {
  font: 10px var(--mono);
  letter-spacing: 0.6px;
  color: var(--night-muted);
}
#detail-issue {
  display: block;
  color: var(--amber);
  font-size: 13px;
  font-weight: 500;
  margin: 9px 0 8px;
}
.detail-next {
  margin-top: 22px;
  border-left: 2px solid var(--amber);
  padding-left: 12px;
}
.detail-next span {
  font: 10px var(--mono);
  letter-spacing: 0.8px;
  color: var(--night-muted);
}
.detail-next p {
  font-size: 11px;
  line-height: 1.65;
  margin-top: 6px;
}
.journey {
  background: var(--night);
  color: var(--night-text);
  padding: 100px 0 70px;
}
.journey-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 80px;
}
.journey .eyebrow {
  color: var(--night-muted);
}
.journey h2 {
  margin: 25px 0 50px;
}
.journey h2 em {
  color: var(--amber);
}
.journey-step {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  padding: 24px 0 52px;
  border-top: 1px solid var(--night-line);
}
.step-number {
  font: 12px var(--mono);
  color: var(--amber);
  padding-top: 3px;
}
.journey-step h3 {
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: -0.6px;
  margin: 0 0 14px;
}
.journey-step p {
  font-size: 13px;
  line-height: 1.85;
  color: var(--night-muted);
}
.step-sample {
  margin-top: 23px;
  padding: 19px;
  border: 1px solid var(--night-line);
  font-size: 11px;
}
.import-sample {
  display: flex;
  align-items: center;
  gap: 10px;
}
.import-sample > span:first-child {
  color: var(--night-muted);
}
.sample-line {
  height: 1px;
  background: var(--night-line);
  flex: 1;
  min-width: 10px;
}
.import-sample strong {
  font-weight: 400;
  color: var(--amber);
}
.tags-sample {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  border: none;
  padding: 0;
}
.tags-sample span {
  border: 1px solid var(--night-line);
  border-radius: 3px;
  padding: 8px;
}
.tags-sample span:nth-child(2) {
  color: var(--amber);
}
.tags-sample b {
  display: block;
  width: 100%;
  font-weight: 400;
  color: var(--night-muted);
  font-size: 11px;
  margin-top: 4px;
}
.paper-sample {
  background: var(--paper);
  color: var(--ink);
  position: relative;
  border: 0;
  transform: rotate(-1deg);
  max-width: 320px;
  padding: 20px;
}
.paper-sample strong {
  font-weight: 500;
  display: block;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}
.paper-sample > span:not(.paper-fold) {
  display: block;
  font-size: 11px;
  color: var(--muted);
  line-height: 2;
}
.paper-fold {
  position: absolute;
  top: 0;
  right: 0;
  border-top: 16px solid var(--night);
  border-left: 16px solid var(--line);
}
.progress-sample > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
}
.progress-sample strong {
  font-weight: 400;
}
.progress-sample > div > span {
  color: var(--night-muted);
}
.sample-progress {
  height: 4px;
  background: var(--night-line);
  margin: 15px 0 9px;
  overflow: hidden;
}
.sample-progress span {
  display: block;
  width: 66.666%;
  height: 100%;
  background: var(--amber);
  transform-origin: left;
  transition: transform 1s;
}
.progress-sample small {
  font-size: 11px;
  color: var(--night-muted);
}
.project {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
  padding-block: 110px 100px;
}
.project h2 {
  margin: 20px 0 22px;
}
.project-intro > p:not(.eyebrow) {
  font-size: 14px;
  line-height: 1.85;
  color: var(--muted);
  max-width: 420px;
}
.project-intro .button {
  margin-top: 30px;
}
.project-intro > .project-note {
  font-size: 11px;
  line-height: 1.8;
  margin-top: 16px;
  max-width: 320px;
}
.faq {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
  align-items: start;
  padding-block: 40px 110px;
}
/* Fundo escuro de ponta a ponta, como Demonstração e Como funciona. */
.faq {
  position: relative;
  isolation: isolate;
  color: var(--night-text);
}
.faq::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: var(--night);
  z-index: -1;
}
.faq .faq-list details {
  border-color: var(--night-line);
}
.faq .faq-list summary span {
  color: var(--night-muted);
}
.faq .faq-list summary:focus-visible {
  outline-color: var(--night-text);
}
.faq .faq-list p {
  color: var(--night-muted);
}
.faq h2 {
  position: sticky;
  top: 96px;
}
.faq-list details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.faq-list details:first-child {
  border-top: 1px solid var(--night-line);
}
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 44px;
  list-style: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary span {
  font-size: 22px;
  color: var(--brand);
  transition: transform 0.2s;
}
.faq-list details[open] summary span {
  transform: rotate(45deg);
}
.faq-list summary:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 4px;
}
.faq-list p {
  max-width: 62ch;
  padding: 8px 40px 6px 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}
@media (max-width: 900px) {
  .faq {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-block: 24px 72px;
  }
  .faq h2 {
    position: static;
  }
  .faq-list p {
    padding-right: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .faq-list summary span {
    transition: none;
  }
}
.project-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.project-mark {
  display: block;
  width: min(100%, 460px);
  height: auto;
}
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding-block: 36px;
}
.site-footer .brand {
  font-size: 21px;
}
.site-footer p,
.site-footer > span {
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
}
.site-footer > span {
  text-align: right;
}
.footer-development {
  font-size: 11px;
}
.back-top {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  color: var(--brand);
}
.back-top:hover {
  background: var(--blue-soft);
}
/* Reveals only run when observed. Content remains readable without JavaScript. */
@media (prefers-reduced-motion: no-preference) {
  .reveal.is-visible {
    animation: reveal 0.7s backwards;
  }
  .detail-changing {
    animation: detail-in 0.3s both;
  }
  @keyframes reveal {
    from {
      opacity: 0.35;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  @keyframes detail-in {
    from {
      opacity: 0.5;
      transform: translateY(5px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
@media (min-width: 1600px) {
  .hero {
    padding-inline: 110px;
    column-gap: 70px;
  }

  .hero-copy {
    padding: 34px 34px 28px;
  }
  .site-header {
    padding-inline: max(56px, calc((100vw - 1380px) / 2));
  }
}
@media (max-width: 1100px) {
  .site-header {
    padding-inline: 32px;
  }
  .section-shell {
    width: calc(100% - 64px);
  }
  .hero {
    padding: 50px 32px 0;
    gap: 20px;
  }
  .hero h1 {
    font-size: 65px;
  }

  .hero-description {
    font-size: 18px;
  }

  .section-intro {
    gap: 20px 50px;
  }
  .demo-layout {
    grid-template-columns: 1fr 250px;
    gap: 18px;
  }
  .workspace-body {
    padding: 24px 20px 0;
  }
  .row-status {
    font-size: 11px;
  }
  .journey-steps {
    column-gap: 40px;
  }
  .journey-step {
    grid-template-columns: 25px 1fr;
    gap: 12px;
  }
  .journey-step h3 {
    font-size: 22px;
  }
  .project {
    gap: 40px;
  }
}
/* Abaixo de 900px a coluna do mockup ficaria estreita demais ao lado do texto
   (mínimo de 480px na primeira coluna): empilha como no celular. */
@media (max-width: 900px) {
  .journey-steps {
    grid-template-columns: 1fr;
  }
  .hero {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .hero-visual {
    margin-top: 34px;
    width: 100%;
  }
  .hero-mockup-wrapper {
    max-width: 680px;
  }
}
@media (max-width: 800px) {
  :root {
    --header-h: 76px;
  }
  .site-header {
    height: 76px;
    padding-inline: 24px;
  }
  .site-header nav {
    gap: 18px;
    font-size: 11px;
  }
  .header-access {
    padding: 10px 12px;
    gap: 10px;
    font-size: 11px;
  }
  .brand {
    font-size: 20px;
  }
  .brand-mark {
    width: 30px;
    height: 30px;
  }
  .section-shell {
    width: calc(100% - 48px);
  }
  .hero {
    padding: 40px 24px 0;
    column-gap: 15px;
  }
  .hero-copy {
    padding: 24px 20px 20px;
  }
  .hero h1 {
    font-size: 54px;
    letter-spacing: -2.8px;
  }
  .hero h1 em {
    letter-spacing: -2px;
  }

  .hero-description {
    font-size: 16px;
  }

  .hero-bottom {
    margin-top: 40px;
    gap: 15px;
    font-size: 11px;
  }
  .demo-section {
    padding-block: 75px;
  }
  .section-intro {
    gap: 18px 30px;
  }
  h2 {
    font-size: 41px;
  }
  .section-intro > p:last-child {
    font-size: 13px;
  }
  .demo-layout {
    grid-template-columns: 1fr 220px;
    gap: 13px;
    min-height: 460px;
  }
  .person-detail {
    padding: 20px 17px;
  }
  .demo-filters {
    gap: 6px;
  }
  .demo-filters button {
    font-size: 11px;
    padding: 8px;
    gap: 7px;
  }
  .citizen-row {
    grid-template-columns: 1fr 13px;
    gap: 6px;
    padding: 9px 10px;
    min-height: 62px;
  }
  .row-person {
    grid-column: 1;
  }
  .row-avatar {
    width: 28px;
    height: 28px;
  }
  .row-status {
    grid-column: 1;
    padding-left: 38px;
    font-size: 11px;
  }
  .row-arrow {
    grid-column: 2;
    grid-row: 1/3;
  }
  .list-heading {
    grid-template-columns: 1fr;
    font-size: 11px;
  }
  .list-heading span + span {
    display: none;
  }
  .list-footer {
    font-size: 11px;
    flex-wrap: wrap;
  }
  .journey {
    padding-top: 75px;
  }
  .journey h2 {
    font-size: 39px;
    margin-bottom: 30px;
  }
  .journey .eyebrow {
    font-size: 11px;
  }
  .journey-step h3 {
    font-size: 20px;
  }
  .journey-step p {
    font-size: 12px;
  }
  .project {
    padding-block: 75px;
    grid-template-columns: 1fr;
  }
  .step-sample {
    padding: 13px;
  }
  .import-sample {
    flex-wrap: wrap;
    font-size: 11px;
  }
  .site-footer {
    gap: 20px;
  }
  .site-footer p {
    max-width: 185px;
    font-size: 11px;
  }
  .site-footer > span {
    font-size: 11px;
  }
  .site-footer .brand {
    font-size: 18px;
  }
}
@media (max-width: 600px) {
  :root {
    --header-h: 72px;
  }
  html {
    scroll-padding-top: 20px;
  }
  .site-header {
    height: 72px;
    padding-inline: 20px;
  }
  .site-header nav {
    display: none;
  }
  .header-access {
    min-height: 44px;
    border-color: var(--line);
    font-size: 11px;
  }
  .section-shell {
    width: calc(100% - 40px);
  }
  .hero {
    padding: 36px 20px 0;
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .hero-copy {
    padding: 20px 16px 16px;
  }

  .hero h1 {
    font-size: clamp(54px, 12vw, 70px);
    letter-spacing: -2.8px;
    line-height: 1.03;
    margin: 24px 0 20px;
  }
  .hero h1 br:nth-of-type(1) {
    display: none;
  }
  .hero h1 br:nth-of-type(1):after {
    content: " ";
  }
  .hero-description {
    font-size: 18px;
    line-height: 1.5;
  }
  .button-primary {
    margin-top: 23px;
    min-height: 50px;
    font-size: 13px;
  }
  .hero-visual {
    margin-top: 34px;
    width: 100%;
  }

  .hero-bottom {
    min-height: 68px;
    margin-top: 26px;
    flex-wrap: wrap;
    gap: 0 14px;
    padding: 14px 0;
    font-size: 11px;
  }

  .hero-partners {
    width: 100%;
    margin-bottom: 10px;
    gap: 16px;
  }
  .hero-partner-logo,
  .hero-partner-logo.hero-partner-city {
    height: 30px;
  }
  .hero-partner-logo.hero-partner-city {
    max-width: 34px;
  }
  .demo-section {
    padding: 58px 0;
  }
  .section-intro {
    display: block;
  }
  .eyebrow {
    font-size: 11px;
    letter-spacing: 0.9px;
  }
  h2 {
    font-size: 39px;
    letter-spacing: -1.5px;
  }
  .section-intro h2 {
    margin-top: 19px;
  }
  .section-intro > p:last-child {
    font-size: 14px;
    line-height: 1.8;
    max-width: 100%;
    margin-top: 21px;
  }
  .workspace {
    margin-top: 28px;
    border-radius: 5px;
  }
  .workspace-top {
    padding: 13px 14px;
  }
  .mini-brand {
    font-size: 12px;
    gap: 4px;
  }
  .mini-brand .brand-mark {
    width: 22px;
    height: 22px;
  }
  .demo-label {
    font-size: 11px;
    letter-spacing: 0.5px;
  }
  .workspace-user {
    display: none;
  }
  .workspace-body {
    padding: 20px 13px 0;
  }
  .demo-filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 19px 0;
  }
  .demo-filters button {
    justify-content: space-between;
    gap: 6px;
    min-height: 44px;
    font-size: 11px;
    text-align: left;
  }
  .demo-filters button span {
    font-size: 11px;
  }
  .demo-layout {
    grid-template-columns: 1fr;
    gap: 8px;
    min-height: 0;
  }
  .citizen-row {
    grid-template-columns: 1fr 1.15fr 12px;
    min-height: 66px;
    padding: 10px 8px;
    gap: 5px;
  }
  .row-person {
    gap: 8px;
  }
  .row-avatar {
    width: 28px;
    height: 28px;
    font-size: 11px;
  }
  .row-person strong {
    font-size: 11px;
  }
  .row-person small {
    font-size: 11px;
  }
  .row-status {
    grid-column: 2;
    padding: 0;
    font-size: 11px;
    line-height: 1.5;
  }
  .row-arrow {
    grid-column: 3;
    grid-row: 1;
  }
  .list-heading {
    font-size: 11px;
    padding-left: 8px;
  }
  .list-footer {
    font-size: 11px;
    padding: 14px 0;
  }
  .person-detail {
    min-height: 0;
    padding: 20px;
    display: grid;
    grid-template-columns: 47px 1fr;
    column-gap: 13px;
    margin-bottom: 18px;
  }
  .detail-avatar {
    grid-row: 1/3;
    margin: 0;
    align-self: center;
  }
  .person-detail h4 {
    font-size: 23px;
    margin: 0 0 3px;
  }
  .person-detail > p {
    font-size: 11px;
  }
  .detail-rule {
    grid-column: 1/-1;
    margin: 17px 0;
  }
  .detail-label,
  #detail-issue,
  #detail-action,
  .detail-next {
    grid-column: 1/-1;
  }
  .detail-label {
    font-size: 11px;
  }
  #detail-issue {
    font-size: 13px;
  }
  .detail-next {
    margin-top: 17px;
  }
  .journey {
    padding: 58px 0 20px;
  }
  .journey h2 {
    font-size: 36px;
    margin: 21px 0 12px;
  }
  .journey-step {
    grid-template-columns: 29px 1fr;
    gap: 12px;
    padding: 24px 0 30px;
  }
  .journey-step h3 {
    font-size: 22px;
    margin: 0 0 12px;
  }
  .journey-step p {
    font-size: 13px;
  }
  .step-sample {
    margin-top: 20px;
    padding: 16px;
  }
  .tags-sample {
    padding: 0;
  }
  .paper-sample {
    max-width: 100%;
  }
  .paper-sample > span:not(.paper-fold) {
    font-size: 11px;
  }
  .import-sample {
    font-size: 11px;
  }
  .progress-sample > div:first-child {
    font-size: 11px;
  }
  .project {
    padding: 58px 0;
    gap: 32px;
  }
  .project-intro .button {
    width: auto;
    min-width: 235px;
    min-height: 50px;
    font-size: 13px;
  }
  .site-footer {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    padding-block: 30px;
  }
  .site-footer .brand {
    font-size: 21px;
  }
  .site-footer p {
    grid-column: 1;
    max-width: none;
    font-size: 11px;
  }
  .site-footer > span {
    grid-column: 1;
    text-align: left;
    font-size: 11px;
  }
  .back-top {
    grid-column: 2;
    grid-row: 1;
  }
  .footer-development {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}
@media (prefers-contrast: more) {
  :root {
    --muted: #304254;
    --line: #7d8c98;
    --night-muted: #e4ebf2;
    --night-line: #9daebf;
    --amber-ink: #6d4000;
  }
  .workspace,
  .citizen-row {
    border-color: var(--muted);
  }
}
@media (forced-colors: active) {
  .brand-eye {
    fill: Canvas;
  }
  .demo-filters button[aria-pressed="true"],
  .citizen-row.selected {
    outline: 2px solid Highlight;
  }
  .button {
    border: 1px solid ButtonText;
  }

  .row-status i {
    background: CanvasText;
  }
}

/* Keep explanatory text readable even in the compact mobile demo. */
@media (max-width: 600px) {
  .demo-label {
    font-size: 9px;
  }
  .row-status {
    font-size: 11px;
  }
  .row-person strong {
    font-size: 12px;
  }
  .list-footer {
    font-size: 10px;
  }
  .person-detail > p,
  .detail-next p {
    font-size: 12px;
  }
  .paper-sample > span:not(.paper-fold) {
    font-size: 11px;
  }
  .site-footer p {
    font-size: 12px;
  }
}
.demo-noscript {
  padding: 16px 28px;
  font-size: 13px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

/* Território: mapa de Aracoiaba e UBS atendidas */
.territory {
  padding-top: 40px;
  padding-bottom: 112px;
}
.territory .section-intro {
  grid-template-columns: minmax(0, 0.55fr) minmax(0, 1.45fr);
  align-items: center;
}
.territory .section-intro h2 {
  align-self: center;
}
.territory-map {
  width: 100%;
  margin: 0 0 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}
.territory-map-svg {
  display: block;
  width: 100%;
  max-height: 940px;
  height: auto;
  margin-inline: auto;
  overflow: visible;
  transform: rotate(-14deg);
}
.map-land-shadow {
  fill: #17458f;
  opacity: 0.22;
}
.map-face {
  stroke: var(--surface);
  stroke-width: 2;
  stroke-linejoin: round;
  transition: fill 0.2s;
}
.map-wall {
  stroke-linejoin: round;
  stroke-width: 1;
}
.map-dist.is-idle .map-face {
  fill: #dfe7ea;
}
.map-dist.is-idle .map-wall {
  fill: #a9b8c0;
  stroke: #a9b8c0;
}
.map-dist.is-served .map-face {
  fill: #b9cfe8;
}
.map-dist.is-served .map-wall {
  fill: #6f92c2;
  stroke: #6f92c2;
}
.map-dist.is-active .map-face {
  fill: var(--brand);
}
.map-dist.is-active .map-wall {
  fill: var(--brand-dark);
  stroke: var(--brand-dark);
}
.map-dist.is-active.is-idle .map-face {
  fill: #7d97a6;
}
.map-hit {
  fill: transparent;
  cursor: pointer;
  pointer-events: all;
}
.map-label {
  transition: translate 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.map-label.is-active,
.map-label.is-served.is-active {
  /* translate (não transform) para não sobrescrever o rotate() do SVG */
  translate: 0 -10px;
  fill: var(--surface);
  stroke: rgba(16, 54, 110, 0.7);
}
.map-seat {
  fill: var(--muted);
  opacity: 0.55;
}
.map-label {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.9px;
  fill: var(--muted);
  pointer-events: none;
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.75);
  stroke-width: 3px;
}
.map-label.is-served {
  fill: var(--brand-dark);
  font-weight: 500;
}
.pin-ground {
  fill: #0d2c5c;
  opacity: 0.28;
  filter: blur(1.5px);
}
.pin-wall {
  fill: #a8611a;
  stroke: #a8611a;
  stroke-width: 1;
  stroke-linejoin: round;
}
.pin-house {
  fill: #e9a23b;
  stroke: var(--surface);
  stroke-width: 2.2;
  stroke-linejoin: round;
}
.pin-shine {
  fill: #f6c46d;
  opacity: 0.85;
}
.pin-cross-shadow {
  fill: #a8611a;
  opacity: 0.55;
}
.pin-cross {
  fill: var(--surface);
}
.pin-badge {
  fill: var(--brand-dark);
  stroke: var(--surface);
  stroke-width: 2;
}
.pin-count {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  fill: var(--surface);
}
.territory-map figcaption {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.4px;
  color: var(--muted);
}
.territory-map figcaption span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.key {
  width: 14px;
  height: 14px;
  border-radius: 4px;
}
.key-served {
  background: #b9cfe8;
  border: 1px solid var(--brand);
}
.key-idle {
  background: #dfe7ea;
  border: 1px solid var(--line);
}
.key-pin {
  background: var(--amber);
  border-radius: 0;
  clip-path: polygon(50% 0, 100% 42%, 100% 100%, 0 100%, 0 42%);
}
.territory-note {
  margin: 24px 0 0;
  max-width: 680px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
}
@media (max-width: 900px) {
  .territory-map-svg {
    max-width: 480px;
  }
}
@media (max-width: 600px) {
  .territory {
    padding-bottom: 72px;
  }
  .territory-map-svg {
    max-width: 240px;
    max-height: 315px;
  }
  .map-label {
    font-size: 14px;
    letter-spacing: 0;
  }
}
@media (forced-colors: active) {
  .map-dist .map-face,
  .map-dist .map-wall {
    fill: Canvas;
    stroke: CanvasText;
  }
  .map-dist.is-active .map-face {
    fill: Highlight;
  }
  .pin-house {
    fill: CanvasText;
  }
}

/* Relevo subindo: só com movimento permitido; sem JavaScript o mapa já aparece pronto. */
@media (prefers-reduced-motion: no-preference) {
  .territory-map-svg.map-pre .map-wall {
    transform: translateY(calc(var(--k) * -1px));
  }
  .territory-map-svg.map-pre .map-dist {
    transform: translateY(12px);
  }
  .territory-map-svg.map-pre .map-label,
  .territory-map-svg.map-pre .map-pin,
  .territory-map-svg.map-pre .map-seat {
    opacity: 0;
  }
  .territory-map-svg.map-rise .map-dist {
    animation: dist-rise 0.9s cubic-bezier(0.2, 0.9, 0.25, 1.05) backwards;
    animation-delay: calc(var(--i) * 110ms);
  }
  .territory-map-svg.map-rise .map-wall {
    animation: wall-rise 0.9s cubic-bezier(0.2, 0.9, 0.25, 1.05) backwards;
    animation-delay: calc(var(--i, 0) * 110ms);
  }
  .territory-map-svg.map-rise .map-pin,
  .territory-map-svg.map-rise .map-seat,
  .territory-map-svg.map-rise .map-label {
    animation: map-fade 0.5s ease-out 0.7s backwards;
  }
  @keyframes dist-rise {
    from {
      transform: translateY(12px);
    }
    to {
      transform: translateY(0);
    }
  }
  @keyframes wall-rise {
    from {
      transform: translateY(calc(var(--k) * -1px));
    }
    to {
      transform: translateY(0);
    }
  }
  @keyframes map-fade {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
}
@media (max-width: 900px) {
  .territory-map {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .territory-map figcaption {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 22px;
  }
  .territory .section-intro {
    grid-template-columns: 1fr;
    align-items: start;
  }
}
