/* ============================================================
   Ryan Broughton Team — Design Tokens
   Drop-in CSS. Import once at the root of any HTML file.
   ============================================================ */

/* --- Web fonts (Google Fonts substitutes — see README caveats) --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Manrope:wght@300;400;500;600;700&family=Sacramento&display=swap');

:root {
  /* ============================================================
     COLOR — Base palette
     Sampled from the master co-brand lockup PNGs.
     ============================================================ */

  /* Charcoal — primary text & dark surfaces */
  --color-charcoal-900: #1a1b1d;
  --color-charcoal-800: #2a2b2d;
  --color-charcoal-700: #3a3b3e;
  --color-charcoal-600: #444345;  /* sampled from NEO hexagon body */
  --color-charcoal-500: #5a5b5e;
  --color-charcoal-400: #7a7b7e;
  --color-charcoal-300: #a0a1a4;

  /* Sky — single brand accent. Sampled from NEO infinity mark + NEO wordmark */
  --color-sky-700: #1f8db8;
  --color-sky-600: #2ea8d5;
  --color-sky-500: #52c8ef;   /* PRIMARY brand blue */
  --color-sky-400: #7ed5f2;
  --color-sky-300: #aae3f5;
  --color-sky-200: #d5f0fa;
  --color-sky-100: #ecf8fd;

  /* Neutral — cool grays for borders, dividers, off-white surfaces */
  --color-neutral-900: #111418;
  --color-neutral-800: #1f242b;
  --color-neutral-700: #374151;
  --color-neutral-600: #4b5563;
  --color-neutral-500: #6b7280;
  --color-neutral-400: #9ca3af;
  --color-neutral-300: #d1d5db;
  --color-neutral-200: #e5e7eb;
  --color-neutral-100: #f3f4f6;
  --color-neutral-50:  #f7f8fa;

  /* Warm neutrals — for alternating section backgrounds */
  --color-bone-100: #f5f2ec;
  --color-bone-200: #ebe6db;
  --color-bone-300: #d6cfbf;

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

  /* Semantic — status colors. Muted, never pure web colors. */
  --color-success-500: #2f9e6b;
  --color-success-100: #e3f4eb;
  --color-warning-500: #c08a1e;
  --color-warning-100: #faf0d7;
  --color-danger-500:  #c0392b;
  --color-danger-100:  #fbe7e4;

  /* ============================================================
     COLOR — Semantic tokens
     Always reference these in components, not the base palette.
     ============================================================ */

  /* Foreground (text + icons) */
  --color-fg-1: var(--color-charcoal-600);   /* default body & headings */
  --color-fg-2: var(--color-charcoal-500);   /* secondary body */
  --color-fg-3: var(--color-neutral-500);    /* muted / metadata */
  --color-fg-4: var(--color-neutral-400);    /* disabled / disclaimer */
  --color-fg-inverse: var(--color-white);
  --color-fg-accent: var(--color-sky-600);   /* links, accents — sky-600 has better contrast than 500 on white */

  /* Background (surfaces) */
  --color-bg-1: var(--color-white);          /* primary surface */
  --color-bg-2: var(--color-neutral-50);     /* alternating section */
  --color-bg-3: var(--color-bone-100);       /* warm alternating section */
  --color-bg-inverse: var(--color-charcoal-700);   /* dark blocks, footer */
  --color-bg-accent: var(--color-sky-500);   /* CTA fill */
  --color-bg-accent-soft: var(--color-sky-100); /* highlight / chip */

  /* Borders */
  --color-border-1: var(--color-neutral-200);  /* default divider */
  --color-border-2: var(--color-neutral-300);  /* stronger divider */
  --color-border-focus: var(--color-sky-500);

  /* ============================================================
     TYPOGRAPHY — Families
     ============================================================ */
  --font-display: 'Montserrat', ui-sans-serif, system-ui, -apple-system, 'Helvetica Neue', sans-serif;
  --font-body:    'Manrope', ui-sans-serif, system-ui, -apple-system, 'Helvetica Neue', sans-serif;
  --font-script:  'Sacramento', cursive;
  --font-mono:    ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* ============================================================
     TYPOGRAPHY — Scale (px values, fluid clamps for hero only)
     ============================================================ */
  --text-eyebrow:    12px;
  --text-xs:         12px;
  --text-sm:         14px;
  --text-base:       16px;
  --text-lg:         18px;
  --text-xl:         20px;
  --text-2xl:        24px;
  --text-3xl:        30px;
  --text-4xl:        36px;
  --text-5xl:        48px;
  --text-6xl:        60px;
  --text-hero:       clamp(40px, 6vw, 88px);

  /* Line heights */
  --leading-tight:   1.1;
  --leading-snug:    1.25;
  --leading-normal:  1.5;
  --leading-relaxed: 1.7;

  /* Letter spacing */
  --tracking-tight:  -0.02em;   /* big display lines */
  --tracking-normal: 0;
  --tracking-wide:   0.06em;    /* small uppercase labels */
  --tracking-wider:  0.14em;    /* eyebrow / TEAM lockup */
  --tracking-widest: 0.22em;    /* logo-style ALL CAPS */

  /* Weights */
  --weight-light:    300;
  --weight-regular:  400;
  --weight-medium:   500;
  --weight-semibold: 600;
  --weight-bold:     700;
  --weight-black:    800;

  /* ============================================================
     SPACING — 4px base scale
     ============================================================ */
  --space-0:  0;
  --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-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  /* Layout */
  --container-max: 1200px;
  --gutter:        24px;
  --nav-height:    72px;
  --footer-strip:  56px;

  /* ============================================================
     RADII — Controlled scale. No fully-rounded except chips/avatars.
     ============================================================ */
  --radius-xs:  2px;   /* tags */
  --radius-sm:  6px;   /* inputs, buttons */
  --radius-md:  10px;  /* cards */
  --radius-lg:  16px;  /* hero containers, rate widget */
  --radius-xl:  24px;  /* big feature blocks */
  --radius-full: 9999px;  /* chips, avatars ONLY */

  /* ============================================================
     SHADOWS — 3-step elevation. Always cool gray.
     ============================================================ */
  --shadow-sm: 0 1px 2px rgba(17, 20, 24, 0.06), 0 1px 1px rgba(17, 20, 24, 0.04);
  --shadow-md: 0 4px 8px rgba(17, 20, 24, 0.06), 0 8px 24px rgba(17, 20, 24, 0.06);
  --shadow-lg: 0 12px 32px rgba(17, 20, 24, 0.10), 0 24px 64px rgba(17, 20, 24, 0.08);
  --shadow-focus-ring: 0 0 0 3px rgba(82, 200, 239, 0.30);

  /* ============================================================
     MOTION — Always linear in feel. No bounces.
     ============================================================ */
  --ease-out:      cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in:       cubic-bezier(0.55, 0, 1, 0.45);
  --ease-in-out:   cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 100ms;
  --duration-base: 150ms;
  --duration-slow: 200ms;
  --duration-page: 600ms;

  /* Z-index */
  --z-base:    1;
  --z-sticky:  100;
  --z-overlay: 1000;
  --z-modal:   2000;
  --z-toast:   3000;
}

