/* ==========================================================================
   AutoZapi — site institucional
   Direção visual: "tech-green-dark-mode-modern" (MengTo/Skills · web-design),
   adaptada à marca: superfícies preto-esverdeadas, verde #25D366 como sinal,
   painéis emoldurados com cantoneiras e rótulos mono apenas em dados de UI.
   ========================================================================== */

@property --angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

:root {
  /* Cor */
  --bg: #040907;
  --bg-2: #07100c;
  --panel: #0a1410;
  --panel-2: #0e1b15;
  --panel-3: #14271e;
  --line: rgba(190, 255, 215, 0.08);
  --line-2: rgba(190, 255, 215, 0.14);
  --line-3: rgba(190, 255, 215, 0.24);
  --ink: #ecf6ef;
  --ink-2: #c3d4ca;
  --muted: #8aa295;
  --faint: #6f8679;
  --zap: #25d366;
  --zap-hover: #3ee07b;
  --mint: #8af5b8;
  --deep: #0b3d25;
  --on-zap: #03170b;
  --ember: #ff7a59;
  --read: #53bdeb;

  /* Tipografia */
  --font-display: "Bricolage Grotesque", "Geist", system-ui, sans-serif;
  --font-body: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Layout */
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;

  /* Movimento */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  interpolate-size: allow-keywords;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  background: var(--bg);
  color-scheme: dark;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }

img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }
::selection { background: var(--zap); color: var(--on-zap); }
:focus-visible { outline: 2px solid var(--zap); outline-offset: 3px; border-radius: 8px; }

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

.skip {
  position: fixed; left: 16px; top: -64px; z-index: 100;
  padding: 10px 16px; border-radius: 999px;
  background: var(--zap); color: var(--on-zap); font-weight: 600;
  transition: top 0.2s var(--ease-out);
}
.skip:focus { top: 12px; }

.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* Ícones */
.ico {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.logo-ico { width: 22px; height: 22px; flex: none; fill: currentColor; stroke: none; }

/* Guias verticais fixas: o "chassi" técnico da página */
.guides { position: fixed; inset: 0; z-index: 0; pointer-events: none; display: none; }
@media (min-width: 1180px) {
  .guides { display: block; }
  .guides::before,
  .guides::after {
    content: ""; position: absolute; top: 0; bottom: 0; width: 1px;
    background: linear-gradient(180deg, transparent, var(--line) 12%, var(--line) 88%, transparent);
  }
  .guides::before { left: max(var(--gutter), calc(50% - var(--container) / 2)); }
  .guides::after { right: max(var(--gutter), calc(50% - var(--container) / 2)); }
}

main, .site-footer { position: relative; z-index: 1; }

/* ---------- Tipografia base ---------- */
.h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 90%;
  font-size: clamp(2.1rem, 4.6vw, 3.9rem);
  line-height: 1;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.lede {
  margin-top: 20px;
  max-width: 58ch;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.3vw, 1.16rem);
  line-height: 1.65;
  text-wrap: pretty;
}
.section { position: relative; padding-block: clamp(96px, 12vw, 168px); }
.section-head { max-width: 780px; margin-bottom: clamp(44px, 6vw, 76px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lede { margin-inline: auto; }

.mono { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.01em; }

/* ---------- Botões ---------- */
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  height: 52px; padding: 0 24px;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 0.98rem; letter-spacing: -0.01em; white-space: nowrap;
  transition: transform 0.25s var(--ease-out), background-color 0.25s, border-color 0.25s, box-shadow 0.35s, color 0.25s;
}
.btn .ico { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px) scale(0.99); }

.btn--primary {
  background: var(--zap);
  color: var(--on-zap);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 12px 32px -12px rgba(37, 211, 102, 0.7);
}
.btn--primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.8s var(--ease-out);
}
.btn--primary:hover {
  background: var(--zap-hover);
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 16px 44px -12px rgba(37, 211, 102, 0.85);
}
.btn--primary:hover::after { transform: translateX(120%); }

.btn--ghost { background: rgba(255, 255, 255, 0.03); border-color: var(--line-2); color: var(--ink); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.07); border-color: var(--line-3); }
.btn--ghost .logo-ico { width: 18px; height: 18px; color: var(--zap); }

.btn--sm { height: 40px; padding: 0 16px; font-size: 0.9rem; }
.btn--block { width: 100%; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s, border-color 0.35s, backdrop-filter 0.35s;
}
.site-header.is-scrolled,
.site-header.menu-open {
  background: rgba(4, 9, 7, 0.74);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}
.site-header.menu-open { background: rgba(4, 9, 7, 0.96); }

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.32rem; letter-spacing: -0.035em; }
.brand img { width: 36px; height: 36px; transition: transform 0.5s var(--ease-out); }
.brand:hover img { transform: rotate(-8deg) scale(1.06); }

.nav { display: none; }
.nav a {
  padding: 8px 14px; border-radius: 999px;
  color: var(--ink-2); font-size: 0.94rem;
  transition: color 0.2s, background-color 0.2s;
}
.nav a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.05); }
.nav a[aria-current="true"] { color: var(--ink); background: rgba(37, 211, 102, 0.1); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.header-actions .login { display: none; }

.menu-btn {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.02);
}
.menu-btn .ico-close { display: none; }
.menu-btn[aria-expanded="true"] .ico-close { display: block; }
.menu-btn[aria-expanded="true"] .ico-menu { display: none; }

.scroll-progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  transform-origin: 0 50%; transform: scaleX(var(--progress, 0));
  background: linear-gradient(90deg, var(--zap), var(--mint));
  box-shadow: 0 0 12px rgba(37, 211, 102, 0.6);
}

.mobile-nav {
  position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 49;
  display: grid; gap: 4px;
  padding: 12px var(--gutter) 24px;
  background: rgba(4, 9, 7, 0.96);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out), visibility 0.3s;
}
.mobile-nav.is-open { opacity: 1; visibility: visible; transform: none; }
.mobile-nav a:not(.btn) { padding: 14px 4px; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
.mobile-nav .btn { margin-top: 16px; }

/* Idioma: ícone discreto que abre a lista */
.lang { position: relative; }
.lang__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255, 255, 255, 0.02);
  color: var(--ink-2);
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}
.lang__btn:hover, .lang__btn[aria-expanded="true"] { color: var(--ink); border-color: var(--line-3); background: rgba(255, 255, 255, 0.05); }
.lang__btn .ico { width: 19px; height: 19px; }
.lang__code, .lang__chev { display: none; }
.lang__code { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.04em; }
.lang__chev { width: 14px !important; height: 14px !important; transition: transform 0.25s var(--ease-out); }
.lang__btn[aria-expanded="true"] .lang__chev { transform: rotate(180deg); }
.lang__list {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 70;
  min-width: 190px; margin: 0; padding: 6px;
  border: 1px solid var(--line-2); border-radius: 16px;
  background: rgba(10, 20, 16, 0.97);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 24px 50px -16px rgba(0, 0, 0, 0.85);
  animation: langIn 0.22s var(--ease-out) both;
}
.lang__list a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 12px; border-radius: 10px;
  color: var(--ink-2); font-size: 0.94rem;
  transition: background-color 0.15s, color 0.15s;
}
.lang__list a:hover, .lang__list a:focus-visible { background: rgba(255, 255, 255, 0.06); color: var(--ink); outline: none; }
.lang__list a .ico { width: 16px; height: 16px; color: var(--zap); stroke-width: 2.4; visibility: hidden; }
.lang__list a[aria-current="true"] { color: var(--ink); font-weight: 600; }
.lang__list a[aria-current="true"] .ico { visibility: visible; }
@media (min-width: 640px) {
  .lang__btn { width: auto; height: 40px; padding: 0 10px 0 12px; }
  .lang__code, .lang__chev { display: inline-block; }
}

.header-actions .header-trial { display: none; }
.mobile-nav .btn--primary { margin-top: 16px; }
.mobile-nav .btn--ghost { margin-top: 4px; }

