/* ============================================================
   OpenCortex: home institucional (consultoria de dados para PMEs).
   Complementa style-v2.css e cortex-v1.css. Versionado no nome
   porque /assets/* tem cache imutável: ao mudar, crie home-v2.css.
   ============================================================ */

body { font-size: 17px; }
h1, h2, h3 { letter-spacing: -.025em; font-weight: 650; }

/* ---------- header ---------- */
.brand { gap: 10px; }
.brand-word { font-size: 1.08rem; font-weight: 650; letter-spacing: -.02em; }
.nav-links a[aria-current] { color: var(--text); }
.site-header .btn-sm { background: var(--accent); color: var(--on-accent); }
.site-header .btn-sm:hover { background: var(--accent-hover); color: var(--on-accent); }

@media (max-width: 720px) {
  .nav { height: 60px; }
  .nav-strip {
    display: flex; gap: 22px; overflow-x: auto; padding: 0 24px 12px;
    font-size: .92rem; scrollbar-width: none;
  }
  .nav-strip::-webkit-scrollbar { display: none; }
  .nav-strip a { color: var(--text-muted); white-space: nowrap; }
}
@media (min-width: 721px) { .nav-strip { display: none; } }

/* ---------- hero ---------- */
.home-hero { padding: 88px 0 96px; border-bottom: 1px solid var(--border); }
.home-hero .container {
  display: grid; gap: 56px; align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr);
}
.home-hero h1 {
  font-size: clamp(2.4rem, 4.4vw, 3.6rem); line-height: 1.04;
  letter-spacing: -.035em; max-width: 15ch; margin-bottom: 24px;
  text-wrap: balance;
}
.home-hero .lede {
  margin: 0 0 36px; max-width: 52ch; font-size: 1.18rem;
  color: var(--text-muted); text-wrap: pretty;
}
.home-hero .hero-actions { justify-content: flex-start; }
.creds {
  margin: 40px 0 0; padding-top: 22px; border-top: 1px solid var(--border);
  font-size: .92rem; color: var(--text-muted); max-width: 60ch;
}
.creds strong { color: var(--text); font-weight: 600; }

@media (max-width: 960px) {
  .home-hero { padding: 56px 0 64px; }
  .home-hero .container { grid-template-columns: 1fr; gap: 48px; }
}

/* ilustração do hero: um palco de 600×520 unidades que escala com a coluna.
   --u é 1 unidade do palco; tudo dentro dele é medido em --u. */
.stage { margin: 0; }
.stage-box {
  position: relative; aspect-ratio: 640 / 600; container-type: inline-size;
}
.stage-box > * { --u: calc(100cqw / 640); }
.stage-box::before {
  content: ""; position: absolute; left: 26%; top: 26%; width: 30%; height: 48%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--brand-o) 22%, transparent), transparent);
  filter: blur(8px); pointer-events: none;
}
.stage-box::after {
  content: ""; position: absolute; inset: -4% -3%; z-index: -1; pointer-events: none;
  background-image: radial-gradient(circle, color-mix(in srgb, var(--text-muted) 30%, transparent) 1px, transparent 1.3px);
  background-size: 20px 20px;
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 45% 50%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 55% at 45% 50%, #000 30%, transparent 75%);
}
.stage-wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.stage-wires .wire { fill: none; stroke-width: 1.5; stroke-linecap: round; }
.stage-wires .wire-in { stroke: color-mix(in srgb, var(--brand-o) 70%, var(--border)); }
.stage-wires .wire-out { stroke: color-mix(in srgb, var(--brand-c) 75%, var(--border)); }
.spark-in { fill: var(--brand-o); }
.spark-out { fill: var(--brand-c); }

.src li, .tile, .core-disc {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 1px 1px rgba(16, 24, 40, .05), 0 6px 14px -6px rgba(17, 20, 46, .18);
}

