/* =========================================================
   TSG Concessionária — Sistema de design
   Cinematic institutional. Motion with purpose.
   ========================================================= */

:root {
  /* Paleta da marca — OKLCH. O azul/teal é travado pela logo TSG;
     o âmbar hi-vis é o acento (sinalização/engenharia) que dá voz e
     marca momentos-chave (pontos de virada, passagem gratuita). */
  --ink: oklch(18% 0.021 213);
  --deep: oklch(26.9% 0.041 216);
  --deep-2: oklch(30.6% 0.049 219);
  --brand: oklch(60.5% 0.113 221);
  --aqua: oklch(73.6% 0.077 204);
  --sky: oklch(83.1% 0.078 216);
  --mist: oklch(97.2% 0.011 204);
  --white: oklch(99.4% 0.004 220);

  /* Acento âmbar (hi-vis / wayfinding) — uso pontual, não decorativo */
  --accent: oklch(76% 0.157 64);
  --accent-strong: oklch(62% 0.15 58);

  --line: rgba(6, 20, 23, 0.1);
  --line-strong: rgba(6, 20, 23, 0.16);
  --shadow: 0 24px 80px rgba(4, 37, 45, 0.18);
  --shadow-lg: 0 40px 120px rgba(4, 37, 45, 0.28);

  /* Easings com punch (Emil Kowalski) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  /* Tipografia */
  --font-display: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* Compensa o header fixo ao navegar por âncora (#secao) — evita que a
   seção-alvo fique escondida atrás do header. */
:where([id]) {
  scroll-margin-top: 150px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* clip (não hidden): contém o overflow horizontal do marquee sem forçar
     overflow-y a "auto", o que tornaria o body um container de scroll e
     quebraria a rolagem suave de âncoras (#video etc.). */
  overflow-x: clip;
}

.internal-page {
  background: #f6fbfc;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
video {
  max-width: 100%;
}

::selection {
  background: var(--brand);
  color: var(--white);
}

/* =========================================================
   Acessibilidade (ui-ux-pro-max §1 — CRITICAL)
   Focus rings visíveis + skip link. Site público → WCAG.
   ========================================================= */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--focus, #0090b0);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Anel claro nas seções escuras para manter contraste */
.hero,
.subhero,
.project,
.community,
.jobs,
.marquee,
.governance-band,
.news-card {
  --focus: var(--sky);
}

/* Skip link: escondido até receber foco por teclado */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 80;
  padding: 12px 18px;
  background: var(--deep);
  color: var(--white);
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  box-shadow: var(--shadow);
  transform: translateY(-160%);
  transition: transform 220ms var(--ease-out);
}

.skip-link:focus {
  transform: translateY(0);
  outline: 3px solid var(--sky);
  outline-offset: 3px;
}

/* Alvo do skip link não deve ganhar contorno ao receber foco programático */
main:focus {
  outline: none;
}

/* ---------- Barra de progresso de scroll ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--sky));
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
}

/* =========================================================
   Transições de página (View Transitions API, cross-document)
   Crossfade nativo com header persistente — degrada com graça.
   ========================================================= */
@view-transition {
  navigation: auto;
}

/* Conteúdo: saída rápida, entrada suave (timing assimétrico) */
::view-transition-old(root) {
  animation: vt-fade-out 280ms var(--ease-out) both;
}

::view-transition-new(root) {
  animation: vt-fade-in 440ms var(--ease-out) both;
}

@keyframes vt-fade-out {
  to {
    opacity: 0;
  }
}

@keyframes vt-fade-in {
  from {
    opacity: 0;
  }
}

/* ---------- Preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  background: var(--deep);
}

.preloader img {
  width: min(200px, 52vw);
  opacity: 0;
  transform: translateY(18px) scale(0.96);
  animation: logoRise 1s var(--ease-out) forwards;
}

.preloader span {
  position: absolute;
  bottom: 17%;
  width: 160px;
  height: 2px;
  overflow: hidden;
  background: rgba(139, 213, 232, 0.18);
}

.preloader span::after {
  content: "";
  display: block;
  width: 40%;
  height: 100%;
  background: var(--sky);
  animation: loadLine 1.05s var(--ease-in-out) infinite;
}

body.is-loaded .preloader {
  animation: loaderOut 0.7s var(--ease-out) forwards;
  pointer-events: none;
}

/* Revisita na mesma sessão: pula o preloader (sem replay) */
.revisit .preloader {
  display: none;
}

/* Revisita: hero já em estado final — a View Transition faz a entrada,
   evitando coreografia dupla e título "vazio" durante o crossfade */
.revisit .hero .eyebrow,
.revisit .hero-title .line-inner,
.revisit .hero-lead,
.revisit .hero-actions,
.revisit .hero-panel,
.revisit .scroll-cue {
  opacity: 1;
  transform: none;
  transition: none;
}

/* ---------- Header glass ---------- */
.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1200px, calc(100% - 32px));
  min-height: 70px;
  padding: 12px 14px 12px 22px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.82);
  border-radius: 14px;
  box-shadow: 0 18px 60px rgba(0, 36, 44, 0.1);
  backdrop-filter: blur(20px) saturate(1.4);
  transform: translateX(-50%);
  transition: top 360ms var(--ease-out), background 360ms var(--ease-out),
    box-shadow 360ms var(--ease-out), border-color 360ms var(--ease-out);
}

.site-header.scrolled {
  top: 10px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 44px rgba(0, 36, 44, 0.18);
  border-color: rgba(6, 20, 23, 0.1);
}

/* Fallback p/ navegadores sem backdrop-filter: fundo quase opaco para o
   menu não "vazar" sobre o texto. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header {
    background: rgba(255, 255, 255, 0.97);
  }
}

.internal-header {
  margin-top: 0;
}

.brand img {
  display: block;
  width: 138px;
  transition: transform 300ms var(--ease-out);
}

.brand:active img {
  transform: scale(0.96);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.main-nav > a,
.nav-item > a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  white-space: nowrap;
  color: rgba(6, 20, 23, 0.82);
  transition: color 200ms var(--ease-out);
}

/* Sublinhado animado */
.main-nav > a:not(.recruit)::after,
.nav-item > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 100%;
  height: 1.5px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 260ms var(--ease-out);
}

.main-nav > a:hover,
.nav-item > a:hover {
  color: var(--deep);
}

@media (hover: hover) and (pointer: fine) {
  .main-nav > a:not(.recruit):hover::after,
  .nav-item:hover > a::after {
    transform: scaleX(1);
  }
}

.nav-item {
  position: relative;
}