@media (min-width: 640px) {
  .header-actions .login, .header-actions .header-trial { display: inline-flex; }
  .mobile-nav .btn--primary { display: none; }
}
@media (min-width: 1180px) {
  .nav { display: flex; gap: 2px; }
  .menu-btn, .mobile-nav { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(40px, 7vw, 92px));
  padding-bottom: clamp(40px, 5vw, 64px);
}
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 72% 42%, #000 15%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 65% at 72% 42%, #000 15%, transparent 75%);
}
.hero__glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(640px circle at var(--mx, 74%) var(--my, 34%), rgba(37, 211, 102, 0.14), transparent 60%),
    radial-gradient(900px 500px at 80% 110%, rgba(37, 211, 102, 0.08), transparent 70%);
}
.hero__canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  -webkit-mask-image: linear-gradient(180deg, transparent 42%, #000 62%, #000 80%, transparent);
  mask-image: linear-gradient(180deg, transparent 42%, #000 62%, #000 80%, transparent);
}
@media (min-width: 1080px) {
  .hero__canvas {
    -webkit-mask-image: linear-gradient(90deg, transparent 18%, #000 55%);
    mask-image: linear-gradient(90deg, transparent 18%, #000 55%);
  }
}

.hero__layout { display: grid; gap: clamp(44px, 6vw, 72px); align-items: center; }
@media (min-width: 1080px) { .hero__layout { grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr); } }

.hero__audience {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 5px 14px 5px 5px;
  border: 1px solid var(--line-2); border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--ink-2); font-size: 0.9rem;
  animation: rise 0.8s var(--ease-out) both;
}
.hero__audience span:first-child {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--zap); color: var(--on-zap);
}
.hero__audience .logo-ico { width: 15px; height: 15px; }

.hero__title {
  margin-top: 26px;
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 100%;
  font-size: clamp(2.5rem, 5.6vw, 4.9rem);
  line-height: 1;
  letter-spacing: -0.025em;
}
.hero__title .line { display: block; }
/* a máscara de cada palavra (para a entrada de baixo para cima) ganha folga
   nas bordas para não cortar acentos, descendentes e a última letra */
.hero__title .word {
  display: inline-block;
  padding: 0.12em 0.1em 0.1em 0.02em;
  margin: -0.12em -0.1em -0.1em -0.02em;
  overflow: hidden;
  vertical-align: top;
}
.hero__title .word > span {
  display: inline-block;
  animation: wordUp 0.9s var(--ease-out) both;
  animation-delay: calc(0.12s + var(--i, 0) * 0.07s);
}
.hero__title .line--quiet { color: var(--ink-2); }
.hero__title .ticks {
  display: inline-block;
  width: 0.62em; height: 0.44em;
  margin-left: 0.12em;
  vertical-align: 0.06em;
  stroke-width: 2.2;
  color: var(--faint);
  animation: ticksIn 0.5s var(--ease-out) both, ticksRead 0.6s ease forwards;
  animation-delay: 1.05s, 1.75s;
}

.hero__lede {
  margin-top: 26px; max-width: 54ch;
  color: var(--ink-2); font-size: clamp(1.04rem, 1.3vw, 1.17rem); line-height: 1.65;
  animation: rise 0.9s var(--ease-out) 0.55s both;
}
.hero__actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; animation: rise 0.9s var(--ease-out) 0.68s both; }
.hero__assure {
  margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 22px;
  color: var(--muted); font-size: 0.9rem;
  animation: rise 0.9s var(--ease-out) 0.8s both;
}
.hero__assure li { display: inline-flex; align-items: center; gap: 8px; }
.hero__assure .ico { width: 16px; height: 16px; color: var(--zap); stroke-width: 2.2; }

@media (max-width: 480px) {
  .hero__actions .btn { width: 100%; }
}

/* ---------- Console (simulação de atendimento) ---------- */
.console {
  position: relative;
  border: 1px solid var(--line-2);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(16, 30, 23, 0.92), rgba(8, 16, 12, 0.94));
  box-shadow: 0 50px 120px -50px rgba(37, 211, 102, 0.45), 0 30px 60px -30px rgba(0, 0, 0, 0.8);
  animation: consoleIn 1.1s var(--ease-out) 0.35s both;
}
.corner { position: absolute; width: 16px; height: 16px; border: 1.5px solid var(--zap); pointer-events: none; opacity: 0.85; }
.corner--tl { top: -8px; left: -8px; border-right: 0; border-bottom: 0; border-top-left-radius: 6px; }
.corner--tr { top: -8px; right: -8px; border-left: 0; border-bottom: 0; border-top-right-radius: 6px; }
.corner--bl { bottom: -8px; left: -8px; border-right: 0; border-top: 0; border-bottom-left-radius: 6px; }
.corner--br { bottom: -8px; right: -8px; border-left: 0; border-top: 0; border-bottom-right-radius: 6px; }

