/* ==========================================================================
   FaturaMes - Folha de Estilos de Autenticação e Área Pública
   ========================================================================== */

/* Fontes Modernas */
body.app-public, 
body.app-public button, 
body.app-public input, 
body.app-public select, 
body.app-public textarea {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.app-public h1, 
body.app-public h2, 
body.app-public h3, 
body.app-public h4, 
body.app-public h5, 
body.app-public h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Custom Properties Extras para Público */
:root {
  --auth-glow-1: rgba(0, 109, 91, 0.15);
  --auth-glow-2: rgba(196, 131, 47, 0.15);
  --auth-card-bg: rgba(255, 255, 255, 0.95);
  --auth-border-color: rgba(217, 227, 220, 0.8);
  --auth-shadow-premium: 0 30px 60px -15px rgba(17, 26, 22, 0.08), 0 18px 36px -18px rgba(17, 26, 22, 0.05);
}

/* ==========================================================================
   1. Navegação e Cabeçalho Público
   ========================================================================== */
body.app-public .app-header {
  border-bottom: 1px solid rgba(217, 227, 220, 0.4);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background 0.3s, border-color 0.3s;
}

body.app-public .navbar {
  padding: 16px 0;
}

body.app-public .navbar-brand {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  color: var(--fm-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

body.app-public .navbar-brand::before {
  content: "FM";
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--fm-primary), #11bda3);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: -0.05em;
}

/* ==========================================================================
   2. Estrutura de Autenticação (Auth Shell)
   ========================================================================== */
.auth-shell {
  width: min(1200px, calc(100% - 40px));
  min-height: calc(100vh - 140px);
  margin: 0 auto;
  padding: 60px 0;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(380px, 0.85fr);
  gap: 60px;
  align-items: center;
}

.auth-shell-wide {
  grid-template-columns: minmax(0, 0.95fr) minmax(460px, 1.05fr);
}

.auth-copy {
  max-width: 580px;
  position: relative;
}

.auth-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--fm-primary);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
  background: var(--fm-primary-soft);
  padding: 4px 10px;
  border-radius: 99px;
}

.auth-copy h1 {
  color: var(--fm-heading);
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
}

.auth-copy p {
  color: var(--fm-muted);
  font-size: 1.08rem;
  line-height: 1.6;
  margin: 0 0 32px;
}

/* ==========================================================================
   3. Mockups Visuais e Efeitos (Coluna Esquerda)
   ========================================================================== */
.auth-visual-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  min-height: 380px;
  background: linear-gradient(135deg, #111a16 0%, #06211a 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  box-shadow: 0 30px 60px rgba(17, 26, 22, 0.25);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

/* Glow Blobs Animados */
.glow-blob {
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  z-index: 1;
  pointer-events: none;
}

.glow-1 {
  background: var(--fm-primary);
  top: -40px;
  left: -40px;
  animation: float-glow-1 12s infinite alternate ease-in-out;
}

.glow-2 {
  background: var(--fm-accent);
  bottom: -40px;
  right: -40px;
  animation: float-glow-2 15s infinite alternate ease-in-out;
}

@keyframes float-glow-1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.15); }
  100% { transform: translate(-20px, 50px) scale(0.9); }
}

@keyframes float-glow-2 {
  0% { transform: translate(0, 0) scale(1.1); }
  50% { transform: translate(-30px, -40px) scale(0.9); }
  100% { transform: translate(30px, 20px) scale(1.2); }
}

