/* ==========================================================================
   PGIA Tecnologia em Software Ltda. — pgia.com.br
   Folha de estilo principal
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  --ink:            #0b1220;
  --ink-2:          #1a2438;
  --body:           #475569;
  --muted:          #64748b;
  --line:           #e2e8f0;
  --surface:        #ffffff;
  --surface-2:      #f8fafc;
  --surface-3:      #f1f5f9;

  --brand:          #2563eb;
  --brand-600:      #1d4ed8;
  --brand-700:      #1e40af;
  --brand-soft:     #eff6ff;
  --accent:         #7c3aed;
  --accent-soft:    #f5f3ff;
  --teal:           #0d9488;
  --amber:          #d97706;

  --grad:           linear-gradient(120deg, #2563eb 0%, #4f46e5 45%, #7c3aed 100%);
  --grad-soft:      linear-gradient(120deg, #eff6ff 0%, #f5f3ff 100%);

  --radius:         14px;
  --radius-lg:      22px;
  --radius-sm:      9px;

  --shadow-sm:      0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .04);
  --shadow:         0 10px 30px -12px rgba(15, 23, 42, .18), 0 2px 8px rgba(15, 23, 42, .05);
  --shadow-lg:      0 30px 60px -25px rgba(15, 23, 42, .28), 0 8px 20px rgba(15, 23, 42, .06);

  --maxw:           1180px;
  --nav-h:          76px;

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
}

/* --------------------------------------------------------------------------
   2. Reset / base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--body);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--brand); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--brand-700); }

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.18;
  letter-spacing: -.022em;
  margin: 0 0 .6em;
  font-weight: 750;
}
h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); letter-spacing: -.034em; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); letter-spacing: -.028em; }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); }
h4 { font-size: 1.03rem; font-weight: 700; }
p  { margin: 0 0 1.1em; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--brand); color: #fff; }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 999;
  background: var(--ink); color: #fff; padding: 10px 18px;
  border-radius: 0 0 10px 10px; font-weight: 600; transition: top .2s ease;
}
.skip-link:focus { top: 0; color: #fff; }

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

.section { padding: clamp(64px, 9vw, 116px) 0; }
.section--tight { padding: clamp(48px, 6vw, 76px) 0; }
.section--alt  { background: var(--surface-2); }
.section--soft { background: var(--grad-soft); }

.section-head { max-width: 760px; margin: 0 auto clamp(38px, 5vw, 62px); text-align: center; }
.section-head p { font-size: 1.06rem; color: var(--muted); margin: 0; }
.section-head--left { margin-inline: 0; text-align: left; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--brand); background: var(--brand-soft);
  padding: 7px 15px; border-radius: 999px; margin-bottom: 18px;
  border: 1px solid rgba(37, 99, 235, .14);
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand); flex: none;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-size: .97rem; font-weight: 650; line-height: 1;
  padding: 15px 28px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease,
              color .18s ease, border-color .18s ease;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 12px 28px -12px rgba(79, 70, 229, .75); }
.btn--primary:hover { color: #fff; box-shadow: 0 18px 36px -12px rgba(79, 70, 229, .85); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--surface-2); border-color: #cbd5e1; color: var(--ink); }

.btn--light { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .3); backdrop-filter: blur(6px); }
.btn--light:hover { background: rgba(255, 255, 255, .22); color: #fff; }

.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { color: var(--brand-700); box-shadow: var(--shadow); }

.btn--sm { padding: 11px 20px; font-size: .9rem; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 650; font-size: .95rem;
}
.link-arrow svg { width: 15px; height: 15px; transition: transform .18s ease; }
.link-arrow:hover svg { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   5. Navbar
   -------------------------------------------------------------------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.nav.is-stuck { border-bottom-color: var(--line); box-shadow: 0 4px 22px -14px rgba(15, 23, 42, .3); }
.nav .wrap { display: flex; align-items: center; gap: 26px; }

.brand { display: flex; align-items: center; gap: 11px; margin-right: auto; }
.brand__mark { width: 40px; height: 40px; flex: none; }
.brand__txt { display: flex; flex-direction: column; line-height: 1.08; }
.brand__name { font-size: 1.28rem; font-weight: 800; color: var(--ink); letter-spacing: -.03em; }
.brand__tag  {
  font-size: .63rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); white-space: nowrap;
}

.nav__menu { display: flex; align-items: center; gap: 2px; }
.nav__menu > li { position: relative; }
.nav__link {
  display: block; padding: 10px 13px; border-radius: 9px;
  font-size: .93rem; font-weight: 550; color: var(--ink-2);
  white-space: nowrap;
  transition: background .16s ease, color .16s ease;
}
.nav__link:hover, .nav__link[aria-current="page"] { background: var(--surface-3); color: var(--brand-700); }

.nav__menu li:hover > .dropdown,
.nav__menu li:focus-within > .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

.dropdown {
  position: absolute; top: calc(100% + 8px); left: 50%;
  transform: translate(-50%, 8px);
  min-width: 268px; padding: 9px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transition: all .2s ease;
}
.dropdown a {
  display: block; padding: 10px 13px; border-radius: 9px;
  font-size: .92rem; font-weight: 600; color: var(--ink);
}
.dropdown a span { display: block; font-size: .8rem; font-weight: 450; color: var(--muted); margin-top: 2px; }
.dropdown a:hover { background: var(--brand-soft); color: var(--brand-700); }

.nav__cta { display: flex; align-items: center; gap: 10px; }

.nav__toggle {
  display: none; width: 44px; height: 44px; padding: 0;
  background: none; border: 1px solid var(--line); border-radius: 11px;
  cursor: pointer; align-items: center; justify-content: center;
}
.nav__toggle span {
  display: block; width: 19px; height: 2px; border-radius: 2px;
  background: var(--ink); position: relative; transition: background .2s ease;
}
.nav__toggle span::before, .nav__toggle span::after {
  content: ""; position: absolute; left: 0; width: 19px; height: 2px;
  border-radius: 2px; background: var(--ink); transition: transform .22s ease;
}
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after  { top: 6px; }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  padding: calc(var(--nav-h) + clamp(56px, 8vw, 104px)) 0 clamp(64px, 9vw, 110px);
  background: var(--ink);
  color: rgba(255, 255, 255, .78);
}
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto -10%; height: 130%;
  background:
    radial-gradient(58% 52% at 18% 12%, rgba(37, 99, 235, .45) 0%, transparent 62%),
    radial-gradient(52% 48% at 84% 8%, rgba(124, 58, 237, .40) 0%, transparent 60%),
    radial-gradient(46% 44% at 60% 96%, rgba(13, 148, 136, .26) 0%, transparent 64%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(70% 60% at 50% 34%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 34%, #000 0%, transparent 78%);
}
.hero .wrap { position: relative; z-index: 1; }

.hero__grid {
  display: grid; grid-template-columns: 1.06fr .94fr;
  gap: clamp(34px, 5vw, 62px); align-items: center;
}
.hero h1 { color: #fff; margin-bottom: .38em; }
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); max-width: 40ch; margin-bottom: 34px; }
.hero .eyebrow {
  color: #c7d2fe; background: rgba(255, 255, 255, .09);
  border-color: rgba(255, 255, 255, .16);
}
.hero .eyebrow::before { background: #818cf8; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 13px; margin-bottom: 40px; }

.hero__stats {
  display: grid; grid-template-columns: repeat(3, auto); gap: clamp(20px, 4vw, 46px);
  justify-content: start; padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.hero__stats dt { font-size: 1.85rem; font-weight: 800; color: #fff; letter-spacing: -.03em; line-height: 1.1; }
.hero__stats dd { margin: 4px 0 0; font-size: .85rem; color: rgba(255, 255, 255, .6); }

/* Painel mock */
.mock {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 40px 80px -34px rgba(0, 0, 0, .7);
  backdrop-filter: blur(9px);
}
.mock__bar {
  display: flex; align-items: center; gap: 7px;
  padding: 13px 16px; border-bottom: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .04);
}
.mock__dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.mock__dot:nth-child(1) { background: #f87171; }
.mock__dot:nth-child(2) { background: #fbbf24; }
.mock__dot:nth-child(3) { background: #34d399; }
.mock__url {
  margin-left: 10px; font-size: .74rem; color: rgba(255, 255, 255, .45);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}
.mock__body { padding: 22px; display: grid; gap: 16px; }

.kpi-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.kpi {
  padding: 13px; border-radius: 12px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .09);
}
.kpi__label { font-size: .66rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255, 255, 255, .5); }
.kpi__value { font-size: 1.28rem; font-weight: 750; color: #fff; margin-top: 5px; letter-spacing: -.02em; }
.kpi__delta { font-size: .7rem; color: #34d399; margin-top: 2px; }

.chart {
  display: flex; align-items: flex-end; gap: 8px; height: 132px;
  padding: 16px 14px 12px; border-radius: 12px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .09);
}
.chart span {
  flex: 1; border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, #60a5fa 0%, #4f46e5 100%);
  transform-origin: bottom; animation: grow .9s cubic-bezier(.22, 1, .36, 1) backwards;
}
@keyframes grow { from { transform: scaleY(.04); opacity: 0; } to { transform: scaleY(1); opacity: 1; } }

.mock__rows { display: grid; gap: 8px; }
.mock__row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 10px;
  background: rgba(255, 255, 255, .045);
  font-size: .78rem; color: rgba(255, 255, 255, .68);
}
.mock__row i {
  width: 7px; height: 7px; border-radius: 50%; flex: none; background: #34d399;
}
.mock__row i.is-warn { background: #fbbf24; }
.mock__row span { margin-left: auto; color: rgba(255, 255, 255, .38); font-size: .72rem; }

/* --------------------------------------------------------------------------
   7. Faixa de tecnologias
   -------------------------------------------------------------------------- */
.tech-strip { padding: 34px 0; border-bottom: 1px solid var(--line); background: var(--surface); }
.tech-strip p {
  text-align: center; font-size: .77rem; font-weight: 650; letter-spacing: .15em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 20px;
}
.tech-strip ul {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 12px 14px;
}
.tech-strip li {
  padding: 9px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface-2);
  font-size: .87rem; font-weight: 600; color: var(--ink-2);
  transition: border-color .18s ease, color .18s ease, transform .18s ease;
}
.tech-strip li:hover { border-color: var(--brand); color: var(--brand-700); transform: translateY(-2px); }

/* --------------------------------------------------------------------------
   8. Cards
   -------------------------------------------------------------------------- */
.card {
  position: relative; display: flex; flex-direction: column;
  padding: 30px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: #cbd5e1; }
.card h3 { margin-bottom: .45em; }
.card p { font-size: .96rem; color: var(--muted); margin-bottom: 1em; }
.card p:last-child { margin-bottom: 0; }
.card .link-arrow { margin-top: auto; padding-top: 6px; }

.card__icon {
  width: 52px; height: 52px; border-radius: 15px;
  display: grid; place-items: center; margin-bottom: 20px;
  background: var(--brand-soft); color: var(--brand);
}
.card__icon svg { width: 25px; height: 25px; }
.card__icon--violet { background: var(--accent-soft); color: var(--accent); }
.card__icon--teal   { background: #f0fdfa; color: var(--teal); }
.card__icon--amber  { background: #fffbeb; color: var(--amber); }

.card--feature { border-color: transparent; background: var(--surface-2); box-shadow: none; }
.card--feature:hover { background: var(--surface); border-color: var(--line); }

.card--dark {
  background: var(--ink); border-color: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .72);
}
.card--dark h3 { color: #fff; }
.card--dark p  { color: rgba(255, 255, 255, .66); }

/* Card numerado (processo) */
.step { position: relative; padding-left: 62px; }
.step__num {
  position: absolute; left: 0; top: 0;
  width: 44px; height: 44px; border-radius: 13px;
  display: grid; place-items: center;
  background: var(--grad); color: #fff;
  font-weight: 750; font-size: 1rem;
  box-shadow: 0 10px 20px -10px rgba(79, 70, 229, .8);
}
.step h4 { margin-bottom: .35em; font-size: 1.08rem; }
.step p { font-size: .94rem; color: var(--muted); margin: 0; }

/* --------------------------------------------------------------------------
   9. Listas de benefícios / módulos
   -------------------------------------------------------------------------- */
.check-list { display: grid; gap: 13px; }
.check-list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: .96rem; color: var(--body);
}
.check-list li::before {
  content: ""; flex: none; width: 21px; height: 21px; margin-top: 2px;
  border-radius: 50%; background: var(--brand-soft) center / 12px no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}
.check-list--2 { grid-template-columns: repeat(2, 1fr); gap: 13px 30px; }

.module-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: 20px; }
.module {
  position: relative; overflow: hidden;
  padding: 26px 24px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color .22s ease, transform .22s ease, box-shadow .22s ease;
}
/* Halo colorido que acende no hover */
.module::before {
  content: ""; position: absolute; top: -70px; right: -70px;
  width: 170px; height: 170px; border-radius: 50%;
  background: radial-gradient(circle, var(--mod-tint, rgba(37, 99, 235, .16)) 0%, transparent 68%);
  opacity: 0; transition: opacity .3s ease; pointer-events: none;
}
.module:hover { border-color: #cbd5e1; transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.module:hover::before { opacity: 1; }
.module > * { position: relative; z-index: 1; }

.module__ico {
  width: 50px; height: 50px; border-radius: 15px; margin-bottom: 18px;
  display: grid; place-items: center;
  background: var(--mod-bg, var(--brand-soft));
  color: var(--mod-fg, var(--brand));
  transition: transform .22s cubic-bezier(.34, 1.56, .64, 1);
}
.module__ico svg { width: 26px; height: 26px; }
.module:hover .module__ico { transform: scale(1.08) rotate(-4deg); }

.module h4 {
  margin-bottom: .55em; font-size: .93rem;
  text-transform: uppercase; letter-spacing: .05em;
  color: var(--ink);
}
.module p { font-size: .89rem; line-height: 1.65; color: var(--muted); margin: 0; }

/* Paletas por módulo — aplicadas via classe no <article> */
.m-blue   { --mod-bg:#eff6ff; --mod-fg:#2563eb; --mod-tint:rgba(37,99,235,.18); }
.m-violet { --mod-bg:#f5f3ff; --mod-fg:#7c3aed; --mod-tint:rgba(124,58,237,.18); }
.m-teal   { --mod-bg:#f0fdfa; --mod-fg:#0d9488; --mod-tint:rgba(13,148,136,.18); }
.m-amber  { --mod-bg:#fffbeb; --mod-fg:#d97706; --mod-tint:rgba(217,119,6,.18); }
.m-rose   { --mod-bg:#fff1f2; --mod-fg:#e11d48; --mod-tint:rgba(225,29,72,.18); }
.m-cyan   { --mod-bg:#ecfeff; --mod-fg:#0891b2; --mod-tint:rgba(8,145,178,.18); }
.m-green  { --mod-bg:#f0fdf4; --mod-fg:#16a34a; --mod-tint:rgba(22,163,74,.18); }
.m-indigo { --mod-bg:#eef2ff; --mod-fg:#4f46e5; --mod-tint:rgba(79,70,229,.18); }

.pill-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.pill-grid li {
  padding: 9px 17px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: .88rem; font-weight: 550; color: var(--ink-2);
}

/* --------------------------------------------------------------------------
   10. Split (texto + visual)
   -------------------------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(34px, 5vw, 66px); align-items: center; }
.split--reverse .split__media { order: -1; }

.stat-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.stat-tile {
  padding: 26px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.stat-tile dt { font-size: 2.05rem; font-weight: 800; color: var(--ink); letter-spacing: -.035em; line-height: 1.05; }
.stat-tile dd { margin: 7px 0 0; font-size: .89rem; color: var(--muted); line-height: 1.5; }

/* --------------------------------------------------------------------------
   11. CTA
   -------------------------------------------------------------------------- */
.cta {
  position: relative; overflow: hidden;
  border-radius: clamp(20px, 3vw, 30px);
  padding: clamp(44px, 6vw, 72px);
  background: var(--ink); color: rgba(255, 255, 255, .76); text-align: center;
}
.cta::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 90% at 12% 8%, rgba(37, 99, 235, .5) 0%, transparent 62%),
    radial-gradient(60% 90% at 88% 96%, rgba(124, 58, 237, .45) 0%, transparent 62%);
}
.cta > * { position: relative; z-index: 1; }
.cta h2 { color: #fff; max-width: 20ch; margin-inline: auto; }
.cta p { max-width: 56ch; margin-inline: auto; margin-bottom: 30px; font-size: 1.04rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 13px; justify-content: center; }

/* --------------------------------------------------------------------------
   12. Contato
   -------------------------------------------------------------------------- */
.contact { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(32px, 5vw, 60px); }

.contact-info { display: grid; gap: 22px; align-content: start; }
.contact-item { display: flex; gap: 15px; align-items: flex-start; }
.contact-item__ico {
  width: 44px; height: 44px; flex: none; border-radius: 13px;
  display: grid; place-items: center; background: var(--brand-soft); color: var(--brand);
}
.contact-item__ico svg { width: 20px; height: 20px; }
.contact-item h4 { margin: 0 0 3px; font-size: .97rem; }
.contact-item p { margin: 0; font-size: .93rem; color: var(--muted); }

.form {
  padding: clamp(26px, 3.4vw, 38px); border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; margin-bottom: 18px; }
.field label { font-size: .86rem; font-weight: 650; color: var(--ink-2); }
.field label span { color: #dc2626; }
.field input, .field select, .field textarea {
  font: inherit; font-size: .95rem; color: var(--ink);
  padding: 13px 15px; border-radius: 11px;
  border: 1px solid var(--line); background: var(--surface-2);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 128px; }
.field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.4' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 17px;
  padding-right: 42px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; background: #fff;
  border-color: var(--brand); box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}
.field input::placeholder, .field textarea::placeholder { color: #94a3b8; }

.form__note { font-size: .8rem; color: var(--muted); margin: 14px 0 0; text-align: center; }

.form__status {
  display: none; margin-top: 16px; padding: 13px 16px; border-radius: 11px;
  font-size: .9rem; font-weight: 600;
}
.form__status.is-ok   { display: block; background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.form__status.is-err  { display: block; background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

/* --------------------------------------------------------------------------
   13. Rodapé
   -------------------------------------------------------------------------- */
.footer { background: var(--ink); color: rgba(255, 255, 255, .6); padding: clamp(52px, 6vw, 76px) 0 0; }
.footer__grid {
  display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: clamp(28px, 4vw, 52px); padding-bottom: 46px;
}
.footer .brand__name { color: #fff; }
.footer .brand__tag  { color: rgba(255, 255, 255, .45); }
.footer__about { font-size: .92rem; line-height: 1.7; margin: 18px 0 0; max-width: 40ch; }
.footer__addr {
  display: block; margin-top: 16px; padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-style: normal; font-size: .87rem; line-height: 1.75;
  color: rgba(255, 255, 255, .55); max-width: 40ch;
}
.footer h4 {
  color: #fff; font-size: .78rem; letter-spacing: .13em; text-transform: uppercase;
  margin-bottom: 16px;
}
.footer__links { display: grid; gap: 10px; }
.footer__links a { color: rgba(255, 255, 255, .62); font-size: .92rem; }
.footer__links a:hover { color: #fff; }

.footer__bottom {
  display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between;
  padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .85rem;
}
.footer__bottom p { margin: 0; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 20px; }
.footer__legal a { color: rgba(255, 255, 255, .55); }
.footer__legal a:hover { color: #fff; }

/* --------------------------------------------------------------------------
   14. Página interna (hero compacto + breadcrumb)
   -------------------------------------------------------------------------- */
.page-hero {
  padding: calc(var(--nav-h) + 58px) 0 62px;
  background: var(--ink); color: rgba(255, 255, 255, .74);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(52% 90% at 8% 6%, rgba(37, 99, 235, .46) 0%, transparent 64%),
    radial-gradient(48% 88% at 92% 92%, rgba(124, 58, 237, .40) 0%, transparent 62%);
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; max-width: 18ch; }
.page-hero p { max-width: 62ch; font-size: 1.06rem; margin: 0; }

.crumb { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; font-size: .85rem; margin-bottom: 18px; }
.crumb a { color: rgba(255, 255, 255, .62); }
.crumb a:hover { color: #fff; }
.crumb span { color: rgba(255, 255, 255, .38); }
.crumb strong { color: #fff; font-weight: 600; }

.prose h3 { margin-top: 1.6em; }
.prose h3:first-child { margin-top: 0; }
.prose p { color: var(--body); }

.anchor-nav {
  position: sticky; top: calc(var(--nav-h) + 16px);
  display: grid; gap: 4px; align-self: start;
  padding: 18px; border-radius: var(--radius);
  background: var(--surface-2); border: 1px solid var(--line);
}
.anchor-nav strong {
  display: block; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px;
}
.anchor-nav a {
  padding: 8px 11px; border-radius: 9px; font-size: .91rem;
  font-weight: 550; color: var(--ink-2);
}
.anchor-nav a:hover { background: #fff; color: var(--brand-700); }

/* --------------------------------------------------------------------------
   14b. Páginas legais (privacidade, termos, LGPD)
   -------------------------------------------------------------------------- */
.legal { display: grid; grid-template-columns: 260px 1fr; gap: clamp(30px, 5vw, 60px); align-items: start; }

.legal__body { max-width: 74ch; }
.legal__body h2 {
  font-size: clamp(1.3rem, 2.2vw, 1.6rem); margin: 2.2em 0 .7em;
  padding-top: 1.1em; border-top: 1px solid var(--line);
}
.legal__body h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal__body h3 { font-size: 1.06rem; margin: 1.7em 0 .5em; }
.legal__body p { font-size: .99rem; }
.legal__body a { text-decoration: underline; text-underline-offset: 3px; }

.legal__body ul, .legal__body ol { margin: 0 0 1.2em; padding-left: 1.6em; }
.legal__body ul { list-style: disc; }
.legal__body ol { list-style: decimal; }
.legal__body li { margin-bottom: .55em; font-size: .99rem; }
.legal__body li::marker { color: var(--brand); font-weight: 600; }

.legal__note {
  padding: 20px 24px; margin: 0 0 30px;
  border-radius: var(--radius); border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  background: var(--surface-2);
  font-size: .93rem; color: var(--body);
}
.legal__note strong { color: var(--ink); }
.legal__note p:last-child { margin-bottom: 0; }

.legal__meta {
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  margin-bottom: 34px; padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  font-size: .85rem; color: var(--muted);
}
.legal__meta strong { color: var(--ink-2); font-weight: 650; }

.legal table {
  width: 100%; border-collapse: collapse; margin: 0 0 1.4em;
  font-size: .92rem;
}
.legal table th, .legal table td {
  padding: 11px 14px; text-align: left; vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.legal table th {
  background: var(--surface-2); color: var(--ink);
  font-weight: 650; font-size: .84rem;
  text-transform: uppercase; letter-spacing: .04em;
}
.legal .table-scroll { overflow-x: auto; margin-bottom: 1.4em; }

@media (max-width: 1024px) {
  .legal { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   15. Animação de entrada
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.22, 1, .36, 1); }
.reveal.is-visible { opacity: 1; transform: none; }

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

/* --------------------------------------------------------------------------
   16. Responsivo
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__stats { justify-content: space-between; }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .contact { grid-template-columns: 1fr; }
  .anchor-nav { position: static; }
}

/* Espaço apertado: esconde a etiqueta do logotipo antes de quebrar o menu */
@media (max-width: 1080px) and (min-width: 861px) {
  .brand__tag { display: none; }
  .nav__link { padding-inline: 10px; font-size: .89rem; }
}

@media (max-width: 860px) {
  .nav__toggle { display: inline-flex; }
  .brand__tag { display: block; }
  .nav__cta .btn { display: none; }
  .nav .wrap { gap: 12px; }

  .nav__menu {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    max-height: calc(100dvh - var(--nav-h)); overflow-y: auto;
    padding: 14px 20px 26px;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    transform: translateY(-14px); opacity: 0; visibility: hidden;
    transition: all .22s ease;
  }
  .nav__menu.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__link { padding: 13px 14px; font-size: 1rem; }

  .dropdown {
    position: static; transform: none; opacity: 1; visibility: visible;
    box-shadow: none; border: 0; border-left: 2px solid var(--line);
    border-radius: 0; min-width: 0; padding: 2px 0 6px 12px; margin-left: 14px;
  }
  .dropdown a span { display: none; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .check-list--2 { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .footer__grid { grid-template-columns: 1fr; }
  .stat-tiles { grid-template-columns: repeat(2, 1fr); }
  .kpi-row { grid-template-columns: 1fr 1fr; }
  .kpi-row .kpi:last-child { display: none; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 18px; }
  .hero__stats { grid-template-columns: 1fr 1fr; gap: 20px; }
  .stat-tiles { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .hero__actions, .cta__actions { flex-direction: column; }
  .card { padding: 24px; }
}
