/* ============================================
   Avizuai — Landing Page
   Baseado no protótipo docs/saude
   ============================================ */

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

:root {
  --primary: #0d9488;
  --deep: #115e59;
  --light: #ccfbf1;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;

  /* layout */
  --max-width: 1140px;
  --max-width-wide: 1240px;
  --section-pad-y: 120px;
  --section-pad-x: 48px;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--slate-900);
  line-height: 1.6;
}
a {
  text-decoration: none;
  color: inherit;
}

/* Focus visible (a11y) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
.faq-question:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--slate-900);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 200;
}
.skip-link:focus {
  left: 8px;
  outline: 2px solid var(--primary);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 72px;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition:
    background 0.3s ease,
    box-shadow 0.3s ease;
}
.navbar.scrolled {
  background: rgba(15, 23, 42, 0.98);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.navbar-brand svg {
  width: 38px;
  height: 38px;
}
.navbar-brand span {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
}
/* Nome da marca: tamanho/peso/letter-spacing definidos UMA vez no .brand-name
   pai; os filhos (main/accent) herdam tudo e só trocam a cor. Sem isso, a
   regra `.navbar-brand span` aplicava font-size/letter-spacing em cada span
   aninhado, causando diferença sutil de tamanho/baseline entre "Avizu" e "aí". */
.navbar-brand .brand-name,
.footer-brand .brand-name {
  display: inline;
}
.navbar-brand .brand-name-main,
.navbar-brand .brand-name-accent,
.footer-brand .brand-name-main,
.footer-brand .brand-name-accent {
  display: inline;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  vertical-align: baseline;
}
/* "aí" no verde do logotipo. Especificidade reforçada (.navbar-brand span /
   .footer-brand span venceriam o color de uma classe sozinha). */
.navbar-brand .brand-name-accent,
.footer-brand .brand-name-accent {
  color: var(--primary);
}
.navbar-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.navbar-links a {
  color: var(--slate-200);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.navbar-links a:hover {
  color: var(--white);
}
.navbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0.25rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}
.btn-ghost {
  background: transparent;
  color: var(--slate-200);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
}
.btn-primary:hover {
  background: #0f766e;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(13, 148, 136, 0.35);
}
.btn-lg {
  padding: 14px 32px;
  font-size: 1rem;
  border-radius: 10px;
}
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.3);
}
.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Hero */
.hero {
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 48px 112px;
  background: linear-gradient(145deg, var(--deep) 0%, var(--slate-900) 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
}
/* Garante que a onda saindo do hero apareça (overflow hidden cortaria, então ::after fica DENTRO do flow) */
.hero.wave-bottom-to-white::after {
  z-index: 5;
}
.hero::before {
  content: "";
  position: absolute;
  top: 18%;
  left: 50%;
  transform: translateX(-50%);
  width: 760px;
  height: 760px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(13, 148, 136, 0.18) 0%,
    transparent 70%
  );
  pointer-events: none;
}
.hero-content {
  position: relative;
  max-width: 800px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 100px;
  background: rgba(13, 148, 136, 0.15);
  border: 1px solid rgba(13, 148, 136, 0.3);
  color: var(--light);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 28px;
}
.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}
.hero h1 em {
  font-style: normal;
  color: var(--primary);
}
.hero p {
  font-size: 1.2rem;
  color: var(--slate-300);
  max-width: 620px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Scroll hint (indicador de scroll discreto) */
.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--slate-300);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.8;
  animation: scrollBounce 2.2s ease-in-out infinite;
}
.scroll-hint i {
  font-size: 1rem;
}
@keyframes scrollBounce {
  0%,
  100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, 8px);
  }
}

/* ============================================
   Faixa rolante de municípios atendidos
   ============================================ */
.clients-marquee {
  background: #0f172a;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 36px 0 32px;
  overflow: hidden;
}
.clients-marquee-header {
  text-align: center;
  margin-bottom: 32px;
  padding: 0 24px;
}
.clients-marquee-title {
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  line-height: 1.3;
  margin: 0;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 768px) {
  .clients-marquee-title {
    font-size: 1.2rem;
  }
}
.clients-marquee-track-wrapper {
  position: relative;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
}
.clients-marquee-track {
  display: flex;
  gap: 64px;
  list-style: none;
  padding: 0;
  margin: 0;
  width: max-content;
  animation: clients-scroll 40s linear infinite;
}
.clients-marquee-track:hover {
  animation-play-state: paused;
}
/* Modo estático: poucos clientes (sem 2ª cópia) — sem rolagem, centralizado. */
.clients-marquee-track--static {
  animation: none;
  width: 100%;
  justify-content: center;
}
.clients-marquee-track li {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 160px;
}
.clients-marquee-track figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin: 0;
  width: 100%;
  height: 160px;
}
.clients-marquee-track img {
  /* Altura padronizada — todos os brasões ocupam a mesma "caixa" */
  height: 110px;
  width: 110px;
  object-fit: contain;
  /* Repouso: silhueta uniforme em teal-claro, "família visual" */
  filter: brightness(0) invert(1) opacity(0.7);
  /* Fallback extra: blend lighten ajuda caso reste resíduo claro */
  mix-blend-mode: lighten;
  transition: filter 0.3s ease, transform 0.3s ease,
    mix-blend-mode 0.3s ease, opacity 0.3s ease;
}
.clients-marquee-track figcaption {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.72rem;
  font-weight: 500;
  text-align: center;
  line-height: 1.25;
  max-width: 150px;
  letter-spacing: 0.01em;
  transition: color 0.3s ease;
}
.clients-marquee-track li:hover img {
  /* Hover: cor original, sem blend */
  filter: none;
  mix-blend-mode: normal;
  transform: scale(1.08);
}
.clients-marquee-track li:hover figcaption {
  color: var(--light);
}
@keyframes clients-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .clients-marquee-track {
    animation: none;
  }
}

