/*
 * Landing page Bergamo & Madureira — defesa de servidores públicos.
 * Servida pelo Gunicorn em 127.0.0.1:8125; o Nginx faz o reverse proxy.
 * Cores oficiais: navy #002634, verde #40bc48, petróleo #083b36, cinza #dce2e4.
 */

:root {
  --navy: #002634;
  --green: #40bc48;
  --petrol: #083b36;
  --mist: #dce2e4;
  --paper: #ffffff;
  --muted: color-mix(in srgb, var(--navy) 62%, #ffffff);
  --line: color-mix(in srgb, var(--navy) 14%, #ffffff);
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Manrope", system-ui, sans-serif;
  --header-h: 64px;
  --shadow-float: 0 18px 45px color-mix(in srgb, var(--navy) 14%, transparent);
}

@media (min-width: 768px) {
  :root { --header-h: 72px; }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--mist);
  color: var(--navy);
  font-family: var(--sans);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: 0;
}

a, button { outline-offset: 4px; }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--green);
}

::selection { background: var(--green); color: var(--navy); }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 2000;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--green);
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus { transform: translateY(0); }

.content {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 20px;
}

@media (min-width: 768px) {
  .content { padding-inline: 32px; }
}

.hero-wrap {
  width: calc(100% - 40px);
  max-width: 1180px;
  margin-inline: auto;
}

@media (min-width: 768px) {
  .hero-wrap { width: calc(100% - 64px); }
}

/* Primeira dobra: header e hero compartilham o fundo */
.fold {
  position: relative;
  width: 100%;
  background-color: var(--navy);
  background-image:
    linear-gradient(90deg, color-mix(in srgb, var(--navy) 34%, transparent) 0%, color-mix(in srgb, var(--navy) 14%, transparent) 55%, color-mix(in srgb, var(--navy) 8%, transparent) 100%),
    url("assets/hero-bg-bm.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  height: var(--header-h);
  background: rgba(0, 38, 52, 0.18);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: background 250ms ease, border-color 250ms ease, box-shadow 250ms ease;
}

.header.is-scrolled {
  background: rgba(0, 38, 52, 0.88);
  backdrop-filter: blur(16px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo img { display: block; height: 44px; width: auto; }

@media (min-width: 768px) {
  .logo img { height: 48px; }
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 32px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-desktop a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 200ms ease;
}

.nav-desktop a:hover { color: var(--green); }

.icon-btn {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 38, 52, 0.35);
  color: #fff;
  text-decoration: none;
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease;
}

.icon-btn:hover {
  border-color: var(--green);
  background: var(--green);
  color: var(--navy);
}

.menu-btn {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 38, 52, 0.35);
  color: #fff;
  cursor: pointer;
}

.menu-btn:hover { background: var(--green); color: var(--navy); }

@media (min-width: 1024px) {
  .nav-desktop, .icon-btn { display: flex; }
  .menu-btn, .nav-mobile { display: none !important; }
}

.nav-mobile {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: color-mix(in srgb, var(--navy) 78%, transparent);
  backdrop-filter: blur(16px);
  padding: 20px;
}

.nav-mobile.is-open { display: block; }

.nav-mobile-inner {
  max-width: 1280px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
}

.nav-mobile a {
  padding: 12px 0;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}

.nav-mobile a:hover { color: var(--green); }

.hero {
  position: relative;
  overflow: hidden;
}

.mark-watermark {
  pointer-events: none;
  position: absolute;
  display: none;
}

@media (min-width: 1024px) {
  .mark-watermark { display: block; }
  .hero-mark {
    left: -128px;
    bottom: 0;
    width: 520px;
    opacity: 0.05;
  }
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 32px;
  padding-top: 112px;
  padding-bottom: 32px;
}

@media (min-width: 1024px) {
  .hero-grid {
    width: calc(100% - 80px);
    max-width: 1200px;
    min-height: clamp(620px, 72vh, 720px);
    grid-template-columns: 2fr 3fr;
    grid-template-rows: 1fr auto;
    align-items: center;
    gap: 12px 40px;
    padding-top: 117px;
    padding-bottom: 26px;
  }

  .hero-copy { grid-column: 1; grid-row: 1; align-self: end; }
  .hero-visual { grid-column: 2; grid-row: 1 / span 2; }
  .hero-grid > .cta-halo { grid-column: 1; grid-row: 2; align-self: start; margin-top: 20px; }
}

.hero-copy {
  z-index: 2;
  max-width: 500px;
  padding-bottom: 16px;
}

.hero h1 {
  max-width: 480px;
  margin: 0;
  font-size: 2.2rem;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: #fff;
}

.hero h1 span { color: var(--green); }

@media (min-width: 768px) {
  .hero h1 {
    font-size: clamp(42px, 3vw, 50px);
    line-height: 1.02;
    letter-spacing: -0.02em;
  }
}

.hero-lead {
  max-width: 470px;
  margin: 24px 0 0;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.75);
}

