/* =========================================================================
   Nexo Software — estilos do site institucional.
   As cores principais vêm de js/config.js (theme). Os demais tokens ficam aqui.
   ========================================================================= */
:root {
  --brand: #2563eb;
  --brand-2: #1d4ed8;
  --accent: #22c55e;
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-2: #f1f4f9;
  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #64748b;
  --border: rgba(15, 23, 42, .10);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow-md: 0 18px 40px -18px rgba(15, 23, 42, .22);
  --shadow-lg: 0 40px 100px -40px rgba(15, 23, 42, .40);
  --radius: 18px;
  --container: 1160px;
  --header-h: 72px;
  --font-heading: 'Manrope', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

[data-theme="dark"] {
  --bg: #0b1120;
  --surface: #111827;
  --surface-2: #0f172a;
  --ink: #e5e7eb;
  --ink-soft: #cbd5e1;
  --muted: #94a3b8;
  --border: rgba(148, 163, 184, .16);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .40);
  --shadow-md: 0 18px 40px -18px rgba(0, 0, 0, .70);
  --shadow-lg: 0 40px 100px -40px rgba(0, 0, 0, .90);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1em; }
h1, h2, h3 {
  font-family: var(--font-heading);
  line-height: 1.12;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
}
.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}
section {
  /* Compensa o espaço interno da seção para o título parar logo abaixo
     do menu fixo (não no início do padding). */
  scroll-margin-top: calc(var(--header-h) + 18px - clamp(56px, 9vw, 110px));
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand) 35%, transparent);
  outline-offset: 2px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--surface);
  color: var(--ink);
  padding: .8rem 1rem;
  z-index: 200;
  border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }
.noscript { padding: 2rem; font-family: var(--font-body); }

/* ------------------------------------------------------------- botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.3rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  box-shadow: 0 14px 28px -14px rgba(37, 99, 235, .65);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 36px -16px rgba(37, 99, 235, .75); }
.btn-ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--ink);
}
.btn-ghost:hover { border-color: color-mix(in srgb, var(--brand) 35%, var(--border)); color: var(--brand); }
.btn-light { background: #fff; color: var(--brand-2); box-shadow: var(--shadow-md); }
.btn-light:hover { transform: translateY(-2px); }
.btn-sm { padding: .6rem 1rem; font-size: .85rem; }

/* ------------------------------------------------------------ cabeçalho */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: .7rem; }
.brand-logo { width: 42px; height: 42px; object-fit: contain; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -.03em;
  box-shadow: 0 10px 20px -12px rgba(37, 99, 235, .8);
}
.brand-text strong { display: block; font-family: var(--font-heading); font-size: 1.05rem; line-height: 1.1; }
.brand-text small { display: block; color: var(--muted); font-size: .74rem; letter-spacing: .03em; }

.main-nav { display: flex; align-items: center; gap: .2rem; }
.nav-link {
  padding: .5rem .7rem;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: .9rem;
  font-weight: 500;
  transition: background .2s ease, color .2s ease;
}
.nav-link:hover { background: var(--surface-2); color: var(--ink); }
.nav-link.active {
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 10%, transparent);
}
.nav-cta { margin-left: .5rem; }

.header-actions { display: flex; align-items: center; gap: .5rem; }
.icon-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, transform .2s ease;
}
.icon-btn:hover { color: var(--brand); border-color: color-mix(in srgb, var(--brand) 30%, var(--border)); }
.icon-btn svg { width: 20px; height: 20px; }
.menu-btn { display: none; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; padding: clamp(56px, 8vw, 104px) 0 40px; overflow: hidden; }
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 520px at 88% -10%, color-mix(in srgb, var(--brand) 20%, transparent), transparent 70%),
    radial-gradient(720px 520px at -8% 12%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    linear-gradient(180deg, var(--bg), var(--bg));
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 46px 46px;
  opacity: .45;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 35%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 0%, #000 35%, transparent 75%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 10%, transparent);
  padding: .45rem .8rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}
