/*--------------------------------------------------------------
# Coneccta Sistemas — Home (index.html)
# Folha própria da página inicial. Bootstrap continua carregado só
# para modais/formulários; o layout não usa o grid nem o main.css.
--------------------------------------------------------------*/

:root {
  --navy: #10213D;
  --navy-deep: #07162B;
  --navy-soft: #1A3158;
  --gold: #E7A323;
  --gold-hover: #D4911A;
  --gold-soft: #FDF4E2;
  --white: #FFFFFF;
  --bg-alt: #F5F7FA;
  --text: #0F1B2D;
  --text-muted: #64748B;
  --text-on-dark: #C9D3E3;
  --border: #E2E8F0;
  --border-dark: rgba(255, 255, 255, 0.12);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(15, 27, 45, 0.06), 0 1px 3px rgba(15, 27, 45, 0.05);
  --shadow: 0 10px 30px -12px rgba(15, 27, 45, 0.18);
  --shadow-lg: 0 30px 60px -20px rgba(4, 12, 26, 0.55);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--font);
  color: inherit;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

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

.text-gold {
  color: var(--gold);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100000;
  padding: 10px 16px;
  background: var(--gold);
  color: var(--navy-deep);
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

/*--------------------------------------------------------------
# Botões
--------------------------------------------------------------*/
.c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 10px;
  border: 1.5px solid transparent;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease), transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.c-btn:active {
  transform: translateY(1px);
}

.c-btn-sm {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 14px;
}

.c-btn-lg {
  min-height: 52px;
  padding: 14px 26px;
  font-size: 16px;
}

.c-btn-block {
  width: 100%;
}

.c-btn-primary {
  background: var(--gold);
  color: var(--navy-deep);
  box-shadow: 0 8px 20px -10px rgba(231, 163, 35, 0.8);
}

.c-btn-primary:hover {
  background: var(--gold-hover);
  color: var(--navy-deep);
}

.c-btn-navy {
  background: var(--navy);
  color: var(--white);
}

.c-btn-navy:hover {
  background: var(--navy-soft);
  color: var(--white);
}

.c-btn-outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
}

.c-btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--white);
  color: var(--white);
}

.c-btn-outline-navy {
  background: var(--white);
  border-color: var(--navy);
  color: var(--navy);
}

.c-btn-outline-navy:hover {
  background: var(--navy);
  color: var(--white);
}

.c-btn-ghost-light {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-dark);
  color: var(--white);
}

.c-btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

/*--------------------------------------------------------------
# Marca
--------------------------------------------------------------*/
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo {
  width: auto;
  height: 40px;
}

/*--------------------------------------------------------------
# Cabeçalho
--------------------------------------------------------------*/
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  background: var(--navy-deep);
  border-bottom: 1px solid transparent;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

/* backdrop-filter vira bloco de contenção para o menu móvel (position: fixed)
   e o cortaria na altura do cabeçalho — com o menu aberto, fundo sólido. */
body.nav-open .site-header,
body.nav-open .site-header.is-scrolled {
  background: var(--navy-deep);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.site-header.is-scrolled {
  background: rgba(7, 22, 43, 0.94);
  border-bottom-color: var(--border-dark);
  box-shadow: 0 8px 24px -16px rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-cta .label-full {
  display: none;
}

/* Com o menu móvel, "Acessar sistema" fica só dentro do menu. */
@media (max-width: 1099px) {
  .header-cta { display: none; }
}

@media (min-width: 576px) {
  .header-cta .label-full { display: inline; }
  .header-cta .label-short { display: none; }
}

@media (max-width: 479px) {
  .header-inner { gap: 10px; }
  .header-actions { gap: 8px; }
  .brand-logo { height: 32px; }
  .header-cta { padding: 8px 12px; font-size: 13.5px; }
}

/* Botão do menu móvel */
.nav-toggle {
  width: 44px;
  height: 44px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border-dark);
  border-radius: 10px;
  cursor: pointer;
}

.nav-toggle-bar {
  width: 20px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Navegação — móvel (painel) */
.main-nav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px 16px 32px;
  background: var(--navy-deep);
  border-top: 1px solid var(--border-dark);
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}

body.nav-open .main-nav {
  visibility: visible;
  opacity: 1;
  transform: none;
}

.nav-list > li {
  border-bottom: 1px solid var(--border-dark);
}

.menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
  min-height: 52px;
  padding: 0 4px;
  background: none;
  border: 0;
  font-family: var(--font);
  font-size: 17px;
  font-weight: 500;
  color: var(--white);
  text-decoration: none;
  cursor: pointer;
}

.menu-link:hover,
.menu-link.is-active {
  color: var(--gold);
}

.nav-mobile-extra {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

/* Navegação — desktop */
@media (min-width: 1100px) {
  .nav-toggle,
  .nav-mobile-extra {
    display: none;
  }

  .main-nav {
    position: static;
    padding: 0;
    background: none;
    border: 0;
    overflow: visible;
    visibility: visible;
    opacity: 1;
    transform: none;
  }

  .nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .nav-list > li {
    position: relative;
    border: 0;
  }

  .menu-link {
    position: relative;
    width: auto;
    min-height: 40px;
    padding: 0 12px;
    font-size: 15px;
    color: var(--text-on-dark);
  }

  .menu-link:hover {
    color: var(--white);
  }

  .menu-link.is-active {
    color: var(--gold);
  }

  .menu-link.is-active::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 2px;
    height: 2px;
    border-radius: 2px;
    background: var(--gold);
  }

}

/*--------------------------------------------------------------
# Hero
--------------------------------------------------------------*/
.hero {
  position: relative;
  overflow: hidden;
  padding: 40px 0 112px;
  color: var(--white);
  background:
    radial-gradient(ellipse 60% 70% at 85% 30%, rgba(42, 82, 152, 0.45), transparent 70%),
    linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 100%);
}

.hero-grid > .hero-pill-mobile { display: none; }

@media (max-width: 991px) {
  .hero-grid > .hero-pill-mobile { display: block; }
}

.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%);
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 48px;
  align-items: center;
}