/* ============================================
   Sections — sistema base
   ============================================ */
section {
  padding: var(--section-pad-y) var(--section-pad-x);
  position: relative;
}
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.section-inner-wide {
  max-width: var(--max-width-wide);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}
.section-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}
.section-header h2 {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 14px;
  color: var(--slate-900);
  line-height: 1.2;
}
.section-header p {
  font-size: 1.05rem;
  color: var(--slate-700);
  line-height: 1.7;
}

/* Backgrounds alternados */
.bg-white {
  background: var(--white);
}
.bg-slate {
  background: var(--slate-50);
}
.bg-dark {
  background: var(--slate-900);
  color: var(--white);
}

/* ============================================
   Wave dividers (separadores curvos entre seções)
   - Aplicados via ::after (rodapé da seção atual)
   - O fill da onda é a COR DA SEÇÃO SEGUINTE (cria a transição visual)
   - Usados apenas em transições com forte contraste (claro → escuro / escuro → claro)
     porque ondas entre fundos parecidos viram ruído.
   ============================================ */
.wave-bottom-to-slate::after,
.wave-bottom-to-white::after,
.wave-bottom-to-dark::after,
.wave-bottom-to-deep::after {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 64px;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  pointer-events: none;
  z-index: 2;
}
/* Onda → próxima seção branca */
.wave-bottom-to-white::after {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 64' preserveAspectRatio='none'><path d='M0,32 C320,64 560,0 720,32 C880,64 1120,0 1440,32 L1440,64 L0,64 Z' fill='%23FFFFFF'/></svg>");
}
/* Onda → próxima seção slate-100 (cinza-claro mais visível que slate-50) */
.wave-bottom-to-slate::after {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 64' preserveAspectRatio='none'><path d='M0,32 C320,64 560,0 720,32 C880,64 1120,0 1440,32 L1440,64 L0,64 Z' fill='%23F1F5F9'/></svg>");
}
/* Onda → próxima seção slate-900 (dev-bridge) */
.wave-bottom-to-dark::after {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 64' preserveAspectRatio='none'><path d='M0,32 C320,64 560,0 720,32 C880,64 1120,0 1440,32 L1440,64 L0,64 Z' fill='%230F172A'/></svg>");
}
/* Onda → próxima seção com gradiente (cta-section: deep → slate-900). Usa deep no topo do gradiente. */
.wave-bottom-to-deep::after {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 64' preserveAspectRatio='none'><path d='M0,32 C320,64 560,0 720,32 C880,64 1120,0 1440,32 L1440,64 L0,64 Z' fill='%23115E59'/></svg>");
}

/* ============================================
   Features
   ============================================ */
.features {
  background: var(--slate-100);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: var(--max-width-wide);
  margin: 0 auto;
}
@media (max-width: 1100px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 720px;
  }
}
.feature-card {
  position: relative;
  background: var(--white);
  border-radius: 16px;
  padding: 36px 28px 32px;
  border: 1px solid var(--slate-200);
  overflow: hidden;
  transition:
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.3s ease;
}
/* Linha teal no topo (revelada no hover) */
.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, #14b8a6 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
/* Onda vertical decorativa na lateral direita */
.feature-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 33%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 400' preserveAspectRatio='none'><path d='M200,0 Q120,80 160,160 Q200,240 130,320 Q100,380 200,400 L200,0 Z' fill='%230d9488' fill-opacity='0.08'/><path d='M200,0 Q150,100 180,200 Q210,300 160,400 L200,400 L200,0 Z' fill='%230d9488' fill-opacity='0.12'/></svg>");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: right center;
  opacity: 1;
  transform-origin: right center;
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 20px 40px -12px rgba(13, 148, 136, 0.18),
    0 8px 16px -8px rgba(15, 23, 42, 0.08);
  border-color: rgba(13, 148, 136, 0.3);
}
.feature-card:hover::before {
  transform: scaleX(1);
}
.feature-card:hover::after {
  transform: scaleX(1.25);
}
.feature-icon {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--light) 0%, #99f6e4 100%);
  color: var(--deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 22px;
  box-shadow:
    0 8px 16px -4px rgba(13, 148, 136, 0.25),
    inset 0 -2px 4px rgba(15, 94, 89, 0.06);
  transition:
    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s ease;
}
.feature-card:hover .feature-icon {
  transform: scale(1.08) rotate(-4deg);
  box-shadow:
    0 12px 24px -6px rgba(13, 148, 136, 0.4),
    inset 0 -2px 4px rgba(15, 94, 89, 0.08);
}
.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--slate-900);
  letter-spacing: -0.01em;
  position: relative;
}
.feature-card p {
  font-size: 0.9rem;
  color: var(--slate-700);
  line-height: 1.65;
  position: relative;
}

