/* ==========================================================================
   MyroDeck app theme — single source of truth for the signed-in app
   (desktop.php, mobile.php, login, create, password/verify/SSO pages, admin).
   --------------------------------------------------------------------------
   The first block mirrors /assets/css/site.css (the marketing site) value for
   value. Change a colour or font there and here together; nothing in the app
   pages should hardcode a brand colour any more — use these tokens.
   Fonts: Space Grotesk (display) + Inter (body). Each page loads them with
   one <link> to Google Fonts (see any page <head>).
   ========================================================================== */
:root {
  /* ---- Marketing palette (identical to site.css) ---- */
  --ink: #0C2226;
  --ink-soft: #123138;
  --teal-deep: #0F766E;
  --teal: #1F9E8E;
  --teal-bright: #2BC4A8;
  --mint-50: #F3F9F7;
  --mint-100: #E6F3EF;
  --mint-200: #D3E9E2;
  --paper: #FFFFFF;
  --ink-text: #10262A;
  --ink-muted: #4D6B6B;
  --ink-faint: #86A19E;
  --line: #DCE9E4;
  --line-soft: #EAF2EF;
  --gold: #E1A23D;

  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  /* ---- App semantic tokens, mapped onto the palette above ---- */
  --text-main: var(--ink-text);
  --text-muted: var(--ink-muted);
  --text-faint: var(--ink-faint);
  --primary: var(--teal-deep);          /* white text on this passes AA */
  --primary-dark: #0B5C56;              /* hover / pressed */
  --primary-light: var(--mint-100);     /* tinted backgrounds */
  --accent: var(--teal-bright);         /* highlights on dark surfaces */
  --bg-app: var(--mint-50);
  --bg-card: var(--paper);
  --border: var(--line);
  --sidebar-bg: var(--ink);
  --sidebar-text: #9FC4BE;
  --sidebar-active: #FFFFFF;
  --sidebar-hover: var(--ink-soft);

  /* Status colours stay semantic (green/amber/red) so they never read as
     "brand"; danger is the marketing site's red. */
  --success: #15803D;
  --success-bg: #F0FDF4;
  --warning: #B45309;
  --warning-bg: #FFFBEB;
  --danger: #D2492F;
  --danger-bg: #FBEAE5;
  --danger-border: #F2C6B9;

  /* Tinted "insight" cards (getting started, AI insights) */
  --tint-from: var(--mint-50);
  --tint-to: var(--mint-100);
  --tint-border: var(--mint-200);
  --tint-text: #0B5C56;
}