.eyebrow-pill {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid rgba(231, 163, 35, 0.55);
  border-radius: 999px;
  background: rgba(231, 163, 35, 0.08);
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-title {
  margin-top: 0;
  font-size: clamp(2.1rem, 6.4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero-title .eyebrow-pill {
  display: block;
  width: fit-content;
  line-height: 1.4;
  letter-spacing: 0.08em;
}

.hero-title-main {
  display: block;
  margin-top: 20px;
}

.hero-title .text-gold {
  display: block;
}

.hero-lead {
  margin-top: 20px;
  max-width: 34rem;
  font-size: clamp(1rem, 2.4vw, 1.125rem);
  color: var(--text-on-dark);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

@media (max-width: 479px) {
  .hero-ctas .c-btn { width: 100%; }
}

.hero-benefits {
  display: grid;
  gap: 16px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border-dark);
}

.hero-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--text-on-dark);
}

.hero-benefits .bi {
  flex-shrink: 0;
  margin-top: 1px;
  font-size: 20px;
  color: var(--gold);
}

.hero-benefits strong {
  display: block;
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
}

@media (min-width: 576px) {
  .hero-benefits { grid-template-columns: repeat(3, 1fr); }
}

/* ERP em nuvem: nuvem + globo digital + dispositivos sincronizados.
   Tudo é posicionado em % do palco (760×640) e dimensionado em cqw,
   então a cena escala inteira com a coluna. */
.hero {
  background:
    radial-gradient(ellipse 45% 55% at 78% 48%, rgba(47, 123, 255, 0.28), transparent 70%),
    radial-gradient(ellipse 60% 70% at 85% 30%, rgba(42, 82, 152, 0.45), transparent 70%),
    linear-gradient(180deg, #050F22 0%, var(--navy-deep) 45%, var(--navy) 100%);
}

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

/* Celular/tablet: a cena do ERP em nuvem abre o hero; os indicadores
   vão para depois do texto. */
@media (max-width: 991px) {
  .hero-visual,
  .hero-visual .cloud-scene { display: contents; }
  .hero-visual .cs-fit { order: -1; margin-bottom: 56px; }
  /* o selo sobe para cima da cena; o do h1 fica só para leitores de tela */
  .hero-pill-mobile { order: -2; justify-self: start; margin-bottom: -28px; border-radius: 14px; line-height: 1.45; }
  .hero-title .hero-pill {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .hero-copy { order: 0; }
  .hero-visual .cs-callouts { order: 1; margin-top: 0; }
  .hero-benefits { display: none; }
  .hero { padding-top: 24px; }
}

.hero-copy {
  min-width: 0;
  position: relative;
  z-index: 2;
}

.hero-visual {
  min-width: 0;
  --neon: #3B9BFF;
  --neon-2: #7FD4FF;
  --neon-glow: rgba(59, 155, 255, 0.55);
  position: relative;
}

.cloud-scene {
  container: cscene / inline-size;
  position: relative;
}

/* O palco é desenhado sempre em 760×640 e reduzido com transform: assim
   os textos das telas não caem abaixo da fonte mínima do navegador (o que
   estourava o PDV no celular). --k vem do home.js; o atan2 é o fallback. */
.cs-fit {
  container: csfit / inline-size;
  position: relative;
  aspect-ratio: 760 / 640;
}

.cs-stage {
  container: cstage / inline-size;
  position: absolute;
  left: 0;
  top: 0;
  width: 760px;
  height: 640px;
  isolation: isolate;
  transform-origin: 0 0;
  transform: scale(var(--k, tan(atan2(100cqw, 760px))));
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

.cs-globe,
.cs-links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.cs-globe { z-index: 0; }
.cs-links { z-index: 1; overflow: visible; }

/* Anéis de luz na base */
.cs-rings {
  position: absolute;
  left: 50%;
  top: 84%;
  width: 96%;
  aspect-ratio: 1;
  z-index: 0;
  transform: translate(-50%, -50%);
  perspective: 900px;
  pointer-events: none;
}

.cs-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  transform: rotateX(78deg);
}

.cs-ring-1 {
  border: 2px solid rgba(127, 212, 255, 0.85);
  box-shadow: 0 0 24px var(--neon-glow), inset 0 0 40px rgba(59, 155, 255, 0.35);
}

.cs-ring-2 {
  inset: 9%;
  border: 2px dashed rgba(127, 212, 255, 0.5);
  animation: cs-spin 28s linear infinite;
}

.cs-ring-3 {
  inset: -8%;
  border: 1px solid rgba(59, 155, 255, 0.28);
  animation: cs-pulse-ring 4s ease-in-out infinite;
}

@keyframes cs-spin {
  to { transform: rotateX(78deg) rotate(360deg); }
}

@keyframes cs-pulse-ring {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.9; }
}

/* Linhas, circuitos e pacotes */
.cs-circuits path,
.cs-arcs path,
.cs-wires path,
.cs-wires-flow path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cs-circuits path { stroke: rgba(127, 212, 255, 0.55); stroke-width: 1.4; }
.cs-circuits circle { fill: var(--neon-2); }
.cs-arcs path { stroke: rgba(59, 155, 255, 0.22); stroke-width: 1.2; stroke-dasharray: 2 6; }
.cs-wires path { stroke: rgba(59, 155, 255, 0.35); stroke-width: 5; filter: blur(3px); }

.cs-wires-flow path {
  stroke: url(#csLineGrad);
  stroke-width: 2;
  stroke-dasharray: 10 8;
  animation: cs-flow 1.2s linear infinite;
}

@keyframes cs-flow {
  to { stroke-dashoffset: -36; }
}

.cs-packets { opacity: 0; transition: opacity 0.6s; }
.is-live .cs-packets { opacity: 1; }
.cs-packets circle { fill: #E8F7FF; }
.cs-packets circle.is-soft { fill: var(--neon-2); opacity: 0.8; }
.cs-packets circle.is-gold { fill: var(--gold); }

.cs-scene-burst .cs-wires-flow path {
  stroke-width: 3.2;
  animation-duration: 0.45s;
}

/* Nuvem */
.cs-cloud-halo {
  fill: none;
  stroke: var(--neon);
  stroke-width: 14;
  opacity: 0.35;
  filter: blur(10px);
  animation: cs-breathe 3.6s ease-in-out infinite;
}

.cs-cloud-body {
  stroke: var(--neon-2);
  stroke-width: 3;
  filter: drop-shadow(0 0 6px var(--neon)) drop-shadow(0 0 18px rgba(59, 155, 255, 0.7));
}

@keyframes cs-breathe {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.7; }
}

.cs-cloud-label {
  position: absolute;
  left: 50.3%;
  top: 18.4%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9cqw;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* Recorte só do símbolo "CS" da logo (≈ 92 de 382 px de largura). */
.cs-mark {
  display: block;
  height: 8.6cqw;
  aspect-ratio: 92 / 80;
  overflow: hidden;
  filter: drop-shadow(0 0 8px rgba(127, 212, 255, 0.9));
}

.cs-mark img {
  height: 100%;
  width: auto;
  max-width: none;
}

.cs-cloud-text {
  font-size: 1.95cqw;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  text-shadow: 0 0 10px rgba(127, 212, 255, 0.8);
  white-space: nowrap;
}

/* Pinos de localização */
.cs-pin {
  position: absolute;
  z-index: 1;
  font-size: 3.4cqw;
  color: var(--neon-2);
  filter: drop-shadow(0 0 6px var(--neon));
  animation: cs-bob 3.2s ease-in-out infinite;
}

.cs-pin::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -0.6cqw;
  width: 2.4cqw;
  height: 0.8cqw;
  border-radius: 50%;
  background: rgba(127, 212, 255, 0.55);
  transform: translateX(-50%);
  filter: blur(2px);
}

.cs-pin-1 { left: 23%; top: 33%; }
.cs-pin-2 { left: 62%; top: 30%; animation-delay: -0.8s; }
.cs-pin-3 { left: 3%; top: 39%; animation-delay: -1.6s; font-size: 2.6cqw; }
.cs-pin-4 { left: 33%; top: 86%; animation-delay: -2.4s; font-size: 2.6cqw; }

@keyframes cs-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-0.9cqw); }
}

/* Dispositivos */
.cs-laptop,
.cs-phone,
.cs-tablet {
  position: absolute;
  z-index: 2;
}

.cs-screen {
  position: relative;
  overflow: hidden;
  font-family: var(--font);
  color: #0F1B2D;
  background: #F4F7FB;
}

/* reflexo sutil de vidro */
.cs-screen::after,
.cs-phone-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 32%, rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, 0.06) 100%);
}

.cs-laptop {
  left: 26.5%;
  top: 41%;
  width: 47%;
  filter: drop-shadow(0 2.4cqw 3cqw rgba(0, 6, 20, 0.7));
}

