/* Otimiza Check — Design System
 * Paleta Otimiza.pro (laranja #ff6b35 + azul #1e6fb8). Peso forte no azul reforça
 * a leitura "compliance / verificação / segurança". Verde aparece em micro-estados
 * de "aprovado / dado verificado". Light default + dark via [data-theme="dark"].
 */

/* === LIGHT THEME === */
:root {
  --primary: #ff6b35;
  --primary-dark: #e55a28;
  --primary-light: #ff8c61;

  --secondary: #1e6fb8;
  --secondary-dark: #155a96;
  --secondary-light: #4d9fdb;
  --secondary-deep: #0c3a6b;

  --accent-cyan: #0288d1;
  --accent-green: #10b981;
  --accent-red: #dc2626;

  --text: #0f172a;
  --text-light: #475569;
  --text-muted: #64748b;
  --text-inverse: #ffffff;

  --bg: #ffffff;
  --bg-alt: #f7f9fc;
  --bg-dark: #0c1a2e;
  --surface: #ffffff;
  --surface-card: #ffffff;
  --surface-border: #e2e8f0;
  --surface-hover: #f1f5f9;
  --surface-strong: #0c1a2e;

  --gray-medium: #cbd5e1;
  --gray-light: #f1f5f9;

  --nav-bg: rgba(255, 255, 255, 0.92);
  --hero-gradient-1: rgba(30, 111, 184, 0.08);
  --hero-gradient-2: rgba(255, 107, 53, 0.06);

  --h1-gradient: linear-gradient(135deg, #0f172a 0%, #1e6fb8 60%, #ff6b35 100%);
  --shadow-sm: 0 2px 12px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 60px rgba(15, 23, 42, 0.12);
  --glow-orange: 0 0 30px rgba(255, 107, 53, 0.25);
  --glow-blue: 0 0 30px rgba(30, 111, 184, 0.2);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --max-w: 1200px;
  --max-w-narrow: 760px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;
}

/* === DARK THEME === */
[data-theme="dark"] {
  --primary: #ff6b35;
  --primary-dark: #e55a28;
  --primary-light: #ff8c61;

  --secondary: #4d9fdb;
  --secondary-dark: #2178c4;
  --secondary-light: #6bb8f0;
  --secondary-deep: #1e6fb8;

  --accent-cyan: #00d4ff;
  --accent-green: #34d399;
  --accent-red: #f87171;

  --text: #e2e8f0;
  --text-light: #a8b5c8;
  --text-muted: #7c8ca8;

  --bg: #050b1f;
  --bg-alt: #0a1628;
  --bg-dark: #050b1f;
  --surface: #0f172a;
  --surface-card: rgba(15, 23, 42, 0.85);
  --surface-border: rgba(255, 255, 255, 0.08);
  --surface-hover: rgba(255, 255, 255, 0.04);
  --surface-strong: #02060f;

  --gray-medium: #334155;
  --gray-light: #1e293b;

  --nav-bg: rgba(5, 11, 31, 0.85);
  --hero-gradient-1: rgba(77, 159, 219, 0.12);
  --hero-gradient-2: rgba(255, 107, 53, 0.08);

  --h1-gradient: linear-gradient(135deg, #e2e8f0 0%, #6bb8f0 60%, #ff8c61 100%);
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.4);
  --glow-orange: 0 0 30px rgba(255, 107, 53, 0.3);
  --glow-blue: 0 0 30px rgba(77, 159, 219, 0.3);
}

/* === BASE === */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.3s ease, color 0.3s ease;
}
a { color: var(--secondary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary); }
img, svg { max-width: 100%; display: block; }
code, pre { font-family: var(--font-mono); }

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  position: fixed;
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  padding: 12px 20px;
  background: var(--text);
  color: var(--bg);
  border-radius: 8px;
  z-index: 100;
  font-weight: 600;
}

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: var(--max-w-narrow); }
.center { text-align: center; }

