/* ============ EMPLY — Design tokens ============ */
:root {
  /* Brand (stable across themes) */
  --pix: #00D26A;
  --pix-2: #00B85C;
  --pix-deep: #006B36;
  --pix-soft: #D6F7E5;
  --orange: #FF5A1F;
  --orange-2: #FF7A45;
  --orange-soft: #FFE4D6;

  /* Semantic — swap with theme */
  --ink: #0A0E0B;
  --ink-2: #1A1F1B;
  --ink-soft: #3D4540;
  --mute: #6B7570;
  --line: #E4E1D6;
  --line-2: #EFEDE4;
  --paper: #F5F1E6;
  --paper-2: #FBF8EF;
  --white: #FFFFFF;

  /* Type */
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "DM Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  /* Radius */
  --r-xs: 6px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 40px;
  --r-pill: 999px;

  /* Shadow */
  --shadow-1: 0 2px 0 rgba(10,14,11,0.04), 0 1px 2px rgba(10,14,11,0.06);
  --shadow-2: 0 10px 40px -10px rgba(10,14,11,0.18);
  --shadow-3: 0 30px 80px -20px rgba(10,14,11,0.25);
  --shadow-pop: 0 18px 50px -15px rgba(0,179,90,0.45);

  /* Easing */
  --ease: cubic-bezier(.2,.7,.2,1);
  --ease-bounce: cubic-bezier(.34,1.56,.64,1);

  /* Tema do drawer mobile (tokens semânticos).
     O drawer é sempre claro; uma página de tema escuro só precisa
     reler estes tokens — NÃO recolorir link por link. */
  --nav-drawer-bg: var(--paper);
  --nav-drawer-fg: var(--ink);
}

/* ============================================================
   ESCALA DE BREAKPOINTS (referência única — mantenha consistente)
   CSS puro não aceita var() dentro de @media; estes valores são
   a "fonte de verdade" e devem ser reusados como números literais:
     lg = 1024px  → nav vira drawer + grids principais empilham
     md =  640px  → ajustes de telas pequenas
     sm =  480px  → telas bem pequenas
   (Tokenização real de @media exige build step, ex.: @custom-media.)
   ============================================================ */

* { box-sizing: border-box; }
*::selection { background: var(--pix); color: var(--ink); }

/* overflow-x: clip corta o transbordo horizontal SEM criar um
   container de scroll (ao contrário de hidden) — assim a viewport
   continua sendo o único scroller e position:sticky/âncoras
   funcionam de forma previsível. */
