/* ==========================================================================
   GO2FIT // OBSIDIAN LAB × SWISS SPEC — DESIGN TOKENS OFICIAIS (V1.1)
   Alinhado 100% ao App em Produção (DESIGN.md / layout.tsx / icon.svg):
   Oswald (Display) + Inter (Corpo/UI) + JetBrains Mono (Telemetria/Spec)
   ========================================================================== */

:root {
  /* --- Superfície Padrão: Obsidian Lab (idêntica ao App V1) --- */
  --g2f-bg-base: #0A0B0E;            /* Carbono — fundo master do App e Site */
  --g2f-bg-asphalt: #09090B;         /* Pitch Asphalt — mídia P&B e blocos spec */
  --g2f-surface-elevated: #13151B;   /* Card principal e barras fixas */
  --g2f-surface-high: #1C2029;       /* Superfície alta — chips, inputs, badges */
  --g2f-surface-module: #202024;     /* Raw Concrete — módulos brutalistas */

  /* --- Tintagem sobre Escuro (DESIGN.md §1) --- */
  --g2f-ink-primary: #F8FAFC;        /* Tinta principal (18.8:1 sobre #0A0B0E - AAA) */
  --g2f-ink-secondary: #CBD5E1;      /* Descrições e subtítulos (13.3:1 - AAA) */
  --g2f-ink-muted: #94A3B8;          /* PISO WCAG AA (7.7:1 sobre #0A0B0E - AA+) */
  --g2f-ink-pure: #FAFAFA;           /* Optical Gallery White */
  --g2f-ink-inverse: #0A0B0E;        /* Obrigatório sobre #C8FF00 */

  /* --- Linhas Arquitetônicas (1px Grid) --- */
  --g2f-grid-line: rgba(255, 255, 255, 0.08);
  --g2f-border-subtle: rgba(255, 255, 255, 0.10);
  --g2f-border-active: rgba(200, 255, 0, 0.35);

  /* --- Acentos Cirúrgicos (<= 5% da área visual) ---
     REGRA RÍGIDA: NUNCA misturar --g2f-accent-lime e --g2f-accent-infrared
     no mesmo bloco ou componente. */
  --g2f-accent-lime: #C8FF00;        /* Neon Lima oficial do App (16.6:1 sobre #0A0B0E) */
  --g2f-accent-lime-hover: #DCFF5C;
  --g2f-accent-infrared: #FF3B1D;    /* Signal Infrared (Spec sheets claras & PAR-Q) */

  /* --- Estados Semânticos (DESIGN.md) --- */
  --g2f-success: #22C55E;
  --g2f-error: #EF4444;
  --g2f-warning: #F59E0B;

  /* --- Semântica de Superfície Ativa --- */
  --surface-bg: var(--g2f-bg-base);
  --surface-card: var(--g2f-surface-elevated);
  --surface-alt: var(--g2f-surface-high);
  --surface-ink: var(--g2f-ink-primary);
  --surface-ink-secondary: var(--g2f-ink-secondary);
  --surface-ink-muted: var(--g2f-ink-muted);
  --surface-grid: var(--g2f-grid-line);
  --surface-border: var(--g2f-border-subtle);
  --surface-accent: var(--g2f-accent-lime);
  --surface-accent-ink: #0A0B0E;

  /* --- Tipografia Oficial do App --- */
  --font-display: 'Oswald', 'Inter', sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Menlo', monospace;

  /* --- Escala Tipográfica (Oswald estritamente >= 24px) --- */
  --text-xs: 0.6875rem;   /* 11px - micro tags SPEC / BottomNav */
  --text-sm: 0.75rem;     /* 12px - rótulos / metadados */
  --text-base: 0.9375rem; /* 15px - corpo padrão do app */
  --text-lg: 1.125rem;    /* 18px - lead copy */
  --text-xl: 1.5rem;      /* 24px - piso mínimo da Oswald */
  --text-2xl: 2.25rem;    /* 36px - título de módulo */
  --text-3xl: 3.25rem;    /* 52px - manifesto / subhero */
  --text-hero: clamp(2.75rem, 6vw, 5.25rem);

  --leading-tight: 1.00;
  --leading-display: 1.06;
  --leading-body: 1.50;
  --tracking-display: -0.01em;
  --tracking-brand: 0.16em;
  --tracking-mono: 0.08em;

  /* --- Espaçamento (Escala base 4px) --- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  /* --- Geometria (Brand Editorial 2px + App Tokens) --- */
  --radius-none: 0px;
  --radius-micro: 2px;
  --radius-input: 12px;
  --radius-botao: 14px;
  --radius-card: 18px;
  --border-grid: 1px;
  --border-stamp: 2px;

  /* --- Movimento Semântico (proibido "transition: all") --- */
  --duration-instant: 80ms;
  --duration-snap: 150ms;
  --duration-panel: 250ms;
  --duration-editorial: 420ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-architectural: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   MODO SPEC SHEET: OPTICAL GALLERY WHITE
   Usado em fichas técnicas, tabelas CREF/CRN e carrosséis comparativos.
   ========================================================================== */
[data-surface="gallery-white"] {
  --surface-bg: #FAFAFA;
  --surface-card: #FFFFFF;
  --surface-alt: #F1F2F4;
  --surface-ink: #0A0B0E;
  --surface-ink-secondary: #3F3F46;
  --surface-ink-muted: #52525B;
  --surface-grid: #D4D4D8;
  --surface-border: #D4D4D8;
  --surface-accent: #FF3B1D;
  --surface-accent-ink: #0A0B0E;
}

.g2f-tabular {
  font-variant-numeric: tabular-nums;
}

.g2f-grid-surface {
  background-color: var(--surface-bg);
  background-image:
    linear-gradient(to right, var(--surface-grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--surface-grid) 1px, transparent 1px);
  background-size: 48px 48px;
}

.g2f-interactive-surface {
  transition-property: background-color, border-color, color, transform;
  transition-duration: var(--duration-snap);
  transition-timing-function: var(--ease-out);
}