.console__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 12px 14px 12px 16px; border-bottom: 1px solid var(--line);
}
.console__status { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--zap); flex: none;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55);
  animation: livePulse 2s ease-out infinite;
}
.scenarios { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: rgba(0, 0, 0, 0.28); }
.scenarios button {
  border: 0; background: transparent; padding: 6px 12px; border-radius: 999px;
  font-size: 0.8rem; color: var(--muted);
  transition: color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.scenarios button:hover { color: var(--ink); }
.scenarios button[aria-pressed="true"] { color: var(--ink); background: var(--panel-3); box-shadow: inset 0 0 0 1px var(--line-2); }

.console__body { display: grid; }
@media (min-width: 640px) { .console__body { grid-template-columns: minmax(0, 1fr) 200px; } }

.chat { display: flex; flex-direction: column; min-height: 400px; }
@media (min-width: 640px) { .chat { min-height: 452px; border-right: 1px solid var(--line); } }

.chat__head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.015); }
.avatar {
  display: grid; place-items: center; flex: none;
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(145deg, #245a41, #12301f);
  color: var(--mint); font-weight: 600; font-size: 0.84rem;
}
.chat__who b { display: block; font-size: 0.95rem; font-weight: 600; line-height: 1.2; }
.chat__who small { color: var(--zap); font-size: 0.76rem; }
.agent-badge {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px 3px 3px; border-radius: 999px;
  background: rgba(37, 211, 102, 0.1); border: 1px solid rgba(37, 211, 102, 0.28);
  color: var(--mint); font-size: 0.74rem; white-space: nowrap;
}
.agent-badge img { width: 22px; height: 22px; }

.chat__stream {
  flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px;
  padding: 18px 14px; overflow: hidden;
  background-image: radial-gradient(rgba(190, 255, 215, 0.05) 1px, transparent 1px);
  background-size: 18px 18px;
}
.chat__day { align-self: center; margin-bottom: 4px; padding: 3px 10px; border-radius: 8px; background: rgba(255, 255, 255, 0.05); color: var(--muted); font-size: 0.72rem; }

.msg {
  position: relative; max-width: 84%;
  padding: 7px 10px 5px 11px; border-radius: 12px;
  font-size: 0.9rem; line-height: 1.42; overflow-wrap: anywhere;
  animation: msgIn 0.5s var(--ease-out) both;
}
.msg--in { align-self: flex-start; background: #1b2a23; border-top-left-radius: 4px; }
.msg--out { align-self: flex-end; background: #0f4a32; border-top-right-radius: 4px; }
.msg__meta { display: flex; justify-content: flex-end; align-items: center; gap: 4px; margin-top: 2px; color: rgba(236, 246, 239, 0.52); font-size: 0.66rem; }
.msg__meta .tick { width: 16px; height: 11px; stroke-width: 1.9; color: rgba(236, 246, 239, 0.5); transition: color 0.5s; }
.msg__meta .tick.is-read { color: var(--read); }
.msg__tag { align-self: flex-end; margin-top: -3px; display: inline-flex; align-items: center; gap: 6px; color: var(--mint); font-family: var(--font-mono); font-size: 0.66rem; animation: msgIn 0.5s var(--ease-out) 0.15s both; }
.msg__tag .ico { width: 12px; height: 12px; }

.typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 11px 14px; border-radius: 12px; border-top-left-radius: 4px; background: #0f4a32; animation: msgIn 0.35s var(--ease-out) both; }
.typing--out { align-self: flex-end; border-top-left-radius: 12px; border-top-right-radius: 4px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: rgba(236, 246, 239, 0.7); animation: typingDot 1.2s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }

.chat__composer { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-top: 1px solid var(--line); }
.composer-field { flex: 1; display: flex; align-items: center; height: 38px; padding: 0 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.04); color: var(--faint); font-size: 0.84rem; }
.composer-send { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--zap); color: var(--on-zap); }
.composer-send .ico { width: 17px; height: 17px; }

.ops { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 12px; border-top: 1px solid var(--line); }
.ops__card--event { grid-column: 1 / -1; }
@media (min-width: 640px) { .ops { display: flex; flex-direction: column; border-top: 0; padding: 14px; } }
.ops__card { min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, 0.018); transition: border-color 0.4s, background-color 0.4s, opacity 0.4s; }
.ops__label { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--muted); }
.ops__lead { margin-top: 8px; font-size: 0.86rem; font-weight: 600; }
.stages { margin-top: 10px; display: grid; gap: 7px; }
.stage { display: flex; align-items: center; gap: 9px; color: var(--faint); font-size: 0.8rem; transition: color 0.35s; }
.stage i { position: relative; width: 14px; height: 14px; flex: none; border-radius: 50%; border: 1.5px solid var(--line-3); transition: background-color 0.35s, border-color 0.35s, box-shadow 0.35s; }
.stage.is-current { color: var(--ink); }
.stage.is-current i { border-color: var(--zap); box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.12); }
.stage.is-done { color: var(--ink-2); }
.stage.is-done i { background: var(--zap); border-color: var(--zap); box-shadow: 0 0 12px rgba(37, 211, 102, 0.55); }
.stage.is-done i::after { content: ""; position: absolute; left: 3.5px; top: 1.5px; width: 4px; height: 7px; border: solid var(--on-zap); border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); }
.metric { margin-top: 6px; font-family: var(--font-display); font-weight: 700; font-size: 2.3rem; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.metric small { font-family: var(--font-body); font-size: 0.82rem; font-weight: 500; letter-spacing: 0; color: var(--muted); margin-left: 4px; }
.ops__card--event { opacity: 0.45; }
.ops__card--event.is-on { opacity: 1; border-color: rgba(37, 211, 102, 0.45); background: rgba(37, 211, 102, 0.08); }
.event { margin-top: 8px; display: flex; align-items: center; gap: 10px; }
.event__icon { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 10px; background: rgba(255, 255, 255, 0.05); color: var(--mint); }
.event__icon .ico { width: 18px; height: 18px; }
.ops__card--event.is-on .event__icon { background: var(--zap); color: var(--on-zap); }
.event b { display: block; font-size: 0.86rem; line-height: 1.25; }
.event small { color: var(--muted); font-size: 0.76rem; }

.console__note { margin-top: 14px; text-align: right; color: var(--faint); }

/* ---------- Faixa de modelos de IA ---------- */
.logos { padding-block: clamp(36px, 5vw, 56px) 0; }
.logos__label { text-align: center; color: var(--muted); font-size: 0.95rem; margin-bottom: 22px; }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track { display: flex; flex-wrap: wrap; justify-content: center; width: auto; }
.js .marquee__track { flex-wrap: nowrap; justify-content: flex-start; width: max-content; animation: marquee 46s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.logo-chip {
  display: inline-flex; align-items: center; gap: 10px;
  height: 54px; padding: 0 22px; margin: 0 6px 12px;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255, 255, 255, 0.018);
  color: var(--ink-2); font-weight: 500; white-space: nowrap;
  transition: color 0.25s, border-color 0.25s, background-color 0.25s;
}
.js .logo-chip { margin-bottom: 0; }
.logo-chip:hover { color: var(--ink); border-color: var(--line-3); background: rgba(255, 255, 255, 0.04); }

/* ==========================================================================
   O custo da demora
   ========================================================================== */
.story { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(120px, 15vw, 210px) clamp(96px, 12vw, 160px); }
.story__photo { position: absolute; inset: 0 0 auto 0; height: min(980px, 100%); z-index: -1; }
.story__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 30%; filter: saturate(0.75) contrast(1.05); }
.story__photo::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 22%, rgba(4, 9, 7, 0.82) 52%, rgba(4, 9, 7, 0.45) 100%),
    linear-gradient(180deg, var(--bg) 0%, transparent 22%, transparent 55%, var(--bg) 100%);
}
@media (max-width: 767px) {
  .story__photo::after { background: linear-gradient(180deg, var(--bg) 0%, rgba(4, 9, 7, 0.82) 25%, rgba(4, 9, 7, 0.9) 70%, var(--bg) 100%); }
}
.story__time { display: inline-flex; align-items: center; gap: 10px; color: var(--zap); font-size: 0.86rem; }
.story__lead {
  margin-top: 26px; max-width: 21ch;
  font-family: var(--font-display); font-weight: 600; font-stretch: 92%;
  font-size: clamp(2rem, 4.6vw, 3.9rem); line-height: 1.06; letter-spacing: -0.035em;
  text-wrap: pretty;
}
.js .story__lead .w {
  opacity: calc(0.14 + 0.86 * var(--p, 0));
  filter: blur(calc((1 - var(--p, 0)) * 3px));
}
.story__lead .w { transition: none; }

.stats { margin-top: clamp(72px, 9vw, 120px); display: grid; border-top: 1px solid var(--line-2); }
.stat { padding: 28px 0 30px; border-bottom: 1px solid var(--line); }
.stat__num { font-family: var(--font-display); font-weight: 700; font-size: clamp(3.2rem, 6vw, 5.2rem); line-height: 1; letter-spacing: -0.055em; font-variant-numeric: tabular-nums; }
.stat__num em { font-style: normal; color: var(--zap); }
.stat p { margin-top: 12px; max-width: 30ch; color: var(--muted); }
@media (min-width: 768px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stat { padding: 34px 28px 0 0; border-bottom: 0; }
  .stat + .stat { padding-left: 28px; border-left: 1px solid var(--line); }
}

/* Calculadora */
.calc {
  position: relative;
  margin-top: clamp(72px, 9vw, 120px);
  display: grid;
  border: 1px solid var(--line-2); border-radius: 26px;
  background: var(--panel);
}
@media (min-width: 960px) { .calc { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); } }
.calc__form { padding: clamp(24px, 4vw, 48px); display: grid; gap: 26px; align-content: start; }
.calc__title { font-family: var(--font-display); font-weight: 700; font-stretch: 92%; font-size: clamp(1.7rem, 2.8vw, 2.4rem); line-height: 1.05; letter-spacing: -0.035em; }
.calc__intro { margin-top: -12px; color: var(--muted); max-width: 46ch; }

.range { display: grid; gap: 12px; }
.range label { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; color: var(--ink-2); font-size: 0.95rem; }
.range output { font-family: var(--font-mono); font-size: 0.92rem; color: var(--ink); white-space: nowrap; }
.range input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px; margin: 8px 0; border-radius: 999px;
  background: linear-gradient(90deg, var(--zap) var(--fill, 50%), rgba(255, 255, 255, 0.09) var(--fill, 50%));
  outline: none;
}
.range input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--ink); border: 4px solid var(--zap);
  box-shadow: 0 0 0 6px rgba(37, 211, 102, 0.14), 0 4px 12px rgba(0, 0, 0, 0.5);
  cursor: grab; transition: transform 0.2s var(--ease-out);
}
.range input[type="range"]::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--ink); border: 4px solid var(--zap);
  box-shadow: 0 0 0 6px rgba(37, 211, 102, 0.14);
  cursor: grab;
}
.range input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.12); cursor: grabbing; }
.range input[type="range"]:focus-visible { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--zap); }

.calc__result {
  position: relative; overflow: hidden;
  padding: clamp(24px, 4vw, 48px);
  display: flex; flex-direction: column; gap: 18px; justify-content: center;
  border-top: 1px solid var(--line);
  border-radius: 0 0 26px 26px;
  background: radial-gradient(120% 90% at 100% 0%, rgba(255, 122, 89, 0.16), transparent 60%), var(--panel-2);
}
@media (min-width: 960px) { .calc__result { border-top: 0; border-left: 1px solid var(--line); border-radius: 0 26px 26px 0; } }
.calc__result-label { color: var(--ink-2); }
.loss { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.8rem, 5.6vw, 4.6rem); line-height: 1; letter-spacing: -0.05em; color: var(--ember); font-variant-numeric: tabular-nums; }
.loss-year { color: var(--ink-2); }
.loss-year b { color: var(--ink); }
.calc__math { padding: 12px 14px; border-radius: 12px; background: rgba(0, 0, 0, 0.28); border: 1px solid var(--line); color: var(--muted); font-size: 0.78rem; line-height: 1.6; }
.calc__note { color: var(--muted); font-size: 0.84rem; }
.calc__result .btn { align-self: flex-start; }