.cs-laptop-lid {
  padding: 1.1cqw 1.1cqw 1.4cqw;
  border-radius: 1.4cqw 1.4cqw 0.4cqw 0.4cqw;
  background: linear-gradient(160deg, #2A3448, #0A0F1A 70%);
  border: 1px solid rgba(127, 212, 255, 0.35);
  box-shadow: 0 0 2.4cqw rgba(59, 155, 255, 0.45);
}

.cs-laptop .cs-screen {
  aspect-ratio: 16 / 10;
  border-radius: 0.5cqw;
}

.cs-laptop-base {
  position: relative;
  left: -8%;
  width: 116%;
  height: 1.7cqw;
  border-radius: 0 0 2.4cqw 2.4cqw;
  background: linear-gradient(180deg, #C9D3E3, #6B7A93 60%, #3A475E);
  box-shadow: 0 0.4cqw 2cqw rgba(59, 155, 255, 0.45);
}

.cs-laptop-base::before {
  content: "";
  position: absolute;
  left: 42%;
  top: 0;
  width: 16%;
  height: 40%;
  border-radius: 0 0 0.8cqw 0.8cqw;
  background: #8996AD;
}

/* Tela do PDV */
.pdv {
  display: flex;
  flex-direction: column;
  font-size: 0.95cqw;
}

.pdv-top {
  display: flex;
  align-items: center;
  gap: 1cqw;
  padding: 0.8cqw 1.2cqw;
  background: linear-gradient(90deg, #0B2552, #123A7A);
  color: var(--white);
}

.pdv-logo {
  display: block;
  height: 1.9cqw;
  aspect-ratio: 382 / 80;
}

.pdv-logo img { height: 100%; width: auto; }

.pdv-top strong {
  flex: 1;
  text-align: center;
  font-size: 1.3cqw;
}

.pdv-sync {
  display: inline-flex;
  align-items: center;
  gap: 0.4cqw;
  padding: 0.2cqw 0.7cqw;
  border-radius: 999px;
  background: rgba(37, 211, 102, 0.18);
  color: #7CF0A9;
  font-size: 0.8cqw;
  font-weight: 600;
}

.pdv-sync i,
.dash-live i {
  width: 0.6cqw;
  height: 0.6cqw;
  border-radius: 50%;
  background: currentColor;
  animation: cs-blink 1.4s ease-in-out infinite;
}

@keyframes cs-blink {
  50% { opacity: 0.25; }
}

.pdv-search {
  margin: 0.8cqw 1.2cqw 0;
  padding: 0.55cqw 0.8cqw;
  border: 1px solid #D5DEEA;
  border-radius: 0.4cqw;
  background: var(--white);
  color: #8A97AB;
}

.pdv-body {
  flex: 1;
  display: flex;
  gap: 0.8cqw;
  min-height: 0;
  padding: 0.8cqw 1.2cqw;
}

.pdv-side {
  display: flex;
  flex-direction: column;
  gap: 0.6cqw;
  width: 22%;
}

.pdv-field {
  padding: 0.5cqw 0.6cqw;
  border-radius: 0.4cqw;
  background: var(--white);
  border: 1px solid #E2E8F0;
}

.pdv-field small {
  display: block;
  font-size: 0.72cqw;
  color: #64748B;
}

.pdv-field b { font-size: 1.35cqw; }

.pdv-cart {
  position: relative;
  flex: 1;
  overflow: hidden;
  border-radius: 0.4cqw;
  background: var(--white);
  border: 1px solid #E2E8F0;
}

.pdv-cart-head,
.pdv-items li {
  display: grid;
  grid-template-columns: 1fr 14% 26%;
  gap: 0.4cqw;
  padding: 0.35cqw 0.7cqw;
}

.pdv-cart-head {
  font-size: 0.75cqw;
  font-weight: 700;
  color: #64748B;
  border-bottom: 1px solid #EEF2F7;
}

.pdv-items li {
  border-bottom: 1px solid #F1F4F8;
  animation: cs-row-in 0.45s var(--ease) both;
}

.pdv-items li span:last-child { text-align: right; font-weight: 600; }

@keyframes cs-row-in {
  from { opacity: 0; transform: translateX(-6%); background: #E6F1FF; }
  to { opacity: 1; transform: none; background: transparent; }
}

.pdv-empty {
  position: absolute;
  inset: 20% 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3cqw;
  color: #1E3A6A;
  font-weight: 600;
  transition: opacity 0.3s;
}

.pdv-empty i { font-size: 2.6cqw; }
.pdv-empty.is-hidden { opacity: 0; }

.pdv-foot {
  display: flex;
  align-items: center;
  gap: 0.7cqw;
  padding: 0.7cqw 1.2cqw;
  border-top: 1px solid #E2E8F0;
  background: var(--white);
}

.pdv-btn {
  padding: 0.35cqw 0.8cqw;
  border-radius: 0.35cqw;
  background: #1E4FA3;
  color: var(--white);
  font-size: 0.8cqw;
  font-weight: 600;
}

.pdv-btn-go { background: #0E7AFE; }

.pdv-total {
  margin-left: auto;
  font-size: 2.1cqw;
  font-weight: 800;
  color: #0B2552;
}

.pdv-total.is-bump { animation: cs-bump 0.5s var(--ease); }

@keyframes cs-bump {
  40% { transform: scale(1.12); color: #0E7AFE; }
}

/* Celular */
.cs-phone {
  left: 7.5%;
  top: 50%;
  width: 16%;
  padding: 0.9cqw 0.7cqw;
  border-radius: 2.6cqw;
  background: linear-gradient(160deg, #2A3242, #0B0F17 60%);
  border: 1px solid rgba(127, 212, 255, 0.4);
  box-shadow: 0 0 2.2cqw rgba(59, 155, 255, 0.5), 0 2.4cqw 3cqw rgba(0, 6, 20, 0.7);
  animation: cs-float 6s ease-in-out infinite;
}

.cs-phone-screen {
  position: relative;
  overflow: hidden;
  aspect-ratio: 357 / 720;
  border-radius: 1.9cqw;
  background: #EEF2F7;
}

.cs-phone-screen img {
  width: 100%;
  height: auto;
}

.cs-toast {
  position: absolute;
  left: 6%;
  right: 6%;
  top: 3%;
  display: flex;
  align-items: center;
  gap: 0.6cqw;
  padding: 0.6cqw 0.7cqw;
  border-radius: 0.9cqw;
  background: rgba(11, 37, 82, 0.94);
  color: var(--white);
  font-size: 0.85cqw;
  line-height: 1.25;
  box-shadow: 0 0.6cqw 1.4cqw rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(-120%);
  transition: opacity 0.35s, transform 0.45s var(--ease);
}

.cs-toast i { color: #4ADE80; font-size: 1.3cqw; }
.cs-toast b { display: block; color: var(--gold); }
.cs-toast.is-visible { opacity: 1; transform: none; }

/* Tablet */
.cs-tablet {
  left: 72.5%;
  top: 46.5%;
  width: 26%;
  padding: 0.9cqw;
  border-radius: 2cqw;
  background: linear-gradient(160deg, #2A3242, #0B0F17 60%);
  border: 1px solid rgba(127, 212, 255, 0.4);
  box-shadow: 0 0 2.2cqw rgba(59, 155, 255, 0.5), 0 2.4cqw 3cqw rgba(0, 6, 20, 0.7);
  animation: cs-float 6s ease-in-out -3s infinite;
}

.dash {
  aspect-ratio: 0.84;
  display: flex;
  flex-direction: column;
  gap: 0.8cqw;
  padding: 1cqw;
  border-radius: 1.2cqw;
  font-size: 0.8cqw;
}

.dash small { display: block; color: #64748B; font-size: 0.72cqw; }

.dash-head {
  display: flex;
  align-items: baseline;
  gap: 0.6cqw;
}

.dash-head strong { font-size: 1.25cqw; color: #0B2552; }

.dash-live {
  display: inline-flex;
  align-items: center;
  gap: 0.35cqw;
  margin-left: auto;
  color: #16A34A;
  font-size: 0.72cqw;
  font-weight: 700;
  text-transform: uppercase;
}

.dash-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.35cqw;
  height: 7cqw;
  padding: 0.5cqw;
  border-radius: 0.6cqw;
  background: var(--white);
  border: 1px solid #E8EDF4;
}

.dash-bars span {
  flex: 1;
  height: var(--h, 40%);
  border-radius: 0.25cqw 0.25cqw 0 0;
  background: linear-gradient(180deg, #4F8DFF, #2B5BE0);
  transition: height 0.8s var(--ease);
}

.dash-bars span:nth-child(3n) { background: linear-gradient(180deg, #8B7BFF, #5B46E5); }
.dash-bars span.is-new { background: linear-gradient(180deg, #FFC24D, var(--gold)); }

.dash-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6cqw;
}

.dash-kpis > div,
.dash-line,
.dash-donut {
  padding: 0.6cqw;
  border-radius: 0.6cqw;
  background: var(--white);
  border: 1px solid #E8EDF4;
}

.dash-kpis b {
  display: block;
  font-size: 1.15cqw;
  color: #0B2552;
  white-space: nowrap;
}

.dash-kpis b.is-bump { animation: cs-bump 0.5s var(--ease); }

.dash-split {
  flex: 1;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 0.6cqw;
  min-height: 0;
}

.dash-line svg {
  display: block;
  width: 100%;
  height: 4.2cqw;
  margin-top: 0.4cqw;
}

.dash-area { fill: rgba(79, 141, 255, 0.18); }

.dash-stroke {
  fill: none;
  stroke: #2B5BE0;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 220;
  animation: cs-draw 3.5s var(--ease) infinite alternate;
}

@keyframes cs-draw {
  from { stroke-dashoffset: 220; }
  to { stroke-dashoffset: 0; }
}

.donut {
  display: block;
  width: 72%;
  aspect-ratio: 1;
  margin: 0.5cqw auto 0;
  border-radius: 50%;
  background: conic-gradient(#2B5BE0 0 38%, #8B7BFF 0 62%, var(--gold) 0 80%, #22C3A6 0 100%);
  -webkit-mask: radial-gradient(circle, transparent 46%, #000 47%);
  mask: radial-gradient(circle, transparent 46%, #000 47%);
  animation: cs-spin-flat 14s linear infinite;
}

@keyframes cs-spin-flat {
  to { transform: rotate(360deg); }
}

@keyframes cs-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-1cqw); }
}

/* Cards que surgem sobre a cena (fora do palco escalado, para o texto
   continuar legível no celular). Um de cada vez, controlados pelo home.js. */
.cs-pops {
  position: absolute;
  inset: 0;
  z-index: 4;
  margin: 0;
  padding: 0;
  list-style: none;
  pointer-events: none;
}

.cs-pop {
  --tx: 0px;
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  width: clamp(180px, 30%, 240px);
  padding: 7px 11px 7px 7px;
  border: 1px solid rgba(127, 212, 255, 0.55);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(16, 45, 96, 0.94), rgba(7, 22, 43, 0.94));
  box-shadow: 0 0 22px rgba(59, 155, 255, 0.45), 0 14px 30px -12px rgba(0, 0, 0, 0.7);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--text-on-dark);
  font-size: 11px;
  line-height: 1.3;
  opacity: 0;
  transform: translate(var(--tx), 14px) scale(0.94);
  transition: opacity 0.45s var(--ease), transform 0.55s cubic-bezier(0.25, 1.3, 0.5, 1);
}

.cs-pop.is-visible {
  opacity: 1;
  transform: translate(var(--tx), 0) scale(1);
}

.cs-pop strong {
  display: block;
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
}

.cs-pop-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid rgba(231, 163, 35, 0.7);
  background: radial-gradient(circle, rgba(231, 163, 35, 0.3), rgba(7, 22, 43, 0.9) 75%);
  color: var(--gold);
  font-size: 13px;
  box-shadow: 0 0 10px rgba(231, 163, 35, 0.35);
}

.cs-pop-1 { left: 32%; top: 83%; }
.cs-pop-2 { left: 0; top: 26%; }
.cs-pop-3 { left: 0; top: 83%; }
.cs-pop-4 { left: 62%; top: 83%; }

/* cena estreita: todos surgem no mesmo lugar, centralizados embaixo */
@container csfit (max-width: 600px) {
  .cs-pop {
    --tx: -50%;
    left: 50%;
    top: auto;
    bottom: -25%;
    width: max-content;
    max-width: min(90%, 300px);
    padding-right: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cs-pop { transition: none; }
}

/* Indicadores */
.cs-callouts {
  display: grid;
  gap: 14px;
  margin-top: 8px;
}

.cs-callout {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--text-on-dark);
}

.cs-callout strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--white);
}

.cs-callout-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--neon-2);
  background: radial-gradient(circle, rgba(59, 155, 255, 0.45), rgba(7, 26, 58, 0.9) 70%);
  color: var(--white);
  font-size: 20px;
  box-shadow: 0 0 14px var(--neon-glow), inset 0 0 10px rgba(127, 212, 255, 0.5);
}

@media (min-width: 576px) {
  .cs-callouts { grid-template-columns: repeat(3, 1fr); }
}

/* Palco largo: indicadores flutuam sobre a cena, ligados aos circuitos. */
@container cscene (min-width: 600px) {
  .cs-callouts {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: block;
    margin: 0;
    pointer-events: none;
  }

  .cs-callout {
    position: absolute;
    gap: 1.4cqw;
    font-size: max(11px, 1.45cqw);
  }

  .cs-callout strong { font-size: max(13px, 1.8cqw); margin-bottom: 0.3cqw; }

  .cs-callout-icon {
    width: 5.6cqw;
    height: 5.6cqw;
    font-size: 2.6cqw;
  }

  .cs-callout-1 { left: -1%; top: 6%; width: 23%; }
  .cs-callout-2 { left: 78%; top: 4%; width: 23%; }
  .cs-callout-3 { left: 78%; top: 23%; width: 23%; }
}

@media (min-width: 992px) {
  .hero {
    padding: 56px 0 128px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 24px;
  }

  .hero-title {
    font-size: clamp(2.4rem, 3.9vw, 3.15rem);
  }
}

/* Telas amplas: a cena ganha espaço além da coluna. */
@media (min-width: 1440px) {
  .hero-visual {
    margin-right: -120px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-visual *,
  .hero-visual *::before,
  .hero-visual *::after {
    animation: none !important;
    transition: none !important;
  }
}

/*--------------------------------------------------------------
# Faixa de credibilidade
--------------------------------------------------------------*/
.trust {
  position: relative;
  z-index: 2;
  margin-top: -64px;
}

.trust-card {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
}

.trust-item + .trust-item {
  border-top: 1px solid var(--border);
}

.trust-icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--gold-soft);
  color: #B67A0E;
  font-size: 21px;
}

.trust-item strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}

.trust-item small {
  display: block;
  font-size: 13.5px;
  color: var(--text-muted);
}

@media (min-width: 576px) {
  .trust-card { grid-template-columns: repeat(2, 1fr); }
  .trust-item + .trust-item { border-top: 0; }
  .trust-item:nth-child(n+3) { border-top: 1px solid var(--border); }
  .trust-item:nth-child(even) { border-left: 1px solid var(--border); }
}

@media (min-width: 992px) {
  .trust-card { grid-template-columns: repeat(4, 1fr); padding: 8px 0; }
  .trust-item { padding: 18px 24px; }
  .trust-item:nth-child(n+3) { border-top: 0; }
  .trust-item + .trust-item { border-left: 1px solid var(--border); }
}

/*--------------------------------------------------------------
# Seções (base)
--------------------------------------------------------------*/
.section {
  padding: 72px 0;
}

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

.section-alt {
  background: var(--bg-alt);
}

.section-dark {
  color: var(--white);
  background:
    radial-gradient(ellipse 50% 80% at 100% 0%, rgba(42, 82, 152, 0.35), transparent 70%),
    var(--navy);
}

.section-head {
  margin-bottom: 40px;
}

.section-head-center {
  text-align: center;
}

.section-head-center .section-lead {
  margin-left: auto;
  margin-right: auto;
}

.section-head-split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--navy);
}

.section-dark .section-title {
  color: var(--white);
}

.section-lead {
  margin-top: 12px;
  max-width: 38rem;
  font-size: 1.0625rem;
  color: var(--text-muted);
}

.section-dark .section-lead {
  color: var(--text-on-dark);
}

.eyebrow {
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #B67A0E;
}

/*--------------------------------------------------------------
# Funcionalidades
--------------------------------------------------------------*/
/* Título, animação e recursos: no celular a animação vem logo abaixo do
   título; no desktop ela ocupa a coluna direita. */
.features-layout {
  display: grid;
  gap: 32px;
  grid-template-areas: "head" "demo" "grid";
}

.features-main { display: contents; }
.features-main > .section-head { grid-area: head; margin-bottom: 0; }
.features-main > .feature-grid { grid-area: grid; }
.scan-demo { grid-area: demo; }

/* Vídeo do cadastro por código de barras (vertical 478×850) */
.cadastro-video {
  grid-area: demo;
  justify-self: center;
  width: 100%;
  max-width: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #07162B;
  box-shadow: 0 30px 60px -24px rgba(7, 22, 43, 0.55), 0 0 0 1px rgba(59, 155, 255, 0.18);
}

.cadastro-video-player {
  display: block;
  width: 100%;
  height: auto;
}

@media (min-width: 992px) {
  .cadastro-video { align-self: center; }
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px 24px;
}

.feature {
  display: grid;
  grid-template-columns: 48px 1fr;
  column-gap: 14px;
  align-items: start;
}

.feature-icon {
  grid-row: span 2;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(231, 163, 35, 0.45);
  border-radius: 50%;
  background: var(--gold-soft);
  color: #B67A0E;
  font-size: 21px;
}

.feature h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
  padding-top: 2px;
}

.feature p {
  margin-top: 4px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--text-muted);
}

@media (min-width: 576px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Cadastro automático por código de barras: palco 760×600 em %, medidas em cqw. */
.scan-demo {
  --neon: #3B9BFF;
  --neon-2: #7FD4FF;
  --ok: #22C55E;
  container: sdemo / inline-size;
  position: relative;
  min-width: 0;
  padding: 18px 18px 20px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse 50% 40% at 70% 20%, rgba(59, 155, 255, 0.35), transparent 70%),
    radial-gradient(ellipse 40% 30% at 15% 80%, rgba(231, 163, 35, 0.12), transparent 70%),
    linear-gradient(160deg, #0B2552 0%, #07162B 60%, #050F22 100%);
  box-shadow: 0 30px 60px -24px rgba(7, 22, 43, 0.55), 0 0 0 1px rgba(59, 155, 255, 0.18);
  overflow: hidden;
  isolation: isolate;
}

/* prateleiras desfocadas ao fundo */
.scan-demo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 12% 18%, rgba(127, 212, 255, 0.18) 0 3%, transparent 9%),
    radial-gradient(circle at 88% 42%, rgba(127, 212, 255, 0.14) 0 4%, transparent 10%),
    radial-gradient(circle at 35% 8%, rgba(231, 163, 35, 0.14) 0 2%, transparent 7%),
    radial-gradient(circle at 92% 88%, rgba(59, 155, 255, 0.2) 0 3%, transparent 9%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 44px);
  filter: blur(0.5px);
}

