@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&display=swap");

:root {
  --bg: #05070a;
  --bg-soft: #0b1220;
  --surface: #0f1729;
  --accent: #38bdf8;
  --accent-hover: #7dd3fc;
  --accent-ring: rgba(56, 189, 248, 0.45);
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  --border: rgba(255, 255, 255, 0.08);
  --font: "IBM Plex Sans", system-ui, sans-serif;
  --radius: 10px;
  --header-h: clamp(64px, 12vw, 72px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1120px;
  /* Fluid rhythm — funciona em 320px → ultrawide */
  --pad-x: clamp(1rem, 4vw + 0.25rem, 1.75rem);
  --section-y: clamp(2.5rem, 5vw + 1rem, 4.25rem);
  --tap-min: 44px;
}

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

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

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  overflow-x: clip;
  min-height: 100vh;
  min-height: 100dvh;
}

body.menu-open {
  overflow: hidden;
}

@media (min-width: 901px) {
  body.menu-open {
    overflow: unset;
  }
}

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

/* Canvas do hero usa 100%×100% do bloco — não aplicar height:auto global */

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

:focus:not(:focus-visible) {
  outline: none;
}

main {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: max(var(--pad-x), env(safe-area-inset-left, 0px));
  padding-right: max(var(--pad-x), env(safe-area-inset-right, 0px));
}

/* Fallback hero */
.hero-fallback {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -20%, rgba(56, 189, 248, 0.06), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, #0a0f18 100%);
  pointer-events: none;
}

body.is-fallback .hero-fallback {
  display: block;
}

body.is-fallback .hero-canvas {
  opacity: 0;
  visibility: hidden;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  z-index: 200;
  min-height: var(--header-h);
  border-bottom: 1px solid var(--border);
  background: rgba(5, 7, 10, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding-top: env(safe-area-inset-top, 0px);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.5rem max(var(--pad-x), env(safe-area-inset-left, 0px)) 0.5rem max(var(--pad-x), env(safe-area-inset-right, 0px));
  min-height: calc(var(--header-h) - env(safe-area-inset-top, 0px));
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 3vw, 1.5rem);
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
  flex-shrink: 0;
  min-width: 0;
}

.brand-mark {
  font-weight: 700;
  font-size: clamp(0.95rem, 2.8vw, 1.05rem);
  letter-spacing: clamp(0.12em, 2vw, 0.2em);
  text-transform: uppercase;
}

.brand-sub {
  font-size: clamp(0.58rem, 1.8vw, 0.65rem);
  color: var(--text-subtle);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.header-links {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: clamp(1rem, 3vw, 1.75rem);
  margin-left: auto;
  flex-shrink: 0;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(0.65rem, 2vw, 1.15rem);
}

/* Serviços, Planos — âncoras na página */
.main-nav .nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.4rem 0.15rem;
  font-size: clamp(0.875rem, 1.6vw, 0.9375rem);
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  transition:
    color 0.2s var(--ease),
    text-decoration-color 0.2s var(--ease);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.28em;
  white-space: nowrap;
}

.main-nav .nav-link:hover {
  color: var(--text);
  text-decoration-color: rgba(148, 163, 184, 0.55);
}

/* Portal — acesso / login ao sistema (área de cliente) */
.nav-portal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.5rem 1.25rem;
  font-size: clamp(0.8125rem, 1.5vw, 0.875rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  border-radius: 8px;
  border: 1px solid rgba(56, 189, 248, 0.5);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.15) inset,
    0 4px 14px rgba(56, 189, 248, 0.2);
  transition:
    background 0.2s var(--ease),
    border-color 0.2s var(--ease),
    color 0.2s var(--ease),
    transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
  white-space: nowrap;
}

.nav-portal:hover {
  color: var(--bg);
  background: var(--accent-hover);
  border-color: rgba(125, 211, 252, 0.6);
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 6px 20px rgba(56, 189, 248, 0.28);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lang-switch {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: -0.15rem;
  margin-right: -0.15rem;
}

/* Estilo “link”: discreto no header; moldura só no hover/foco (select transparente = sem branco no macOS) */
.lang-select-wrap {
  position: relative;
  display: inline-flex;
  align-items: stretch;
  min-height: 38px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  box-shadow: none;
  transition:
    background 0.2s var(--ease),
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.lang-select-wrap:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.06);
}

.lang-select-wrap:focus-within {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(148, 163, 184, 0.22);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.12);
}

.lang-select-wrap::after {
  content: "";
  position: absolute;
  right: 0.35rem;
  top: 50%;
  width: 0.35rem;
  height: 0.35rem;
  margin-top: -0.22rem;
  border-right: 1.5px solid var(--text-subtle);
  border-bottom: 1.5px solid var(--text-subtle);
  transform: rotate(45deg);
  pointer-events: none;
  opacity: 0.5;
  transition: opacity 0.2s var(--ease);
}

