/* ==========================================================================
   Nexo — site promocional (one page)
   Base: sites do Venda Mais e do Smith (mesma família ClientGO).
   Tokens tirados do próprio Nexo (corp-hub/web/src/main/theme.jsx):
     primary   #005697 · dark #002440 · light #94CFFC
     secondary #50CCEA · dark #1B6483 · light #E4F6FA
     success #28A745 · error #DC3545 · warning #FFC107 · info #17A2B8
     fundo da área de trabalho (bg.dark) #EBF1F7 · raio 8px
     fonte: pilha do sistema (-apple-system, Segoe UI, Roboto, Helvetica Neue, Arial)
   Os nomes das variáveis (--navy, --cyan…) foram mantidos para reaproveitar o CSS do modelo.
   ==========================================================================
   Tema e seções exclusivas. O estilo comum a todas as LPs está em /assets/css/lp.css.
   ========================================================================== */

:root {
  --navy-950: #00152a;   /* fundo mais profundo (derivado de primary.dark) */
  --navy-900: #002440;   /* primary.dark */
  --navy:     #005697;   /* primary.main — azul Nexo / clientGO */
  --navy-700: #004478;   /* hover */
  --blue:     #0a7fc4;   /* meio do degradê da logo */
  --cyan:     #50ccea;   /* secondary.main */
  --cyan-600: #1b6483;   /* secondary.dark */
  --sky:      #94cffc;   /* primary.light */
  --light:    #e4f6fa;   /* secondary.light */
  --ink:      #0f172a;
  --text:     #334155;
  --muted:    #64748b;
  --line:     #e2e8f0;
  --bg:       #ebf1f7;   /* bg.dark do app */
  --white:    #ffffff;
  --green:    #28a745;   /* success */
  --whats:    #25d366;
  --orange:   #f59e0b;
  --yellow:   #ffc107;   /* warning */
  --red:      #dc3545;   /* error */
  --info:     #17a2b8;

  --grad:       linear-gradient(135deg, var(--navy) 0%, var(--blue) 55%, var(--cyan) 100%);
  --grad-text:  linear-gradient(90deg, #7fc8ff 0%, var(--cyan) 100%);
  --shadow-sm:  0 2px 8px rgba(0, 86, 151, .08);
  --shadow:     0 18px 50px -18px rgba(0, 86, 151, .35);
  --shadow-lg:  0 40px 90px -30px rgba(0, 21, 42, .55);
  --radius:     18px;
  --container:  1200px;

  --font-head: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* cores usadas pela base comum (assets/css/lp.css): "-rgb" = mesma cor, para rgba(var(--x-rgb), alfa) */
  --blue-rgb: 2, 126, 236;
  --cyan-600-rgb: 31, 163, 214;
  --cyan-light: #a5e6f6;
  --cyan-lighter: #a5e6f6;
  --cyan-rgb: 80, 204, 234;
  --input-bg: #fbfcff;
  --input-line: #cfd8ea;
  --navy-950-rgb: 0, 21, 42;
  --navy-rgb: 0, 86, 151;
  --pill-cyan-text: #075985;
  --tag-ass-bg: #c9dcff;
  --tag-pag-bg: #b9f3f1;
  --tag-pag-text: #0a5c59;
  --ui-bar: #d7deef;
  --ui-btn-line: #c6d2ea;
  --ui-cam-1: #1b2c63;
  --ui-cam-2: #0f1a40;
  --ui-device: #0a1330;
  --ui-device-edge: #26325a;
  --ui-field-line: #ccd5e6;
  --ui-main-bg: #f8faff;
  --ui-side-bg: #f1f4fb;
  --ui-side-icon: #c4cde0;
  --ui-side-text: #4a5675;
  --ui-soft: #eef2f9;
  --ui-video: #0b1330;
  --ui-video-ctrl: #25325f;
}

.checks li::before {
  content: "";
  flex: none;
  width: 22px; height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--cyan) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23002440' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/13px no-repeat;
}

/* ---------- Seção integração ERP ---------- */
.erp {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 30px;
  align-items: center;
}

.sys .badge-erp {
  display: inline-flex; align-items: center; gap: 10px;
  font: 800 1.6rem var(--font-head);
  color: var(--white);
}