.sd-stage {
  position: relative;
  aspect-ratio: 760 / 600;
  margin-bottom: 9cqw;
}

.sd-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* partículas */
.sd-particles i {
  position: absolute;
  width: 0.6cqw;
  height: 0.6cqw;
  border-radius: 50%;
  background: var(--neon-2);
  box-shadow: 0 0 8px var(--neon);
  opacity: 0;
  animation: sd-rise 6s linear infinite;
}

.sd-particles i:nth-child(1) { left: 8%; top: 70%; }
.sd-particles i:nth-child(2) { left: 22%; top: 90%; animation-delay: -1s; }
.sd-particles i:nth-child(3) { left: 45%; top: 80%; animation-delay: -2.2s; }
.sd-particles i:nth-child(4) { left: 58%; top: 95%; animation-delay: -3.1s; }
.sd-particles i:nth-child(5) { left: 72%; top: 75%; animation-delay: -4s; }
.sd-particles i:nth-child(6) { left: 90%; top: 85%; animation-delay: -5s; }
.sd-particles i:nth-child(7) { left: 96%; top: 40%; animation-delay: -1.6s; }
.sd-particles i:nth-child(8) { left: 4%; top: 30%; animation-delay: -2.8s; }
.sd-particles i:nth-child(9) { left: 52%; top: 40%; animation-delay: -3.6s; }
.sd-particles i:nth-child(10) { left: 82%; top: 20%; animation-delay: -4.6s; }

@keyframes sd-rise {
  0% { opacity: 0; transform: translateY(0); }
  20% { opacity: 0.9; }
  100% { opacity: 0; transform: translateY(-18cqw); }
}

/* anel dourado */
.sd-ring {
  fill: none;
  stroke-width: 3;
  stroke-dasharray: 420 90;
  animation: sd-ring 9s linear infinite;
}

@keyframes sd-ring {
  to { stroke-dashoffset: -1020; }
}