.submenu {
  position: absolute;
  top: calc(100% + 14px);
  left: -16px;
  min-width: 248px;
  display: grid;
  gap: 2px;
  padding: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  border-radius: 12px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px) scale(0.97);
  transform-origin: 30px -8px; /* nasce a partir do trigger */
  transition: opacity 200ms var(--ease-out), transform 220ms var(--ease-out);
}

/* Ponte invisível que cobre o vão entre o item e o submenu, para o hover
   não ser perdido ao mover o mouse para baixo. */
.submenu::before {
  content: "";
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 16px;
}

.submenu a {
  display: block;
  padding: 12px 14px;
  border-radius: 8px;
  color: rgba(6, 20, 23, 0.78);
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-body);
  transition: background 160ms var(--ease-out), color 160ms var(--ease-out),
    transform 160ms var(--ease-out);
}

.submenu a:hover {
  background: var(--mist);
  color: var(--deep);
  transform: translateX(3px);
}

.nav-item:hover .submenu,
.nav-item:focus-within .submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.recruit {
  padding: 0 14px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(0, 144, 176, 0.4);
  border-radius: 9px;
  color: var(--brand);
  transition: background 220ms var(--ease-out), color 220ms var(--ease-out),
    transform 160ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .recruit:hover {
    background: var(--brand);
    color: var(--white);
  }
}

.recruit:active {
  transform: scale(0.96);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: 12px;
  border: 0;
  padding: 0;
  background: var(--deep);
  border-radius: 10px;
  cursor: pointer;
  transition: transform 160ms var(--ease-out);
}

.menu-toggle:active {
  transform: scale(0.94);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
  transition: transform 300ms var(--ease-out), opacity 200ms var(--ease-out);
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 100svh;
  padding: 160px max(28px, 6vw) 74px;
  overflow: hidden;
  color: var(--white);
  background: var(--deep);
}

.hero-video,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 120%;
}

.hero-video {
  top: -10%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.08);
  transform: scale(1.06);
  will-change: transform;
}

.hero-shade {
  top: 0;
  height: 100%;
  background:
    linear-gradient(90deg, rgba(3, 18, 22, 0.94), rgba(3, 34, 40, 0.5) 55%, rgba(3, 18, 22, 0.1)),
    linear-gradient(0deg, rgba(3, 18, 22, 0.92), rgba(3, 18, 22, 0.02) 55%);
}

/* Linhas em fuga — sensação de túnel/travessia */
.motion-lines {
  position: absolute;
  inset: auto 0 14% 0;
  height: 34vh;
  opacity: 0.55;
  pointer-events: none;
}

.motion-lines i {
  position: absolute;
  left: -15%;
  width: 130%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 213, 232, 0.85), transparent);
  transform: rotate(-8deg);
  animation: drift 6s linear infinite;
}

.motion-lines i:nth-child(1) { top: 6%; }
.motion-lines i:nth-child(2) { top: 32%; animation-delay: -2s; }
.motion-lines i:nth-child(3) { top: 58%; animation-delay: -3.4s; }
.motion-lines i:nth-child(4) { top: 84%; animation-delay: -4.7s; }

.hero-content {
  position: relative;
  width: min(900px, 100%);
  z-index: 2;
}

.eyebrow {
  margin: 0 0 18px;
  font-family: var(--font-display);
  color: var(--brand);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--sky);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 700ms var(--ease-out) 0.15s, transform 700ms var(--ease-out) 0.15s;
}

.hero.is-revealed .eyebrow {
  opacity: 1;
  transform: translateY(0);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  margin-top: 0;
}

p {
  margin-top: 0;
}

.hero-title {
  margin: 0 0 24px;
  font-size: clamp(56px, 10vw, 156px);
  line-height: 0.86;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.hero-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.04em;
}

.hero-title .line-inner {
  display: block;
  transform: translateY(110%);
  transition: transform 1000ms var(--ease-out);
}

.hero.is-revealed .hero-title .line:nth-child(1) .line-inner { transition-delay: 0.18s; }
.hero.is-revealed .hero-title .line:nth-child(2) .line-inner { transition-delay: 0.30s; }
.hero.is-revealed .hero-title .line-inner {
  transform: translateY(0);
}

.hero-lead {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(18px, 2.1vw, 26px);
  line-height: 1.38;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 800ms var(--ease-out) 0.5s, transform 800ms var(--ease-out) 0.5s;
}

.hero.is-revealed .hero-lead {
  opacity: 1;
  transform: translateY(0);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 800ms var(--ease-out) 0.64s, transform 800ms var(--ease-out) 0.64s;
}

.hero.is-revealed .hero-actions {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Botões ---------- */
.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), box-shadow 240ms var(--ease-out);
  will-change: transform;
}

.button:active {
  transform: scale(0.97);
}

.button.primary {
  background: var(--brand);
  color: var(--white);
  box-shadow: 0 10px 30px rgba(0, 144, 176, 0.3);
}

.button.primary:hover {
  box-shadow: 0 16px 44px rgba(0, 144, 176, 0.42);
}

/* Brilho que atravessa o botão no hover */
.button.primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 700ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .button.primary:hover::after {
    transform: translateX(120%);
  }
}

.button.ghost {
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--white);
  transition: transform 160ms var(--ease-out), background 240ms var(--ease-out),
    border-color 240ms var(--ease-out);
}

.button.ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
}

.button.outline {
  border: 1px solid rgba(0, 144, 176, 0.36);
  color: var(--brand);
  background: var(--white);
  transition: transform 160ms var(--ease-out), background 240ms var(--ease-out);
}

.button.outline:hover {
  background: var(--mist);
}

/* ---------- Scroll cue ---------- */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 800ms var(--ease-out) 1s;
}

.hero.is-revealed .scroll-cue {
  opacity: 1;
}

.scroll-cue .track {
  width: 1px;
  height: 46px;
  background: rgba(255, 255, 255, 0.22);
  overflow: hidden;
}

.scroll-cue .track::after {
  content: "";
  display: block;
  width: 100%;
  height: 40%;
  background: var(--sky);
  animation: cueDrop 1.8s var(--ease-in-out) infinite;
}

/* ---------- Hero panel ---------- */
.hero-panel {
  position: absolute;
  right: max(28px, 6vw);
  bottom: 74px;
  z-index: 2;
  width: min(310px, 30vw);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 14px;
  background: rgba(4, 37, 45, 0.5);
  backdrop-filter: blur(18px);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 800ms var(--ease-out) 0.8s, transform 800ms var(--ease-out) 0.8s;
}

.hero.is-revealed .hero-panel {
  opacity: 1;
  transform: translateY(0);
}

.hero-panel span,
.hero-panel p {
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
}

.hero-panel strong {
  display: block;
  margin: 8px 0;
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1;
}

