:root {
  --bg: #f5f8fd;
  --bg-soft: #eaf0fa;
  --surface: #ffffff;
  --text: #1a2a44;
  --text-soft: #516584;
  --primary: #0f5da3;
  --primary-strong: #1891ea;
  --accent: #efbb56;
  --accent-soft: #6dcff4;
  --border: #cfdcf0;
  --container: 1120px;
  /* Barra mais baixa; logo maior (pode “sair” alguns px — ver .header overflow) */
  --header-nav-height: 64px;
  --header-logo-size: 84px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Roboto", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

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

.container {
  width: min(100% - 2rem, var(--container));
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  overflow: visible;
  backdrop-filter: blur(10px);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(15, 93, 163, 0.06);
}

.nav-wrapper {
  height: var(--header-nav-height);
  min-height: var(--header-nav-height);
  max-height: var(--header-nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  overflow: visible;
}

.brand {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.brand-logo {
  width: var(--header-logo-size);
  height: var(--header-logo-size);
  display: block;
  flex-shrink: 0;
  border-radius: 0;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav a {
  color: var(--primary);
  font-weight: 500;
}

.nav a:hover {
  color: var(--primary-strong);
}

.nav a.btn {
  background: #fff;
  border: 1px solid var(--primary);
  color: var(--primary);
}

.nav a.btn:hover {
  color: var(--primary-strong);
  border-color: var(--primary-strong);
}

.nav--tools-only {
  gap: 0.5rem;
}

.nav-current {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.page-tools-main {
  min-height: 50vh;
}

.tools-page-hero {
  padding: 3.25rem 0 2.25rem;
  background: linear-gradient(180deg, #15335f 0%, #0d2343 100%);
  color: #fff;
}

.tools-page-hero h1 {
  margin-bottom: 0.65rem;
}

.tools-page-intro {
  color: #d9dde5;
  max-width: 65ch;
  margin: 0;
}

.tools-directory {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.tool-card--wide {
  max-width: 100%;
}

.tool-card--form {
  max-width: 36rem;
}

.tools-index-heading {
  margin-top: 0;
}

.footer-tools {
  grid-template-columns: 1fr 1fr;
}

.footer-tools h2 {
  font-size: 1.1rem;
}

.footer-tools h3 {
  font-size: 1rem;
}

.form-row {
  display: grid;
  gap: 0.35rem;
}

.form-row code {
  font-size: 0.85em;
}

input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sped-dropzone {
  border: 1px dashed #aac0e3;
  background: #fafcfe;
  color: var(--text);
  border-radius: 0.75rem;
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 120ms ease, background-color 120ms ease;
}

.sped-dropzone:hover,
.sped-dropzone.is-drag-over {
  border-color: var(--primary-strong);
  background: #f2f7ff;
}

.sped-dropzone-title {
  margin: 0;
  font-weight: 600;
}

.sped-dropzone-subtitle {
  margin: 0.3rem 0 0;
  color: var(--text-soft);
  font-size: 0.88rem;
}

.sped-matriz-fieldset {
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.75rem 0.85rem;
  margin: 0;
}

.sped-matriz-fieldset[hidden] {
  display: none !important;
}

.sped-matriz-fieldset legend {
  font-size: 0.88rem;
  color: var(--text-soft);
  padding: 0 0.4rem;
}

.sped-matriz-help {
  margin: 0 0 0.45rem;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.sped-matriz-lista {
  display: grid;
  gap: 0.45rem;
}

.sped-matriz-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  padding: 0.5rem 0.6rem;
  font-size: 0.92rem;
  color: var(--text);
  min-width: 0;
}

.sped-matriz-item span {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.form-sped .btn[disabled],
.form-sped .btn[aria-busy="true"] {
  opacity: 0.72;
  cursor: wait;
  transform: none;
  box-shadow: none;
}

.sped-api-note {
  font-size: 0.86rem;
  color: var(--text-soft);
  margin: 0.35rem 0 0;
  line-height: 1.45;
}

.sped-api-note code {
  font-size: 0.78rem;
  word-break: break-all;
}

.sped-status {
  margin: 0.65rem 0 0;
  font-size: 0.92rem;
  line-height: 1.45;
}

.sped-status--error {
  color: #b71c1c;
}

.sped-status--ok {
  color: #1b5e20;
}

.menu-toggle {
  display: none;
  background: transparent;
  color: var(--primary);
  border: 1px solid rgba(15, 93, 163, 0.45);
  border-radius: 0.5rem;
  padding: 0.4rem 0.6rem;
  font-size: 1.1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: linear-gradient(180deg, var(--primary-strong), var(--primary));
  color: #fff;
  font-weight: 600;
  padding: 0.8rem 1.1rem;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(24, 145, 234, 0.35);
}

.btn-sm {
  padding: 0.55rem 0.9rem;
  font-size: 0.9rem;
}

.btn-ghost {
  background: transparent;
  border-color: #88aee0;
  color: #eaf3ff;
}

.hero {
  padding: 6rem 0 4rem;
  background: linear-gradient(180deg, #15335f 0%, #0d2343 100%);
  color: #fff;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin-top: 0;
}

h1 {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 0.8rem;
}

p {
  margin-top: 0;
}

.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  font-size: 0.78rem;
  margin-bottom: 0.8rem;
}

.hero-text {
  color: #d9dde5;
  max-width: 55ch;
}

.hero-actions {
  display: flex;
  gap: 0.7rem;
  margin: 1.4rem 0;
}

.hero-highlights {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.55rem;
  color: #d9dde5;
}

.hero-highlights li::before {
  content: "✓ ";
  color: #efbb56;
}

.hero-card,
.info-card,
.product-card,
.tool-card,
.support-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.2rem;
}

.hero-card p {
  color: var(--text-soft);
}

.hero-card h2,
.hero-card strong {
  color: #0f3b70;
}

.hero-preview {
  width: 100%;
  margin-top: 0.9rem;
  border-radius: 0.8rem;
  border: 1px solid #e2e6ef;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  margin-top: 1rem;
}

.stats strong {
  display: block;
  font-size: 1.08rem;
}

.stats span {
  color: var(--text-soft);
  font-size: 0.84rem;
}

.section {
  padding: 4.2rem 0;
  background: var(--bg);
}

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

.section.section-product-accent {
  background: linear-gradient(180deg, #15335f 0%, #0c1f3a 100%);
  border-top: 1px solid rgba(109, 207, 244, 0.2);
  border-bottom: 1px solid rgba(109, 207, 244, 0.2);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.cards-grid,
.product-grid,
.tools-grid,
.gallery-grid,
.metrics-grid {
  display: grid;
  gap: 1rem;
}

.cards-grid {
  grid-template-columns: 1fr;
}

/* Cartões em faixas alternadas (evita blocos seguidos com a mesma cor) */
.cards-grid .info-card:nth-child(even) {
  background: var(--bg-soft);
}

/* Soluções: azul escuro alternado (fileira 2 com --phase-b inverte o padrão em xadrez) */
#solucoes .solutions-grid:not(.solutions-grid--phase-b) > .product-card:nth-child(3n + 2) {
  background: linear-gradient(180deg, #15335f 0%, #0c1f3a 100%);
  border: 1px solid rgba(109, 207, 244, 0.28);
  box-shadow: 0 12px 32px rgba(8, 24, 48, 0.35);
  color: #fff;
}

#solucoes .solutions-grid:not(.solutions-grid--phase-b) > .product-card:nth-child(3n + 2) h3 {
  color: #fff;
}

#solucoes .solutions-grid:not(.solutions-grid--phase-b) > .product-card:nth-child(3n + 2) ul {
  color: rgba(255, 255, 255, 0.9);
}

#solucoes .solutions-grid--phase-b > .product-card:nth-child(3n + 2) h3 {
  color: #0f3b70;
}

#solucoes .solutions-grid--phase-b > .product-card:nth-child(3n + 1),
#solucoes .solutions-grid--phase-b > .product-card:nth-child(3n + 3) {
  background: linear-gradient(180deg, #15335f 0%, #0c1f3a 100%);
  border: 1px solid rgba(109, 207, 244, 0.28);
  box-shadow: 0 12px 32px rgba(8, 24, 48, 0.35);
  color: #fff;
}

#solucoes .solutions-grid--phase-b > .product-card:nth-child(3n + 1) h3,
#solucoes .solutions-grid--phase-b > .product-card:nth-child(3n + 3) h3 {
  color: #fff;
}

#solucoes .solutions-grid--phase-b > .product-card:nth-child(3n + 1) ul,
#solucoes .solutions-grid--phase-b > .product-card:nth-child(3n + 3) ul {
  color: rgba(255, 255, 255, 0.9);
}

.features-grid .feature-card:nth-child(6n + 2),
.features-grid .feature-card:nth-child(6n + 4),
.features-grid .feature-card:nth-child(6n + 6) {
  background: var(--bg-soft);
}

.product-grid,
.tools-grid {
  grid-template-columns: repeat(3, 1fr);
}

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

.platform-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}

.section-intro {
  color: var(--text-soft);
  max-width: 70ch;
}

.gallery-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
}

.gallery-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

.gallery-card h3 {
  margin: 0;
  padding: 0.9rem 1rem 1rem;
  font-size: 0.98rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 0.6rem;
  align-items: stretch;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 10px 28px rgba(15, 41, 76, 0.06);
}

.feature-illustration {
  --feature-icon-max: clamp(4.75rem, 24vw, 7.35rem);
  width: 100%;
  min-height: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
  background: #eef2f8;
  padding: 0.85rem;
  box-sizing: border-box;
}

.feature-illustration img,
.feature-illustration svg {
  width: auto;
  height: auto;
  max-width: var(--feature-icon-max);
  max-height: var(--feature-icon-max);
  object-fit: contain;
  object-position: center;
  display: block;
  flex-shrink: 0;
}

.feature-body {
  padding: 1.05rem 1.15rem 1.25rem;
  display: grid;
  gap: 0.55rem;
  flex: 1;
  align-content: start;
}

.feature-body h3 {
  margin: 0;
  font-size: 1.05rem;
  color: #0f3b70;
}

.feature-body p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.94rem;
  line-height: 1.5;
}

.product-grid ul,
.support-card ul {
  margin: 0;
  padding-left: 1rem;
  color: var(--text-soft);
}

.section-subtitle {
  margin: 1.8rem 0 0.8rem;
  color: #0f3b70;
}

.solutions-grid {
  align-items: stretch;
}

.solution-item {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  height: 100%;
}

.solution-item h3 {
  margin: 0;
  color: #0f3b70;
}

.solution-item ul {
  margin-top: 0.1rem;
}

.solution-card {
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  gap: 1.4rem;
  align-items: stretch;
  padding: 1.3rem;
}

.solution-card .hero-preview {
  margin-top: 0;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  background: #f3f5fa;
}

.solution-content {
  display: grid;
  gap: 0.75rem;
  align-content: start;
}

.solution-content h3 {
  margin: 0;
}

.solution-content p {
  margin: 0;
  color: var(--text-soft);
}

.solution-content ul {
  margin: 0;
  padding-left: 1rem;
  color: var(--text-soft);
}

.revenda {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.2rem;
}

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

.tool-form {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.9rem;
}

label {
  font-size: 0.86rem;
  color: var(--text-soft);
}

input {
  border: 1px solid #aac0e3;
  background: #fff;
  color: var(--text);
  border-radius: 0.5rem;
  padding: 0.62rem 0.7rem;
}

input:focus {
  outline: 2px solid rgba(47, 124, 255, 0.45);
  border-color: transparent;
}

.resultado {
  min-height: 1.4rem;
  margin: 0.2rem 0 0;
  font-weight: 600;
}

.support-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
}

