/* ==========================================================
   Scorpion Pronta Resposta — estilos globais
   Paleta, tipografia e componentes compartilhados por todas as páginas.
   ========================================================== */

:root {
  /* Fundos */
  --bg: #0A0E13;
  --bg-alt: #0B1117;
  --surface: #0D141C;
  --surface-hover: #111A24;
  --surface-deep: #0C1219;

  /* Bordas */
  --line: #151E28;
  --line-2: #1A2430;
  --line-3: #1F2A36;
  --line-4: #243141;
  --line-hover: #3A4C61;
  --line-accent: #2F4A7A;

  /* Texto */
  --text: #EDF1F5;
  --text-2: #98A5B3;
  --text-3: #6C7B8B;
  --text-soft: #B8C4D0;

  /* Marca */
  --blue: #1B4DE4;
  --blue-hover: #2E60F5;
  --accent: #5B8CFF;
  --accent-2: #8FB0FF;
  --accent-bg: rgba(91, 140, 255, .12);
  --green: #3DD39A;
  --green-soft: #9FE8CD;
  --wa: #25D366;
  --wa-ink: #07240F;

  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --header-h: 72px;
}

@view-transition { navigation: auto; }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Prompt', ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4, p, ul, ol, li, figure, dl, dd, dt { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; color: inherit; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(91, 140, 255, .35); }

/* Estado inicial das animações: só esconde quando o JS de movimento está ativo */
.motion [data-reveal],
.motion [data-stagger] > *,
.motion [data-hero],
.motion [data-log],
.motion [data-log] .log__step,
.motion [data-log] .status-done { opacity: 0; }

@keyframes pulseDot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.8); } }
@keyframes pulseRing { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(2.4); opacity: 0; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Layout ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { border-bottom: 1px solid var(--line); }
.section--alt { background: var(--bg-alt); }
.section--last { border-bottom: 0; }
.pad { padding-top: clamp(60px, 7.5vw, 100px); padding-bottom: clamp(60px, 7.5vw, 100px); }
.pad-md { padding-top: clamp(56px, 7vw, 88px); padding-bottom: clamp(56px, 7vw, 88px); }
.pad-sm { padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(48px, 6vw, 80px); }

.split { display: grid; gap: clamp(28px, 5vw, 56px); align-items: start; }
.split--faq { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.split--half { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 64px); }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr) !important; } }

/* ---------- Tipografia ---------- */
.eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.label {
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3);
}
.h-section {
  font-size: clamp(27px, 3.4vw, 40px); line-height: 1.12; font-weight: 600; letter-spacing: -.02em; text-wrap: balance;
}
.h-section--sm { font-size: clamp(25px, 3.2vw, 36px); }
.h-section--xs { font-size: clamp(22px, 2.8vw, 32px); }
.lead { margin-top: 16px; font-size: 16px; line-height: 1.6; color: var(--text-2); text-wrap: pretty; }
.muted { color: var(--text-2); }