/* ---------- Marquee temático ---------- */
.marquee {
  padding: 26px 0;
  background: var(--deep);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  white-space: nowrap;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track {
  display: inline-flex;
  gap: 0;
  animation: marquee 28s linear infinite;
}

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

.marquee span {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding-left: 38px;
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 34px);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.42);
  letter-spacing: -0.01em;
}

.marquee span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
}

/* ---------- Seções base ---------- */
.section {
  padding: 116px max(28px, 6vw);
}

.section-label {
  margin-bottom: 26px;
  font-family: var(--font-display);
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(34px, 5.4vw, 78px);
  line-height: 0.96;
  letter-spacing: -0.02em;
  font-weight: 700;
}

h3 {
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.7fr);
  gap: clamp(34px, 7vw, 96px);
  align-items: start;
}

.copy-stack p,
.esg-list p {
  color: rgba(6, 20, 23, 0.74);
  font-size: 20px;
  line-height: 1.56;
}

.copy-stack p + p {
  margin-top: 18px;
}

.values {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.values span {
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--mist);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  transition: transform 200ms var(--ease-out), background 200ms var(--ease-out),
    color 200ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .values span:hover {
    transform: translateY(-3px);
    background: var(--brand);
    color: var(--white);
  }
}

.section-heading {
  width: min(900px, 100%);
  margin-bottom: 52px;
}

/* ---------- Vídeo institucional ---------- */
.video-section {
  background: var(--mist);
}

.video-frame {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: var(--deep);
  box-shadow: var(--shadow);
}

.video-frame video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* ---------- Números (contadores) ---------- */
.numbers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(28px, 4vw, 64px);
  background: transparent;
}

.metric {
  position: relative;
  padding: 26px 0 0;
  background: transparent;
  overflow: visible;
}

.metric::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 900ms var(--ease-out);
}

.metric.visible::before {
  transform: scaleX(1);
}

.metric strong {
  display: block;
  font-family: var(--font-display);
  color: var(--brand);
  font-size: clamp(46px, 5.5vw, 82px);
  line-height: 0.92;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.metric span {
  display: block;
  margin-top: 18px;
  color: rgba(6, 20, 23, 0.68);
  font-size: 16px;
  font-weight: 500;
}

/* ---------- Projeto + visual de túnel ---------- */
.project {
  position: relative;
  color: var(--white);
  background: var(--deep);
  overflow: hidden;
}

.project .eyebrow {
  color: var(--sky);
}

/* Túnel em perspectiva — anéis recuando em profundidade */
.tunnel-rings {
  position: absolute;
  top: 50%;
  right: -8%;
  width: 620px;
  height: 620px;
  transform: translateY(-50%);
  opacity: 0.5;
  pointer-events: none;
}

.tunnel-rings i {
  position: absolute;
  inset: 0;
  margin: auto;
  border: 1px solid rgba(139, 213, 232, 0.4);
  border-radius: 26px;
  animation: tunnelIn 4.5s linear infinite;
  opacity: 0;
}

.tunnel-rings i:nth-child(1) { animation-delay: 0s; }
.tunnel-rings i:nth-child(2) { animation-delay: -0.9s; }
.tunnel-rings i:nth-child(3) { animation-delay: -1.8s; }
.tunnel-rings i:nth-child(4) { animation-delay: -2.7s; }
.tunnel-rings i:nth-child(5) { animation-delay: -3.6s; }

.project-grid,
.doc-grid,
.community-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature,
.service {
  position: relative;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transition: transform 360ms var(--ease-out), background 360ms var(--ease-out),
    border-color 360ms var(--ease-out);
}

/* Só cards que são link (a.feature/a.service) levantam no hover — cards
   informativos (<article>) não devem sugerir clique. */
a.feature,
a.service {
  cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
  a.feature:hover,
  a.service:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(139, 213, 232, 0.45);
  }
}

a.feature:active,
a.service:active {
  transform: scale(0.985);
  transition-duration: 120ms;
}

.feature span {
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-display);
  color: var(--sky);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.feature h3 {
  margin-bottom: 14px;
}

.feature p,
.service p {
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.56;
}

/* ---------- Timeline ---------- */
.timeline {
  padding-top: 52px;
  padding-bottom: 52px;
  background: var(--brand);
  color: var(--white);
}

.timeline-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.timeline-track div {
  position: relative;
  padding-top: 30px;
}

.timeline-track div::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.45);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 700ms var(--ease-out);
}

.timeline-track.visible div::before {
  transform: scaleX(1);
}

.timeline-track.visible div:nth-child(1)::before { transition-delay: 0s; }
.timeline-track.visible div:nth-child(2)::before { transition-delay: 0.12s; }
.timeline-track.visible div:nth-child(3)::before { transition-delay: 0.24s; }
.timeline-track.visible div:nth-child(4)::before { transition-delay: 0.36s; }

.timeline-track div::after {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--white);
  transform: scale(0);
  transition: transform 500ms var(--ease-out) 0.3s;
}

.timeline-track.visible div::after {
  transform: scale(1);
}

.timeline-track span {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-weight: 600;
}

/* Marco de chegada (2031, operação) em âmbar — mesma semântica dos pontos
   de virada da timeline da história. */
.timeline-track div.goal::after {
  background: var(--accent);
}
.timeline-track div.goal span {
  color: var(--accent);
}

.timeline-track strong {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
}

/* ---------- Documentos ---------- */
.doc-grid {
  grid-template-columns: repeat(3, 1fr);
}

.doc {
  display: block;
  min-height: 224px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 14px 60px rgba(4, 37, 45, 0.07);
  transition: transform 300ms var(--ease-out), box-shadow 300ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .doc:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
  }
}

.doc:active {
  transform: scale(0.99);
}

.doc span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 30px;
  margin-bottom: 36px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--mist);
  font-family: var(--font-display);
  color: var(--brand);
  font-weight: 700;
  font-size: 13px;
}

.doc strong,
.doc small {
  display: block;
}

.doc strong {
  font-family: var(--font-display);
  font-size: 19px;
}

.doc small {
  margin-top: 12px;
  color: rgba(6, 20, 23, 0.62);
  font-size: 15px;
  line-height: 1.46;
}

/* ---------- Sustentabilidade ---------- */
.sustainability {
  background:
    linear-gradient(135deg, rgba(238, 248, 249, 0.94), rgba(255, 255, 255, 0.8)),
    radial-gradient(circle at 85% 25%, rgba(139, 213, 232, 0.45), transparent 35%);
}

.esg-list a,
.press-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--brand);
  font-family: var(--font-display);
  font-weight: 600;
  transition: gap 220ms var(--ease-out);
}

