/*
 * Autorun design tokens for the marketing landing page.
 * Values mirror src/AutorunLearning.Web/src/styles/tokens.css (docs/DESIGN.md §3–§5); keep them in sync.
 */
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 300 800;
  src: url('fonts/open-sans-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 300 800;
  src: url('fonts/open-sans-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url('fonts/tajawal-arabic-400-normal.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011,
    U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url('fonts/tajawal-arabic-500-normal.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011,
    U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-display: swap;
  font-weight: 600 800;
  src: url('fonts/tajawal-arabic-700-normal.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011,
    U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

:root {
  --navy-50: #f0f4f9;
  --navy-100: #dce5f0;
  --navy-200: #b9cbe0;
  --navy-300: #8aa6c7;
  --navy-400: #5b7fa8;
  --navy-500: #3a5e88;
  --navy-600: #24466e;
  --navy-700: #123256;
  --navy-800: #082647;
  --navy-900: #001c3b;

  --cyan-50: #f1fbfe;
  --cyan-100: #e4f8fc;
  --cyan-200: #c2eff8;
  --cyan-300: #4ce0fa;
  --cyan-500: #14b8d6;
  --cyan-600: #0c8aa6;
  --cyan-700: #0a6f84;
  --cyan-800: #07515f;

  --gray-0: #ffffff;
  --gray-25: #fbfcfe;
  --gray-50: #f7f9fb;
  --gray-100: #f3f5f8;
  --gray-200: #eef1f6;
  --gray-300: #e4e8ee;
  --gray-350: #d3dae3;
  --gray-400: #7c8794;
  --gray-600: #4a5563;
  --gray-700: #3c4654;
  --gray-900: #0d1b2c;

  --color-canvas: var(--gray-100);
  --color-surface: var(--gray-0);
  --color-surface-sunken: var(--gray-50);
  --color-text: var(--gray-700);
  --color-text-strong: var(--gray-900);
  --color-text-muted: var(--gray-600);
  --color-border: var(--gray-300);
  --color-border-strong: var(--gray-350);
  --color-inverse: var(--navy-900);
  --color-inverse-raised: var(--navy-800);
  --color-on-inverse: var(--gray-0);
  --color-muted-on-inverse: var(--navy-200);
  --color-accent: var(--cyan-300);
  --color-on-accent: var(--navy-900);
  --color-link: var(--navy-500);
  --color-focus: var(--cyan-500);

  --gradient-hero: linear-gradient(125deg, var(--navy-900) 0%, var(--navy-800) 44%, var(--cyan-700) 135%);

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-section: clamp(var(--space-16), 10vw, 160px);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 20px;
  --radius-full: 9999px;

  --text-xs: 0.75rem;
  --text-sm: 0.8125rem;
  --text-md: 0.9375rem;
  --text-lg: 1.0625rem;
  --text-xl: 1.1875rem;
  --text-2xl: 1.375rem;
  --text-3xl: 1.75rem;
  --text-4xl: 2.125rem;
  --text-5xl: 2.75rem;
  --text-6xl: 3.5rem;
  --text-display: clamp(var(--text-5xl), 5.6vw, 4.75rem);
  --text-section: clamp(var(--text-3xl), 4vw, var(--text-6xl));

  --leading-body: 1.55;
  --leading-snug: 1.4;
  --leading-heading: 1.22;
  --leading-display: 1.08;

  --font-sans: 'Open Sans', 'Tajawal', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --weight-regular: 400;
  --weight-semibold: 600;
  --weight-bold: 700;

  --shadow-sm: 0 1px 2px rgb(13 27 44 / 6%), 0 1px 3px rgb(13 27 44 / 8%);
  --shadow-lg: 0 12px 32px -8px rgb(13 27 44 / 18%), 0 4px 10px -4px rgb(13 27 44 / 10%);
  --shadow-xl: 0 32px 80px -24px rgb(0 28 59 / 40%), 0 10px 24px -12px rgb(0 28 59 / 24%);

  --duration-instant: 90ms;
  --duration-fast: 150ms;
  --duration-base: 240ms;
  --duration-slow: 420ms;
  --duration-slower: 720ms;
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-emphasized: cubic-bezier(0.22, 1, 0.36, 1);

  --measure: 65ch;
  --page-max: 1240px;
  --gutter: clamp(var(--space-5), 5vw, var(--space-16));
}

html:lang(ar) {
  --font-sans: 'Tajawal', 'Open Sans', system-ui, -apple-system, 'Segoe UI', Tahoma, Arial, sans-serif;
  --leading-display: 1.3;
  --leading-heading: 1.4;
  --leading-body: 1.75;
}
