/* ==========================================================================
   Textcrest design tokens
   One source of truth for color, type, radius and motion. Shared by the
   marketing site and (from Stage 3) the messaging workspace.
   ========================================================================== */

:root {
  /* Ink and text */
  --ink: #0B1220;            /* primary text, dark surfaces, app sidebar */
  --text: #1A2233;           /* body text */
  --muted: #475467;          /* muted text */
  --label: #5B6475;          /* small labels */
  --on-dark: #FFFFFF;
  --on-dark-muted: #B6BFCE;

  /* Brand (from the logo) */
  --brand-navy: #0F2B57;      /* "Text" wordmark, dark bands */
  --brand-navy-deep: #0A1F42;
  --brand-blue: #1A4F9C;      /* bubble top */
  --brand-teal: #0E9AA0;      /* bubble bottom, "crest" wordmark (graphics and large text) */
  --brand-teal-text: #0A7479; /* teal that passes 4.5:1 on white for small text */
  --teal-soft: #E2F5F4;
  --teal-softer: #F1FAF9;
  --blue-soft: #E8EFFB;
  --grad-brand: linear-gradient(135deg, #1A4F9C 0%, #1268A6 45%, #0E9AA0 100%);
  --grad-deep: linear-gradient(135deg, #0A1F42 0%, #0F2B57 50%, #0B4A68 100%);

  /* Accent */
  --accent: #1D4ED8;         /* primary buttons, links, outgoing messages */
  --accent-hover: #1A43BF;
  --accent-active: #1739A3;
  --accent-soft: #EEF3FE;

  /* Lines and surfaces */
  --border: #E5E7EB;
  --border-input: #D0D5DD;
  --bg: #FFFFFF;
  --bg-subtle: #F6F7F9;
  --bg-subtle-2: #FAFBFC;
  --bg-hover: #F2F4F7;

  /* Feedback */
  --danger: #B42318;
  --success: #067647;
  --success-soft: #E7F6EC;

  /* Conversation status (card background / label background / label text) */
  --status-flagged-bg: #FDEDEB;   --status-flagged-label: #F9D6D1;  --status-flagged-text: #9F1C12;
  --status-followup-bg: #FEF5E4;  --status-followup-label: #FBE6BF; --status-followup-text: #7A4A00;
  --status-unread-bg: #EBF2FE;    --status-unread-label: #DCE7FD;   --status-unread-text: #1E3A8A;
  --status-pinned-bg: #F4F0FD;    --status-pinned-text: #5B2EA6;

  /* Type */
  --font-head: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Radius */
  --radius-sm: 6px;          /* inputs, small buttons */
  --radius: 8px;             /* buttons, tiles */
  --radius-lg: 12px;         /* panels, modals */

  /* Elevation (used sparingly) */
  --shadow-menu: 0 16px 32px -16px rgba(11, 18, 32, 0.16), 0 2px 6px rgba(11, 18, 32, 0.04);
  --shadow-float: 0 8px 24px -8px rgba(11, 18, 32, 0.18), 0 1px 3px rgba(11, 18, 32, 0.06);

  /* Motion */
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --t-fast: 150ms;
  --t: 180ms;

  /* Layout */
  --header-h: 64px;
  --container: 1200px;
  --gutter: 24px;
  --focus-ring: 0 0 0 2px #FFFFFF, 0 0 0 4px var(--accent);
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
}