/* ============================================
   Apps Mobile
   ============================================ */
.apps-mobile {
  background: var(--white);
}
.apps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.app-card {
  position: relative;
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  border-radius: 20px;
  padding: 40px 36px;
  overflow: hidden;
  transition:
    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.4s ease,
    border-color 0.3s ease;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
/* Pulsos concêntricos no canto direito (estilo "broadcast/push") */
.app-card::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 440px;
  height: 440px;
  background-image:
    radial-gradient(circle, transparent 70px, rgba(13, 148, 136, 0.12) 71px, rgba(13, 148, 136, 0.12) 73px, transparent 74px),
    radial-gradient(circle, transparent 115px, rgba(13, 148, 136, 0.09) 116px, rgba(13, 148, 136, 0.09) 118px, transparent 119px),
    radial-gradient(circle, transparent 165px, rgba(13, 148, 136, 0.06) 166px, rgba(13, 148, 136, 0.06) 168px, transparent 169px),
    radial-gradient(circle, transparent 215px, rgba(13, 148, 136, 0.04) 216px, rgba(13, 148, 136, 0.04) 218px, transparent 219px);
  background-position: center center;
  background-repeat: no-repeat;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.4s ease, transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
/* Glow no canto inferior direito */
.app-card::after {
  content: "";
  position: absolute;
  bottom: -80px;
  right: -80px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.18) 0%, transparent 70%);
  pointer-events: none;
  transition: opacity 0.4s ease;
  opacity: 0.6;
}
.app-card:hover {
  transform: translateY(-6px);
  border-color: rgba(13, 148, 136, 0.4);
  box-shadow:
    0 24px 48px -16px rgba(13, 148, 136, 0.2),
    0 8px 16px -8px rgba(15, 23, 42, 0.08);
}
.app-card:hover::before {
  opacity: 1;
  transform: scale(1.06);
}
.app-card:hover::after {
  opacity: 1;
}
.app-card-header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}
.app-card-icon {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: #0f172a;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
  box-shadow:
    0 0 0 4px rgba(15, 23, 42, 0.06),
    0 12px 24px -8px rgba(15, 23, 42, 0.35);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.app-card:hover .app-card-icon {
  transform: scale(1.06) rotate(-3deg);
}
.app-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.app-card-tag {
  font-size: 0.82rem;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.app-features {
  position: relative;
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
}
.app-features li {
  padding: 8px 0;
  font-size: 0.88rem;
  color: var(--slate-700);
  display: flex;
  align-items: center;
  gap: 12px;
}
.app-features li::before {
  content: "✓";
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(13, 148, 136, 0.12);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.app-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

/* Store badges (design-only, sem link) */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  border-radius: 10px;
  background: var(--slate-900);
  color: var(--white);
  font-family: "Inter", sans-serif;
}
.store-badge i {
  font-size: 1.6rem;
}
.store-badge > div {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.store-badge-pre {
  font-size: 0.62rem;
  opacity: 0.9;
  letter-spacing: 0.04em;
}
.store-badge-name {
  font-size: 1rem;
  font-weight: 600;
}

/* CTA do card de apps (variante para fundo claro) */
.app-card .app-card-cta {
  display: inline-flex;
  align-items: center;
  color: var(--slate-900);
  border: 1px solid var(--slate-900);
  background: transparent;
}
.app-card .app-card-cta:hover {
  background: var(--slate-900);
  color: var(--white);
  border-color: var(--slate-900);
}

/* ============================================
   How it works
   ============================================ */
.how-it-works {
  background: var(--slate-100);
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  max-width: 960px;
  margin: 0 auto;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  top: 36px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--light),
    var(--primary),
    var(--light)
  );
}
.step {
  text-align: center;
  position: relative;
}
.step-number {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 16px rgba(13, 148, 136, 0.3);
}
.step h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.step p {
  font-size: 0.9rem;
  color: var(--slate-700);
}

/* ============================================
   No dia a dia (ciclo operacional)
   ============================================ */
.day-to-day {
  background: var(--white);
}

.cycle-wrapper {
  display: flex;
  justify-content: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.cycle {
  position: relative;
  width: 100%;
  max-width: 880px;
  aspect-ratio: 1 / 1;
  max-height: 700px;
}

/* Anel SVG de fundo (setas conectoras) */
.cycle::before {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  border: 2px dashed rgba(13, 148, 136, 0.25);
}

/* Núcleo central */
.cycle-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--deep) 100%);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow:
    0 0 0 12px rgba(13, 148, 136, 0.1),
    0 0 0 30px rgba(13, 148, 136, 0.075),
    0 0 0 55px rgba(13, 148, 136, 0.055),
    0 0 0 88px rgba(13, 148, 136, 0.04),
    0 0 0 130px rgba(13, 148, 136, 0.028),
    0 0 0 180px rgba(13, 148, 136, 0.018),
    0 0 0 240px rgba(13, 148, 136, 0.01),
    0 16px 32px -8px rgba(13, 148, 136, 0.4);
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  z-index: 2;
}
.cycle-core i {
  font-size: 1.6rem;
  animation: cycle-rotate 12s linear infinite;
}
@keyframes cycle-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Cards das etapas */
.cycle-step {
  position: absolute;
  width: 240px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  padding: 22px 20px 20px;
  box-shadow: 0 4px 16px -4px rgba(15, 23, 42, 0.06);
  transition:
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s ease,
    border-color 0.3s ease;
  z-index: 1;
}
.cycle-step:hover {
  transform: translateY(-4px);
  border-color: rgba(13, 148, 136, 0.4);
  box-shadow:
    0 16px 32px -12px rgba(13, 148, 136, 0.2),
    0 4px 8px -4px rgba(15, 23, 42, 0.08);
  z-index: 3;
}

