/* LetsTalk Design System — colors & type tokens
 * Sources:
 *   - Figma: /Colors, /Typography, /Shadows (Tailwind v4 base + brand accents)
 *   - Brand accents: Landing, Parent Dashboard, Learning activities
 */

/* ===== FONTS ===== */
/* Playpen Sans Arabic — primary brand typeface (headings + body Arabic) */
@import url('https://fonts.googleapis.com/css2?family=Playpen+Sans+Arabic:wght@400;500;600;700;800&display=swap');
/* Geist — UI chrome, English, numerics */
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700;800&family=Geist+Mono:wght@400;500&display=swap');
/* Inter — Latin fallback for some component internals */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* ===== BRAND ACCENTS ===== */
  --brand-cyan:          #00B4D8;   /* primary CTA, links, active */
  --brand-cyan-hover:    #0099B8;   /* hover darken */
  --brand-cyan-soft:     #90E0EF;   /* activity card accent */
  --brand-cyan-pale:     #E8F4F8;   /* hover surface, card gradient top */
  --brand-cyan-tint:     rgba(0,180,216,.15);
  --brand-cyan-glow:     rgba(0,128,153,.25);

  --brand-navy:          #1B2631;   /* headings, dark band */
  --brand-coral:         #FF6F61;   /* secondary CTA (screening) */
  --brand-coral-pale:    #FFF5F4;   /* features band bg */
  --brand-mustard:       #FFDB58;   /* tertiary CTA (consult), avatar bg */
  --brand-mustard-pale:  rgba(255,219,88,.15);

  /* ===== NEUTRALS (Tailwind neutral scale) ===== */
  --neutral-50:  #FAFAFA;
  --neutral-100: #F5F5F5;
  --neutral-200: #E5E5E5;
  --neutral-300: #D4D4D4;
  --neutral-400: #A3A3A3;
  --neutral-500: #737373;
  --neutral-600: #525252;
  --neutral-700: #404040;
  --neutral-800: #262626;
  --neutral-900: #171717;
  --neutral-950: #0A0A0A;

  /* ===== SLATE (muted cool neutrals used for meta copy) ===== */
  --slate-100: #F1F5F9;
  --slate-200: #E2E8F0;
  --slate-300: #CBD5E1;
  --slate-400: #94A3B8;
  --slate-500: #64748B;
  --slate-muted: #9BA4B5; /* figma-specific muted blue-gray for subtitles */

  /* ===== SEMANTIC (from Tailwind red/green/amber/sky) ===== */
  --danger:      #EF4444;
  --danger-700:  #B91C1C;
  --danger-pale: #FEE2E2;
  --success:     #27AE60;  /* figma rgb(39,174,96) */
  --success-10:  #10B981;
  --warning:     #F59E0B;
  --info:        #3F8DFF;  /* figma rgb(63,141,255) */
  --info-pale:   #BFDBFE;

  /* ===== FOREGROUND / BACKGROUND SEMANTIC ===== */
  --fg-1:        var(--neutral-950);     /* primary text */
  --fg-navy:     var(--brand-navy);       /* arabic headings */
  --fg-2:        var(--neutral-600);      /* secondary text */
  --fg-3:        var(--slate-muted);      /* tertiary / muted */
  --fg-4:        var(--neutral-400);      /* placeholder */
  --fg-on-brand: #FFFFFF;

  --bg-page:     var(--neutral-50);
  --bg-surface:  #FFFFFF;
  --bg-subtle:   var(--neutral-100);
  --bg-coral:    var(--brand-coral-pale);
  --bg-navy:     var(--brand-navy);

  --border-1:    var(--neutral-200);
  --border-hair: #EDEDED;
  --border-muted: rgba(155,164,181,.25);
  --border-focus: var(--brand-cyan);

  /* ===== TYPOGRAPHY ===== */
  --font-arabic: "Playpen Sans Arabic", "Geist", system-ui, sans-serif;
  --font-ui:     "Geist", "Inter", system-ui, -apple-system, sans-serif;
  --font-mono:   "Geist Mono", ui-monospace, monospace;

  /* type scale */
  --text-h1:       48px;
  --text-h2:       36px;
  --text-h3:       24px;
  --text-h4:       20px;
  --text-lg:       16px;
  --text-md:       14px;
  --text-sm:       13px;
  --text-xs:       12px;
  --text-2xs:      11px;

  --weight-regular:  400;
  --weight-medium:   500;
  --weight-semibold: 600;
  --weight-bold:     700;

  --lh-tight:  1.0;
  --lh-snug:   1.2;
  --lh-normal: 1.5;
  --lh-loose:  1.7;

  /* ===== RADIUS ===== */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 10px;
  --r-xl: 12px;
  --r-2xl: 16px;
  --r-full: 9999px;

  /* ===== SPACING (Tailwind 4-pt scale — common steps) ===== */
  --sp-1:  4px;
  --sp-2:  8px;
  --sp-3:  12px;
  --sp-4:  16px;
  --sp-5:  20px;
  --sp-6:  24px;
  --sp-8:  32px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-20: 80px;

  /* ===== SHADOWS (Tailwind scale) ===== */
  --shadow-2xs: 0 1px 0 0 rgba(0,0,0,.05);
  --shadow-xs:  0 1px 2px 0 rgba(0,0,0,.05);
  --shadow-sm:  0 1px 3px 0 rgba(0,0,0,.1), 0 1px 2px -1px rgba(0,0,0,.1);
  --shadow-md:  0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
  --shadow-lg:  0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
  --shadow-xl:  0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,.25);
  /* brand-tinted glows */
  --shadow-cyan-sm: 0 4px 12px 0 rgba(0,128,153,.25);
  --shadow-cyan-md: 0 4px 16px 0 rgba(0,102,128,.20);

  /* ===== MOTION ===== */
  --ease-out: cubic-bezier(.22,.61,.36,1);
  --dur-fast: 120ms;
  --dur-base: 180ms;
  --dur-slow: 250ms;
}