/* Elementos do Mockup */
.mockup-container {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mockup-card-main {
  width: 90%;
  background: rgba(25, 38, 33, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  padding: 24px;
  color: #fff;
  transform: rotateX(8deg) rotateY(-8deg) rotateZ(2deg);
  transition: transform 0.5s ease-out;
}

.mockup-card-main:hover {
  transform: rotateX(4deg) rotateY(-4deg) rotateZ(1deg) scale(1.02);
}

.mockup-browser-dots {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
}

.mockup-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.mockup-dot.red { background: #ff5f56; }
.mockup-dot.yellow { background: #ffbd2e; }
.mockup-dot.green { background: #27c93f; }

.mockup-header-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.mockup-header-info small {
  color: var(--fm-sidebar-muted);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
}

.mockup-header-info strong {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.6rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  display: block;
  margin-top: 4px;
}

.trend-badge-positive {
  background: rgba(39, 201, 63, 0.15);
  color: #55efc4;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
}

/* Gráfico Simulado */
.mockup-chart-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 100px;
  margin-top: 24px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  gap: 12px;
}

.mockup-bar {
  flex: 1;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px 4px 0 0;
  height: var(--height);
  transition: background 0.3s, height 0.3s;
}

.mockup-bar.active {
  background: linear-gradient(to top, var(--fm-primary), #00d2b4);
  box-shadow: 0 0 16px rgba(0, 109, 91, 0.4);
}

/* Cards Flutuantes */
.mockup-float-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  z-index: 10;
  color: var(--fm-heading);
  animation: float-widget 6s infinite alternate ease-in-out;
  pointer-events: none;
}

.float-card-1 {
  top: 15%;
  left: -20px;
  width: 220px;
  animation-delay: 0s;
}

.float-card-2 {
  bottom: 15%;
  right: -20px;
  width: 240px;
  animation-delay: 1.5s;
}

@keyframes float-widget {
  0% { transform: translateY(0); }
  100% { transform: translateY(-12px); }
}

.mockup-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--fm-accent), #f1c40f);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 750;
  font-size: 0.78rem;
}

.mockup-avatar.teal {
  background: linear-gradient(135deg, var(--fm-primary), #00cec9);
}

.mockup-text {
  flex: 1;
}

.mockup-text strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 750;
}

.mockup-text small {
  display: block;
  font-size: 0.72rem;
  color: var(--fm-muted);
}

.float-badge {
  font-size: 0.68rem;
  font-weight: 750;
  padding: 2px 8px;
  border-radius: 99px;
}

.float-badge.success {
  background: #dff5e8;
  color: #0d6b45;
}

.float-badge.warning {
  background: #fff3cd;
  color: #856404;
}

/* Highlight Items */
.auth-highlights {
  display: grid;
  gap: 16px;
  margin-top: 36px;
}

.auth-highlights div {
  border-left: 3px solid var(--fm-primary);
  padding-left: 18px;
  transition: transform 0.2s;
}

.auth-highlights div:hover {
  transform: translateX(4px);
}

.auth-highlights div:nth-child(2) { border-left-color: var(--fm-accent); }
.auth-highlights div:nth-child(3) { border-left-color: var(--fm-coral); }

/* ==========================================================================
   4. Cartão de Autenticação (Formulário)
   ========================================================================== */
.auth-card {
  background: var(--auth-card-bg);
  border: 1px solid var(--auth-border-color);
  border-radius: 16px;
  box-shadow: var(--auth-shadow-premium);
  padding: 40px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  z-index: 5;
}

.auth-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}

.auth-card-head h2 {
  color: var(--fm-heading);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
}

.auth-card-head p {
  color: var(--fm-muted);
  font-size: 0.94rem;
  margin: 6px 0 0;
}

.auth-card-head a {
  flex: 0 0 auto;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  background: var(--fm-primary-soft);
  color: var(--fm-primary-dark);
  padding: 6px 14px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.auth-card-head a:hover {
  background: var(--fm-primary);
  color: #fff;
}

/* Formulário e Controles */
.auth-card label.form-label {
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--fm-heading);
  margin-bottom: 6px;
}

.auth-card .form-control {
  border: 1.5px solid #cbd7ce;
  border-radius: 10px;
  padding: 11px 16px;
  font-size: 0.95rem;
  color: var(--fm-ink);
  background: rgba(255, 255, 255, 0.8);
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.auth-card .form-control:focus {
  border-color: var(--fm-primary);
  box-shadow: 0 0 0 4px rgba(0, 109, 91, 0.15);
  background-color: #fff;
  outline: none;
}

.auth-card .text-danger {
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 4px;
  display: block;
}

.auth-card .btn-primary {
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--fm-primary) 0%, #00937a 100%);
  border: none;
  box-shadow: 0 8px 20px -6px rgba(0, 109, 91, 0.4);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.auth-card .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -5px rgba(0, 109, 91, 0.5);
}

.auth-card .btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(0, 109, 91, 0.4);
}