/* Posicionamento horário: 12h, 3h, 6h, 9h */
.cycle-step-1 {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}
.cycle-step-1:hover {
  transform: translateX(-50%) translateY(-4px);
}
.cycle-step-2 {
  top: 50%;
  right: 0;
  transform: translateY(-50%);
}
.cycle-step-2:hover {
  transform: translateY(-50%) translateY(-4px);
}
.cycle-step-3 {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}
.cycle-step-3:hover {
  transform: translateX(-50%) translateY(-4px);
}
.cycle-step-4 {
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}
.cycle-step-4:hover {
  transform: translateY(-50%) translateY(-4px);
}

/* Numeração circular no canto superior direito (dentro do card) */
.cycle-step-number {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--deep) 100%);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.35);
  z-index: 2;
  transition:
    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s ease;
}

/* Hover do card: número pulsa + ícone roda */
.cycle-step:hover .cycle-step-number {
  transform: scale(1.15) rotate(8deg);
  box-shadow:
    0 0 0 6px rgba(13, 148, 136, 0.15),
    0 8px 20px rgba(13, 148, 136, 0.5);
}
.cycle-step:hover .cycle-step-icon {
  transform: scale(1.1) rotate(-6deg);
  box-shadow: 0 10px 20px -4px rgba(13, 148, 136, 0.35);
}

/* Ícone interno */
.cycle-step-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--light) 0%, #99f6e4 100%);
  color: var(--deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 14px;
  box-shadow: 0 6px 14px -4px rgba(13, 148, 136, 0.2);
  transition:
    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s ease;
}

.cycle-step h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--slate-900);
}
.cycle-step p {
  font-size: 0.82rem;
  color: var(--slate-700);
  line-height: 1.55;
  margin: 0;
}

/* Setas conectoras (fundo do anel) */
.cycle::after {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(circle at top, transparent 49.5%, var(--primary) 49.7%, var(--primary) 50%, transparent 50.2%) no-repeat,
    radial-gradient(circle at right, transparent 49.5%, var(--primary) 49.7%, var(--primary) 50%, transparent 50.2%) no-repeat,
    radial-gradient(circle at bottom, transparent 49.5%, var(--primary) 49.7%, var(--primary) 50%, transparent 50.2%) no-repeat,
    radial-gradient(circle at left, transparent 49.5%, var(--primary) 49.7%, var(--primary) 50%, transparent 50.2%) no-repeat;
  opacity: 0;
}

/* Responsivo: empilhar verticalmente */
@media (max-width: 1100px) {
  .cycle {
    aspect-ratio: auto;
    max-height: none;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 24px 0;
    align-items: center;
  }
  .cycle::before,
  .cycle::after {
    display: none;
  }
  .cycle-core {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    order: 0;
    margin-bottom: 12px;
  }
  .cycle-step,
  .cycle-step-1,
  .cycle-step-2,
  .cycle-step-3,
  .cycle-step-4 {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    transform: none;
    width: 100%;
    max-width: 480px;
  }
  .cycle-step-1:hover,
  .cycle-step-2:hover,
  .cycle-step-3:hover,
  .cycle-step-4:hover {
    transform: translateY(-4px);
  }
}

/* ============================================
   Security & Compliance
   ============================================ */
.security {
  background: var(--slate-900);
  color: var(--white);
}
.security .section-eyebrow {
  color: var(--light);
}
.security .section-header h2 {
  color: var(--white);
}
.security .section-header p {
  color: rgba(255, 255, 255, 0.75);
}
.security-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.security-card {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  gap: 18px;
  transition: all 0.25s;
}
.security-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(13, 148, 136, 0.5);
  transform: translateY(-2px);
}
.security-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  flex-shrink: 0;
  background: rgba(13, 148, 136, 0.18);
  color: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.security-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--white);
}
.security-card p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.65;
}
.security-card .legal-ref {
  display: inline-block;
  margin-top: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   Plans
   ============================================ */
/* ============================================
   Planos (redesign premium)
   ============================================ */
.plans {
  background: var(--slate-100);
}
.plans-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: var(--max-width-wide);
  margin: 0 auto;
  align-items: stretch;
}
@media (max-width: 1100px) {
  .plans-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 720px;
  }
}

