/* ==========================================================================
   AXION — site de vendas (HTML estático)
   Tokens e reset mínimos, com os mesmos valores do design system do painel
   (src/styles/tokens.css), para manter o visual idêntico ao da landing antiga.
   ========================================================================== */

:root {
  --color-primary: #165DFF;
  --color-primary-hover: #0D4FE6;
  --color-primary-light: #E8F0FF;
  --color-primary-subtle: #F0F5FF;
  --color-dark: #001A57;
  --color-success: #10B981;
  --color-warning: #F59E0B;
  --color-danger: #EF4444;
  --color-white: #FFFFFF;

  --bg-secondary: #F3F6F9;
  --bg-surface: #FFFFFF;
  --text-primary: #111827;
  --text-secondary: #616978; /* era #6B7280 (contraste 4,46:1); escurecido para passar em WCAG AA */
  --text-tertiary: #9CA3AF;
  --text-link: #165DFF;
  --border-default: #E2E8F0;
  --border-light: #F1F5F9;

  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.06), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 32px -4px rgba(15, 23, 42, 0.12), 0 10px 16px -4px rgba(15, 23, 42, 0.06);

  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

[data-theme="dark"] {
  --color-primary-light: rgba(22, 93, 255, 0.15);
  --color-primary-subtle: rgba(22, 93, 255, 0.08);
  --color-white: #1A1C23;

  --bg-secondary: #111318;
  --bg-surface: #1A1C23;
  --text-primary: #E8ECF4;
  --text-secondary: #9CA3AF;
  --text-tertiary: #6B7280;
  --text-link: #5B8DEF;
  --border-default: #2D3040;
  --border-light: #23263A;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 12px -2px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 20px 32px -4px rgba(0, 0, 0, 0.5), 0 10px 16px -4px rgba(0, 0, 0, 0.3);
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-primary);
  background-color: #0f0f0f;
  overflow-x: hidden;
}

a {
  color: var(--text-link);
  text-decoration: none;
  transition: color 120ms ease;
}

a:hover {
  color: var(--color-primary-hover);
}

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

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

table {
  border-collapse: collapse;
  width: 100%;
}

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

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------------------
   Paridade com a landing antiga: no SPA, estas regras globais do painel
   (components.css / pages.css / tokens.css) também atingiam a landing.
   -------------------------------------------------------------------------- */
* {
  scrollbar-width: thin;
  scrollbar-color: #9CA3AF transparent;
}

.kpi-value {
  font-family: 'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.kpi-trend {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 0.75rem;
  font-weight: 600;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px 0;
  border-bottom: 1px dashed var(--border-light);
}

.stat-item:last-child {
  border-bottom: none;
}

.stat-label {
  color: var(--text-secondary);
}
