/* ==========================================================================
   MotionJoy landing page: tokens.css
   Same design tokens as the MotionJoy desktop app (design-system/tokens.css),
   so the website and the app look like one product.

   Rules:
   - Components use var(--...) tokens only. Raw values live here and nowhere else.
   - Lime is for dark backgrounds and small badges only, never text or buttons
     on light backgrounds (poor contrast).
   - Text on blue is always white. Blue text on cream/white uses --blue-600.
   - Status is never color alone: always an icon or words.
   ========================================================================== */

/* 1. FONT: bundled locally (no Google Fonts request) ---------------------- */
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-800-normal.woff2") format("woff2"); }

/* 2. TOKENS --------------------------------------------------------------- */
:root {
  /* Brand */
  --blue-50:  #F0F3FE;
  --blue-100: #E4E9FD;
  --blue-200: #C5CFFA;
  --blue-300: #9AA9F7;
  --blue-500: #496AF1;   /* primary: white text on it is 4.55:1 */
  --blue-600: #3D5BD4;   /* links and hover on light backgrounds */
  --blue-700: #3249B0;   /* pressed state, text on blue-100 */

  --lime-300: #EFEE6B;
  --lime-400: #E6E51E;   /* accent: dark backgrounds and small badges only */

  /* Neutrals */
  --ink-900: #292929;
  --ink-800: #333333;
  --ink-700: #4D4D4D;
  --ink-500: #737373;    /* captions only, never lighter */
  --ink-300: #B3B3B3;    /* secondary text on dark */
  --ink-200: #E4E4E4;
  --ink-100: #F0EDE9;
  --cream:   #FFFBF7;
  --white:   #FFFFFF;

  /* Status */
  --success-50: #E5F6EC;  --success-500: #1F9D55;  --success-700: #176B3A;
  --warning-50: #FFF2DB;  --warning-500: #E08A00;  --warning-700: #8A5300;

  /* Semantic aliases */
  --color-bg:            var(--cream);
  --color-surface:       var(--white);
  --color-border:        var(--ink-900);
  --color-text:          var(--ink-900);
  --color-text-muted:    var(--ink-700);
  --color-text-subtle:   var(--ink-500);
  --color-link:          var(--blue-600);
  --color-primary:       var(--blue-500);
  --color-primary-hover: var(--blue-600);
  --color-primary-press: var(--blue-700);
  --color-on-primary:    var(--white);
  --color-dark:          var(--ink-900);
  --color-on-dark:       var(--white);
  --color-on-dark-muted: var(--ink-300);
  --color-focus:         var(--blue-600);

  /* Typography */
  --font-sans: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --fw-regular: 400; --fw-medium: 500; --fw-semibold: 600; --fw-bold: 700; --fw-extrabold: 800;

  --text-caption: 0.875rem;   /* 14 */
  --text-body:    1rem;       /* 16 phone */
  --text-lead:    1.125rem;   /* 18 */
  --text-h3:      1.25rem;    /* 20 */
  --text-h2:      1.75rem;    /* 28 phone */
  --text-display: 2.375rem;   /* 38 phone */

  --lh-tight: 1.1;
  --lh-snug:  1.3;
  --lh-body:  1.55;

  /* Spacing (multiples of 4) */
  --space-1: 0.25rem; --space-2: 0.5rem;  --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.25rem; --space-6: 1.5rem;  --space-8: 2rem;    --space-12: 3rem;
  --space-16: 4rem;   --space-24: 6rem;

  --section-pad: 3.5rem;      /* 56 phone */
  --gutter: 1rem;             /* 16 phone */
  --container: 1120px;

  /* Shape */
  --radius-sm: 8px; --radius-md: 12px; --radius-lg: 16px; --radius-xl: 24px; --radius-pill: 999px;
  --border-w: 2px;
  --border-w-thin: 1px;

  /* Elevation: "pop" shadows only, no blur */
  --shadow-pop:      0 3px 0 var(--ink-900);
  --shadow-pop-blue: 0 3px 0 var(--blue-700);
  --shadow-pop-lg:   0 6px 0 var(--ink-900);

  /* Motion */
  --dur-fast: 120ms;
  --dur-base: 200ms;
  --ease-out: cubic-bezier(.2, .8, .2, 1);

  --target-min: 48px;
}

/* Larger type and spacing from 600 px up */
@media (min-width: 600px) {
  :root { --gutter: 1.5rem; --text-body: 1.125rem; --text-lead: 1.25rem; --text-h2: 2.25rem; --text-display: 3.5rem; --section-pad: 6rem; }
}
@media (min-width: 900px) {
  :root { --section-pad: 6rem; }
}

/* 3. BASE ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: var(--lh-body);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, ol, figure, dl { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--color-link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:where(a, button, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
