/* Qualify Finance — global CSS entry point (tokens inlined for performance; no @import chain). */
/* --- tokens/fonts.css --- */
/* Qualify Finance webfonts — LOCKED STYLE.
   Display/Headings: Schibsted Grotesk — clean, confident modern grotesk.
   Body/UI: Figtree — warm, geometric-humanist, highly legible.
   Loaded from Google Fonts. Documented alternates (Bricolage Grotesque / Newsreader /
   Sora / Libre Franklin) live in the homepage + landing-template font switchers.
   NOTE: fonts are loaded via <link rel="stylesheet"> in each page's <head> (with
   preconnect) — the previous @import here was removed to avoid a duplicate,
   render-blocking font request chained after this stylesheet. */

/* --- tokens/colors.css --- */
/* ============================================================
   QUALIFY FINANCE — COLOR SYSTEM
   Anchored to the logo: brand teal #69C4B3 + deep teal #2A5856.
   ============================================================ */
:root {
  /* ---- Brand teal scale ---- */
  --teal-50:  #F1FAF7;
  --teal-100: #DBF3EC;
  --teal-200: #B4E5D8;
  --teal-300: #8AD6C4;
  --teal-400: #69C4B3;  /* PRIMARY — logo teal */
  --teal-500: #4FB1A0;  /* hover */
  --teal-600: #3C9183;  /* press / deeper accents */
  --teal-700: #2A5856;  /* DEEP TEAL — logo "Finance" wordmark, dark sections */
  --teal-800: #21413F;
  --teal-900: #16302E;

  /* ---- Warm slate neutrals (teal-tinted grays) ---- */
  --neutral-0:   #FFFFFF;
  --neutral-50:  #F6F8F8;
  --neutral-100: #EDF1F0;
  --neutral-200: #E0E7E6;
  --neutral-300: #C6D1CF;
  --neutral-400: #9BAAA8;
  --neutral-500: #6E7E7C;
  --neutral-600: #4F5E5C;
  --neutral-700: #374644;
  --neutral-800: #232F2E;
  --neutral-900: #161F1E;

  /* ---- Semantic status ---- */
  --green-500:  #2FA37A;
  --green-50:   #E8F6F0;
  --red-500:    #D7544C;
  --red-50:     #FBECEB;
  --amber-500:  #E0A23B;
  --amber-50:   #FBF2E2;

  /* ============================================================
     SEMANTIC ALIASES — use these in product code
     ============================================================ */
  --color-primary:        var(--teal-400);
  --color-primary-hover:  var(--teal-500);
  --color-primary-press:  var(--teal-600);
  --color-primary-soft:   var(--teal-100);
  --color-accent-deep:    var(--teal-700);

  --text-heading:   var(--teal-900);   /* near-black teal — hero & section headings */
  --text-body:      var(--neutral-700);
  --text-muted:     var(--neutral-500);
  --text-on-dark:   #EAF6F2;
  --text-on-primary:#0E2E2A;            /* dark teal text on teal buttons */

  --surface-page:   var(--neutral-0);
  --surface-subtle: var(--teal-50);     /* soft mint section background */
  --surface-card:   var(--neutral-0);
  --surface-dark:   var(--teal-700);    /* deep teal panels / footer */
  --surface-inset:  var(--neutral-50);

  --border-subtle:  var(--neutral-200);
  --border-strong:  var(--neutral-300);
  --border-focus:   var(--teal-500);

  --status-success: var(--green-500);
  --status-error:   var(--red-500);
  --status-warning: var(--amber-500);
}

/* --- tokens/typography.css --- */
/* ============================================================
   QUALIFY FINANCE — TYPOGRAPHY  (LOCKED STYLE)
   Display/Headings: Schibsted Grotesk.  Body/UI: Figtree.
   ============================================================ */
:root {
  --font-display: "Schibsted Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body:    "Figtree", "Segoe UI", system-ui, sans-serif;

  /* Type scale */
  --text-display: 3.875rem;  /* 62px — hero headline */
  --text-h1:      2.75rem;   /* 44px */
  --text-h2:      2.5rem;    /* 40px — section titles */
  --text-h3:      1.3125rem; /* 21px — card titles */
  --text-h4:      1.1875rem; /* 19px */
  --text-lead:    1.25rem;   /* 20px — intro paragraphs */
  --text-body-lg: 1.0625rem; /* 17px */
  --text-base:    1rem;      /* 16px */
  --text-sm:      0.875rem;  /* 14px */
  --text-xs:      0.8125rem; /* 13px — eyebrows, labels */

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

  /* Line heights */
  --leading-tight:  1.02;
  --leading-snug:   1.14;
  --leading-normal: 1.5;
  --leading-relaxed:1.6;

  /* Letter spacing */
  --tracking-eyebrow: 0.16em;  /* uppercase eyebrows */
  --tracking-tight:  -0.03em;  /* large display headings */
  --tracking-normal: 0;
}

/* Eyebrow label — the small uppercase teal tag above section titles */
.qf-eyebrow {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--color-primary-press);
}

/* --- tokens/spacing.css --- */
/* ============================================================
   QUALIFY FINANCE — SPACING, RADII, LAYOUT
   8px base rhythm.
   ============================================================ */
:root {
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  24px;
  --space-6:  32px;
  --space-7:  48px;
  --space-8:  64px;
  --space-9:  96px;
  --space-10: 128px;

  /* Section vertical padding */
  --section-y: clamp(64px, 8vw, 120px); /* @kind spacing */

  /* Page container */
  --container-max: 1200px;
  --container-pad: clamp(20px, 5vw, 64px);

  /* Corner radii — soft, friendly, echoing the rounded logo */
  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   22px;
  --radius-xl:   32px;
  --radius-pill: 999px;
}

/* --- tokens/elevation.css --- */
/* ============================================================
   QUALIFY FINANCE — ELEVATION & EFFECTS
   Soft, diffuse teal-tinted shadows. No harsh black.
   ============================================================ */
:root {
  --shadow-xs: 0 1px 2px rgba(22, 48, 46, 0.06);
  --shadow-sm: 0 2px 8px rgba(22, 48, 46, 0.06);
  --shadow-md: 0 10px 24px -8px rgba(22, 48, 46, 0.12);
  --shadow-lg: 0 22px 48px -16px rgba(22, 48, 46, 0.18);
  --shadow-primary: 0 12px 28px -10px rgba(63, 145, 131, 0.45);

  --ring-focus: 0 0 0 3px rgba(105, 196, 179, 0.40);

  --transition-fast: 140ms cubic-bezier(0.4, 0, 0.2, 1); /* @kind other */
  --transition-base: 220ms cubic-bezier(0.4, 0, 0.2, 1); /* @kind other */
}