.hero h1 { font-size: clamp(2.25rem, 5.2vw, 3.8rem); font-weight: 800; }
.text-gradient {
  background: linear-gradient(135deg, var(--brand), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-subtitle { font-size: clamp(1rem, 1.6vw, 1.16rem); color: var(--ink-soft); max-width: 60ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.7rem 0 1rem; }
.hero-note { color: var(--muted); font-size: .9rem; margin: 0; }

.hero-panel { position: relative; }
.hero-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 6px);
  padding: 1.4rem;
  box-shadow: var(--shadow-lg);
  transform: rotate(1.2deg);
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--brand) 55%, transparent),
    transparent 55%,
    color-mix(in srgb, var(--accent) 45%, transparent));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.hero-card-head { display: flex; gap: .4rem; margin-bottom: 1rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border); }
.dot:nth-child(1) { background: color-mix(in srgb, var(--brand) 55%, var(--surface)); }
.dot:nth-child(2) { background: color-mix(in srgb, var(--accent) 55%, var(--surface)); }
.hero-card-title { font-family: var(--font-heading); font-weight: 700; margin-bottom: .9rem; }
.hero-list { display: grid; gap: .7rem; }
.hero-list li { display: flex; gap: .6rem; align-items: flex-start; font-size: .92rem; color: var(--ink-soft); }
.hero-list svg { flex: 0 0 auto; width: 18px; height: 18px; color: var(--accent); margin-top: .18rem; }
.hero-card-foot {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border);
  color: var(--muted);
  font-size: .82rem;
}
.hero-card-foot svg { width: 18px; height: 18px; color: var(--brand); }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: clamp(2rem, 5vw, 3.5rem);
}
.stat { background: var(--surface); padding: 1.2rem; display: flex; flex-direction: column; gap: .2rem; text-align: center; }
.stat-value { font-family: var(--font-heading); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; color: var(--brand); line-height: 1.1; }
.stat-label { font-size: .8rem; color: var(--muted); }

/* ------------------------------------------------------------- seções */
.section { padding: clamp(56px, 9vw, 110px) 0; }
.section-alt { background: var(--surface-2); }
.section-head { max-width: 760px; margin: 0 auto clamp(2rem, 4vw, 3rem); text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; }
.section-subtitle { color: var(--muted); font-size: 1.02rem; margin-bottom: 0; }
.about-content .section-head,
.faq-intro .section-head { text-align: left; margin: 0 0 1.2rem; max-width: none; }

.grid { display: grid; gap: 1.1rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--brand) 25%, var(--border));
}

/* ----------------------------------------------------------- serviços */
.service-card h3 { font-size: 1.14rem; margin: .9rem 0 .5rem; }
.service-card p { color: var(--muted); font-size: .92rem; }
.icon-badge {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--brand) 10%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--brand) 20%, transparent);
  color: var(--brand);
}
.icon-badge svg { width: 26px; height: 26px; }
.icon-badge.small { width: 44px; height: 44px; border-radius: 12px; }
.icon-badge.small svg { width: 22px; height: 22px; }
.check-list { display: grid; gap: .45rem; margin-top: 1rem; }
.check-list li { display: flex; gap: .5rem; align-items: flex-start; font-size: .88rem; color: var(--ink-soft); }
.check-list svg { flex: 0 0 auto; width: 16px; height: 16px; color: var(--accent); margin-top: .2rem; }
.check-list-lg li { font-size: .98rem; }

/* --------------------------------------------------------------- sobre */
.about-grid {
  display: grid;
  grid-template-columns: 1.22fr .78fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.about-content p { color: var(--ink-soft); }
.about-card {
  position: relative;
  overflow: hidden;
  padding: 2rem;
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(155deg, var(--brand), var(--brand-2));
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.about-card::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  right: -80px;
  top: -80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .13);
}
.about-value { font-family: var(--font-heading); font-size: clamp(3rem, 6vw, 4.6rem); font-weight: 800; line-height: 1; }
.about-label { font-weight: 600; margin: .4rem 0 1rem; }
.about-note { color: rgba(255, 255, 255, .84); font-size: .9rem; position: relative; margin: 0; }

