/* ================================================================
   Mylemans Online: Design System Tokens
   colors_and_type.css
   ================================================================ */

/* ----------------------------------------------------------------
   BASE COLOR PALETTE
   ---------------------------------------------------------------- */
:root {
  /* --- Navy / Slate scale (dark base) --- */
  --navy-950: #020617;   /* page bg dark */
  --navy-900: #0b0f1a;   /* cookie banner */
  --navy-800: #0f172a;   /* elevated surface dark */
  --navy-750: #0b1120;   /* surface-300 dark */
  --navy-700: #1e293b;   /* surface-400 dark */
  --navy-600: #334155;   /* surface-500 dark */

  /* --- Slate / Gray scale (text + borders) --- */
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --gray-400: #9ca3af;   /* muted text dark */
  --gray-500: #6b7280;   /* muted text light */
  --gray-200: #e5e7eb;   /* text dark / surface light */
  --gray-100: #f3f4f6;
  --gray-50:  #f5f5f7;   /* page bg light */

  /* --- Blue accent scale --- */
  --blue-400: #60a5fa;
  --blue-500: #3b82f6;   /* accent dark */
  --blue-600: #2563eb;   /* accent light / primary btn start */
  --blue-700: #1d4ed8;   /* primary-700 */
  --sky-400:  #38bdf8;   /* primary btn end / brand-mark gradient */

  /* --- Stripe purple (used on license CTAs) --- */
  --stripe-purple: #635bff;
  --stripe-purple-hover: #5047ff;

  /* --- Pure values --- */
  --white: #ffffff;
  --black: #000000;
}

/* ----------------------------------------------------------------
   SEMANTIC THEME TOKENS: Light (default)
   ---------------------------------------------------------------- */
:root,
[data-theme="light"] {
  --color-bg:            var(--gray-50);
  --color-bg-alt:        var(--white);
  --color-surface:       var(--white);
  --color-surface-100:   var(--white);
  --color-surface-200:   #e5e7eb;
  --color-surface-300:   #e5e7eb;
  --color-surface-400:   #d1d5db;
  --color-surface-500:   #9ca3af;

  --color-text:          #0f172a;
  --color-text-muted:    var(--gray-500);
  --color-text-secondary:var(--gray-500);

  --color-border:        rgba(15, 23, 42, 0.08);
  --color-border-strong: rgba(15, 23, 42, 0.18);

  --color-accent:        var(--blue-600);
  --color-accent-soft:   rgba(37, 99, 235, 0.12);

  --color-primary-500:   var(--blue-500);
  --color-primary-600:   var(--blue-600);
  --color-primary-700:   var(--blue-700);

  --shadow-soft:         0 18px 40px rgba(15, 23, 42, 0.12);
}

/* ----------------------------------------------------------------
   SEMANTIC THEME TOKENS: Dark
   ---------------------------------------------------------------- */
[data-theme="dark"] {
  --color-bg:            var(--navy-950);
  --color-bg-alt:        var(--navy-950);
  --color-surface:       var(--navy-950);
  --color-surface-100:   var(--navy-950);
  --color-surface-200:   var(--navy-800);
  --color-surface-300:   var(--navy-750);
  --color-surface-400:   var(--navy-700);
  --color-surface-500:   var(--navy-600);

  --color-text:          var(--gray-200);
  --color-text-muted:    var(--gray-400);
  --color-text-secondary:var(--gray-400);

  --color-border:        rgba(148, 163, 184, 0.25);
  --color-border-strong: rgba(148, 163, 184, 0.5);

  --color-accent:        var(--blue-500);
  --color-accent-soft:   rgba(59, 130, 246, 0.12);

  --color-primary-500:   var(--blue-500);
  --color-primary-600:   var(--blue-600);
  --color-primary-700:   var(--blue-700);

  --shadow-soft:         0 24px 60px rgba(15, 23, 42, 0.75);
}

/* ----------------------------------------------------------------
   GRADIENTS
   ---------------------------------------------------------------- */