.sys .badge-erp i {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, #f97316, #f59e0b);
  display: grid; place-items: center;
  font-style: normal; font-size: 1.2rem;
}

.sys .badge-erp i svg { width: 24px; height: 24px; }

.erp-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }

.erp-points div { padding: 24px; border-radius: var(--radius); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); }

.erp-points h4 { color: var(--white); font-size: 1rem; }

.erp-points p { font-size: .92rem; margin: 0; color: rgba(255, 255, 255, .66); }

@media (max-width: 900px) {
  .pain-grid, .erp-points { grid-template-columns: 1fr; }
  .erp { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Componentes específicos do Smith (mantidos) e do Nexo
   ========================================================================== */
/* Print real (WebP 2x) dentro da moldura de navegador */
.browser .shot { display: block; width: 100%; height: auto; }

.shot-note { margin-top: 12px; font-size: .78rem; color: var(--muted); text-align: center; }

/* Hero: navegador + celular */
.hero-visual .duo { padding-right: 70px; }

.hero-visual .duo .phone { bottom: -50px; width: 200px; }

/* Conversa de WhatsApp no celular */
.wa-head {
  display: flex; align-items: center; gap: 8px;
  padding: 30px 10px 9px;
  background: #075e54;
  color: var(--white);
}

.wa-head .wa-av { width: 26px; height: 26px; border-radius: 50%; background: var(--white); display: grid; place-items: center; flex: none; overflow: hidden; }

.wa-head .wa-av img { width: 18px; }

.wa-head b { display: block; font: 700 10px var(--font-head); }

.wa-head small { font-size: 7.5px; opacity: .8; }

.wa-body {
  padding: 10px 8px;
  background: #ece5dd;
  display: flex; flex-direction: column; gap: 6px;
  min-height: 330px;
}

.bub { max-width: 84%; padding: 6px 8px 4px; border-radius: 8px; background: var(--white); font-size: 9px; line-height: 1.4; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); }

.bub small { display: block; text-align: right; font-size: 6.5px; color: #94a3b8; margin-top: 2px; }

.bub.me { align-self: flex-end; background: #dcf8c6; }

.bub.sys { align-self: center; background: #fff8e1; color: #6b5a1e; font-size: 7.5px; text-align: center; }

.bub .bt { display: block; margin-top: 5px; padding: 4px; border-radius: 6px; border: 1px solid #b7e0bb; text-align: center; color: #047857; font-weight: 700; background: #f4fff1; }

.bub .pdf { display: flex; align-items: center; gap: 6px; padding: 5px; margin-bottom: 3px; border-radius: 6px; background: #f1f5f9; font-weight: 600; }

.bub .pdf i { width: 16px; height: 20px; border-radius: 3px; background: var(--red); color: var(--white); font: 800 5.5px/20px var(--font-head); text-align: center; font-style: normal; }

.bub .audio { display: flex; align-items: center; gap: 5px; }

.bub .audio i { width: 0; height: 0; border-left: 7px solid #54656f; border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent; }

.bub .audio span { flex: 1; height: 3px; min-width: 80px; border-radius: 3px; background: repeating-linear-gradient(90deg, #8696a0 0 2px, transparent 2px 4px); }

/* Fluxo de URA (árvore de menus) */
.ura { display: grid; gap: 8px; }

.ura-node {
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 8px 10px;
  font-size: 9.5px;
}

.ura-node b { display: block; font-size: 8px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }

.ura-node.start { border-color: var(--navy); box-shadow: inset 3px 0 0 var(--navy); }

.ura-opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; position: relative; padding-left: 14px; }

.ura-opts::before { content: ""; position: absolute; left: 5px; top: -6px; bottom: 12px; width: 2px; background: #c9d6ea; }

.ura-opt { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 8px; background: var(--light); font-size: 9px; font-weight: 600; color: var(--navy); }

.ura-opt .n { width: 16px; height: 16px; border-radius: 5px; background: var(--navy); color: var(--white); display: grid; place-items: center; font-size: 8px; font-weight: 800; flex: none; }

.ura-opt.api { background: #ecfdf5; color: #047857; }

.ura-opt.api .n { background: var(--green); }

.ura-opt.hum { background: #fff7ed; color: #b45309; }

.ura-opt.hum .n { background: var(--orange); }

.ura-legend { display: flex; flex-wrap: wrap; gap: 10px; font-size: 8px; color: var(--muted); margin-top: 4px; }

.ura-legend span { display: flex; align-items: center; gap: 4px; }

.ura-legend span::before { content: ""; width: 8px; height: 8px; border-radius: 3px; background: var(--c); }

/* Setores, horários e distribuição */
.sectors { display: grid; gap: 7px; }

.sector {
  display: grid;
  grid-template-columns: 1.3fr 1fr .9fr auto;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 9.5px;
}

.sector b { display: block; font-size: 10px; }

.sector small { color: var(--muted); font-size: 8px; }

.sector .bar { height: 5px; border-radius: 999px; background: #e6edf7; overflow: hidden; }

.sector .bar span { display: block; height: 100%; width: var(--p); background: var(--grad); border-radius: inherit; }

.ppl { display: flex; }

.ppl i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--white); margin-left: -5px; background: var(--c, var(--navy)); color: var(--white); font: 800 7px/14px var(--font-head); text-align: center; font-style: normal; }

.ppl i:first-child { margin-left: 0; }

.rule { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 9px; background: var(--light); font-size: 9px; color: var(--navy); font-weight: 600; margin-top: 8px; }

.rule .sw { flex: none; }

/* Canais */
.channels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.channel {
  padding: 26px 22px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.channel .ch-ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; color: var(--white); margin-bottom: 14px; }

.channel .ch-ic svg { width: 24px; height: 24px; }

.channel h3 { font-size: 1.08rem; margin-bottom: 6px; }

.channel p { margin: 0; font-size: .92rem; color: var(--muted); }

.channels-note { margin: 28px auto 0; max-width: 820px; text-align: center; color: var(--muted); font-size: .98rem; }

.channels-note strong { color: var(--ink); }

/* Sistemas do cliente na seção de integração */
.sys .badge-erp i.sys-api { background: var(--grad); }

@media (max-width: 1080px) {
  .channels { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero-visual .duo { padding-right: 0; }
  .hero-visual .duo .phone { margin-top: -90px; }
}

@media (max-width: 600px) {
  .channels { grid-template-columns: 1fr; }
  .sector { grid-template-columns: 1.3fr 1fr auto; }
  .sector .hide-sm { display: none; }
  .ura-opts { grid-template-columns: 1fr; }
  .hero-visual .duo .phone { width: 170px; }
}

/* Blocos com print: mais espaço para a imagem */
.feature.wide { grid-template-columns: .85fr 1.4fr; gap: 56px; }

.feature.wide.reverse { grid-template-columns: 1.4fr .85fr; }

/* Hero: celular menor e chip de avaliação fora da conversa */
.hero-visual .duo .phone { width: 180px; bottom: -60px; }

.hero-visual .chip-c { right: auto; left: 34%; bottom: -34px; }

.hero-visual .chip-a { left: -26px; }

@media (max-width: 900px) {
  .feature.wide, .feature.wide.reverse { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .stat { padding: 22px 18px; }
  .stat strong { font-size: 1.55rem; }
  .stat > span { font-size: .85rem; }
  .hero { padding-bottom: 130px; }
  .footer-brands .sep { display: none; }
}

/* ==========================================================================
   Nexo
   ========================================================================== */
/* Logo larga (ícone + "nexo") no cabeçalho, rodapé e integração */
.header .brand img { height: 40px; }

.footer-brands .vm { height: 44px; }

.sys .sys-logo img { height: 48px; }

/* Print do portal dentro do celular do hero */
.phone .phone-shot { min-height: 0; aspect-ratio: 390 / 760; background: var(--bg); }

.phone .phone-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* Galeria de telas */
.gallery-head { text-align: center; margin: 70px auto 30px; max-width: 640px; }

.gallery-head h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); font-weight: 800; margin-bottom: 6px; }

.gallery-head p { color: var(--muted); margin: 0; }

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

.shot-card { margin: 0; }

.shot-card .browser { transform: none; box-shadow: var(--shadow); }

.shot-card .browser:hover { transform: translateY(-4px); }

.shot-card figcaption { margin-top: 12px; font-size: .92rem; color: var(--muted); }

.shot-card figcaption b { display: block; color: var(--ink); font-size: .98rem; }

@media (max-width: 1080px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .gallery { grid-template-columns: 1fr; }
  .header .brand img { height: 34px; }
}
