/* ==========================================================================
   BIOPROX — Identidade Visual v3
   Conceito: "conexão visível". Nó + conector como motivo, console de
   integração como assinatura. Geist + Geist Mono.
   ========================================================================== */

:root {
  /* Marca */
  --blue: #2d7dff;
  --blue-600: #1a63e6;
  --blue-300: #8cb8ff;
  --blue-50: #eef4ff;
  --navy: #0a1d41;

  /* Escuros */
  --ink: #0a1a3a;
  --ink-2: #0f2350;
  --ink-3: #16306b;
  --line-dark: rgba(255, 255, 255, 0.09);
  --d-text: #edf2ff;
  --d-muted: #93a1c0;

  /* Claros */
  --paper: #f6f4ef;
  --white: #ffffff;
  --line: #e5e1d8;
  --text: #0a1428;
  --text-2: #3b4862;
  --muted: #6a768c;

  /* Sinais */
  --mint: #1fc794;
  --mint-bg: rgba(31, 199, 148, 0.12);
  --amber: #f2a32a;
  --amber-bg: rgba(242, 163, 42, 0.14);
  --red: #ef5560;
  --red-bg: rgba(239, 85, 96, 0.13);

  /* Forma */
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --pill: 999px;
  --container: 1240px;
  --header-h: 76px;

  --font: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: var(--font);

  --shadow-sm: 0 1px 2px rgba(10, 20, 40, 0.05), 0 2px 8px rgba(10, 20, 40, 0.04);
  --shadow: 0 2px 4px rgba(10, 20, 40, 0.04), 0 12px 32px rgba(10, 20, 40, 0.08);
  --shadow-lg: 0 24px 60px rgba(10, 26, 58, 0.18);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Reset ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-2);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Tipografia -------------------------------------------------------------- */
h1, h2, h3, h4 { color: var(--text); font-weight: 650; letter-spacing: -0.035em; line-height: 1.08; }
.h-display { font-size: clamp(2.5rem, 5.4vw, 4.6rem); font-weight: 650; letter-spacing: -0.045em; line-height: 1.02; }
.h-section { font-size: clamp(2rem, 3.8vw, 3.2rem); }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.22rem); line-height: 1.65; color: var(--text-2); }
.mono { font-family: var(--mono); }
.accent { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-weight: 400; font-size: 1.08em; letter-spacing: -0.02em; color: var(--blue); }
.on-dark .accent { color: var(--blue-300); }
.scribble { position: relative; white-space: nowrap; }
.scribble::after {
  content: ''; position: absolute; left: -2%; right: -2%; bottom: -0.1em; height: 0.2em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8 C 38 2, 78 11, 120 6 S 196 3, 238 7' fill='none' stroke='%232d7dff' stroke-opacity='.45' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.hand { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-size: 1.35rem; line-height: 1.15; color: var(--navy); }

/* Kicker: rótulo simples com traço */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.88rem; font-weight: 600; color: var(--blue); margin-bottom: 18px;
}
.kicker::before { content: ''; width: 18px; height: 2px; border-radius: 2px; background: currentColor; flex-shrink: 0; }
.on-dark .kicker, .kicker.is-light { color: var(--blue-300); }

/* Botões ------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 22px 0 24px;
  border-radius: var(--pill); border: 1px solid transparent;
  font-weight: 600; font-size: 0.98rem; letter-spacing: -0.01em;
  cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), background .2s, border-color .2s, color .2s, box-shadow .25s;
}
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translate(2px, -2px); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 1px 2px rgba(10, 26, 58, 0.25); }
.btn-primary:hover { background: var(--blue-600); box-shadow: 0 6px 16px rgba(26, 99, 230, 0.28); }
.btn-dark { background: var(--text); color: #fff; }
.btn-dark:hover { background: var(--navy); }
.btn-ghost { border-color: var(--line); color: var(--text); background: var(--white); }
.btn-ghost:hover { border-color: var(--text); }
.on-dark .btn-ghost, .btn-ghost.is-light { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.18); color: #fff; }
.on-dark .btn-ghost:hover, .btn-ghost.is-light:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.4); }
.btn-sm { height: 42px; padding: 0 16px 0 18px; font-size: 0.9rem; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--blue); }
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* Chips de sistema / status */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 0.74rem; font-weight: 500;
  padding: 5px 10px; border-radius: 7px;
  background: var(--paper); border: 1px solid var(--line); color: var(--text-2);
}
.on-dark .chip { background: rgba(255,255,255,.05); border-color: var(--line-dark); color: var(--d-text); }
.status { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 0.72rem; font-weight: 500; padding: 4px 9px; border-radius: var(--pill); }
.status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-ok { color: var(--mint); background: var(--mint-bg); }
.status-warn { color: var(--amber); background: var(--amber-bg); }
.status-err { color: var(--red); background: var(--red-bg); }
.status-live::before { animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 currentColor; } 50% { box-shadow: 0 0 0 4px transparent; } }