/* Cartão padrão: micro gradient slate-50 -> white + sombra discreta */
.plan-card {
  background: linear-gradient(180deg, #ffffff 0%, var(--slate-50) 100%);
  border: 1px solid var(--slate-200);
  border-radius: 20px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 4px 12px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}
.plan-card:not(.featured):hover {
  transform: translateY(-4px);
  box-shadow:
    0 8px 20px rgba(15, 23, 42, 0.06),
    0 16px 36px rgba(15, 23, 42, 0.08);
  border-color: var(--slate-300);
}

/* Wrapper interno: flex column ancora o footer (botão) na base */
.plan-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 32px;
  gap: 18px;
}

/* Header do card */
.plan-card-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.plan-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--slate-900);
  letter-spacing: -0.2px;
}
.plan-desc {
  font-size: 0.88rem;
  color: var(--slate-400);
  line-height: 1.4;
}

/* Body do card */
.plan-card-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Preço — versão numérica em baseline */
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
  font-feature-settings: "tnum";
  line-height: 1.1;
}
.plan-price-currency {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--slate-400);
}
.plan-price-value {
  font-size: 3rem;
  font-weight: 800;
  color: var(--slate-900);
  letter-spacing: -1.8px;
}
.plan-price-unidade {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--slate-400);
}

/* Preço "sob consulta" */
.plan-price-consulta {
  /* mantém .plan-price como flex baseline, mas força bloco interno */
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}
.plan-price-consulta-text {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--slate-900);
  letter-spacing: -0.5px;
  line-height: 1.15;
}

/* Hint logo abaixo do preço */
.plan-price-hint {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--slate-400);
  line-height: 1.4;
}

/* Pill de duração ("Contrato de N meses") */
.plan-duracao-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--slate-700);
  padding: 5px 11px;
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  border-radius: 999px;
}
.plan-duracao-hint i {
  font-size: 0.72rem;
  color: var(--primary);
}

/* Features com check em círculo teal-light */
.plan-features {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--slate-700);
  line-height: 1.45;
}
.plan-features li i {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--light);
  color: var(--primary);
  font-size: 0.62rem;
}

/* Footer ancorado na base via margin-top auto */
.plan-card-footer {
  margin-top: auto;
  padding-top: 6px;
}
.plan-btn {
  width: 100%;
  padding: 12px 16px;
  font-weight: 600;
}
.plan-btn-ghost-light {
  color: var(--slate-700) !important;
  border-color: var(--slate-300) !important;
  background: var(--white);
}
.plan-btn-ghost-light:hover {
  background: var(--slate-50) !important;
  color: var(--slate-900) !important;
  border-color: var(--slate-400) !important;
}

/* Badge "Mais popular" — só renderiza no card destaque (dentro do header gradient) */
.plan-badge {
  display: inline-block;
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 4px;
}

/* ============================================
   Card destacado (featured): tratamento premium
   ============================================ */
.plan-card.featured {
  border-color: var(--primary);
  transform: scale(1.03);
  position: relative;
  z-index: 2;
  box-shadow:
    0 24px 56px -16px rgba(13, 148, 136, 0.45),
    0 8px 24px rgba(13, 148, 136, 0.18);
}
.plan-card.featured .plan-card-inner {
  /* O padding superior é absorvido pelo header gradient */
  padding-top: 0;
}
.plan-card.featured .plan-card-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--deep) 100%);
  color: var(--white);
  margin: 0 -32px 4px;
  padding: 26px 32px 22px;
  border-radius: 0;
}
.plan-card.featured .plan-name {
  color: var(--white);
}
.plan-card.featured .plan-desc {
  color: rgba(255, 255, 255, 0.85);
}
.plan-card.featured .plan-duracao-hint {
  background: rgba(13, 148, 136, 0.08);
  border-color: rgba(13, 148, 136, 0.18);
  color: var(--deep);
}
.plan-card.featured .plan-duracao-hint i {
  color: var(--primary);
}

/* Fallback de lista vazia */
.plans-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--slate-400);
  padding: 40px;
}
.plans-empty a {
  color: var(--primary);
  text-decoration: underline;
}

/* ============================================
   API Preview (legado — visual mantido caso retorne)
   ============================================ */
.api-preview {
  background: var(--slate-900);
  color: var(--white);
}
.api-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: var(--max-width);
  margin: 0 auto;
  align-items: start;
}
.api-grid .section-header {
  text-align: left;
  margin: 0 0 24px;
  max-width: none;
}
.api-grid .section-header h2 {
  color: var(--white);
}
.api-grid .section-header p {
  color: var(--slate-300);
}
.api-feature-list {
  list-style: none;
  padding: 0;
  margin-top: 24px;
}
.api-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--slate-300);
}
.api-feature-list li i {
  color: var(--primary);
  margin-top: 3px;
  flex-shrink: 0;
}
.code-window {
  background: var(--slate-800);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.code-window-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.code-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.code-dot.red {
  background: #ff5f57;
}
.code-dot.yellow {
  background: #febc2e;
}
.code-dot.green {
  background: #28c840;
}
.code-window-title {
  margin-left: 10px;
  font-size: 0.75rem;
  color: var(--slate-400);
  font-weight: 500;
}
.code-window pre {
  padding: 24px;
  margin: 0;
  font-family: "JetBrains Mono", "Fira Code", monospace;
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--slate-300);
  overflow-x: auto;
}
.code-window .code-keyword {
  color: #c792ea;
}
.code-window .code-url {
  color: #82aaff;
}
.code-window .code-comment {
  color: #94a3b8;
  font-style: italic;
}