/* ------------------------------------------------------------- processo */
.process {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  list-style: none;
  padding: 0;
}
.process::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  opacity: .25;
}
.process-step { position: relative; }
.step-number {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid color-mix(in srgb, var(--brand) 40%, var(--border));
  color: var(--brand);
  font-family: var(--font-heading);
  font-weight: 800;
}
.process-step h3 { font-size: 1.02rem; margin-bottom: .35rem; }
.process-step p { color: var(--muted); font-size: .88rem; margin: 0; }

/* --------------------------------------------------------- diferenciais */
.mini-card h3 { font-size: 1.02rem; margin: .8rem 0 .4rem; }
.mini-card p { color: var(--muted); font-size: .9rem; margin: 0; }

/* ------------------------------------------------------ cases/quotes */
.tag {
  display: inline-block;
  margin-bottom: .8rem;
  padding: .3rem .6rem;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 10%, transparent);
}
.case-card h3 { font-size: 1.08rem; }
.case-card p { color: var(--muted); font-size: .92rem; margin: 0; }
.quote-card { display: flex; flex-direction: column; gap: 1rem; }
.quote-mark { font-family: var(--font-heading); font-size: 3rem; line-height: .5; color: var(--brand); opacity: .5; }
.quote-card blockquote { margin: 0; font-size: 1.02rem; color: var(--ink-soft); }
.quote-card figcaption { display: flex; flex-direction: column; font-size: .85rem; }
.quote-card figcaption span { color: var(--muted); }

/* ----------------------------------------------------------------- faq */
.faq-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.faq-intro { position: sticky; top: calc(var(--header-h) + 24px); }
.faq-list { display: grid; gap: .7rem; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0 1.1rem;
  overflow: hidden;
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-chevron { width: 18px; height: 18px; color: var(--muted); transition: transform .2s ease; }
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-item p { color: var(--muted); font-size: .92rem; padding-bottom: 1rem; margin: 0; }

/* ----------------------------------------------------------------- cta */
.cta-band { padding: clamp(1rem, 4vw, 2rem) 0 clamp(2rem, 5vw, 3.5rem); }
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(1.8rem, 4vw, 3rem);
  border-radius: calc(var(--radius) + 8px);
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.cta-inner h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: .3rem; }
.cta-inner p { color: rgba(255, 255, 255, .86); margin: 0; }

/* -------------------------------------------------------------- contato */
.contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact-list { display: grid; gap: 1rem; margin: 0; }
.contact-list li { display: flex; gap: .8rem; align-items: flex-start; }
.contact-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--brand);
}
.contact-icon svg { width: 20px; height: 20px; }
.contact-text { display: flex; flex-direction: column; font-size: .95rem; }
.contact-text small {
  color: var(--muted);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.contact-text a:hover { color: var(--brand); }
.socials { display: flex; gap: .6rem; margin-top: 1.5rem; }
.social-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink-soft);
  transition: color .2s ease, border-color .2s ease, transform .2s ease;
}
.social-btn:hover { color: var(--brand); border-color: color-mix(in srgb, var(--brand) 30%, var(--border)); transform: translateY(-2px); }
.contact-form { display: grid; gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field label { font-size: .8rem; font-weight: 600; color: var(--ink-soft); }
.field input, .field textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink);
  border-radius: 12px;
  padding: .8rem .9rem;
  font: inherit;
  font-size: .92rem;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-status { min-height: 1.2em; font-size: .85rem; color: var(--muted); margin: 0; }