/* ==========================================================================
   Recursos (explorador em abas)
   ========================================================================== */
.features { background: linear-gradient(180deg, var(--bg), var(--bg-2) 18%, var(--bg-2) 82%, var(--bg)); }

.tabs { display: grid; gap: 22px; }
@media (min-width: 1024px) { .tabs { grid-template-columns: 330px minmax(0, 1fr); gap: 36px; align-items: start; } }

.tabs__list {
  display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter) 6px;
  scrollbar-width: none;
}
.tabs__list::-webkit-scrollbar { display: none; }
@media (min-width: 1024px) {
  .tabs__list { flex-direction: column; overflow: visible; margin: 0; padding: 0; position: sticky; top: calc(var(--header-h) + 24px); }
}

.tab {
  position: relative; overflow: hidden; flex: none; scroll-snap-align: start;
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px 14px;
  padding: 12px 16px 12px 12px; text-align: left;
  border: 1px solid var(--line); border-radius: 16px;
  background: rgba(255, 255, 255, 0.015);
  transition: border-color 0.3s, background-color 0.3s;
}
.tab:hover { border-color: var(--line-2); background: rgba(255, 255, 255, 0.03); }
.tab__icon {
  grid-row: span 2; display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); color: var(--ink-2);
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.tab__title { font-weight: 600; font-size: 0.98rem; white-space: nowrap; }
.tab__hint { display: none; font-size: 0.84rem; color: var(--muted); }
@media (min-width: 1024px) { .tab { padding: 14px 16px 14px 14px; } .tab__hint { display: block; } }
.tab[aria-selected="true"] { border-color: rgba(37, 211, 102, 0.42); background: linear-gradient(135deg, rgba(37, 211, 102, 0.12), rgba(37, 211, 102, 0.02)); }
.tab[aria-selected="true"] .tab__icon { background: var(--zap); color: var(--on-zap); border-color: transparent; }
.tab__bar { position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--zap); transform: scaleX(0); transform-origin: left; }
.tab[aria-selected="true"] .tab__bar { animation: tabBar var(--tab-dur, 8s) linear forwards; }
.tabs.is-paused .tab__bar { animation-play-state: paused; }
.tabs.is-manual .tab__bar { display: none; }

.panel {
  position: relative;
  display: grid; gap: 24px;
  padding: clamp(14px, 2.2vw, 24px);
  border: 1px solid var(--line-2); border-radius: 24px;
  background: var(--panel);
}
.panel[hidden] { display: none; }
.panel:not([hidden]) { animation: panelIn 0.6s var(--ease-out) both; }
.panel__mock { position: relative; overflow: hidden; min-height: 360px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-2); }
.panel__copy { padding: 4px 8px 8px; display: grid; gap: 0 40px; align-items: start; }
@media (min-width: 760px) {
  .panel__copy { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); grid-template-rows: min-content 1fr; }
  .panel__copy h3, .panel__copy > p { grid-column: 1; }
  .panel__copy .checks { grid-column: 2; grid-row: 1 / span 2; margin-top: 4px; }
}
.panel__copy h3 { font-family: var(--font-display); font-weight: 700; font-stretch: 92%; font-size: clamp(1.5rem, 2.2vw, 1.95rem); line-height: 1.05; letter-spacing: -0.035em; text-wrap: balance; }
.panel__copy p { margin-top: 14px; color: var(--ink-2); }
.checks { margin-top: 20px; display: grid; gap: 11px; }
.checks li { display: flex; gap: 10px; color: var(--ink-2); font-size: 0.95rem; line-height: 1.45; }
.checks .ico { width: 18px; height: 18px; color: var(--zap); stroke-width: 2.2; margin-top: 1px; }

/* ---------- Mockups de interface (prefixo m-) ---------- */
.m-label { display: block; margin-bottom: 8px; color: var(--muted); font-family: var(--font-mono); font-size: 0.7rem; }
.m-pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 0.74rem; color: var(--ink-2); white-space: nowrap; }
.m-pill--on { color: var(--mint); border-color: rgba(37, 211, 102, 0.35); background: rgba(37, 211, 102, 0.1); }
.m-pill--on::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--zap); box-shadow: 0 0 8px var(--zap); }
.m-card { border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); }

/* Agente */
.m-agent { display: grid; gap: 14px; }
.m-agent__head { display: flex; align-items: center; gap: 12px; padding: 12px; }
.m-agent__head img { width: 42px; height: 42px; }
.m-agent__head b { display: block; font-size: 1rem; }
.m-agent__head span { color: var(--muted); font-size: 0.82rem; }
.m-agent__head .m-pill { margin-left: auto; }
.m-models { display: flex; flex-wrap: wrap; gap: 6px; }
.m-model { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px 0 10px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); color: var(--ink-2); font-size: 0.8rem; }
.m-model .logo-ico { width: 15px; height: 15px; }
.m-model.is-on { border-color: var(--zap); color: var(--ink); background: rgba(37, 211, 102, 0.12); box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1); }
.m-prompt { padding: 12px 14px; font-size: 0.88rem; line-height: 1.55; color: var(--ink-2); }
.m-prompt mark { background: rgba(37, 211, 102, 0.18); color: var(--ink); border-radius: 4px; padding: 0 3px; }
.caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -0.15em; background: var(--zap); animation: caret 1s steps(1) infinite; }
.m-toggles { display: grid; }
.m-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; font-size: 0.86rem; color: var(--ink-2); }
.m-toggle + .m-toggle { border-top: 1px solid var(--line); }
.switch { position: relative; width: 36px; height: 20px; flex: none; border-radius: 999px; background: var(--zap); }
.switch::after { content: ""; position: absolute; top: 3px; right: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--on-zap); }

/* Kanban */
.m-kanban { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.m-col { display: grid; align-content: start; gap: 8px; padding: 10px; border-radius: 12px; background: rgba(255, 255, 255, 0.02); border: 1px solid var(--line); min-height: 320px; }
.m-col__head { display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; font-weight: 600; color: var(--ink-2); margin-bottom: 2px; }
.m-col__head span { font-family: var(--font-mono); font-size: 0.7rem; color: var(--muted); padding: 1px 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); }
.m-col__head::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--muted)); margin-right: 8px; }
.m-col__head b { margin-right: auto; font-weight: 600; }
.m-deal { padding: 10px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); font-size: 0.8rem; }
.m-deal b { display: block; font-weight: 600; font-size: 0.84rem; }
.m-deal small { display: block; color: var(--muted); margin-top: 2px; }
.m-deal__foot { margin-top: 8px; display: flex; justify-content: space-between; align-items: center; font-family: var(--font-mono); font-size: 0.7rem; color: var(--ink-2); }
.m-deal__foot i { font-style: normal; padding: 1px 6px; border-radius: 6px; background: rgba(37, 211, 102, 0.12); color: var(--mint); }
.m-deal.is-moving { border-color: rgba(37, 211, 102, 0.55); box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1), 0 12px 24px -12px rgba(37, 211, 102, 0.5); animation: dealIn 4.5s var(--ease-out) infinite; }