/* ============================================
   Use Cases — repaginado em 2 colunas
   ============================================ */
.use-cases {
  background: var(--white);
}
.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: var(--max-width-wide);
  margin: 0 auto;
}
@media (max-width: 1100px) {
  .use-cases-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 720px;
  }
}
.use-case {
  position: relative;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  padding: 32px 26px 28px;
  overflow: hidden;
  transition:
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.3s ease;
}
/* Linha teal no topo (aparece no hover) */
.use-case::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, #14b8a6 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
/* Onda vertical decorativa lateral (mesma identidade dos feature-cards) */
.use-case::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 33%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 400' preserveAspectRatio='none'><path d='M200,0 Q120,80 160,160 Q200,240 130,320 Q100,380 200,400 L200,0 Z' fill='%230d9488' fill-opacity='0.06'/><path d='M200,0 Q150,100 180,200 Q210,300 160,400 L200,400 L200,0 Z' fill='%230d9488' fill-opacity='0.09'/></svg>");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: right center;
  transform-origin: right center;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.use-case:hover {
  transform: translateY(-5px);
  box-shadow:
    0 18px 36px -12px rgba(13, 148, 136, 0.16),
    0 6px 14px -8px rgba(15, 23, 42, 0.06);
  border-color: rgba(13, 148, 136, 0.3);
}
.use-case:hover::before {
  transform: scaleX(1);
}
.use-case:hover::after {
  transform: scaleX(1.25);
}
.use-case-icon {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--light) 0%, #99f6e4 100%);
  color: var(--deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-bottom: 18px;
  box-shadow:
    0 8px 16px -4px rgba(13, 148, 136, 0.22),
    inset 0 -2px 4px rgba(15, 94, 89, 0.06);
  transition:
    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s ease;
}
.use-case:hover .use-case-icon {
  transform: scale(1.08) rotate(-4deg);
  box-shadow:
    0 12px 24px -6px rgba(13, 148, 136, 0.36),
    inset 0 -2px 4px rgba(15, 94, 89, 0.08);
}
.use-case h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--slate-900);
  letter-spacing: -0.01em;
  position: relative;
}
.use-case p {
  font-size: 0.88rem;
  color: var(--slate-700);
  line-height: 1.65;
  position: relative;
  margin: 0;
}

/* ============================================
   Dev bridge — alinhado tipograficamente com outras seções
   ============================================ */
.dev-bridge {
  background: var(--slate-900);
  color: var(--white);
  padding: var(--section-pad-y) var(--section-pad-x);
  text-align: center;
}
.dev-bridge-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.dev-bridge .section-eyebrow {
  color: var(--light);
}
.dev-bridge h2 {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 14px;
  letter-spacing: -0.8px;
  line-height: 1.2;
}
.dev-bridge p {
  color: var(--slate-300);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0 auto 24px;
  max-width: 620px;
}
.dev-bridge-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: var(--max-width);
  margin: 0 auto 32px;
  text-align: left;
}
@media (max-width: 768px) {
  .dev-bridge-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   FAQ — cards arredondados
   ============================================ */
.faq {
  background: var(--slate-100);
}
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  padding: 0 24px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.faq-item.open {
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.08);
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--slate-900);
  font-family: inherit;
  gap: 16px;
}
.faq-question i {
  transition: transform 0.3s ease;
  color: var(--primary);
  font-size: 0.8rem;
}
.faq-item.open .faq-question i {
  transform: rotate(180deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.35s ease,
    padding 0.35s ease;
}
.faq-item.open .faq-answer {
  max-height: 260px;
  padding-bottom: 20px;
}
.faq-answer p {
  font-size: 0.92rem;
  color: var(--slate-700);
  line-height: 1.7;
}

/* ============================================
   CTA
   ============================================ */
.cta-section {
  background: linear-gradient(180deg, var(--deep) 0%, var(--slate-900) 100%);
  text-align: center;
  position: relative;
}
.cta-section h2 {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 14px;
  letter-spacing: -0.8px;
}
.cta-section > p {
  color: var(--slate-300);
  margin-bottom: 40px;
  font-size: 1.05rem;
}
.cta-content {
  max-width: 720px;
  margin: 0 auto;
}
.cta-eyebrow {
  color: var(--light);
}
.cta-subtitle {
  color: var(--slate-300);
  margin-bottom: 36px;
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

/* Card glass que envolve o form */
.cta-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 36px 32px 32px;
  text-align: left;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 20px 40px -16px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.cta-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cta-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Fieldset de perfil (chips) */
.cta-perfil {
  border: none;
  padding: 0;
  margin: 0;
}
.cta-perfil legend {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--light);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.cta-perfil-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.cta-chip-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.cta-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}
.cta-chip i {
  font-size: 0.75rem;
  color: var(--light);
}
.cta-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(13, 148, 136, 0.4);
}
.cta-chip-input:checked + .cta-chip {
  background: rgba(13, 148, 136, 0.25);
  border-color: var(--primary);
  color: var(--white);
}
.cta-chip-input:checked + .cta-chip i {
  color: var(--white);
}
.cta-chip-input:focus-visible + .cta-chip {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Inputs com label flutuante + ícone */
.cta-field {
  position: relative;
}
.cta-field-icon {
  position: absolute;
  left: 16px;
  top: 18px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.95rem;
  pointer-events: none;
  transition: color 0.2s ease;
  z-index: 1;
}
.cta-field input,
.cta-field textarea {
  width: 100%;
  padding: 18px 16px 8px 44px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.cta-field textarea {
  padding-top: 22px;
  padding-bottom: 12px;
  resize: vertical;
  min-height: 90px;
  line-height: 1.5;
}
.cta-field input::placeholder,
.cta-field textarea::placeholder {
  color: transparent;
}
.cta-field input:focus,
.cta-field textarea:focus {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.08);
}
.cta-field:focus-within .cta-field-icon {
  color: var(--light);
}

/* Label flutuante */
.cta-field label {
  position: absolute;
  left: 44px;
  top: 16px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.92rem;
  pointer-events: none;
  transition: all 0.2s ease;
  background: transparent;
}
.cta-field input:focus + label,
.cta-field input:not(:placeholder-shown) + label,
.cta-field textarea:focus + label,
.cta-field textarea:not(:placeholder-shown) + label {
  top: 6px;
  left: 44px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--light);
  letter-spacing: 0.03em;
}