.hero-note {
  margin: 14px 0 0;
  font-size: 13px;
  font-weight: 600;
}

.hero-visual {
  position: relative;
  min-height: 430px;
  align-self: end;
}

@media (min-width: 768px) {
  .hero-visual { min-height: 540px; }
}

@media (min-width: 1024px) {
  .hero-visual { height: 100%; min-height: min(78vh, 720px); }
}

.hero-visual img {
  position: absolute;
  bottom: -32px;
  left: 50%;
  z-index: 2;
  height: 78%;
  max-height: 720px;
  width: auto;
  max-width: 100%;
  transform: translateX(-50%);
  object-fit: contain;
  object-position: bottom;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 74%, rgba(0, 0, 0, 0.55) 88%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 74%, rgba(0, 0, 0, 0.55) 88%, transparent 100%);
}

@media (min-width: 768px) {
  .hero-visual img { height: 82%; }
}

@media (min-width: 1024px) {
  .hero-visual img {
    left: auto;
    right: 2%;
    bottom: -26px;
    height: 100%;
    max-height: none;
    transform: none;
  }
}

/*
 * Celular e tablet: manchete, o servidor com a notificação e o botão
 * dividem a primeira tela. A foto ocupa o espaço que sobra, em vez de
 * cair para baixo da dobra.
 */
@media (max-width: 1023px) {
  .fold {
    height: 100svh;
    overflow: hidden;
  }

  .hero { height: 100%; }

  .hero-grid {
    height: 100%;
    min-height: 0;
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr) auto;
    align-items: stretch;
    gap: 6px;
    padding-top: calc(var(--header-h) + 14px);
    padding-bottom: max(14px, env(safe-area-inset-bottom));
  }

  .hero-copy {
    grid-column: 1;
    grid-row: 1;
    max-width: none;
    padding-bottom: 0;
  }

  .hero h1 {
    max-width: 16em;
    font-size: clamp(1.6rem, 6.4vw, 2rem);
    line-height: 1.08;
  }

  .hero-lead {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.45;
  }

  .hero-note { margin-top: 6px; font-size: 12px; }

  .hero-visual {
    grid-row: 2;
    min-height: 0;
    height: 100%;
    align-self: stretch;
  }

  .hero-visual img {
    position: absolute;
    inset: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    max-width: none;
    transform: none;
    object-fit: contain;
    object-position: center bottom;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .hero-grid > .cta-halo {
    grid-row: 3;
    margin-top: 4px;
    max-width: none;
  }
}

/* Botão de WhatsApp: halo verde, pílula, seta à direita */
.cta-halo {
  width: 100%;
  max-width: 460px;
  margin-top: 32px;
  padding: 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--green) 10%, transparent);
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  height: 56px;
  padding: 0 8px 0 12px;
  border-radius: 999px;
  background: var(--green);
  color: var(--navy);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 200ms ease, color 200ms ease;
}

.cta:hover {
  background: color-mix(in srgb, var(--green) 85%, var(--navy));
  color: #fff;
}

.cta span.label { white-space: nowrap; line-height: 1; }

.cta-arrow {
  display: flex;
  flex: none;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  transition: transform 200ms ease;
}

.cta:hover .cta-arrow { transform: translateX(4px); }

@media (min-width: 360px) {
  .cta { gap: 14px; padding: 0 10px 0 16px; font-size: 11px; }
}

@media (min-width: 640px) {
  .cta { min-width: 330px; padding: 0 14px 0 22px; font-size: 12px; }
}

.section { position: relative; overflow: hidden; padding: 96px 0; }

@media (min-width: 1024px) {
  .section { padding: 128px 0; }
}

.paper { background: var(--paper); }
.mist { background: var(--mist); }
.petrol { background: var(--petrol); color: #fff; text-align: center; }

.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.kicker.light { color: rgba(255, 255, 255, 0.8); justify-content: center; }

.kicker-icon {
  display: flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--navy) 15%, transparent);
  background: var(--paper);
  color: var(--green);
}

