/* ==========================================================================
   Reloop Mobile — Design Tokens
   Single source of truth for colour, type, spacing, radius, motion.
   ========================================================================== */

:root {
  /* --- Core neutrals ---------------------------------------------------- */
  --ink-950: #05070a;
  --ink-900: #0a0d12;
  --ink-850: #0f131a;
  --ink-800: #141922;
  --ink-700: #1c2330;
  --ink-600: #283040;
  --ink-500: #3b4557;

  --grey-500: #6d7889;
  --grey-450: #7d8798;
  --grey-400: #98a2b1;
  --grey-300: #bcc4d0;
  --grey-200: #dde2ea;
  --grey-150: #e9edf3;
  --grey-100: #f2f5f9;
  --grey-50: #f8fafc;

  --white: #ffffff;

  /* --- Brand accents (dark parrot green) -------------------------------- */
  --blue-700: #055c36;
  --blue-600: #0a7d47;
  --blue-500: #0f9a57;
  --blue-400: #3cb87c;
  --blue-100: #d4f2e0;
  --blue-50: #edfaf3;

  --cyan-600: #0c8f60;
  --cyan-500: #16b374;
  --cyan-400: #4ad39c;
  --cyan-100: #dbf7e9;

  --green-600: #0d9b6c;
  --green-500: #12b981;
  --green-400: #34d399;
  --green-100: #dff7ee;

  --amber-500: #f0a427;
  --amber-100: #fdf1dc;

  --red-600: #d92d20;
  --red-500: #f04438;
  --red-100: #fee4e2;

  /* --- Semantic (light surface) ---------------------------------------- */
  --bg: var(--white);
  --bg-subtle: var(--grey-50);
  --bg-muted: var(--grey-100);
  --bg-inverse: var(--ink-950);
  --bg-elevated: var(--white);

  --text-strong: var(--ink-900);
  --text: var(--ink-800);
  --text-muted: var(--grey-500);
  --text-faint: var(--grey-400);
  --text-on-dark: var(--white);
  --text-on-dark-muted: rgba(255, 255, 255, 0.66);

  --border: var(--grey-200);
  --border-strong: var(--grey-300);
  --border-dark: rgba(255, 255, 255, 0.1);
  --border-dark-strong: rgba(255, 255, 255, 0.18);

  --accent: var(--blue-600);
  --accent-hover: var(--blue-700);
  --accent-soft: var(--blue-50);
  --focus-ring: 0 0 0 3px rgba(10, 125, 71, 0.32);

  /* --- Elevation -------------------------------------------------------- */
  --shadow-xs: 0 1px 2px rgba(10, 13, 18, 0.06);
  --shadow-sm: 0 2px 6px rgba(10, 13, 18, 0.06), 0 1px 2px rgba(10, 13, 18, 0.04);
  --shadow-md: 0 8px 20px -6px rgba(10, 13, 18, 0.12), 0 2px 6px rgba(10, 13, 18, 0.05);
  --shadow-lg: 0 22px 48px -16px rgba(10, 13, 18, 0.22), 0 4px 12px rgba(10, 13, 18, 0.06);
  --shadow-xl: 0 40px 80px -28px rgba(6, 10, 20, 0.35), 0 8px 24px rgba(10, 13, 18, 0.08);
  --shadow-dark: 0 30px 70px -30px rgba(0, 0, 0, 0.8);

  /* --- Radius ----------------------------------------------------------- */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-2xl: 36px;
  --r-pill: 999px;

  /* --- Spacing scale ---------------------------------------------------- */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-7: 32px;
  --s-8: 40px;
  --s-9: 56px;
  --s-10: 72px;
  --s-11: 96px;
  --s-12: 128px;

  /* --- Typography ------------------------------------------------------- */
  --font-display: "Plus Jakarta Sans", "Inter", system-ui, -apple-system,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-mono: "SFMono-Regular", ui-monospace, "JetBrains Mono", Menlo, Consolas,
    monospace;

  --fs-display: clamp(2.5rem, 1.35rem + 4.4vw, 4.5rem);
  --fs-h1: clamp(2.05rem, 1.3rem + 2.8vw, 3.3rem);
  --fs-h2: clamp(1.65rem, 1.15rem + 1.8vw, 2.4rem);
  --fs-h3: clamp(1.24rem, 1.05rem + 0.7vw, 1.55rem);
  --fs-h4: 1.125rem;
  --fs-lead: clamp(1.03rem, 0.98rem + 0.35vw, 1.22rem);
  --fs-body: 1rem;
  --fs-sm: 0.9375rem;
  --fs-xs: 0.8125rem;
  --fs-2xs: 0.75rem;

  --lh-tight: 1.06;
  --lh-snug: 1.24;
  --lh-normal: 1.55;
  --lh-relaxed: 1.7;

  --tracking-tight: -0.03em;
  --tracking-snug: -0.015em;
  --tracking-wide: 0.08em;
  --tracking-widest: 0.16em;

  /* --- Layout ----------------------------------------------------------- */
  --page-max: 1240px;
  --page-max-narrow: 880px;
  --page-max-flow: 1080px;
  --gutter: clamp(18px, 4vw, 40px);
  --header-h: 72px;

  /* --- Motion ----------------------------------------------------------- */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.5, 1);
  --t-fast: 140ms;
  --t-base: 240ms;
  --t-slow: 420ms;

  --z-header: 100;
  --z-drawer: 200;
  --z-toast: 300;
  --z-modal: 400;
}

/* Dark section scope — used by hero, CTA bands, admin shell */
.theme-dark {
  --bg: var(--ink-950);
  --bg-subtle: var(--ink-900);
  --bg-muted: var(--ink-850);
  --bg-elevated: var(--ink-850);
  --text-strong: var(--white);
  --text: rgba(255, 255, 255, 0.92);
  --text-muted: rgba(255, 255, 255, 0.6);
  --text-faint: rgba(255, 255, 255, 0.42);
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.2);
  --accent-soft: rgba(22, 179, 116, 0.18);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 12px 30px -10px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 30px 60px -22px rgba(0, 0, 0, 0.85);
}