html, body { margin: 0; padding: 0; overflow-x: clip; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; padding: 0; }
input, textarea, select { font-family: inherit; font-size: inherit; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

/* ============ Layout ============ */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.wrap-wide { max-width: 1440px; margin: 0 auto; padding: 0 32px; }

section { position: relative; }

/* ============ Top announcement ============ */
.topbar {
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  padding: 9px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  letter-spacing: 0.01em;
}
.topbar .dot {
  width: 6px; height: 6px; background: var(--pix); border-radius: 50%;
  box-shadow: 0 0 10px var(--pix);
  animation: pulse 2s var(--ease) infinite;
}
.topbar a { color: var(--pix); font-weight: 500; }
.topbar a:hover { text-decoration: underline; }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

/* ============ Navigation ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245,241,230,0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.nav.scrolled { border-color: var(--line); background: rgba(245,241,230,0.95); }

.nav-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}
.logo-img {
  display: block;
  height: 32px;
  width: auto;
}
.footer-brand .logo-img { height: 36px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.nav-links a, .nav-links button {
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  border-radius: var(--r-pill);
  transition: background .2s var(--ease), color .2s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.nav-links a:hover, .nav-links button:hover { background: rgba(10,14,11,0.06); }
.nav-links .caret {
  width: 10px; height: 10px;
  transition: transform .25s var(--ease);
}
.nav-links button[aria-expanded="true"] .caret { transform: rotate(180deg); }

.nav-cta { display: flex; align-items: center; gap: 10px; }

/* Mobile drawer close button — hidden by default, shown on mobile drawer */
.nav-links .nav-close { display: none; }

/* Hamburger toggle — mobile only */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
}
.nav-toggle:hover { background: rgba(10,14,11,0.06); }
.nav-toggle .bars { width: 20px; height: 14px; position: relative; }
.nav-toggle .bars span {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease), top .3s var(--ease);
}
.nav-toggle .bars span:nth-child(1) { top: 0; }
.nav-toggle .bars span:nth-child(2) { top: 6px; }
.nav-toggle .bars span:nth-child(3) { top: 12px; }
.nav.open .nav-toggle .bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav.open .nav-toggle .bars span:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle .bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* Mobile drawer scrim */
.nav-scrim {
  position: fixed;
  inset: 0;
  background: rgba(10,14,11,0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s var(--ease);
  z-index: 90;
}
.nav.open ~ .nav-scrim { opacity: 1; pointer-events: auto; }

/* ============ Mega menu ============ */
.menu-host { position: relative; }
.mega {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  width: min(820px, calc(100vw - 64px));
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow-3);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s var(--ease), transform .3s var(--ease);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
}
.mega.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.mega-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.mega-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: var(--r-md);
  transition: background .2s var(--ease);
  align-items: flex-start;
}
.mega-item:hover { background: var(--line-2); }
.mega-item .ico {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--pix-soft);
  display: grid;
  place-items: center;
  flex: none;
  color: var(--pix-deep);
}
.mega-item:nth-child(2) .ico { background: var(--orange-soft); color: var(--orange); }
.mega-item:nth-child(3) .ico { background: #E8E5FF; color: #5648D6; }
.mega-item:nth-child(4) .ico { background: #FFF3C6; color: #8A6D00; }
.mega-item:nth-child(5) .ico { background: #D6EEFF; color: #0066B8; }
.mega-item .lbl {
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.mega-item .desc {
  font-size: 13px;
  color: var(--mute);
  margin-top: 2px;
}
.mega-feature {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 200px;
  background-image: radial-gradient(circle at 80% 20%, rgba(0,210,106,0.25), transparent 60%);
}
.mega-feature h4 {
  font-size: 20px;
  color: var(--paper);
  margin-bottom: 8px;
}
.mega-feature p { font-size: 13px; color: rgba(245,241,230,0.7); }
.mega-feature .pill-lnk {
  margin-top: 16px;
  align-self: flex-start;
  background: var(--pix);
  color: var(--ink);
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform .2s var(--ease);
}
.mega-feature .pill-lnk:hover { transform: translateX(2px); }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease), box-shadow .3s var(--ease);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover {
  background: var(--pix-deep);
  color: var(--paper);
  transform: translateY(-1px);
  box-shadow: var(--shadow-pop);
}
.btn-pix {
  background: var(--pix);
  color: var(--ink);
}
.btn-pix:hover {
  background: var(--ink);
  color: var(--pix);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -10px rgba(10,14,11,0.4);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-soft {
  background: rgba(10,14,11,0.06);
  color: var(--ink);
}
.btn-soft:hover { background: rgba(10,14,11,0.12); }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-lg { padding: 16px 28px; font-size: 17px; }

.arrow {
  width: 16px; height: 16px;
  transition: transform .25s var(--ease);
}
.btn:hover .arrow { transform: translateX(3px); }

/* ============ Hero ============ */
.hero {
  position: relative;
  padding: 20px 0 72px;
  line-height: 1.55;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -10%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  max-width: 800px;
  max-height: 800px;
  background: radial-gradient(circle, rgba(0,210,106,0.25), transparent 60%);
  filter: blur(40px);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  max-width: 600px;
  max-height: 600px;
  background: radial-gradient(circle, rgba(255,90,31,0.18), transparent 60%);
  filter: blur(50px);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 60px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 6px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 28px;
}
.eyebrow .badge {
  background: var(--pix);
  color: var(--ink);
  font-weight: 700;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero h1 {
  /* Tipografia fluida: 32px no mobile → 59px no desktop.
     Fonte ÚNICA de verdade do tamanho do título — sem overrides
     em media query, sem !important, sem style inline. */
  font-size: clamp(2rem, 7vw, 59px);
  color: #006B36;
  font-family: 'Bricolage Grotesque', sans-serif;
  letter-spacing: -0.045em;
  line-height: 1.0;
  font-weight: 600;
}
@media (min-width: 1025px) {
  .hero h1 { line-height: 0.95; }
}
.hero h1 .swap {
  display: inline-block;
  position: relative;
  color: var(--pix-deep);
  font-style: italic;
  font-weight: 500;
}
.hero h1 .swap::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: 12px;
  background: var(--pix);
  z-index: -1;
  border-radius: 4px;
  opacity: 0.5;
}

.hero p.lede {
  font-size: 19px;
  color: var(--ink-soft);
  margin: 28px 0 36px;
  max-width: 520px;
  line-height: 1.5;
}

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

.hero-trust {
  margin-top: 40px;
  display: flex;
  gap: 28px;
  align-items: center;
  font-size: 13px;
  color: var(--mute);
  flex-wrap: wrap;
}
.hero-trust .stars { color: var(--orange); letter-spacing: 2px; }
.hero-trust strong { color: var(--ink); font-weight: 600; }
.hero-trust .divider { width: 1px; height: 18px; background: var(--line); }

/* Partner badge (Fiserv) */
.partner-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(10,14,11,0.04), 0 8px 24px rgba(10,14,11,0.06);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.partner-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(10,14,11,0.06), 0 12px 32px rgba(10,14,11,0.08);
}
.partner-badge .partner-lbl {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  font-family: var(--mono);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
}
.partner-badge .partner-lbl span:first-child {
  color: var(--ink);
  font-size: 12px;
}
.partner-badge .partner-lbl span:nth-child(2) {
  font-size: 9px;
}
.partner-badge .partner-sep {
  width: 1px;
  height: 30px;
  background: var(--line);
}
.partner-badge .partner-logo {
  height: 35px;
  width: auto;
  display: block;
}
.partner-badge .partner-verified {
  display: inline-flex;
  margin-left: -4px;
}

/* ============ Hero phone mock ============ */
.hero-visual {
  position: relative;
  width: 725px;
  height: 579px;
  max-width: 100%;
  overflow: visible;
}
.hero-portrait[data-slot="3"] {
  background-size: contain;
  background-repeat: no-repeat;
}

/* New: backdrop artwork composition (PNG) */
.hero-art {
  position: absolute;
  inset: -40px -60px -40px -20px;
  z-index: 0;
  pointer-events: none;
}
.hero-art-bg {
  position: absolute;
  inset: 0;
  background-image: url("assets/hero-bg.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  filter: drop-shadow(0 18px 40px rgba(10,14,11,0.06));
  animation: heroDrift 12s ease-in-out infinite;
  will-change: transform;
}
.hero-art-glow {
  position: absolute;
  inset: 10% 12%;
  background:
    radial-gradient(circle at 30% 35%, rgba(0,210,106,0.18), transparent 55%),
    radial-gradient(circle at 75% 70%, rgba(255,90,31,0.14), transparent 55%);
  filter: blur(20px);
  animation: heroGlow 9s ease-in-out infinite alternate;
  z-index: -1;
}
@keyframes heroDrift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(0, -10px, 0) scale(1.012); }
}
@keyframes heroGlow {
  0%   { opacity: 0.7; transform: scale(1); }
  100% { opacity: 1;   transform: scale(1.06); }
}

/* Reserved area for user-supplied imagery on top of the artwork */
.hero-foreground {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.hero-carousel {
  position: relative;
  width: 78%;
  max-width: 460px;
  aspect-ratio: 1023 / 887;
  pointer-events: auto;
}
.hero-portrait {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  filter: drop-shadow(0 30px 50px rgba(10,14,11,0.18)) drop-shadow(0 8px 18px rgba(10,14,11,0.08));
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1s var(--ease), transform 1.6s var(--ease);
  will-change: opacity, transform;
}
.hero-portrait.is-active {
  opacity: 1;
  transform: scale(1);
  animation: heroPortraitFloat 7s ease-in-out infinite;
}
@keyframes heroPortraitFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(0, -8px, 0) scale(1); }
}

/* Carousel dots */
.hero-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
  pointer-events: auto;
  padding: 8px 14px;
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px -8px rgba(10,14,11,0.15);
}
.hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(10,14,11,0.18);
  transition: width .35s var(--ease), background .25s var(--ease);
  cursor: pointer;
  padding: 0;
}
.hero-dot:hover { background: rgba(10,14,11,0.4); }
.hero-dot.is-active {
  width: 24px;
  background: var(--ink);
  border-radius: 4px;
}
.phone {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(-3deg);
  width: 290px;
  height: 580px;
  background: var(--ink);
  border-radius: 44px;
  padding: 8px;
  box-shadow: var(--shadow-3);
  animation: floatphone 6s ease-in-out infinite;
}
@keyframes floatphone {
  0%, 100% { transform: translate(-50%, -50%) rotate(-3deg); }
  50% { transform: translate(-50%, calc(-50% - 12px)) rotate(-3deg); }
}
.phone-screen {
  width: 100%; height: 100%;
  background: linear-gradient(180deg, #0F1410 0%, #1A2018 100%);
  border-radius: 36px;
  position: relative;
  overflow: hidden;
  color: var(--paper);
  padding: 36px 20px 20px;
}
.phone-notch {
  position: absolute;
  top: 10px; left: 50%;
  transform: translateX(-50%);
  width: 90px; height: 24px;
  background: var(--ink);
  border-radius: 12px;
  z-index: 2;
}
.phone-status {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 20px;
  opacity: 0.85;
}
.phone-greeting { font-size: 13px; color: rgba(245,241,230,0.6); }
.phone-balance {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 600;
  margin: 6px 0 16px;
  letter-spacing: -0.02em;
}
.phone-balance small { color: var(--pix); font-size: 14px; margin-right: 4px; }
.phone-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}
.phone-action {
  background: rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 10px 4px;
  text-align: center;
  font-size: 10px;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.phone-action .ico {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--pix);
  color: var(--ink);
  display: grid;
  place-items: center;
}
.phone-action:nth-child(2) .ico { background: var(--orange); }
.phone-action:nth-child(3) .ico { background: #5648D6; color: white; }
.phone-action:nth-child(4) .ico { background: #FFD500; }

.phone-card {
  background: linear-gradient(135deg, var(--pix) 0%, var(--pix-2) 100%);
  border-radius: 18px;
  padding: 14px;
  color: var(--ink);
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
}
.phone-card::before {
  content: "";
  position: absolute;
  top: -30px; right: -30px;
  width: 100px; height: 100px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
}
.phone-card .lbl { font-size: 11px; font-weight: 600; opacity: 0.7; }
.phone-card .val { font-family: var(--display); font-size: 20px; font-weight: 600; }
.phone-card .sub { font-size: 11px; opacity: 0.7; margin-top: 4px; }

.phone-list { display: flex; flex-direction: column; gap: 8px; }
.phone-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 4px;
  border-radius: 10px;
}
.phone-row .av {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--orange-soft);
  color: var(--orange);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  flex: none;
}
.phone-row:nth-child(2) .av { background: var(--pix-soft); color: var(--pix-deep); }
.phone-row:nth-child(3) .av { background: #E8E5FF; color: #5648D6; }
.phone-row .info { flex: 1; min-width: 0; }
.phone-row .nm { font-size: 12px; font-weight: 600; }
.phone-row .tm { font-size: 10px; color: rgba(245,241,230,0.5); }
.phone-row .amt { font-size: 13px; font-weight: 600; color: var(--pix); }

/* Floating machine */
.machine {
  position: absolute;
  bottom: 40px;
  right: -10px;
  width: 180px;
  background: var(--ink);
  border-radius: 18px;
  padding: 12px;
  box-shadow: var(--shadow-3);
  transform: rotate(8deg);
  z-index: 2;
  animation: floatmachine 7s ease-in-out infinite;
}
@keyframes floatmachine {
  0%, 100% { transform: rotate(8deg) translateY(0); }
  50% { transform: rotate(8deg) translateY(-14px); }
}
.machine-screen {
  background: linear-gradient(180deg, var(--pix-2), var(--pix));
  border-radius: 10px;
  padding: 14px 12px;
  margin-bottom: 12px;
  color: var(--ink);
  text-align: center;
}
.machine-screen .ok {
  width: 32px; height: 32px;
  background: var(--ink);
  color: var(--pix);
  border-radius: 50%;
  margin: 0 auto 6px;
  display: grid;
  place-items: center;
}
.machine-screen .msg { font-weight: 700; font-size: 13px; letter-spacing: -0.01em; }
.machine-screen .val { font-family: var(--display); font-size: 18px; font-weight: 600; margin-top: 4px; }
.machine-keys {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.machine-key {
  background: #2A302C;
  border-radius: 6px;
  padding: 6px;
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--paper);
  font-weight: 600;
}

/* Floating notification */
.notif {
  position: absolute;
  top: 60px;
  left: -10px;
  background: var(--white);
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: var(--shadow-3);
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
  transform: rotate(-4deg);
  z-index: 2;
  animation: floatnotif 8s ease-in-out infinite;
}
@keyframes floatnotif {
  0%, 100% { transform: rotate(-4deg) translateY(0); }
  50% { transform: rotate(-4deg) translateY(-10px); }
}
.notif .ico {
  width: 36px; height: 36px;
  background: var(--pix);
  color: var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
}
.notif .info .ttl { font-weight: 700; font-size: 13px; }
.notif .info .sub { font-size: 11px; color: var(--mute); }
.notif .amt { font-family: var(--display); font-weight: 700; color: var(--pix-deep); font-size: 15px; margin-left: auto; }

/* ============ Logos strip ============ */
.logos {
  padding: 40px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
  overflow: hidden;
}
.logos-label {
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 28px;
}
.logos-track {
  display: flex;
  gap: 64px;
  animation: scroll 30s linear infinite;
  width: max-content;
}
@keyframes scroll {
  to { transform: translateX(-50%); }
}
.logos-track:hover { animation-play-state: paused; }
.logo-item {
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
  color: var(--ink-soft);
  opacity: 0.7;
  transition: opacity .25s var(--ease), color .25s var(--ease);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.logo-item:hover { opacity: 1; color: var(--ink); }
.logo-item .dot { width: 8px; height: 8px; background: currentColor; border-radius: 50%; }
.logo-item.square::before { content: ""; width: 22px; height: 22px; background: var(--ink-soft); border-radius: 4px; }

/* ============ Products grid ============ */
.products {
  padding: 100px 0;
}
.section-head {
  max-width: 720px;
  margin: 0 auto 60px;
  text-align: center;
}
.section-head .eyebrow { margin-bottom: 20px; }
.section-head h2 {
  font-size: clamp(38px, 5.5vw, 64px);
  letter-spacing: -0.035em;
  line-height: 1;
  font-weight: 600;
}
.section-head p {
  font-size: 18px;
  color: var(--ink-soft);
  margin-top: 20px;
}

.prod-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.prod-card {
  border-radius: var(--r-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  isolation: isolate;
}
.prod-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.prod-card.large { grid-column: span 4; min-height: 380px; }
.prod-card.tall { grid-column: span 2; min-height: 380px; }
.prod-card.wide { grid-column: span 3; }
.prod-card.med { grid-column: span 3; }

.prod-card .tag {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.7;
}
.prod-card h3 {
  font-size: 32px;
  margin-top: 12px;
  letter-spacing: -0.03em;
}
.prod-card .desc {
  font-size: 15px;
  margin-top: 12px;
  opacity: 0.85;
  max-width: 38ch;
}
.prod-card .lnk {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 14px;
  transition: gap .2s var(--ease);
}
.prod-card:hover .lnk { gap: 10px; }

.prod-card.pix {
  background: var(--pix);
  color: var(--ink);
  grid-column: span 4;
  padding: 36px 40px;
}
.prod-card.pix .viz {
  position: absolute;
  right: -40px;
  top: -40px;
  width: 360px;
  height: 360px;
  opacity: 0.9;
}

/* Pix card layout */
.pix-card-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: stretch;
}
.pix-card-copy {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-self: stretch;
}
.pix-card-copy h3 {
  font-size: 30px;
  line-height: 1.15;
  margin-top: 14px;
  letter-spacing: -0.025em;
  max-width: 22ch;
}
.pix-card-copy .desc {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.55;
  max-width: 38ch;
  opacity: 0.82;
}
.pix-card-copy .lnk {
  margin-top: auto;
  padding-top: 28px;
}

/* Charge mock */
.pix-charge-mock {
  background: var(--paper);
  color: var(--ink);
  border-radius: 18px;
  padding: 22px 22px 18px;
  box-shadow: 0 14px 40px rgba(10,14,11,0.16), 0 1px 0 rgba(10,14,11,0.04);
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-family: var(--body);
}
.pix-charge-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pix-charge-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 14px;
}
.pix-glyph {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--pix);
  color: var(--ink);
  display: grid;
  place-items: center;
}
.pix-charge-badge {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 4px 8px;
  border-radius: 999px;
  background: oklch(0.94 0.04 90);
  color: oklch(0.45 0.12 60);
}
.pix-charge-amount {
  font-family: var(--display);
  font-weight: 600;
  font-size: 34px;
  letter-spacing: -0.03em;
  line-height: 1;
}
.pix-charge-amount small {
  font-size: 20px;
  font-weight: 600;
}
.pix-charge-meta {
  margin-top: -8px;
  font-size: 12px;
  color: var(--mute);
}
.pix-charge-qr {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  background: var(--paper-2);
  border-radius: 14px;
}
.pix-charge-qr .qr {
  width: 90px;
  height: 90px;
}
.pix-charge-key .kk-lbl {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--mute);
  text-transform: uppercase;
}
.pix-charge-key .kk-val {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  margin-top: 2px;
}
.pix-charge-key .kk-expire {
  font-size: 11px;
  color: var(--mute);
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pix-charge-key .kk-expire::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: oklch(0.7 0.18 40);
  animation: pulse 2s var(--ease) infinite;
}
.pix-charge-divider {
  height: 1px;
  background: var(--line);
  margin: 2px 0;
}
.pix-charge-dispatch .pdc-title {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 10px;
}
.pdc-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pdc-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pdc-ico {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.pdc-ico.wa { background: #25D366; color: #fff; }
.pdc-ico.em { background: oklch(0.94 0.02 250); color: oklch(0.4 0.15 250); }
.pdc-bd { font-size: 12px; line-height: 1.3; }
.pdc-bd .pdc-line { font-weight: 500; }
.pdc-bd .pdc-tag {
  margin-top: 2px;
  font-size: 11px;
  color: var(--mute);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.pdc-bd .pdc-tag .ck {
  color: var(--pix-deep);
  font-weight: 700;
}

@media (max-width: 900px) {
  .pix-card-grid { grid-template-columns: 1fr; gap: 28px; }
  .prod-card.pix { padding: 28px; }
}
.prod-card.maq {
  background: var(--ink);
  color: var(--paper);
  grid-column: span 2;
}
.prod-card.lnk-pay {
  background: var(--orange);
  color: var(--ink);
  grid-column: span 2;
}
.prod-card.api {
  background: var(--paper-2);
  color: var(--ink);
  border: 1px solid var(--line);
  grid-column: span 2;
}
.prod-card.dash {
  background: var(--ink-2);
  color: var(--paper);
  grid-column: span 2;
}

.qr-art {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--r-md);
  background:
    radial-gradient(circle at 20% 20%, var(--ink) 8%, transparent 9%) 0 0/24px 24px,
    radial-gradient(circle at 80% 20%, var(--ink) 8%, transparent 9%) 0 0/24px 24px,
    repeating-linear-gradient(0deg, transparent 0 4px, rgba(10,14,11,0.6) 4px 5px),
    repeating-linear-gradient(90deg, transparent 0 4px, rgba(10,14,11,0.6) 4px 5px);
  background-color: white;
  padding: 12px;
  position: relative;
}

/* QR code mock */
.qr {
  width: 110px;
  height: 110px;
  background: white;
  padding: 6px;
  border-radius: 10px;
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  grid-template-rows: repeat(11, 1fr);
  gap: 1px;
}
.qr i { background: var(--ink); border-radius: 1px; }
.qr i.off { background: transparent; }

/* Card animation: payment confirmed */
.maq-screen {
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border-radius: var(--r-md);
  padding: 14px;
  margin-top: 16px;
}
.maq-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 12px;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(245,241,230,0.15);
}
.maq-row:last-child { border-bottom: none; }
.maq-row strong { color: var(--pix); }

.api-code {
  font-family: var(--mono);
  font-size: 12px;
  background: var(--ink);
  color: var(--paper);
  padding: 16px;
  border-radius: 12px;
  line-height: 1.6;
  margin-top: 16px;
  position: relative;
  overflow: hidden;
}
.api-code .k { color: var(--pix); }
.api-code .s { color: var(--orange-2); }
.api-code .c { color: #6B7570; }

.dash-stat {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.dash-stat .cell {
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 12px;
}
.dash-stat .cell .lbl { font-size: 11px; opacity: 0.6; }
.dash-stat .cell .val { font-family: var(--display); font-size: 22px; font-weight: 600; margin-top: 2px; }
.dash-stat .cell .delta { font-size: 11px; color: var(--pix); margin-top: 2px; }

/* ============ Stats ============ */
.stats {
  background: var(--ink);
  color: var(--paper);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.stats::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(0,210,106,0.15), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255,90,31,0.12), transparent 40%);
  pointer-events: none;
}
.stats-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  /* Alinha o cabeçalho ao topo. (Antes o alinhamento era "end" e o
     cabeçalho era esticado por height fixo no h2/p — removidos.) */
  align-items: start;
}
.stats-head h2 {
  font-size: clamp(38px, 5vw, 56px);
  color: var(--paper);
}
.stats-head h2 em {
  color: var(--pix);
  font-style: normal;
}
.stats-head p { color: rgba(245,241,230,0.7); margin-top: 16px; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid rgba(245,241,230,0.1);
  border-left: 1px solid rgba(245,241,230,0.1);
}
.stat-cell {
  padding: 32px;
  border-right: 1px solid rgba(245,241,230,0.1);
  border-bottom: 1px solid rgba(245,241,230,0.1);
}
.stat-cell .big {
  font-family: var(--display);
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(180deg, var(--paper) 50%, var(--pix) 130%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-cell .lbl {
  font-size: 14px;
  color: rgba(245,241,230,0.6);
  margin-top: 8px;
  line-height: 1.4;
}

/* ============ How it works ============ */
.how {
  padding: 100px 0;
  background: var(--paper-2);
  border-top: 1px solid var(--line);
}
/* Título da seção "Como funciona": fluido, 28px → 50px.
   (antes era font-size:50px fixo via style inline) */
.how .section-head h2 {
  font-size: clamp(28px, 4vw, 50px);
  line-height: 1.08;
}
.how-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 60px;
  position: relative;
}
.how-steps::before {
  content: "";
  position: absolute;
  top: 30px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px);
  z-index: 0;
}
.step {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  transition: transform .25s var(--ease), border-color .25s var(--ease);
}
.step:hover { transform: translateY(-4px); border-color: var(--ink); }
.step .num {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--pix);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 6px var(--paper-2);
}
.step:nth-child(2) .num { background: var(--orange); }
.step:nth-child(3) .num { background: #5648D6; color: white; }
.step:nth-child(4) .num { background: var(--ink); color: var(--pix); }

.step h3 {
  font-size: 22px;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.step p { font-size: 14px; color: var(--ink-soft); line-height: 1.5; }

/* ============ Maquininha feature ============ */
.feature {
  padding: 100px 0;
  overflow: hidden;
}
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.feature-grid.reverse { direction: rtl; }
.feature-grid.reverse > * { direction: ltr; }

.feature h2 {
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.035em;
  margin-bottom: 24px;
}
.feature .lede {
  font-size: 18px;
  color: var(--ink-soft);
  margin-bottom: 32px;
  max-width: 50ch;
}
.feature ul {
  list-style: none;
  padding: 0;
  margin: 0 0 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.feature ul li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
}
.feature ul li .chk {
  width: 24px; height: 24px;
  background: var(--pix);
  color: var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
}

/* Machine big mock */
.machine-big {
  position: relative;
  margin: 0 auto;
  width: 320px;
  height: 480px;
}
.machine-big .bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-2) 100%);
  border-radius: 60% 40% 50% 50% / 40% 60% 40% 60%;
  filter: blur(10px);
  opacity: 0.4;
  animation: blob 12s ease-in-out infinite;
}
@keyframes blob {
  0%, 100% { border-radius: 60% 40% 50% 50% / 40% 60% 40% 60%; }
  50% { border-radius: 40% 60% 50% 50% / 60% 40% 60% 40%; }
}
.machine-body {
  position: absolute;
  top: 20px; left: 50%;
  transform: translateX(-50%);
  width: 240px;
  height: 440px;
  background: var(--ink);
  border-radius: 36px;
  padding: 14px;
  box-shadow: var(--shadow-3);
  display: flex;
  flex-direction: column;
}
.machine-body .top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--paper);
  opacity: 0.7;
  margin-bottom: 10px;
  padding: 0 4px;
}
.machine-body .signal { display: flex; gap: 2px; align-items: end; }
.machine-body .signal i { width: 3px; background: var(--pix); border-radius: 1px; }
.machine-body .signal i:nth-child(1) { height: 4px; }
.machine-body .signal i:nth-child(2) { height: 7px; }
.machine-body .signal i:nth-child(3) { height: 10px; }
.machine-body .signal i:nth-child(4) { height: 13px; }