.support-card a {
  color: var(--primary);
}

.support-page-intro {
  max-width: 40rem;
}

.support-tools-col {
  margin-top: 2rem;
  align-items: stretch;
}

.tool-card-steps {
  margin: 0.75rem 0 0;
  padding-left: 1.15rem;
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.55;
}

.tool-card-footnote {
  font-size: 0.92rem;
  color: var(--text-soft);
  margin: 0;
}

.tool-card-hint {
  margin-top: 1rem;
  margin-bottom: 0.35rem;
}

.tool-card-actions {
  margin-top: 1rem;
}

.metrics-grid {
  grid-template-columns: repeat(5, 1fr);
}

.metric-card {
  background: linear-gradient(180deg, #bc002c, #ea083d);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1rem;
  text-align: center;
  color: #fff;
}

.metric-card strong {
  display: block;
  font-size: 1.45rem;
}

.metric-card span {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0 1.4rem;
  background: #0f2b52;
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.footer p,
.footer a {
  color: #d8e8ff;
  display: block;
  margin: 0.35rem 0;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  align-items: center;
}

.social-links li {
  margin: 0;
}

.footer .social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.65rem;
  height: 2.65rem;
  margin: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.footer .social-link:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

.footer .social-link svg {
  width: 1.3rem;
  height: 1.3rem;
  fill: currentColor;
}

.copyright {
  text-align: center;
  margin-top: 1rem;
  color: #9fc0ed;
  font-size: 0.86rem;
}

.destaques-section.section {
  padding-top: 0;
  padding-bottom: 0;
}

.destaques-section .destaque-panel {
  padding: 4.2rem 0;
}

.destaques-section .destaque-panel--muted {
  background: var(--bg-soft);
}

.destaques-section .destaque-panel--accent {
  background: linear-gradient(180deg, #15335f 0%, #0c1f3a 100%);
  border-top: 1px solid rgba(109, 207, 244, 0.2);
  border-bottom: 1px solid rgba(109, 207, 244, 0.2);
}

.destaques-section .destaque-title {
  margin-bottom: 0.65rem;
}

.design-carousel {
  position: relative;
  margin-top: 1.35rem;
}

.design-carousel-viewport {
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #eef2f8, #e4e9f2);
  box-shadow: 0 16px 44px rgba(15, 41, 76, 0.1);
}

.design-carousel-track {
  display: flex;
  transition: transform 0.45s ease;
  will-change: transform;
}

.design-slide {
  flex: 0 0 100%;
  min-width: 0;
  margin: 0;
  position: relative;
  background: #f2f5fa;
}

.design-slide img {
  display: block;
  width: 100%;
  height: clamp(240px, 52vw, 500px);
  object-fit: contain;
  object-position: center center;
}

.design-slide-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.35rem 1.35rem 1.15rem;
  background: linear-gradient(
    transparent,
    rgba(12, 26, 48, 0.12) 20%,
    rgba(12, 26, 48, 0.88)
  );
}

.design-slide-tag {
  display: inline-block;
  font-size: clamp(0.9rem, 0.76rem + 0.75vw, 1.15rem);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.45rem;
  text-shadow:
    0 1px 3px rgba(0, 0, 0, 0.95),
    0 2px 10px rgba(0, 0, 0, 0.55);
}

.design-slide-caption p {
  margin: 0;
  font-size: clamp(1.02rem, 0.95rem + 0.35vw, 1.2rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.96);
  text-shadow:
    0 1px 3px rgba(0, 0, 0, 0.92),
    0 2px 14px rgba(0, 0, 0, 0.65),
    0 0 1px rgba(0, 0, 0, 0.8);
}

.design-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 999px;
  border: none;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  line-height: 1;
  color: #fff;
  background: rgba(15, 41, 76, 0.42);
  cursor: pointer;
  transition: background 120ms ease, transform 120ms ease;
}

.design-carousel-btn:hover {
  background: rgba(15, 41, 76, 0.62);
}

.design-carousel-btn:active {
  transform: translateY(-50%) scale(0.96);
}

.design-carousel-prev {
  left: 0.65rem;
}

.design-carousel-next {
  right: 0.65rem;
}

.design-carousel-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
  margin-top: 1rem;
}

