/* =============================================================
 * Milita — tokens de cor e ajustes de marca
 * Carregado DEPOIS dos CSS da base para sobrepor a identidade.
 * Paleta oficial:
 *   fundo #0E1626 · superfície #16223A · borda #2A3A55
 *   verde de ação #17A06B · azul-aço #2E3F5C
 *   texto #FFFFFF · texto secundário #9AA9BF
 * ============================================================= */
:root,
body {
  --milita-bg: #0e1626;
  --milita-bg-rgb: 14 22 38;
  --milita-surface: #16223a;
  --milita-surface-rgb: 22 34 58;
  --milita-border: #2a3a55;
  --milita-steel: #2e3f5c;
  --milita-text: #ffffff;
  --milita-text-2: #9aa9bf;

  --ui-accent: #17a06b;
  --ui-accent-dark: #138559;
  --ui-accent-light: #45b389;
  --ui-accent-glow: #a2d9c4;
  --ui-accent-rgb-space: 23 160 107;
  --ui-accent-rgb-comma: 23, 160, 107;

  /* Tokens herdados da base, apontados para a paleta Milita */
  --color-surface: #0e1626;
  --color-black: #0e1626;
  --color-white: #ffffff;
  --color-neutral-950: #0e1626;
  --color-neutral-900: #16223a;
  --color-neutral-500: #9aa9bf;
  --color-neutral-400: #9aa9bf;
  --color-neutral-200: #ffffff;
  --color-zinc-400: #9aa9bf;
  --color-zinc-500: #9aa9bf;
  --color-text-copy: #9aa9bf;
  --color-text-secondary: #9aa9bf;
  --color-text-card: #9aa9bf;
  --color-teal-400: #45b389;
  --color-teal-500: #17a06b;
  --color-emerald-400: #45b389;
  --color-emerald-500: #17a06b;
  --color-orange-500: #17a06b;
  --color-cyan-300: #a2d9c4;
  --color-cyan-400: #45b389;
  --color-cyan-500: #17a06b;
  --color-cyan-600: #138559;
  --color-cyan-700: #138559;
  --color-cyan-900: #138559;

  --platform-cyan: #17a06b;
  --instructors-cyan: #17a06b;
  --instructors-cyan-deep: #138559;
  --instructors-card-bg: #16223a;
  --pricing-cyan: #17a06b;
  --pricing-cyan-deep: #138559;
  --gt-cyan: #17a06b;
  --gt-cyan-rgb: 23 160 107;
  --faq-cyan: #17a06b;
  --faq-cyan-rgb: 23 160 107;
  --footer-cyan: #17a06b;
  --footer-cyan-rgb: 23 160 107;

  --lp-border: #2a3a55;
  --courses-border: #2a3a55;
}

html,
body {
  background-color: #0e1626;
}

/* ---------- Bordas: usar a borda oficial nos componentes principais ---------- */
.formation-card,
.trail-card,
.platform-media-card,
.trail-overview-v2-card,
.index4-pricing-card:not(.index4-pricing-card--featured),
.faq-item,
.instructor-card,
.guarantee-card,
.pco-dialog {
  border-color: #2a3a55;
}
.site-footer,
.site-footer__bar {
  border-color: #2a3a55;
}

/* ---------- Espaço reservado para prints do app ---------- */
.milita-print {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: auto;
  border: 1px dashed #2a3a55;
  border-radius: inherit;
  color: #9aa9bf;
  background:
    linear-gradient(135deg, rgb(46 63 92 / 0.35), rgb(22 34 58 / 0.9)),
    #16223a;
  font: 500 0.875rem/1.3 Inter, ui-sans-serif, system-ui, sans-serif;
  text-align: center;
  overflow: hidden;
}
.milita-print::before {
  content: "";
  width: 34px;
  height: 34px;
  flex: none;
  background-color: #45b389;
  -webkit-mask: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxZW0iIGhlaWdodD0iMWVtIiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxnIGZpbGw9Im5vbmUiIHN0cm9rZT0iY3VycmVudENvbG9yIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS13aWR0aD0iMS41Ij48cmVjdCB4PSI2IiB5PSIyLjUiIHdpZHRoPSIxMiIgaGVpZ2h0PSIxOSIgcng9IjMiLz48cGF0aCBkPSJNMTAuNSAxOC41aDMiLz48cGF0aCBkPSJNMTAgNS41aDQiLz48L2c+PC9zdmc+Cg==") center / contain no-repeat;
  mask: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxZW0iIGhlaWdodD0iMWVtIiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxnIGZpbGw9Im5vbmUiIHN0cm9rZT0iY3VycmVudENvbG9yIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS13aWR0aD0iMS41Ij48cmVjdCB4PSI2IiB5PSIyLjUiIHdpZHRoPSIxMiIgaGVpZ2h0PSIxOSIgcng9IjMiLz48cGF0aCBkPSJNMTAuNSAxOC41aDMiLz48cGF0aCBkPSJNMTAgNS41aDQiLz48L2c+PC9zdmc+Cg==") center / contain no-repeat;
  opacity: 0.9;
}
.milita-print > span {
  padding: 0 12px;
}
.milita-print--landscape { aspect-ratio: 16 / 10; }
.milita-print--portrait { aspect-ratio: 586 / 937; }

/* Avatares neutros (sem fotos de pessoas) */
.milita-avatar {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  color: #9aa9bf;
  background: #2e3f5c;
  box-shadow: 0 0 0 2px #0e1626;
}
.milita-avatar svg { width: 16px; height: 16px; }

/* ---------- Logo do Milita no cabeçalho e no rodapé ---------- */
.milita-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  text-decoration: none;
}
.milita-logo img {
  display: block;
  width: auto;
  height: 30px;
}
.milita-logo__word {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.site-footer__logo.milita-logo img { height: 44px; }
.site-footer__logo.milita-logo .milita-logo__word { font-size: 1.35rem; }

/* Marca-d'água do rodapé em versão Milita, discreta */
.site-footer__watermark { color: rgb(255 255 255 / 0.03); }

/* ---------- Desempenho: animações de surgimento curtas e leves no celular ---------- */
@media (max-width: 767.98px) {
  .animate-fade-slide-in,
  .animate-on-scroll.in-view {
    animation-duration: 0.45s !important;
  }
  .animate-on-scroll,
  .animate-fade-slide-in {
    animation-delay: 0s !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .animate-fade-slide-in,
  .animate-on-scroll {
    animation-duration: 0.2s !important;
    animation-delay: 0s !important;
  }
}

/* ---------- Ajustes de contraste (AA) ---------- */
/* Textos pequenos que eram branco translúcido passam a usar o texto secundário oficial */
.index4-pricing-card__cash,
.index4-pricing-card__guarantee,
.index4-pricing-card__installments {
  color: #9aa9bf !important;
}
/* Botão sólido do cabeçalho: texto azul-marinho sobre verde (mesma regra dos botões de plano) */
.cadence-header__btn--solid {
  color: #0e1626;
  background: linear-gradient(135deg, var(--ui-accent-light), var(--ui-accent));
}
/* Selo "Recomendado": branco sobre verde escuro → azul-aço */
.index4-pricing-card__popular {
  background: linear-gradient(120deg, #138559, #2e3f5c) !important;
}
/* Números dos passos: verde claro sólido (6,94:1 sobre o fundo) */
.guarantee-step__number {
  color: #45b389 !important;
  opacity: 1 !important;
}
/* Degradê sobre os cards de tela: azul-marinho em vez de preto */
.instructor-card__overlay {
  background: linear-gradient(transparent, rgb(14 22 38 / 0.45), rgb(14 22 38 / 0.92));
}