.form-status.ok { color: var(--accent); }
.form-status.error { color: #dc2626; }

/* --------------------------------------------------------------- rodapé */
.site-footer {
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  padding: clamp(2rem, 5vw, 3rem) 0 1rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr auto;
  gap: 2rem;
  align-items: start;
}
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; }
.footer-brand strong { font-family: var(--font-heading); }
.footer-brand p { color: var(--muted); font-size: .9rem; max-width: 34ch; margin: 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: .6rem 1rem; }
.footer-nav a { color: var(--ink-soft); font-size: .9rem; }
.footer-nav a:hover { color: var(--brand); }
.footer-social { display: flex; gap: .5rem; }
.footer-social a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink-soft);
}
.footer-social a:hover { color: var(--brand); }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: .8rem;
}

/* ----------------------------------------------------------- flutuantes */
.float-btn {
  position: fixed;
  right: 18px;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid transparent;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  z-index: 40;
  transition: transform .2s ease, opacity .2s ease;
}
.float-btn svg { width: 24px; height: 24px; }
.whatsapp { bottom: 18px; background: #25d366; color: #fff; }
.whatsapp:hover { transform: scale(1.06); }
.back-to-top {
  bottom: 82px;
  background: var(--surface);
  border-color: var(--border);
  color: var(--ink);
  opacity: 0;
  pointer-events: none;
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { transform: translateY(-2px); color: var(--brand); }

/* -------------------------------------------------------------- animação */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ------------------------------------------------------------ responsivo */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-panel { max-width: 520px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .process::before { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .about-card { max-width: 440px; }
  .contact-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .faq-intro { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 980px) {
  .menu-btn { display: grid; }
  .main-nav {
    position: fixed;
    top: calc(var(--header-h) + 8px);
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: .2rem;
    padding: 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
    max-height: calc(100vh - var(--header-h) - 32px);
    overflow: auto;
  }
  body.nav-open .main-nav { opacity: 1; transform: none; pointer-events: auto; }
  body.nav-open { overflow: hidden; }
  .nav-link { padding: .8rem 1rem; border-radius: 12px; }
  .nav-cta { margin: .5rem 0 0; }
}

@media (max-width: 720px) {
  :root { --header-h: 64px; }
  .container { width: calc(100% - 28px); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-card { transform: none; }
  .hero h1 { font-size: clamp(2rem, 9vw, 2.8rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .btn, .float-btn, .social-btn { transition: none; }
}

/* ------------------------------------------------------- privacidade LGPD */
.form-privacy {
  font-size: .82rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}
.form-privacy a { color: var(--brand); text-decoration: underline; }
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .85rem;
  color: var(--ink-soft);
  cursor: pointer;
}
.form-consent input { margin-top: .2rem; accent-color: var(--brand); }
.footer-meta a { color: inherit; text-decoration: underline; }
.footer-meta a:hover { color: var(--brand); }

/* ---------------------------------------------------- pagina de privacidade */
.legal-header { border-bottom: 1px solid var(--border); background: var(--surface); }
.legal-header .container { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 1rem; }
.legal-brand { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-heading); font-weight: 700; color: var(--ink); }
.legal-brand .brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--brand); color: #fff; font-weight: 800; }
.legal-page { padding: clamp(2.5rem, 6vw, 5rem) 0; }
.legal-page .legal-wrap { max-width: 820px; margin: 0 auto; }
.legal-page h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: .4rem; }
.legal-page .legal-updated { color: var(--muted); font-size: .85rem; margin-bottom: 2rem; }
.legal-page h2 { font-size: 1.25rem; margin: 2rem 0 .6rem; }
.legal-page p, .legal-page li { color: var(--ink-soft); line-height: 1.7; }
.legal-page ul { padding-left: 1.2rem; display: grid; gap: .4rem; }
.legal-page a { color: var(--brand); text-decoration: underline; }
.legal-back { display: inline-flex; align-items: center; gap: .4rem; font-size: .9rem; color: var(--brand); }
.legal-footer { border-top: 1px solid var(--border); margin-top: 3rem; padding: 1.5rem 0; color: var(--muted); font-size: .8rem; }
.legal-actions { margin-top: 2rem; }
.legal-doc { --brand: #2b01c1; --brand-2: #2d64fb; --accent: #ffa21f; }