.design-carousel-dot {
  width: 0.55rem;
  height: 0.55rem;
  border: none;
  border-radius: 999px;
  padding: 0;
  background: #b4c3dc;
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease;
}

.design-carousel-dot.is-active {
  background: var(--primary);
  transform: scale(1.15);
}

.highlight-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

/* Coluna da imagem um pouco mais larga — telas altas deixavam de crescer só com max-height */
.highlight-split--comanda {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
}

.highlight-split--venda {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
}

.highlight-media {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
}

.highlight-split--comanda .highlight-copy {
  text-align: center;
}

.highlight-split--comanda .highlight-copy .btn {
  margin-top: 0.25rem;
}

.highlight-heading {
  margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  color: #0f3b70;
}

.highlight-text {
  margin: 0 0 1.1rem;
  color: var(--text-soft);
  line-height: 1.55;
  max-width: 52ch;
}

.highlight-split--comanda .highlight-text {
  margin-left: auto;
  margin-right: auto;
}

.highlight-media img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(82vh, 560px);
  margin: 0 auto;
  object-fit: contain;
  border-radius: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  filter: drop-shadow(0 16px 32px rgba(15, 41, 76, 0.14));
}

.destaques-section .destaque-panel--accent .highlight-media img {
  filter: drop-shadow(0 16px 36px rgba(0, 0, 0, 0.35));
}

