/* ============================================================
   Client Area - Design Tokens (Fase 1)
   Paleta: amarelo da marca + azul de ação | Fonte: Inter/system
   ============================================================ */
:root {
  /* Marca */
  --ca-yellow: #f4c960;
  --ca-yellow-dark: #e2a93b;
  --ca-yellow-soft: #fdf3d7;

  /* Ação */
  --ca-blue: #2271b1;
  --ca-blue-dark: #135e96;
  --ca-blue-soft: #e8f0fe;

  /* Texto */
  --ca-text: #1d2327;
  --ca-text-2: #3c434a;
  --ca-text-3: #646970;
  --ca-text-4: #787c82;
  --ca-text-5: #a7aaad;

  /* Superfícies e bordas */
  --ca-bg: #f6f7f7;
  --ca-surface: #ffffff;
  --ca-muted: #f0f0f1;
  --ca-border: #e2e4e7;
  --ca-border-2: #dcdcde;
  --ca-line: #f0f0f1;

  /* Semânticas */
  --ca-success: #007017;      --ca-success-bg: #e6f6e6;  --ca-success-bd: #bfe6bf;
  --ca-error: #b32d2e;        --ca-error-bg: #fcf0f1;    --ca-error-bd: #f0c0c2;
  --ca-warning: #8a6116;      --ca-warning-bg: #fcf9e8;  --ca-warning-bd: #f0e2a8;
  --ca-info: #2271b1;         --ca-info-bg: #e8f0fe;     --ca-info-bd: #c5d9ed;

  /* Raio */
  --ca-r-sm: 6px;
  --ca-r-md: 10px;
  --ca-r-lg: 12px;
  --ca-r-xl: 16px;
  --ca-r-pill: 999px;

  /* Sombras */
  --ca-sh-sm: 0 1px 2px rgba(0, 0, 0, .05);
  --ca-sh-md: 0 2px 8px rgba(0, 0, 0, .07);
  --ca-sh-lg: 0 12px 32px rgba(15, 23, 42, .14);

  /* Tipografia */
  --ca-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;

  /* Transições */
  --ca-t-fast: .15s ease;
  --ca-t-med: .25s ease;

  /* Gradientes */
  --ca-hero-grad: linear-gradient(135deg, #f7d57c 0%, #f4c960 45%, #eebf4e 100%);
}

/* ---- Dark mode (apenas no template standalone .ca-page) ---- */
@media (prefers-color-scheme: dark) {
  body.ca-page {
    --ca-text: #e8eaed;
    --ca-text-2: #c9ccd1;
    --ca-text-3: #a2a7ad;
    --ca-text-4: #8b9096;
    --ca-text-5: #6d7378;
    --ca-bg: #14171a;
    --ca-surface: #1d2327;
    --ca-muted: #2c3338;
    --ca-border: #3c434a;
    --ca-border-2: #50575e;
    --ca-line: #2c3338;
    --ca-yellow-soft: #3a3014;
    --ca-blue-soft: #1d2c3d;
    --ca-success-bg: #123018;  --ca-success-bd: #1f4d29;
    --ca-error-bg: #3a1a1b;    --ca-error-bd: #5f2a2c;
    --ca-info-bg: #1d2c3d;     --ca-info-bd: #2c4a68;
    --ca-sh-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --ca-sh-md: 0 2px 8px rgba(0, 0, 0, .5);
    --ca-sh-lg: 0 12px 32px rgba(0, 0, 0, .6);
  }
}