.esg-list a::after,
.press-links a::after {
  content: "→";
  transition: transform 220ms var(--ease-out);
}

.esg-list a:hover::after,
.press-links a:hover::after {
  transform: translateX(4px);
}

/* ---------- Notícias / carrossel ---------- */
.news {
  overflow: hidden;
}

.carousel {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 54px;
  gap: 16px;
  align-items: center;
}

.carousel-track {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
}

.news-card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 300px;
  padding: clamp(28px, 5vw, 68px);
  border-radius: 18px;
  background: var(--deep);
  color: var(--white);
  opacity: 0;
  transform: translateX(28px);
  transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out);
  pointer-events: none;
}

/* A altura da faixa é dada exclusivamente pelo card .active (position:
   relative). Antes, :first-child também ficava relative e, ao avançar o
   carrossel, dois cards entravam no fluxo e a faixa dobrava de altura. */

.news-card.active {
  position: relative;
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.news-card span {
  font-family: var(--font-display);
  color: var(--sky);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.news-card h3 {
  max-width: 780px;
  margin: 20px 0 0;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.02;
}

.news-card p {
  max-width: 620px;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 18px;
  line-height: 1.5;
}

.carousel-btn {
  width: 54px;
  height: 54px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--deep);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background 220ms var(--ease-out),
    color 220ms var(--ease-out), border-color 220ms var(--ease-out);
}

.carousel-btn:hover {
  background: var(--deep);
  color: var(--white);
  border-color: var(--deep);
}

.carousel-btn:active {
  transform: scale(0.92);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.carousel-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--line-strong);
  cursor: pointer;
  transition: width 280ms var(--ease-out), background 280ms var(--ease-out);
}

.carousel-dots button.active {
  width: 26px;
  border-radius: 5px;
  background: var(--brand);
}

.press-links {
  display: flex;
  gap: 26px;
  margin-top: 26px;
}

/* ---------- Comunidade ---------- */
.community {
  background: var(--deep);
  color: var(--white);
}

.community .eyebrow {
  color: var(--sky);
}

.community-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service {
  min-height: 224px;
}

.service h3 {
  margin-bottom: 14px;
}

/* ---------- Contato ---------- */
.contact-band {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 44px;
  align-items: center;
  background: var(--mist);
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.contact-cards a {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 94px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  transition: transform 240ms var(--ease-out), box-shadow 240ms var(--ease-out),
    border-color 240ms var(--ease-out);
}

/* Ícone do canal de atendimento */
.contact-ico {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--mist);
  color: var(--brand);
  transition: background 240ms var(--ease-out), color 240ms var(--ease-out);
}

.contact-ico svg {
  width: 22px;
  height: 22px;
}

.contact-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.contact-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(6, 20, 23, 0.55);
}

.contact-value {
  font-size: 15px;
  line-height: 1.3;
  word-break: break-word;
}

@media (hover: hover) and (pointer: fine) {
  .contact-cards a:hover .contact-ico {
    background: var(--brand);
    color: var(--white);
  }
}

@media (hover: hover) and (pointer: fine) {
  .contact-cards a:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: rgba(0, 144, 176, 0.4);
  }
}

.contact-cards a:active {
  transform: scale(0.98);
}

/* ---------- Trabalhe conosco ---------- */
.jobs {
  padding: 120px max(28px, 6vw);
  color: var(--white);
  background: linear-gradient(120deg, var(--ink), var(--deep) 60%, var(--brand));
}

.jobs h2 {
  max-width: 920px;
}

.jobs .button {
  margin-top: 14px;
}

/* ---------- Subhero (páginas internas) ---------- */
.subhero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 74svh;
  margin-top: -108px;
  padding: 220px max(28px, 6vw) 84px;
  overflow: hidden;
  color: var(--white);
  background: var(--deep);
}

.subhero-video,
.subhero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.subhero-video {
  object-fit: cover;
  filter: saturate(0.8) contrast(1.04);
  transform: scale(1.05);
}

.subhero-shade {
  background:
    linear-gradient(90deg, rgba(3, 18, 22, 0.92), rgba(3, 34, 40, 0.64), rgba(3, 18, 22, 0.24)),
    linear-gradient(0deg, rgba(3, 18, 22, 0.8), rgba(3, 18, 22, 0.06) 62%);
}

.subhero-content {
  position: relative;
  width: min(980px, 100%);
}

.subhero .eyebrow {
  color: var(--sky);
}

.subhero h1 {
  margin: 0 0 24px;
  font-size: clamp(48px, 8vw, 120px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.subhero p:not(.eyebrow) {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(18px, 2vw, 25px);
  line-height: 1.44;
}

/* ---------- Composição / governança (página interna) ---------- */
.composition-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.composition-card {
  min-height: 330px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 16px 50px rgba(4, 37, 45, 0.08);
  transition: transform 320ms var(--ease-out), box-shadow 320ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .composition-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
  }
}

.composition-card h3 {
  margin-bottom: 14px;
}

.composition-card p {
  color: rgba(6, 20, 23, 0.66);
  line-height: 1.56;
}

.company-logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 112px;
  margin-bottom: 30px;
}

.company-logo img {
  display: block;
  width: auto;
  max-width: 142px;
  max-height: 96px;
  object-fit: contain;
}

.company-logo.tsg-logo img {
  max-width: 174px;
  max-height: 104px;
}

.governance-band {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 46px;
  color: var(--white);
  background: var(--deep);
}

.governance-band .eyebrow {
  color: var(--sky);
}

.governance-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  overflow: hidden;
}

.governance-list div {
  min-height: 174px;
  padding: 26px;
  background: var(--deep);
  transition: background 300ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .governance-list div:hover {
    background: var(--deep-2);
  }
}

.governance-list strong {
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: 19px;
}

.governance-list p {
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.52;
}

.investor-section {
  background: var(--mist);
}

.investor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.page-next {
  padding-top: 50px;
  padding-bottom: 96px;
}

.next-page {
  position: relative;
  display: block;
  padding: clamp(30px, 6vw, 74px);
  border-radius: 18px;
  background: linear-gradient(110deg, var(--deep), var(--brand));
  color: var(--white);
  overflow: hidden;
  transition: transform 320ms var(--ease-out), box-shadow 320ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .next-page:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
  }
}

.next-page:active {
  transform: scale(0.99);
}

.next-page span {
  display: block;
  margin-bottom: 12px;
  font-family: var(--font-display);
  color: rgba(255, 255, 255, 0.74);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.next-page strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 70px);
  line-height: 0.98;
}

/* ---------- Footer ---------- */
.footer {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 46px max(28px, 6vw);
  border-top: 1px solid var(--line);
}