/* Submit + microcopy */
.cta-submit-wrapper {
  text-align: center;
  margin-top: 8px;
}
.cta-submit {
  padding-left: 36px;
  padding-right: 36px;
}
.cta-submit i {
  margin-left: 6px;
  transition: transform 0.2s ease;
}
.cta-submit:hover i {
  transform: translateX(4px);
}
.cta-microcopy {
  margin-top: 14px;
  font-size: 0.78rem;
  color: var(--slate-300);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cta-microcopy i {
  color: var(--light);
  font-size: 0.85rem;
}

.cta-feedback {
  display: block;
  margin-top: 16px;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
}
.cta-feedback.success {
  color: var(--light);
}
.cta-feedback.error {
  color: #fca5a5;
}

@media (max-width: 768px) {
  .cta-card {
    padding: 28px 22px 24px;
  }
  .cta-form .form-row {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Footer — 3 colunas (Produto / Recursos / Empresa)
   ============================================ */
.footer {
  background: var(--slate-900);
  padding: 64px 48px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  max-width: var(--max-width);
  margin: 0 auto 40px;
}
.footer-col-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-brand svg {
  width: 32px;
  height: 32px;
}
.footer-brand span {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--white);
}
.footer-tagline {
  color: var(--slate-300);
  font-size: 0.88rem;
  line-height: 1.6;
  max-width: 280px;
}
.footer-col h4 {
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
}
.footer-col a {
  color: var(--slate-300);
  font-size: 0.88rem;
  transition: color 0.2s;
}
.footer-col a:hover {
  color: var(--primary);
}
.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p {
  color: var(--slate-300);
  font-size: 0.8rem;
}
.footer-bottom a {
  color: var(--primary);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .use-cases-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .navbar {
    padding: 0 20px;
  }
  .navbar-links {
    display: none;
  }
  .navbar-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.97);
    backdrop-filter: blur(12px);
    padding: 24px 20px;
    gap: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  .menu-toggle {
    display: block;
  }
  .navbar-actions .btn-ghost {
    display: none;
  }

  section {
    padding: 72px 20px;
  }
  .section-header {
    margin-bottom: 48px;
  }
  .section-header h2 {
    font-size: 1.85rem;
  }
  .cta-section h2,
  .dev-bridge h2 {
    font-size: 1.85rem;
  }

  .hero {
    padding: 100px 20px 80px;
    min-height: auto;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero p {
    font-size: 1.02rem;
  }
  .scroll-hint {
    display: none;
  }

  .clients-marquee-track {
    gap: 40px;
    animation-duration: 35s;
  }
  .clients-marquee-track li {
    width: 120px;
  }
  .clients-marquee-track figure {
    gap: 10px;
    height: 130px;
  }
  .clients-marquee-track img {
    height: 84px;
    width: 84px;
  }
  .clients-marquee-track figcaption {
    font-size: 0.68rem;
    max-width: 110px;
  }

  .features-grid,
  .plans-grid,
  .steps,
  .use-cases-grid {
    grid-template-columns: 1fr;
  }
  .api-grid,
  .security-grid,
  .apps-grid {
    grid-template-columns: 1fr;
  }
  .dev-bridge {
    padding: 72px 20px;
  }
  .steps::before {
    display: none;
  }
  .plan-card.featured {
    transform: none;
  }
  .cta-form .form-row {
    grid-template-columns: 1fr;
  }

  .footer {
    padding: 48px 20px 20px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  /* Wave dividers ficam mais finas em mobile */
  .wave-bottom-to-slate::after,
  .wave-bottom-to-white::after,
  .wave-bottom-to-dark::after {
    height: 32px;
  }
}

/* ============================================
   Páginas legais (/privacidade, /termos)
   ============================================ */
.legal-page {
  background: var(--slate-50);
  padding: 112px 24px 80px;
  min-height: calc(100vh - 72px);
}
.legal-container {
  max-width: 820px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 16px;
  padding: 56px 56px 48px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}
.legal-header {
  border-bottom: 1px solid var(--slate-200);
  padding-bottom: 24px;
  margin-bottom: 36px;
}
.legal-eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
}
.legal-header h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--slate-900);
  letter-spacing: -0.8px;
  line-height: 1.15;
  margin-bottom: 12px;
}
.legal-meta {
  font-size: 0.88rem;
  color: var(--slate-700);
  margin: 0;
}
.legal-meta a {
  color: var(--primary);
  font-weight: 500;
}
.legal-meta a:hover {
  text-decoration: underline;
}
.legal-content section {
  /* Resetar o padding global de <section> (120px) — aqui subsections só precisam de respiro entre si */
  padding: 0;
  margin-bottom: 32px;
}
.legal-content section:last-child {
  margin-bottom: 0;
}
.legal-content h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 14px;
  letter-spacing: -0.2px;
}
.legal-content p,
.legal-content li {
  font-size: 0.95rem;
  color: var(--slate-700);
  line-height: 1.7;
}
.legal-content p {
  margin-bottom: 12px;
}
.legal-content ul {
  margin: 0 0 16px 24px;
  padding: 0;
}
.legal-content li {
  margin-bottom: 6px;
}
.legal-content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-content a:hover {
  color: var(--deep);
}
.legal-content strong {
  color: var(--slate-900);
}
@media (max-width: 768px) {
  .legal-page {
    padding: 96px 16px 48px;
  }
  .legal-container {
    padding: 32px 24px 28px;
  }
  .legal-header h1 {
    font-size: 1.7rem;
  }
}

