/* tokens.css - x.ai token values mapped to shared variable names */
/* Derived from quinsy-web/DESIGN.md (getdesign x.ai template) */

:root {
  /* ===================== FONTS ===================== */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-serif: 'Fraunces', Georgia, serif;
  --font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;

  /* ===================== TYPE SCALE ===================== */
  --text-display: 48px;
  --text-hero: 72px;
  --text-h1: 32px;
  --text-h2: 24px;
  --text-h3: 20px;
  --text-lg: 18px;
  --text-body: 16px;
  --text-sm: 14px;
  --text-xs: 12px;
  --text-button: 14px;
  --text-badge: 11px;

  /* ===================== SPACING ===================== */
  --space-xxs: 2px;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-base: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-xxl: 48px;
  --space-section: 64px;

  /* ===================== RADIUS ===================== */
  --radius-none: 0px;
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 8px;
  --radius-lg: 8px;
  --radius-xl: 8px;
  --radius-pill: 9999px;

  /* ===================== COLORS - SURFACES ===================== */
  --color-canvas: #0a0a0a;
  --color-surface: #191919;
  --color-surface-alt: #1a1c20;
  --color-surface-strong: #363a3f;

  /* ===================== COLORS - TEXT ===================== */
  --color-ink: #ffffff;
  --color-body: #dadbdf;
  --color-muted: #7d8187;
  --color-muted-soft: #7d8187;
  --color-on-primary: #0a0a0a;

  /* ===================== COLORS - ACCENT ===================== */
  --color-primary: #ffffff;
  --color-primary-hover: #fafaf7;
  --color-primary-disabled: #363a3f;
  --color-primary-active: #fafaf7;
  --color-luxe: #7c3aed;
  --color-plus: #ff7a17;
  --color-legal-link: #a0c3ec;

  /* ===================== COLORS - BORDERS ===================== */
  --color-border: #212327;
  --color-border-strong: #363a3f;
  --color-hairline: #212327;
  --color-hairline-soft: #212327;

  /* ===================== COLORS - SEMANTIC ===================== */
  --color-success-bg: #0d1726;
  --color-success-fg: #a0c3ec;
  --color-warning-bg: #1a1c20;
  --color-warning-fg: #ffc285;
  --color-error-bg: #1a1c20;
  --color-error-fg: #ff7a17;

  /* ===================== BUTTONS (outline pills on dark) ===================== */
  --btn-primary-bg: transparent;
  --btn-primary-fg: var(--color-primary);
  --btn-primary-border: var(--color-primary);
  --btn-primary-hover: rgba(255, 255, 255, 0.08);

  --btn-secondary-bg: transparent;
  --btn-secondary-fg: var(--color-body);
  --btn-secondary-border: var(--color-border-strong);
  --btn-secondary-hover: var(--color-surface-alt);

  --btn-padding-x: 24px;
  --btn-padding-y: 12px;
  --btn-height: 44px;

  /* ===================== LAYOUT ===================== */
  --container-max: 1280px;
  --header-height: 80px;

  /* ===================== SHADOWS ===================== */
  --shadow-card: none;

  /* ===================== STEP NUMBER ===================== */
  --step-number-size: 40px;
}

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

/* ===================== FOCUS VISIBLE ===================== */
:focus:not(:focus-visible) {
  outline: none;
}

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