.machine-screen-big {
  background: linear-gradient(180deg, var(--pix-2), var(--pix));
  border-radius: 18px;
  padding: 22px 16px;
  text-align: center;
  color: var(--ink);
  margin-bottom: 16px;
}
.machine-screen-big .ok-big {
  width: 56px; height: 56px;
  background: var(--ink);
  color: var(--pix);
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
}
.machine-screen-big .ttl { font-family: var(--display); font-weight: 600; font-size: 18px; letter-spacing: -0.02em; }
.machine-screen-big .val { font-family: var(--display); font-weight: 600; font-size: 32px; letter-spacing: -0.03em; margin-top: 6px; }
.machine-screen-big .sub { font-size: 11px; opacity: 0.7; margin-top: 4px; font-family: var(--mono); }

.keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.kk {
  background: #2A302C;
  border-radius: 10px;
  padding: 14px 0;
  text-align: center;
  color: var(--paper);
  font-family: var(--mono);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: background .15s var(--ease);
}
.kk:hover { background: var(--pix-deep); }
.kk.fn { background: var(--orange); color: var(--ink); font-size: 11px; }
.kk.fn:hover { background: var(--orange-2); }

/* ============ Carousel testimonials ============ */
.testi {
  padding: 100px 0;
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.testi-track-wrap { overflow: hidden; margin-top: 40px; position: relative; }
.testi-track {
  display: flex;
  gap: 20px;
  transition: transform .55s var(--ease);
}
.testi-card {
  flex: 0 0 calc((100% - 40px) / 3);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.testi-card:nth-child(3n+1) { background: var(--ink); color: var(--paper); border-color: transparent; }
.testi-card:nth-child(3n+1) .who .nm { color: var(--paper); }
.testi-card:nth-child(3n+1) .who .rl { color: rgba(245,241,230,0.6); }
.testi-card:nth-child(3n+2) { background: var(--pix); color: var(--ink); border-color: transparent; }

.testi-card .quote {
  font-family: var(--display);
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-weight: 500;
}
.testi-card .stars { color: var(--orange); letter-spacing: 2px; font-size: 18px; }
.testi-card:nth-child(3n+2) .stars { color: var(--ink); }
.testi-card .who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.testi-card .av {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--orange-soft);
  color: var(--orange);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-family: var(--display);
}
.testi-card:nth-child(3n+1) .av { background: var(--pix-soft); color: var(--pix-deep); }
.testi-card .who .nm { font-weight: 600; font-size: 14px; }
.testi-card .who .rl { font-size: 12px; color: var(--mute); }

.testi-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
}
.testi-dots { display: flex; gap: 8px; }
.testi-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--line);
  transition: width .25s var(--ease), background .25s var(--ease);
  cursor: pointer;
}
.testi-dot.active { width: 32px; background: var(--ink); border-radius: 4px; }
.testi-arrows { display: flex; gap: 8px; }
.testi-arrow {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.testi-arrow:hover { background: var(--ink); color: var(--paper); }

/* ============ FAQ ============ */
.faq {
  padding: 100px 0;
}
.faq-inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
  align-items: start;
}
.faq h2 {
  font-size: clamp(38px, 5vw, 56px);
  letter-spacing: -0.035em;
}
.faq .side p {
  color: var(--ink-soft);
  margin: 20px 0 24px;
  font-size: 16px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  width: 100%;
  text-align: left;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.015em;
  color: var(--ink);
  transition: color .2s var(--ease);
}
.faq-q:hover { color: var(--pix-deep); }
.faq-toggle {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--line-2);
  display: grid;
  place-items: center;
  flex: none;
  transition: background .25s var(--ease), transform .35s var(--ease);
}
.faq-item.open .faq-toggle { background: var(--pix); transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s var(--ease);
}
.faq-a-inner {
  padding: 0 0 24px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.6;
  max-width: 68ch;
}