.section-head { max-width: 680px; margin: 0 auto; text-align: center; }
.section-head--mb { margin-bottom: 44px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 12px; border: 1px solid transparent;
  font-size: 15px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap;
  transition: background .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease, color .18s ease;
}
.btn svg { flex: 0 0 auto; }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-hover); color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(27, 77, 228, .95); }
.btn--ghost { background: var(--surface); border-color: var(--line-4); color: var(--text); padding: 15px 24px; }
.btn--ghost:hover { background: var(--surface-hover); border-color: var(--line-hover); color: var(--text); }
.btn--outline { background: transparent; border-color: #2A3846; color: var(--text); padding: 15px 24px; }
.btn--outline:hover { background: #111821; border-color: var(--line-hover); color: var(--text); }
.btn--wa { background: var(--wa); color: var(--wa-ink); font-weight: 700; }
.btn--wa:hover { color: var(--wa-ink); transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(37, 211, 102, .95); }
.btn--sm { padding: 13px 20px; font-size: 14px; border-radius: 11px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn-row--center { justify-content: center; }
/* Celular: botões menores dividindo a linha; se não couberem lado a lado, cada um ocupa 100% */
@media (max-width: 560px) {
  .btn-row { gap: 10px; }
  .btn-row > .btn { flex: 1 1 auto; padding: 13px 18px; font-size: 14px; gap: 8px; }
}

/* ---------- Ícones ---------- */
.icon-badge {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 36px; height: 36px; border-radius: 10px; background: var(--accent-bg); color: var(--accent-2);
}
.icon-badge svg { width: 18px; height: 18px; }
.icon-badge--green { background: rgba(61, 211, 154, .10); color: var(--green); }
.icon-badge--wa { background: rgba(37, 211, 102, .12); color: var(--green); }
.icon-badge--lg { width: 42px; height: 42px; border-radius: 12px; }
.icon-badge--lg svg { width: 20px; height: 20px; }
.icon-badge--md { width: 38px; height: 38px; border-radius: 11px; }

/* ---------- Grades de células (1px de borda entre itens) ---------- */
.tiles {
  display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: 16px; overflow: hidden;
}
.tiles--soft { background: var(--line-2); border-color: var(--line-2); }
.tile { background: var(--bg-alt); padding: 22px; transition: background .25s ease; }
.tile--surface { background: var(--surface); }
.tile--hover:hover { background: var(--surface-hover); }

/* ---------- Header ---------- */
site-header { display: block; min-height: var(--header-h); position: sticky; top: 0; z-index: 60; }
.header {
  background: rgba(10, 14, 19, .82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease, background .25s ease;
}
.header.is-scrolled { background: rgba(10, 14, 19, .92); box-shadow: 0 12px 30px -18px rgba(0, 0, 0, .8); }
.header__bar { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header__logo img { height: 48px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative; padding: 8px 14px; border-radius: 8px;
  font-size: 14px; font-weight: 500; letter-spacing: -.01em; color: var(--text-2);
  transition: color .18s ease, background .18s ease;
}
.nav a:hover { background: rgba(91, 140, 255, .08); color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px;
  background: var(--accent); border-radius: 2px;
}
.header__actions { display: flex; align-items: center; gap: 10px; }
.status-chip {
  display: flex; align-items: center; gap: 8px; padding: 7px 12px; white-space: nowrap;
  border: 1px solid var(--line-3); border-radius: 999px; background: var(--surface);
  font-size: 12px; font-weight: 600; color: var(--green-soft); letter-spacing: .02em;
}
.pulse { position: relative; display: inline-flex; width: 7px; height: 7px; }
.pulse::before, .pulse::after { content: ""; position: absolute; inset: 0; border-radius: 999px; background: var(--green); }
.pulse::before { animation: pulseDot 2s ease-in-out infinite; }
.pulse::after { animation: pulseRing 2s ease-out infinite; }
.header__cta { padding: 10px 18px; border-radius: 10px; font-size: 14px; }
.header__cta:hover { transform: translateY(-1px); box-shadow: none; }
.burger {
  display: none; align-items: center; justify-content: center; width: 42px; height: 42px;
  border: 1px solid var(--line-4); border-radius: 11px; background: var(--surface);
  transition: border-color .18s ease;
}
.burger:hover { border-color: var(--line-hover); }
.mobile-nav { display: none; overflow: hidden; border-top: 1px solid var(--line); background: var(--bg); }
.mobile-nav[hidden] { display: none !important; }
.mobile-nav nav { display: flex; flex-direction: column; gap: 2px; padding: 10px 16px 18px; }
.mobile-nav a {
  display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 12px 14px;
  border-radius: 10px; font-size: 16px; font-weight: 500; color: var(--text-2); transition: background .18s ease;
}
.mobile-nav a:hover { background: rgba(91, 140, 255, .08); color: var(--text); }
.mobile-nav a[aria-current="page"] { color: var(--text); }
.mobile-nav a[aria-current="page"]::after {
  content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--accent);
  box-shadow: 0 0 0 4px rgba(91, 140, 255, .15);
}
@media (max-width: 1040px) { .status-chip { display: none; } }
@media (max-width: 860px) {
  .header .nav { display: none; }
  .burger { display: inline-flex; }
  .mobile-nav { display: block; }
}
@media (max-width: 420px) { .header__cta { display: none; } }

/* ---------- Hero da home ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero__glow {
  position: absolute; top: -34%; left: 50%; width: 1100px; height: 900px; transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(27, 77, 228, .22), rgba(10, 14, 19, 0) 62%); pointer-events: none;
}
.hero__grid {
  position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: linear-gradient(#131c26 1px, transparent 1px), linear-gradient(90deg, #131c26 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 70% 60% at 25% 20%, #000, transparent);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 25% 20%, #000, transparent);
}
.hero__inner { position: relative; padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(44px, 5vw, 68px); }
.hero__split { grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: clamp(32px, 5vw, 60px); align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 8px; margin-bottom: 26px;
  border: 1px solid #23314180; border-radius: 999px; background: var(--surface); font-size: 13px; color: var(--text-2);
}
.badge__tag {
  padding: 3px 8px; border-radius: 999px; background: rgba(91, 140, 255, .14); color: var(--accent-2);
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.badge, .badge__tag { white-space: nowrap; }
/* Celular: selo menor para caber numa linha */
@media (max-width: 480px) {
  .badge { gap: 8px; padding: 5px 12px 5px 6px; margin-bottom: 22px; font-size: 12px; }
  .badge__tag { padding: 3px 7px; font-size: 9.5px; letter-spacing: .07em; }
}
@media (max-width: 360px) {
  .badge { gap: 6px; padding: 4px 10px 4px 5px; font-size: 10.5px; }
  .badge__tag { padding: 2px 6px; font-size: 8.5px; letter-spacing: .05em; }
}
.hero h1 { font-size: clamp(36px, 4.6vw, 60px); line-height: 1.04; font-weight: 600; letter-spacing: -.02em; text-wrap: balance; }
.hero__lead { margin-top: 22px; max-width: 520px; font-size: clamp(16px, 1.3vw, 18px); line-height: 1.6; color: var(--text-2); text-wrap: pretty; }

/* Registro de atendimento (card lateral do hero) */
.log {
  border: 1px solid var(--line-3); border-radius: 20px; background: var(--surface-deep); overflow: hidden;
  box-shadow: 0 44px 90px -54px rgba(27, 77, 228, .95);
}
.log__head, .log__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 15px 20px; background: var(--bg);
}
.log__head { border-bottom: 1px solid var(--line); }
.log__foot { border-top: 1px solid var(--line); font-size: 12px; color: var(--text-3); }
.log__title { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); white-space: nowrap; }
.log__os {
  font-family: var(--mono); font-size: 11.5px; font-weight: 600; letter-spacing: .06em; color: var(--accent);
  padding: 4px 9px; border-radius: 7px; background: rgba(91, 140, 255, .10); white-space: nowrap;
}
.log__steps { padding: 18px 20px 4px; }
.log__step { display: flex; gap: 14px; padding: 11px 0; }
.log__step:last-child { padding-bottom: 14px; }
.log__rail { display: flex; flex-direction: column; align-items: center; flex: 0 0 auto; width: 18px; }
.log__check {
  display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px;
  border-radius: 999px; background: rgba(61, 211, 154, .16); color: var(--green);
}
.log__line { flex: 1; width: 1px; background: #1B2531; margin-top: 6px; transform-origin: top; }
.log__body { min-width: 0; flex: 1; }
.log__row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.log__name { font-size: 13.5px; font-weight: 600; color: var(--text); }
.log__time { font-family: var(--mono); font-size: 11.5px; color: var(--text-3); white-space: nowrap; }
.log__desc { display: block; margin-top: 4px; font-size: 12.5px; color: var(--text-2); }
.status-done {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 7px; white-space: nowrap;
  background: rgba(61, 211, 154, .10); color: var(--green-soft); font-size: 11.5px; font-weight: 700; letter-spacing: .06em;
}

/* Métricas */
.metrics { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-top: clamp(48px, 6vw, 76px); text-align: left; }
.metrics--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0; }
.metric__value { margin-top: 10px; font-size: 29px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.metric__note { margin-top: 4px; font-size: 12.5px; color: var(--text-2); }
.metrics--2 .tile { padding: 26px 22px; }
.metrics--2 .metric__value { font-size: 27px; }

/* ---------- Parceiros (marquee) ---------- */
.partners { border-bottom: 1px solid var(--line); padding: 46px 0; overflow: hidden; }
.partners__title { margin-bottom: 24px; text-align: center; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.marquee { position: relative; }
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 110px; z-index: 2; pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(to right, var(--bg), rgba(10, 14, 19, 0)); }
.marquee::after { right: 0; background: linear-gradient(to left, var(--bg), rgba(10, 14, 19, 0)); }
.marquee__track { display: flex; gap: 16px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.partner {
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 192px; height: 92px; padding: 0 22px;
  border: 1px solid #22303F; border-radius: 14px; background: #121A24;
  transition: border-color .25s ease, background .25s ease, transform .25s ease, box-shadow .25s ease;
}
.partner img { max-height: 44px; max-width: 140px; width: auto; object-fit: contain; transition: transform .25s ease; }
.partner:hover { border-color: var(--accent); background: #16202D; transform: translateY(-3px); box-shadow: 0 18px 34px -18px rgba(91, 140, 255, .6); }
.partner:hover img { transform: scale(1.06); }

/* ---------- Cards ---------- */
.card {
  border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface);
  transition: border-color .25s ease, background .25s ease, transform .25s ease, box-shadow .3s ease;
}
.card:hover { border-color: var(--line-accent); background: var(--surface-hover); transform: translateY(-3px); }

/* ---------- Carrossel 3D de serviços ---------- */
.c3d { position: relative; margin-top: 36px; --card-w: min(76vw, 320px); --card-h: 290px; }
.c3d__viewport {
  position: relative; height: calc(var(--card-h) + 80px); perspective: 1400px; perspective-origin: 50% 40%;
  overflow: hidden; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; outline: none;
  /* esmaece as bordas laterais para os cards sumirem suavemente */
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}
.c3d__viewport.is-dragging { cursor: grabbing; }
.c3d__viewport:focus-visible .c3d__card.is-active { outline: 2px solid var(--accent); outline-offset: 4px; }
.c3d__viewport::before {
  content: ""; position: absolute; left: 50%; bottom: 6px; width: min(90%, 620px); height: 90px; transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(27, 77, 228, .32), transparent 70%); filter: blur(10px); pointer-events: none;
}
/* o palco fica no plano z=0, à frente dos cards recuados: não pode capturar cliques */
.c3d__stage { position: absolute; inset: 0; transform-style: preserve-3d; pointer-events: none; }
.c3d__card { pointer-events: auto; }
.c3d__card {
  --dim: 0;
  position: absolute; top: 24px; left: 50%; width: var(--card-w); height: var(--card-h); margin-left: calc(var(--card-w) / -2);
  display: flex; flex-direction: column; gap: 14px; padding: 28px 26px 26px; overflow: hidden;
  border: 1px solid var(--line-2); border-radius: 20px;
  background: linear-gradient(160deg, #111B27 0%, var(--surface) 55%, #0A1018 100%);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9);
  backface-visibility: hidden; will-change: transform, opacity;
  transition: border-color .35s ease, box-shadow .35s ease;
}
/* camada que escurece os cards afastados do centro */
.c3d__card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; background: #05080B;
  opacity: var(--dim); pointer-events: none;
}
/* brilho que acompanha o card ativo */
.c3d__card::before {
  content: ""; position: absolute; top: -40%; left: -20%; width: 140%; height: 80%; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(91, 140, 255, .22), transparent 65%);
  opacity: 0; transition: opacity .4s ease;
}
.c3d__card.is-active { border-color: var(--line-accent); box-shadow: 0 40px 80px -36px rgba(27, 77, 228, .85), inset 0 1px 0 rgba(143, 176, 255, .12); }
.c3d__card.is-active::before { opacity: 1; }
.c3d__icon { position: relative; width: 48px; height: 48px; border-radius: 14px; }
.c3d__icon svg { width: 22px; height: 22px; }
.c3d__card h3 { position: relative; margin-top: auto; font-size: 20px; font-weight: 600; letter-spacing: -.015em; line-height: 1.2; text-wrap: balance; }
.c3d__card p { position: relative; font-size: 14.5px; line-height: 1.6; color: var(--text-2); text-wrap: pretty; }
.c3d__top { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.c3d__tag {
  padding: 5px 10px; border: 1px solid #22303F; border-radius: 999px; background: rgba(10, 14, 19, .55);
  font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); white-space: nowrap;
  transition: color .35s ease, border-color .35s ease, background .35s ease;
}
.c3d__card.is-active .c3d__tag { color: var(--accent-2); border-color: rgba(91, 140, 255, .28); background: rgba(91, 140, 255, .10); }

/* "Saiba mais": link minimalista, aparece ao passar o mouse no card ativo */
.c3d__more {
  position: relative; z-index: 1; align-self: flex-start; display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 0; color: var(--accent-2); font-size: 13.5px; font-weight: 600; letter-spacing: -.01em;
  opacity: 0; transform: translateY(6px);
  transition: opacity .3s ease, transform .35s var(--ease-out), color .18s ease;
}
.c3d__more::after {
  content: ""; position: absolute; left: 0; right: 21px; bottom: -1px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease-out);
}
.c3d__more svg { transition: transform .3s var(--ease-out); }
.c3d__more:hover { color: #fff; }
.c3d__more:hover::after { transform: scaleX(1); }
.c3d__more:hover svg { transform: translateX(4px); }
.c3d__card.is-active:hover .c3d__more,
.c3d__more:focus-visible { opacity: 1; transform: none; }
/* Telas de toque não têm hover: mostra direto no card ativo */
@media (hover: none) { .c3d__card.is-active .c3d__more { opacity: 1; transform: none; } }
/* Sem JS (faixa com rolagem) o link fica sempre visível */
.c3d:not(.is-ready) .c3d__more { opacity: 1; transform: none; }
/* Nos cards laterais o link não recebe clique: o clique centraliza o card */
.c3d.is-ready .c3d__card:not(.is-active) .c3d__more { pointer-events: none; }

.c3d__controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 8px; }
.c3d__arrow {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: 0 0 auto;
  border: 1px solid var(--line-4); border-radius: 999px; background: var(--surface); color: var(--text);
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.c3d__arrow:hover { border-color: var(--accent); background: var(--surface-hover); }
.c3d__arrow:active { transform: scale(.94); }
.c3d__arrow:disabled { opacity: .35; cursor: default; border-color: var(--line-4); background: var(--surface); transform: none; }
.c3d__dots { display: flex; align-items: center; gap: 6px; }
.c3d__dot {
  position: relative; width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: #243141;
  transition: width .35s var(--ease-out), background .25s ease;
}
.c3d__dot::before { content: ""; position: absolute; inset: -8px -3px; }
.c3d__dot:hover { background: #3A4C61; }
.c3d__dot[aria-current="true"] { width: 26px; background: var(--accent); }
.c3d__status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Sem JS: vira uma rolagem horizontal simples */
.c3d:not(.is-ready) .c3d__viewport { height: auto; perspective: none; mask-image: none; -webkit-mask-image: none; overflow-x: auto; cursor: auto; }
.c3d:not(.is-ready) .c3d__stage { position: static; display: flex; gap: 12px; padding: 8px 0 16px; }
.c3d:not(.is-ready) .c3d__card { position: relative; top: 0; left: 0; margin: 0; flex: 0 0 var(--card-w); }
.c3d:not(.is-ready) .c3d__controls { display: none; }

@media (max-width: 560px) {
  /* cards menores no celular */
  .c3d { --card-w: min(66vw, 250px); --card-h: 236px; margin-top: 28px; }
  .c3d__viewport { height: calc(var(--card-h) + 56px); }
  .c3d__card { top: 16px; gap: 10px; padding: 20px 18px 18px; border-radius: 18px; }
  .c3d__icon { width: 40px; height: 40px; border-radius: 12px; }
  .c3d__icon svg { width: 19px; height: 19px; }
  .c3d__tag { padding: 4px 8px; font-size: 9.5px; }
  .c3d__card h3 { font-size: 17px; }
  .c3d__card p { font-size: 13px; line-height: 1.5; }
  .c3d__more { font-size: 13px; }
  .c3d__arrow { width: 40px; height: 40px; }
  .c3d__dots { gap: 4px; }
  .c3d__dot { width: 6px; height: 6px; }
  .c3d__dot[aria-current="true"] { width: 18px; }
}
.center-row { display: flex; justify-content: center; margin-top: 34px; }

/* ---------- Mapa ---------- */
.map-wrap {
  /* isolation: os z-index altos do Leaflet (400–1000) ficam presos aqui dentro e não cobrem o menu fixo */
  position: relative; isolation: isolate; z-index: 0; height: clamp(420px, 58vw, 580px); margin-top: 40px;
  border: 1px solid var(--line-2); border-radius: 20px; overflow: hidden; background: radial-gradient(ellipse 60% 70% at 58% 50%, rgba(27, 77, 228, .12), transparent 70%), #090D13;
}
.map { position: absolute; inset: 0; }
.map-legend {
  position: absolute; left: 18px; top: 18px; z-index: 400; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border: 1px solid var(--line-4); border-radius: 12px;
  background: rgba(10, 14, 19, .86); backdrop-filter: blur(8px); font-size: 13px; font-weight: 600;
}
.dot { width: 8px; height: 8px; border-radius: 999px; background: var(--accent); box-shadow: 0 0 0 5px rgba(91, 140, 255, .16); flex: 0 0 auto; }
.dot--sm { width: 6px; height: 6px; box-shadow: 0 0 0 4px rgba(91, 140, 255, .15); }
.leaflet-container { background: transparent !important; font-family: 'Prompt', sans-serif; }
.leaflet-bar a { background: #111821 !important; color: var(--text) !important; border-color: var(--line-3) !important; }
.leaflet-bar a:hover { background: #1B2532 !important; }
.leaflet-tooltip.sc-tip {
  background: #111821; border: 1px solid #2A3A4C; color: var(--text); font-size: 12px; font-weight: 600;
  padding: 5px 9px; border-radius: 7px; box-shadow: 0 10px 24px rgba(0, 0, 0, .5);
}
.leaflet-tooltip.sc-tip::before { display: none; }

/* ---------- Etapas ---------- */
.steps { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); margin-top: 48px; }
.step { position: relative; overflow: hidden; padding: 30px 24px 34px; }
.step:hover { background: #0F1720; }
.step__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.step .icon-badge { transition: background .3s ease, color .3s ease, transform .45s var(--ease-out); }
.step:hover .icon-badge { background: var(--accent); color: #fff; transform: scale(1.08) rotate(-6deg); }
.step h3 { position: relative; margin-top: 22px; font-size: 16px; font-weight: 600; letter-spacing: -.015em; }
.step p { position: relative; margin-top: 9px; font-size: 13.5px; line-height: 1.6; color: var(--text-2); text-wrap: pretty; }

/* ---------- FAQ ---------- */
.faq-title { font-size: clamp(25px, 3vw, 34px); line-height: 1.14; font-weight: 600; letter-spacing: -.02em; }
.faq { display: flex; flex-direction: column; gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; }
.faq__item { background: var(--surface); }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 20px 22px;
  border: 0; background: none; color: var(--text); font-size: 15px; font-weight: 600; letter-spacing: -.015em; text-align: left;
  transition: background .18s ease;
}
.faq__icon { flex: 0 0 auto; color: var(--accent); transition: transform .3s var(--ease-out); }
.faq__icon .v { transition: opacity .2s ease; }
.faq__q:hover { background: var(--surface-hover); }
.faq__q[aria-expanded="true"] .faq__icon { transform: rotate(180deg); }
.faq__q[aria-expanded="true"] .faq__icon .v { opacity: 0; }
.faq__a { overflow: hidden; }
.faq__a[hidden] { display: none; }
.faq__a p { padding: 16px 22px 24px; font-size: 14px; line-height: 1.65; color: var(--text-2); max-width: 62ch; text-wrap: pretty; }

/* ---------- CTA final ---------- */
.cta {
  position: relative; overflow: hidden; padding: clamp(40px, 6vw, 72px); text-align: center;
  border: 1px solid var(--line-3); border-radius: 22px; background: var(--surface);
}
.cta__glow {
  position: absolute; top: -180px; left: 50%; transform: translateX(-50%); width: 760px; height: 520px; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(27, 77, 228, .26), rgba(13, 20, 28, 0) 65%);
}
.cta__inner { position: relative; max-width: 620px; margin: 0 auto; }

/* ---------- Hero das páginas internas ---------- */
.page-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero__glow {
  position: absolute; top: -45%; left: 50%; transform: translateX(-50%); width: 900px; height: 740px; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(27, 77, 228, .16), rgba(10, 14, 19, 0) 62%);
}
.page-hero__inner { position: relative; padding-top: clamp(52px, 6vw, 80px); padding-bottom: clamp(52px, 6vw, 80px); text-align: center; }
.page-hero .eyebrow { margin-bottom: 16px; }
.page-hero h1 {
  max-width: 820px; margin: 0 auto; font-size: clamp(32px, 4.6vw, 56px); line-height: 1.06; font-weight: 600;
  letter-spacing: -.02em; text-wrap: balance;
}
.page-hero h1 + p { margin: 20px auto 0; max-width: 600px; font-size: 16.5px; line-height: 1.6; color: var(--text-2); text-wrap: pretty; }

/* ---------- Serviços principais ---------- */
.main-services { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px; }
.main-service {
  display: grid; grid-template-columns: 150px minmax(0, 1fr); overflow: hidden; border-radius: 18px;
}
.main-service:hover { transform: none; box-shadow: 0 20px 44px -28px rgba(27, 77, 228, .8); background: var(--surface); }
.main-service { scroll-margin-top: calc(var(--header-h) + 24px); }
.main-service:target { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(91, 140, 255, .15), 0 20px 44px -28px rgba(27, 77, 228, .8); }
.main-service__media { position: relative; overflow: hidden; min-height: 190px; background: var(--bg); }
.main-service__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .72; filter: saturate(.7);
  transition: transform .7s var(--ease-out), opacity .4s ease;
}
.main-service__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, rgba(10, 14, 19, .2), rgba(13, 20, 28, .85)); }
.main-service:hover img { transform: scale(1.07); opacity: .95; }
/* Ilustrações próprias: sem o filtro que apaga as fotos e com transição mais leve para o texto */
.main-service__media--art { border-right: 1px solid var(--line-2); }
.main-service__media--art img { opacity: 1; filter: none; }
.main-service__media--art::after { background: linear-gradient(to right, transparent 70%, rgba(13, 20, 28, .55)); }
.main-service:hover .main-service__media--art img { transform: scale(1.04); opacity: 1; }
.main-service__body { display: flex; flex-direction: column; gap: 13px; padding: 24px 24px 26px; }
.main-service__head { display: flex; align-items: center; gap: 12px; }
.main-service h2 { font-size: 17px; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; }
.main-service p { font-size: 13.5px; line-height: 1.6; color: var(--text-2); text-wrap: pretty; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 2px; }
.chips li { font-size: 12px; font-weight: 500; color: var(--text-soft); padding: 5px 10px; border: 1px solid #22303F; border-radius: 999px; background: var(--bg); }
@media (max-width: 520px) {
  .main-service { grid-template-columns: minmax(0, 1fr); }
  .main-service__media { min-height: 230px; }
  .main-service__media::after { background: linear-gradient(to bottom, rgba(10, 14, 19, .1), rgba(13, 20, 28, .85)); }
  .main-service__media--art { border-right: 0; border-bottom: 1px solid var(--line-2); }
  .main-service__media--art::after { background: linear-gradient(to bottom, transparent 70%, rgba(13, 20, 28, .55)); }
}

/* Escopo complementar */
.extras { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.extra { display: flex; flex-direction: column; gap: 12px; padding: 22px 20px 24px; border-radius: 16px; scroll-margin-top: calc(var(--header-h) + 24px); }
.extra__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.extra h3 { font-size: 16px; font-weight: 600; letter-spacing: -.015em; line-height: 1.3; }
.extra p { font-size: 13.5px; line-height: 1.6; color: var(--text-2); text-wrap: pretty; }
.extra:target { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(91, 140, 255, .15); }
.tag {
  padding: 5px 10px; border: 1px solid rgba(91, 140, 255, .28); border-radius: 999px; background: rgba(91, 140, 255, .10);
  font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-2); white-space: nowrap;
}

.feature-tiles { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.feature-tiles .tile { padding: 26px 22px 28px; }
.feature-tiles h3 { margin-top: 18px; font-size: 15px; font-weight: 600; letter-spacing: -.015em; }
.feature-tiles p { margin-top: 9px; font-size: 13px; line-height: 1.6; color: var(--text-2); text-wrap: pretty; }

/* ---------- Sobre ---------- */
.prose h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 600; letter-spacing: -.015em; line-height: 1.18; }
.prose p { margin-top: 16px; font-size: 15.5px; line-height: 1.7; color: var(--text-2); text-wrap: pretty; }
.prose h2 + p { margin-top: 20px; }
/* Especialidades: duas faixas de pílulas rolando em sentidos opostos */
/* mesmo espaço entre o texto e as pílulas e entre as pílulas e o fim da seção */
.section--pills { --pill-gap: clamp(48px, 5vw, 64px); }
.section--pills .pad-md { padding-bottom: var(--pill-gap); }
@keyframes marqueeReverse { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.pill-marquee {
  display: flex; flex-direction: column; gap: 12px; margin-top: calc(var(--pill-gap, 40px) - 8px); overflow: hidden;
  /* respiro vertical para a pílula subir no hover sem ser cortada */
  padding: 8px 0;
  margin-bottom: -9px; /* compensa o respiro e a borda da seção: mesmo espaço em cima e embaixo */
  cursor: default; user-select: none; -webkit-user-select: none;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.pill-marquee__track { display: flex; gap: 12px; width: max-content; margin: 0; padding: 0; list-style: none; animation: marquee 38s linear infinite; }
.pill-marquee__track--reverse { animation-name: marqueeReverse; animation-duration: 44s; }
.pill-marquee:hover .pill-marquee__track { animation-play-state: paused; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; white-space: nowrap;
  border: 1px solid var(--line-4); border-radius: 999px; background: var(--surface);
  font-size: 15px; font-weight: 500; color: var(--text);
  transition: border-color .25s ease, background .25s ease, transform .25s ease;
}
.pill svg { flex: 0 0 auto; color: var(--accent-2); transition: color .25s ease; }
.pill:hover { border-color: var(--accent); background: rgba(91, 140, 255, .12); transform: translateY(-2px); }
.pill:hover svg { color: #fff; }
@media (max-width: 560px) { .pill { padding: 11px 18px; font-size: 14px; } }
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 16px; }
.value { padding: 28px 24px 32px; border-radius: 18px; }
.value h3 { margin-top: 20px; font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.value p { margin-top: 10px; font-size: 14px; line-height: 1.65; color: var(--text-2); text-wrap: pretty; }

/* ---------- Galeria ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 16px; }
.shot { display: block; width: 100%; padding: 0; text-align: left; overflow: hidden; border-radius: 18px; }
.shot:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -30px rgba(27, 77, 228, .8); background: var(--surface); }
.shot__media { position: relative; height: 210px; overflow: hidden; background: var(--bg); }
.shot__media img { width: 100%; height: 100%; object-fit: cover; opacity: .78; transition: transform .7s var(--ease-out), opacity .4s ease; }
.shot:hover .shot__media img { transform: scale(1.06); opacity: 1; }
.shot__zoom {
  position: absolute; top: 14px; right: 14px; display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 9px; background: rgba(10, 14, 19, .7); border: 1px solid var(--line-4);
  backdrop-filter: blur(6px); color: var(--text-soft);
}
.shot__body { padding: 18px 20px 22px; }
.shot h3 { font-size: 15px; font-weight: 600; letter-spacing: -.015em; color: var(--text); }
.shot p { margin-top: 8px; font-size: 13px; line-height: 1.55; color: var(--text-2); }

.lightbox {
  position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center;
  padding: clamp(16px, 4vw, 56px); background: rgba(5, 8, 11, .9); backdrop-filter: blur(10px);
}
.lightbox[hidden] { display: none; }
.lightbox figure { max-width: 1020px; width: 100%; border: 1px solid var(--line-4); border-radius: 18px; overflow: hidden; background: var(--surface); }
.lightbox img { width: 100%; height: min(70vh, 560px); object-fit: cover; background: var(--bg); }
.lightbox figcaption { padding: 20px 24px 24px; }
.lightbox h3 { font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.lightbox p { margin-top: 8px; font-size: 14px; line-height: 1.55; color: var(--text-2); }
.lightbox__close {
  position: fixed; top: 24px; right: 24px; display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border: 1px solid var(--line-4); border-radius: 11px; background: rgba(13, 20, 28, .9);
  transition: border-color .2s ease;
}
.lightbox__close:hover { border-color: var(--line-hover); }

/* ---------- Contato ---------- */
/* Canais de contato: 4 caixas iguais */
.channels { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); border-radius: 18px; }
.channel { display: flex; flex-direction: column; padding: 26px 24px 28px; }
.channel h2 { margin-top: 18px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.channel__value { margin-top: 9px; font-size: 15px; font-weight: 600; color: var(--text); letter-spacing: -.015em; word-break: break-word; font-variant-numeric: tabular-nums; }
.channel__value a { color: inherit; transition: color .18s ease; }
.channel__value a:hover { color: var(--accent-2); }
.channel__note { margin-top: 6px; font-size: 13px; line-height: 1.55; color: var(--text-2); }

/* Interação nas caixas: brilho que acende do canto + ícone que se preenche */
.channel { position: relative; overflow: hidden; transition: background .3s ease; }
.channel > * { position: relative; }
.channel::before {
  content: ""; position: absolute; top: -90px; left: -90px; width: 260px; height: 260px; pointer-events: none;
  background: radial-gradient(circle, rgba(91, 140, 255, .16), transparent 65%);
  opacity: 0; transform: scale(.6); transition: opacity .45s ease, transform .6s var(--ease-out);
}
.channel:hover { background: var(--surface-hover); }
.channel:hover::before { opacity: 1; transform: scale(1); }
.channel .icon-badge { transition: background .3s ease, color .3s ease, transform .45s var(--ease-out); }
.channel:hover .icon-badge { background: var(--accent); color: #fff; transform: scale(1.08) rotate(-6deg); }
.channel:has(.icon-badge--wa)::before { background: radial-gradient(circle, rgba(37, 211, 102, .14), transparent 65%); }
.channel:hover .icon-badge--wa { background: var(--wa); color: var(--wa-ink); }

.channel__live {
  display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; vertical-align: 1px;
  font-size: 10px; letter-spacing: .08em; color: var(--green-soft);
}
.channel__clock { font-family: var(--mono); font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }

/* FAQ do contato: coluna da esquerda acompanha a altura do FAQ */
.split--stretch { align-items: stretch; }
.faq-side { display: flex; flex-direction: column; gap: 28px; }
.highlights { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; }
.highlight { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; line-height: 1.5; color: var(--text-2); }
.highlight::before {
  content: ""; flex: 0 0 auto; width: 6px; height: 6px; margin-top: 8.25px; border-radius: 999px;
  background: var(--accent); box-shadow: 0 0 0 4px rgba(91, 140, 255, .15);
}
.highlight strong { color: var(--text); font-weight: 600; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg-alt); }
.footer__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: clamp(28px, 4vw, 48px);
  padding-top: clamp(48px, 6vw, 72px);
}
.footer__brand { max-width: 280px; }
.footer__brand img { height: 44px; width: auto; }
.footer__brand p { margin-top: 14px; font-size: 13.5px; line-height: 1.65; color: var(--text-2); }
.footer h3 { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.footer ul { margin-top: 16px; display: flex; flex-direction: column; gap: 11px; font-size: 13.5px; }
.footer ul a { color: var(--text-soft); transition: color .18s ease; word-break: break-word; }
.footer ul a:hover { color: var(--accent); }
.footer ul a.is-wa:hover { color: var(--wa); }
.footer__note { color: var(--text-3); }
.footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: clamp(36px, 5vw, 56px); padding: 26px 0; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--text-3);
}

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 70; display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 999px; background: var(--wa); color: var(--wa-ink);
  box-shadow: 0 12px 30px -10px rgba(37, 211, 102, .7); transition: transform .2s ease, box-shadow .2s ease;
}
.wa-float:hover { color: var(--wa-ink); transform: scale(1.06); box-shadow: 0 16px 36px -10px rgba(37, 211, 102, .9); }

/* ---------- Grades responsivas: colunas fixas por faixa de tela, sem itens órfãos ---------- */
.steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.values { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.footer__grid { grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); }

@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* 7 serviços complementares em 2 colunas: o último ocupa a linha inteira */
  .extras { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .extras > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .values { grid-template-columns: minmax(0, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); text-align: center; }
  .footer__brand { grid-column: 1 / -1; max-width: 340px; margin: 0 auto; }
  .footer__brand img { height: 40px; margin: 0 auto; }
  .footer__grid > :last-child { grid-column: 1 / -1; }
  .footer ul { align-items: center; }
  .footer__bottom { flex-direction: column; justify-content: center; gap: 6px; text-align: center; }
}
@media (max-width: 560px) {
  .steps, .extras { grid-template-columns: minmax(0, 1fr); }
  .extras > :last-child:nth-child(odd) { grid-column: auto; }
  /* métricas do topo da home em 2×2 em vez de uma coluna longa */
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metrics .tile { padding: 18px 16px; }
  .metric__value { font-size: 25px; }
}
@media (max-width: 400px) {
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