.footer img {
  width: 170px;
}

.footer strong {
  font-family: var(--font-display);
}

.footer p {
  margin: 4px 0 0;
  color: rgba(6, 20, 23, 0.62);
}

.footer nav {
  display: flex;
  gap: 24px;
  font-family: var(--font-display);
  font-weight: 600;
}

.footer nav a {
  transition: color 200ms var(--ease-out);
}

.footer nav a:hover {
  color: var(--brand);
}

/* =========================================================
   Componentes H1 (Central de Desapropriação, FAQ)
   ========================================================= */

/* Passos do processo (numerados, claro) */
.steps {
  display: grid;
  gap: 16px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 28px 30px 28px 88px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 10px 40px rgba(4, 37, 45, 0.05);
  transition: transform 320ms var(--ease-out), box-shadow 320ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .step:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
  }
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 30px;
  top: 26px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}

.step h3 {
  margin: 0 0 8px;
}

.step p {
  margin: 0;
  color: rgba(6, 20, 23, 0.72);
  line-height: 1.58;
}

/* Lista de direitos / compromissos */
.checklist {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding-left: 38px;
  color: rgba(6, 20, 23, 0.78);
  font-size: 18px;
  line-height: 1.5;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--mist);
  border: 1px solid rgba(0, 144, 176, 0.3);
}

.checklist li::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 8px;
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg);
}

/* Acordeão acessível (transição interrompível via grid-rows) */
.accordion {
  display: grid;
  gap: 12px;
}

.accordion-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  overflow: hidden;
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--deep);
  transition: background 200ms var(--ease-out);
}

.accordion-trigger:hover {
  background: var(--mist);
}

.accordion-icon {
  position: relative;
  flex: none;
  width: 22px;
  height: 22px;
  transition: transform 300ms var(--ease-out);
}

.accordion-icon::before,
.accordion-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  background: var(--brand);
  border-radius: 2px;
}

.accordion-icon::before {
  width: 100%;
  height: 2px;
}

.accordion-icon::after {
  width: 2px;
  height: 100%;
  transition: transform 300ms var(--ease-out);
}

.accordion-trigger[aria-expanded="true"] .accordion-icon {
  transform: rotate(180deg);
}

.accordion-trigger[aria-expanded="true"] .accordion-icon::after {
  transform: scaleY(0);
}

.accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 320ms var(--ease-out);
}

.accordion-trigger[aria-expanded="true"] + .accordion-panel {
  grid-template-rows: 1fr;
}

.accordion-panel > .accordion-content {
  min-height: 0;
  overflow: hidden;
}

.accordion-panel p {
  margin: 0;
  padding: 0 24px 24px;
  color: rgba(6, 20, 23, 0.74);
  font-size: 17px;
  line-height: 1.62;
}

.accordion-panel p + p {
  padding-top: 14px;
}

/* Placeholder de mapa (poligonais) */
.map-placeholder {
  display: grid;
  place-items: center;
  min-height: 320px;
  padding: 44px;
  border: 1.5px dashed var(--line-strong);
  border-radius: 18px;
  background: linear-gradient(135deg, var(--mist), var(--white));
  text-align: center;
  color: rgba(6, 20, 23, 0.6);
}

.map-placeholder strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--deep);
}

/* Callout de transparência / nota de fonte */
.note {
  padding: 18px 22px;
  border: 1px solid rgba(0, 144, 176, 0.22);
  border-radius: 10px;
  background: var(--mist);
  color: rgba(6, 20, 23, 0.78);
  font-size: 15px;
  line-height: 1.56;
}

.note strong {
  color: var(--deep);
}

/* Bloco de plantão / atendimento destacado */
.support {
  color: var(--white);
  background: linear-gradient(120deg, var(--deep), var(--brand));
}

.support .eyebrow {
  color: var(--sky);
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.support-card {
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
}

.support-card strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 18px;
}

.support-card p,
.support-card a {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
}

.support-card a {
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

/* Formulários (Ouvidoria) */
.form {
  display: grid;
  gap: 18px;
  max-width: 760px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--deep);
}

.field .req {
  color: var(--brand);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--white);
  font: inherit;
  color: var(--ink);
  transition: border-color 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0, 144, 176, 0.18);
}

.field .help {
  font-size: 13px;
  color: rgba(6, 20, 23, 0.6);
}

.form .button {
  justify-self: start;
}

/* Consentimento (LGPD) */
.field-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.field-check input[type="checkbox"] {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--brand);
}

.field-check label {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  color: rgba(6, 20, 23, 0.74);
  line-height: 1.5;
}

.field-check a {
  color: var(--brand);
  font-weight: 600;
}

.support .field-check label,
.support .field-check a {
  color: rgba(255, 255, 255, 0.82);
}

/* Feedback de envio do formulário */
.form-feedback[hidden] {
  display: none;
}

.form-success,
.form-error {
  padding: 20px 22px;
  border-radius: 14px;
  font-size: 15px;
  line-height: 1.55;
}

.form-success {
  background: rgba(10, 138, 74, 0.12);
  border: 1px solid rgba(10, 138, 74, 0.4);
  color: #0a6d3a;
}

.form-success strong {
  font-family: var(--font-display);
}

.form-error {
  background: rgba(200, 40, 40, 0.1);
  border: 1px solid rgba(200, 40, 40, 0.4);
  color: #9a1f1f;
}

.button[aria-busy="true"] {
  opacity: 0.7;
  pointer-events: none;
}

/* Destaque de prazo (SLA) */
.sla-time {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  color: var(--brand);
  line-height: 1;
}

/* Etiqueta de status (compromissos / transparência) */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.tag::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.tag.ok { background: rgba(0, 144, 176, 0.12); color: #0a6d84; }
.tag.doing { background: rgba(139, 213, 232, 0.22); color: #0a6d84; }
.tag.next { background: var(--mist); color: rgba(6, 20, 23, 0.6); }

/* Lista de releases / documentos com data */
.doc .doc-date {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  color: rgba(6, 20, 23, 0.5);
}

/* =========================================================
   Componentes H2 (Painel de Obra, Comunicados, Trabalhe)
   ========================================================= */

/* Barra de progresso (avanço por etapa) */
.progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.progress-bar {
  position: relative;
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: var(--mist);
  overflow: hidden;
}

.progress-bar > i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--sky));
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 1000ms var(--ease-out);
}

.reveal.visible .progress-bar > i {
  transform: scaleX(var(--p, 0));
}

.progress-value {
  flex: none;
  min-width: 44px;
  text-align: right;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--deep);
  font-variant-numeric: tabular-nums;
}

.support-card .progress-bar {
  background: rgba(255, 255, 255, 0.16);
}

