/* ===========================================================
   Luby · Subadquirência White Label — Landing
   Design system
   =========================================================== */

:root {
  /* Brand */
  --ink: #0b1b3b;          /* Luby navy */
  --ink-2: #13264f;
  --accent: #3997db;       /* Luby blue */
  --accent-strong: #2b7fbe;
  --accent-tint: #eaf3fb;
  --accent-tint-2: #d9ebf8;

  /* Neutrals */
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --bg-blue: #eef4fb;
  --line: #e6eaf0;
  --line-soft: #eef1f6;
  --muted: #5b6678;
  --muted-2: #8a93a6;

  /* Dark section */
  --dark: #0a142e;
  --dark-2: #0d1a3a;
  --dark-line: rgba(255,255,255,.10);

  /* Type */
  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;

  /* Radii */
  --r-sm: 14px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 36px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(11,27,59,.06);
  --shadow-md: 0 18px 40px -20px rgba(11,27,59,.22);
  --shadow-lg: 0 40px 90px -40px rgba(11,27,59,.40);
  --shadow-blue: 0 30px 70px -30px rgba(57,151,219,.55);

  --maxw: 1200px;
  --gut: clamp(20px, 5vw, 40px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
/* Fallback global: SVG de ícone nunca estoura o container (evita ícones gigantes se o CSS específico falhar/atrasar) */
svg { max-width: 100%; max-height: 100%; }
.ic, .ck { flex-shrink: 0; }
.ic > svg, .ck > svg { width: 1.4em; height: 1.4em; max-width: 100%; max-height: 100%; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; color: var(--ink); margin: 0; line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }

.container { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gut); }
.section { padding-block: clamp(64px, 9vw, 120px); }

/* Accent helpers */
.accent { color: var(--accent); }
.mark {
  background: linear-gradient(180deg, transparent 58%, var(--accent-tint-2) 58%);
  padding: 0 .08em;
  border-radius: 3px;
}

/* ---- Pills / labels ---- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head);
  font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--accent-strong);
  background: var(--accent-tint);
  border: 1px solid var(--accent-tint-2);
  padding: 7px 16px; border-radius: var(--r-pill);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.pill.on-dark { color: #bcd9f3; background: rgba(57,151,219,.14); border-color: rgba(57,151,219,.30); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: 16px;
  padding: 15px 28px; border-radius: var(--r-pill);
  border: 1px solid transparent; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 14px 30px -12px rgba(57,151,219,.7); }
.btn-primary:hover { background: var(--accent-strong); transform: translateY(-2px); box-shadow: 0 20px 36px -12px rgba(57,151,219,.75); }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-ghost-dark { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.22); }
.btn-ghost-dark:hover { background: rgba(255,255,255,.12); }
.btn-wa { background: #1faf54; color: #fff; }
.btn-wa:hover { background: #1a9849; transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ===========================================================
   Header
   =========================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.site-header.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 30px; width: auto; }
.nav-links { display: none; align-items: center; gap: 34px; }
.nav-links a { font-size: 15px; font-weight: 600; color: var(--ink); opacity: .82; transition: opacity .2s, color .2s; }
.nav-links a:hover { opacity: 1; color: var(--accent-strong); }
.nav-cta { display: none; padding: 11px 20px; font-size: 14.5px; }
.nav-actions { display: flex; align-items: center; gap: 12px; }

.burger { display: inline-flex; flex-direction: column; gap: 5px; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.burger span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .2s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 72px 0 auto 0; z-index: 99;
  background: #fff; border-bottom: 1px solid var(--line);
  padding: 16px var(--gut) 24px;
  transform: translateY(-120%); transition: transform .32s cubic-bezier(.22,1,.36,1);
  box-shadow: var(--shadow-md);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a { display: block; padding: 14px 4px; font-family: var(--font-head); font-weight: 600; font-size: 18px; border-bottom: 1px solid var(--line-soft); }
.mobile-menu .mm-cta { display: inline-flex; width: auto; margin-top: 18px; padding: 12px 22px; font-size: 15px; border-bottom: 0; color: #fff; }

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .burger { display: none; }
}

/* ===========================================================
   Hero
   =========================================================== */
.hero { position: relative; padding-top: 120px; padding-bottom: clamp(28px, 4vw, 48px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; z-index: -1; top: -10%; right: -20%;
  width: 70vw; height: 70vw; max-width: 760px; max-height: 760px; border-radius: 50%;
  background: radial-gradient(circle at center, rgba(57,151,219,.14), transparent 62%);
}
.hero-grid { display: grid; gap: clamp(40px, 6vw, 64px); align-items: center; grid-template-columns: 1fr; }
.hero-copy .pill { margin-bottom: 22px; }
.hero h1 { font-size: clamp(34px, 5.8vw, 54px); margin-bottom: 22px; }
/* Quebra controlada: "escalar operações financeiras" juntos na 2ª linha (telas largas) */
.hero h1 .h1-br { display: none; }
@media (min-width: 700px){
  .hero h1 .h1-br { display: inline; }
  .hero h1 .h1-line2 { white-space: nowrap; }
}
.hero-sub { font-size: clamp(16.5px, 2.2vw, 19px); color: var(--muted); max-width: 30em; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-trust { margin-top: 38px; }
.hero-trust .eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 16px; }

@media (min-width: 980px) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; }
}