/* caixa e etiqueta */
.sd-label { fill: #FFFFFF; }
.sd-bars rect { fill: #111827; }

.sd-code {
  font: 600 11px/1 var(--font);
  fill: #111827;
  letter-spacing: 0.04em;
}

.sd-scanline {
  fill: #FF3B5C;
  opacity: 0;
  filter: drop-shadow(0 0 4px #FF3B5C);
}

.is-scanning .sd-scanline {
  opacity: 1;
  animation: sd-sweep 0.7s ease-in-out infinite alternate;
}

@keyframes sd-sweep {
  from { transform: translateY(0); }
  to { transform: translateY(54px); }
}

/* leitor e feixe */
.sd-window {
  fill: #1E4FA3;
  transition: fill 0.3s;
}

.is-scanning .sd-window {
  fill: var(--neon-2);
  filter: drop-shadow(0 0 8px var(--neon)) drop-shadow(0 0 18px var(--neon));
}

.sd-beam {
  fill: url(#sdBeam);
  opacity: 0;
  transition: opacity 0.3s;
}

.is-scanning .sd-beam {
  opacity: 0.85;
  animation: sd-flicker 0.18s steps(2) infinite;
}

@keyframes sd-flicker {
  50% { opacity: 0.7; }
}

/* conexões */
.sd-link,
.sd-arrow {
  fill: none;
  stroke: var(--neon-2);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.35;
}

.sd-link {
  stroke-dasharray: 2 9;
}

.is-searching .sd-link,
.is-searching .sd-arrow {
  opacity: 1;
  filter: drop-shadow(0 0 5px var(--neon));
}

.is-searching .sd-link {
  animation: sd-dash 0.6s linear infinite;
}

@keyframes sd-dash {
  to { stroke-dashoffset: -22; }
}

/* selo "Buscando informações" */
.sd-badge {
  position: absolute;
  left: 61%;
  top: 6%;
  width: 37%;
  display: flex;
  align-items: center;
  gap: 1.8cqw;
  padding: 1.6cqw 2cqw;
  border-radius: 2.2cqw;
  border: 1px solid rgba(127, 212, 255, 0.55);
  background: linear-gradient(135deg, rgba(30, 79, 163, 0.85), rgba(11, 37, 82, 0.9));
  color: var(--white);
  font-size: max(10px, 2.15cqw);
  font-weight: 600;
  line-height: 1.25;
  box-shadow: 0 0 2cqw rgba(59, 155, 255, 0.35);
  opacity: 0.45;
  transform: scale(0.96);
  transition: opacity 0.4s, transform 0.4s var(--ease), box-shadow 0.4s;
}

.is-searching .sd-badge {
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 0 3.4cqw rgba(59, 155, 255, 0.75);
}

.sd-badge-icon {
  position: relative;
  flex-shrink: 0;
  width: 6cqw;
  height: 5cqw;
  font-size: 5cqw;
  line-height: 1;
  color: var(--neon-2);
  filter: drop-shadow(0 0 6px var(--neon));
}

.sd-badge-icon .bi-database {
  position: absolute;
  right: -1cqw;
  bottom: -1cqw;
  font-size: 2.8cqw;
  color: var(--white);
}

.sd-dots b {
  font-weight: 700;
  opacity: 0.25;
}

.is-searching .sd-dots b { animation: cs-blink 0.9s infinite; }
.is-searching .sd-dots b:nth-child(2) { animation-delay: 0.15s; }
.is-searching .sd-dots b:nth-child(3) { animation-delay: 0.3s; }

/* janela de cadastro */
.sd-window-ui {
  position: absolute;
  left: 25%;
  top: 44%;
  width: 67%;
  z-index: 2;
  overflow: hidden;
  border-radius: 1.8cqw;
  border: 1px solid rgba(127, 212, 255, 0.6);
  background: #0E2A5A;
  box-shadow: 0 0 0 0.5cqw rgba(59, 155, 255, 0.12), 0 0 4cqw rgba(59, 155, 255, 0.55), 0 3cqw 5cqw rgba(0, 6, 20, 0.6);
  transition: transform 0.9s var(--ease), opacity 0.9s;
}

.sd-window-ui.is-entering {
  transform: translateY(8%) scale(0.97);
  opacity: 0;
  transition: none;
}

.sd-window-ui.is-leaving {
  transform: translateY(-55%) scale(0.96);
  opacity: 0;
}

.sd-win-top {
  display: flex;
  align-items: center;
  gap: 2cqw;
  padding: 1.3cqw 2cqw;
  color: var(--white);
  font-size: max(10px, 2.1cqw);
}

.sd-win-logo {
  display: block;
  height: 2.6cqw;
  aspect-ratio: 382 / 80;
}

.sd-win-logo img { height: 100%; width: auto; }
.sd-win-top strong { flex: 1; text-align: center; }

.sd-win-dots { display: flex; gap: 0.6cqw; }

.sd-win-dots i {
  width: 1cqw;
  height: 1cqw;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}

.sd-win-body {
  margin: 0 0.8cqw 0.8cqw;
  padding: 2cqw;
  border-radius: 1.2cqw;
  background: #F6F8FC;
  color: #0F1B2D;
  font-size: max(9px, 1.85cqw);
}

.sd-label-text {
  display: block;
  margin-bottom: 0.6cqw;
  font-weight: 700;
  font-size: max(9px, 1.7cqw);
}

.sd-input {
  display: flex;
  align-items: center;
  min-height: 5cqw;
  padding: 0 0.6cqw 0 1.4cqw;
  border: 1px solid #CBD5E1;
  border-radius: 0.8cqw;
  background: var(--white);
  font-variant-numeric: tabular-nums;
  font-size: max(10px, 2cqw);
}

.sd-caret {
  width: 1px;
  height: 2.6cqw;
  margin-left: 1px;
  background: #1E4FA3;
  animation: cs-blink 0.9s steps(1) infinite;
}

.sd-search {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4cqw;
  height: 4cqw;
  margin-left: auto;
  border-radius: 0.7cqw;
  background: #1E4FA3;
  color: var(--white);
  font-size: max(9px, 1.8cqw);
}

.is-searching .sd-search { animation: sd-pulse 0.8s ease-in-out infinite; }

@keyframes sd-pulse {
  50% { box-shadow: 0 0 0 0.8cqw rgba(59, 155, 255, 0.25); }
}

.sd-product {
  display: grid;
  grid-template-columns: 22% 1fr;
  gap: 1.6cqw;
  margin-top: 1.8cqw;
}

.sd-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1cqw;
  border: 1px solid #E2E8F0;
  border-radius: 1cqw;
  background: var(--white);
}

.sd-thumb svg {
  width: 80%;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.4s, transform 0.4s var(--ease);
}

.has-product .sd-thumb svg {
  opacity: 1;
  transform: none;
}

.sd-fields {
  margin: 0;
  border: 1px solid #E2E8F0;
  border-radius: 1cqw;
  background: var(--white);
}

.sd-field {
  display: grid;
  grid-template-columns: 26% 1fr auto;
  align-items: center;
  gap: 1cqw;
  min-height: 4.4cqw;
  padding: 0 1.4cqw;
}

.sd-field + .sd-field { border-top: 1px solid #EEF2F7; }
.sd-field dt { font-weight: 700; }

.sd-field dd {
  margin: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.sd-field .bi {
  color: var(--ok);
  font-size: max(10px, 2cqw);
  opacity: 0;
  transform: scale(0.3);
  transition: opacity 0.25s, transform 0.35s cubic-bezier(0.3, 1.6, 0.5, 1);
}

.sd-field.is-filled { animation: sd-row 0.6s ease-out; }
.sd-field.is-done .bi { opacity: 1; transform: none; }

@keyframes sd-row {
  from { background: rgba(59, 155, 255, 0.14); }
  to { background: transparent; }
}

.sd-import-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  height: 7cqw;
  margin-top: 1.8cqw;
}

.sd-import {
  display: inline-flex;
  align-items: center;
  gap: 1.2cqw;
  padding: 0 5cqw;
  border-radius: 999px;
  background: linear-gradient(180deg, #2F7BFF, #1550C9);
  color: var(--white);
  font-size: max(11px, 2.5cqw);
  font-weight: 700;
  opacity: 0;
  transform: translateY(60%) scale(0.9);
  transition: opacity 0.5s, transform 0.6s var(--ease), box-shadow 0.4s;
}

.sd-import.is-visible {
  opacity: 1;
  transform: none;
  box-shadow: 0 0 0 0.4cqw rgba(59, 155, 255, 0.2), 0 0 3cqw rgba(59, 155, 255, 0.85);
  animation: sd-grow 1.4s ease-in-out 0.6s infinite;
}

.sd-import.is-pressed {
  animation: none;
  transform: scale(0.94);
  box-shadow: 0 0 0 1.2cqw rgba(59, 155, 255, 0.25), 0 0 4cqw rgba(127, 212, 255, 1);
}

@keyframes sd-grow {
  50% { transform: scale(1.05); }
}

.sd-cursor {
  position: absolute;
  left: 78%;
  top: 110%;
  font-size: max(14px, 3.4cqw);
  color: var(--white);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
  opacity: 0;
  transition: left 0.7s var(--ease), top 0.7s var(--ease), opacity 0.3s;
}

.sd-cursor.is-moving { opacity: 1; left: 56%; top: 45%; }

/* confirmação */
.sd-toast {
  position: absolute;
  left: 55%;
  top: 27%;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 1.6cqw;
  padding: 1.6cqw 2.2cqw;
  border-radius: 2cqw;
  border: 1px solid rgba(127, 212, 255, 0.7);
  background: linear-gradient(135deg, #1550C9, #0B2552);
  color: var(--white);
  font-size: max(10px, 2cqw);
  font-weight: 700;
  line-height: 1.25;
  box-shadow: 0 0 3cqw rgba(59, 155, 255, 0.7);
  opacity: 0;
  transform: translateY(20%) scale(0.9);
  transition: opacity 0.4s, transform 0.5s cubic-bezier(0.3, 1.4, 0.5, 1);
}

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

.sd-toast-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 5cqw;
  height: 5cqw;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--neon-2);
  color: #0B2552;
  font-size: 3cqw;
  box-shadow: 0 0 0 0.6cqw rgba(127, 212, 255, 0.25), 0 0 2.4cqw var(--neon-2);
}

/* linha do tempo */
.sd-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1cqw;
  margin: 1.5cqw 0 0;
  padding: 0;
  list-style: none;
  text-align: center;
  color: var(--text-on-dark);
}

.sd-steps li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: max(9px, 1.7cqw);
  line-height: 1.25;
}

/* seta luminosa entre etapas */
.sd-steps li + li::before {
  content: "";
  position: absolute;
  top: 4.6cqw;
  right: calc(50% + 5.6cqw);
  width: calc(100% - 11.2cqw + 1cqw);
  height: 2px;
  background: linear-gradient(90deg, rgba(127, 212, 255, 0.2), var(--neon-2));
  box-shadow: 0 0 6px var(--neon);
  -webkit-mask: linear-gradient(90deg, #000 85%, transparent 85%);
}

.sd-steps li + li::after {
  content: "";
  position: absolute;
  top: calc(4.6cqw - 0.8cqw);
  right: calc(50% + 5.4cqw);
  border: 0.8cqw solid transparent;
  border-left: 1.2cqw solid var(--neon-2);
  border-right: 0;
}

.sd-step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 9.2cqw;
  height: 9.2cqw;
  margin-bottom: 1cqw;
  border-radius: 50%;
  border: 2px solid rgba(127, 212, 255, 0.45);
  background: radial-gradient(circle, rgba(59, 155, 255, 0.35), rgba(7, 26, 58, 0.9) 70%);
  color: var(--neon-2);
  font-size: 4cqw;
  transition: transform 0.4s var(--ease), box-shadow 0.4s, border-color 0.4s, color 0.4s;
}

.sd-steps strong {
  color: var(--white);
  font-weight: 700;
}

.sd-steps small {
  font-size: inherit;
}

.sd-steps li.is-active .sd-step-icon {
  transform: scale(1.12);
  border-color: var(--neon-2);
  color: var(--white);
  box-shadow: 0 0 0 0.8cqw rgba(59, 155, 255, 0.18), 0 0 3cqw var(--neon);
}

.sd-steps li.is-active strong { color: var(--gold); }

/* cartão estreito (celular): fontes mínimas deixam a janela mais alta */
@container sdemo (max-width: 480px) {
  .sd-stage { margin-bottom: 30cqw; }
  .sd-window-ui { left: 6%; width: 88%; top: 46%; }
  .sd-badge { left: 54%; width: 44%; padding: 1.4cqw 1.8cqw; font-size: 9px; }
  .sd-badge-icon { display: none; }
  .sd-toast { left: 34%; top: 27%; font-size: 10px; white-space: nowrap; }
  .sd-field { grid-template-columns: max-content minmax(0, 1fr) auto; gap: 1.6cqw; }
  .sd-field dd { white-space: normal; line-height: 1.25; padding: 0.8cqw 0; }
  .sd-ring { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .scan-demo *,
  .scan-demo *::before,
  .scan-demo *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (min-width: 992px) {
  .features-layout {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    grid-template-areas: "head demo" "grid demo";
    gap: 40px 48px;
    align-items: start;
  }

  .scan-demo {
    align-self: center;
  }
}

/*--------------------------------------------------------------
# Segmentos
--------------------------------------------------------------*/
/* Fundo da seção: brilhos nas extremidades e linhas curvas em azul elétrico */
.segments-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 38% 50% at 100% 0%, rgba(47, 123, 255, 0.32), transparent 70%),
    radial-gradient(ellipse 30% 40% at 0% 100%, rgba(47, 123, 255, 0.22), transparent 70%),
    radial-gradient(circle at 92% 12%, rgba(127, 212, 255, 0.35) 0 2px, transparent 3px),
    radial-gradient(circle at 6% 86%, rgba(127, 212, 255, 0.3) 0 2px, transparent 3px),
    linear-gradient(180deg, #081A36 0%, var(--navy-deep) 100%);
}

.segments-deco {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.segments-deco path {
  fill: none;
  stroke: rgba(59, 155, 255, 0.55);
  stroke-width: 1.6;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 6px rgba(59, 155, 255, 0.6));
}

.segments-deco path.is-faint {
  stroke: rgba(59, 155, 255, 0.25);
  filter: none;
}

.segments-section .section-lead {
  color: #A9BCD8;
}

.segments-cta {
  border-color: rgba(127, 212, 255, 0.55);
  border-radius: 14px;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.segments-cta .bi {
  transition: transform 0.3s var(--ease);
}

@media (hover: hover) {
  .segments-cta:hover {
    background: rgba(59, 155, 255, 0.14);
    border-color: #7FD4FF;
    box-shadow: 0 0 18px rgba(59, 155, 255, 0.35);
  }

  .segments-cta:hover .bi {
    transform: translateX(3px);
  }
}

/* Cartões */
.segment-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

.segment {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--white);
  color: var(--text);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 36px -20px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.06);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.segment img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.35s var(--ease);
}

.segment-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px 24px 22px;
}

.segment h3 {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--navy);
}