.support-card .progress-value {
  color: var(--white);
}

/* Avanço global em destaque */
.progress-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 18px;
}

.progress-hero strong {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 700;
  line-height: 0.9;
  color: var(--brand);
}

.progress-hero span {
  color: rgba(6, 20, 23, 0.66);
  font-size: 18px;
}

/* Lista de comunicados / itens com data + região */
.list {
  display: grid;
  gap: 14px;
}

.list-item {
  display: grid;
  gap: 8px;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 10px 40px rgba(4, 37, 45, 0.05);
  transition: transform 280ms var(--ease-out), box-shadow 280ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  a.list-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
  }
}

.list-item .meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(6, 20, 23, 0.55);
}

.list-item h3 {
  margin: 0;
  font-size: 20px;
}

.list-item p {
  margin: 0;
  color: rgba(6, 20, 23, 0.72);
  line-height: 1.55;
}

.tag.region {
  background: rgba(0, 144, 176, 0.1);
  color: #0a6d84;
}

.tag.alert {
  background: rgba(220, 138, 0, 0.14);
  color: #9a5b00;
}

/* =========================================================
   Componentes H3 (Porto e Cidade, História, Engenharia)
   ========================================================= */

/* Timeline vertical (100 anos de espera) */
.timeline-v {
  position: relative;
  display: grid;
  max-width: 760px;
}

.timeline-v::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(var(--brand), var(--sky));
}

.tl-item {
  position: relative;
  padding: 0 0 40px 48px;
}

.tl-item:last-child {
  padding-bottom: 0;
}

.tl-item::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--brand);
  box-shadow: 0 0 0 4px var(--mist);
}

.tl-item.turning::before {
  border-color: var(--accent);
  background: var(--accent);
}

.tl-year {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--brand);
  line-height: 1;
}

.tl-item h3 {
  margin: 6px 0 8px;
  font-size: 21px;
}

.tl-item p {
  margin: 0;
  color: rgba(6, 20, 23, 0.72);
  line-height: 1.6;
}

/* Citação em destaque (pull-quote) */
.quote {
  position: relative;
  margin: 0;
  padding: 40px 0 6px;
  font-family: var(--font-display);
  font-size: clamp(22px, 3.4vw, 36px);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--deep);
}

/* Aspa de abertura como acento (substitui a antiga faixa lateral) */
.quote::before {
  content: "\201C";
  position: absolute;
  top: -0.18em;
  left: -0.02em;
  font-size: 2.6em;
  line-height: 1;
  color: var(--brand);
  font-weight: 700;
}

.sustainability .quote,
.project .quote {
  color: var(--deep);
}

.quote cite {
  display: block;
  margin-top: 16px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  font-style: normal;
  color: rgba(6, 20, 23, 0.55);
}

/* Faixa-manifesto "pessoas acima da carga" */
.manifesto {
  color: var(--white);
  background: linear-gradient(120deg, var(--deep), var(--brand));
}

.manifesto .quote {
  border-left-color: var(--sky);
  color: var(--white);
}

.manifesto .quote cite {
  color: rgba(255, 255, 255, 0.7);
}

/* =========================================================
   Componentes H4 (Como usar o túnel, Legado)
   ========================================================= */

/* Calculadora de tarifa */
.calc {
  display: grid;
  gap: 18px;
  max-width: 620px;
}

.calc-out {
  padding: 26px 28px;
  border-radius: 16px;
  background: linear-gradient(120deg, var(--deep), var(--brand));
  color: var(--white);
}

.calc-out .val {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 68px);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.calc-out .lbl {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
}

/* Tarifa em destaque (grátis / valores) */
.fare {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--brand);
  line-height: 1;
}

.fare.free {
  color: var(--accent-strong);
}

.composition-card .fare + h3 {
  margin-top: 0;
}

/* =========================================================
   Evoluções: mapa (Leaflet), corte do túnel (SVG),
   idioma (i18n), dados abertos
   ========================================================= */

/* Mapa interativo */
.map {
  height: 440px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--mist);
  z-index: 0;
}

.map:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}

.map-credit {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  color: rgba(6, 20, 23, 0.5);
}

/* Pino de legenda do mapa */
.leaflet-popup-content {
  font-family: var(--font-body);
}

.leaflet-popup-content strong {
  font-family: var(--font-display);
}

/* Corte do túnel (SVG) */
.tunnel-cut {
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #cfeef6 0%, #8bd5e8 22%, #2a6f86 60%, #0a3540 100%);
}

.tunnel-cut svg {
  display: block;
  width: 100%;
  height: auto;
}

@media (prefers-reduced-motion: no-preference) {
  .tc-wave { animation: tcWave 6s ease-in-out infinite alternate; }
  .tc-fish { animation: tcDrift 9s linear infinite; }
}

@keyframes tcWave {
  from { transform: translateX(0); }
  to { transform: translateX(-18px); }
}

@keyframes tcDrift {
  from { transform: translateX(-40px); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  to { transform: translateX(900px); opacity: 0; }
}

.cut-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 18px;
}

.cut-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(6, 20, 23, 0.72);
}

.cut-legend i {
  width: 14px;
  height: 14px;
  border-radius: 4px;
}

/* Seletor de idioma (injetado no header via JS) */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
}

.lang-switch button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 12px 0 7px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  color: rgba(6, 20, 23, 0.6);
  cursor: pointer;
  transition: background 200ms var(--ease-out), color 200ms var(--ease-out);
}

.lang-switch button:hover {
  color: var(--deep);
}

.lang-switch button.active {
  background: var(--brand);
  color: var(--white);
}

/* Dados abertos: ações de download + selo de atualização */
.data-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.updated-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--mist);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--deep);
}

.updated-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0a8a4a;
}