/* === NAV === */
.nav {
  position: sticky;
  top: 0;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--surface-border);
  z-index: 50;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}
.brand {
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand:hover { color: var(--text); }
.brand-text { font-weight: 500; }
.brand-text strong { font-weight: 800; color: var(--secondary); }
.brand-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  border-radius: 50%;
  box-shadow: var(--glow-blue);
}

.nav nav { display: flex; align-items: center; gap: 28px; }
.nav nav a {
  color: var(--text-light);
  font-size: 14px;
  font-weight: 500;
}
.nav nav a:hover { color: var(--primary); }

.btn-ghost {
  padding: 9px 18px;
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  background: var(--surface-hover);
  color: var(--text) !important;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
}
.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary) !important;
  background: var(--bg);
}

.theme-toggle {
  margin-left: 4px;
  background: var(--surface-hover);
  border: 1px solid var(--surface-border);
  color: var(--text);
  width: 38px;
  height: 38px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.2s;
}
.theme-toggle:hover { border-color: var(--primary); color: var(--primary); }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: inline; }
[data-theme="dark"] .theme-toggle .icon-sun { display: inline; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* === HERO === */
.hero {
  padding: 96px 0 88px;
  text-align: center;
  background:
    radial-gradient(ellipse at top, var(--hero-gradient-1) 0%, transparent 60%),
    radial-gradient(ellipse at bottom right, var(--hero-gradient-2) 0%, transparent 50%),
    var(--bg);
  border-bottom: 1px solid var(--surface-border);
  position: relative;
  overflow: hidden;
}
.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  background: var(--surface-hover);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-pill);
  color: var(--text-light);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}
.eyebrow.light { color: var(--text-light); background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.12); }
.hero h1 {
  font-size: clamp(36px, 6vw, 68px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  background: var(--h1-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  max-width: 960px;
  margin: 0 auto;
}
.lead {
  font-size: 20px;
  color: var(--text-light);
  margin: 28px auto 36px;
  max-width: 760px;
  line-height: 1.55;
}
.lead strong { color: var(--text); font-weight: 700; }

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.hero-trust {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* === BUTTONS === */
.btn-primary {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  transition: all 0.2s;
  box-shadow: var(--shadow-md), var(--glow-orange);
  letter-spacing: 0.01em;
  border: none;
  cursor: pointer;
  font-size: 16px;
  line-height: 1.2;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), var(--glow-orange);
  color: #fff;
}
.btn-primary.large {
  padding: 18px 40px;
  font-size: 17px;
}
.btn-primary.block {
  display: flex;
  width: 100%;
  margin-top: 8px;
}
.btn-primary .btn-sub {
  display: block;
  font-size: 12px;
  font-weight: 500;
  opacity: 0.9;
  margin-top: 2px;
  letter-spacing: 0;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  border: 1.5px solid var(--surface-border);
  border-radius: var(--radius-pill);
  background: var(--bg);
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s;
}
.btn-outline:hover {
  border-color: var(--secondary);
  color: var(--secondary);
  transform: translateY(-2px);
}

/* === TRUST STRIP === */
.trust-strip {
  padding: 28px 0;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--surface-border);
}
.trust-strip-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.trust-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.trust-item strong {
  font-size: 28px;
  font-weight: 800;
  color: var(--secondary);
  letter-spacing: -0.02em;
  line-height: 1;
}
.trust-item span {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.4;
}

/* === SECTIONS === */
.section {
  padding: 88px 0;
  position: relative;
}
.section.alt { background: var(--bg-alt); }
.section.dark {
  background: var(--surface-strong);
  color: #e2e8f0;
  border-top: 1px solid var(--surface-border);
  border-bottom: 1px solid var(--surface-border);
}
.section.dark h2 { color: #fff; }
.section.dark .section-lead { color: #a8b5c8; }

.section h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--text);
  max-width: 880px;
  margin: 0 auto 16px;
}
.section h2.center { text-align: center; }
.section .section-lead {
  font-size: 18px;
  color: var(--text-light);
  max-width: 760px;
  margin: 16px auto 32px;
  line-height: 1.6;
}
.section .section-lead.center { text-align: center; }
.section p { color: var(--text-light); line-height: 1.7; margin-bottom: 16px; }
.section.narrow p { font-size: 17px; }
.muted { color: var(--text-muted); }
.small { font-size: 14px; }

/* === CATÁLOGO DE CONSULTAS === */
.catalog-groups {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 48px;
}
.catalog-group {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
}
.catalog-group h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 8px;
}
.catalog-group h3 .ico {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, rgba(30,111,184,0.12) 0%, rgba(255,107,53,0.12) 100%);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.catalog-group p.group-lead {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 18px;
}
.catalog-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.catalog-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed var(--surface-border);
  gap: 12px;
}
.catalog-list li:last-child { border-bottom: none; }
.catalog-list li .name {
  font-size: 14px;
  color: var(--text);
  font-weight: 600;
}
.catalog-list li .name small {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 2px;
  line-height: 1.4;
}
.catalog-list li .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--secondary);
  background: var(--bg-alt);
  border: 1px solid var(--surface-border);
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
}