.highlight-copy--on-dark .highlight-heading,
.highlight-copy--on-dark .highlight-text {
  color: #fff;
}

.highlight-copy--on-dark .highlight-text {
  opacity: 0.94;
  max-width: none;
}

.btn.btn-outline-light {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.9);
  color: #fff;
  box-shadow: none;
}

.btn.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Scroll reveal (activated when html has class from script.js) */
html.js-reveal .reveal-on-scroll:not(.is-visible) {
  opacity: 0;
  transform: translateY(1.25rem);
  transition:
    opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

html.js-reveal .reveal-on-scroll.reveal-from-left:not(.is-visible) {
  transform: translateX(-1.25rem);
}

html.js-reveal .reveal-on-scroll.reveal-from-right:not(.is-visible) {
  transform: translateX(1.25rem);
}

html.js-reveal .reveal-on-scroll.is-visible {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.cards-grid .reveal-on-scroll:nth-child(1) {
  transition-delay: 0s;
}
.cards-grid .reveal-on-scroll:nth-child(2) {
  transition-delay: 0.07s;
}
.cards-grid .reveal-on-scroll:nth-child(3) {
  transition-delay: 0.14s;
}

.solutions-grid .reveal-on-scroll:nth-child(1) {
  transition-delay: 0s;
}
.solutions-grid .reveal-on-scroll:nth-child(2) {
  transition-delay: 0.08s;
}
.solutions-grid .reveal-on-scroll:nth-child(3) {
  transition-delay: 0.16s;
}

.features-grid .reveal-on-scroll:nth-child(1) {
  transition-delay: 0s;
}
.features-grid .reveal-on-scroll:nth-child(2) {
  transition-delay: 0.06s;
}
.features-grid .reveal-on-scroll:nth-child(3) {
  transition-delay: 0.12s;
}
.features-grid .reveal-on-scroll:nth-child(4) {
  transition-delay: 0.18s;
}
.features-grid .reveal-on-scroll:nth-child(5) {
  transition-delay: 0.24s;
}
.features-grid .reveal-on-scroll:nth-child(6) {
  transition-delay: 0.3s;
}

@media (prefers-reduced-motion: reduce) {
  html.js-reveal .reveal-on-scroll:not(.is-visible) {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html.js-reveal .reveal-on-scroll.is-visible {
    transition: none;
  }

  .cards-grid .reveal-on-scroll,
  .solutions-grid .reveal-on-scroll,
  .features-grid .reveal-on-scroll {
    transition-delay: 0s !important;
  }
}

@media (max-width: 960px) {
  .hero-grid,
  .two-col,
  .support-grid,
  .footer-grid,
  .product-grid,
  .tools-grid,
  .gallery-grid,
  .metrics-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }

  .revenda {
    flex-direction: column;
    align-items: flex-start;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .solution-card {
    grid-template-columns: 1fr;
  }

  .solution-card .hero-preview {
    min-height: 180px;
  }

  .section-subtitle {
    margin-top: 1.4rem;
  }

  .highlight-split,
  .highlight-split--comanda,
  .highlight-split--venda {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .highlight-split--venda .highlight-media {
    order: -1;
  }

  .design-carousel-btn {
    width: 2.35rem;
    height: 2.35rem;
    font-size: 1.4rem;
  }

  .design-carousel-prev {
    left: 0.35rem;
  }

  .design-carousel-next {
    right: 0.35rem;
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-block;
  }

  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-nav-height);
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(26, 42, 68, 0.08);
    padding: 1rem;
    display: none;
    flex-direction: column;
    align-items: flex-start;
  }

  .nav.open {
    display: flex;
  }

  .hero {
    padding-top: 4.8rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Floating sales / contact assistant */
body.sales-assistant-open {
  overflow: hidden;
}

.sales-assistant {
  position: fixed;
  z-index: 80;
  right: max(1rem, env(safe-area-inset-right, 0px));
  /* Sobe quando a barra de cookies está visível (--orbita-cookie-banner-offset definido em consent.js) */
  bottom: calc(
    max(1rem, env(safe-area-inset-bottom, 0px)) +
      var(--orbita-cookie-banner-offset, 0px)
  );
  left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.65rem;
  font-family: "Roboto", system-ui, -apple-system, sans-serif;
  pointer-events: none;
}

.sales-assistant > * {
  pointer-events: auto;
}

.sales-assistant-backdrop {
  position: fixed;
  inset: 0;
  z-index: 78;
  background: rgba(15, 29, 52, 0.42);
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  animation: sales-assistant-fade-in 0.2s ease forwards;
}

.sales-assistant-backdrop[hidden] {
  display: none;
}

.sales-assistant-panel {
  position: relative;
  z-index: 82;
  width: min(calc(100vw - 2rem), 20.5rem);
  padding: 1.25rem 1.15rem 1.1rem;
  background: var(--surface);
  color: var(--text);
  border-radius: 1rem;
  box-shadow:
    0 18px 44px rgba(15, 41, 76, 0.22),
    0 0 0 1px rgba(109, 207, 244, 0.35);
  animation: sales-assistant-pop 0.28s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.sales-assistant-panel[hidden] {
  display: none;
}

.sales-assistant-close {
  position: absolute;
  top: 0.4rem;
  right: 0.45rem;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 0.5rem;
  background: transparent;
  color: var(--text-soft);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.sales-assistant-close:hover {
  background: var(--bg-soft);
  color: var(--text);
}

.sales-assistant-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-strong);
}

.sales-assistant-heading {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  line-height: 1.25;
  font-weight: 800;
  padding-right: 1.75rem;
}

.sales-assistant-intro {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  color: var(--text-soft);
  line-height: 1.5;
}

.sales-assistant-actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.sales-assistant-cta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.72rem 0.85rem;
  border-radius: 0.75rem;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.sales-assistant-cta:hover {
  transform: translateY(-1px);
}

.sales-assistant-cta--whatsapp {
  background: linear-gradient(180deg, #22c55e, #16a34a);
  color: #fff;
  box-shadow: 0 6px 18px rgba(22, 163, 74, 0.35);
}

.sales-assistant-cta--whatsapp:hover {
  box-shadow: 0 8px 22px rgba(22, 163, 74, 0.45);
}

.sales-assistant-cta-icon {
  width: 1.65rem;
  height: 1.65rem;
  flex-shrink: 0;
}

.sales-assistant-cta-text {
  display: flex;
  flex-direction: column;
  gap: 0.06rem;
  text-align: left;
  line-height: 1.2;
}

.sales-assistant-cta-text strong {
  font-size: 0.95rem;
}

.sales-assistant-cta-text small {
  font-size: 0.72rem;
  font-weight: 500;
  opacity: 0.92;
}

.sales-assistant-cta--secondary {
  background: var(--bg-soft);
  color: var(--text);
  border-color: var(--border);
}

.sales-assistant-cta--secondary:hover {
  border-color: var(--primary-strong);
  color: var(--primary);
}

.sales-assistant-cta--ghost {
  justify-content: center;
  padding: 0.55rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  background: transparent;
  border: 1px dashed var(--border);
}

.sales-assistant-cta--ghost:hover {
  border-color: var(--primary-strong);
  background: rgba(24, 145, 234, 0.06);
}

.sales-assistant-footnote {
  margin: 0.9rem 0 0;
  font-size: 0.72rem;
  color: var(--text-soft);
  line-height: 1.45;
}

.sales-assistant-footnote a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sales-assistant-fab {
  z-index: 83;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.95rem 2.45rem 0.95rem 1.35rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-size: 1.08rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(145deg, var(--accent) 0%, #f0a818 100%);
  box-shadow:
    0 12px 34px rgba(239, 187, 86, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.35) inset;
  letter-spacing: 0.02em;
}

.sales-assistant-fab:hover {
  filter: brightness(1.05);
}

.sales-assistant-fab:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 3px;
}

.sales-assistant-fab-icons {
  position: relative;
  width: 1.72rem;
  height: 1.72rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sales-assistant-fab-chat {
  width: 1.72rem;
  height: 1.72rem;
}

.sales-assistant-fab-close {
  display: none;
  font-size: 1.78rem;
  font-weight: 400;
  line-height: 1;
  color: #1a2a44;
}

.sales-assistant-fab.is-open .sales-assistant-fab-chat {
  display: none;
}

.sales-assistant-fab.is-open .sales-assistant-fab-close {
  display: block;
}

.sales-assistant-fab.is-open .sales-assistant-fab-label {
  font-size: 0.98rem;
}

@keyframes sales-assistant-pop {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes sales-assistant-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sales-assistant-panel,
  .sales-assistant-backdrop {
    animation: none;
  }

  .sales-assistant-cta:hover {
    transform: none;
  }
}

@media (max-width: 480px) {
  .sales-assistant-fab .sales-assistant-fab-label {
    display: none;
  }

  .sales-assistant-fab {
    padding: 1.05rem;
    border-radius: 50%;
  }
}

/* --- Páginas App Comanda e Venda Externa (layout alinhado ao site legado nicepage) --- */
.comanda-page-hero {
  padding: 3.5rem 0 3rem;
  background: #2c5285;
  color: #fff;
}

.comanda-page-hero .comanda-hero-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  font-weight: 900;
  line-height: 1.15;
  color: #fff;
}

.comanda-page-hero .comanda-hero-lead {
  margin: 0 0 1.35rem;
  max-width: 62ch;
  font-size: 1.08rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
}

.comanda-page-hero .eyebrow {
  color: #9fd4ff;
}

.comanda-split-headline {
  margin: 0 0 0.65rem;
  text-align: center;
  font-size: clamp(1.45rem, 3vw, 2rem);
  color: #0f3b70;
}

.comanda-split-intro {
  text-align: center;
  margin: 0 auto 2rem;
  max-width: 56ch;
  color: var(--text-soft);
  line-height: 1.55;
}

.comanda-feature-columns {
  display: grid;
  grid-template-columns: 1fr minmax(220px, min(360px, 32vw)) 1fr;
  gap: 1.75rem 2rem;
  align-items: start;
}

/* Página Venda Externa: mock com dois aparelhos pede coluna central mais larga */
.comanda-feature-columns--hero-landscape {
  grid-template-columns: 1fr minmax(240px, min(480px, 42vw)) 1fr;
}

.comanda-feature-stack {
  display: grid;
  gap: 1.25rem;
}

.comanda-feature-block h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  color: #0f3b70;
}

.comanda-feature-block p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--text-soft);
}

.comanda-feature-phone {
  position: sticky;
  top: 5.5rem;
}

.comanda-feature-phone img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(85vh, 640px);
  object-fit: contain;
  margin: 0 auto;
  border-radius: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  filter: drop-shadow(0 14px 28px rgba(15, 41, 76, 0.12));
}

.section-comanda-gallery {
  background: #eef1f7;
  border-top: 1px solid var(--border);
}

.comanda-gallery-title {
  margin: 0 0 1.25rem;
  text-align: center;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  color: #0f3b70;
}

.comanda-gallery-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.25rem 0 1rem;
  scroll-snap-type: x mandatory;
  scroll-padding: 0.5rem;
  -webkit-overflow-scrolling: touch;
}

