/**
 * Social Battery Charger — design tokens (light + dark)
 */

:root {
  /* Color — light */
  --sbc-bg: #f6f7f9;
  --sbc-bg-subtle: #eef0f4;
  --sbc-surface: #ffffff;
  --sbc-surface-raised: #ffffff;
  --sbc-border: #e2e5eb;
  --sbc-border-strong: #cdd2dc;
  --sbc-text: #141820;
  --sbc-text-secondary: #4b5565;
  --sbc-text-muted: #6b7380;
  --sbc-accent: #2b59c3;
  --sbc-accent-hover: #234aa8;
  --sbc-accent-soft: #eef2fb;
  --sbc-accent-muted: #c7d4f0;
  --sbc-success: #0f766e;
  --sbc-success-soft: #ecfdf8;
  --sbc-warning: #b45309;
  --sbc-warning-soft: #fffbeb;
  --sbc-destructive: #b42318;
  --sbc-destructive-soft: #fef3f2;
  --sbc-positive: #0f766e;
  --sbc-negative: #b42318;

  /* Typography */
  --sbc-font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sbc-font-mono: ui-monospace, "SF Mono", "Cascadia Code", monospace;
  --sbc-text-xs: 0.75rem;
  --sbc-text-sm: 0.875rem;
  --sbc-text-base: 1rem;
  --sbc-text-lg: 1.125rem;
  --sbc-text-xl: 1.25rem;
  --sbc-text-2xl: 1.5rem;
  --sbc-text-3xl: clamp(1.875rem, 4vw, 2.75rem);
  --sbc-text-4xl: clamp(2.25rem, 5vw, 3.25rem);
  --sbc-leading-tight: 1.2;
  --sbc-leading-normal: 1.6;
  --sbc-leading-relaxed: 1.75;
  --sbc-weight-normal: 400;
  --sbc-weight-medium: 500;
  --sbc-weight-semibold: 600;
  --sbc-weight-bold: 700;

  /* Spacing */
  --sbc-space-1: 0.25rem;
  --sbc-space-2: 0.5rem;
  --sbc-space-3: 0.75rem;
  --sbc-space-4: 1rem;
  --sbc-space-5: 1.25rem;
  --sbc-space-6: 1.5rem;
  --sbc-space-8: 2rem;
  --sbc-space-10: 2.5rem;
  --sbc-space-12: 3rem;
  --sbc-space-16: 4rem;
  --sbc-space-20: 5rem;

  /* Radius & shadow */
  --sbc-radius-sm: 8px;
  --sbc-radius-md: 10px;
  --sbc-radius-lg: 12px;
  --sbc-radius-full: 9999px;
  --sbc-shadow-xs: 0 1px 2px rgba(20, 24, 32, 0.04);
  --sbc-shadow-sm: 0 1px 3px rgba(20, 24, 32, 0.06), 0 1px 2px rgba(20, 24, 32, 0.04);
  --sbc-shadow-md: 0 4px 12px rgba(20, 24, 32, 0.06), 0 2px 4px rgba(20, 24, 32, 0.04);
  --sbc-shadow-lg: 0 12px 32px rgba(20, 24, 32, 0.08), 0 4px 8px rgba(20, 24, 32, 0.04);
  --sbc-shadow-focus: 0 0 0 3px rgba(43, 89, 195, 0.22);

  /* Layout */
  --sbc-max-marketing: 1120px;
  --sbc-max-content: 720px;
  --sbc-max-app: 960px;
  --sbc-header-h: 4rem;
  --sbc-transition: 160ms cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --sbc-bg: #0f1117;
    --sbc-bg-subtle: #161922;
    --sbc-surface: #181b24;
    --sbc-surface-raised: #1e222d;
    --sbc-border: #2a2f3a;
    --sbc-border-strong: #3a4150;
    --sbc-text: #f3f4f6;
    --sbc-text-secondary: #c4c9d4;
    --sbc-text-muted: #9ca3af;
    --sbc-accent: #6b8fd9;
    --sbc-accent-hover: #8aa8e6;
    --sbc-accent-soft: #1a2540;
    --sbc-accent-muted: #2a3a5c;
    --sbc-success: #2dd4bf;
    --sbc-success-soft: #0d2a26;
    --sbc-warning: #fbbf24;
    --sbc-warning-soft: #2a2210;
    --sbc-destructive: #f87171;
    --sbc-destructive-soft: #2a1515;
    --sbc-positive: #2dd4bf;
    --sbc-negative: #f87171;
    --sbc-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.24);
    --sbc-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.28);
    --sbc-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.32);
    --sbc-shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.4);
    --sbc-shadow-focus: 0 0 0 3px rgba(107, 143, 217, 0.35);
  }
}

:root[data-theme="dark"] {
  --sbc-bg: #0f1117;
  --sbc-bg-subtle: #161922;
  --sbc-surface: #181b24;
  --sbc-surface-raised: #1e222d;
  --sbc-border: #2a2f3a;
  --sbc-border-strong: #3a4150;
  --sbc-text: #f3f4f6;
  --sbc-text-secondary: #c4c9d4;
  --sbc-text-muted: #9ca3af;
  --sbc-accent: #6b8fd9;
  --sbc-accent-hover: #8aa8e6;
  --sbc-accent-soft: #1a2540;
  --sbc-accent-muted: #2a3a5c;
  --sbc-success: #2dd4bf;
  --sbc-success-soft: #0d2a26;
  --sbc-warning: #fbbf24;
  --sbc-warning-soft: #2a2210;
  --sbc-destructive: #f87171;
  --sbc-destructive-soft: #2a1515;
  --sbc-positive: #2dd4bf;
  --sbc-negative: #f87171;
  --sbc-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.24);
  --sbc-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.28);
  --sbc-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.32);
  --sbc-shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.4);
  --sbc-shadow-focus: 0 0 0 3px rgba(107, 143, 217, 0.35);
}

:root[data-theme="light"] {
  color-scheme: light;
}

:root[data-theme="dark"] {
  color-scheme: dark;
}