/* === CARDS (pilares) === */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.card {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--secondary-light);
}
.card-icon {
  font-size: 28px;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(30,111,184,0.1) 0%, rgba(255,107,53,0.1) 100%);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.card p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
}

/* === MODOS DE USO (API / Portal / Lote) === */
.usage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.usage {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
}
.usage h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.usage p { font-size: 15px; color: var(--text-light); margin: 0 0 14px; line-height: 1.6; }
.usage pre {
  background: var(--surface-strong);
  color: #d1e3fa;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 12.5px;
  line-height: 1.55;
  overflow-x: auto;
  margin-top: auto;
  border: 1px solid rgba(255,255,255,0.04);
}
.usage pre code { color: inherit; }
.usage pre .tk-kw { color: #ffb47a; }
.usage pre .tk-str { color: #9ec7ff; }
.usage pre .tk-cm { color: #6b819e; }

/* === PLANOS === */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.plan {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.plan.featured {
  border-color: var(--secondary-light);
  box-shadow: var(--shadow-md);
}
.plan.featured::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 1.5px;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.plan-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--surface-hover);
  color: var(--text-muted);
  border: 1px solid var(--surface-border);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  align-self: flex-start;
  margin-bottom: 14px;
}
.plan.featured .plan-tag {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  color: #fff;
  border: none;
}
.plan h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.plan-tagline {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 18px;
}
.plan-price {
  margin: 12px 0 18px;
  padding: 16px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  border: 1px solid var(--surface-border);
}
.plan-price .price-label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 4px;
}
.plan-price strong {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}
.plan-price strong small {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-light);
}
.plan-price .price-note {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.5;
}
.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  flex-grow: 1;
}
.plan-features li {
  position: relative;
  padding: 8px 0 8px 26px;
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.5;
  border-bottom: 1px dashed var(--surface-border);
}
.plan-features li:last-child { border-bottom: none; }
.plan-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 8px;
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--accent-green) 100%);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
}

/* === SEGURANÇA === */
.security-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.security-copy h2 {
  color: #fff;
  margin-bottom: 20px;
}
.security-copy p {
  color: #a8b5c8;
  font-size: 17px;
  line-height: 1.7;
}
.security-copy p strong { color: #e2e8f0; }
.security-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 0;
}
.security-list li {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.security-list strong {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}
.security-list span {
  font-size: 13px;
  color: #a8b5c8;
  line-height: 1.5;
}

/* === STEPS === */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
  padding: 0;
}
.step {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.step-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  box-shadow: var(--glow-blue);
}
.step h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.step p {
  font-size: 15px;
  color: var(--text-light);
  margin: 0;
  line-height: 1.6;
}