/* ============ Contact form ============ */
.contact {
  padding: 100px 0;
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 12% 30%, rgba(0,210,106,0.18), transparent 45%),
    radial-gradient(circle at 88% 70%, rgba(255,90,31,0.12), transparent 45%);
  pointer-events: none;
}
.contact-inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}
.contact-side h2 {
  font-size: clamp(38px, 5vw, 56px);
  color: var(--paper);
  letter-spacing: -0.035em;
}
.contact-side h2 em { color: var(--pix); font-style: italic; font-weight: 500; }
.contact-side .eyebrow {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
  color: var(--paper);
  margin-bottom: 20px;
}
.contact-side p { color: rgba(245,241,230,0.7); margin: 20px 0 30px; font-size: 16px; }

.contact-chans {
  display: flex; flex-direction: column; gap: 10px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid rgba(245,241,230,0.08);
}
.cc {
  display: flex; gap: 14px; align-items: center;
  padding: 14px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.cc:hover { background: rgba(0,210,106,0.06); border-color: rgba(0,210,106,0.25); }
.cc .ico {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(0,210,106,0.15);
  color: var(--pix);
  display: grid; place-items: center;
  flex: none;
}
.cc .lbl { font-size: 12px; color: rgba(245,241,230,0.5); font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.06em; }
.cc .val { font-family: var(--display); font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }

/* Form card */
.form-card {
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--r-xl);
  padding: 36px;
  box-shadow: var(--shadow-3);
  position: relative;
  overflow: hidden;
}
.form-card h3 {
  font-size: 24px;
  letter-spacing: -0.025em;
  margin-bottom: 6px;
}
.form-card .sub {
  font-size: 14px;
  color: var(--mute);
  margin-bottom: 24px;
}
.field { margin-bottom: 18px; position: relative; }
.field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.field label .req { color: var(--orange); }
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 14px 16px;
  background: var(--paper-2);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  font-size: 15px;
  color: var(--ink);
  font-family: var(--body);
  transition: border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
  outline: none;
}
.field input::placeholder, .field textarea::placeholder { color: var(--mute); }
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--ink-soft); }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--pix-deep);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(0,210,106,0.12);
}
.field textarea { resize: vertical; min-height: 120px; font-family: var(--body); line-height: 1.5; }
.field.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field.row .field { margin-bottom: 0; }
.field .err {
  display: none;
  margin-top: 6px;
  font-size: 12px;
  color: var(--orange);
  font-weight: 500;
}
.field.invalid input,
.field.invalid textarea {
  border-color: var(--orange);
  background: rgba(255,90,31,0.04);
}
.field.invalid .err { display: block; }