pre.code {
  margin: 18px 0 0;
  padding: 20px 22px;
  border-radius: 14px;
  background: var(--deep);
  color: #cfe8ef;
  font-size: 13px;
  line-height: 1.6;
  overflow-x: auto;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 600ms var(--ease-out), transform 700ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Keyframes ---------- */
@keyframes loaderOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes logoRise {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes loadLine {
  from { transform: translateX(-100%); }
  to { transform: translateX(280%); }
}

@keyframes drift {
  from { transform: translateX(-8%) rotate(-8deg); }
  to { transform: translateX(8%) rotate(-8deg); }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes cueDrop {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(250%); }
}

@keyframes tunnelIn {
  0% {
    transform: scale(0.05);
    opacity: 0;
  }
  20% {
    opacity: 0.9;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}

/* ---------- Responsivo ---------- */
/* 1232px = ponto em que o header capa em 1200px e há respiro logo↔menu;
   abaixo disso o nav inteiro apertaria, então vira hambúrguer. */
@media (max-width: 1232px) {
  .menu-toggle {
    display: block;
  }

  /* scroll-cue é afordância de desktop; no mobile o hero é curto e ela
     se sobrepõe aos CTAs, então some. */
  .scroll-cue {
    display: none;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    width: min(420px, calc(100vw - 32px));
    max-height: calc(100vh - 120px);
    overflow: auto;
    padding: 16px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.98);
    border-radius: 14px;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
    transform-origin: 100% 0;
    pointer-events: none;
    transition: opacity 240ms var(--ease-out), transform 280ms var(--ease-out);
  }

  .main-nav.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }

  .main-nav > a,
  .nav-item > a {
    min-height: 44px;
  }

  .main-nav > a::after,
  .nav-item > a::after {
    display: none;
  }

  .submenu {
    position: static;
    display: block;
    min-width: 0;
    padding: 0 0 8px 12px;
    border: 0;
    box-shadow: none;
    background: transparent;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .hero-panel {
    display: none;
  }

  .tunnel-rings {
    display: none;
  }
}

@media (max-width: 900px) {
  .section {
    padding: 80px 22px;
  }

  .hero {
    min-height: 92svh;
    padding: 134px 22px 48px;
  }

  .subhero {
    min-height: 74svh;
    margin-top: -108px;
    padding: 196px 22px 56px;
  }

  .split,
  .contact-band,
  .governance-band,
  .footer {
    grid-template-columns: 1fr;
  }

  .project-grid,
  .doc-grid,
  .composition-grid,
  .governance-list,
  .community-grid,
  .timeline-track,
  .contact-cards,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .numbers {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 24px;
  }

  .carousel {
    grid-template-columns: 1fr;
  }

  .carousel-btn {
    display: none;
  }

  .press-links,
  .footer nav {
    flex-direction: column;
    gap: 12px;
  }

  .footer {
    text-align: left;
  }
}

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal,
  .hero-title .line-inner,
  .hero .eyebrow,
  .hero-lead,
  .hero-actions,
  .hero-panel,
  .scroll-cue {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero-video {
    transform: scale(1.04) !important;
  }

  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
}

/* =========================================================
   Ajustes UX (jun/2026) — nav ativo/scroll-spy, foco por forma,
   estados disabled, alvos de toque, ícones de atendimento e crédito.
   ========================================================= */

/* Estado ativo do nav: página atual (aria-current) e seção visível (scroll-spy) */
.main-nav a[aria-current="page"]:not(.recruit),
.nav-item > a[aria-current="page"],
.main-nav a.is-current {
  color: var(--brand);
}
.main-nav > a[aria-current="page"]:not(.recruit)::after,
.nav-item > a[aria-current="page"]::after,
.main-nav > a.is-current:not(.recruit)::after,
.nav-item > a.is-current::after {
  transform: scaleX(1);
}
.recruit[aria-current="page"] {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--white);
}

/* Foco por forma: anel coerente em controles redondos e botões */
.carousel-btn:focus-visible,
.carousel-dots button:focus-visible,
.lang-switch button:focus-visible {
  border-radius: 999px;
}
.button:focus-visible,
.recruit:focus-visible {
  border-radius: 12px;
}

/* Estado desabilitado coerente para botões/links */
.button:disabled,
.button[disabled],
.button[aria-disabled="true"],
a[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
}

/* Alvo de toque dos dots do carrossel (mantém o ponto visual de 9px) */
.carousel-dots button {
  position: relative;
}
.carousel-dots button::before {
  content: "";
  position: absolute;
  inset: -13px;
}

/* Bandeiras + código no seletor de idioma */
.lang-flag {
  display: inline-flex;
  flex: 0 0 auto;
  width: 22px;
  height: 15px;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(6, 20, 23, 0.12);
}
.lang-flag svg {
  display: block;
  width: 100%;
  height: 100%;
}
.lang-code {
  line-height: 1;
  white-space: nowrap;
}

/* Ícone no card "Canal 0800" da grade de comunidade (fundo escuro) */
.service-ico {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--sky);
}
.service-ico svg {
  width: 24px;
  height: 24px;
}

/* Barra inferior do rodapé: bandeiras à esquerda, crédito Mosten à direita */
.footer-sisdemanda {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}
.footer-sisdemanda .sisdemanda-link {
  margin-left: 0;
}
@media (max-width: 760px) {
  .footer-sisdemanda {
    justify-content: center;
  }
}
.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
  margin-top: 4px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

/* Crédito "Desenvolvido por Mosten" (logo em destaque) */
.footer-credit {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(6, 20, 23, 0.55);
}
.mosten-link {
  display: inline-flex;
  align-items: center;
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out);
}
.mosten-logo {
  display: block;
  height: 28px;
  width: auto;
}
@media (hover: hover) and (pointer: fine) {
  .mosten-link:hover {
    opacity: 0.8;
    transform: translateY(-1px);
  }
}

/* Consulta de protocolo (Demandas da Sociedade): botão alinhado ao campo ao lado */
.consulta-action {
  align-content: end;
}
.consulta-action .button {
  width: 100%;
}

/* ====================== Portal de Demandas (SisDemanda) ====================== */

/* Botão SisDemanda no header — pílula âmbar hi-vis, fora do menu */
/* A marca empurra o resto (nav + SisDemanda + toggle) para a direita, em
   desktop e mobile — assim o botão fica sempre visível, fora do menu. */
.site-header .brand {
  margin-right: auto;
}
.sisdemanda-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  margin-left: 14px;
  padding: 0 15px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.01em;
  white-space: nowrap;
  box-shadow: 0 8px 22px rgba(196, 121, 22, 0.32);
  transition: transform 160ms var(--ease-out), box-shadow 220ms var(--ease-out);
}
.sisdemanda-link svg {
  width: 16px;
  height: 16px;
}
.sisdemanda-link:active {
  transform: scale(0.97);
}
@media (hover: hover) and (pointer: fine) {
  .sisdemanda-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 30px rgba(196, 121, 22, 0.46);
  }
}

/* Hero de autenticação: card centralizado sobre o vídeo */
.portal-auth {
  position: relative;
  display: grid;
  justify-items: center;
  align-items: start;
  min-height: 92svh;
  margin-top: -108px;
  /* topo generoso para o card (borda + conteúdo) limpar o header fixo */
  padding: 250px 22px 84px;
  overflow: hidden;
  background: var(--deep);
}
.portal-auth .subhero-shade {
  background:
    radial-gradient(130% 100% at 50% 24%, rgba(3, 18, 22, 0.32), rgba(3, 18, 22, 0.86)),
    linear-gradient(0deg, rgba(3, 18, 22, 0.9), rgba(3, 18, 22, 0.3));
}