.segment p {
  flex: 1;
  margin: 8px 0 16px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-muted);
}

.segment a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  min-height: 32px;
  font-size: 14.5px;
  font-weight: 700;
  color: #B67A0E;
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

.segment a .bi {
  transition: transform 0.25s var(--ease);
}

.segment a:hover,
.segment a:focus-visible {
  color: var(--gold);
}

.segment a:hover .bi,
.segment a:focus-visible .bi {
  transform: translateX(4px);
}

@media (hover: hover) {
  .segment:hover {
    transform: translateY(-5px);
    box-shadow: 0 28px 48px -20px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(127, 212, 255, 0.25);
  }

  .segment:hover img {
    transform: scale(1.03);
  }

  .segment:hover a {
    color: var(--gold);
  }

  .segment:hover a .bi {
    transform: translateX(4px);
  }
}

@media (max-width: 575px) {
  .segments-section .section-head-split { gap: 16px; }
  .segments-cta { width: 100%; justify-content: center; }
  .segment-body { padding: 18px 20px 18px; }
}

@media (min-width: 576px) {
  .segment-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
}

@media (min-width: 992px) {
  .segment-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
  .segment img { aspect-ratio: 16 / 8; }
}

@media (prefers-reduced-motion: reduce) {
  .segment,
  .segment img,
  .segment a .bi,
  .segments-cta {
    transition: none;
  }
}

/*--------------------------------------------------------------
# Demonstração
--------------------------------------------------------------*/
.demo-layout {
  display: grid;
  gap: 40px;
  align-items: center;
}

.demo-media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: radial-gradient(ellipse at 50% 30%, #1F2F4E, #050B16 75%);
  box-shadow: var(--shadow);
}

.demo-media img,
.demo-media iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 0;
}

.demo-play {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0;
  border: 0;
  background: linear-gradient(180deg, rgba(7, 22, 43, 0.05), rgba(7, 22, 43, 0.45));
  color: var(--white);
  cursor: pointer;
}

.demo-play-icon {
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--navy);
  border: 3px solid rgba(255, 255, 255, 0.85);
  font-size: 38px;
  padding-left: 4px;
  box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.14);
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease);
}

.demo-play:hover .demo-play-icon,
.demo-play:focus-visible .demo-play-icon {
  transform: scale(1.06);
  background: var(--gold);
  color: var(--navy-deep);
}

.demo-play-label {
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(7, 22, 43, 0.82);
  border: 1px solid var(--border-dark);
  font-size: 14px;
  font-weight: 600;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 24px 0 32px;
}

.check-list li {
  position: relative;
  padding-left: 32px;
  color: var(--text);
}

.check-list li::before {
  content: "\F26E";
  font-family: "bootstrap-icons", sans-serif;
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gold-soft);
  color: #B67A0E;
  font-size: 14px;
}

@media (min-width: 992px) {
  .demo-layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 64px;
  }
}

/*--------------------------------------------------------------
# Planos
--------------------------------------------------------------*/
.eyebrow-lined {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #5B6B85;
}

.eyebrow-lined::before,
.eyebrow-lined::after {
  content: "";
  width: 36px;
  height: 1.5px;
  background: var(--gold);
}

.plans-head {
  margin-bottom: 56px;
}

.plans-head .section-lead {
  max-width: 44rem;
}

.plan-grid {
  display: grid;
  gap: 32px;
  max-width: 560px;
  margin: 0 auto;
}

/* Celular e tablet: cards lado a lado em carrossel com deslize, na ordem
   MEI | SN Básico | SN Avançado | SN Completo; o home.js abre centralizado no destaque. */
@media (max-width: 991px) {
  .plan-grid {
    display: flex;
    gap: 16px;
    max-width: none;
    margin: 0 -16px;
    padding: 22px 16px 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  .plan-grid::-webkit-scrollbar {
    display: none;
  }

  .plan-grid .plan {
    flex: 0 0 min(80%, 400px);
    scroll-snap-align: center;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .plan-grid {
    margin: 0 -32px;
    padding-left: 32px;
    padding-right: 32px;
  }

  .plan-grid .plan {
    flex-basis: min(46%, 400px);
  }
}

.plan-swipe-hint {
  display: none;
}

@media (max-width: 991px) {
  .plan-swipe-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
    font-size: 13.5px;
    color: var(--text-muted);
  }
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 28px 28px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 12px 32px -22px rgba(15, 27, 45, 0.35);
  transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}

@media (hover: hover) {
  .plan:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 44px -24px rgba(15, 27, 45, 0.4);
  }
}

.plan.featured {
  border: 2px solid var(--gold);
  box-shadow: 0 26px 56px -26px rgba(231, 163, 35, 0.6);
}

.plan .tag {
  position: absolute;
  top: -17px;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 18px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy-deep);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transform: translateX(-50%);
  box-shadow: 0 8px 18px -10px rgba(231, 163, 35, 0.9);
}

.plan .tag::before {
  content: "\F586";
  font-family: "bootstrap-icons", sans-serif;
  font-size: 14px;
}

.plan-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.plan-icon {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #EEF2F8;
  color: var(--navy);
  font-size: 26px;
}

.plan.featured .plan-icon {
  background: var(--gold-soft);
  color: #B67A0E;
}

.plan h3 {
  font-size: 1.375rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--navy);
}

.plan .desc {
  margin-top: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-muted);
}

.plan .price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px 8px;
  margin: 22px 0 22px;
  color: var(--navy);
}

.plan .cur {
  font-size: 20px;
  font-weight: 700;
}

.plan .val {
  font-size: clamp(2.6rem, 6vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
}

.plan .per {
  font-size: 17px;
  font-weight: 500;
  color: #5B6B85;
}

.plan ul {
  display: grid;
  align-content: start;
  gap: 12px;
  flex: 1;
  margin-bottom: 32px;
}

.plan li {
  position: relative;
  padding-left: 32px;
  font-size: 15.5px;
  line-height: 1.45;
  color: #33415C;
}

.plan li::before {
  content: "\F633";
  font-family: "bootstrap-icons", sans-serif;
  position: absolute;
  left: 0;
  top: 0;
  font-size: 18px;
  line-height: 1.25;
  color: var(--gold);
}

.plan .plan-cta {
  min-height: 54px;
  margin-top: auto;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  white-space: normal;
  text-align: center;
}

.plan .plan-cta .bi {
  transition: transform 0.18s var(--ease);
}

.plan .plan-cta:hover .bi {
  transform: translateX(3px);
}

.plan .c-btn-outline-navy {
  border-width: 1.5px;
}

.plans-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 20px;
  margin-top: 44px;
  text-align: center;
  color: var(--text-muted);
}

.plans-footer a {
  font-weight: 600;
  color: var(--navy);
}

@media (max-width: 479px) {
  .plan { padding: 30px 20px 22px; }
  .plan-icon { width: 52px; height: 52px; font-size: 23px; }
  .plan h3 { font-size: 1.25rem; }
}


@media (min-width: 992px) and (max-width: 1199px) {
  .plan { padding: 30px 22px 24px; }
  .plan-icon { width: 50px; height: 50px; font-size: 22px; }
  .plan h3 { font-size: 1.2rem; }
  .plan .val { font-size: 2.6rem; }
  .plan .plan-cta { padding: 10px 12px; font-size: 14.5px; gap: 6px; }
}

/* Planos compactos: cartões mais baixos e lista recolhida em 6 itens
   (o home.js adiciona o botão "Ver todos os recursos"). */