/* === SEGMENTOS / PERSONAS === */
.personas {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.persona {
  text-align: center;
  padding: 24px 16px;
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  transition: transform 0.2s, border-color 0.2s;
}
.persona:hover {
  transform: translateY(-4px);
  border-color: var(--secondary-light);
}
.persona-icon {
  font-size: 32px;
  margin-bottom: 12px;
}
.persona h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.persona p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.5;
  margin: 0;
}

/* === FAQ === */
.faq {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq[open] { border-color: var(--secondary-light); box-shadow: var(--shadow-sm); }
.faq summary {
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color 0.2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 24px;
  font-weight: 400;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.2s;
  line-height: 1;
}
.faq[open] summary::after { content: "−"; color: var(--primary); }
.faq summary:hover { color: var(--secondary); }
.faq p {
  padding: 0 22px 20px;
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}
.faq p strong { color: var(--text); }

/* === CTA FINAL === */
.cta-final {
  background: radial-gradient(ellipse at center, var(--hero-gradient-1) 0%, transparent 70%), var(--bg);
  border-top: 1px solid var(--surface-border);
}
.cta-final h2 { font-size: clamp(32px, 5vw, 48px); margin-bottom: 16px; }
.cta-final .lead { margin-bottom: 32px; }
.cta-final .muted.small a { color: var(--secondary); font-weight: 600; }
.cta-final .muted.small a:hover { color: var(--primary); }

/* === FOOTER === */
.footer {
  background: var(--surface-strong);
  color: #a8b5c8;
  padding: 56px 0 24px;
  border-top: 1px solid var(--surface-border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .brand {
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-brand .brand strong { color: var(--secondary-light); font-weight: 800; }
.footer-brand p {
  color: #a8b5c8;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 12px;
}
.footer-brand .tags {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.footer h4 {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}
.footer ul {
  list-style: none;
  padding: 0;
}
.footer ul li { margin-bottom: 8px; }
.footer ul a {
  color: #a8b5c8;
  font-size: 14px;
  transition: color 0.2s;
}
.footer ul a:hover { color: var(--primary); }
.footer .copy {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer .copy p { margin: 0; }
.footer .legal { display: flex; gap: 12px; align-items: center; }
.footer .legal a { color: var(--text-muted); }
.footer .legal a:hover { color: var(--primary); }
.footer .legal span { color: var(--gray-medium); }

/* === RESPONSIVO === */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .personas { grid-template-columns: repeat(3, 1fr); }
  .usage-grid { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .catalog-groups { grid-template-columns: 1fr; }
  .security-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: span 3; }
}

@media (max-width: 768px) {
  .nav nav { display: none; }
  .nav nav a.btn-ghost { display: inline-flex; }
  .nav-inner { gap: 8px; }
  .brand-text { font-size: 16px; }

  .hero { padding: 64px 0 56px; }
  .hero h1 { font-size: clamp(32px, 8vw, 44px); }
  .lead { font-size: 17px; margin: 22px auto 28px; }

  .trust-strip-inner { grid-template-columns: repeat(2, 1fr); }
  .trust-item strong { font-size: 24px; }

  .section { padding: 64px 0; }
  .section h2 { font-size: clamp(26px, 6vw, 32px); }

  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .security-list { grid-template-columns: 1fr; }
  .personas { grid-template-columns: repeat(2, 1fr); }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: span 2; }
  .footer-grid > div:last-child { grid-column: span 2; }
  .footer .copy { flex-direction: column; }

  .hero-cta { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero-cta .btn-primary, .hero-cta .btn-outline { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .plan, .catalog-group { padding: 28px 22px; }
  .step { flex-direction: column; gap: 14px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div { grid-column: span 1 !important; }
}

/* === ACCESSIBILITY === */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