/* ===== SEMANTIC TYPE CLASSES (paired with the Typography page) ===== */
.h1 { font-family: var(--font-arabic); font-size: var(--text-h1); font-weight: var(--weight-bold); line-height: var(--lh-tight); letter-spacing: -.01em; color: var(--fg-navy); }
.h2 { font-family: var(--font-arabic); font-size: var(--text-h2); font-weight: var(--weight-bold); line-height: var(--lh-tight); color: var(--fg-navy); }
.h3 { font-family: var(--font-arabic); font-size: var(--text-h3); font-weight: var(--weight-bold); line-height: var(--lh-snug); color: var(--fg-navy); }
.h4 { font-family: var(--font-arabic); font-size: var(--text-h4); font-weight: var(--weight-semibold); line-height: var(--lh-snug); color: var(--fg-navy); }

.p-lg         { font-family: var(--font-arabic); font-size: var(--text-lg); font-weight: var(--weight-regular); line-height: var(--lh-loose); color: var(--fg-2); }
.p-lg-medium  { font-family: var(--font-arabic); font-size: var(--text-lg); font-weight: var(--weight-medium); line-height: var(--lh-loose); color: var(--fg-2); }
.p-lg-bold    { font-family: var(--font-arabic); font-size: var(--text-lg); font-weight: var(--weight-bold); line-height: var(--lh-loose); color: var(--fg-navy); }
.p            { font-family: var(--font-arabic); font-size: var(--text-md); font-weight: var(--weight-regular); line-height: var(--lh-loose); color: var(--fg-2); }
.p-medium     { font-family: var(--font-arabic); font-size: var(--text-md); font-weight: var(--weight-medium); line-height: var(--lh-loose); color: var(--fg-2); }
.p-bold       { font-family: var(--font-arabic); font-size: var(--text-md); font-weight: var(--weight-bold); line-height: var(--lh-loose); color: var(--fg-navy); }
.p-sm         { font-family: var(--font-arabic); font-size: var(--text-sm); font-weight: var(--weight-regular); line-height: var(--lh-loose); color: var(--fg-3); }
.p-sm-medium  { font-family: var(--font-arabic); font-size: var(--text-sm); font-weight: var(--weight-medium); line-height: var(--lh-loose); color: var(--fg-3); }
.p-mini       { font-family: var(--font-arabic); font-size: var(--text-2xs); font-weight: var(--weight-regular); line-height: var(--lh-loose); color: var(--fg-3); }

.caption      { font-family: var(--font-ui); font-size: var(--text-2xs); font-weight: var(--weight-medium); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); }
.mono         { font-family: var(--font-mono); font-size: var(--text-md); color: var(--fg-2); }

/* Geist variants for UI chrome + numbers */
.ui-h3        { font-family: var(--font-ui); font-size: var(--text-h3); font-weight: var(--weight-semibold); line-height: var(--lh-snug); color: var(--fg-1); letter-spacing: -.01em; }
.ui-label     { font-family: var(--font-ui); font-size: var(--text-md); font-weight: var(--weight-medium); color: var(--fg-1); }
.ui-meta      { font-family: var(--font-ui); font-size: var(--text-xs); font-weight: var(--weight-regular); color: var(--fg-2); letter-spacing: .015em; }
.num          { font-family: var(--font-ui); font-variant-numeric: tabular-nums; font-weight: var(--weight-semibold); color: var(--fg-1); }