/* Department chips */
.dept-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.dept-grid input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.dept-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 8px;
  background: var(--paper-2);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  transition: all .2s var(--ease);
  user-select: none;
}
.dept-chip svg { transition: color .2s var(--ease); color: var(--ink-soft); }
.dept-chip:hover { border-color: var(--ink); }
input[type="radio"]:checked + .dept-chip {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
input[type="radio"]:checked + .dept-chip svg { color: var(--pix); }
input[type="radio"]:focus-visible + .dept-chip {
  box-shadow: 0 0 0 4px rgba(0,210,106,0.18);
}

/* Checkbox */
.check {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
  cursor: pointer;
  user-select: none;
}
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check .box {
  width: 18px; height: 18px;
  border: 1.5px solid var(--line);
  border-radius: 5px;
  flex: none;
  margin-top: 2px;
  display: grid;
  place-items: center;
  background: var(--paper-2);
  transition: background .15s var(--ease), border-color .15s var(--ease);
}
.check .box svg { opacity: 0; }
.check input:checked + .box { background: var(--ink); border-color: var(--ink); }
.check input:checked + .box svg { opacity: 1; color: var(--pix); }
.check a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* Submit */
.form-actions {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.form-actions .hint {
  font-size: 12px;
  color: var(--mute);
  display: flex;
  align-items: center;
  gap: 6px;
}
.btn[disabled] { opacity: 0.6; pointer-events: none; }
.btn .spinner {
  width: 14px; height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: none;
}
.btn.loading .spinner { display: inline-block; }
.btn.loading .arrow, .btn.loading .label { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Success state */
.form-success {
  display: none;
  text-align: center;
  padding: 20px 0;
}
.form-card.sent .form-body { display: none; }
.form-card.sent .form-success { display: block; }
.form-success .ok-ring {
  width: 84px; height: 84px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--pix);
  display: grid;
  place-items: center;
  color: var(--ink);
  animation: pop 0.5s var(--ease-bounce);
}
@keyframes pop {
  from { transform: scale(0.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.form-success h3 {
  font-size: 28px;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
}
.form-success p { color: var(--ink-soft); max-width: 36ch; margin: 0 auto; }
.form-success .ticket {
  display: inline-block;
  margin-top: 24px;
  padding: 8px 16px;
  background: var(--ink);
  color: var(--pix);
  border-radius: var(--r-pill);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.form-success .meta {
  margin-top: 14px;
  font-size: 13px;
  color: var(--mute);
}
.form-success button.again {
  margin-top: 24px;
  background: transparent;
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 1024px) {
  .contact-inner { grid-template-columns: 1fr; }
  .dept-grid { grid-template-columns: 1fr 1fr; }
  .field.row { grid-template-columns: 1fr; gap: 0; }
  .field.row .field { margin-bottom: 18px; }
}

/* ============ Big CTA ============ */
.cta-big {
  padding: 60px 0 80px;
}
.cta-card {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-xl);
  padding: 80px 60px;
  position: relative;
  overflow: hidden;
  text-align: center;
  isolation: isolate;
}
.cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 0% 100%, rgba(0,210,106,0.3), transparent 50%),
    radial-gradient(circle at 100% 0%, rgba(255,90,31,0.2), transparent 50%);
  z-index: -1;
}
.cta-card h2 {
  font-size: clamp(40px, 7vw, 88px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.96;
  color: var(--paper);
  max-width: 16ch;
  margin: 0 auto;
}
.cta-card h2 em { color: var(--pix); font-style: italic; font-weight: 500; }
.cta-card p {
  margin-top: 28px;
  font-size: 18px;
  color: rgba(245,241,230,0.7);
  max-width: 50ch;
  margin-left: auto;
  margin-right: auto;
}
.cta-card .ctas {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.cta-card .btn-ghost { border-color: var(--paper); color: var(--paper); }
.cta-card .btn-ghost:hover { background: var(--paper); color: var(--ink); }

/* ============ Footer ============ */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: 80px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(245,241,230,0.08);
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p { color: rgba(245,241,230,0.6); font-size: 14px; line-height: 1.6; max-width: 36ch; }
.footer-social { display: flex; gap: 10px; margin-top: 24px; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(245,241,230,0.06);
  display: grid;
  place-items: center;
  transition: background .2s var(--ease);
}
.footer-social a:hover { background: var(--pix); color: var(--ink); }

.footer-col h5 {
  font-family: var(--body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(245,241,230,0.5);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  color: rgba(245,241,230,0.8);
  font-size: 14px;
  transition: color .2s var(--ease);
}
.footer-col a:hover { color: var(--pix); }
.footer-col li .tag {
  display: inline-block;
  margin-left: 6px;
  background: var(--pix);
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-bottom {
  margin-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12px;
  color: rgba(245,241,230,0.5);
}
.footer-bottom .legal { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-bottom .legal a:hover { color: var(--pix); }

/* ============ Page hero (for inner pages) ============ */
.page-hero {
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}
.page-hero h1 {
  font-size: clamp(48px, 7vw, 88px);
  letter-spacing: -0.04em;
  line-height: 0.96;
  max-width: 14ch;
}
.page-hero h1 em { color: var(--pix-deep); font-style: italic; font-weight: 500; }
.page-hero p.lede {
  font-size: 19px;
  color: var(--ink-soft);
  margin-top: 28px;
  max-width: 56ch;
}

.breadcrumbs {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--mute);
  margin-bottom: 24px;
}
.breadcrumbs a { color: var(--ink); }
.breadcrumbs a:hover { color: var(--pix-deep); }

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .nav-inner { padding: 12px 20px; gap: 12px; }
  .nav-toggle { display: inline-flex; }
  .nav-cta { margin-left: auto; }

  /* Drawer */
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: min(360px, 86vw);
    height: 100vh;
    height: 100dvh;
    background: var(--paper);
    border-left: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 80px 24px 32px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .35s var(--ease);
    z-index: 95;
    box-shadow: -20px 0 60px rgba(10,14,11,0.12);
  }
  .nav.open .nav-links { transform: translateX(0); }

  /* Close button inside the mobile drawer */
  .nav-links .nav-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink);
    cursor: pointer;
    padding: 0;
    z-index: 2;
    transition: background .2s var(--ease), transform .2s var(--ease);
  }
  .nav-close:hover { background: rgba(10,14,11,0.06); }
  .nav-close:active { transform: scale(0.96); }
  .nav-links > a, .nav-links .menu-host > button {
    width: 100%;
    justify-content: space-between;
    padding: 16px 14px;
    font-size: 17px;
    border-radius: var(--r-md);
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }
  .nav-links > a:last-child { border-bottom: none; }
  .menu-host { width: 100%; border-bottom: 1px solid var(--line); }
  .menu-host > button { border-bottom: none !important; }

  /* Mega menu becomes an inline accordion */
  .mega {
    position: static;
    transform: none;
    width: 100%;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0 0 12px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transition: max-height .35s var(--ease), opacity .25s var(--ease);
  }
  .mega.open {
    max-height: 1200px;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    width: 100%;
    left: auto;
  }
  .mega-grid { grid-template-columns: 1fr; gap: 6px; padding: 4px 0; }
  .mega-feature { display: none; }
  .mega-item { padding: 12px 14px; border-radius: var(--r-md); }

  /* Layout grids */
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  /* Sem padding horizontal aqui: o gutter vem do .wrap-wide
     (evita somar dois paddings e espremer o conteúdo) */
  .hero { padding: 24px 0 48px; }
  .hero-visual {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
  }

  /* Mobile: static dashboard image only — hide carousel rotation */
  .hero-visual .hero-art { display: none; }
  .hero-visual .hero-dots { display: none; }
  .hero-visual .hero-carousel {
    position: absolute;
    inset: 0;
    width: 100%;
    max-width: 100%;
    aspect-ratio: auto;
  }
  .hero-visual .hero-portrait { display: none; }
  .hero-visual .hero-portrait[data-slot="3"] {
    display: block;
    position: absolute;
    inset: 0;
    opacity: 1;
    transform: none;
    animation: none;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: drop-shadow(0 18px 32px rgba(10,14,11,0.12));
  }
  .hero-copy .lede {
    font-size: clamp(1rem, 3.5vw, 1.125rem);
    line-height: 1.5;
    text-align: left;
    max-width: 100%;
  }
  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }
  .hero-ctas .btn {
    width: 100%;
    min-height: 52px;
    justify-content: center;
    flex: 1 1 auto;
  }
  .hero-trust { flex-wrap: wrap; gap: 12px; }
  .hero-trust .divider { display: none; }

  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .prod-card, .prod-card.large, .prod-card.tall, .prod-card.wide, .prod-card.med,
  .prod-card.pix, .prod-card.maq, .prod-card.lnk-pay, .prod-card.api, .prod-card.dash {
    grid-column: span 1;
  }
  .prod-card.pix { grid-column: span 2; }
  .stats-inner { grid-template-columns: 1fr; gap: 40px; }
  .how-steps { grid-template-columns: repeat(2, 1fr); }
  .how-steps::before { display: none; }
  .feature-grid { grid-template-columns: 1fr; gap: 40px; }
  .feature-grid.reverse { direction: ltr; }
  .testi-card { flex: 0 0 calc((100% - 20px) / 2); }
  .faq-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-inner { grid-template-columns: 1fr; }
  .dept-grid { grid-template-columns: 1fr 1fr; }

  /* Topbar */
  .topbar { font-size: 13px; padding: 8px 16px; flex-wrap: wrap; gap: 8px; text-align: center; justify-content: center; }
}

@media (max-width: 640px) {
  .wrap, .wrap-wide { padding: 0 18px; }
  .testi-card { flex: 0 0 100%; }
  .prod-grid { grid-template-columns: 1fr; }
  .prod-card.pix { grid-column: span 1; }
  .how-steps { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .cta-card { padding: 44px 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .dept-grid { grid-template-columns: 1fr; }
  .nav-cta .btn:not(.btn-primary) { display: none; }
  .nav-cta .btn-primary { padding: 10px 14px; font-size: 13px !important; }
  .logo-img { height: 28px; }

  /* Headings */
  h1 { font-size: clamp(34px, 8vw, 48px); }
  h2 { font-size: clamp(28px, 6.5vw, 40px); }
  .hero-copy h1 { font-size: clamp(34px, 8.5vw, 48px); }

  /* Topbar compact */
  .topbar { font-size: 12px; }
  .topbar a { white-space: nowrap; }

  /* Section padding */
  section { padding-top: 56px; padding-bottom: 56px; }
}

/* Lock body when drawer open */
body.nav-locked { overflow: hidden; }

/* ============ Reveal animation ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }

/* Marquee ticker */
.ticker {
  background: var(--pix);
  color: var(--ink);
  padding: 14px 0;
  overflow: hidden;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.ticker-track {
  display: flex;
  gap: 60px;
  animation: scroll 35s linear infinite;
  width: max-content;
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.02em;
  align-items: center;
}
.ticker-track span { display: inline-flex; align-items: center; gap: 18px; white-space: nowrap; }
.ticker-track i { display: inline-block; width: 8px; height: 8px; background: var(--ink); border-radius: 50%; }



/* ============================================================
   Mobile polish — additive fixes only, no desktop visual change
   ============================================================ */

/* 1. No image bleeds out of its container */
img, video, canvas, svg { max-width: 100%; }
img, video, canvas { height: auto; }

/* 2. iOS Safari: prevent input zoom by ensuring 16px+ font-size */
@media (max-width: 1024px) {
  input, select, textarea {
    font-size: 16px !important;
  }
}

/* 3. Touch-target floor on phones: anchor/button targets ≥ 44px */
@media (max-width: 640px) {
  .nav-links > a,
  .nav-links .menu-host > button,
  .footer-col a,
  .testi-arrow,
  .hero-dot,
  .faq-q,
  .form-actions .btn {
    min-height: 44px;
  }
  /* Ensure dots stay tappable */
  .hero-dot { min-width: 44px; padding: 16px 8px; }
}

/* 4. Reduced motion: kill heavy animation */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .ticker-track,
  .logos-track,
  .hero-art-bg,
  .hero-art-glow,
  .hero-portrait.is-active {
    animation: none !important;
  }
}

/* 5. Quiet the most expensive animations on small phones */
@media (max-width: 640px) {
  .hero-art-bg,
  .hero-art-glow {
    animation: none;
  }
}

/* 6. Last-resort overflow trap so no rogue element causes
      a horizontal scrollbar at 375px */
@media (max-width: 480px) {
  .wrap, .wrap-wide { max-width: 100vw; }
  .ticker { max-width: 100vw; overflow: hidden; }
  .ticker-track { font-size: 18px; gap: 36px; }
  .logos-track { gap: 36px; }
  .logo-item { font-size: 15px; }
}

/* 7. Mobile typography clamp for the hero — keep desktop visual,
      just protect very small screens from over-large text */
@media (max-width: 640px) {
  .page-hero h1 {
    font-size: clamp(34px, 9vw, 48px);
    line-height: 1.05;
  }
  h2 {
    font-size: clamp(26px, 6.5vw, 38px);
    line-height: 1.12;
  }
}

/* 8. Body copy line-height floor — readability without changing desktop */
@media (max-width: 1024px) {
  p, li { line-height: 1.55; }
}

/* 9. Replace hover with active feedback on touch */
@media (hover: none) and (pointer: coarse) {
  .btn:hover { transform: none; }
  .btn:active { transform: translateY(1px); }
}

/* ============================================================
   Hero carousel — dots (CONSOLIDADO)
   Os dots só aparecem no DESKTOP — em ≤1024px o .hero-visual os
   esconde (display:none) e mostra a imagem estática. Por isso as
   antigas regras de tamanho/posição mobile dos dots e larguras do
   carrossel eram dead-code (ocultas ou sobrescritas por
   .hero-visual) e foram removidas. Tamanho/cor base ficam no bloco
   .hero-dot/.hero-dots no topo do arquivo. Aqui só: travar o flex
   dos dots e o container encolher ao conteúdo. Zero !important.
   ============================================================ */
.hero-dot { flex: 0 0 auto; aspect-ratio: 1 / 1; }
.hero-dot.is-active { aspect-ratio: auto; }
.hero-dots {
  width: auto;
  max-width: max-content;
  align-items: center;
  justify-content: center;
}

/* Header: alinhamento vertical limpo quando o hambúrguer aparece */
@media (max-width: 1024px) {
  .nav-inner { align-items: center; }
}

/* ============================================
   CORREÇÃO CONSOLIDADA FINAL — menu mobile
   (substitui todos os blocos de menu anteriores)
   ============================================ */

/* Trava scroll horizontal global (clip = sem container de scroll) */
html, body {
  overflow-x: clip;
  max-width: 100%;
}

/* X da gaveta: ESCONDIDO em qualquer largura por padrão */
.nav .nav-close,
button.nav-close {
  display: none !important;
}

/* ---------- DESKTOP (acima de 1024px) ---------- */
@media (min-width: 1025px) {
  .nav .nav-close,
  button.nav-close {
    display: none !important;
  }
}

/* ---------- MOBILE / TABLET (até 1024px) ---------- */
@media (max-width: 1024px) {

  /* Gaveta FECHADA: não existe no layout (não cria scroll lateral) */
  .nav:not(.open) .nav-links {
    display: none !important;
  }

  /* Gaveta ABERTA: painel lateral fixo */
  .nav.open .nav-links {
    display: flex !important;
    flex-direction: column !important;
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    width: min(360px, 86vw) !important;
    height: 100dvh !important;
    background: var(--nav-drawer-bg) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-left: 1px solid var(--line) !important;
    padding: 76px 24px 32px !important;
    overflow-y: auto !important;
    z-index: 95 !important;
    transform: none !important;
    box-shadow: -20px 0 60px rgba(10,14,11,0.25) !important;
  }

  /* Cor do texto do drawer vem do token --nav-drawer-fg.
     A specificity (0,3,1) vence o tema da página (ex.: body.dev
     pinta os links de claro p/ o navbar escuro) SEM precisar de
     !important nem de override por página. */
  .nav.open .nav-links a,
  .nav.open .nav-links button,
  .nav.open .nav-links .lbl { color: var(--nav-drawer-fg); }

  /* X aparece SOMENTE dentro da gaveta aberta */
  .nav.open .nav-close {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(10,14,11,0.06);
    border: 1px solid var(--line);
    color: var(--nav-drawer-fg);
    z-index: 30;
    pointer-events: auto;
  }
  .nav.open .nav-close:hover { background: rgba(10,14,11,0.12); }

  /* Mega menu de Serviços com altura natural dentro da gaveta */
  .nav.open .mega { position: static !important; z-index: 1 !important; }
  .nav.open .mega.open { max-height: none !important; height: auto !important; }
}

/* ============================================================
   MOBILE — refinamentos de layout
   Bloco aditivo e limpo (sem !important): os tamanhos agora moram
   nas regras-base com clamp(), então aqui só ficam ajustes de
   grid/legibilidade próprios do mobile. Não afeta o desktop.
   ============================================================ */

@media (max-width: 1024px) {
  /* Itens do grid do hero nunca podem ser esticados por uma palavra
     longa (min-width:auto é o default que causava o estouro). */
  .hero-grid,
  .hero-copy,
  .hero-visual { min-width: 0; }
  .hero-copy h1,
  .hero-copy .lede { overflow-wrap: break-word; }

  /* Hero centralizada no mobile (coluna única) */
  .hero-copy { text-align: center; }
  .hero-copy .lede { text-align: center; margin-left: auto; margin-right: auto; }
  .hero-trust { justify-content: center; }
}

@media (max-width: 640px) {
  /* Chips de departamento: 2 por linha (em vez de 1) = menos scroll */
  .dept-grid { grid-template-columns: 1fr 1fr; }
}