.comanda-gallery-track:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
}

.comanda-gallery-item {
  flex: 0 0 min(300px, 88vw);
  scroll-snap-align: start;
  border-radius: 0;
  overflow: visible;
  border: none;
  background: transparent;
  box-shadow: none;
}

.comanda-gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
  aspect-ratio: 1080 / 2400;
  object-fit: cover;
  object-position: top center;
  border-radius: 0.75rem;
  filter: drop-shadow(0 8px 20px rgba(15, 41, 76, 0.1));
}

.comanda-gallery-item--landscape img {
  aspect-ratio: 500 / 1024;
}

.comanda-gallery-item--venda-wide {
  flex: 0 0 min(360px, 92vw);
}

.comanda-gallery-item--venda-wide img {
  aspect-ratio: 2199 / 2763;
  object-fit: contain;
  background: transparent;
}

.comanda-gallery-hint {
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-soft);
  margin: 0 0 1.25rem;
}

.comanda-play-wrap {
  display: flex;
  justify-content: center;
  margin-top: 0.5rem;
}

.comanda-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  background: #f5a623;
  color: #1a1a1a;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  box-shadow: 0 4px 18px rgba(245, 166, 35, 0.35);
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.comanda-play-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 166, 35, 0.45);
  color: #1a1a1a;
}

