* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--vg-bg);
  color: var(--vg-fg);
  font-family: var(--vg-font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}
body { font-size: 15px; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }

/* ─── layout primitives ──────────────────────────────────────── */
.shell { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) { .shell { padding: 0 20px; } }

.section { padding: 96px 0; }

/* ─── pricing grid: 4 cols → 2x2 → 1col ────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: stretch;
}
@media (max-width: 1100px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 600px) {
  .pricing-grid { grid-template-columns: 1fr; gap: 16px; }
}
.section--tight { padding: 72px 0; }
.section--dark { background: var(--vg-petrol-700); color: var(--vg-fg-on-petrol); }
.section--off { background: var(--vg-offwhite); }
.section--white { background: #fff; border-top: 1px solid var(--vg-slate-200); border-bottom: 1px solid var(--vg-slate-200); }

/* ─── eyebrow ───────────────────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--vg-coral-600);
}
.eyebrow::before {
  content: ""; width: 18px; height: 1.5px; background: var(--vg-coral-500);
  display: inline-block; border-radius: 2px;
}
.eyebrow--on-dark { color: var(--vg-coral-300); }
.eyebrow--on-dark::before { background: var(--vg-coral-300); }
.eyebrow--muted { color: var(--vg-slate-500); }
.eyebrow--muted::before { background: var(--vg-slate-300); }

/* ─── headings ──────────────────────────────────────────────── */
h1, h2, h3, h4 { margin: 0; color: var(--vg-petrol-700); }
.display {
  font-family: var(--vg-font-display);
  font-weight: 700;
  font-size: clamp(40px, 5.5vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: pretty;
}
.h2 {
  font-family: var(--vg-font-display);
  font-weight: 700;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.022em;
  text-wrap: pretty;
}
.h3 {
  font-family: var(--vg-font-mid);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--vg-slate-600);
  max-width: 60ch;
  text-wrap: pretty;
}
.lead--on-dark { color: rgba(255,255,255,0.78); }

/* ─── buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px;
  border-radius: var(--vg-radius-lg);
  font-size: 14px; font-weight: 600;
  border: 1px solid transparent;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--vg-coral-500); color: #fff; box-shadow: 0 1px 0 rgba(196,50,50,0.18); }
.btn--primary:hover { background: var(--vg-coral-600); }
.btn--ghost { background: transparent; color: var(--vg-petrol-700); border-color: var(--vg-slate-300); }
.btn--ghost:hover { background: var(--vg-slate-50); border-color: var(--vg-slate-400); }
.btn--ghost-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,0.28); }
.btn--ghost-dark:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.5); }
.btn--lg { padding: 14px 24px; font-size: 15px; }
.btn--sm { padding: 8px 14px; font-size: 13px; }

/* ─── topbar ─────────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(249,249,249,0.78);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid rgba(226,232,240,0.6);
}
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.topbar__logo { display: flex; align-items: center; gap: 10px; }
.topbar__logo img { height: 30px; width: auto; }
.topbar__nav { display: flex; align-items: center; gap: 22px; }
.topbar__nav a {
  font-size: 14px; color: var(--vg-slate-700); font-weight: 500;
  transition: color 120ms;
  white-space: nowrap; flex-shrink: 0;
}
.topbar__nav a:hover { color: var(--vg-petrol-700); }
.topbar__cta { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
@media (max-width: 1080px) {
  .topbar__nav { gap: 16px; }
}
@media (max-width: 880px) {
  .topbar__nav { display: none; }
}
/* Variante escura da topbar — HOJE SEM CONSUMIDOR. Desde 2026-07-31 as quatro
   páginas usam a topbar clara (decisão do PO), com o logo em coral + petrol.
   Fica mantida por ser uma variante pronta que a home já usou; enquanto ninguém
   a aplica o valor do fundo é indiferente, então voltou ao petrol-600 original.
   ⚠️ Se voltar a ser usada, conserte ANTES o link da página corrente: as páginas
   internas o marcam com style INLINE color:petrol-700, que sobre fundo escuro dá
   ~1.06:1 e simplesmente desaparece — e inline vence a regra abaixo por
   especificidade, então mudar o CSS daqui não resolve. */