/* Caixa de entrada */
.m-inbox__bar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.m-inbox__bar .m-pill.is-on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.m-inbox__bar .m-conn { margin-left: auto; color: var(--muted); font-family: var(--font-mono); font-size: 0.7rem; align-self: center; }
.m-thread { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 11px 10px; border-radius: 12px; transition: background-color 0.3s; }
.m-thread + .m-thread { border-top: 1px solid var(--line); }
.m-thread.is-active { background: rgba(37, 211, 102, 0.07); }
.m-thread .avatar { grid-row: span 2; width: 36px; height: 36px; font-size: 0.78rem; background: var(--bg-av, #1d3a2c); color: var(--ink); }
.m-thread b { font-size: 0.88rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-thread p { grid-column: 2; font-size: 0.8rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-thread time { font-family: var(--font-mono); font-size: 0.68rem; color: var(--muted); justify-self: end; }
.m-thread__side { display: flex; align-items: center; gap: 6px; justify-self: end; }
.m-dept { font-size: 0.66rem; padding: 1px 7px; border-radius: 6px; background: rgba(255, 255, 255, 0.06); color: var(--ink-2); white-space: nowrap; }
.m-who { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-size: 0.6rem; font-weight: 700; background: var(--panel-3); color: var(--ink-2); }
.m-who--ai { background: var(--zap); color: var(--on-zap); }
.m-unread { display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--zap); color: var(--on-zap); font-size: 0.64rem; font-weight: 700; }

/* Campanhas */
.m-camp { display: grid; gap: 14px; }
.m-camp__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.m-camp__head b { font-size: 0.98rem; margin-right: auto; }
.m-camp__grid { display: grid; gap: 14px; }
@media (min-width: 640px) { .m-camp__grid { grid-template-columns: 0.9fr 1.1fr; } }
.m-bubble { position: relative; padding: 12px 14px 10px; border-radius: 14px; border-top-right-radius: 4px; background: #0f4a32; font-size: 0.86rem; line-height: 1.5; }
.m-bubble .var { font-family: var(--font-mono); font-size: 0.78rem; padding: 0 4px; border-radius: 4px; background: rgba(138, 245, 184, 0.16); color: var(--mint); }
.m-channels { display: flex; gap: 6px; margin-top: 10px; }
.m-bars { display: grid; gap: 12px; padding: 14px; }
.m-bar { display: grid; gap: 6px; }
.m-bar__row { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--ink-2); }
.m-bar__row b { font-family: var(--font-mono); font-weight: 500; color: var(--ink); }
.m-bar__track { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.m-bar__fill { height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--deep), var(--zap)); transform-origin: left; animation: barGrow 1.4s var(--ease-out) both; animation-delay: var(--d, 0s); }
.m-safe { display: flex; align-items: center; gap: 10px; padding: 10px 12px; font-size: 0.8rem; color: var(--ink-2); }
.m-safe .ico { color: var(--zap); width: 18px; height: 18px; }

/* Fluxo de integrações */
.m-flow { display: grid; justify-items: center; gap: 0; padding-top: 6px; }
.m-node { display: flex; align-items: center; gap: 12px; width: min(100%, 380px); padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--panel-2); }
.m-node__icon { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 10px; background: rgba(255, 255, 255, 0.05); color: var(--ink); }
.m-node__icon img { width: 30px; height: 30px; }
.m-node__icon--zap { background: var(--zap); color: var(--on-zap); }
.m-node b { display: block; font-size: 0.86rem; }
.m-node small { display: block; color: var(--muted); font-size: 0.76rem; font-family: var(--font-mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-node > div { min-width: 0; }
.m-node--ai { border-color: rgba(37, 211, 102, 0.45); box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.07); }
.m-wire { position: relative; width: 2px; height: 30px; background: var(--line-2); overflow: hidden; }
.m-wire::after { content: ""; position: absolute; left: 0; top: -12px; width: 2px; height: 12px; background: var(--zap); box-shadow: 0 0 8px var(--zap); animation: wire 1.6s linear infinite; }
.m-outs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; max-width: 520px; position: relative; padding-top: 18px; }
.m-outs::before { content: ""; position: absolute; top: 0; left: 16.66%; right: 16.66%; height: 18px; border: 2px solid var(--line-2); border-bottom: 0; border-radius: 12px 12px 0 0; }
.m-out { display: grid; justify-items: center; gap: 6px; padding: 12px 8px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel-2); text-align: center; font-size: 0.76rem; color: var(--ink-2); }
.m-out .logo-ico, .m-out .ico { width: 22px; height: 22px; color: var(--ink); }
.m-log { margin-top: 14px; width: 100%; max-width: 520px; padding: 10px 12px; border-radius: 10px; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line); font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); }
.m-log b { color: var(--zap); font-weight: 500; }

/* Agenda */
.m-cal__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.m-cal__head b { font-size: 0.95rem; }
.m-cal__head .m-pill .logo-ico { width: 13px; height: 13px; }
.m-cal { display: grid; grid-template-columns: 38px repeat(5, minmax(0, 1fr)); gap: 4px; font-size: 0.72rem; }
.m-cal__day { text-align: center; color: var(--muted); padding-bottom: 4px; }
.m-cal__day b { display: block; color: var(--ink); font-size: 0.86rem; }
.m-cal__hour { color: var(--faint); font-family: var(--font-mono); font-size: 0.66rem; padding-top: 6px; }
.m-slot { min-height: 40px; border-radius: 8px; background: rgba(255, 255, 255, 0.02); border: 1px dashed var(--line); }
.m-slot--busy { border: 0; padding: 5px 7px; background: rgba(37, 211, 102, 0.12); border-left: 2px solid var(--zap); color: var(--ink-2); line-height: 1.3; overflow: hidden; }
.m-slot--busy b { display: block; color: var(--ink); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-slot--new { background: var(--zap); border: 0; color: var(--on-zap); padding: 5px 7px; line-height: 1.3; animation: slotPop 3.5s var(--ease-out) infinite; }
.m-slot--new b { display: block; font-weight: 700; }
.m-toasts { margin-top: 14px; display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.m-toast { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: rgba(14, 27, 21, 0.95); border: 1px solid var(--line-2); box-shadow: 0 16px 30px -12px rgba(0, 0, 0, 0.8); font-size: 0.78rem; color: var(--ink-2); animation: toastIn 0.6s var(--ease-out) both; animation-delay: var(--d, 0s); }
.m-toast b { color: var(--ink); }
.m-toast .ico { color: var(--zap); width: 18px; height: 18px; }

/* ==========================================================================
   Como funciona
   ========================================================================== */
.steps { position: relative; display: grid; gap: 44px; }
.steps__line { position: absolute; left: 27px; top: 28px; bottom: 28px; width: 1px; background: var(--line-2); }
.steps__fill { position: absolute; inset: 0; background: linear-gradient(180deg, var(--zap), var(--mint)); transform-origin: top; transform: scaleY(var(--p, 0)); box-shadow: 0 0 12px rgba(37, 211, 102, 0.6); }
.step { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 0 24px; }
.step__num {
  position: relative; z-index: 1;
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--line-2); color: var(--muted);
  font-family: var(--font-mono); font-size: 0.9rem;
  transition: border-color 0.5s, color 0.5s, box-shadow 0.5s;
}
.step.is-on .step__num { border-color: var(--zap); color: var(--zap); box-shadow: 0 0 0 6px rgba(37, 211, 102, 0.08), 0 0 32px rgba(37, 211, 102, 0.35); }
.step__icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); color: var(--ink-2); transition: color 0.5s, border-color 0.5s; }
.step.is-on .step__icon { color: var(--zap); border-color: rgba(37, 211, 102, 0.35); }
.step h3 { margin-top: 18px; font-family: var(--font-display); font-weight: 700; font-stretch: 92%; font-size: 1.6rem; letter-spacing: -0.03em; line-height: 1.1; }
.step p { margin-top: 10px; color: var(--muted); max-width: 36ch; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .steps__line { left: 28px; right: calc(33.333% - 28px + 32px / 3); top: 28px; bottom: auto; width: auto; height: 1px; }
  .steps__fill { background: linear-gradient(90deg, var(--zap), var(--mint)); transform-origin: left; transform: scaleX(var(--p, 0)); }
  .step { grid-template-columns: 1fr; }
  .step__body { margin-top: 28px; }
}

/* ==========================================================================
   Segmentos
   ========================================================================== */
.segments { display: grid; gap: 16px; }
@media (min-width: 640px) { .segments { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .segments { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.seg { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 22px; border: 1px solid var(--line); background: var(--panel); transition: border-color 0.4s, transform 0.5s var(--ease-out); }
.seg:hover { border-color: rgba(37, 211, 102, 0.35); transform: translateY(-4px); }
.seg__img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--panel-2); }
.seg__img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.82) contrast(1.02); transition: transform 1s var(--ease-out), filter 0.6s; }
.seg:hover .seg__img img { transform: scale(1.06); filter: saturate(1.05) contrast(1.04); }
.seg__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(10, 20, 16, 0.9)); }
.seg__tag {
  position: absolute; left: 14px; top: 14px; z-index: 1;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px;
  background: rgba(4, 9, 7, 0.72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid var(--line-2); color: var(--ink); font-size: 0.76rem;
}
.seg__tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--zap); }
.seg__body { padding: 18px 22px 24px; }
.seg__body h3 { font-family: var(--font-display); font-weight: 700; font-stretch: 92%; font-size: 1.35rem; letter-spacing: -0.03em; line-height: 1.15; }
.seg__body p { margin-top: 8px; color: var(--muted); font-size: 0.96rem; }
.credits { margin-top: 18px; color: var(--faint); font-size: 0.8rem; }
.credits a { text-decoration: underline; text-underline-offset: 2px; }