.portal-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: var(--white);
  border-radius: 26px;
  box-shadow: var(--shadow-lg);
  padding: clamp(28px, 4vw, 46px);
  transition: max-width 260ms var(--ease-out);
}
.portal-card.is-wide {
  max-width: 700px;
}
.portal-card .portal-view[hidden] {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  .portal-card {
    transition: none;
  }
}
.portal-card .eyebrow {
  color: var(--brand);
}
.portal-card h1 {
  margin: 8px 0 8px;
  font-family: var(--font-display);
  font-size: clamp(30px, 4.4vw, 42px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.portal-card .portal-sub {
  margin: 0 0 26px;
  color: rgba(6, 20, 23, 0.62);
  font-size: 16px;
  line-height: 1.5;
}
.portal-card .form {
  display: grid;
  gap: 16px;
}
.portal-card .form .button {
  width: 100%;
  min-height: 52px;
  justify-self: stretch;
  margin-top: 6px;
}
.portal-card .portal-alt {
  margin: 6px 0 0;
  text-align: center;
  font-size: 14px;
}

/* Abas Acessar / Criar conta */
.portal-tabs {
  display: flex;
  gap: 4px;
  margin: 0 0 26px;
  padding: 5px;
  background: var(--mist);
  border-radius: 999px;
}
.portal-tabs a {
  flex: 1;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--deep-2);
  transition: background 200ms var(--ease-out), color 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}
.portal-tabs a.is-active {
  background: var(--brand);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(0, 144, 176, 0.3);
}

/* Painel logado */
.portal-dash-hero {
  min-height: 40svh;
  padding-bottom: 56px;
}
.portal-userbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin: 0 0 36px;
  padding: 16px 22px;
  background: var(--mist);
  border-radius: 16px;
  font-size: 15px;
}
.portal-userbar .sair {
  margin-left: auto;
  font-weight: 600;
}
.portal-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(22px, 3vw, 30px);
  box-shadow: var(--shadow);
}
.portal-panel h3 {
  margin: 0 0 18px;
  font-size: 20px;
}
.portal-dash .split {
  gap: 32px;
  align-items: start;
}
.composition-grid.one-col {
  grid-template-columns: 1fr;
}
.portal-filter {
  margin-top: 14px;
  width: 100%;
  max-width: 460px;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font: inherit;
  background: var(--white);
}
.portal-filter:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0, 144, 176, 0.18);
}

@media (max-width: 760px) {
  .portal-dash .split {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   AMBIENTE DE AVALIAÇÃO (Mosten) — marca d'água, selo e pop-up
   Marca aplicada conforme brandbook Mosten: roxo #612CB5, Inter Tight,
   logo oficial. Ativado via classe .modo-avaliacao no <body> (script.js).
   ========================================================= */

/* 1) Marca d'água: logo Mosten oficial (roxo) repetido na horizontal.
   Sem rotação e largura ≥120px, conforme regras do logo no brandbook.
   pointer-events: none = não atrapalha o clique. */
body.modo-avaliacao::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  background-repeat: repeat;
  background-size: 260px 130px;
  background-image: url("assets/mosten-watermark.svg");
  opacity: 0.14;
}

@media print {
  body.modo-avaliacao::before {
    opacity: 0.22;
  }
}

/* O header (menu) fica acima da marca d'água — sem watermark sobre o menu */
body.modo-avaliacao .site-header {
  z-index: 9200;
}

/* 2) Selo fixo de canto — sempre visível, reforça "avaliação" */
.eval-selo {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 9500;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 15px;
  border-radius: 999px;
  background: #23231e;
  color: #fff;
  font-family: "Inter Tight", var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 8px 28px rgba(35, 35, 30, 0.32);
  backdrop-filter: saturate(140%) blur(6px);
  -webkit-backdrop-filter: saturate(140%) blur(6px);
  user-select: none;
}
.eval-selo strong {
  font-weight: 700;
}
.eval-selo .eval-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #803de0;
  box-shadow: 0 0 0 4px rgba(128, 61, 224, 0.22);
}
@media (max-width: 560px) {
  .eval-selo {
    left: 10px;
    bottom: 10px;
    font-size: 11px;
    padding: 7px 12px;
  }
}

/* 3) Pop-up de aviso (modal bloqueante até o aceite) — marca Mosten */
.eval-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(35, 35, 30, 0.66);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 260ms var(--ease-out);
}
.eval-modal-overlay.visivel {
  opacity: 1;
}
.eval-modal-overlay.saindo {
  opacity: 0;
}
.eval-modal {
  width: min(540px, 100%);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  background: #fff;
  color: #23231e;
  border-radius: 20px;
  padding: 34px 32px 28px;
  box-shadow: 0 40px 120px rgba(35, 35, 30, 0.34);
  font-family: "Inter Tight", var(--font-body);
  transform: translateY(14px) scale(0.98);
  opacity: 0;
  transition: transform 320ms var(--ease-out), opacity 320ms var(--ease-out);
}
.eval-modal-overlay.visivel .eval-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.eval-modal-logo {
  display: block;
  width: 132px;
  height: auto;
  margin: 0 0 22px;
}
.eval-modal-tag {
  display: inline-block;
  font-family: "Inter Tight", var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  color: #612cb5;
  background: rgba(97, 44, 181, 0.1);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.eval-modal h2 {
  font-family: "Inter Tight", var(--font-body);
  font-size: clamp(23px, 4vw, 29px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  color: #23231e;
}
.eval-modal p {
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 16px;
  color: rgba(35, 35, 30, 0.78);
}
.eval-modal ul {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 11px;
}
.eval-modal li {
  position: relative;
  padding-left: 26px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(35, 35, 30, 0.78);
}
.eval-modal li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #612cb5;
}
.eval-modal strong {
  color: #23231e;
  font-weight: 700;
}
/* Botão de aceite — roxo Mosten, texto branco (combinação aprovada) */
.eval-aceitar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 4px;
  padding: 15px 24px;
  border: none;
  border-radius: 12px;
  background: #612cb5;
  color: #fff;
  font-family: "Inter Tight", var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 180ms var(--ease-out), transform 120ms var(--ease-out);
}
.eval-aceitar:hover {
  background: #803de0;
}
.eval-aceitar:active {
  transform: translateY(1px);
}
.eval-aceitar:focus-visible {
  outline: 3px solid rgba(128, 61, 224, 0.4);
  outline-offset: 2px;
}
@media (max-width: 480px) {
  .eval-modal {
    padding: 28px 22px 22px;
    border-radius: 16px;
  }
}