.kicker.light .kicker-icon {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
}

.case-grid {
  display: grid;
  gap: 56px;
  align-items: center;
}

@media (min-width: 1024px) {
  .case-grid { grid-template-columns: 1.05fr 0.95fr; gap: 80px; }
}

.photo-frame {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
}

.photo-frame img {
  display: block;
  width: 100%;
  height: 440px;
  object-fit: cover;
  object-position: center;
}

@media (min-width: 1024px) {
  .photo-frame img { height: 620px; }
}

.photo-frame::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 33%;
  background: linear-gradient(to top, color-mix(in srgb, var(--navy) 70%, transparent), transparent);
}

.float-card {
  position: relative;
  margin: -48px 16px 0;
  max-width: 300px;
  padding: 24px;
  border-radius: 16px;
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow-float);
}

.float-card .rule {
  display: block;
  width: 32px;
  height: 1px;
  background: var(--green);
}

.float-card p { margin: 16px 0 0; font-size: 15px; line-height: 1.6; }

@media (min-width: 640px) {
  .float-card {
    position: absolute;
    left: 16px;
    bottom: -32px;
    margin: 0;
  }
}

@media (min-width: 768px) {
  .float-card { left: 40px; }
}

.section h2 {
  margin: 24px 0 0;
  font-size: 2rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--navy);
}

@media (min-width: 768px) {
  .section h2 { font-size: clamp(34px, 3vw, 46px); }
}

.section-lead {
  margin: 24px 0 0;
  font-size: 1.25rem;
  color: var(--navy);
}

@media (min-width: 768px) {
  .section-lead { font-size: 1.5rem; }
}

.body-copy {
  max-width: 36rem;
  margin: 24px 0 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
}