/* ============================================================
   BASE — Element defaults
   ============================================================ */
html {
  font-family: var(--font-body);
  color: var(--color-fg-1);
  background: var(--color-bg-1);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  font-weight: var(--weight-regular);
}

/* ============================================================
   TYPOGRAPHY — Semantic classes & elements
   ============================================================ */

/* Display — hero text, big stat numbers. Montserrat tight. */
.t-display,
.t-hero {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: var(--text-hero);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-fg-1);
  text-wrap: balance;
}

/* H1–H6 — Montserrat for h1/h2/h3, Manrope for h4–h6 */
h1, .t-h1 {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: var(--text-5xl);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  margin: 0;
  text-wrap: balance;
}
h2, .t-h2 {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: var(--text-4xl);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  margin: 0;
  text-wrap: balance;
}
h3, .t-h3 {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: var(--text-3xl);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
  margin: 0;
}
h4, .t-h4 {
  font-family: var(--font-body);
  font-weight: var(--weight-semibold);
  font-size: var(--text-2xl);
  line-height: var(--leading-snug);
  margin: 0;
}
h5, .t-h5 {
  font-family: var(--font-body);
  font-weight: var(--weight-semibold);
  font-size: var(--text-xl);
  line-height: var(--leading-snug);
  margin: 0;
}
h6, .t-h6 {
  font-family: var(--font-body);
  font-weight: var(--weight-semibold);
  font-size: var(--text-lg);
  line-height: var(--leading-snug);
  margin: 0;
}

/* Body */
p, .t-body {
  font-family: var(--font-body);
  font-weight: var(--weight-regular);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-fg-1);
  margin: 0;
  text-wrap: pretty;
}
.t-body-lg {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
}
.t-body-sm {
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
}
.t-meta {
  font-size: var(--text-sm);
  color: var(--color-fg-3);
  line-height: var(--leading-normal);
}

/* Eyebrow — the brand's signature tracked-out kicker */
.t-eyebrow {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: var(--text-eyebrow);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-fg-accent);
}

/* Script accent — for "The" / "Welcome." / "Hi," — decorative only */
.t-script {
  font-family: var(--font-script);
  font-weight: var(--weight-regular);
  font-size: var(--text-4xl);
  line-height: 1;
  color: var(--color-fg-1);
}

/* Logo-style TEAM tracking */
.t-tracked-cap {
  font-family: var(--font-display);
  font-weight: var(--weight-medium);
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-fg-1);
}

/* Compliance / disclaimer */
.t-disclaimer {
  font-family: var(--font-body);
  font-size: 11px;
  line-height: 1.5;
  color: var(--color-fg-4);
  letter-spacing: 0;
}

/* Code / mono */
code, .t-mono {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

/* Links */
a {
  color: var(--color-fg-accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--duration-base) var(--ease-out);
}
a:hover {
  border-bottom-color: currentColor;
}