/* ============================================
   Banner flutuante de LGPD/Cookies
   ============================================ */
.lgpd-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--slate-900);
  color: var(--white);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.25);
  border-top: 3px solid var(--primary);
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.lgpd-banner.lgpd-show {
  transform: translateY(0);
}
.lgpd-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 32px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}
.lgpd-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(13, 148, 136, 0.18);
  color: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}
.lgpd-text h5 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--white);
}
.lgpd-text p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
  margin: 0 0 6px;
}
.lgpd-text p strong {
  color: var(--light);
  font-weight: 600;
}
.lgpd-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.7);
}
.lgpd-highlights span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.lgpd-highlights i {
  color: var(--light);
  font-size: 0.85rem;
}
.lgpd-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  min-width: 200px;
}
.lgpd-link {
  font-size: 0.85rem;
  color: var(--light);
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.lgpd-link:hover {
  color: var(--white);
}
.lgpd-accept {
  padding: 12px 24px;
  background: var(--slate-900);
  color: var(--white);
  border: 2px solid var(--white);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.lgpd-accept:hover {
  background: var(--white);
  color: var(--slate-900);
}

@media (max-width: 900px) {
  .lgpd-inner {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    padding: 18px 20px;
    gap: 16px;
  }
  .lgpd-icon {
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
  }
  .lgpd-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    min-width: 0;
  }
  .lgpd-highlights {
    display: none;
  }
}

/* ===== Seção Sobre (Avizuaí + Nebula Code) ===== */
.about {
  background: var(--slate-100);
}
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 28px;
  max-width: var(--max-width);
  margin: 0 auto;
  align-items: stretch;
}
.about-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  padding: 36px 32px;
}
.about-card-company {
  background: var(--white);
}
.about-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.about-brand svg {
  width: 40px;
  height: 40px;
}
.about-brand .brand-name {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--slate-900);
}
/* No card claro da seção Sobre, "Avizu" fica escuro (não branco) */
.about-brand .brand-name-main {
  color: var(--slate-900);
}
.about-brand .brand-name-accent {
  color: var(--primary);
}
.about-card p {
  color: var(--slate-700);
  line-height: 1.7;
  font-size: 0.98rem;
}
.about-card-company h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 4px;
}
.about-legal-name {
  color: var(--slate-400);
  font-size: 0.9rem;
  margin-bottom: 20px;
}
.about-facts {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 12px;
}
.about-facts li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--slate-700);
  font-size: 0.95rem;
}
.about-facts i {
  color: var(--primary);
  width: 18px;
  text-align: center;
}
.about-facts a {
  color: var(--deep);
  text-decoration: none;
}
.about-facts a:hover {
  text-decoration: underline;
}
/* CTA do card Sobre fica em fundo CLARO — .btn-ghost foi desenhado p/ fundo
   escuro (texto slate-200 apagado). Sobrescreve para o esquema teal. */
.about-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--deep);
  border-color: var(--primary);
}
.about-cta:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
@media (max-width: 860px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}