.lang-select-wrap:hover::after,
.lang-select-wrap:focus-within::after {
  opacity: 0.75;
}

.lang-select {
  flex: 1;
  min-width: 3.35rem;
  min-height: 38px;
  padding: 0.3rem 1.45rem 0.3rem 0.35rem;
  margin: 0;
  font-family: inherit;
  font-size: clamp(0.68rem, 1.25vw, 0.78rem);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  -webkit-text-fill-color: var(--text-muted);
  background: transparent !important;
  background-color: transparent !important;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  color-scheme: dark;
  transition: color 0.2s var(--ease), -webkit-text-fill-color 0.2s var(--ease);
}

.lang-select-wrap:hover .lang-select,
.lang-select-wrap:focus-within .lang-select {
  color: var(--text);
  -webkit-text-fill-color: var(--text);
}

.lang-select:focus {
  outline: none;
}

.lang-select::-ms-expand {
  display: none;
}

.lang-select option,
.lang-select optgroup {
  background-color: var(--bg-soft);
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.06em;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  flex: 0 0 var(--tap-min);
  width: var(--tap-min);
  height: var(--tap-min);
  margin-left: auto;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  transition:
    background 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border);
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  margin: 0 auto;
  background: currentColor;
  border-radius: 1px;
}

/* Mobile — Serviços (navegação) e Portal (login) separados */
@media (max-width: 900px) {
  .header-links {
    display: none;
    position: fixed;
    top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
    left: max(var(--pad-x), env(safe-area-inset-left, 0px));
    right: max(var(--pad-x), env(safe-area-inset-right, 0px));
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    margin-left: 0;
    padding: 0.75rem;
    background: rgba(8, 12, 20, 0.96);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 199;
  }

  .header-links.is-open {
    display: flex;
  }

  .main-nav {
    order: 1;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
  }

  .main-nav .nav-link {
    width: 100%;
    min-height: var(--tap-min);
    justify-content: flex-start;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    color: var(--text);
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
  }

  .main-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.07);
    text-decoration: none;
  }

  .nav-portal {
    order: 3;
    width: 100%;
    min-height: var(--tap-min);
    justify-content: center;
    margin-top: 0.15rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }

  .nav-portal:hover {
    transform: none;
  }

  .lang-switch {
    width: 100%;
    order: 2;
    margin-left: 0;
    margin-right: 0;
  }

  .lang-select-wrap {
    width: 100%;
    min-height: var(--tap-min);
    justify-content: center;
  }

  .lang-select {
    width: 100%;
    min-height: var(--tap-min);
    padding-left: 0.75rem;
    padding-right: 2rem;
    font-size: 0.8125rem;
  }

  .lang-select-wrap::after {
    right: 0.85rem;
    opacity: 0.45;
  }

  .menu-toggle {
    display: flex;
  }
}

@media (max-width: 380px) {
  .brand-mark {
    letter-spacing: 0.1em;
  }
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap-min);
  padding: 0.65rem 1.35rem;
  font-size: clamp(0.8125rem, 2.5vw, 0.875rem);
  font-weight: 600;
  color: var(--bg);
  background: var(--accent);
  border: none;
  border-radius: 8px;
  transition:
    background 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap-min);
  padding: 0.65rem 1.35rem;
  font-size: clamp(0.8125rem, 2.5vw, 0.875rem);
  font-weight: 600;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition:
    border-color 0.2s var(--ease),
    background 0.2s var(--ease);
}

.btn-secondary:hover {
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(56, 189, 248, 0.06);
}

.btn-lg {
  padding: 0.85rem 1.5rem;
  font-size: clamp(0.875rem, 2.8vw, 0.9375rem);
}

.btn-block {
  width: 100%;
}

/* Hero — contido à viewport; canvas não pode ultrapassar o bloco */
.hero {
  position: relative;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  isolation: isolate;
  min-height: min(92svh, 820px);
  min-height: min(92dvh, 820px);
  padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + clamp(1.75rem, 5vw, 3rem));
  padding-bottom: clamp(2.5rem, 8vw, 4rem);
  padding-left: 0;
  padding-right: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  display: block;
  vertical-align: top;
  pointer-events: none;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 120% 95% at 50% 45%, transparent 0%, transparent 22%, rgba(8, 14, 26, 0.45) 55%, rgba(5, 8, 14, 0.88) 100%),
    linear-gradient(180deg, rgba(6, 182, 212, 0.04) 0%, transparent 35%, transparent 70%, rgba(5, 7, 10, 0.35) 100%);
}

.hero-inner-wrap {
  position: relative;
  z-index: 3;
  width: 100%;
  flex-shrink: 0;
}