/* ==========================================================================
   Integrações (órbita)
   ========================================================================== */
/* O anel da órbita gira: a caixa de um quadrado girado fica até 41% maior e,
   sem este recorte, alargava a página no celular (o cabeçalho fixo "andava" para a direita). */
#integracoes { overflow-x: hidden; overflow-x: clip; }
.integr { display: grid; gap: 56px; align-items: center; }
@media (min-width: 1024px) { .integr { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); } }
.integr__groups { margin-top: 36px; display: grid; gap: 22px; }
.integr__group h3 { font-size: 0.85rem; font-weight: 500; color: var(--muted); margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); color: var(--ink-2); font-size: 0.88rem; white-space: nowrap; transition: border-color 0.25s, color 0.25s; }
.chip:hover { border-color: var(--line-3); color: var(--ink); }
.chip .logo-ico, .chip .ico { width: 16px; height: 16px; }

.orbit { position: relative; width: min(100%, 580px); aspect-ratio: 1; margin-inline: auto; container-type: inline-size; perspective: 1100px; }
.orbit__stage { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 0.8s var(--ease-out); }
.orbit__glow { position: absolute; inset: 20%; border-radius: 50%; background: radial-gradient(circle, rgba(37, 211, 102, 0.28), transparent 68%); filter: blur(10px); }
.ring { position: absolute; border-radius: 50%; border: 1px dashed var(--line-2); }
.ring--1 { inset: 21%; --r: 29cqw; --t: 70s; }
.ring--2 { inset: 3%; --r: 47cqw; --t: 110s; }
.js .ring { animation: spin var(--t) linear infinite; }
.js .ring--2 { animation-direction: reverse; }
.ring__item {
  position: absolute; top: 50%; left: 50%;
  width: 11cqw; height: 11cqw; min-width: 42px; min-height: 42px;
  translate: -50% -50%;
  transform: rotate(calc(var(--i) * 360deg / var(--n))) translateY(calc(-1 * var(--r))) rotate(calc(var(--i) * -360deg / var(--n)));
}
.ring__item > span {
  display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%;
  background: var(--panel-2); border: 1px solid var(--line-2); color: var(--ink-2);
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.8);
  transition: color 0.3s, border-color 0.3s, background-color 0.3s;
}
.js .ring__item > span { animation: spin var(--t) linear infinite reverse; }
.js .ring--2 .ring__item > span { animation-direction: normal; }
.ring__item .logo-ico { width: 44%; height: 44%; }
.ring__item:hover > span { color: var(--ink); border-color: var(--zap); background: var(--panel-3); }
.orbit:hover .ring, .orbit:hover .ring__item > span { animation-play-state: paused; }
.orbit__core { position: absolute; inset: 38%; display: grid; place-items: center; }
.orbit__core img { width: 100%; height: 100%; filter: drop-shadow(0 20px 40px rgba(37, 211, 102, 0.45)); }
.orbit__core::before, .orbit__core::after { content: ""; position: absolute; inset: -6%; border-radius: 50%; border: 1px solid rgba(37, 211, 102, 0.4); animation: ripple 3.2s ease-out infinite; }
.orbit__core::after { animation-delay: 1.6s; }

/* ==========================================================================
   Planos
   ========================================================================== */
.trial {
  display: flex; flex-direction: column; gap: 20px;
  padding: 24px 28px; margin-bottom: 20px;
  border: 1px solid rgba(37, 211, 102, 0.32); border-radius: 22px;
  background: linear-gradient(100deg, rgba(37, 211, 102, 0.12), rgba(37, 211, 102, 0.02) 70%);
}
.trial h3 { font-family: var(--font-display); font-weight: 700; font-stretch: 92%; font-size: 1.5rem; letter-spacing: -0.03em; }
.trial p { margin-top: 4px; color: var(--ink-2); }
@media (min-width: 820px) { .trial { flex-direction: row; align-items: center; justify-content: space-between; } }

.plans { display: grid; gap: 16px; }
@media (min-width: 640px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1140px) { .plans { grid-template-columns: repeat(4, 1fr); } }
.plan {
  position: relative; display: flex; flex-direction: column;
  padding: 30px 24px 24px; border-radius: 22px;
  border: 1px solid var(--line-2);
  background: radial-gradient(420px circle at var(--x, 50%) var(--y, -20%), rgba(37, 211, 102, 0.09), transparent 55%), var(--panel);
  transition: border-color 0.35s, transform 0.45s var(--ease-out);
}
.plan:hover { border-color: var(--line-3); transform: translateY(-4px); }
.plan--featured { border-color: transparent; background: radial-gradient(420px circle at var(--x, 50%) var(--y, -20%), rgba(37, 211, 102, 0.16), transparent 60%), linear-gradient(180deg, rgba(37, 211, 102, 0.07), transparent 40%), var(--panel-2); }
.plan--featured::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--angle), transparent 0 55%, var(--zap) 72%, var(--mint) 78%, transparent 92%), linear-gradient(rgba(37, 211, 102, 0.35), rgba(37, 211, 102, 0.35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: beam 5s linear infinite;
}
.plan__badge { position: absolute; top: -12px; left: 24px; padding: 4px 12px; border-radius: 999px; background: var(--zap); color: var(--on-zap); font-size: 0.76rem; font-weight: 700; }
.plan h3 { font-family: var(--font-display); font-weight: 700; font-stretch: 92%; font-size: 1.45rem; letter-spacing: -0.03em; }
.plan__for { margin-top: 6px; min-height: 3em; color: var(--muted); font-size: 0.9rem; line-height: 1.5; }
.price { margin-top: 18px; display: flex; align-items: flex-start; gap: 3px; font-family: var(--font-display); letter-spacing: -0.045em; }
.price__cur { margin-top: 9px; font-size: 1.05rem; font-weight: 600; color: var(--ink-2); letter-spacing: 0; }
.price__int { font-size: 3.6rem; font-weight: 700; line-height: 1; }
.price__dec { margin-top: 7px; font-size: 1.25rem; font-weight: 700; }
.price__per { align-self: flex-end; margin: 0 0 7px 4px; font-family: var(--font-body); font-size: 0.88rem; letter-spacing: 0; color: var(--muted); }
.limits { margin-top: 20px; display: grid; gap: 6px; padding: 14px 0; border-block: 1px solid var(--line); }
.limits div { display: flex; align-items: baseline; gap: 8px; }
.limits b { min-width: 1.6em; font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); }
.limits span { font-size: 0.9rem; color: var(--ink-2); }
.plan .checks { margin-top: 18px; flex: 1; align-content: start; }
.plan .checks li { font-size: 0.92rem; }
.plan .btn { margin-top: 24px; }
.plans__note { margin-top: 20px; text-align: center; color: var(--muted); font-size: 0.9rem; }
.plans__note a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--zap); text-underline-offset: 3px; }

/* ==========================================================================
   Dúvidas
   ========================================================================== */
.faq { display: grid; gap: 40px; }
@media (min-width: 1024px) { .faq { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 72px; align-items: start; } .faq__aside { position: sticky; top: calc(var(--header-h) + 32px); } }
.faq__aside .btn { margin-top: 28px; }
.qa { border-bottom: 1px solid var(--line); }
.qa:first-child { border-top: 1px solid var(--line); }
.qa summary {
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0; cursor: pointer; font-weight: 600; font-size: 1.06rem; line-height: 1.4;
  transition: color 0.2s;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--mint); }