.plans-head { margin-bottom: 36px; }
.plan { padding: 24px 22px 22px; }
.plan .tag { top: -14px; padding: 5px 14px; font-size: 13px; }
.plan-head { gap: 12px; }
.plan-icon { width: 44px; height: 44px; border-radius: 12px; font-size: 20px; }
.plan h3 { font-size: 1.125rem; }
.plan .desc { margin-top: 10px; padding-bottom: 14px; font-size: 14px; line-height: 1.5; }
.plan .price { margin: 14px 0; }
.plan .cur { font-size: 16px; }
.plan .val { font-size: clamp(2rem, 5vw, 2.4rem); }
.plan .per { font-size: 15px; }
.plan ul { flex: 0 0 auto; gap: 7px; margin-bottom: 14px; }
.plan li { padding-left: 26px; font-size: 14px; line-height: 1.4; }
.plan li::before { font-size: 16px; line-height: 1.2; }
.plan .plan-cta { min-height: 46px; font-size: 15px; }

/* Valor oculto: o olho leva ao WhatsApp com o plano já na mensagem */
.plan .price-reveal {
  align-items: center;
  margin-bottom: 4px;
  text-decoration: none;
  cursor: pointer;
}

.price-mask {
  font-size: clamp(2rem, 5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--navy);
  filter: blur(0.6px);
  user-select: none;
}

.price-eye {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-left: auto;
  border-radius: 50%;
  background: var(--gold-soft);
  border: 1.5px solid rgba(231, 163, 35, 0.55);
  color: #B67A0E;
  font-size: 19px;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  animation: price-eye-pulse 2.8s ease-in-out infinite;
}

@keyframes price-eye-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(231, 163, 35, 0.35); }
  50% { box-shadow: 0 0 0 7px rgba(231, 163, 35, 0); }
}

.price-reveal:hover .price-eye,
.price-reveal:focus-visible .price-eye {
  background: var(--gold);
  color: var(--navy-deep);
  transform: scale(1.08);
}

.price-reveal:hover .price-eye .bi::before,
.price-reveal:focus-visible .price-eye .bi::before {
  content: "\F341"; /* bi-eye */
}

.price-hint {
  margin: 0 0 14px;
  font-size: 12.5px;
  color: var(--text-muted);
}

@media (prefers-reduced-motion: reduce) {
  .price-eye { animation: none; }
}

/* Plano sem valor fixo (Multilojas): texto no lugar do preço */
.plan .price-consult .val {
  font-size: clamp(1.6rem, 4vw, 1.9rem);
  letter-spacing: -0.02em;
}

@media (min-width: 1200px) {
  .plan .val { font-size: 2.1rem; }
  .plan .price-consult .val { font-size: 1.6rem; }
}

.plan ul.is-collapsed li:nth-child(n+7) { display: none; }

/* Título em duas partes: linha do produto (pequena) + nome do plano */
.plan h3 .plan-kicker {
  display: block;
  margin-bottom: 2px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.plan.featured h3 .plan-kicker { color: #B67A0E; }

/* Lista + "Ver todos os recursos" ocupam o espaço livre; o botão fica no pé */
.plan-features { flex: 1 0 auto; }
.plan-features ul { margin-bottom: 0; }
.plan .plan-cta { margin-top: 18px; }

/*--------------------------------------------------------------
# Planos por faixa de faturamento
--------------------------------------------------------------*/
.plans-layout {
  display: grid;
  gap: 32px;
}

.plans-aside .eyebrow-lined { margin-bottom: 0; }
.plans-aside .eyebrow-lined::before { display: none; }

.plans-title {
  margin: 14px 0 22px;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.plans-title strong { font-weight: 800; }

.plans-faixa-label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.plans-faixa {
  position: relative;
  max-width: 340px;
}

.plans-faixa-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--gold);
  border-radius: var(--radius);
  background: var(--white);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 0 0 4px rgba(231, 163, 35, 0.12);
  transition: box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}

.plans-faixa-btn:hover { box-shadow: 0 0 0 4px rgba(231, 163, 35, 0.22); }

.plans-faixa-btn:focus-visible,
.plans-faixa.is-open .plans-faixa-btn {
  outline: none;
  box-shadow: 0 0 0 4px rgba(231, 163, 35, 0.32);
}

.plans-faixa-btn .bi {
  flex-shrink: 0;
  font-size: 15px;
  transition: transform 0.2s var(--ease);
}

.plans-faixa.is-open .plans-faixa-btn .bi { transform: rotate(180deg); }

.plans-faixa-list {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: 320px;
  margin: 0;
  padding: 6px;
  overflow-y: auto;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 24px 48px -16px rgba(15, 27, 45, 0.28), 0 4px 12px -6px rgba(15, 27, 45, 0.12);
  outline: none;
  animation: faixa-in 0.16s var(--ease);
}

@keyframes faixa-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

.plans-faixa-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 9px;
  font-size: 15px;
  color: var(--navy);
  cursor: pointer;
}

.plans-faixa-option + .plans-faixa-option { margin-top: 2px; }

.plans-faixa-option-text { flex: 1; min-width: 0; }
.plans-faixa-amount { font-weight: 600; }
.plans-faixa-per { color: var(--text-muted); }

.plans-faixa-tag {
  padding: 2px 8px;
  border-radius: 999px;
  background: #EEF2F8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--navy-soft);
}

.plans-faixa-check {
  flex-shrink: 0;
  font-size: 17px;
  color: #B67A0E;
  visibility: hidden;
}

.plans-faixa-option.is-active { background: var(--bg-alt); }

.plans-faixa-option[aria-selected="true"] { background: var(--gold-soft); }
.plans-faixa-option[aria-selected="true"] .plans-faixa-amount { font-weight: 800; }
.plans-faixa-option[aria-selected="true"] .plans-faixa-check { visibility: visible; }

.plans-faixa-list:focus-visible .plans-faixa-option.is-active {
  box-shadow: inset 0 0 0 2px rgba(231, 163, 35, 0.55);
}

@media (prefers-reduced-motion: reduce) {
  .plans-faixa-list { animation: none; }
  .plans-faixa-btn .bi { transition: none; }
}

.plans-faixa-note {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-muted);
}

.plans-main { min-width: 0; }

.plan[hidden] { display: none !important; }

/* Topo do cartão: nome + preço em destaque, centralizados */
.plan-top {
  padding: 22px 16px 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-alt);
  text-align: center;
}

.plan.featured .plan-top {
  border-color: rgba(231, 163, 35, 0.45);
  background: var(--gold-soft);
}

.plan-top h3 { font-size: 1.2rem; }
.plan-top h3 .plan-kicker { margin-bottom: 4px; }

.plan .plan-top .price {
  justify-content: center;
  align-items: flex-start;
  gap: 2px;
  margin: 14px 0 2px;
  flex-wrap: nowrap;
}

.plan .plan-top .cur {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
}

.plan .plan-top .val {
  font-size: clamp(2.8rem, 6vw, 3.4rem);
  line-height: 1;
}

.plan .plan-top .cents {
  align-self: flex-end;
  margin-bottom: 4px;
  font-size: 20px;
  font-weight: 700;
}

.plan .plan-top .price-consult { margin: 22px 0 8px; }

.plan .plan-top .price-consult .val {
  font-size: clamp(1.7rem, 4vw, 2rem);
}

.plan-top .per {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.plans-layout .plan .plan-top { display: flex; flex-direction: column; justify-content: center; }


/* Desktop: cartões em grade; as colunas seguem a quantidade de planos da faixa */
@media (min-width: 992px) {
  .plan-grid {
    grid-template-columns: repeat(var(--plan-cols, 3), minmax(0, 1fr));
    grid-template-rows: 1fr auto;
    gap: 0 20px;
    max-width: none;
    align-items: stretch;
  }

  .plan-grid[data-count="1"] { --plan-cols: 1; max-width: 380px; }
  .plan-grid[data-count="2"] { --plan-cols: 2; }
  .plan-grid[data-count="4"] { --plan-cols: 4; }

  /* linhas alinhadas entre os cartões: quadro do valor, botão */
  .plan {
    display: grid;
    grid-row: span 2;
    grid-template-rows: subgrid;
    row-gap: 0;
    padding: 18px 18px 22px;
  }
}

/* Telas largas: título e seletor à esquerda, cartões à direita */
@media (min-width: 1200px) {
  .plans-layout {
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 48px;
    align-items: center;
  }

  .plan-grid[data-count="2"] { max-width: 760px; }
}


.plan-more {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: -4px 0 18px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 13.5px;
  font-weight: 700;
  color: #B67A0E;
  cursor: pointer;
}

.plan-more .bi { transition: transform 0.25s var(--ease); }
.plan-more[aria-expanded="true"] .bi { transform: rotate(180deg); }
.plan-more:hover { color: var(--gold); }

@media (min-width: 992px) and (max-width: 1199px) {
  .plan { padding: 22px 18px 20px; }
  .plan .val { font-size: 2.1rem; }
}

/*--------------------------------------------------------------
# Sobre / diferenciais
--------------------------------------------------------------*/
.about-layout {
  display: grid;
  gap: 48px;
}

.steps {
  display: grid;
  gap: 18px;
  margin-top: 32px;
}

.steps li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.steps li > span {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--navy);
  color: var(--gold);
  font-size: 14px;
  font-weight: 700;
}

.steps li div {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.5;
}

.steps strong {
  display: block;
  font-size: 16px;
  color: var(--navy);
}

.diff-grid {
  display: grid;
  gap: 16px;
}

.diff {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
}

.diff .bi {
  font-size: 24px;
  color: #B67A0E;
}

.diff h3 {
  margin-top: 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
}

.diff p {
  margin-top: 4px;
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

.more-solutions {
  margin-top: 24px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--white);
}

.more-solutions > p {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-on-dark);
}

.more-solutions ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.more-solutions a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 6px 14px;
  border: 1px solid var(--border-dark);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  text-decoration: none;
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}

.more-solutions a:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.more-solutions .bi {
  color: var(--gold);
}

@media (min-width: 576px) {
  .diff-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 992px) {
  .about-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 64px;
    align-items: start;
  }
}

/*--------------------------------------------------------------
# FAQ (accordion)
--------------------------------------------------------------*/
.faq-layout {
  display: grid;
  gap: 32px;
}

.faq-head .c-btn {
  margin-top: 24px;
  white-space: normal;
  text-align: left;
}