.steps {
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.steps li {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.steps li:first-child { border-top: 0; }

.steps .num {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--green);
}

.steps .label {
  font-size: 1.125rem;
  color: var(--navy);
  transition: transform 300ms ease;
}

@media (min-width: 768px) {
  .steps .label { font-size: 1.25rem; }
}

.steps li:hover .label { transform: translateX(4px); }

.emphasis {
  margin: 28px 0 0;
  font-size: 14px;
  font-weight: 600;
}

.approach {
  display: grid;
  gap: 48px;
}

@media (min-width: 1024px) {
  .approach { grid-template-columns: 0.78fr 1.22fr; gap: 64px; }
}

.approach-intro h2 { max-width: 530px; line-height: 1.12; }

@media (min-width: 768px) {
  .approach-intro h2 { font-size: clamp(36px, 3.2vw, 52px); }
}

@media (min-width: 1024px) {
  .approach-intro { position: sticky; top: 112px; align-self: start; }
}

.count {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid color-mix(in srgb, var(--navy) 15%, transparent);
}

@media (min-width: 1024px) {
  .count { margin-top: 80px; }
}

.count strong {
  font-family: var(--serif);
  font-size: 76px;
  font-weight: 400;
  line-height: 0.75;
}

@media (min-width: 768px) {
  .count strong { font-size: 96px; }
}

.count span {
  padding-bottom: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.principles { border-top: 1px solid color-mix(in srgb, var(--navy) 20%, transparent); }

.principle {
  position: relative;
  overflow: hidden;
  padding: 32px 4px;
  border-bottom: 1px solid color-mix(in srgb, var(--navy) 20%, transparent);
}

.principle::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: var(--green);
  opacity: 0.35;
}

.principle.highlight {
  border-left: 1px solid color-mix(in srgb, var(--navy) 15%, transparent);
  border-right: 1px solid color-mix(in srgb, var(--navy) 15%, transparent);
  background: color-mix(in srgb, var(--navy) 3.5%, transparent);
}

.principle .idx {
  font-family: var(--serif);
  font-size: 2.25rem;
  line-height: 1;
  color: color-mix(in srgb, var(--green) 70%, transparent);
}

.principle h3 {
  max-width: 20rem;
  margin: 20px 0 0;
  font-size: 23px;
  line-height: 1.18;
}

.principle.highlight h3 { font-size: 25px; }

.principle p {
  max-width: 28rem;
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

@media (min-width: 768px) {
  .principle {
    display: grid;
    min-height: 148px;
    grid-template-columns: 64px minmax(180px, 0.9fr) 1.1fr;
    align-items: center;
    gap: 24px;
    padding: 32px 20px;
  }
  .principle .idx { font-size: 3rem; }
  .principle h3 { margin: 0; font-size: 27px; }
  .principle.highlight h3 { font-size: 30px; }
  .principle p { margin: 0; }
}

.areas-head {
  display: grid;
  gap: 32px;
}

@media (min-width: 1024px) {
  .areas-head { grid-template-columns: 1fr 1fr; align-items: end; }
  .areas-head h2 { font-size: clamp(32px, 2.8vw, 44px); }
}

.areas-grid {
  display: grid;
  gap: 16px;
  margin-top: 56px;
}

@media (min-width: 1024px) {
  .areas-grid { grid-template-columns: 1.15fr 1fr; }
}

.pad-card {
  position: relative;
  display: flex;
  min-height: 360px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 28px;
  border-radius: 28px;
  background: var(--navy);
  color: #fff;
}

@media (min-width: 640px) {
  .pad-card { min-height: 420px; padding: 44px; }
}

.pad-card .mark {
  pointer-events: none;
  position: absolute;
  right: -48px;
  bottom: -64px;
  width: 288px;
  opacity: 0.07;
}

.pad-top {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.pad-card abbr {
  font-family: var(--serif);
  font-size: 4.5rem;
  line-height: 1;
  color: var(--green);
  text-decoration: none;
}

@media (min-width: 768px) {
  .pad-card abbr { font-size: 6rem; }
}

.pad-card h3 {
  margin: 0;
  font-size: 1.875rem;
  line-height: 1.15;
}

@media (min-width: 768px) {
  .pad-card h3 { font-size: 34px; }
}

.pad-card p {
  max-width: 32rem;
  margin: 20px 0 0;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.7);
}

.area-cards { display: grid; gap: 16px; }

@media (min-width: 640px) {
  .area-cards { grid-template-columns: 1fr 1fr; }
}

.area-card {
  display: flex;
  min-height: 190px;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  border-radius: 24px;
}

@media (min-width: 1024px) {
  .area-card { min-height: 200px; }
}

.area-card .code {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--green);
}

.area-card h3 { margin: 0; font-size: 1.25rem; line-height: 1.3; }
.area-card p { margin: 12px 0 0; font-size: 13px; line-height: 1.7; }

.tone-secondary { background: var(--mist); color: var(--navy); }
.tone-mist { background: var(--mist); color: var(--navy); }
.tone-secondary p, .tone-mist p { color: var(--muted); }
.tone-petrol { background: var(--petrol); color: #fff; }
.tone-petrol p { color: rgba(255, 255, 255, 0.7); }

.center-cta { display: flex; justify-content: center; margin-top: 48px; }
.center-cta .cta-halo { margin-top: 0; }

/*
 * Modal de conversão. O bloco de orientação jurídica não fica no fluxo da página:
 * abre por cima, em tela cheia no celular e centralizado no desktop.
 */
.lead-modal {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
  color: var(--navy);
}

.lead-modal[open] {
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.lead-modal::backdrop {
  background: rgba(0, 22, 32, 0.72);
  backdrop-filter: blur(8px);
}

.lead-modal-panel {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow: auto;
  overscroll-behavior: contain;
  background: #fff;
  padding: 8px 20px calc(24px + env(safe-area-inset-bottom));
  -webkit-overflow-scrolling: touch;
}

.lead-modal-bar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  margin: 0 -20px;
  padding: calc(8px + env(safe-area-inset-top)) 12px 8px;
  background: linear-gradient(#fff 70%, rgba(255, 255, 255, 0));
}

.lead-modal-close {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  cursor: pointer;
}

.lead-modal-close:hover { background: var(--mist); }

.lead-modal h2 {
  margin: 16px 0 0;
  max-width: 22em;
  color: var(--navy);
  font-size: clamp(28px, 7vw, 36px);
  line-height: 1.12;
}

.lead-modal-lead {
  margin: 14px 0 0;
  max-width: 38rem;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

.lead-modal[open] .lead-modal-panel {
  animation: lead-sobe 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes lead-sobe {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@media (min-width: 720px) {
  .lead-modal[open] { align-items: center; padding: 24px; }

  .lead-modal-panel {
    width: min(560px, 100%);
    height: auto;
    max-height: min(92dvh, 860px);
    border-radius: 28px;
    padding: 8px 28px 28px;
    box-shadow: 0 28px 80px rgba(0, 20, 30, 0.28);
  }

  .lead-modal-bar { margin: 0 -28px; padding-inline: 16px; }

  .lead-modal[open] .lead-modal-panel {
    animation-name: lead-centro;
  }
}

@keyframes lead-centro {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

/* Formulário de lead. O POST vai para /api/leads e grava no PostgreSQL. */
.lead-form {
  display: grid;
  gap: 14px;
  margin: 22px 0 0;
  text-align: left;
}

.lead-grid {
  display: grid;
  gap: 14px;
}

@media (min-width: 640px) {
  .lead-grid { grid-template-columns: 1fr 1fr; }
}

.lead-form label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}

.lead-form .opcional {
  font-weight: 500;
  color: var(--muted);
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--navy);
  font: inherit;
  font-size: 16px;
  font-weight: 500;
}

.lead-form textarea { resize: vertical; min-height: 120px; }

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.lead-form button.cta {
  border: 0;
  cursor: pointer;
  font-family: inherit;
  margin-top: 6px;
  min-width: 0;
}

.lead-form button.cta:disabled {
  cursor: wait;
  opacity: 0.7;
}

.lead-consent {
  display: flex !important;
  align-items: flex-start;
  gap: 12px;
  margin-top: 4px;
  padding: 4px 0;
  font-weight: 500 !important;
  line-height: 1.5;
  cursor: pointer;
}

.lead-consent input {
  width: 22px;
  height: 22px;
  flex: none;
  margin-top: 1px;
  padding: 0;
  accent-color: var(--green);
}

.lead-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  min-height: 1.4em;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.form-status.is-ok { color: #146c2e; }
.form-status.is-erro { color: #9b2c2c; }

.lead-privacy {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 500;
  color: var(--muted);
}

.lead-privacy a {
  color: var(--navy);
  font-weight: 700;
}

.watermark-right {
  right: -96px;
  top: 40px;
  width: 420px;
  opacity: 0.04;
}

.watermark-left {
  left: -112px;
  top: 112px;
  width: 460px;
  opacity: 0.035;
}

/* Páginas institucionais: privacidade e termos. Fundo claro, coluna de leitura. */
.legal-body { background: var(--mist); }

.legal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding: 12px 20px;
  background: var(--navy);
}

.legal-top .logo img { height: 44px; }

.legal-back {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}

.legal-back:hover { color: var(--green); }

.legal-main {
  width: min(760px, calc(100% - 32px));
  margin: 28px auto 48px;
}

.legal-doc {
  padding: 36px 22px 48px;
  border-radius: 24px;
  background: #fff;
  color: var(--navy);
}

@media (min-width: 768px) {
  .legal-top { padding-inline: 32px; }
  .legal-doc { padding: 56px 56px 64px; }
}

.legal-kicker {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
}

.legal-doc h1 {
  margin: 12px 0 0;
  font-size: clamp(32px, 5vw, 44px);
  line-height: 1.12;
}

.legal-updated {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.legal-doc h2 {
  margin: 36px 0 0;
  font-size: 1.35rem;
  line-height: 1.3;
}

.legal-doc p,
.legal-doc li {
  font-size: 16px;
  line-height: 1.75;
  color: color-mix(in srgb, var(--navy) 82%, #ffffff);
}

.legal-doc p { margin: 14px 0 0; }

.legal-doc ul {
  margin: 14px 0 0;
  padding-left: 1.2em;
}

.legal-doc li + li { margin-top: 8px; }

.legal-doc a { color: var(--navy); font-weight: 700; }

.legal-note {
  margin-top: 28px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--mist);
  font-size: 14px;
}

.footer { background: var(--navy); color: #fff; }

.footer-grid {
  display: grid;
  gap: 40px;
  padding: 64px 0;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.2fr 1fr; gap: 64px; }
  .footer-links { align-items: flex-end; }
}

.footer p {
  max-width: 24rem;
  margin: 24px 0 0;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.7);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 14px;
}

.footer-links a { color: rgba(255, 255, 255, 0.8); text-decoration: none; }
.footer-links a:hover { color: var(--green); }
.footer-links .row { display: flex; flex-wrap: wrap; gap: 8px 12px; }
.sep { color: rgba(255, 255, 255, 0.3); }
.legal { color: rgba(255, 255, 255, 0.6); }

.footer-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.fade-up { animation: fade-slide 800ms cubic-bezier(0.22, 1, 0.36, 1) both; }

@keyframes fade-slide {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 900ms cubic-bezier(0.22, 1, 0.36, 1), transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-up, .reveal, .lead-modal[open] .lead-modal-panel {
    animation: none;
    opacity: 1;
    transform: none;
    transition: none;
  }
}