.auth-card a:not(.btn) {
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.auth-card a:not(.btn):hover {
  text-decoration: underline;
}

/* ==========================================================================
   5. Página de Landing (Home/Index)
   ========================================================================== */
body.app-public .hero {
  min-height: calc(100vh - 84px);
  background: 
    linear-gradient(105deg, rgba(11, 22, 18, 0.97) 10%, rgba(17, 30, 24, 0.8) 50%, rgba(25, 45, 36, 0.4) 100%),
    url("https://images.unsplash.com/photo-1554224155-6726b3ff858f?auto=format&fit=crop&w=1800&q=80");
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

body.app-public .hero::before {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  background: var(--fm-primary);
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  top: -80px;
  right: -80px;
  pointer-events: none;
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 80px 0 100px;
}

body.app-public .hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}

body.app-public .hero p {
  font-size: 1.22rem;
  line-height: 1.6;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 36px;
}

body.app-public .hero .btn-primary {
  padding: 14px 32px;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 10px;
  box-shadow: 0 10px 25px -5px rgba(0, 109, 91, 0.5);
  transition: transform 0.2s, box-shadow 0.2s;
}

body.app-public .hero .btn-light {
  padding: 14px 32px;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 10px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}

body.app-public .hero .btn-primary:hover,
body.app-public .hero .btn-light:hover {
  transform: translateY(-2px);
}

body.app-public .hero-metrics {
  grid-template-columns: repeat(3, minmax(0, 220px));
  gap: 24px;
  margin-top: 60px;
}

body.app-public .hero-metrics div {
  border-top: 1.5px solid rgba(255, 255, 255, 0.2);
  padding-top: 16px;
}

body.app-public .hero-metrics strong {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

body.app-public .hero-metrics span {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 4px;
  display: block;
}

/* Feature Band e Grid */
body.app-public .feature-band {
  background: #fbfcfb;
  border-top: 1px solid var(--fm-line);
  border-bottom: 1px solid var(--fm-line);
  padding: 80px 0;
}

body.app-public .feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

body.app-public .feature-item {
  border-left: none;
  background: #fff;
  border: 1px solid rgba(217, 227, 220, 0.8);
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 10px 20px -8px rgba(17, 26, 22, 0.04);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

body.app-public .feature-item::before {
  content: "";
  display: block;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  margin-bottom: 20px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 20px;
}

/* Cores de ícones e bordas superiores nos features */
body.app-public .feature-item:nth-child(1) {
  border-top: 4px solid var(--fm-primary);
}
body.app-public .feature-item:nth-child(1)::before {
  background-color: var(--fm-primary-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23006d5b' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M12 8c-1.657 0-3 .895-3 2s1.343 2 3 2 3 .895 3 2-1.343 2-3 2m0-8c1.11 0 2.08.402 2.599 1M12 8V7m0 1v8m0 0v1m0-1c-1.11 0-2.08-.402-2.599-1M21 12a9 9 0 11-18 0 9 9 0 0118 0z' /%3E%3C/svg%3E");
}

body.app-public .feature-item:nth-child(2) {
  border-top: 4px solid var(--fm-accent);
}
body.app-public .feature-item:nth-child(2)::before {
  background-color: #fdf5eb;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23c4832f' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 20H5a2 2 0 01-2-2V6a2 2 0 012-2h10a2 2 0 012 2v1m2 13a2 2 0 01-2-2V7m2 13a2 2 0 002-2V9.5a2 2 0 00-.586-1.414l-4.5-4.5A2 2 0 0013.086 3H10' /%3E%3C/svg%3E");
}

body.app-public .feature-item:nth-child(3) {
  border-top: 4px solid var(--fm-coral);
}
body.app-public .feature-item:nth-child(3)::before {
  background-color: #fbeee9;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23b75c45' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0zm6 3a2 2 0 11-4 0 2 2 0 014 0zM7 10a2 2 0 11-4 0 2 2 0 014 0z' /%3E%3C/svg%3E");
}

body.app-public .feature-item:nth-child(4) {
  border-top: 4px solid #34495e;
}
body.app-public .feature-item:nth-child(4)::before {
  background-color: #ebf0f5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2334495e' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z' /%3E%3C/svg%3E");
}

body.app-public .feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px -10px rgba(17, 26, 22, 0.08);
  border-color: rgba(217, 227, 220, 1);
}

body.app-public .feature-item h2 {
  color: var(--fm-heading);
  font-size: 1.15rem;
  font-weight: 750;
  margin-bottom: 8px;
}

body.app-public .feature-item p {
  color: var(--fm-muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

/* ==========================================================================
   6. Rodapé Público (Public Footer)
   ========================================================================== */
body.app-public .public-footer {
  border-top: 1px solid rgba(217, 227, 220, 0.5);
  background: #fff;
  color: var(--fm-muted);
  font-size: 0.88rem;
}

body.app-public .public-footer span {
  font-size: 0.88rem;
}

body.app-public .public-footer a {
  color: var(--fm-muted);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

body.app-public .public-footer a:hover {
  color: var(--fm-primary);
}

/* ==========================================================================
   7. Responsividade e Adaptação
   ========================================================================== */
@media (max-width: 992px) {
  .auth-shell,
  .auth-shell-wide {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 0;
  }

  .auth-copy {
    max-width: none;
    text-align: center;
  }

  .auth-kicker {
    justify-content: center;
  }

  .auth-highlights {
    text-align: left;
  }

  .auth-visual-preview {
    margin-top: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }

  body.app-public .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  body.app-public .hero-metrics {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 250px;
  }
}

@media (max-width: 576px) {
  .auth-visual-preview {
    display: none; /* Oculta o mockup interativo em telas muito pequenas para focar no formulário */
  }

  .auth-shell,
  .auth-shell-wide {
    padding: 20px 0;
  }

  .auth-card {
    padding: 24px;
  }

  body.app-public .feature-grid {
    grid-template-columns: 1fr;
  }
  
  body.app-public .hero {
    text-align: center;
  }

  body.app-public .hero-inner {
    padding: 60px 0;
  }

  body.app-public .hero p {
    font-size: 1.1rem;
  }
  
  body.app-public .hero .d-flex {
    flex-direction: column;
    width: 100%;
  }
  
  body.app-public .hero .btn {
    width: 100%;
  }

  .auth-card-head {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    margin-bottom: 24px;
  }

  .auth-card-head a {
    align-self: center;
  }
}

/* ==========================================================================
   8. Novos Estilos Públicos: Navbar Links, Captcha, Contato e Home
   ========================================================================== */

/* Navbar Public Links */
body.app-public .nav-link {
  color: var(--fm-muted) !important;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 6px 14px !important;
  border-radius: 8px;
  transition: color 0.2s, background-color 0.2s;
  display: inline-flex;
  align-items: center;
}

body.app-public .nav-link:hover {
  color: var(--fm-primary) !important;
  background-color: var(--fm-primary-soft);
}

body.app-public .nav-item {
  display: flex;
  align-items: center;
}

/* Captcha Inline Styling */
.captcha-group {
  display: flex;
  align-items: stretch;
}

.captcha-label {
  background-color: var(--fm-soft);
  border: 1.5px solid #cbd7ce;
  border-right: none;
  border-radius: 10px 0 0 10px;
  padding: 10px 16px;
  font-weight: 700;
  color: var(--fm-primary-dark);
  display: flex;
  align-items: center;
  font-size: 0.95rem;
}

.captcha-input {
  border-radius: 0 10px 10px 0 !important;
}

/* Seção de Passos (Como Funciona) */
.steps-section {
  padding: 100px 0;
  background-color: #fff;
  border-bottom: 1px solid var(--fm-line);
}

.steps-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.steps-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 60px;
}

.steps-header h2 {
  font-size: 2.2rem;
  color: var(--fm-heading);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.steps-header p {
  color: var(--fm-muted);
  font-size: 1.1rem;
}

.steps-timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  position: relative;
}

.steps-timeline::before {
  content: "";
  position: absolute;
  top: 40px;
  left: 50px;
  right: 50px;
  height: 2px;
  background: dashed rgba(219, 227, 220, 0.8);
  z-index: 1;
}

.step-card {
  position: relative;
  z-index: 2;
  background: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-number {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--fm-primary-soft);
  color: var(--fm-primary);
  font-size: 1.8rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  box-shadow: var(--fm-shadow-soft);
  transition: transform 0.3s, border-color 0.3s, background-color 0.3s, color 0.3s;
}

.step-card:hover .step-number {
  transform: scale(1.08);
  border-color: var(--fm-primary);
  background-color: var(--fm-primary);
  color: #fff;
}

.step-card h3 {
  font-size: 1.2rem;
  color: var(--fm-heading);
  font-weight: 750;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 0.94rem;
  color: var(--fm-muted);
  line-height: 1.5;
  margin: 0;
  padding: 0 10px;
}

/* Banner de Chamada para Ação (CTA) */
.cta-banner {
  padding: 100px 0;
  background: linear-gradient(135deg, #111a16 0%, #006d5b 100%);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  background: var(--fm-accent);
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
  bottom: -50px;
  left: -50px;
}

.cta-inner {
  width: min(800px, calc(100% - 40px));
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.cta-banner h2 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 32px;
}

.cta-banner .btn-primary {
  padding: 14px 36px;
  font-size: 1.05rem;
  font-weight: 700;
  background: #fff;
  color: var(--fm-primary-dark);
  border: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.cta-banner .btn-primary:hover {
  transform: translateY(-2px);
  background-color: var(--fm-primary-soft);
  color: var(--fm-primary-dark);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
}

/* Responsividade de Seções Públicas */
@media (max-width: 992px) {
  body.app-public .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  
  .steps-timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
  }
  
  .steps-timeline::before {
    display: none; /* remove linha tracejada no mobile */
  }
}

@media (max-width: 576px) {
  body.app-public .feature-grid,
  .steps-timeline {
    grid-template-columns: 1fr !important;
  }
  
  .steps-section {
    padding: 60px 0;
  }
  
  .cta-banner {
    padding: 60px 0;
  }
  
  .cta-banner h2 {
    font-size: 2rem;
  }
  
  .cta-banner p {
    font-size: 1.05rem;
  }
}