.accordion-list {
  display: grid;
  gap: 10px;
}

.acc-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.acc-item.is-open {
  border-color: #CBD5E1;
  box-shadow: var(--shadow-sm);
}

.acc-item h3 {
  font-size: inherit;
  letter-spacing: 0;
}

.acc-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 56px;
  padding: 14px 20px;
  background: none;
  border: 0;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 15.5px;
  font-weight: 600;
  color: var(--navy);
  text-align: left;
  cursor: pointer;
}

.acc-trigger .bi {
  flex-shrink: 0;
  font-size: 16px;
  color: #B67A0E;
  transition: transform 0.22s var(--ease);
}

.acc-trigger[aria-expanded="true"] .bi {
  transform: rotate(45deg);
}

.acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.24s var(--ease);
}

.acc-panel.is-open {
  grid-template-rows: 1fr;
}

.acc-panel-inner {
  overflow: hidden;
}

.acc-panel p {
  padding: 0 20px 18px;
  font-size: 15px;
  color: var(--text-muted);
}

.acc-panel a {
  color: var(--navy);
  font-weight: 600;
}

@media (min-width: 992px) {
  .faq-layout {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
    gap: 64px;
    align-items: start;
  }

  .faq-head {
    position: sticky;
    top: calc(var(--header-h) + 32px);
  }
}

/*--------------------------------------------------------------
# CTA final
--------------------------------------------------------------*/
.final-cta {
  padding: 64px 0;
  color: var(--white);
  background:
    radial-gradient(ellipse 50% 90% at 90% 50%, rgba(42, 82, 152, 0.4), transparent 70%),
    var(--navy-deep);
}

.final-cta-inner {
  display: grid;
  gap: 40px;
  align-items: center;
}

.final-cta h2 {
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  font-weight: 800;
  line-height: 1.15;
}

.final-cta-copy > p {
  margin-top: 12px;
  color: var(--text-on-dark);
  font-size: 1.0625rem;
}

.final-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

@media (max-width: 479px) {
  .final-cta-buttons .c-btn { width: 100%; }
}

.final-cta-points {
  display: grid;
  gap: 18px;
}

.final-cta-points li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14.5px;
  line-height: 1.4;
  color: var(--text-on-dark);
}

.final-cta-points .bi {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-dark);
  border-radius: 50%;
  color: var(--gold);
  font-size: 19px;
}

@media (min-width: 992px) {
  .final-cta { padding: 80px 0; }

  .final-cta-inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 56px;
  }

  .final-cta-points {
    grid-template-columns: repeat(3, 1fr);
  }

  .final-cta-points li {
    flex-direction: column;
    align-items: flex-start;
  }
}

/*--------------------------------------------------------------
# Rodapé
--------------------------------------------------------------*/
.site-footer {
  padding: 64px 0 0;
  background: #050F1F;
  color: var(--text-on-dark);
}

.footer-grid {
  display: grid;
  gap: 36px 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.footer-about,
.footer-contact {
  grid-column: 1 / -1;
}

.footer-about p {
  margin: 18px 0 20px;
  max-width: 26rem;
  font-size: 14.5px;
}

.footer-col h2 {
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
}

.footer-col ul {
  display: grid;
  gap: 4px;
}

.footer-col a {
  display: inline-block;
  padding: 4px 0;
  font-size: 14.5px;
  color: var(--text-on-dark);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.footer-col a:hover {
  color: var(--gold);
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
}

.footer-contact .bi {
  margin-top: 6px;
  color: var(--gold);
}

.footer-contact span {
  padding: 4px 0;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 48px;
  padding-top: 22px;
  padding-bottom: 96px;
  border-top: 1px solid var(--border-dark);
  font-size: 13px;
  color: #8E9BB3;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-contact { grid-column: auto; }
}

@media (min-width: 1100px) {
  .footer-grid { grid-template-columns: 1.6fr 0.8fr 1fr 1fr 1.2fr; }
  .footer-about { grid-column: auto; }
  .footer-bottom { padding-bottom: 28px; }
}

/*--------------------------------------------------------------
# Animações de entrada (só com JS ativo e sem movimento reduzido)
--------------------------------------------------------------*/
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/*--------------------------------------------------------------
# Assistente comercial flutuante (estrutura usada por site-chat-ai.js)
--------------------------------------------------------------*/
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1040;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  pointer-events: none;
}

.whatsapp-float .whatsapp-btn {
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  font-size: 29px;
  box-shadow: 0 10px 26px -6px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s var(--ease);
  cursor: pointer;
  pointer-events: auto;
}

.whatsapp-float .whatsapp-btn:hover {
  transform: scale(1.06);
}

.whatsapp-float .whatsapp-chat {
  width: 340px;
  max-width: calc(100vw - 32px);
  max-height: min(480px, calc(100vh - 120px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
}

.whatsapp-float .whatsapp-chat.open {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}

.whatsapp-chat-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  background: var(--navy);
  color: var(--white);
}

.whatsapp-chat-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.whatsapp-chat-avatar {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #25D366;
  font-size: 18px;
}

.whatsapp-chat-title {
  font-size: 14.5px;
  font-weight: 700;
}

.whatsapp-chat-status {
  font-size: 12px;
  color: #9BE7B8;
}

.whatsapp-chat-close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: var(--white);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.whatsapp-chat-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.whatsapp-chat-body {
  flex: 1;
  min-height: 220px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  background: #EFF2F6;
}

.whatsapp-msg {
  max-width: 84%;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.45;
  white-space: pre-line;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06);
}

.whatsapp-msg.bot {
  align-self: flex-start;
  background: var(--white);
  color: #111B21;
  border-bottom-left-radius: 3px;
}

.whatsapp-msg.user {
  align-self: flex-end;
  background: #D9FDD3;
  color: #111B21;
  border-bottom-right-radius: 3px;
}

.whatsapp-msg a {
  color: #0A66C2;
  text-decoration: underline;
  overflow-wrap: anywhere;
}

.whatsapp-chat-options {
  align-self: flex-start;
  max-width: 90%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.whatsapp-chat-option-btn {
  padding: 9px 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: var(--font);
  font-size: 13.5px;
  color: var(--navy);
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}

.whatsapp-chat-option-btn:hover {
  background: var(--gold-soft);
  border-color: var(--gold);
}

.whatsapp-chat-final-btn {
  align-self: flex-start;
  max-width: 90%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #25D366;
  color: var(--white);
  border: 0;
  border-radius: 10px;
  font-family: var(--font);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}

.whatsapp-chat-footer {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  background: var(--white);
  border-top: 1px solid var(--border);
}

.whatsapp-chat-footer.hidden {
  display: none;
}

.whatsapp-chat-input {
  flex: 1;
  min-width: 0;
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-family: var(--font);
  font-size: 14px;
  outline: none;
}

.whatsapp-chat-input:focus {
  border-color: var(--navy);
}

.whatsapp-chat-send {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 15px;
  cursor: pointer;
}

.whatsapp-chat-send:disabled {
  opacity: 0.6;
}

@media (max-width: 480px) {
  .whatsapp-float {
    right: 16px;
    bottom: 16px;
  }

  .whatsapp-float .whatsapp-btn {
    width: 52px;
    height: 52px;
    font-size: 26px;
  }
}

/*--------------------------------------------------------------
# Modais (Bootstrap) — pré-cadastro e vídeo
--------------------------------------------------------------*/
.modal-content {
  border: 0;
  border-radius: var(--radius-lg);
  font-family: var(--font);
}

.modal .modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
}

.pre-cadastro-modal-content .form-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
}

.pre-cadastro-modal-content .form-control,
.pre-cadastro-modal-content .form-select {
  min-height: 44px;
  border-color: var(--border);
  border-radius: 10px;
}

.pre-cadastro-modal-content .form-control:focus,
.pre-cadastro-modal-content .form-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 0.25rem rgba(231, 163, 35, 0.2);
}

.pre-cadastro-modal-content .modal-footer {
  border-top: 0;
  padding-top: 0;
}

.pre-cadastro-modal-content #preCadastroSubmitBtn {
  width: 100%;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--gold);
  border: 0;
  border-radius: 10px;
  color: var(--navy-deep);
  font-weight: 700;
}

.pre-cadastro-modal-content #preCadastroSubmitBtn:hover:not(:disabled) {
  background: var(--gold-hover);
}

.pre-cadastro-modal-content #preCadastroSubmitBtn:disabled {
  opacity: 0.7;
}

.video-demo-modal-content {
  overflow: hidden;
}

/* Com o menu móvel aberto, o botão flutuante não cobre os CTAs do menu. */
body.nav-open .whatsapp-float {
  display: none;
}

/* Carrossel de planos no celular: conteúdo mais compacto. */
@media (max-width: 575px) {
  .plan-grid .plan { padding: 24px 18px 20px; border-radius: 14px; }
  .plan-grid .plan .tag { top: -14px; padding: 5px 14px; font-size: 12.5px; }
  .plan-grid .plan-head { gap: 12px; }
  .plan-grid .plan-icon { width: 42px; height: 42px; border-radius: 11px; font-size: 19px; }
  .plan-grid .plan h3 { font-size: 1.05rem; }
  .plan-grid .plan .desc { margin-top: 12px; padding-bottom: 14px; font-size: 13.5px; }
  .plan-grid .plan .price { margin: 16px 0; gap: 2px 6px; }
  .plan-grid .plan .cur { font-size: 16px; }
  .plan-grid .plan .val { font-size: 2.25rem; }
  .plan-grid .plan .per { font-size: 14.5px; }
  .plan-grid .plan ul { gap: 8px; margin-bottom: 22px; }
  .plan-grid .plan li { padding-left: 26px; font-size: 13.5px; }
  .plan-grid .plan li::before { font-size: 15px; }
  .plan-grid .plan .plan-cta { min-height: 48px; font-size: 14.5px; }
}