.hero-inner {
  width: 100%;
  max-width: min(640px, 100%);
}

.hero-kicker {
  margin: 0 0 clamp(0.65rem, 2vw, 1rem);
  font-size: clamp(0.65rem, 2vw, 0.75rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 1.4;
}

.hero-title {
  margin: 0;
  font-size: clamp(1.65rem, 6vw + 0.5rem, 2.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  text-wrap: balance;
}

.hero-lead {
  margin: clamp(1rem, 3vw, 1.25rem) 0 0;
  font-size: clamp(0.9375rem, 2.8vw, 1.0625rem);
  color: var(--text-muted);
  max-width: 36rem;
  text-wrap: pretty;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.65rem, 3vw, 1rem);
  margin-top: clamp(1.5rem, 4vw, 2rem);
}

@media (max-width: 480px) {
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-ctas .btn-primary,
  .hero-ctas .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}

.hero-trust {
  margin: clamp(1.75rem, 5vw, 2.5rem) 0 0;
  padding: 0;
  list-style: none;
  font-size: clamp(0.75rem, 2.2vw, 0.8125rem);
  color: var(--text-subtle);
}

.hero-trust li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.5rem;
  line-height: 1.45;
}

.hero-trust li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
}

/* Sections */
.section {
  padding: var(--section-y) 0;
}

.trust-bar {
  padding: clamp(1.75rem, 4vw, 2.35rem) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11.5rem), 1fr));
  gap: clamp(1rem, 3vw, 1.5rem);
}

.trust-item {
  text-align: center;
  padding: 0.35rem 0;
}

.trust-value {
  display: block;
  font-weight: 600;
  font-size: clamp(0.8125rem, 2.5vw, 0.95rem);
  color: var(--text);
  line-height: 1.35;
  word-break: break-word;
}

.trust-label {
  display: block;
  margin-top: 0.25rem;
  font-size: clamp(0.68rem, 2vw, 0.75rem);
  color: var(--text-muted);
  line-height: 1.35;
}

.section-head {
  text-align: center;
  max-width: min(560px, 100%);
  margin: 0 auto clamp(2rem, 5vw, 2.75rem);
  padding: 0 var(--pad-x);
}

.section-head h2 {
  margin: 0 0 clamp(0.45rem, 2vw, 0.65rem);
  font-size: clamp(1.35rem, 4vw + 0.25rem, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-wrap: balance;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: clamp(0.875rem, 2.5vw, 1rem);
  line-height: 1.55;
  text-wrap: pretty;
}

.section-alt {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 42%, var(--bg) 100%);
}

/* Por que EIVUS — grelha de valor */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 1.35rem);
  max-width: 920px;
  margin: 0 auto;
}

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

.why-card {
  padding: clamp(1.35rem, 3.5vw, 1.65rem) clamp(1.25rem, 3vw, 1.5rem);
  background: rgba(15, 23, 41, 0.65);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
  transition:
    border-color 0.2s var(--ease),
    background 0.2s var(--ease);
}

.why-card:hover {
  border-color: rgba(56, 189, 248, 0.22);
  background: rgba(15, 23, 41, 0.88);
}

.why-card-title {
  margin: 0 0 0.5rem;
  font-size: clamp(0.9375rem, 2.2vw, 1.0625rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.why-card-text {
  margin: 0;
  font-size: clamp(0.8125rem, 2.1vw, 0.9375rem);
  color: var(--text-muted);
  line-height: 1.6;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 3vw, 1.35rem);
}

@media (max-width: 899px) {
  .feature-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }
}

@media (min-width: 640px) and (max-width: 899px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: none;
  }

  .feature-grid .feature-card:last-child {
    grid-column: 1 / -1;
    max-width: 520px;
    justify-self: center;
    width: 100%;
  }
}

.feature-card {
  padding: clamp(1.35rem, 4vw, 1.75rem) clamp(1.25rem, 4vw, 1.5rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-height: 100%;
}

.feature-card h3 {
  margin: 0 0 clamp(0.45rem, 2vw, 0.65rem);
  font-size: clamp(1rem, 2.5vw, 1.125rem);
}

.feature-card p {
  margin: 0;
  font-size: clamp(0.875rem, 2.3vw, 0.9375rem);
  color: var(--text-muted);
  line-height: 1.58;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 3vw, 1.35rem);
  align-items: stretch;
}

@media (max-width: 991px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: min(440px, 100%);
    margin: 0 auto;
  }
}

@media (min-width: 640px) and (max-width: 991px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: none;
  }

  .pricing-grid .price-card:last-child {
    grid-column: 1 / -1;
    max-width: min(440px, 100%);
    justify-self: center;
    width: 100%;
  }
}

