/* ClipMatrix Signal: one design-token source for the public site and the app.
 * Loading this file does not select an app theme or alter the old UI.
 * The public site uses the dark defaults. App activation: data-app-theme="signal".
 * data-cm-theme="light" is a palette contract, not a new user preference/toggle.
 */
@font-face { font-family: Inter; src: url('/fonts/inter-var.ttf') format('truetype'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: Geist; src: url('/fonts/geist-var.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('/fonts/geist-mono-var.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --cm-font: Inter, Arial, sans-serif;
  --cm-font-brand: Geist, Inter, Arial, sans-serif;
  --cm-font-editor: Geist, Inter, -apple-system, sans-serif;
  --cm-font-mono: 'Geist Mono', Menlo, monospace;
  --cm-radius-xs: 6px;
  --cm-radius-sm: 10px;
  --cm-radius-md: 14px;
  --cm-radius-lg: 20px;
  --cm-radius-xl: 24px;
  --cm-radius-pill: 999px;
  --cm-control-weight: 500;
  --cm-control-radius: var(--cm-radius-pill);
  --cm-field-radius: var(--cm-radius-md);
  --cm-card-radius: var(--cm-radius-lg);
  --cm-ease: cubic-bezier(.2,.7,.2,1);
  --cm-transition: 180ms var(--cm-ease);
}

:root, [data-cm-theme="dark"] {
  --cm-color-scheme: dark;
  --cm-bg: #000;
  --cm-surface: #0d0d0d;
  --cm-surface-2: #151515;
  --cm-surface-3: #1d1d1d;
  --cm-text: #f3f3f0;
  --cm-muted: #a3a39f;
  --cm-soft: #c6c6c2;
  --cm-faint: #8f8f8b;
  --cm-line: #ffffff12;
  --cm-line-2: #ffffff1f;
  --cm-line-3: #ffffff40;
  --cm-accent: #fff;
  --cm-accent-rgb: 255 255 255;
  --cm-accent-ink: #111;
  --cm-accent-soft: #ffffff10;
  --cm-button-bg: #f1f1ee;
  --cm-button-hover: #fff;
  --cm-button-ink: #111;
  --cm-field-bg: #151515;
  --cm-field-border: #ffffff24;
  --cm-hover: #ffffff0d;
  --cm-selected: #ffffff14;
  --cm-focus: #fff;
  --cm-focus-soft: #ffffff0a;
  --cm-header-bg: #0a0a0ac9;
  --cm-menu-bg: #111;
  --cm-overlay: #000a;
  --cm-shadow: 0 30px 80px #000a;
  --cm-ok: #c9c9c4;
  --cm-ok-soft: #ffffff0d;
  --cm-warn: #ffb454;
  --cm-warn-soft: #ffb45414;
  --cm-danger: #ff8b9b;
  --cm-danger-soft: #ff6b7f12;
  --cm-info: #9fc5ff;
  --cm-info-soft: #9fc5ff12;
  --cm-cap: #ffe66d;
  /* Exact lower.css palette, shared by the landing calendar/pricing/footer. */
  --cm-lower-card: #151515;
  --cm-lower-panel: #1c1c1c;
  --cm-lower-hover: #262626;
  --cm-lower-text: #ededeb;
  --cm-lower-muted: #939392;
  --cm-lower-faint: #646462;
  --cm-lower-border: #ffffff0d;
  --cm-lower-soft: #ffffff05;
  --cm-lower-paper: #efefeb;
  --cm-lower-on-paper: #151515;
  /* editor3.py's retokenized production editor. Content colours stay in content. */
  --cm-editor-bg: #0a0a0a;
  --cm-editor-panel: #050505;
  --cm-editor-raised: #111;
  --cm-editor-hover: #171717;
  --cm-editor-text: #f2f2ef;
  --cm-editor-muted: #a4a4a0;
  --cm-editor-faint: #6f6f6b;
  --cm-editor-selection: #9fc5ff;
  --cm-editor-selection-rgb: 159 197 255;
  --cm-editor-selection-soft: #9fc5ff1a;
  --cm-editor-line: #ffffff12;
  --cm-editor-line-2: #ffffff26;
  --cm-editor-line-3: #ffffff40;
  --cm-editor-stage: radial-gradient(70% 60% at 50% 40%,#101010,#070707 80%);
  --cm-editor-preview: radial-gradient(60% 60% at 50% 60%,#232323,#141414);
}

[data-cm-theme="light"] {
  --cm-color-scheme: light;
  --cm-bg: #f6f6f2;
  --cm-surface: #fff;
  --cm-surface-2: #eaeae6;
  --cm-surface-3: #ddddd7;
  --cm-text: #151515;
  --cm-muted: #686863;
  --cm-soft: #41413e;
  --cm-faint: #70706a;
  --cm-line: #00000012;
  --cm-line-2: #00000024;
  --cm-line-3: #00000040;
  --cm-accent: #191919;
  --cm-accent-rgb: 25 25 25;
  --cm-accent-ink: #f6f6f1;
  --cm-accent-soft: #0000000d;
  --cm-button-bg: #191919;
  --cm-button-hover: #333;
  --cm-button-ink: #f6f6f1;
  --cm-field-bg: #fff;
  --cm-field-border: #00000024;
  --cm-hover: #00000008;
  --cm-selected: #00000010;
  --cm-focus: #191919;
  --cm-focus-soft: #0000000a;
  --cm-header-bg: #f6f6f2e6;
  --cm-menu-bg: #fff;
  --cm-overlay: #0005;
  --cm-shadow: 0 30px 80px #0002;
  --cm-ok: #41413e;
  --cm-ok-soft: #00000008;
  --cm-warn: #8c4a00;
  --cm-warn-soft: #9955000d;
  --cm-danger: #ae2340;
  --cm-danger-soft: #ae23400d;
  --cm-info: #245da8;
  --cm-info-soft: #245da810;
  --cm-lower-card: #eaeae6;
  --cm-lower-panel: #f6f6f2;
  --cm-lower-hover: #ddddd7;
  --cm-lower-text: #151515;
  --cm-lower-muted: #686863;
  --cm-lower-faint: #81817b;
  --cm-lower-border: #0000000e;
  --cm-lower-soft: #00000003;
  --cm-lower-paper: #191919;
  --cm-lower-on-paper: #f6f6f1;
  --cm-editor-bg: #f6f6f2;
  --cm-editor-panel: #fff;
  --cm-editor-raised: #eaeae6;
  --cm-editor-hover: #ddddd7;
  --cm-editor-text: #151515;
  --cm-editor-muted: #686863;
  --cm-editor-faint: #70706a;
  --cm-editor-selection: #245da8;
  --cm-editor-selection-rgb: 36 93 168;
  --cm-editor-selection-soft: #245da81a;
  --cm-editor-line: #00000012;
  --cm-editor-line-2: #00000026;
  --cm-editor-line-3: #00000040;
  --cm-editor-stage: radial-gradient(70% 60% at 50% 40%,#eee,#ddd 80%);
  --cm-editor-preview: radial-gradient(60% 60% at 50% 60%,#ddd,#eee);
}