.comanda-play-btn svg {
  width: 1.45rem;
  height: 1.45rem;
  flex-shrink: 0;
}

.footer-legal-small {
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: #9fc0ed;
  line-height: 1.45;
}

@media (max-width: 960px) {
  .comanda-feature-columns {
    grid-template-columns: 1fr;
  }

  .comanda-feature-phone {
    position: static;
    order: -1;
    max-width: min(380px, 90vw);
    margin: 0 auto 0.5rem;
  }
}

/* —— Cookies / LGPD (banner + preferências) —— */
#orbita-cookie-root {
  font-family: inherit;
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  padding: 1rem 0 calc(1rem + env(safe-area-inset-bottom));
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 32px rgba(26, 42, 68, 0.12);
}

.cookie-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-banner-text {
  flex: 1 1 280px;
  margin: 0;
  font-size: 0.92rem;
  color: var(--text);
  max-width: 52rem;
  line-height: 1.5;
}

.cookie-banner-text a {
  color: var(--primary);
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  justify-content: flex-end;
}

.cookie-banner-actions .btn {
  flex: 1 1 0;
  min-width: 0;
  padding: 0.55rem 0.9rem;
  font-size: 0.9rem;
  white-space: nowrap;
}

.cookie-btn-banner-secondary,
.cookie-btn-modal-secondary {
  border-color: var(--border);
  color: var(--text);
  background: transparent;
  font-weight: 600;
}