:root {
  --gradient-primary-btn: linear-gradient(135deg, #2563eb, #38bdf8);
  --gradient-section-alt: radial-gradient(circle at top, rgba(37,99,235,0.09), transparent 55%),
                          linear-gradient(to bottom, rgba(148,163,184,0.06), transparent);
  --gradient-hero-card:   radial-gradient(circle at top left, rgba(37,99,235,0.22), transparent 60%),
                          linear-gradient(to bottom right, rgba(15,23,42,0.92), rgba(15,23,42,0.95));
  --gradient-footer:      radial-gradient(circle at top, rgba(15,23,42,0.85), #020617);
  --gradient-newsletter:  linear-gradient(135deg, rgba(37,99,235,0.12), rgba(59,130,246,0.25));
  --gradient-brand-mark:  radial-gradient(circle at 10% 10%, #38bdf8, #2563eb);
}

/* ----------------------------------------------------------------
   BORDER RADIUS
   ---------------------------------------------------------------- */
:root {
  --radius-sm:   12px;   /* form inputs */
  --radius-md:   14px;   /* cookie banner */
  --radius-lg:   18px;   /* cards, video frames, merch images */
  --radius-xl:   26px;   /* hero cards / primary panels */
  --radius-full: 999px;  /* pills / buttons */
}

/* ----------------------------------------------------------------
   SHADOWS
   ---------------------------------------------------------------- */
:root {
  --shadow-card:    0 18px 40px rgba(15, 23, 42, 0.05);
  --shadow-video:   0 18px 40px rgba(15, 23, 42, 0.35);
  --shadow-btn-primary: 0 12px 30px rgba(37, 99, 235, 0.5);
  --shadow-btn-stripe:  0 10px 25px rgba(99, 91, 255, 0.45);
  --shadow-soft-light:  0 18px 40px rgba(15, 23, 42, 0.12);
  --shadow-soft-dark:   0 24px 60px rgba(15, 23, 42, 0.75);
}

/* ----------------------------------------------------------------
   TYPOGRAPHY: SCALE
   ---------------------------------------------------------------- */
:root {
  /* Font stack */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  /* No custom/webfonts; system UI stack throughout */

  /* Size scale */
  --text-xs:   0.78rem;  /* metric labels, captions */
  --text-sm:   0.8rem;   /* eyebrow, footer links */
  --text-base: 0.9rem;   /* nav links, card body, buttons, meta */
  --text-md:   0.95rem;  /* brand text, form inputs */
  --text-lg:   1rem;     /* card headings (h3), body */
  --text-xl:   1.1rem;   /* metric values, hero-card h2 */
  --text-2xl:  1.9rem;   /* section headings (h2) */
  --text-hero: clamp(2.1rem, 3vw, 2.7rem); /* page h1 */

  /* Weight */
  --weight-normal:  400;
  --weight-medium:  500;
  --weight-semibold:600;
  --weight-bold:    700;

  /* Letter spacing */
  --tracking-tight:  -0.03em;  /* h1 */
  --tracking-normal:  0;
  --tracking-wide:    0.02em;  /* brand text */
  --tracking-widest:  0.14em;  /* eyebrow */
}

/* ----------------------------------------------------------------
   SEMANTIC TYPE ROLES
   ---------------------------------------------------------------- */

/* Page title / Hero */
.t-h1 {
  font-family: var(--font-sans);
  font-size: var(--text-hero);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
  line-height: 1.15;
  margin: 0 0 1rem;
}

/* Section heading */
.t-h2 {
  font-family: var(--font-sans);
  font-size: var(--text-2xl);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-normal);
  margin: 0 0 0.5rem;
}

/* Card / panel heading */
.t-h3 {
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  margin: 0 0 0.6rem;
}

/* Eyebrow label */
.t-eyebrow {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0 0 0.75rem;
}

/* Body text */
.t-body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--weight-normal);
  line-height: 1.6;
  color: var(--color-text-muted);
}

/* Meta / caption */
.t-meta {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Metric value */
.t-metric {
  font-family: var(--font-sans);
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
}

/* Link */
.t-link {
  color: var(--color-accent);
  font-size: var(--text-base);
  text-decoration: none;
}
.t-link:hover { text-decoration: underline; }

/* Nav label */
.t-nav {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--weight-normal);
  opacity: 0.86;
}

/* Button label */
.t-btn {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--weight-normal);
  white-space: nowrap;
}
