/* ================================================================
   HOME SECTIONS — problema / solução / processo (homepage)
================================================================ */

/* ----------------------------------------------------------------
   Problema + Solução — base
---------------------------------------------------------------- */
.ps {
  padding: var(--space-16) 0;
}

@media (min-width: 768px) {
  .ps {
    padding: var(--space-20) 0;
  }
}

/* ----------------------------------------------------------------
   PROBLEMA — alerta emocional + split (copy | imagem)
---------------------------------------------------------------- */
.ps--problem {
  position: relative;
  padding: clamp(3rem, 6vw, 5rem) 0;
  background-color: #f8fafc;
  background-image:
    radial-gradient(circle at left, rgba(11, 42, 60, 0.06), transparent 60%);
  border-bottom: 1px solid #e2e8f0;
  overflow: hidden;
}

/* Textura leve de rede (~2–3%) */
.ps--problem::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cpath d='M0 0h48v48H0z' fill='none'/%3E%3Cpath d='M0 0h48M0 16h48M0 32h48M0 48h48M0 0v48M16 0v48M32 0v48M48 0v48' stroke='%230B2A3C' stroke-width='0.55'/%3E%3C/svg%3E");
  opacity: 0.028;
  pointer-events: none;
  z-index: 0;
}

.ps--problem .container {
  position: relative;
  z-index: 1;
}

/* Duas colunas: texto à esquerda, imagem à direita (DOM: mídia primeiro = topo no mobile) */
.ps-problem__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.75rem, 4vw, 2.5rem);
  align-items: start;
}

@media (min-width: 1024px) {
  .ps-problem__layout {
    grid-template-columns: minmax(0, 520px) minmax(280px, 1fr);
    gap: clamp(3.5rem, 5vw, 4.5rem);
    /* Mesma altura da coluna de texto — imagem acompanha o bloco inteiro */
    align-items: stretch;
  }

  .ps-problem__copy {
    grid-column: 1;
    grid-row: 1;
    max-width: 520px;
  }

  .ps-problem__media {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .ps-problem__figure {
    flex: 1 1 auto;
    min-height: 0;
  }

  .ps-problem__figure--compare {
    height: 100%;
  }
}

.ps-problem__copy {
  min-width: 0;
}

/* Header — mesma medida da lista (520px) para alinhamento óptico */
.ps-problem__header {
  max-width: 520px;
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
  text-align: left;
}

.ps--problem .ps__eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #b45309;
  margin-bottom: 0.75rem;
}

.ps--problem .ps__title {
  font-size: clamp(1.5rem, 4.2vw, 2.375rem);
  font-weight: 800;
  color: #0b2a3c;
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin: 0 0 0.875rem;
}

.ps--problem .ps__lead {
  font-size: 1rem;
  color: #5b6b7a;
  line-height: 1.65;
  max-width: 520px;
  margin: 0;
}

/* Feed de alertas — leitura rápida, sem caixas pesadas */
.alert-feed {
  width: 100%;
  max-width: 520px;
  margin: 0 0 clamp(1.5rem, 3vw, 2rem);
  padding: 0.25rem 0 0;
  border-top: 1px solid rgba(11, 42, 60, 0.08);
}

.alert-feed__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 1.15rem 0;
  border-bottom: 1px solid #e8ecf0;
  opacity: 0;
  transform: translateY(7px);
  transition:
    opacity 0.55s ease,
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.alert-feed__item:last-child {
  border-bottom: none;
  padding-bottom: 0.35rem;
}

.alert-feed__item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.alert-feed__marker {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 0.48rem;
  border-radius: 50%;
  background: #facc15;
  box-shadow: 0 0 0 1px rgba(250, 204, 21, 0.28);
  transform-origin: center;
  transition:
    background 0.4s ease,
    box-shadow 0.4s ease,
    transform 0.4s ease;
}