/* Seções ------------------------------------------------------------------ */
.section { padding: 120px 0; position: relative; }
.section-tight { padding: 80px 0; }
.bg-paper { background: var(--paper); }
.bg-ink { background: var(--ink); color: var(--d-muted); }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: #fff; }
.on-dark .lead { color: var(--d-muted); }
.section-head { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: end; margin-bottom: 56px; }
.section-head .lead { max-width: 520px; }
.section-head-center { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section-head-center .lead { margin-top: 18px; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000; height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, height .3s;
}
/* The glass effect lives on a pseudo-element: backdrop-filter on the header itself
   traps the fixed mobile drawer inside the header's box (tiny menu on phones). */
.site-header::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: rgba(246, 244, 239, 0.86);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  transition: background .3s;
}
.site-header.is-scrolled { border-color: var(--line); height: 66px; }
.site-header.is-scrolled::before, .site-header.menu-open::before { background: #fff; }
.header-container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header-logo { display: flex; align-items: center; }
.header-logo picture { display: block; }
.header-logo img { display: block; height: 48px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 9px 14px; border-radius: var(--pill);
  font-size: 0.95rem; font-weight: 500; color: var(--text-2);
  transition: color .2s, background .2s;
}
.nav-link:hover, .nav-link.is-active, .nav-link.is-current { color: var(--text); background: rgba(10, 26, 58, 0.06); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.mobile-menu-btn { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--text); cursor: pointer; place-items: center; }
.mobile-menu-btn svg { width: 22px; height: 22px; }
.mobile-menu-btn line { transform-box: fill-box; transform-origin: center; transition: transform .25s var(--ease); }
.mobile-menu-btn[aria-expanded="true"] line:first-child { transform: translateY(4px) rotate(45deg); }
.mobile-menu-btn[aria-expanded="true"] line:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-caret { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 12px); left: 50%;
  width: 560px; padding: 10px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  background: var(--white); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 24px 60px rgba(10, 26, 58, 0.16);
  opacity: 0; visibility: hidden; transform: translate(-50%, 8px);
  transition: opacity .2s, transform .25s var(--ease), visibility .2s;
}
.nav-dropdown-menu::before { content: ''; position: absolute; inset: -14px 0 auto 0; height: 14px; }
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav-dropdown:hover .nav-caret, .nav-dropdown.is-open .nav-caret { transform: rotate(180deg); }
.dd-item { display: flex; gap: 12px; padding: 12px; border-radius: 12px; transition: background .15s; }
.dd-item:hover { background: var(--paper); }
.dd-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); flex-shrink: 0; }
.dd-icon svg { width: 19px; height: 19px; }
.dd-title { display: block; font-weight: 600; font-size: 0.92rem; color: var(--text); line-height: 1.3; }
.dd-desc { display: block; font-size: 0.8rem; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.dd-footer {
  grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center;
  margin-top: 6px; padding: 14px 14px 8px; border-top: 1px solid var(--line);
  font-size: 0.85rem; color: var(--muted);
}

/* Drawer mobile */
.mobile-drawer {
  position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
  background: #fff; padding: 12px 24px 40px; overflow-y: auto;
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity .25s, transform .3s var(--ease), visibility .25s;
}
.mobile-drawer.is-open { opacity: 1; visibility: visible; transform: none; }
.site-header.is-scrolled .mobile-drawer { top: 66px; }
.mobile-nav-link { display: block; padding: 16px 0; font-size: 1.2rem; font-weight: 600; color: var(--text); border-bottom: 1px solid var(--line); letter-spacing: -0.02em; }
.mobile-subnav { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; padding: 10px 0 16px; border-bottom: 1px solid var(--line); }
.mobile-nav-sublink { font-size: 0.95rem; color: var(--text-2); padding: 8px 0; }
.mobile-drawer-cta { margin-top: 28px; display: grid; gap: 10px; }
.mobile-drawer-cta .btn { width: 100%; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; padding: calc(var(--header-h) + 72px) 0 112px; background: var(--paper); }
.hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 72px; align-items: center; }
.hero h1 { margin-bottom: 26px; }
.hero .lead { max-width: 540px; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-clients { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; margin-top: 44px; font-size: 0.9rem; color: var(--muted); }
.hero-clients strong { font-size: 1rem; font-weight: 600; color: var(--text); letter-spacing: -0.01em; }

/* Conversa (como um projeto começa) */
.chat-wrap { position: relative; max-width: 440px; margin-left: auto; }
.chat { background: #fff; border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.chat-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 650; font-size: 0.9rem; flex-shrink: 0; }
.chat-head b { display: block; color: var(--text); font-size: 0.98rem; font-weight: 600; line-height: 1.25; }
.chat-head small { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 0.8rem; }
.chat-head small::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); }
.chat-body { padding: 18px 18px 6px; display: grid; gap: 10px; }
.chat-day { justify-self: center; font-size: 0.72rem; color: var(--muted); background: var(--paper); padding: 4px 12px; border-radius: var(--pill); margin-bottom: 4px; }
.msg { max-width: 86%; padding: 11px 15px; font-size: 0.95rem; line-height: 1.45; border-radius: 18px; }
.msg.in { justify-self: start; background: var(--paper); color: var(--text); border-bottom-left-radius: 5px; }
.msg.out { justify-self: end; background: var(--blue); color: #fff; border-bottom-right-radius: 5px; }
.js .chat .msg { opacity: 0; transform: translateY(10px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.js .chat .msg.is-in { opacity: 1; transform: none; }
.chat-foot { display: flex; align-items: center; gap: 10px; margin: 10px 14px 14px; padding: 7px 7px 7px 18px; border: 1px solid var(--line); border-radius: var(--pill); color: var(--muted); font-size: 0.93rem; transition: border-color .2s, color .2s; }
.chat-foot:hover { border-color: #25d366; color: var(--text); }
.chat-foot span { flex: 1; }
.chat-foot i { width: 38px; height: 38px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.chat-foot i svg { width: 18px; height: 18px; }
.hand-note { position: absolute; left: 26px; bottom: -62px; display: flex; align-items: flex-start; gap: 8px; transform: rotate(-3deg); }
.hand-note svg { width: 40px; height: 44px; color: var(--navy); flex-shrink: 0; margin-top: -6px; }

/* Conector animado (usado nos cards) */
.wire { position: relative; height: 2px; background: repeating-linear-gradient(90deg, rgba(45,125,255,.4) 0 6px, transparent 6px 11px); border-radius: 2px; }
.wire i { position: absolute; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--blue); animation: packet 2.4s linear infinite; }
.wire i:nth-child(2) { animation-delay: 1.2s; }
@keyframes packet { from { left: 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } to { left: calc(100% - 8px); opacity: 0; } }

/* ==========================================================================
   O QUE FAZEMOS (frases que ouvimos)
   ========================================================================== */
.needs { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.need {
  display: flex; flex-direction: column; padding: 32px 34px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: background .25s, box-shadow .3s var(--ease), transform .3s var(--ease);
}
.need:hover { background: #fff; box-shadow: var(--shadow); transform: translateY(-3px); }
/* Desktop: the track is transparent to the grid. Phones: swipeable carousel (end of file). */
.needs-track { display: contents; }
.needs-nav { display: none; }
.need-label { font-size: 0.8rem; color: var(--muted); margin-bottom: 10px; }
.need-quote { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-size: clamp(1.3rem, 1.7vw, 1.5rem); line-height: 1.2; color: var(--text); margin-bottom: 22px; max-width: 420px; }
.need-answer { margin-top: auto; padding-top: 24px; border-top: 1px dashed #cfc9bb; display: grid; grid-template-columns: auto 1fr; gap: 18px; }
.need-answer .icon-tile { margin: 0; background: #fff; border: 1px solid var(--line); }
.need-answer h3 { font-size: 1.15rem; letter-spacing: -0.02em; margin-bottom: 6px; }
.need-answer p { font-size: 0.95rem; margin-bottom: 12px; }
.need-answer .link-arrow { font-size: 0.92rem; }
.need-cta { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 30px 36px; border-radius: var(--r-lg); background: var(--ink); }
.need-cta h3 { font-size: 1.4rem; }
.need-cta p { color: var(--d-muted); margin-top: 4px; }
.need-cta .btn { flex-shrink: 0; }

/* ==========================================================================
   NOSSO DIFERENCIAL (jeito comum x jeito BioProx)
   ========================================================================== */
.versus { display: grid; grid-template-columns: 0.62fr 1.38fr; gap: 18px; align-items: stretch; }
.versus-label { display: block; font-size: 0.84rem; font-weight: 600; margin-bottom: 22px; }
.versus-common { padding: 36px; border: 1px dashed rgba(255,255,255,.22); border-radius: var(--r-lg); color: var(--d-muted); display: flex; flex-direction: column; }
.versus-common .versus-label { color: var(--d-muted); }
.versus-common p { font-size: 1.25rem; line-height: 1.4; color: rgba(237,242,255,.75); }
.versus-common .versus-end { margin-top: auto; padding-top: 28px; font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-size: 2.6rem; color: rgba(237,242,255,.5); }
.versus-ours { padding: 36px 40px 16px; border-radius: var(--r-lg); background: rgba(255,255,255,.06); border: 1px solid var(--line-dark); }
.versus-ours .versus-label { color: var(--blue-300); margin-bottom: 6px; }
.versus-ours li { display: grid; grid-template-columns: 52px 1fr; gap: 16px; padding: 22px 0; border-top: 1px solid var(--line-dark); }
.versus-ours li:first-child { border-top: none; }
.num { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-size: 2.3rem; line-height: 1; color: var(--blue); }
.on-dark .num { color: var(--blue-300); }
.versus-ours h3 { font-size: 1.15rem; letter-spacing: -0.02em; margin-bottom: 6px; }
.versus-ours p { font-size: 0.97rem; color: var(--d-muted); }
.principle-ico { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: rgba(45,125,255,.16); color: var(--blue-300); }
.principle-ico svg { width: 26px; height: 26px; }

/* ==========================================================================
   CASES
   ========================================================================== */
.case-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
html:not(.js) .case-tabs { display: none; }
.case-tab {
  text-align: left; padding: 18px 22px 20px; border-radius: var(--r);
  background: transparent; border: 1px solid var(--line); cursor: pointer;
  transition: background .2s, border-color .2s, transform .25s var(--ease);
}
.case-tab:hover { background: var(--paper); border-color: #cfc9bb; }
.case-tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); }
.ct-sector { display: block; font-size: 0.78rem; color: var(--muted); margin-bottom: 6px; }
.ct-name { display: block; font-size: 1.3rem; font-weight: 650; letter-spacing: -0.03em; color: var(--text); line-height: 1.15; }
.ct-what { display: block; font-size: 0.88rem; color: var(--text-2); margin-top: 5px; }
.case-tab[aria-selected="true"] .ct-sector { color: var(--blue-300); }
.case-tab[aria-selected="true"] .ct-name { color: #fff; }
.case-tab[aria-selected="true"] .ct-what { color: var(--d-muted); }

.case-panel {
  display: grid; grid-template-columns: 0.78fr 1.22fr;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.case-panel[hidden] { display: none; }
html:not(.js) .case-panel[hidden] { display: grid; margin-top: 24px; }
.js .case-panel.is-enter { animation: caseIn .45s var(--ease); }
@keyframes caseIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.case-visual { background: var(--ink); padding: 40px 36px; display: flex; flex-direction: column; color: var(--d-muted); }
.cv-label { font-size: 0.84rem; font-weight: 600; color: var(--blue-300); margin-bottom: 20px; }
.flow-node { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid var(--line-dark); }
.flow-node .fi { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #fff; flex-shrink: 0; }
.flow-node .fi svg { width: 22px; height: 22px; }
.flow-node b { display: block; color: #fff; font-size: 0.98rem; font-weight: 600; line-height: 1.25; }
.flow-node small { color: var(--d-muted); font-size: 0.8rem; }
.flow-node.is-core { background: var(--blue); border-color: transparent; }
.flow-node.is-core .fi { background: rgba(255,255,255,.18); }
.flow-node.is-core small { color: rgba(255,255,255,.82); }
.vwire { position: relative; width: 2px; height: 38px; margin-left: 37px; background: repeating-linear-gradient(180deg, rgba(140,184,255,.5) 0 5px, transparent 5px 10px); }
.vwire i { position: absolute; left: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--blue-300); animation: drop 2s linear infinite; }
@keyframes drop { from { top: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { top: calc(100% - 8px); opacity: 0; } }
.cv-foot { margin-top: auto; padding-top: 28px; font-size: 0.88rem; line-height: 1.55; }

.case-body { padding: 44px 48px; }
.case-meta { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; color: var(--muted); margin-bottom: 12px; }
.case-meta b { color: var(--text); font-weight: 600; }
.case-meta i { width: 4px; height: 4px; border-radius: 50%; background: #c9c3b5; }
.case-body h3 { font-size: clamp(1.5rem, 2.4vw, 2.05rem); margin-bottom: 28px; max-width: 580px; }
.case-story { border-top: 1px solid var(--line); }
.story-row { display: grid; grid-template-columns: 170px 1fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.story-row dt { display: flex; gap: 10px; font-weight: 600; color: var(--text); font-size: 0.93rem; }
.story-row dt span { font-family: var(--mono); font-weight: 500; color: var(--blue); }
.story-row dd { color: var(--text-2); }
.story-row.is-result dd { color: var(--text); font-weight: 500; }
.case-deliv { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.deliv { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: var(--pill); font-size: 0.84rem; font-weight: 500; background: var(--mint-bg); color: #0b7a59; }
.deliv svg { width: 14px; height: 14px; }
.deliv.is-wip { background: var(--amber-bg); color: #95580a; }
.case-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 32px; }
.case-next { display: inline-flex; align-items: center; gap: 6px; background: none; border: none; cursor: pointer; font-weight: 600; color: var(--text-2); padding: 10px 4px; }
.case-next:hover { color: var(--blue); }
.case-next svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.case-next:hover svg { transform: translateX(3px); }
html:not(.js) .case-next { display: none; }

/* ==========================================================================
   PRODUTOS
   ========================================================================== */
.product-uno { display: grid; grid-template-columns: 0.82fr 1.18fr; background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; }
.product-info { padding: 48px; display: flex; flex-direction: column; gap: 22px; }
.product-logo { display: flex; align-items: center; gap: 12px; }
.product-mark { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 1.05rem; letter-spacing: -0.04em; flex-shrink: 0; }
.product-mark.is-uno { background: #0f766e; }
.product-mark.is-pdv { background: var(--ink); }
.product-name { font-size: 1.6rem; letter-spacing: -0.04em; }
.product-cat { font-size: 0.84rem; color: var(--muted); }
.feature-list { display: grid; gap: 11px; }
.feature-list li { display: flex; gap: 10px; font-size: 0.95rem; color: var(--text-2); line-height: 1.45; }
.feature-list svg { width: 18px; height: 18px; color: var(--blue); flex-shrink: 0; margin-top: 2px; }
.product-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: auto; padding-top: 6px; }
.product-shots { position: relative; min-height: 500px; background: #e7f1ee; }
.shot-desk { position: absolute; left: 64px; top: 56px; width: calc(100% + 20px); border-radius: 14px 0 0 0; overflow: hidden; background: #fff; box-shadow: 0 24px 60px rgba(10, 26, 58, 0.2); }
.shot-desk img { width: 100%; height: auto; }
.shot-phone { position: absolute; left: 24px; bottom: -34px; width: 178px; aspect-ratio: 9 / 16.5; border-radius: 28px; border: 6px solid var(--ink); overflow: hidden; background: #fff; box-shadow: 0 24px 50px rgba(10, 26, 58, 0.32); }
.shot-phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.shot-caption { position: absolute; right: 18px; bottom: 14px; font-size: 0.76rem; color: #3f5f59; background: rgba(255,255,255,.8); padding: 4px 10px; border-radius: var(--pill); }

.product-pdv { margin-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 36px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.product-pdv .product-logo { gap: 16px; }
.product-pdv p { font-size: 0.97rem; margin-top: 2px; }

/* ==========================================================================
   GESTÃO COMERCIAL (jornada do lead)
   ========================================================================== */
.lead-sources { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 28px; font-size: 0.92rem; color: var(--muted); }
.lead-sources ul { display: flex; flex-wrap: wrap; gap: 8px; }
.lead-sources li { padding: 6px 14px; border-radius: var(--pill); background: var(--paper); border: 1px solid var(--line); color: var(--text); font-weight: 500; font-size: 0.9rem; }
.journey li:last-child .num { color: #0e9d75; }
.journey h3 { font-size: 1.12rem; letter-spacing: -0.02em; margin: 12px 0 8px; }
.journey p { font-size: 0.93rem; line-height: 1.55; }
.answers { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: center; margin-top: 64px; padding: 44px 48px; border-radius: var(--r-xl); background: var(--paper); border: 1px solid var(--line); }
.answers-intro h3 { font-size: 1.5rem; margin-bottom: 12px; }
.answers-intro p { margin-bottom: 24px; }
.answers ul { display: grid; }
.answers li { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 20px 0; border-top: 1px solid #d8d3c6; }
.answers li:first-child { border-top: none; }
.answers q { quotes: '“' '”'; font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-size: clamp(1.3rem, 2vw, 1.7rem); line-height: 1.2; color: var(--text); }
.answers li span { font-size: 0.84rem; color: var(--muted); text-align: right; flex-shrink: 0; }

/* ==========================================================================
   IA
   ========================================================================== */
.ai-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ai-item { padding: 28px 24px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s; }
.ai-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.icon-tile { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); margin-bottom: 20px; }
.icon-tile svg { width: 22px; height: 22px; }
.ai-item h3 { font-size: 1.1rem; margin-bottom: 8px; letter-spacing: -0.02em; }
.ai-item p { font-size: 0.92rem; }
.ai-note { margin-top: 22px; display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--muted); }
.ai-note svg { width: 18px; height: 18px; color: var(--mint); }

/* ==========================================================================
   PROCESSO
   ========================================================================== */
.process { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.process-step { padding: 32px 28px 8px 0; position: relative; }
.process-step::before { content: ''; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 5px var(--blue-50); }
.process-step .mono { font-size: 0.74rem; color: var(--blue); }
.process-step h3 { font-size: 1.2rem; margin: 10px 0 8px; letter-spacing: -0.02em; }
.process-step p { font-size: 0.93rem; }

/* ==========================================================================
   TEASER AGÊNCIA
   ========================================================================== */
.agency-teaser {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center;
  padding: 56px; border-radius: var(--r-xl); background: var(--ink); position: relative; overflow: hidden;
}
.agency-teaser h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 16px; }
.agency-teaser .lead { margin-bottom: 28px; font-size: 1.02rem; }
.agency-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: relative; z-index: 1; }
.agency-links a { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--line-dark); color: var(--d-text); font-weight: 500; font-size: 0.95rem; transition: background .2s, border-color .2s, transform .25s var(--ease); }
.agency-links a:hover { background: rgba(255,255,255,.08); border-color: rgba(140,184,255,.3); transform: translateY(-2px); }
.agency-links svg { width: 20px; height: 20px; color: var(--blue-300); flex-shrink: 0; }

/* ==========================================================================
   CONTATO
   ========================================================================== */
.contact { display: grid; grid-template-columns: 0.85fr 1.15fr; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow); }
.contact-side { position: relative; padding: 52px 48px; background: var(--ink); color: var(--d-muted); overflow: hidden; display: flex; flex-direction: column; }
.contact-side h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); margin-bottom: 16px; }
.contact-side .lead { font-size: 1rem; }
.contact-list { display: grid; gap: 8px; margin-top: 36px; position: relative; z-index: 1; }
.contact-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--line-dark); color: var(--d-text); font-size: 0.95rem; transition: background .2s; }
a.contact-item:hover { background: rgba(255,255,255,.08); }
.contact-item svg { width: 20px; height: 20px; color: var(--blue-300); flex-shrink: 0; }
.contact-item small { display: block; font-size: 0.75rem; color: var(--d-muted); }
.contact-form-col { padding: 52px 48px; }
.form-intro { font-size: 0.95rem; color: var(--muted); margin-bottom: 26px; }
.contact-form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: grid; gap: 7px; }
.form-label { font-size: 0.86rem; font-weight: 600; color: var(--text); }
.form-label .req { color: var(--blue); }
.form-label .opt { font-weight: 400; color: var(--muted); }
.form-control {
  width: 100%; height: 50px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--paper);
  font-size: 0.97rem; color: var(--text); transition: border-color .2s, box-shadow .2s, background .2s;
}
.form-control::placeholder { color: #9aa5b8; }
.form-control:hover { border-color: #c8d1e0; }
.form-control:focus { outline: none; background: #fff; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(45,125,255,.14); }
.form-control.is-invalid { border-color: var(--red); box-shadow: 0 0 0 4px var(--red-bg); }
textarea.form-control { height: 130px; padding: 14px 16px; resize: vertical; }
select.form-control {
  appearance: none; cursor: pointer; padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236a768c' stroke-width='2.2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 16px;
}
.form-submit { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.form-privacy { font-size: 0.8rem; color: var(--muted); max-width: 300px; }
.form-feedback { display: none; padding: 14px 16px; border-radius: 12px; font-size: 0.93rem; font-weight: 500; margin-bottom: 18px; }
.form-feedback.is-success { display: block; background: var(--mint-bg); color: #0b7a59; }
.form-feedback.is-error { display: block; background: var(--red-bg); color: #b4232f; }

/* ==========================================================================
   CLIENTES
   ========================================================================== */
.clients { padding: 80px 0 88px; background: var(--white); border-top: 1px solid var(--line); }
.bg-paper + .clients, .page-hero + .clients { border-top: none; }
.clients-head { text-align: center; margin-bottom: 44px; }
.clients-head h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); max-width: 640px; margin: 0 auto; letter-spacing: -0.03em; line-height: 1.15; }
.logo-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.logo-track { display: flex; align-items: center; width: max-content; animation: marquee 42s linear infinite; }
.logo-marquee:hover .logo-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.logo-item { display: flex; align-items: center; gap: 12px; flex-shrink: 0; margin-right: 76px; }
.logo-item img { width: auto; max-width: none; opacity: 0.72; transition: opacity .2s; }
.logo-item:hover img { opacity: 1; }
.logo-item.is-g img { filter: grayscale(1); }
.logo-item.is-k img { filter: brightness(0); }
.logo-item span { font-size: 0.86rem; font-weight: 600; line-height: 1.2; color: var(--text-2); }
@media (prefers-reduced-motion: reduce) {
  .logo-track { width: auto; flex-wrap: wrap; justify-content: center; row-gap: 32px; padding: 0 24px; }
  .logo-item[aria-hidden] { display: none; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--ink); color: var(--d-muted); padding: 96px 0 32px; }
.footer-cta { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; padding-bottom: 64px; margin-bottom: 56px; border-bottom: 1px solid var(--line-dark); }
.footer-cta h2 { font-size: clamp(1.9rem, 3.8vw, 3.2rem); max-width: 720px; letter-spacing: -0.04em; }
.footer-cta p { margin-top: 14px; font-size: 1rem; }
.footer-cta-actions { display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; }
.footer-cta-actions .btn { width: 100%; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 0.7fr 1.1fr 1.1fr; gap: 40px; }
.footer-brand img { height: 52px; width: auto; margin-bottom: 18px; }
.footer-brand p { font-size: 0.93rem; max-width: 280px; }
.footer-title { font-size: 0.93rem; font-weight: 600; color: #fff; letter-spacing: 0; margin-bottom: 16px; }
.footer-list { display: grid; gap: 10px; font-size: 0.93rem; }
.footer-list a { transition: color .2s; }
.footer-list a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line-dark); font-size: 0.85rem; }
.back-to-top-btn { display: inline-flex; align-items: center; gap: 8px; background: none; border: 1px solid var(--line-dark); color: var(--d-text); padding: 8px 14px; border-radius: var(--pill); cursor: pointer; font-size: 0.85rem; }
.back-to-top-btn:hover { border-color: rgba(255,255,255,.35); }
.back-to-top-btn svg { width: 14px; height: 14px; }

.whatsapp-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 900;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 8px 20px rgba(10, 26, 58, .22);
  transition: transform .25s var(--ease);
}
.whatsapp-float svg { width: 28px; height: 28px; }
.whatsapp-float:hover { transform: scale(1.07); }

/* ==========================================================================
   AGÊNCIA DIGITAL
   ========================================================================== */
.page-hero { position: relative; padding: calc(var(--header-h) + 72px) 0 112px; background: var(--paper); }
.page-hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 72px; align-items: center; }
.page-hero h1 { margin-bottom: 24px; }
.page-hero .lead { margin-bottom: 36px; max-width: 540px; }
.hero-checks { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 40px; }
.hero-checks li { display: flex; align-items: center; gap: 8px; font-size: 0.92rem; color: var(--text-2); }
.hero-checks svg { width: 16px; height: 16px; color: var(--mint); }
.spec-wrap { position: relative; max-width: 440px; margin-left: auto; }
.spec-card { background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 30px 32px 14px; box-shadow: var(--shadow); }
.spec-card h2 { font-size: 1.15rem; letter-spacing: -0.02em; margin-bottom: 16px; }
.spec-card li { display: flex; gap: 12px; align-items: flex-start; padding: 13px 0; border-top: 1px solid var(--line); color: var(--text); font-size: 0.97rem; }
.spec-card li svg { width: 18px; height: 18px; color: var(--mint); flex-shrink: 0; margin-top: 3px; }

.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.svc {
  display: flex; flex-direction: column; padding: 32px 30px; border-radius: var(--r-lg);
  background: var(--white); border: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 24px);
  transition: border-color .25s, box-shadow .3s var(--ease), transform .3s var(--ease);
}
.svc:hover, .svc:target { border-color: #bcd3ff; box-shadow: var(--shadow); transform: translateY(-3px); }
.svc:target { box-shadow: 0 0 0 4px rgba(45,125,255,.14), var(--shadow); }
.svc-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 22px; }
.svc-top .mono { font-size: 0.74rem; color: var(--muted); }
.svc h3 { font-size: 1.35rem; margin-bottom: 10px; }
.svc > p { font-size: 0.96rem; margin-bottom: 20px; }
.svc .feature-list { margin-bottom: 26px; flex: 1; }
.svc .feature-list li { font-size: 0.92rem; }

.care { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.care-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.care-item { padding: 24px; border-radius: var(--r-lg); background: rgba(255,255,255,.04); border: 1px solid var(--line-dark); }
.care-item .principle-ico { width: 44px; height: 44px; border-radius: 12px; margin-bottom: 16px; }
.care-item .principle-ico svg { width: 22px; height: 22px; }
.care-item h3 { font-size: 1.08rem; margin-bottom: 6px; letter-spacing: -0.02em; }
.care-item p { font-size: 0.9rem; color: var(--d-muted); }
.care .lead { margin: 20px 0 30px; }

.diff-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.diff { padding: 32px 30px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); }
.diff-num { font-size: 3rem; font-weight: 650; letter-spacing: -0.05em; color: var(--text); line-height: 1; }
.diff-num em { font-style: normal; color: var(--blue); }
.diff h3 { font-size: 1.1rem; margin: 14px 0 6px; letter-spacing: -0.02em; }
.diff p { font-size: 0.93rem; }

.faq { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: start; }
.faq-list { display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--r); background: var(--white); transition: border-color .2s; }
.faq-item[open] { border-color: #bcd3ff; }
.faq-item summary { list-style: none; cursor: pointer; padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-weight: 600; color: var(--text); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ''; width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232d7dff' stroke-width='2.5'%3E%3Cline x1='12' y1='6' x2='12' y2='18'/%3E%3Cline x1='6' y1='12' x2='18' y2='12'/%3E%3C/svg%3E") center / 12px no-repeat; transition: transform .25s var(--ease); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 24px 22px; color: var(--text-2); }

/* ==========================================================================
   REVEAL
   ========================================================================== */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal-d1 { transition-delay: .08s; } .js .reveal-d2 { transition-delay: .16s; } .js .reveal-d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   RESPONSIVO
   ========================================================================== */
@media (max-width: 1180px) {
  .main-nav .nav-link { padding: 9px 10px; font-size: 0.9rem; }
  .header-cta { display: none; }
}
@media (max-width: 1080px) {
  .section { padding: 96px 0; }
  .hero-grid, .page-hero-grid, .principles, .care, .faq, .agency-teaser, .section-head { grid-template-columns: 1fr; }
  .hero-grid, .page-hero-grid { gap: 56px; }
  .chat-wrap, .spec-wrap { margin-left: 0; }
  .principles-intro { position: static; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-card, .bento-card.span-3 { grid-column: span 1; }
  .bento-card.span-4 { grid-column: span 2; }
  .case-panel { grid-template-columns: 1fr; }
  .case-visual { padding: 32px 28px; }
  .cv-foot { padding-top: 22px; }
  .product-uno { grid-template-columns: 1fr; }
  .product-shots { min-height: 0; padding: 40px 0 0 40px; }
  .shot-desk { position: static; width: 100%; }
  .shot-phone { left: 16px; bottom: -20px; width: 140px; }
  .pipeline { grid-template-columns: 1fr; gap: 0; }
  .pipeline::before { top: 0; bottom: 0; left: 27px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, rgba(140,184,255,.4) 0 6px, transparent 6px 12px); }
  .pipe-step { display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding: 0 0 28px; }
  .pipe-dot { margin-bottom: 0; }
  .kpi-row { grid-template-columns: repeat(3, 1fr); }
  .kpi-intro { grid-column: 1 / -1; padding: 0; }
  .ai-grid { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); row-gap: 20px; }
  .contact { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-cta { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 940px) {
  .main-nav, .header-actions .btn { display: none; }
  .mobile-menu-btn { display: grid; }
}
@media (max-width: 760px) {
  .case-tabs { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -18px 14px; padding: 0 18px 4px; scrollbar-width: none; }
  .case-tabs::-webkit-scrollbar { display: none; }
  .case-tab { flex: 0 0 74%; scroll-snap-align: start; }
}
@media (max-width: 680px) {
  :root { --header-h: 68px; }
  .container { padding: 0 18px; }
  .section { padding: 72px 0; }
  .section-tight { padding: 56px 0; }
  .section-head { margin-bottom: 36px; gap: 16px; }
  .header-logo img { height: 42px; }
  .hero, .page-hero { padding: calc(var(--header-h) + 40px) 0 96px; }
  .hero-actions .btn { width: 100%; }
  .hero-clients { margin-top: 32px; }
  .bento { grid-template-columns: 1fr; }
  .bento-card.span-4 { grid-column: span 1; }
  .bento-card { padding: 24px; }
  .mini-app { grid-template-columns: 56px 1fr; }
  .mini-line { grid-template-columns: 1fr auto; }
  .mini-line .perm { display: none; }
  .mini-line > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .case-body { padding: 28px 22px; }
  .case-visual { padding: 28px 22px; }
  .story-row { grid-template-columns: 1fr; gap: 6px; }
  .case-foot .btn { width: 100%; }
  .cta-strip { flex-direction: column; align-items: flex-start; padding: 26px 22px; }
  .cta-strip .btn { width: 100%; }
  .product-info { padding: 28px 22px; }
  .product-shots { padding: 24px 0 0 22px; }
  .shot-phone, .shot-caption { display: none; }
  .product-pdv { flex-direction: column; align-items: flex-start; padding: 26px 22px; }
  .product-pdv .btn, .product-actions .btn { width: 100%; }
  .kpi-row { grid-template-columns: 1fr; margin-top: 36px; }
  .ai-grid, .process, .svc-grid, .care-grid, .diff-grid, .agency-links, .form-row, .needs { grid-template-columns: 1fr; }
  .need { padding: 26px 22px; }
  .need-cta { flex-direction: column; align-items: flex-start; padding: 26px 22px; }
  .need-cta .btn { width: 100%; }
  .agency-teaser { padding: 32px 22px; }
  .contact-side, .contact-form-col { padding: 34px 22px; }
  .form-submit .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .mobile-subnav { grid-template-columns: 1fr; }
  .whatsapp-float { width: 52px; height: 52px; right: 16px; bottom: 16px; }
}

/* Ajustes v5 */
@media (max-width: 1080px) {
  .versus, .answers { grid-template-columns: 1fr; }
  .versus-common .versus-end { padding-top: 12px; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-cta-actions { flex-direction: row; flex-wrap: wrap; }
  .footer-cta-actions .btn { width: auto; }
}
@media (max-width: 680px) {
  .versus-common, .versus-ours { padding: 26px 22px; }
  .versus-ours { padding-bottom: 8px; }
  .versus-ours li { grid-template-columns: 38px 1fr; gap: 10px; }
  .answers { padding: 28px 22px; margin-top: 44px; gap: 24px; }
  .answers li { flex-direction: column; gap: 4px; }
  .answers li span { text-align: left; }
  .answers-intro .btn { width: 100%; }
  .clients { padding: 60px 0 64px; }
  .logo-item { margin-right: 52px; }
  .logo-item img { transform: scale(.88); }
  .site-footer { padding-top: 72px; }
  .footer-cta { padding-bottom: 44px; margin-bottom: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .footer-cta-actions, .footer-cta-actions .btn { width: 100%; }
}

/* Soluções da inicial: carrossel no celular */
@media (max-width: 680px) {
  .needs { display: block; }
  .needs-track {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 -18px; padding: 4px 18px 8px; scroll-padding: 0 18px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
  }
  .needs-track::-webkit-scrollbar { display: none; }
  .needs-track .need { flex: 0 0 86%; scroll-snap-align: start; }
  .needs-track .need:hover { transform: none; }
  .needs-nav { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 14px 0 22px; }
  .needs-dots { display: flex; gap: 6px; }
  .needs-dots span { width: 7px; height: 7px; border-radius: 99px; background: #cfc9bb; transition: width .25s var(--ease), background .25s; }
  .needs-dots span.is-active { width: 22px; background: var(--blue); }
  .needs-hint { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; color: var(--muted); text-align: center; }
  .needs-hint svg { width: 15px; height: 15px; }
}

/* Cards inside the phone carousels show at once: the per-card reveal would wait for each one to slide in. */
@media (max-width: 680px) {
  .js .needs-track .reveal { opacity: 1; transform: none; transition: none; }
}

/* Jornada do lead: carrossel em todas as telas (3 etapas no computador, 2 no tablet, 1 no celular),
   com a linha de 1 a 5 andando conforme a rolagem. */
.journey-rail { display: flex; justify-content: space-between; align-items: center; position: relative; margin: 4px 4px 22px; --p: 0; }
.journey-line { position: absolute; left: 16px; right: 16px; top: 50%; height: 2px; margin-top: -1px; background: #ddd7ca; border-radius: 2px; }
.journey-fill { position: absolute; inset: 0 auto 0 0; width: calc(var(--p) * 100%); background: var(--blue); border-radius: 2px; transition: width .12s linear; }
.journey-node {
  position: relative; width: 34px; height: 34px; border-radius: 50%; padding: 0; cursor: pointer;
  display: grid; place-items: center; font-family: inherit; font-size: 0.88rem; font-weight: 600; line-height: 1;
  background: #fff; color: var(--muted); border: 2px solid #ddd7ca;
  transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.journey-node:hover { border-color: var(--blue); color: var(--blue); }
.journey-node.is-done { background: var(--blue); border-color: var(--blue); color: #fff; }
.journey-node.is-current { transform: scale(1.12); box-shadow: 0 0 0 5px rgba(45, 125, 255, .16); }
.journey-node:last-child.is-done { background: #0e9d75; border-color: #0e9d75; }
.journey {
  --gap: 20px; --show: 3;
  display: flex; gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 2px 0 6px; scrollbar-width: none; overscroll-behavior-x: contain;
}
.journey::-webkit-scrollbar { display: none; }
.journey li {
  flex: 0 0 calc((100% - (var(--show) - 1) * var(--gap)) / var(--show)); scroll-snap-align: start;
  padding: 26px 24px; border: 1px solid var(--line); border-top: 3px solid var(--text);
  border-radius: var(--r-lg); background: var(--paper);
}
.journey li:last-child { border-top-color: var(--mint); }
.js .journey .reveal { opacity: 1; transform: none; transition: none; }
.journey-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 16px; }
.journey-hint { display: inline-flex; align-items: center; gap: 6px; font-size: 0.88rem; color: var(--muted); }
.journey-hint svg { width: 15px; height: 15px; }
.journey-hint .on-touch { display: none; }
.journey-arrows { display: flex; gap: 8px; }
.journey-arrow {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: #fff; border: 1px solid var(--line); color: var(--text); transition: background .2s, color .2s, border-color .2s, opacity .2s;
}
.journey-arrow:hover:not(:disabled) { background: var(--text); border-color: var(--text); color: #fff; }
.journey-arrow:disabled { opacity: .35; cursor: default; }
.journey-arrow svg { width: 18px; height: 18px; }
.journey-arrow.is-prev svg { transform: rotate(180deg); }
.journey.show-4 { --show: 4; }
.journey .mono { font-size: 0.74rem; color: var(--blue); }
.rail-carousel.is-static .journey-foot { display: none; }
@media (max-width: 940px) { .journey, .journey.show-4 { --show: 2; } }
@media (max-width: 680px) {
  .journey { --gap: 12px; margin: 0 -18px; padding: 2px 18px 6px; scroll-padding: 0 18px; }
  .journey li { flex-basis: 86%; padding: 24px 22px; }
  .journey-rail { margin-bottom: 18px; }
  .journey-node { width: 32px; height: 32px; font-size: 0.85rem; }
  .journey-foot { justify-content: center; margin-top: 14px; }
  .journey-hint { font-size: 0.85rem; }
  .journey-hint .on-touch { display: inline; }
  .journey-hint .on-mouse, .journey-arrows { display: none; }
}

/* Celular: blocos mais compactos, para caber na tela sem rolar tanto */
@media (max-width: 680px) {
  /* Canais do lead numa linha só, arrastando para o lado */
  .lead-sources { flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 24px; }
  .lead-sources ul {
    flex-wrap: nowrap; overflow-x: auto; max-width: calc(100% + 36px); margin: 0 -18px; padding: 0 18px 2px;
    scrollbar-width: none; overscroll-behavior-x: contain;
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent);
  }
  .lead-sources ul::-webkit-scrollbar { display: none; }
  .lead-sources li { flex-shrink: 0; padding: 5px 13px; font-size: 0.86rem; }

  /* Topo do contato */
  .contact-side { padding: 26px 20px 22px; }
  .contact-side .kicker { margin-bottom: 10px; }
  .contact-side h2 { font-size: 1.5rem; line-height: 1.15; margin-bottom: 10px; }
  .contact-side .lead { font-size: 0.92rem; line-height: 1.55; }
  .contact-list { margin-top: 18px; gap: 6px; }
  .contact-item { gap: 12px; padding: 9px 12px; font-size: 0.9rem; border-radius: 12px; }
  .contact-item svg { width: 18px; height: 18px; }
  .contact-item small { font-size: 0.7rem; }

  /* Agência Digital */
  .agency-teaser { padding: 26px 20px; gap: 20px; }
  .agency-teaser .kicker { margin-bottom: 10px; }
  .agency-teaser h2 { font-size: 1.5rem; line-height: 1.15; margin-bottom: 10px; }
  .agency-teaser .lead { font-size: 0.92rem; line-height: 1.55; margin-bottom: 18px; }
  .agency-teaser .btn { width: 100%; }
  .agency-links { grid-template-columns: 1fr 1fr; gap: 8px; }
  .agency-links a { gap: 8px; padding: 10px 11px; font-size: 0.84rem; line-height: 1.25; border-radius: 12px; }
  .agency-links svg { width: 17px; height: 17px; }
}

/* "O jeito BioProx": no computador fica a lista; no celular, "o jeito comum" vira uma faixa curta
   e as 4 práticas viram carrossel com a linha de 1 a 4. */
.versus-ours .journey-rail, .versus-ours .journey-foot { display: none; }
@media (max-width: 680px) {
  #integracao .section-head { margin-bottom: 24px; }
  .versus { gap: 12px; grid-template-columns: minmax(0, 1fr); }
  .versus > * { min-width: 0; }
  .versus-common { padding: 16px 18px; }
  .versus-common .versus-label { margin-bottom: 6px; font-size: 0.78rem; }
  .versus-common p { font-size: 0.98rem; display: inline; }
  .versus-common .versus-end { display: inline; margin: 0 0 0 4px; padding: 0; font-size: 1.35rem; }
  .versus-ours { padding: 0; background: none; border: none; }
  .versus-ours .versus-label { margin: 8px 0 12px; }
  .versus-ours .journey-rail { display: flex; margin: 0 4px 14px; }
  .versus-ours .journey-foot { display: flex; }
  .versus-ours.is-static .journey-foot { display: none; }
  .versus-ours .rail-track {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
    margin: 0 -18px; padding: 2px 18px 6px; scroll-padding: 0 18px; scrollbar-width: none; overscroll-behavior-x: contain;
  }
  .versus-ours .rail-track::-webkit-scrollbar { display: none; }
  .versus-ours li, .versus-ours li:first-child {
    flex: 0 0 86%; scroll-snap-align: start; grid-template-columns: 1fr; gap: 6px;
    padding: 20px; border: 1px solid var(--line-dark); border-radius: var(--r-lg); background: rgba(255,255,255,.06);
  }
  .versus-ours .num { font-size: 1.9rem; }
  .on-dark .journey-line { background: rgba(255,255,255,.16); }
  .on-dark .journey-node { background: var(--ink); border-color: rgba(255,255,255,.22); color: var(--d-muted); }
  .on-dark .journey-node.is-done, .on-dark .journey-node:last-child.is-done { background: var(--blue); border-color: var(--blue); color: #fff; }
  .on-dark .journey-hint { color: var(--d-muted); }
  #integracao .hero-actions { margin-top: 24px !important; }
}