.qa__icon { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); transition: transform 0.35s var(--ease-out), background-color 0.3s, color 0.3s, border-color 0.3s; }
.qa__icon .ico { width: 16px; height: 16px; }
.qa[open] .qa__icon { transform: rotate(45deg); background: var(--zap); color: var(--on-zap); border-color: transparent; }
.qa__body { padding: 0 48px 24px 0; color: var(--ink-2); max-width: 64ch; }
.qa::details-content { block-size: 0; overflow: hidden; transition: block-size 0.4s var(--ease-out), content-visibility 0.4s allow-discrete; }
.qa[open]::details-content { block-size: auto; }

/* ==========================================================================
   CTA final
   ========================================================================== */
.cta-wrap { padding-block: clamp(40px, 6vw, 80px) 0; }
.cta {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; gap: 32px; align-items: center;
  padding: clamp(36px, 7vw, 92px);
  border-radius: clamp(24px, 3vw, 36px);
  background: var(--zap); color: var(--on-zap);
}
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(3, 23, 11, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(3, 23, 11, 0.09) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 80% 50%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse at 80% 50%, #000, transparent 75%);
}
.cta::after { content: ""; position: absolute; z-index: -1; width: 60%; aspect-ratio: 1; right: -12%; top: -30%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, 0.35), transparent 65%); }
@media (min-width: 900px) { .cta { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); } }
.cta h2 { font-family: var(--font-display); font-weight: 800; font-stretch: 82%; font-size: clamp(2.8rem, 7.4vw, 6.4rem); line-height: 0.9; letter-spacing: -0.055em; text-wrap: balance; }
.cta p { margin-top: 22px; max-width: 42ch; font-size: clamp(1.05rem, 1.4vw, 1.22rem); color: rgba(3, 23, 11, 0.82); }
.cta__actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.btn--ink { background: var(--on-zap); color: var(--ink); box-shadow: 0 16px 36px -16px rgba(3, 23, 11, 0.8); }
.btn--ink:hover { background: #0b2a18; transform: translateY(-1px); }
.btn--outline-ink { border: 1.5px solid rgba(3, 23, 11, 0.4); color: var(--on-zap); }
.btn--outline-ink:hover { background: rgba(3, 23, 11, 0.07); border-color: var(--on-zap); }
.btn--outline-ink .logo-ico { width: 18px; height: 18px; }
.cta :focus-visible { outline-color: var(--on-zap); }
.cta .assure { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 0.9rem; color: rgba(3, 23, 11, 0.75); }
.cta .assure li { display: inline-flex; align-items: center; gap: 7px; }
.cta .assure .ico { width: 16px; height: 16px; stroke-width: 2.4; }

.mascot { width: min(100%, 340px); margin-inline: auto; overflow: visible; filter: drop-shadow(0 30px 40px rgba(3, 23, 11, 0.3)); }
.mascot__float { animation: float 6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.mascot__eyes { transition: transform 0.25s var(--ease-out); }
.mascot__eye-r { transform-box: fill-box; transform-origin: center; animation: blink 5s infinite; }
.cta.is-happy .mascot__eye-r { animation: none; transform: scaleY(0.12); transition: transform 0.2s; }

/* ==========================================================================
   Rodapé
   ========================================================================== */
.site-footer { margin-top: clamp(80px, 10vw, 140px); padding-block: 64px 36px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } .footer-brand { grid-column: 1 / -1; } }
@media (min-width: 980px) { .footer-grid { grid-template-columns: 1.5fr repeat(3, 1fr); } .footer-brand { grid-column: auto; } }
.footer-brand img { width: 190px; }
.footer-brand p { margin-top: 18px; max-width: 34ch; color: var(--muted); }
.footer-col h3 { margin-bottom: 12px; font-size: 0.85rem; font-weight: 500; color: var(--muted); }
.footer-col a { display: flex; align-items: center; gap: 8px; width: fit-content; padding: 5px 0; color: var(--ink-2); transition: color 0.2s; }
.footer-col a:hover { color: var(--zap); }
.footer-col .logo-ico, .footer-col .ico { width: 16px; height: 16px; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--faint); font-size: 0.85rem; }

/* ==========================================================================
   Modal de contato (lead → WhatsApp)
   ========================================================================== */
.lead {
  width: min(480px, 100% - 32px); max-height: calc(100dvh - 32px);
  padding: 0; border: 1px solid var(--line-2); border-radius: 24px;
  background: var(--panel); color: var(--ink);
  box-shadow: 0 50px 120px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.4);
  overflow: auto;
}
.lead::backdrop { background: rgba(2, 6, 4, 0.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lead[open] { animation: dialogIn 0.4s var(--ease-out); }
.lead__inner { position: relative; padding: 30px 28px 28px; }
.lead__close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: var(--ink-2); }
.lead__close:hover { color: var(--ink); border-color: var(--line-3); }
.lead h2 { padding-right: 40px; font-family: var(--font-display); font-weight: 700; font-stretch: 92%; font-size: 1.7rem; letter-spacing: -0.035em; line-height: 1.1; }
.lead__intro { margin-top: 8px; color: var(--muted); }
.lead form { margin-top: 22px; display: grid; gap: 16px; }
.field label { display: block; margin-bottom: 6px; font-size: 0.88rem; color: var(--ink-2); }
.field label small { color: var(--faint); }
.field input, .field select {
  width: 100%; height: 48px; padding: 0 14px;
  border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field select { -webkit-appearance: none; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field select option { background: var(--panel); color: var(--ink); }
.field input::placeholder { color: var(--faint); }
.field input:focus, .field select:focus { outline: none; border-color: var(--zap); box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.16); }
.field.has-error input { border-color: var(--ember); }
.field__error { margin-top: 6px; color: var(--ember); font-size: 0.82rem; }
.lead__fine { color: var(--faint); font-size: 0.8rem; text-align: center; }
.lead__done { display: grid; justify-items: center; gap: 12px; padding: 12px 0 4px; text-align: center; }
.lead__done img { width: 88px; height: 88px; }
.lead__done p { color: var(--ink-2); max-width: 36ch; }
.lead__done a:not(.btn) { color: var(--zap); text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   Webchat (widget existente) — harmonização com a paleta
   ========================================================================== */
/* a imagem original do botão (crm.autozapi.com/webchat-logo.png) retorna 404: usamos o robô da marca */
html body #channel-chat-button {
  width: 62px; height: 62px;
  background: transparent url("../img/icon-192.png") center / 100% no-repeat;
  box-shadow: none;
  filter: drop-shadow(0 12px 24px rgba(37, 211, 102, 0.45));
}
html body #channel-chat-button img { display: none; }
/* O widget foi feito para páginas claras e não define cor de texto: sem isto ele herdaria
   o texto claro e o color-scheme escuro do site (texto invisível nos balões e no campo). */
html body #channel-chat-container {
  color-scheme: light;
  color: #14201a;
  font-family: var(--font-body);
  border-radius: 18px;
  overflow: hidden;
}
html body #channel-chat-header { background: var(--deep); color: #fff; }
html body #channel-chat-messages,
html body #channel-chat-input-area { background: #f3f8f5; }
html body #channel-chat-input-area { border-top-color: #e2efe6; }
html body #channel-chat-input { background: #fff; color: #14201a; border-color: #d3e3da; }
html body #channel-chat-input::placeholder { color: #7a8c82; }
html body #channel-chat-input:focus { border-color: var(--zap); box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.18); }
html body #channel-chat-attach,
html body #channel-chat-send { color: #1fa855 !important; }
html body #channel-chat-attach:hover,
html body #channel-chat-send:hover { background-color: rgba(37, 211, 102, 0.12); }
html body .channel-message { color: #14201a; }
html body .channel-sent { background: #d9fdd3; }
html body .channel-received { background: #fff; border-color: #e2efe6; box-shadow: none; }

/* Grade de planos conforme a quantidade cadastrada no painel */
@media (min-width: 1140px) {
  .plans--3 { grid-template-columns: repeat(3, 1fr); }
  .plans--2 { grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; }
  .plans--1 { grid-template-columns: minmax(0, 440px); justify-content: center; }
}

/* ==========================================================================
   Chat do site (bot com IA)
   ========================================================================== */
.azc { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; pointer-events: none; }
.azc > * { pointer-events: auto; }
.azc__launcher {
  width: 64px; height: 64px; padding: 0; border: 0; border-radius: 50%; background: transparent;
  filter: drop-shadow(0 14px 26px rgba(37, 211, 102, 0.45));
  transition: transform 0.35s var(--ease-out);
}
.azc__launcher img { width: 100%; height: 100%; }
.azc__launcher:hover { transform: scale(1.07) rotate(-5deg); }

.azc__teaser {
  display: flex; align-items: center; gap: 4px; max-width: 270px;
  padding: 8px 6px 8px 14px; border-radius: 16px 16px 4px 16px;
  background: var(--ink); color: var(--bg);
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.7);
  animation: toastIn 0.5s var(--ease-out) both;
}
.azc__teaser-text { border: 0; padding: 4px 0; background: transparent; color: inherit; font-weight: 600; font-size: 0.92rem; text-align: left; line-height: 1.35; }
.azc__teaser-x { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; color: #4b5d53; }
.azc__teaser-x:hover { background: rgba(4, 9, 7, 0.08); }
.azc__teaser-x .ico { width: 15px; height: 15px; }

.azc__panel {
  display: flex; flex-direction: column;
  width: min(390px, calc(100vw - 32px)); height: min(620px, calc(100dvh - 120px));
  border: 1px solid var(--line-2); border-radius: 22px; overflow: hidden;
  background: var(--panel);
  box-shadow: 0 50px 110px -30px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(0, 0, 0, 0.4), 0 0 60px -20px rgba(37, 211, 102, 0.25);
  transform-origin: bottom right;
  animation: chatIn 0.4s var(--ease-out) both;
}
.azc__head { display: flex; align-items: center; gap: 10px; padding: 12px 10px 12px 14px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--panel-3), var(--panel-2)); }
.azc__head img { width: 40px; height: 40px; flex: none; }
.azc__who { flex: 1; min-width: 0; }
.azc__who b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; letter-spacing: -0.02em; line-height: 1.2; }
.azc__who > span { display: inline-flex; align-items: center; gap: 6px; color: var(--mint); font-size: 0.78rem; }
.azc__who .live-dot { width: 7px; height: 7px; }
.azc__icon { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-2); transition: background-color 0.2s, color 0.2s; }
.azc__icon:hover { background: rgba(255, 255, 255, 0.07); color: var(--ink); }
.azc__icon .ico { width: 18px; height: 18px; }