/* Pulso sequencial: um marcador ativo por vez (ativado via JS) */
.alert-feed__item.is-pulse-active .alert-feed__marker {
  animation: alert-feed-marker-pulse 0.65s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes alert-feed-marker-pulse {
  0% {
    transform: scale(1);
    background: #facc15;
    box-shadow: 0 0 0 1px rgba(250, 204, 21, 0.28);
  }
  42% {
    transform: scale(1.4);
    background: #fb7185;
    box-shadow:
      0 0 0 3px rgba(251, 113, 133, 0.4),
      0 0 14px rgba(251, 113, 133, 0.22);
  }
  100% {
    transform: scale(1);
    background: #facc15;
    box-shadow: 0 0 0 1px rgba(250, 204, 21, 0.28);
  }
}

.alert-feed__body {
  flex: 1;
  min-width: 0;
}

.alert-feed__title {
  font-size: 1rem;
  font-weight: 700;
  color: #0b2a3c;
  margin: 0 0 0.35rem;
  line-height: 1.38;
  letter-spacing: -0.02em;
  opacity: 0.97;
  transition:
    color 0.5s ease,
    opacity 0.5s ease,
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.alert-feed__item.is-pulse-active .alert-feed__title {
  color: #0c2434;
  opacity: 1;
  transform: translateY(-1px);
}

.alert-feed__line {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0;
  line-height: 1.45;
  opacity: 0.92;
  transition: opacity 0.5s ease;
}

.alert-feed__item.is-pulse-active .alert-feed__line {
  opacity: 1;
}

/* Grid compartilhado — solução e outras seções */
.ps__grid {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 640px) {
  .ps__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (min-width: 1024px) {
  .ps__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

/* Cards — seção solução: azul sólido (marca) */
.ps--solucao .ps__card {
  background: linear-gradient(155deg, #0b3c5d 0%, #082f47 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 24px;
  box-shadow:
    0 10px 32px rgba(8, 31, 47, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition:
    transform 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease;
}

.ps--solucao .ps__card:hover {
  transform: translateY(-4px);
  border-color: rgba(147, 197, 253, 0.45);
  box-shadow:
    0 16px 40px rgba(8, 31, 47, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.ps--solucao .ps__card--featured {
  background: linear-gradient(155deg, #1e5f8a 0%, #0b3c5d 100%);
  border-color: rgba(186, 230, 253, 0.28);
  box-shadow:
    0 12px 38px rgba(11, 59, 93, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.ps--solucao .ps__card--featured:hover {
  border-color: rgba(186, 230, 253, 0.55);
}

.ps--solucao .ps__card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #dbeafe;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  margin-bottom: 1.125rem;
}

.ps--solucao .ps__card-icon svg {
  width: 1.75rem;
  height: 1.75rem;
  stroke-width: 1.75;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.12));
}

.ps--solucao .ps__card-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: #f8fafc;
  margin: 0 0 var(--space-2);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.ps--solucao .ps__card-text {
  font-size: var(--text-sm);
  color: rgba(226, 232, 240, 0.92);
  line-height: 1.58;
  margin: 0;
}

/* Microcopy + CTA após o feed (evita texto solto antes dos alertas) */
.ps-problem__bridge {
  margin: clamp(1.35rem, 2.8vw, 1.85rem) 0 0;
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  font-weight: 500;
  font-style: normal;
  color: #475569;
  line-height: 1.5;
  letter-spacing: -0.01em;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.5s ease,
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.alert-feed--complete ~ .ps-problem__bridge {
  opacity: 1;
  transform: translateY(0);
}

/* CTA — conversão */
.ps-problem__cta-wrap {
  margin-top: clamp(1rem, 2vw, 1.35rem);
  text-align: left;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.5s ease 0.06s,
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.06s;
}

.alert-feed--complete ~ .ps-problem__cta-wrap {
  opacity: 1;
  transform: translateY(0);
}

.ps-problem__cta-wrap .btn--problem-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #22c55e;
  color: #fff;
  border-radius: 999px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition:
    background 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
  box-shadow: 0 3px 14px rgba(34, 197, 94, 0.28);
}

.ps-problem__cta-wrap .btn--problem-cta:hover {
  background: #16a34a;
  transform: translateY(-1px);
  box-shadow:
    0 6px 22px rgba(34, 197, 94, 0.38),
    0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

.ps-problem__cta-wrap .btn--problem-cta:focus-visible {
  outline: 2px solid #0b2a3c;
  outline-offset: 3px;
}

/* Imagem emocional — comparação antes / depois (risco vs proteção) */
.ps-problem__media {
  margin: 0;
}

.ps-problem__figure {
  position: relative;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 14px 32px rgba(11, 42, 60, 0.09),
    0 2px 8px rgba(0, 0, 0, 0.04);
  transform: scale(0.99);
  transition:
    transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    box-shadow 0.65s ease;
}

.ps-problem__figure--compare {
  border-radius: 16px;
  box-shadow:
    0 16px 36px rgba(11, 42, 60, 0.12),
    0 4px 12px rgba(0, 0, 0, 0.06);
}

.ps-problem__media.reveal.visible .ps-problem__figure {
  transform: scale(1);
}

/* Comparador arrastável (antes / depois) */
.ps-problem__compare--slider {
  position: relative;
  width: 100%;
  min-height: clamp(14rem, 42vw, 18rem);
  --compare-x: 50%;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.ps-problem__compare-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.ps-problem__compare-layer--after {
  z-index: 1;
}

.ps-problem__compare-layer--before {
  z-index: 2;
  clip-path: inset(0 calc(100% - var(--compare-x, 50%)) 0 0);
}

.ps-problem__compare-layer--after .ps-problem__compare-img {
  filter: saturate(1.06) brightness(1.04) contrast(1.02);
}

.ps-problem__compare-layer--before .ps-problem__compare-img {
  filter: saturate(0.88) brightness(0.9) contrast(1.06);
}

.ps-problem__compare-img {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
}

.ps-problem__compare-tone {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.ps-problem__compare-tone--risk {
  background:
    linear-gradient(180deg, rgba(15, 45, 65, 0.22) 0%, transparent 45%),
    linear-gradient(195deg, rgba(8, 28, 42, 0.35) 0%, transparent 55%),
    linear-gradient(0deg, rgba(5, 18, 32, 0.25) 0%, transparent 38%);
}

.ps-problem__compare-tone--safe {
  background:
    linear-gradient(180deg, rgba(255, 245, 230, 0.14) 0%, transparent 42%),
    linear-gradient(195deg, rgba(255, 200, 120, 0.08) 0%, transparent 50%),
    linear-gradient(0deg, rgba(34, 197, 94, 0.06) 0%, transparent 35%);
}

.ps-problem__compare-label {
  position: absolute;
  z-index: 3;
  bottom: 12px;
  margin: 0;
  max-width: min(52%, calc(100% - 24px));
  padding: 8px 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.35;
  color: #ffffff;
  background: rgba(11, 42, 60, 0.85);
  border-radius: 8px;
  pointer-events: none;
}

.ps-problem__compare-label--risk {
  left: 12px;
  background: rgba(185, 28, 28, 0.94);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  /* Opacidade = quanto da faixa “risco” está visível (--compare-x-num 0–100, setado no JS) */
  opacity: calc(var(--compare-x-num, 50) / 100);
  transition: opacity 0.2s ease;
}

.ps-problem__compare-label--safe {
  right: 12px;
  left: auto;
  background: rgba(34, 148, 106, 0.94);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
  opacity: calc(1 - var(--compare-x-num, 50) / 100);
  transition: opacity 0.2s ease;
}

@media (prefers-reduced-motion: reduce) {
  .ps-problem__compare-label--risk,
  .ps-problem__compare-label--safe {
    transition: none;
  }
}

.ps-problem__compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--compare-x);
  z-index: 4;
  width: 48px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: ew-resize;
  transform: translateX(-50%);
  touch-action: none;
}

.ps-problem__compare-handle:focus-visible {
  outline: 2px solid #facc15;
  outline-offset: 2px;
}

.ps-problem__compare-handle-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  transform: translateX(-50%);
  border-radius: 2px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.55) 18%,
    rgba(11, 42, 60, 0.55) 50%,
    rgba(255, 255, 255, 0.55) 82%,
    rgba(255, 255, 255, 0.05) 100%
  );
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.12),
    0 0 16px rgba(0, 0, 0, 0.08);
}

.ps-problem__compare-handle-knob {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  border: 2px solid rgba(11, 42, 60, 0.28);
  box-shadow:
    0 4px 16px rgba(11, 42, 60, 0.18),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.ps-problem__compare-handle-knob::before,
.ps-problem__compare-handle-knob::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 2px;
  height: 12px;
  margin-top: -6px;
  border-radius: 1px;
  background: rgba(11, 42, 60, 0.35);
}

.ps-problem__compare-handle-knob::before {
  left: 14px;
}

.ps-problem__compare-handle-knob::after {
  right: 14px;
}

@media (min-width: 1024px) {
  .ps-problem__compare--slider {
    position: absolute;
    inset: 0;
    min-height: 0;
    height: 100%;
  }
}

@media (max-width: 1023px) {
  .alert-feed {
    text-align: left;
    margin-left: auto;
    margin-right: auto;
  }

  .ps-problem__cta-wrap {
    text-align: center;
  }

  .ps-problem__cta-wrap .btn--problem-cta {
    width: 100%;
    max-width: 22rem;
  }

  .ps-problem__bridge {
    text-align: center;
  }

  .ps-problem__header {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .ps--problem .ps__lead {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .alert-feed__item {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .alert-feed__item.is-pulse-active .alert-feed__marker {
    animation: none;
  }

  .alert-feed__marker {
    background: #facc15;
    box-shadow: 0 0 0 1px rgba(250, 204, 21, 0.28);
  }

  .alert-feed__title,
  .alert-feed__line {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .ps-problem__bridge,
  .ps-problem__cta-wrap {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .ps-problem__media.reveal.visible .ps-problem__figure,
  .ps-problem__figure {
    transform: none;
    transition: none;
  }

  .ps-problem__cta-wrap .btn--problem-cta:hover {
    transform: none;
  }
}

/* ----------------------------------------------------------------
   SOLUÇÃO — autoridade + prova + confiança (+ parallax de fundo)
---------------------------------------------------------------- */
.ps--solucao {
  /* Ajuste fino da arte: >100% amplia um pouco nas laterais (com background fixed) */
  --ps-solucao-bg-size: 108%;
  position: relative;
  padding: 0;
  background-color: #f8fafc;
  /* overflow:hidden quebra background-attachment:fixed em alguns navegadores */
  overflow: visible;
}

.ps-solucao__parallax {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.ps-solucao__parallax-inner {
  position: absolute;
  inset: 0;
  /* background-image via data-bg + IntersectionObserver (main.js) — PSI */
  background-color: #0f2a3a;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: var(--ps-solucao-bg-size, 108%);
  /* Parallax “fixo” ao viewport (foto parada, conteúdo rola) */
  background-attachment: fixed;
}

@media (max-width: 1023px), (prefers-reduced-motion: reduce) {
  .ps-solucao__parallax-inner {
    background-attachment: scroll;
    background-size: cover;
  }
}

/* Leitura sobre a foto — overlay um pouco mais transparente (imagem mais visível) */
.ps--solucao::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(ellipse 100% 70% at 50% 0%, rgba(34, 197, 94, 0.05), transparent 52%),
    linear-gradient(
      180deg,
      rgba(248, 250, 252, 0.78) 0%,
      rgba(248, 250, 252, 0.72) 45%,
      rgba(248, 250, 252, 0.78) 100%
    );
}

.ps--solucao > .container {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-top: 100px;
  padding-bottom: 100px;
}

.ps__header {
  max-width: 40rem;
  margin-bottom: var(--space-8);
}

.ps-solucao__header {
  max-width: 46rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: clamp(1.75rem, 3.5vw, 2.5rem);
  text-align: center;
}

.ps--solucao .ps__eyebrow {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

.ps--solucao .ps__title {
  font-size: clamp(1.5rem, 4vw, 2.125rem);
  font-weight: 800;
  color: #0b2a3c;
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin: 0 0 var(--space-3);
  text-wrap: balance;
}

.ps--solucao .ps__lead {
  font-size: clamp(1rem, 2.2vw, 1.0625rem);
  color: rgba(30, 41, 59, 0.88);
  line-height: 1.65;
  margin: 0;
  max-width: 38rem;
  margin-left: auto;
  margin-right: auto;
}

.ps-solucao__grid {
  margin-top: clamp(2rem, 4vw, 2.75rem);
}

.ps__footer {
  margin-top: var(--space-10);
  text-align: center;
}

.ps__footer--authority {
  margin-top: clamp(2.5rem, 5vw, 3.25rem);
  margin-bottom: 0;
}

.ps-solucao__cta-hint {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #64748b;
  line-height: 1.5;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.ps__cta-glow {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.ps__cta-glow::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(420px, 92vw);
  height: 140px;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle, rgba(250, 204, 21, 0.28) 0%, transparent 72%);
}

.ps__cta-glow .btn {
  position: relative;
  z-index: 1;
}

/* CTA primário desta seção — amarelo + texto escuro */
.btn--solucao-authority {
  background: #facc15;
  color: #0b2a3c;
  border-radius: 999px;
  padding: 14px 28px;
  min-height: 48px;
  font-weight: 700;
  letter-spacing: -0.02em;
  border: none;
  box-shadow: 0 4px 18px rgba(250, 204, 21, 0.38);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.btn--solucao-authority:hover {
  background: #eab308;
  color: #0b2a3c;
  transform: scale(1.03);
  box-shadow: 0 8px 28px rgba(234, 179, 8, 0.45);
}

.btn--solucao-authority:focus-visible {
  outline: 2px solid #0b2a3c;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .btn--solucao-authority:hover {
    transform: none;
  }

  .ps--solucao .ps__card:hover,
  .ps--solucao .ps__card--featured:hover {
    transform: none;
  }
}

.ps__authority-rule {
  height: 1px;
  margin-top: 48px;
  margin-bottom: 0;
  border: 0;
  background: #e5e7eb;
}

.ps__authority-spacer {
  height: 40px;
  flex-shrink: 0;
}

.ps__footer .btn {
  display: inline-flex;
}

@media (max-width: 767px) {
  .ps--solucao > .container {
    padding-top: clamp(3.5rem, 10vw, 5rem);
    padding-bottom: clamp(3.5rem, 10vw, 5rem);
  }

  .ps__authority-rule {
    margin-top: 40px;
  }

  .ps__authority-spacer {
    height: 32px;
  }
}

/* ----------------------------------------------------------------
   Processo de instalação — timeline premium
---------------------------------------------------------------- */
.processo {
  position: relative;
  background-color: #f8fafc;
  background-image: radial-gradient(circle at top, rgba(28, 78, 110, 0.06), transparent 60%);
  border-top: 1px solid var(--color-border);
}

.processo::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/banners/rede-textura.svg");
  background-size: 120px 120px;
  opacity: 0.025;
  pointer-events: none;
}

.processo__shell {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 100px 1.25rem;
}

@media (min-width: 640px) {
  .processo__shell {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

.processo__header {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 3rem;
}

.processo__eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #1c4e6e;
  margin: 0 0 0.75rem;
}

.processo__title {
  font-size: clamp(1.75rem, 4vw, 38px);
  font-weight: 700;
  color: #0b2a3c;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

.processo__subtitle {
  max-width: 600px;
  margin: 12px auto 0;
  font-size: 1rem;
  color: #6b7280;
  line-height: 1.6;
}

/* —— Timeline container —— */
.processo-timeline {
  position: relative;
  --processo-progress: 0%;
}

.processo-timeline__track {
  display: none;
}

.processo-timeline__line {
  position: absolute;
  inset: 0;
  border-radius: 2px;
  background: #e5e7eb;
}

.processo-timeline__progress {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--processo-progress);
  max-width: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, #22c55e 0%, rgba(34, 197, 94, 0.08) 85%, transparent 100%);
  pointer-events: none;
}

.processo-timeline__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

/* Mobile: vertical rail */
.processo-timeline__steps::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 28px;
  bottom: 28px;
  width: 2px;
  background: #e5e7eb;
  border-radius: 2px;
}

.processo-timeline__step {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 0 1rem;
  align-items: flex-start;
  padding-bottom: 1.75rem;
  --step: 0;
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.55s ease,
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--step) * 0.15s);
}

.processo-timeline.is-ready .processo-timeline__step {
  opacity: 1;
  transform: translateY(0);
}

.processo-timeline__step-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.processo-timeline__circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #0b2a3c;
  color: #fff;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.15);
  transform: scale(0.92);
  transition:
    background 0.25s ease,
    transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition-delay: calc(var(--step) * 0.15s);
}

.processo-timeline.is-ready .processo-timeline__circle {
  transform: scale(1);
}

.processo-timeline__circle:hover {
  background: #22c55e;
  transform: scale(1.05);
}

.processo-timeline.is-ready .processo-timeline__circle:hover {
  transform: scale(1.05);
}

.processo-timeline__stem {
  display: none;
}

@media (min-width: 1025px) {
  .processo-timeline__stem {
    display: block;
    width: 2px;
    height: 16px;
    margin-top: 0;
    background: #e5e7eb;
    border-radius: 2px;
  }
}

.processo-timeline__card {
  margin-top: 0;
  padding: 20px;
  max-width: 100%;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.processo-timeline__step:hover .processo-timeline__card {
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
  border-color: #22c55e;
}

.processo-timeline__card-title {
  font-size: 16px;
  font-weight: 600;
  color: #0b2a3c;
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

.processo-timeline__card-text {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.5;
  margin: 0;
}

/* Tablet: 2×2, hide rails */
@media (min-width: 768px) and (max-width: 1024px) {
  .processo-timeline__steps::before {
    display: none;
  }

  .processo-timeline__steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 1.25rem;
  }

  .processo-timeline__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 0;
  }

  .processo-timeline__step-head {
    margin-bottom: 0;
  }

  .processo-timeline__card {
    width: 100%;
    max-width: 280px;
    margin-top: 16px;
  }
}

/* Desktop: horizontal timeline */
@media (min-width: 1025px) {
  .processo-timeline__steps::before {
    display: none;
  }

  .processo-timeline__track {
    display: block;
    position: absolute;
    left: 12.5%;
    width: 75%;
    top: 28px;
    height: 2px;
    z-index: 0;
  }

  .processo-timeline__steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0 0.75rem;
    padding-top: 0;
  }

  .processo-timeline__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 0;
  }

  .processo-timeline__step-head {
    flex-direction: column;
    align-items: center;
  }

  .processo-timeline__stem {
    height: 16px;
    margin-top: 0;
  }

  .processo-timeline__card {
    width: 100%;
    max-width: 240px;
    margin-top: 16px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* CTA destacado */
.processo-cta {
  margin-top: 60px;
  padding: 32px;
  text-align: center;
  border-radius: 16px;
  background: linear-gradient(135deg, #0b2a3c, #1c4e6e);
}

.processo-cta__text {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 500;
  color: #e5e7eb;
  line-height: 1.5;
}

.processo-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  color: #fff;
  background: #22c55e;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.35);
}

.processo-cta__btn:hover {
  transform: scale(1.05);
  background: #16a34a;
}

.processo-cta__btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .processo-timeline__step,
  .processo-timeline__circle,
  .processo-timeline__progress,
  .processo-timeline__card,
  .processo-cta__btn {
    transition: none;
  }

  .processo-timeline__step {
    opacity: 1;
    transform: none;
  }

  .processo-timeline__circle {
    transform: none;
  }

  .processo-timeline.is-ready .processo-timeline__circle:hover,
  .processo-timeline__circle:hover {
    transform: none;
  }

  .processo-timeline__step:hover .processo-timeline__card {
    transform: none;
  }

  .processo-cta__btn:hover {
    transform: none;
  }

  .processo-timeline {
    --processo-progress: 100%;
  }
}