.cookie-btn-banner-secondary:hover,
.cookie-btn-modal-secondary:hover {
  background: var(--bg-soft);
  color: var(--text);
  box-shadow: none;
  transform: none;
}

.cookie-btn-banner-primary,
.cookie-btn-modal-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.cookie-btn-banner-primary:hover,
.cookie-btn-modal-primary:hover {
  background: var(--primary-strong);
  color: #fff;
}

.cookie-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(26, 42, 68, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.cookie-modal-backdrop[hidden] {
  display: none;
}

body.cookie-modal-open {
  overflow: hidden;
}

.cookie-modal-panel {
  width: min(100%, 420px);
  max-height: min(90vh, 520px);
  overflow: auto;
  background: var(--surface);
  border-radius: 12px;
  padding: 1.35rem 1.5rem;
  border: 1px solid var(--border);
  box-shadow: 0 20px 48px rgba(15, 93, 163, 0.18);
}

.cookie-modal-title {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  color: var(--text);
}

.cookie-modal-intro {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.cookie-toggle {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--text);
  cursor: pointer;
}

.cookie-toggle input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.cookie-modal-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  justify-content: flex-end;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.cookie-modal-actions .btn {
  flex: 1 1 0;
  min-width: 0;
  padding: 0.55rem 0.9rem;
  font-size: 0.9rem;
  white-space: nowrap;
}

.footer-cookie-links {
  text-align: center;
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: #9fc0ed;
}

.footer-cookie-links a {
  color: #cfe0fb;
  text-decoration: underline;
}

.footer-cookie-links a:hover {
  color: #fff;
}

.privacy-main {
  padding: 2.5rem 0 3rem;
}

.privacy-article {
  max-width: 42rem;
  margin: 0 auto;
}

.privacy-article h1 {
  margin-top: 0;
  font-size: clamp(1.65rem, 3vw, 2rem);
}

.privacy-lead {
  font-size: 1.05rem;
  color: var(--text-soft);
}

.privacy-article h2 {
  margin-top: 2rem;
  font-size: 1.15rem;
  color: var(--text);
}

.privacy-article ul {
  padding-left: 1.25rem;
}

.privacy-article li {
  margin-bottom: 0.5rem;
}

.privacy-updated {
  margin-top: 2.5rem;
  color: var(--text-soft);
}

@media (max-width: 640px) {
  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner-actions {
    flex-direction: column-reverse;
    justify-content: stretch;
  }

  .cookie-banner-actions .btn {
    flex: none;
    width: 100%;
    justify-content: center;
  }

  .cookie-modal-actions {
    flex-direction: column-reverse;
  }

  .cookie-modal-actions .btn {
    flex: none;
    width: 100%;
    justify-content: center;
  }
}