.azc__log {
  flex: 1; overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; gap: 10px; padding: 16px 14px;
  background-image: radial-gradient(rgba(190, 255, 215, 0.045) 1px, transparent 1px); background-size: 18px 18px;
  scrollbar-width: thin; scrollbar-color: var(--line-3) transparent;
}
.azc__msg { max-width: 86%; padding: 10px 13px; border-radius: 16px; font-size: 0.93rem; line-height: 1.5; overflow-wrap: anywhere; animation: msgIn 0.4s var(--ease-out) both; }
.azc__msg p + p, .azc__msg p + ul, .azc__msg ul + p { margin-top: 6px; }
.azc__msg ul { margin-top: 4px; padding-left: 18px; list-style: disc; }
.azc__msg li + li { margin-top: 3px; }
.azc__msg a { color: var(--mint); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.azc__msg strong { font-weight: 650; color: var(--ink); }
.azc__msg--bot { align-self: flex-start; background: var(--panel-3); border-top-left-radius: 6px; }
.azc__msg--user { align-self: flex-end; background: #0f4a32; border-top-right-radius: 6px; white-space: pre-wrap; }
.azc__msg--error { background: rgba(255, 122, 89, 0.1); border: 1px solid rgba(255, 122, 89, 0.28); }
.azc__typing { display: inline-flex; gap: 4px; padding: 14px; }
.azc__typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-2); animation: typingDot 1.2s infinite ease-in-out; }
.azc__typing i:nth-child(2) { animation-delay: 0.15s; }
.azc__typing i:nth-child(3) { animation-delay: 0.3s; }
.azc__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.azc__chip { padding: 7px 12px; border: 1px solid rgba(37, 211, 102, 0.4); border-radius: 999px; background: rgba(37, 211, 102, 0.08); color: var(--mint); font-size: 0.84rem; text-align: left; transition: background-color 0.2s, border-color 0.2s; }
.azc__chip:hover { background: rgba(37, 211, 102, 0.16); border-color: var(--zap); }

.azc__form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 10px 10px 12px; border-top: 1px solid var(--line); }
.azc__input {
  flex: 1; min-height: 42px; max-height: 120px; resize: none;
  padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 14px;
  background: var(--bg-2); color: var(--ink); font-size: 0.93rem; line-height: 1.4;
  overflow-y: hidden;
}
.azc__input::placeholder { color: var(--faint); }
.azc__input:focus { outline: none; border-color: var(--zap); box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.15); }
.azc__send { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--zap); color: var(--on-zap); transition: background-color 0.2s, opacity 0.2s; }
.azc__send:hover { background: var(--zap-hover); }
.azc__send:disabled { opacity: 0.45; cursor: not-allowed; }
.azc__send .ico { width: 18px; height: 18px; }
.azc__foot { display: grid; justify-items: center; gap: 2px; padding: 4px 14px 12px; }
.azc__foot a { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 8px; color: var(--ink-2); font-size: 0.84rem; }
.azc__foot a:hover { color: var(--zap); }
.azc__foot .logo-ico { width: 15px; height: 15px; color: var(--zap); }
.azc__foot small { color: var(--faint); font-size: 0.72rem; }

@media (max-width: 520px) {
  .azc { right: 14px; bottom: 14px; }
  .azc.is-open { inset: 0; }
  .azc.is-open .azc__panel { width: 100%; height: 100%; border-radius: 0; border: 0; }
  .azc.is-open .azc__launcher { display: none; }
}

/* ==========================================================================
   Revelação no scroll (uma só linguagem, discreta)
   ========================================================================== */
.js [data-reveal] { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); transition-delay: var(--delay, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ==========================================================================
   Keyframes
   ========================================================================== */
@keyframes rise { from { opacity: 0; transform: translate3d(0, 18px, 0); } to { opacity: 1; transform: none; } }
@keyframes wordUp { from { transform: translate3d(0, 105%, 0); } to { transform: none; } }
@keyframes ticksIn { from { opacity: 0; transform: translate3d(-6px, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes ticksRead { to { color: var(--zap); } }
@keyframes consoleIn { from { opacity: 0; transform: translate3d(0, 40px, 0) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(37, 211, 102, 0); } }
@keyframes msgIn { from { opacity: 0; transform: translate3d(0, 10px, 0) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes typingDot { 0%, 60%, 100% { transform: none; opacity: 0.45; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }
@keyframes tabBar { to { transform: scaleX(1); } }
@keyframes panelIn { from { opacity: 0; transform: translate3d(0, 14px, 0); } to { opacity: 1; transform: none; } }
@keyframes caret { 50% { opacity: 0; } }
@keyframes dealIn { 0% { opacity: 0; transform: translate3d(-60px, 0, 0) rotate(-3deg); } 14%, 88% { opacity: 1; transform: none; } 100% { opacity: 1; transform: none; } }
@keyframes barGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes wire { to { transform: translateY(42px); } }
@keyframes slotPop { 0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); } 50% { box-shadow: 0 0 0 6px rgba(37, 211, 102, 0); } }
@keyframes toastIn { from { opacity: 0; transform: translate3d(0, 12px, 0); } to { opacity: 1; transform: none; } }
@keyframes spin { to { rotate: 360deg; } }
@keyframes ripple { from { transform: scale(0.9); opacity: 0.8; } to { transform: scale(1.6); opacity: 0; } }
@keyframes beam { to { --angle: 360deg; } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-12px) rotate(1.5deg); } }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(0.1); } }
@keyframes langIn { from { opacity: 0; transform: translate3d(0, -6px, 0) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes chatIn { from { opacity: 0; transform: translate3d(0, 16px, 0) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes dialogIn { from { opacity: 0; transform: translate3d(0, 16px, 0) scale(0.97); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   Movimento reduzido: estados finais imediatos, nada em loop
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.001ms !important;
  }
  .js .marquee__track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .js .marquee__track [aria-hidden="true"] { display: none; }
  .js .logo-chip { margin-bottom: 12px; }
  .js .ring, .js .ring__item > span { animation: none; }
  .js .story__lead .w { opacity: 1; filter: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .hero__title .ticks { color: var(--zap); }
}