.src li {
  position: absolute; left: 0; top: calc(var(--y) / 600 * 100%);
  width: calc(150 / 640 * 100%); height: calc(52 * var(--u));
  display: flex; align-items: center; gap: calc(10 * var(--u));
  padding: 0 calc(14 * var(--u)); border-radius: calc(12 * var(--u));
  font-size: calc(16 * var(--u)); font-weight: 550; color: var(--text);
}
.src svg {
  flex: none; width: calc(20 * var(--u)); height: calc(20 * var(--u));
  fill: none; stroke: var(--brand-o); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

.core {
  position: absolute; left: calc(262 / 640 * 100%); top: calc(300 / 600 * 100%);
  width: calc(136 * var(--u)); aspect-ratio: 1; transform: translate(-50%, -50%);
  display: grid; place-items: center;
}
.core-ring { position: absolute; border-radius: 50%; }
.core-ring-o { inset: calc(18 * var(--u)); border: 1.5px dashed color-mix(in srgb, var(--brand-o) 75%, transparent); animation: spin 22s linear infinite; }
.core-ring-c { inset: 0; border: 1.5px dashed color-mix(in srgb, var(--brand-c) 70%, transparent); animation: spin 34s linear infinite reverse; }
.core-disc {
  position: relative; display: grid; place-items: center;
  width: calc(72 * var(--u)); aspect-ratio: 1; border-radius: 50%;
}
.core-disc img { width: calc(46 * var(--u)); height: auto; }
.core-label {
  position: absolute; top: calc(100% + 4 * var(--u)); left: 50%; transform: translateX(-50%);
  padding: calc(3 * var(--u)) calc(10 * var(--u)); border-radius: 999px; background: var(--bg);
  text-align: center; white-space: nowrap;
  font-size: calc(16 * var(--u)); font-weight: 650; letter-spacing: -.01em; color: var(--text);
}
.core-label small { display: block; font-size: calc(14 * var(--u)); font-weight: 500; color: var(--text-muted); letter-spacing: 0; }

.tile { position: absolute; border-radius: calc(14 * var(--u)); padding: calc(16 * var(--u)) calc(18 * var(--u)); }
.tile p { margin: 0; }
.tile-head {
  display: flex; justify-content: space-between; align-items: center; gap: calc(8 * var(--u));
  font-size: calc(14.5 * var(--u)); font-weight: 550; color: var(--text-muted);
}
.tile-head > span { white-space: nowrap; }
.live { display: inline-flex; align-items: center; gap: calc(6 * var(--u)); }
.live::before { content: ""; width: calc(7 * var(--u)); height: calc(7 * var(--u)); border-radius: 50%; background: var(--success); box-shadow: 0 0 0 calc(3 * var(--u)) color-mix(in srgb, var(--success) 20%, transparent); }
.delta { font-size: calc(14 * var(--u)); font-weight: 600; color: var(--success); letter-spacing: 0; }

.tile-kpi, .tile-chat, .tile-cost { left: calc(360 / 640 * 100%); width: calc(280 / 640 * 100%); }

/* painel de vendas: contagem, barras, linha de tendência e atualização "ao vivo" (JS) */
.tile-kpi { top: 0; }
.kpi { margin-top: calc(6 * var(--u)) !important; font-size: calc(32 * var(--u)); font-weight: 650; letter-spacing: -.03em; color: var(--text); font-variant-numeric: tabular-nums; }
.kpi-num { transition: color .4s; }
.kpi-num.tick { color: var(--success); }
.bars { position: relative; display: flex; align-items: flex-end; gap: calc(7 * var(--u)); height: calc(74 * var(--u)); margin-top: calc(12 * var(--u)); }
.bars i {
  flex: 1; height: var(--h); border-radius: calc(4 * var(--u)) calc(4 * var(--u)) 0 0;
  background: color-mix(in srgb, var(--brand-c) 45%, var(--surface));
  transform-origin: bottom; animation: grow .9s cubic-bezier(.16, 1, .3, 1) .6s both;
  transition: height .7s cubic-bezier(.16, 1, .3, 1);
}
.bars i:nth-child(2) { animation-delay: .66s; } .bars i:nth-child(3) { animation-delay: .72s; }
.bars i:nth-child(4) { animation-delay: .78s; } .bars i:nth-child(5) { animation-delay: .84s; }
.bars i.now { background: var(--accent); animation-delay: .9s; }
.trend-over { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.trend-over polyline {
  fill: none; stroke: var(--brand-o); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: draw 1.6s cubic-bezier(.65, 0, .35, 1) 1.4s forwards;
}

/* conversa no estilo de app de mensagens */
.tile-chat {
  --wa-bg: #efeae2; --wa-out: #d9fdd3; --wa-in: #ffffff; --wa-ink: #111b21; --wa-meta: #667781;
  top: calc(206 / 600 * 100%); padding: 0; overflow: hidden;
}
@media (prefers-color-scheme: dark) {
  .tile-chat { --wa-bg: #0b141a; --wa-out: #005c4b; --wa-in: #202c33; --wa-ink: #e9edef; --wa-meta: #8696a0; }
}
.chat-head { display: flex; align-items: center; gap: calc(10 * var(--u)); padding: calc(9 * var(--u)) calc(12 * var(--u)); border-bottom: 1px solid var(--border); }
.chat-av { flex: none; display: grid; place-items: center; width: calc(32 * var(--u)); height: calc(32 * var(--u)); border-radius: 50%; background: var(--bg-alt); }
.chat-av img { width: calc(22 * var(--u)); height: auto; }
.chat-who b { display: block; font-size: calc(15 * var(--u)); font-weight: 600; color: var(--text); line-height: 1.2; }
.chat-who small { display: block; font-size: calc(14.5 * var(--u)); color: var(--text-muted); line-height: 1.2; }
.chat-body { display: grid; gap: calc(8 * var(--u)); padding: calc(12 * var(--u)); background: var(--wa-bg); }
.msg {
  position: relative; max-width: 88%; margin: 0; padding: calc(7 * var(--u)) calc(10 * var(--u));
  border-radius: calc(9 * var(--u)); font-size: calc(15 * var(--u)); line-height: 1.38; color: var(--wa-ink);
  box-shadow: 0 1px .5px rgba(11, 20, 26, .13);
}
.msg b { font-weight: 650; }
.msg.out { justify-self: end; background: var(--wa-out); border-top-right-radius: calc(2 * var(--u)); }
.msg.in { justify-self: start; background: var(--wa-in); border-top-left-radius: calc(2 * var(--u)); }
.meta { float: right; display: inline-flex; align-items: center; gap: calc(3 * var(--u)); margin: calc(6 * var(--u)) 0 calc(-3 * var(--u)) calc(10 * var(--u)); font-size: calc(14 * var(--u)); color: var(--wa-meta); }
.msg.out .meta { color: color-mix(in srgb, var(--wa-ink) 82%, var(--wa-out)); }
.ticks { width: calc(16 * var(--u)); height: calc(11 * var(--u)); fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.reply { display: grid; }
.reply > * { grid-area: 1 / 1; }
.typing { align-self: start; display: flex; gap: calc(4 * var(--u)); padding: calc(11 * var(--u)) calc(12 * var(--u)); width: max-content; }
.typing i { width: calc(7 * var(--u)); height: calc(7 * var(--u)); border-radius: 50%; background: var(--wa-meta); animation: dot 1s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
/* ciclo de 10s: pergunta, digitando, resposta, pausa */
.msg.out { animation: m-out 10s ease-out 1s infinite both; }
.typing { animation: m-typing 10s 1s infinite both; }
.ans { animation: m-ans 10s ease-out 1s infinite both; }
.ticks { animation: m-read 10s 1s infinite both; }
@keyframes m-out { 0%, 3% { opacity: 0; translate: 0 calc(6 * var(--u)); } 6%, 92% { opacity: 1; translate: 0 0; } 97%, 100% { opacity: 0; } }
@keyframes m-typing { 0%, 12% { opacity: 0; } 14%, 30% { opacity: 1; } 32%, 100% { opacity: 0; } }
@keyframes m-ans { 0%, 31% { opacity: 0; translate: 0 calc(6 * var(--u)); } 34%, 92% { opacity: 1; translate: 0 0; } 97%, 100% { opacity: 0; } }
@keyframes m-read { 0%, 12% { stroke: currentColor; } 14%, 100% { stroke: #53bdeb; } }
@keyframes dot { 0%, 100% { opacity: .35; translate: 0 0; } 50% { opacity: 1; translate: 0 calc(-2 * var(--u)); } }

/* custo de cloud: número grande da redução e linha de tendência */
.tile-cost { top: calc(440 / 600 * 100%); padding: calc(14 * var(--u)) calc(16 * var(--u)); }
.cost-row { display: grid; gap: calc(10 * var(--u)); margin-top: calc(8 * var(--u)); }
.cost-row > div { display: flex; align-items: baseline; justify-content: space-between; gap: calc(10 * var(--u)); }
.cost-big { font-size: calc(36 * var(--u)); font-weight: 650; letter-spacing: -.035em; line-height: 1; color: var(--success); font-variant-numeric: tabular-nums; }
.cost-sub { margin: 0; font-size: calc(14.5 * var(--u)); color: var(--text-muted); white-space: nowrap; }
.cost-sub b { color: var(--text); font-weight: 650; }
.cost-trend { display: block; width: 100%; height: calc(46 * var(--u)); overflow: visible; }
.cost-trend .area { fill: color-mix(in srgb, var(--success) 14%, transparent); animation: fade .8s 2.2s both; }
.cost-trend .line { fill: none; stroke: var(--success); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; animation: draw 1.3s cubic-bezier(.65, 0, .35, 1) 1.6s forwards; }
.cost-trend .end { fill: var(--success); transform-box: fill-box; transform-origin: center; animation: fade .3s 2.8s both, beat 2.4s ease-in-out 3.1s infinite; }

.stage figcaption { margin-top: 18px; font-size: .82rem; color: var(--text-muted); text-align: right; }

/* entrada: fontes, depois o núcleo, depois as respostas */
.src li, .core, .tile { animation: rise .8s cubic-bezier(.16, 1, .3, 1) both; }
.src li:nth-child(2) { animation-delay: .06s; } .src li:nth-child(3) { animation-delay: .12s; } .src li:nth-child(4) { animation-delay: .18s; }
.core { animation-name: rise-core; animation-delay: .3s; }
.tile-kpi { animation-delay: .5s; } .tile-chat { animation-delay: .65s; } .tile-cost { animation-delay: .8s; }
@keyframes rise { from { opacity: 0; translate: 0 calc(10 * var(--u)); } }
@keyframes rise-core { from { opacity: 0; scale: .9; } }
@keyframes grow { from { transform: scaleY(.15); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { from { opacity: 0; } }
@keyframes beat { 0%, 100% { scale: 1; } 50% { scale: 1.5; } }
@keyframes spin { to { rotate: 360deg; } }

/* No celular, só as três respostas, empilhadas e sem o diagrama. */
@media (max-width: 560px) {
  .stage-box { aspect-ratio: auto; display: grid; gap: 12px; }
  .stage-box > * { --u: calc(100cqw / 360); }
  .stage-box::before, .stage-box::after, .stage-wires, .src, .core { display: none; }
  .tile { position: static; width: auto !important; }
  .stage figcaption { text-align: left; }
}

/* Sem animação: tudo no estado final, sem o "digitando". */
@media (prefers-reduced-motion: reduce) {
  .sparks, .typing { display: none; }
  .trend-over polyline, .cost-trend .line { stroke-dashoffset: 0; }
}

/* ---------- seções ---------- */
.home-section { padding: 104px 0; }
.home-section + .home-section { border-top: 1px solid var(--border); }
.home-section h2 { font-size: clamp(1.9rem, 3.3vw, 2.6rem); line-height: 1.1; max-width: 22ch; text-wrap: balance; }
.section-intro { max-width: 58ch; color: var(--text-muted); font-size: 1.08rem; margin-bottom: 0; }
.head-row { display: grid; gap: 20px 56px; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: end; margin-bottom: 56px; }
@media (max-width: 860px) {
  .home-section { padding: 72px 0; }
  .head-row { grid-template-columns: 1fr; margin-bottom: 40px; }
}

/* para quem é */
.fit { display: grid; gap: 56px; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.fit h2 { margin-bottom: 20px; }
.signs { border-top: 1px solid var(--border); }
.signs-label { margin: 0 0 14px; font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.signs li {
  display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: center;
  padding: 16px 0; border-bottom: 1px solid var(--border); font-size: 1.05rem;
}
.sign-ico {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  background: var(--bg-alt); border: 1px solid var(--border); color: var(--text-muted);
}
.sign-ico svg { width: 20px; height: 20px; }
@media (max-width: 860px) { .fit { grid-template-columns: 1fr; gap: 32px; } }

/* serviços: faixa de destaque com abas; cada aba mostra valor + exemplo */
.services-band { background: var(--bg-alt); }
.home-section.services-band + .home-section { border-top: 0; }
.svc-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
.svc-tab {
  display: grid; gap: 4px; align-content: start; text-align: left; width: 100%;
  padding: 18px 20px; border-radius: 12px; border: 1px solid transparent;
  background: transparent; color: var(--text); font: inherit; cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.svc-tab b { font-size: 1.05rem; font-weight: 600; letter-spacing: -.01em; }
.svc-tab span { font-size: .93rem; color: var(--text-muted); }
.svc-tab:hover { background: color-mix(in srgb, var(--surface) 60%, transparent); }
.svc-tab[aria-selected="true"] { background: var(--surface); border-color: var(--border); }
.svc-tab[aria-selected="true"] b { color: var(--accent); }
.svc-panel {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center;
  padding: 40px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border);
}
.svc-panel[hidden] { display: none; }
.svc-panel.is-in { animation: svc-in .45s cubic-bezier(.16, 1, .3, 1); }
@keyframes svc-in { from { opacity: 0; translate: 0 8px; } }
.svc-copy h3 { font-size: 1.55rem; line-height: 1.15; margin: 0 0 14px; text-wrap: balance; }
.svc-copy > p { color: var(--text-muted); margin: 0 0 24px; }
.svc-gain-title { font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 10px !important; }
.svc-gains { display: grid; gap: 10px; }
.svc-gains li { position: relative; padding-left: 28px; font-size: .98rem; }
.svc-gains li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f46e5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* exemplos visuais */
.svc-fig {
  position: relative; margin: 0; padding: 22px; border-radius: 14px;
  background: var(--bg-alt); border: 1px solid var(--border); font-size: .88rem;
}
.svc-fig figcaption { margin-top: 12px; font-size: .78rem; color: var(--text-muted); text-align: right; }
.svc-panel.is-in .svc-fig > * { animation: fig-in .6s cubic-bezier(.16, 1, .3, 1) both; }
.svc-panel.is-in .svc-fig > *:nth-child(2) { animation-delay: .08s; }
.svc-panel.is-in .svc-fig > *:nth-child(3) { animation-delay: .16s; }
@keyframes fig-in { from { opacity: 0; translate: 0 6px; } }

/* 1: arquivos soltos -> tabela */
.fig-unify { display: grid; grid-template-columns: auto 34px 1fr; align-items: center; gap: 12px; }
.fig-unify figcaption { grid-column: 1 / -1; }
.mess { display: grid; gap: 6px; }
.mess span {
  padding: 6px 9px; border-radius: 7px; background: var(--surface); border: 1px dashed var(--border);
  font-size: .78rem; color: var(--text-muted); white-space: nowrap;
}
.mess span:nth-child(1) { rotate: -2deg; } .mess span:nth-child(3) { rotate: 1.5deg; translate: 6px 0; }
.arrow { width: 34px; height: 16px; fill: none; stroke: var(--brand-c); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mini-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; font-variant-numeric: tabular-nums; }
.mini-table th, .mini-table td { padding: 7px 9px; text-align: left; font-size: .8rem; border-bottom: 1px solid var(--border); white-space: nowrap; }
.mini-table th { font-weight: 600; color: var(--text-muted); background: var(--bg-alt); }
.mini-table tr:last-child td { border-bottom: 0; }
.mini-table i { font-style: normal; font-size: .75rem; padding: 2px 7px; border-radius: 999px; background: var(--bg-alt); color: var(--text-muted); }
.mini-table i.ok { background: color-mix(in srgb, var(--success) 14%, var(--surface)); color: var(--success); }

/* 2: painel */
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.kpis div { padding: 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); display: grid; gap: 2px; }
.kpis span { font-size: .78rem; color: var(--text-muted); }
.kpis b { font-size: 1.05rem; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kpis em { font-style: normal; font-size: .76rem; font-weight: 600; }
.kpis .up { color: var(--success); }
.kpis .warn { color: #b45309; }
@media (prefers-color-scheme: dark) { .kpis .warn { color: #fbbf24; } }
.line-chart { position: relative; margin-top: 12px; padding: 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); }
.line-chart svg { display: block; width: 100%; height: 110px; overflow: visible; }
.line-chart .goal { fill: none; stroke: var(--text-muted); stroke-width: 1; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.line-chart .area { fill: color-mix(in srgb, var(--brand-c) 16%, transparent); }
.line-chart .line { fill: none; stroke: var(--accent); stroke-width: 2.2; vector-effect: non-scaling-stroke; stroke-dasharray: 2000; stroke-dashoffset: 0; }
.svc-panel.is-in .line-chart .line { animation: chart-draw 1.2s cubic-bezier(.65, 0, .35, 1) .2s both; }
@keyframes chart-draw { from { stroke-dashoffset: 2000; } }
.goal-label { position: absolute; right: 14px; top: 10px; font-size: .75rem; color: var(--text-muted); }

/* 3: custo antes/depois */
.cost-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 12px; font-size: .8rem; color: var(--text-muted); }
.legend { display: inline-flex; align-items: center; gap: 6px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.legend i.a { margin-left: 8px; }
.legend .b, .cost-bars i.b { background: color-mix(in srgb, var(--text-muted) 30%, var(--surface)); }
.legend .a, .cost-bars i.a { background: var(--accent); }
.cost-bars { display: grid; gap: 12px; }
.cost-bars li { display: grid; grid-template-columns: 118px 1fr; align-items: center; gap: 12px; font-size: .82rem; }
.cost-bars div { position: relative; display: grid; gap: 4px; }
.cost-bars i { display: block; height: 9px; width: var(--w); border-radius: 0 5px 5px 0; transform-origin: left; }
.svc-panel.is-in .cost-bars i { animation: bar-in .8s cubic-bezier(.16, 1, .3, 1) both; }
.svc-panel.is-in .cost-bars i.a { animation-delay: .35s; }
@keyframes bar-in { from { transform: scaleX(0); } }
.cost-bars em { position: absolute; left: 0; bottom: -3px; font-style: normal; font-size: .74rem; font-weight: 600; color: var(--success); }
.cost-total { display: flex; align-items: baseline; gap: 10px; margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--border); }
.cost-total span { color: var(--text-muted); margin-right: auto; font-size: .82rem; }
.cost-total s { color: var(--text-muted); font-size: .9rem; }
.cost-total b { font-size: 1.15rem; font-weight: 650; letter-spacing: -.02em; }

/* 4: pergunta à IA */
.ask-box {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border); font-size: .92rem; font-weight: 500;
}
.ask-box svg { flex: none; width: 18px; height: 18px; fill: var(--brand-o); }
.answer { margin-top: 12px; padding: 14px; border-radius: 12px; background: var(--accent-soft); }
.answer p { margin: 0 0 12px; font-size: .9rem; }
.region-bars { display: grid; gap: 8px; }
.region-bars li { display: grid; grid-template-columns: 72px 1fr 40px; align-items: center; gap: 10px; font-size: .8rem; }
.region-bars i { display: block; height: 8px; width: var(--w); border-radius: 4px; background: var(--brand-c); transform-origin: left; }
.region-bars li:first-child i { background: var(--accent); }
.region-bars b { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.svc-panel.is-in .region-bars i { animation: bar-in .8s cubic-bezier(.16, 1, .3, 1) .3s both; }

@media (max-width: 1080px) {
  .svc-panel { grid-template-columns: 1fr; gap: 32px; }
  .svc-tabs { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); overflow-x: auto; scrollbar-width: none; }
  .svc-tabs::-webkit-scrollbar { display: none; }
  .svc-tab[aria-selected="true"] { box-shadow: inset 0 -3px 0 var(--accent); }
}
@media (max-width: 760px) {
  .svc-panel { grid-template-columns: 1fr; padding: 22px; gap: 28px; }
  .svc-tab span { display: none; }
  .svc-tabs { grid-auto-columns: max-content; }
  .svc-tab { padding: 12px 16px; }
  .fig-unify { grid-template-columns: 1fr; }
  .fig-unify .arrow { rotate: 90deg; justify-self: center; }
  .mess { grid-template-columns: 1fr 1fr; }
  .mess span { white-space: normal; }
}

/* como contratar */
.track { display: grid; gap: 24px; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: stretch; }
.track-label { display: block; margin-bottom: 14px; font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.track h3 { font-size: 1.15rem; margin: 0 0 8px; }
.track p { margin: 0; color: var(--text-muted); }
.track-first { padding: 30px; border: 1.5px solid var(--text); border-radius: 16px; background: var(--surface); }
.track-then { padding: 30px; border: 1px solid var(--border); border-radius: 16px; background: var(--bg-alt); }
.track-options { display: grid; gap: 28px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.track-options > div + div { border-left: 1px solid var(--border); padding-left: 28px; }
@media (max-width: 860px) {
  .track, .track-options { grid-template-columns: 1fr; }
  .track-options > div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--border); padding-top: 22px; }
  .track-first, .track-then { padding: 24px; }
}

/* sócios */
.people { background: var(--ink); color: var(--on-ink); border-top: 0 !important; }
.people h2 { color: var(--on-ink); }
.people .section-intro { color: var(--on-ink-muted); }
.people-grid { display: grid; gap: 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.person {
  position: relative; padding: 32px; border-radius: 16px;
  background: color-mix(in srgb, #ffffff 4%, var(--ink));
  border: 1px solid color-mix(in srgb, #ffffff 12%, var(--ink));
}
.person-head { display: flex; gap: 22px; align-items: center; margin-bottom: 24px; padding-right: 48px; }
.avatar {
  flex: none; width: 88px; height: 88px; border-radius: 50%; object-fit: cover;
  background: color-mix(in srgb, #ffffff 6%, var(--ink));
  box-shadow: 0 0 0 4px color-mix(in srgb, #ffffff 4%, var(--ink)), 0 0 0 5.5px var(--brand-o);
}
.person h3 { font-size: 1.3rem; margin: 0 0 2px; color: var(--on-ink); }
.person .role { margin: 0; color: var(--on-ink-muted); font-size: .95rem; }
.person ul { display: grid; gap: 12px; }
.person li { padding-left: 18px; position: relative; color: var(--on-ink-muted); }
.person li strong { color: var(--on-ink); font-weight: 600; }
.person li::before { content: ""; position: absolute; left: 0; top: .72em; width: 7px; height: 1.5px; background: var(--brand-c); }
.person-in {
  position: absolute; top: 20px; right: 20px;
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  color: var(--on-ink-muted); border: 1px solid color-mix(in srgb, #ffffff 14%, var(--ink));
  transition: color .15s, border-color .15s, background-color .15s;
}
.person-in svg { width: 18px; height: 18px; fill: currentColor; }
.person-in:hover { color: var(--on-ink); border-color: color-mix(in srgb, #ffffff 35%, var(--ink)); background: color-mix(in srgb, #ffffff 6%, var(--ink)); }
.people :focus-visible { outline-color: var(--brand-c); }
@media (max-width: 860px) { .people-grid { grid-template-columns: 1fr; } .person { padding: 26px; } }
@media (max-width: 560px) { .avatar { width: 64px; height: 64px; } .person-head { gap: 16px; } .person-in { top: 16px; right: 16px; } }

/* faq */
.faq-wrap { display: grid; gap: 40px 56px; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.faq-wrap .faq-item:first-of-type { margin-top: 0; }
.faq-item summary { font-size: 1.05rem; }
@media (max-width: 860px) { .faq-wrap { grid-template-columns: 1fr; } }

/* contato */
.contact-wrap { display: grid; gap: 48px 72px; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; }
.next { margin-top: 32px; display: grid; gap: 18px; counter-reset: n; }
.next li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; color: var(--text-muted); counter-increment: n; }
.next li::before {
  content: counter(n); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--border); font-size: .8rem; font-weight: 600; color: var(--text);
}
.next strong { color: var(--text); font-weight: 600; }
.alt-mail { margin-top: 28px; font-size: .95rem; color: var(--text-muted); }
.contact-panel { padding: 32px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.contact-panel .contact { max-width: none; margin: 0; }
.contact-panel .form-actions { justify-content: flex-start; }
.contact-panel .fineprint { margin: 0; }
.contact-panel .btn-primary { width: 100%; padding-block: 14px; }
@media (max-width: 860px) {
  .contact-wrap { grid-template-columns: 1fr; }
  .contact-panel { padding: 22px; }
}

/* footer */
.home-footer { padding: 56px 0 40px; border-top: 1px solid var(--border); }
.home-footer .footer-inner { align-items: flex-start; }
.home-footer .brand { margin-bottom: 8px; }
.home-footer .tagline { color: var(--text-muted); margin: 0; max-width: 36ch; }
.home-footer .copy { margin-top: 32px; font-size: .85rem; color: var(--text-muted); }

@media (prefers-reduced-motion: reduce) {
}


@media (max-width: 560px) {
  .site-header .btn-sm { padding: 7px 12px; font-size: .85rem; }
  .home-hero .hero-actions .btn { width: 100%; }
}