.topbar--dark { background: var(--vg-petrol-600); border-bottom-color: rgba(255,255,255,0.10); backdrop-filter: none; -webkit-backdrop-filter: none; }
.topbar--dark .topbar__nav a { color: rgba(255,255,255,0.75); }
.topbar--dark .topbar__nav a:hover { color: #fff; }
/* Hero no mesmo tom das seções de conteúdo (CopilotSection).
   ⚠️ O sidebar do print do produto É petrol-700, igual a este fundo: o que
   impede a figura de derreter é o passe-partout branco de .v3-hero-mock
   (index.html). Os dois andam juntos — tirou a moldura, devolva o hero ao 800. */
.section--hero-dark { background: var(--vg-petrol-700); }

/* ─── badge / pill ───────────────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 500;
  background: var(--vg-slate-100); color: var(--vg-slate-700);
  border: 1px solid var(--vg-slate-200);
}
.pill--ai {
  background: linear-gradient(180deg, #fff5f5, #ffeded);
  color: var(--vg-coral-700); border-color: #ffd7d7;
}
.pill--ai svg { color: var(--vg-coral-500); }
.pill--on-dark { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.16); }
.pill--coral-on-dark {
  background: rgba(255, 107, 107, 0.14);
  color: var(--vg-coral-300);
  border-color: rgba(255, 107, 107, 0.30);
}

/* ─── card ───────────────────────────────────────────────────── */
.card {
  background: #fff;
  border: 1px solid var(--vg-slate-200);
  border-radius: var(--vg-radius-xl);
  box-shadow: var(--vg-shadow-sm);
}
.card--hover { transition: border-color 150ms, box-shadow 150ms, transform 150ms; }
.card--hover:hover { border-color: var(--vg-slate-300); box-shadow: var(--vg-shadow-md); }

/* ─── footer ─────────────────────────────────────────────────── */
.footer { background: var(--vg-petrol-800); color: rgba(255,255,255,0.75); padding: 64px 0 32px; }
.footer a { color: rgba(255,255,255,0.75); transition: color 150ms; }
.footer a:hover { color: #fff; }

/* ─── decorative constellation ───────────────────────────────── */
.constellation {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
}

/* ─── utility ────────────────────────────────────────────────── */
.muted { color: var(--vg-slate-500); }
.mono { font-family: var(--vg-font-mono); }
.kbd {
  font-family: var(--vg-font-mono); font-size: 11px;
  padding: 2px 6px; border-radius: 4px;
  border: 1px solid var(--vg-slate-200); background: #fff;
  color: var(--vg-slate-600);
}
.dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.dot--coral { background: var(--vg-coral-500); }
.dot--green { background: var(--vg-success); }
.dot--amber { background: var(--vg-warning); }
.dot--red { background: var(--vg-danger); }

/* ─── animation ──────────────────────────────────────────────── */
@keyframes vgFadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.fade-in { animation: vgFadeUp 320ms ease-out both; }

@keyframes vgPulseDot { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.pulse-dot { animation: vgPulseDot 1.4s ease-in-out infinite; }

@keyframes vgShimmer { 0% { background-position: -100% 0; } 100% { background-position: 200% 0; } }

/* ─── focus ──────────────────────────────────────────────────── */
:focus-visible { outline: 2px solid var(--vg-coral-500); outline-offset: 2px; }

/* ─── mobile optimization ────────────────────────────────────── */
@media (max-width: 760px) {
  .section { padding: 60px 0; }
  .section--tight { padding: 48px 0; }
  body { font-size: 15px; }

  /* two-column sections stack */
  .hero-grid,
  .two-col { grid-template-columns: 1fr !important; gap: 32px !important; }

  /* hero: ensure CTAs and text read first; mock follows */
  .hero-grid > :nth-child(2) { order: 2; }

  /* footer 4-col → 2-col */
  .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 28px 20px !important; }

  /* comparison table scrolls horizontally as one unit */
  .cmp-card { overflow-x: auto !important; -webkit-overflow-scrolling: touch; }
  .cmp-card > div { min-width: 540px; }

  /* lead text a touch tighter */
  .lead { font-size: 16px; }

  /* keep tap targets comfortable */
  .btn { padding: 13px 20px; }
  .btn--lg { padding: 14px 22px; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr !important; }
  /* trim the secondary topbar action so the primary CTA fits */
  .topbar__cta .btn--ghost, .topbar__cta .btn--ghost-dark { display: none !important; }
  /* full-width primary CTAs in the hero */
  .hero-grid .btn--lg { flex: 1 1 auto; }
}

/* ─── mobile hamburger (progressive enhancement via assets/nav-mobile.js) ─── */
.topbar__burger { display: none; }
@media (max-width: 880px) {
  .topbar__burger {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 40px; padding: 0 11px; margin-left: 10px; flex-shrink: 0;
    background: transparent; border: 1px solid var(--vg-slate-200, #e2e8f0); border-radius: 10px; cursor: pointer;
  }
  .topbar__burger span {
    display: block; width: 100%; height: 2px; border-radius: 2px;
    background: var(--vg-petrol-700, #0A3D4D); transition: transform .22s ease, opacity .22s ease;
  }
  .topbar.topbar--open .topbar__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .topbar.topbar--open .topbar__burger span:nth-child(2) { opacity: 0; }
  .topbar.topbar--open .topbar__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .topbar.topbar--open .topbar__nav {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-top: 1px solid var(--vg-slate-200, #e2e8f0);
    border-bottom: 1px solid var(--vg-slate-200, #e2e8f0);
    box-shadow: var(--vg-shadow-lg, 0 12px 32px rgba(2,20,26,0.12)); padding: 6px 0;
  }
  .topbar.topbar--open .topbar__nav a { padding: 13px 24px; font-size: 15px; width: 100%; }
  .topbar.topbar--open .topbar__nav a:hover { background: var(--vg-slate-50, #f8fafc); }
  .topbar--dark .topbar__burger { border-color: rgba(255,255,255,0.22); }
  .topbar--dark .topbar__burger span { background: #fff; }
  .topbar--dark.topbar--open .topbar__nav { background: var(--vg-petrol-800); border-top-color: rgba(255,255,255,0.10); border-bottom-color: rgba(255,255,255,0.10); }
  .topbar--dark.topbar--open .topbar__nav a:hover { background: rgba(255,255,255,0.06); }
}
@media (max-width: 880px) {
  /* burger shown → hide the secondary "Entrar" ghost so the header row doesn't overflow */
  .topbar__cta .btn--ghost, .topbar__cta .btn--ghost-dark { display: none !important; }
}
/* ─── footer: brand full-width + grupos de links em 2 colunas no mobile ─── */
@media (max-width: 880px) {
  .footer .shell { grid-template-columns: 1fr 1fr !important; column-gap: 24px !important; row-gap: 28px !important; }
  .footer .shell > div:first-child { grid-column: 1 / -1; }
}