.price-card {
  position: relative;
  padding: clamp(1.5rem, 4vw, 2rem) clamp(1.35rem, 4vw, 1.75rem);
  padding-top: clamp(1.75rem, 4vw, 2.25rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.price-card--featured {
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.08);
}

.price-badge {
  position: absolute;
  top: clamp(0.75rem, 2vw, 1rem);
  right: clamp(0.75rem, 2vw, 1rem);
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  max-width: calc(100% - 7rem);
  text-align: right;
  line-height: 1.3;
}

.price-card--featured h3 {
  padding-right: clamp(4rem, 18vw, 6.5rem);
}

.price-card h3 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.15rem, 3vw, 1.35rem);
}

.price-tag {
  margin: 0 0 0.65rem;
  font-size: clamp(0.8125rem, 2.3vw, 0.875rem);
  font-weight: 600;
  color: var(--accent);
}

.price-desc {
  margin: 0 0 clamp(1rem, 3vw, 1.25rem);
  font-size: clamp(0.8125rem, 2.3vw, 0.9rem);
  color: var(--text-muted);
  flex-grow: 0;
  line-height: 1.55;
}

.price-features {
  margin: 0 0 clamp(1.25rem, 3vw, 1.5rem);
  padding: 0;
  list-style: none;
  font-size: clamp(0.8125rem, 2.3vw, 0.875rem);
  color: var(--text-muted);
}

.price-features li {
  padding: 0.35rem 0 0.35rem 1.15rem;
  position: relative;
  line-height: 1.45;
}

.price-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.75rem;
}

.price-card .btn-primary {
  margin-top: auto;
}

/* CTA band */
.cta-band {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.25rem, 4vw, 2rem);
  flex-wrap: wrap;
}

.cta-band h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.15rem, 3.5vw, 1.35rem);
  line-height: 1.25;
  text-wrap: balance;
}

.cta-band p {
  margin: 0;
  color: var(--text-muted);
  font-size: clamp(0.875rem, 2.5vw, 0.9375rem);
  max-width: 42ch;
}

@media (max-width: 600px) {
  .cta-band-inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .cta-band-inner p {
    max-width: none;
  }

  .cta-band-inner .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}

/* Footer — corporativo em colunas */
.site-footer {
  margin-top: 0;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 55%, var(--bg) 100%);
}

#footer-contato {
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
}

#solucoes,
#planos {
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
}

.footer-main {
  padding: clamp(2.75rem, 6vw, 4rem) 0 calc(clamp(2rem, 5vw, 2.75rem) + env(safe-area-inset-bottom, 0px));
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 3rem);
  align-items: start;
}

@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-col-brand {
    grid-column: 1 / -1;
    max-width: 36rem;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-col-brand {
    grid-column: auto;
    max-width: none;
  }
}

.footer-logo {
  display: inline-block;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: var(--text);
  margin-bottom: 0.65rem;
}

.footer-logo:hover {
  color: var(--accent);
}

.footer-logo-mark {
  letter-spacing: 0.18em;
  margin-right: 0.35rem;
}

.footer-tagline {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 26rem;
}

.footer-portal {
  display: inline-flex;
  align-items: center;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
}

.footer-portal:hover {
  text-decoration: underline;
}

.footer-heading {
  margin: 0 0 1rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.65rem;
}

.footer-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s var(--ease);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-contact {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-contact li {
  margin-bottom: 1rem;
}

.footer-contact-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 0.25rem;
}

.footer-contact a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  word-break: break-word;
}

.footer-contact a:hover {
  text-decoration: underline;
}

.footer-bottom {
  margin-top: clamp(2rem, 5vw, 2.75rem);
  padding-top: clamp(1.35rem, 3vw, 1.75rem);
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-copy {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-subtle);
  line-height: 1.5;
  letter-spacing: 0.02em;
}

/* Botão flutuante WhatsApp — lado direito */
.wa-float {
  position: fixed;
  z-index: 210;
  right: max(1rem, env(safe-area-inset-right, 0px));
  left: auto;
  bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1rem 0.65rem 0.7rem;
  background: #25d366;
  color: #fff;
  border-radius: 999px;
  box-shadow:
    0 4px 16px rgba(37, 211, 102, 0.45),
    0 2px 8px rgba(0, 0, 0, 0.25);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition:
    transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease),
    background 0.2s var(--ease);
}

.wa-float:hover {
  background: #20bd5a;
  transform: translateY(-2px);
  box-shadow:
    0 8px 28px rgba(37, 211, 102, 0.5),
    0 4px 12px rgba(0, 0, 0, 0.3);
  color: #fff;
}

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

.wa-float-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.wa-float-label {
  padding-right: 0.15rem;
}

@media (max-width: 380px) {
  .wa-float-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .wa-float {
    padding: 0.75rem;
    border-radius: 50%;
  }
}