/* Phone radar bg */
.hero-stage { position: relative; display: flex; justify-content: center; align-items: center; min-height: 540px; }
.radar { position: absolute; inset: 0; display: grid; place-items: center; z-index: 0; }
.radar span { position: absolute; border: 1px solid rgba(57,151,219,.18); border-radius: 50%; }
.radar span:nth-child(1){ width: 280px; height: 280px;}
.radar span:nth-child(2){ width: 400px; height: 400px;}
.radar span:nth-child(3){ width: 520px; height: 520px;}
.radar span:nth-child(4){ width: 640px; height: 640px; border-color: rgba(57,151,219,.10);}
.radar .blob { position: absolute; width: 360px; height: 440px; border-radius: 60px; background: linear-gradient(160deg, var(--accent), #2b6fae); filter: blur(2px); opacity: .92; transform: rotate(-6deg); box-shadow: var(--shadow-blue); }

/* ===========================================================
   Phone mockup (shared component)
   =========================================================== */
.phone {
  position: relative; z-index: 2;
  width: 290px; aspect-ratio: 290 / 600;
  background: #0b1b3b; border-radius: 44px; padding: 11px;
  box-shadow: 0 50px 100px -40px rgba(11,27,59,.6), 0 0 0 2px rgba(11,27,59,.9);
}
.phone .screen { position: relative; width: 100%; height: 100%; background: #fff; border-radius: 34px; overflow: hidden; display: flex; flex-direction: column; }
.phone .notch { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 96px; height: 22px; background: #0b1b3b; border-radius: 0 0 14px 14px; z-index: 5; }
.statusbar { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px 4px; font-size: 12px; font-weight: 700; color: var(--ink); font-family: var(--font-head); }
.statusbar .icons { display: flex; gap: 5px; align-items: center; }
.statusbar .icons i { width: 15px; height: 10px; background: var(--ink); border-radius: 2px; display: inline-block; opacity: .85; }

.app { padding: 6px 16px 16px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.app-top { display: flex; justify-content: space-between; align-items: center; }
.app-top .hi { font-size: 12px; color: var(--muted); }
.app-top .name { font-family: var(--font-head); font-weight: 700; font-size: 14px; }
.app-top .ava { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), #2b6fae); }
.balance-card { background: linear-gradient(150deg, var(--ink), #16306a); color: #fff; border-radius: 20px; padding: 16px; }
.balance-card .lbl { font-size: 11px; opacity: .7; }
.balance-card .amt { font-family: var(--font-head); font-weight: 700; font-size: 26px; letter-spacing: -.01em; margin-top: 2px; }
.balance-card .chips { display: flex; gap: 8px; margin-top: 14px; }
.balance-card .chips span { flex: 1; text-align: center; background: rgba(255,255,255,.14); border-radius: 10px; padding: 8px 0; font-size: 11px; font-weight: 600; }
.balance-card .chips span.solid { background: var(--accent); }

.spark { background: var(--bg-soft); border: 1px solid var(--line-soft); border-radius: 18px; padding: 12px 14px; }
.spark .row { display: flex; justify-content: space-between; align-items: baseline; }
.spark .row .k { font-size: 11px; color: var(--muted); }
.spark .row .v { font-family: var(--font-head); font-weight: 700; font-size: 15px; }
.spark .row .up { font-size: 11px; color: #1faf54; font-weight: 700; }
.spark svg { width: 100%; height: 46px; margin-top: 6px; }

.txlist { display: flex; flex-direction: column; gap: 9px; }
.txlist .head { font-family: var(--font-head); font-size: 12px; font-weight: 700; color: var(--ink); margin-bottom: 2px; }
.tx { display: flex; align-items: center; gap: 10px; }
.tx .ic { width: 30px; height: 30px; border-radius: 9px; background: var(--accent-tint); color: var(--accent-strong); display: grid; place-items: center; font-size: 11px; font-weight: 800; font-family: var(--font-head); }
.tx .ic.pix { background: #e6f7ee; color: #1faf54; }
.tx .ic.deb { background: #fdf0e6; color: #d8862f; }
.tx .meta { flex: 1; min-width: 0; }
.tx .meta .t { font-size: 12px; font-weight: 600; }
.tx .meta .s { font-size: 10.5px; color: var(--muted-2); }
.tx .val { font-family: var(--font-head); font-weight: 700; font-size: 12.5px; }

/* Floating UI cards around phone */
.float { position: absolute; z-index: 3; background: #fff; border-radius: 16px; box-shadow: var(--shadow-md); padding: 12px 14px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line-soft); }
.float .fic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.float .ftxt { min-width: 0; }
.float .ftxt .ft { font-size: 11px; color: var(--muted); line-height: 1.2; max-width: 16ch; }
.float .ftxt .fv { font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--ink); }
.float.approved { top: 14%; left: -6%; }
.float.approved .fic { background: #e6f7ee; color: #1faf54; }
.float.spread { bottom: 16%; right: -8%; }
.float.spread .fic { background: var(--accent-tint); color: var(--accent-strong); }
@media (max-width: 420px){
  .float.approved { left: -2%; } .float.spread { right: -2%; }
}

/* ===========================================================
   Team showcase — fotos + pills (Hero)
   =========================================================== */
.team-stack {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.75fr 1fr 1fr;
  gap: clamp(10px, 1.5vw, 14px);
  width: 100%; max-width: 480px;
  align-items: stretch;
  transition: grid-template-columns .5s cubic-bezier(.22,1,.36,1);
}
/* Acordeão no hover: a foto sob o mouse expande, as outras encolhem */
@media (hover: hover) and (min-width: 700px){
  .team-stack:has(.c2:hover) { grid-template-columns: 1fr 1.75fr 1fr; }
  .team-stack:has(.c3:hover) { grid-template-columns: 1fr 1fr 1.75fr; }
}
.team-card {
  margin: 0; position: relative; overflow: hidden;
  border-radius: 20px; background: var(--bg-soft);
  box-shadow: 0 36px 70px -34px rgba(11,27,59,.5);
  height: clamp(360px, 52vh, 480px);
  min-width: 0;
}
.team-card img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 560px){
  .team-stack { max-width: 360px; gap: 8px; }
  .team-card { height: clamp(300px, 46vh, 380px); border-radius: 16px; }
}

/* ===========================================================
   Logo strip (prova social)
   =========================================================== */
.proof { padding-block: clamp(36px, 5vw, 56px); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); background: var(--bg-soft); }
.proof .eyebrow { text-align: center; font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 26px; }
.logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(24px, 5vw, 56px); }
.logos img { height: clamp(24px, 4.6vw, 34px); width: auto; opacity: .55; filter: grayscale(1); transition: opacity .25s, filter .25s; }
.logos img:hover { opacity: 1; filter: grayscale(0); }

/* ===========================================================
   Faixa de logos em loop (marquee)
   =========================================================== */
.logo-marquee {
  padding-top: clamp(8px, 1.4vw, 16px);
  padding-bottom: clamp(28px, 3.6vw, 42px);
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg);
  overflow: hidden;
}
.lm-viewport {
  overflow: hidden;
  /* desvanece nas bordas pra entrada/saída suave */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.lm-track {
  display: flex; width: max-content;
  animation: lm-scroll 40s linear infinite;
}
.logo-marquee:hover .lm-track { animation-play-state: paused; }
.lm-group {
  display: flex; align-items: center; flex-shrink: 0;
  gap: clamp(40px, 6vw, 72px);
  padding-right: clamp(40px, 6vw, 72px);
}
.lm-item { display: grid; place-items: center; }
.lm-item img {
  height: clamp(40px, 5vw, 56px); width: auto; display: block;
  opacity: .55; filter: grayscale(1);
  transition: opacity .25s, filter .25s;
}
.lm-item img:hover { opacity: 1; filter: grayscale(0); }

@keyframes lm-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce){
  .lm-track { animation: none; transform: none; }
}

/* ===========================================================
   Section header
   =========================================================== */
.sec-head { max-width: 760px; margin-bottom: clamp(38px, 5vw, 58px); }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head .pill { margin-bottom: 18px; }
.sec-head h2 { font-size: clamp(28px, 4.6vw, 46px); }
.sec-head p { color: var(--muted); font-size: clamp(16px, 2.2vw, 18.5px); margin-top: 16px; max-width: 68ch; }
.sec-head.center p { margin-inline: auto; }

/* ===========================================================
   Bento — soluções
   =========================================================== */
.bento { display: grid; gap: 18px; grid-template-columns: 1fr; }
.bento .card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 28px; transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s, border-color .3s;
}
.bento .card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--accent-tint-2); }
.bento .card .ic { width: 52px; height: 52px; border-radius: 15px; background: var(--accent-tint); color: var(--accent-strong); display: grid; place-items: center; margin-bottom: 18px; }
.bento .card .ic svg { width: 26px; height: 26px; }
.bento .card h3 { font-size: 21px; margin-bottom: 8px; }
.bento .card p { color: var(--muted); font-size: 15.5px; margin: 0; }
.bento .card.feature { background: var(--ink); color: #fff; }
.bento .card.feature h3, .bento .card.feature p { color: #fff; }
.bento .card.feature p { opacity: .82; }
.bento .card.feature .ic { background: rgba(57,151,219,.18); color: #bcd9f3; }
.bento .card.tint { background: var(--bg-blue); border-color: var(--accent-tint-2); }

@media (min-width: 720px){ .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px){
  .bento { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; }
}

/* ===========================================================
   Por que agora — tese de mercado
   =========================================================== */
.why-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
.why { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s, border-color .3s; }
.why:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--accent-tint-2); }
.why .ic { width: 48px; height: 48px; flex-shrink: 0; border-radius: 14px; background: var(--accent-tint); color: var(--accent-strong); display: grid; place-items: center; margin-bottom: 16px; }
.why .ic svg { width: 24px; height: 24px; flex-shrink: 0; }
.why h3 { font-size: 18px; margin-bottom: 8px; }
.why p { color: var(--muted); font-size: 14.5px; margin: 0; }
@media (min-width: 640px){ .why-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1040px){ .why-grid { grid-template-columns: repeat(4,1fr); } }

/* ===========================================================
   Ideal para — qualificação de público
   =========================================================== */
.ideal-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.ideal { display: flex; gap: 14px; align-items: flex-start; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px 24px; transition: border-color .25s, transform .25s; }
.ideal:hover { border-color: var(--accent-tint-2); transform: translateY(-3px); }
.ideal .ck { flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-tint); color: var(--accent-strong); display: grid; place-items: center; margin-top: 0; }
.ideal .ck svg { width: 22px; height: 22px; flex-shrink: 0; }
.ideal .it { font-family: var(--font-head); font-weight: 700; font-size: 17px; margin-bottom: 4px; }
.ideal .id { font-size: 14.5px; color: var(--muted); }
@media (min-width: 720px){ .ideal-grid { grid-template-columns: repeat(2,1fr); } }

/* ===========================================================
   Como funciona — passos
   =========================================================== */
.steps { display: grid; gap: 20px; grid-template-columns: 1fr; counter-reset: step; }
.step { position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 26px; }
.step .num { font-family: var(--font-head); font-weight: 800; font-size: 15px; color: #fff; background: var(--accent); width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px; }
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; margin: 0; }
.step .kicker { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-strong); margin-bottom: 6px; }
@media (min-width: 640px){ .steps { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1040px){ .steps { grid-template-columns: repeat(4,1fr); } }

/* ===========================================================
   Cases em destaque
   =========================================================== */
.cases-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
.case-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 28px; transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s, border-color .3s;
}
.case-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--accent-tint-2); }
.case-card .ic { width: 52px; height: 52px; border-radius: 15px; background: var(--accent-tint); color: var(--accent-strong); display: grid; place-items: center; margin-bottom: 18px; }
.case-card .ic svg { width: 26px; height: 26px; }
.case-card h3 { font-size: 20px; margin-bottom: 16px; }
.case-card .case-stats { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.case-card .case-stats li { display: flex; gap: 9px; align-items: flex-start; font-size: 14.5px; font-weight: 500; color: var(--muted); }
.case-card .case-stats li::before {
  content: ""; flex-shrink: 0; width: 6px; height: 6px; margin-top: 8px;
  border-radius: 50%; background: var(--accent);
}

@media (min-width: 720px){ .cases-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px){ .cases-grid { grid-template-columns: repeat(3, 1fr); } }

/* Mobile: carrossel 1-em-1 com swipe (scroll-snap nativo) */
@media (max-width: 719px){
  .cases-grid {
    grid-auto-flow: column;
    grid-auto-columns: 86%;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-inline: calc(var(--gut) * -1);
    padding-inline: var(--gut);
    padding-bottom: 6px;
  }
  .cases-grid::-webkit-scrollbar { display: none; }
  .case-card { scroll-snap-align: center; }
}

/* ===========================================================
   TechRibbon — tecnologias
   =========================================================== */
.tech-ribbon {
  margin-top: clamp(32px, 5vw, 48px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 12px 14px;
}
.tech-ribbon .tr-label {
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted-2);
}
.tech-ribbon .tr-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.tech-ribbon .tr-list li {
  font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 16px; transition: border-color .25s, color .25s;
}
.tech-ribbon .tr-list li:hover { border-color: var(--accent-tint-2); color: var(--accent-strong); }

/* ===========================================================
   Números — dark section
   =========================================================== */
.dark-sec { background: var(--dark); color: #fff; position: relative; overflow: hidden; border-radius: var(--r-xl); }
.dark-wrap { margin-inline: var(--gut); }
.dark-sec::before { content:""; position: absolute; top:-30%; left: 50%; transform: translateX(-50%); width: 700px; height: 700px; border-radius: 50%; background: radial-gradient(circle, rgba(57,151,219,.22), transparent 60%); }
.dark-sec .inner { position: relative; padding: clamp(48px, 7vw, 88px) var(--gut); max-width: var(--maxw); margin-inline: auto; }
.dark-sec h2 { color: #fff; font-size: clamp(26px, 4.4vw, 44px); text-align: center; max-width: 26ch; margin: 0 auto 8px; }
.dark-sec h2 .accent { color: #6fb6e8; }
.dark-sec .lead { text-align: center; color: rgba(255,255,255,.66); max-width: 64ch; margin: 0 auto clamp(40px, 6vw, 64px); }
.metrics { display: grid; grid-template-columns: repeat(2,1fr); gap: clamp(20px, 2.5vw, 28px); max-width: 880px; margin-inline: auto; }
.metric { text-align: center; }
.metric .n { font-family: var(--font-head); font-weight: 800; font-size: clamp(38px, 6.4vw, 60px); line-height: 1; letter-spacing: -.02em; white-space: nowrap; background: linear-gradient(180deg,#fff,#9cc6ec); -webkit-background-clip: text; background-clip: text; color: transparent; }
.metric .l { font-size: 14px; color: rgba(255,255,255,.62); margin-top: 4px; }
@media (min-width: 820px){ .metrics { grid-template-columns: repeat(4,1fr); } }
/* Em telas estreitas, encolhe o número para "R$ 41 bi+" caber numa linha só */
@media (max-width: 460px){ .metric .n { font-size: clamp(30px, 8.6vw, 40px); } }

/* IA agêntica — pill, cards e CTA sobre fundo escuro */
#ia-agentica .inner { padding-block: clamp(40px, 5vw, 64px); }
#ia-agentica .lead { margin-bottom: clamp(28px, 4vw, 40px); }
.pill-dark { display: flex; width: fit-content; background: rgba(57,151,219,.14); border-color: rgba(111,182,232,.3); color: #bcd9f3; margin-bottom: 18px; }
.ai-grid {
  display: grid; grid-template-columns: 1fr; gap: 14px;
  max-width: 980px; margin: 0 auto clamp(28px, 4vw, 40px);
}
.ai-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-md); padding: 22px;
  transition: transform .3s cubic-bezier(.22,1,.36,1), background .3s, border-color .3s;
}
.ai-card:hover { transform: translateY(-4px); background: rgba(255,255,255,.08); border-color: rgba(111,182,232,.35); }
.ai-card .ic { width: 44px; height: 44px; border-radius: 12px; background: rgba(57,151,219,.18); color: #8fc3ec; display: grid; place-items: center; margin-bottom: 14px; }
.ai-card .ic svg { width: 22px; height: 22px; }
.ai-card h3 { font-size: 18px; color: #fff; margin-bottom: 6px; }
.ai-card p { font-size: 14px; color: rgba(255,255,255,.66); margin: 0; }
.ai-cta { text-align: center; }
@media (min-width: 680px){ .ai-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px){ .ai-grid { grid-template-columns: repeat(4, 1fr); } }

/* ===========================================================
   Recursos — checklist
   =========================================================== */
.features-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
.frow { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px 22px; transition: border-color .25s, transform .25s; }
.frow:hover { border-color: var(--accent-tint-2); transform: translateY(-4px); }
.frow .ck { flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; background: var(--accent); color: #fff; display: grid; place-items: center; }
.frow .ck svg { width: 20px; height: 20px; }
.frow .ftext .ft { font-family: var(--font-head); font-weight: 700; font-size: 16px; }
.frow .ftext .fd { font-size: 13.5px; color: var(--muted); }
@media (min-width: 680px){ .features-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1000px){ .features-grid { grid-template-columns: repeat(3,1fr); } }

/* Recursos — carrossel: 1-em-1 (mobile, swipe) / 3-em-3 (desktop, setas) */
.feat-carousel .fc-viewport { overflow: hidden; touch-action: pan-y; }
.feat-carousel .fc-track {
  display: grid; gap: 14px;
  grid-auto-flow: column; grid-template-columns: none;
  grid-auto-columns: 100%;
  transition: transform .45s cubic-bezier(.22,1,.36,1);
}
.feat-carousel .frow { height: 100%; }

.feat-carousel .fc-nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 24px; }
.fc-arrow { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); place-items: center; transition: border-color .2s, background .2s, color .2s, opacity .2s; }
.fc-arrow:hover { border-color: var(--accent); color: var(--accent-strong); }
.fc-arrow svg { width: 18px; height: 18px; }
.fc-dots { display: flex; align-items: center; gap: 9px; }
.fc-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: var(--accent-tint-2); transition: background .2s, transform .2s; }
.fc-dots button[aria-selected="true"] { background: var(--accent); transform: scale(1.25); }

@media (min-width: 900px){
  .feat-carousel .fc-track { grid-auto-columns: calc((100% - 28px) / 3); }
  .fc-arrow { display: grid; }
}

/* ===========================================================
   Clientes (depoimentos -> logos Luby)
   =========================================================== */
.clients-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; margin-top: 8px; }
.client-cell { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md); height: 110px; display: grid; place-items: center; padding: 18px; transition: border-color .25s, box-shadow .25s; }
.client-cell:hover { border-color: var(--accent-tint-2); box-shadow: var(--shadow-sm); }
.client-cell img { max-height: 58px; max-width: 78%; width: auto; opacity: .7; filter: grayscale(1); transition: opacity .25s, filter .25s; }
.client-cell:hover img { opacity: 1; filter: grayscale(0); }
@media (min-width: 640px){ .clients-grid { grid-template-columns: repeat(3,1fr); } }
@media (min-width: 980px){ .clients-grid { grid-template-columns: repeat(6,1fr); } }

.cred-stats { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; margin-top: 40px; text-align: center; }
.cred-stats .cs .n { font-family: var(--font-head); font-weight: 800; font-size: clamp(30px,5vw,46px); line-height: 1; color: var(--accent-strong); letter-spacing: -.02em; white-space: nowrap; }
.cred-stats .cs .l { font-size: 14px; color: var(--muted); margin-top: 2px; }
@media (min-width: 760px){ .cred-stats { grid-template-columns: repeat(4,1fr); } }

/* ===========================================================
   FAQ
   =========================================================== */
.faq-wrap { max-width: 820px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; background: none; border: 0; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 4px; font-family: var(--font-head); font-weight: 600; font-size: clamp(16.5px, 2.4vw, 19px); color: var(--ink); }
.faq-q .ind { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: background .25s, border-color .25s, transform .3s; position: relative; }
.faq-q .ind::before, .faq-q .ind::after { content:""; position: absolute; background: var(--ink); border-radius: 2px; transition: background .25s, transform .3s; }
.faq-q .ind::before { width: 12px; height: 2px; }
.faq-q .ind::after { width: 2px; height: 12px; }
.faq-item.open .faq-q .ind { background: var(--accent); border-color: var(--accent); }
.faq-item.open .faq-q .ind::before, .faq-item.open .faq-q .ind::after { background: #fff; }
.faq-item.open .faq-q .ind::after { transform: scaleY(0); }
.faq-a { overflow: hidden; max-height: 0; transition: max-height .35s ease; }
.faq-a p { color: var(--muted); font-size: 16px; padding: 0 4px 24px; margin: 0; max-width: 64ch; }

/* ===========================================================
   Contato
   =========================================================== */
.contact-grid { display: grid; gap: clamp(32px, 5vw, 56px); grid-template-columns: 1fr; align-items: center; }
.contact-copy h2 { font-size: clamp(28px, 4.6vw, 44px); margin-bottom: 16px; }
.contact-copy p { color: var(--muted); font-size: 17px; max-width: 40ch; }
.contact-channels { margin-top: 30px; display: grid; gap: 14px; }
.ch { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg); }
.ch .ci { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; background: var(--accent-tint); color: var(--accent-strong); }
.ch .ci.wa { background: #e6f7ee; color: #1faf54; }
.ch .cl { font-size: 12px; color: var(--muted-2); }
.ch .cv { font-family: var(--font-head); font-weight: 700; font-size: 16px; }
.ch.wa-cta { margin-top: 4px; }

.form-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 36px); box-shadow: var(--shadow-md); }
.form-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.fg-2 { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 560px){ .fg-2 { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.field label .req { color: var(--accent-strong); }
.field input, .field select, .field textarea {
  width: 100%; font-family: inherit; font-size: 16px; color: var(--ink);
  padding: 13px 15px; border: 1px solid var(--line); border-radius: 13px; background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-tint); }
.field textarea { resize: vertical; min-height: 92px; }
.form-card .btn { margin-top: 4px; }
.form-note { font-size: 12.5px; color: var(--muted-2); text-align: center; margin-top: 12px; }
.form-error { font-size: 13px; color: var(--accent-strong); text-align: center; margin-top: 12px; }
.form-error a { color: var(--accent-strong); text-decoration: underline; font-weight: 600; }
button[disabled] { opacity: .65; cursor: progress; }

.form-success { display: none; text-align: center; padding: 20px 0; }
.form-card.sent form { display: none; }
.form-card.sent .form-success { display: block; }
.form-success .sc-ic { width: 64px; height: 64px; border-radius: 50%; background: #e6f7ee; color: #1faf54; display: grid; place-items: center; margin: 0 auto 18px; }
.form-success .sc-ic svg { width: 32px; height: 32px; }
.form-success h3 { font-size: 24px; margin-bottom: 8px; }
.form-success p { color: var(--muted); }

@media (min-width: 940px){ .contact-grid { grid-template-columns: .9fr 1.1fr; } }

/* ===========================================================
   Footer
   =========================================================== */
.site-footer { background: var(--ink); color: #fff; padding-block: clamp(56px, 8vw, 88px) 32px; margin-top: 0; }
.footer-top { display: grid; gap: 40px; grid-template-columns: 1fr; }
.footer-brand img { height: 30px; margin-bottom: 18px; }
.footer-brand p { color: rgba(255,255,255,.62); font-size: 15px; max-width: 34ch; }
.footer-locs { display: grid; gap: 28px; grid-template-columns: 1fr; }
.floc h4 { font-family: var(--font-head); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: #6fb6e8; margin-bottom: 12px; }
.floc address { font-style: normal; color: rgba(255,255,255,.66); font-size: 14px; line-height: 1.7; }
.floc address a { color: rgba(255,255,255,.9); }
.footer-cols { display: grid; gap: 28px; grid-template-columns: repeat(2,1fr); }
.fcol h4 { font-family: var(--font-head); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: 14px; }
.fcol a { display: block; color: rgba(255,255,255,.78); font-size: 14.5px; padding: 5px 0; transition: color .2s; }
.fcol a:hover { color: #fff; }
.footer-capture { margin-top: 8px; }
.footer-capture .cap-row { display: flex; gap: 10px; max-width: 380px; }
.footer-capture input { flex: 1; background: rgba(255,255,255,.06); border: 1px solid var(--dark-line); border-radius: var(--r-pill); padding: 12px 18px; color: #fff; font-family: inherit; font-size: 14px; }
.footer-capture input::placeholder { color: rgba(255,255,255,.45); }
.footer-capture input:focus { outline: none; border-color: var(--accent); }
.compliance { margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--dark-line); display: flex; flex-direction: column; gap: 12px; }
.compliance p { color: rgba(255,255,255,.5); font-size: 12.5px; line-height: 1.6; margin: 0; max-width: 80ch; }
.compliance .legal-links { display: flex; flex-wrap: wrap; gap: 18px; }
.compliance .legal-links a { color: rgba(255,255,255,.62); font-size: 13px; }
.copy { margin-top: 24px; color: rgba(255,255,255,.42); font-size: 13px; }

@media (min-width: 720px){ .footer-locs { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px){
  .footer-top { grid-template-columns: 1.4fr 1fr; }
  .footer-cols { grid-template-columns: repeat(3,1fr); }
}

/* ===========================================================
   Mobile CTA bar
   =========================================================== */
.cta-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: flex; gap: 10px; padding: 12px var(--gut) calc(12px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.92); backdrop-filter: blur(12px); border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .3s ease;
}
.cta-bar.show { transform: translateY(0); }
.cta-bar .btn { flex: 1; padding: 14px 18px; }
.cta-bar .btn-wa { flex: 0 0 auto; width: 54px; padding: 0; }
.cta-bar .btn-wa svg { width: 22px; height: 22px; }
@media (min-width: 900px){ .cta-bar { display: none !important; } }
/* Reserva espaço para a barra fixa de CTA no mobile não cobrir o conteúdo */
@media (max-width: 899px){ body { padding-bottom: calc(74px + env(safe-area-inset-bottom)); } }

/* ===========================================================
   Reveal on scroll
   =========================================================== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce){ .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* float anim */
@keyframes floaty { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-10px);} }
.floaty { animation: floaty 5s ease-in-out infinite; }
.floaty.slow { animation-duration: 7s; }

/* ===========================================================
   Refinamentos mobile (UX)
   =========================================================== */
@media (max-width: 640px){
  /* CTAs do hero ocupam a largura toda e ficam fáceis de tocar */
  .hero-actions { gap: 12px; }
  .hero-actions .btn { width: 100%; }

  /* Reduz o vão vertical reservado pelo mockup do telefone */
  .hero-stage { min-height: 430px; }
  .phone { width: 250px; }

  /* Cards de floating ao redor do phone não vazam da tela */
  .float { padding: 10px 12px; }
  .float .ftxt .fv { font-size: 13px; }

  /* Respiro lateral consistente já vem de --gut; aqui só evita títulos colados */
  .sec-head { margin-bottom: 32px; }

  /* Botões grandes com altura de toque confortável */
  .btn { padding: 15px 24px; }

  /* TechRibbon: rótulo acima das pílulas, tudo centralizado */
  .tech-ribbon { flex-direction: column; gap: 14px; }
}

/* Alvo de toque mínimo (44px) nos links do menu e navegação */
@media (max-width: 899px){
  .mobile-menu a { padding-block: 15px; }
  .faq-q { padding-block: 22px; }
}

/* Header um pouco mais baixo libera área útil no mobile */
@media (max-width: 480px){
  .hero { padding-top: 104px; }
}

/* ============ Agent case boxes (industry LPs) ============ */
.agent-arch {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent-strong);
  background: var(--accent-tint);
  padding: 4px 11px;
  border-radius: var(--r-pill);
  margin-bottom: 12px;
  align-self: flex-start;
}
.agents-bento .card { display: flex; flex-direction: column; }
.agents-bento .card h3 { font-size: 18.5px; margin-bottom: 9px; }
.agents-bento .card p { color: var(--muted); font-size: 14.5px; line-height: 1.58; margin: 0; }
.agents-bento .card .ic { margin-bottom: 14px; }

/* ============ Hero illustration (sector SVG) ============ */
.hero-illu { position: relative; z-index: 2; width: 100%; max-width: 480px; }
.hero-illu img { width: 100%; height: auto; display: block; filter: drop-shadow(0 40px 80px rgba(11,27,59,.34)); }
@media (max-width: 560px){ .hero-illu { max-width: 380px; } }

/* ============ Tecnologias (logo wall) ============ */
.tech-wall { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 600px){ .tech-wall { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px){ .tech-wall { grid-template-columns: repeat(6, 1fr); } }
.tech-cell {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 24px 14px; min-height: 116px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.tech-cell:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--accent-tint-2); }
.tech-cell img { height: 38px; width: auto; max-width: 84%; object-fit: contain; display: block; }
.tech-cell span { font-size: 12px; font-weight: 600; color: var(--muted); text-align: center; line-height: 1.3; }

/* ============ Ícones — contraste reforçado (gradiente + ícone branco) ============ */
.bento .card .ic,
.why .ic,
.case-card .ic,
.ideal .ck,
.ch .ci {
  background: linear-gradient(135deg, #3aa3e6 0%, #1f5fb0 55%, #14346b 100%);
  color: #ffffff;
  border: 0;
  box-shadow: 0 10px 22px -10px rgba(31,95,176,.7), inset 0 1px 0 rgba(255,255,255,.28);
}
.bento .card .ic svg,
.why .ic svg,
.case-card .ic svg { stroke-width: 2; }

/* passo numerado — mesmo chip com gradiente */
.step .num {
  background: linear-gradient(135deg, #3aa3e6 0%, #1f5fb0 60%, #14346b 100%);
  box-shadow: 0 10px 22px -10px rgba(31,95,176,.7);
}

/* seção escura (IA agêntica) — chip mais luminoso sobre o navy */
.ai-card .ic {
  background: linear-gradient(135deg, #5cb8f2 0%, #2b7fbe 100%);
  color: #ffffff;
  box-shadow: 0 10px 24px -10px rgba(57,151,219,.85), inset 0 1px 0 rgba(255,255,255,.32);
}

/* hover: o chip do ícone ganha brilho dentro do card */
.bento .card:hover .ic,
.why:hover .ic,
.case-card:hover .ic {
  box-shadow: 0 14px 28px -10px rgba(31,95,176,.92), inset 0 1px 0 rgba(255,255,255,.32);
  transform: translateY(-1px);
}

/* badge de arquétipo — um pouco mais de contraste */
.agent-arch { background: var(--accent-tint-2); color: #1f5fb0; }

/* ============ Hero como foto (setores) ============ */
.hero-photo img { aspect-ratio: 4 / 5; object-fit: cover; border-radius: 24px; }

/* ============ Casos de uso: 2 por linha ============ */
@media (min-width: 1000px){ #agentes .agents-bento { grid-template-columns: repeat(2, 1fr); } }
