/*
  Theme tokens — the single source of truth for color, type, spacing, and
  motion across the site.

  STYLE DIRECTION: "premium minimal" (v3) — pushes the v2 "airy trust"
  direction further toward a Stripe/Mercury-style precision-premium feel:
  even more restrained color (fewer pastel-tinted fills, color reserved for
  the moments that matter), more whitespace, tighter/more confident display
  type, hairline dividers instead of filled borders, and a richer
  scroll-driven motion system (staged reveals, parallax, count-up numbers)
  in main.js. Previous versions are preserved in full at /style-backups/ —
  theme.pre-premium.css / style.pre-premium.css / main.pre-premium.js /
  index.pre-premium.html / businesses-index.pre-premium.html is this pass's
  "before"; theme.fintech-v1.css etc. is the original dark-gradient version
  before that. Copy the relevant set back over their public/ counterparts
  to revert either pass.

  Brand colors are still sampled directly from the logo
  (public/assets/img/lendstrm-logo-full.svg):
    - Deep indigo  #0f278e  (mark + primary wordmark accent)
    - Signal red   #ff3b30  (mark)
    - Ink navy     #222535  (wordmark type)
    - Plum         #87315f  (mark)
  Only how they're *used* changed — as confident, sparing accents on a
  spacious white canvas, not as fills or a full-bleed gradient.
*/

:root {
  /* ---- Brand core (sampled from logo) -------------------------------- */
  --brand-blue: #0f278e;
  --brand-blue-dark: #091c66;
  --brand-blue-light: #3450c9;
  --brand-red: #ff3b30;
  --brand-red-dark: #d92a20;
  --brand-plum: #87315f;
  --brand-plum-dark: #5f2143;
  --brand-ink: #222535;

  /* ---- Semantic tokens (components read these) ------------------------ */
  --color-primary: var(--brand-blue);
  --color-primary-hover: var(--brand-blue-dark);
  --color-primary-soft: #eef1fc;
  --color-primary-soft-border: #d7ddf5;

  --color-accent: var(--brand-red);
  --color-accent-hover: var(--brand-red-dark);
  --color-accent-soft: #fff1ef;

  --color-secondary: var(--brand-plum);
  --color-secondary-hover: var(--brand-plum-dark);
  --color-secondary-soft: #fbf0f5;

  --color-ink: var(--brand-ink);
  --color-text: var(--brand-ink);
  --color-text-soft: #5c5f75;
  --color-text-faint: #6b6e85;
  --color-text-on-dark: #f6f6fb;
  --color-text-on-dark-soft: #c2c4dc;

  --color-bg: #ffffff;
  --color-bg-alt: #f7f7fb;
  --color-bg-warm: #fdfbf8;
  --color-bg-ink: #23253a;
  --color-bg-ink-alt: #2f3149;
  --color-border: #ececf4;
  --color-hairline: #f0f0f5;
  --color-border-on-dark: rgba(255, 255, 255, 0.14);
  --color-white: #ffffff;

  /* ---- Gradients & decorative washes ---------------------------------
     No full-bleed dark diagonal gradients in this direction — color shows
     up as soft, blurred "glow" blobs on a light canvas instead. See
     .bg-glow in style.css. */
  --gradient-accent: linear-gradient(120deg, var(--brand-red) 0%, #ff6f5c 100%);
  --gradient-cta: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-dark) 100%);
  --glow-blue: radial-gradient(circle, rgba(15, 39, 142, 0.16) 0%, rgba(15, 39, 142, 0) 70%);
  --glow-red: radial-gradient(circle, rgba(255, 59, 48, 0.14) 0%, rgba(255, 59, 48, 0) 70%);
  --glow-plum: radial-gradient(circle, rgba(135, 49, 95, 0.14) 0%, rgba(135, 49, 95, 0) 70%);

  /* ---- Typography ----------------------------------------------------
     Jakarta Sans for headings — rounder, more character, "confident
     without being corporate." Inter stays for body copy — it's the
     highest-legibility workhorse, which is what "trustworthy" needs at
     paragraph size. */
  --font-display: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.375rem;
  --fs-xl: 1.75rem;
  --fs-2xl: 2.25rem;
  --fs-3xl: 3rem;
  --fs-4xl: 3.75rem;
  --fs-5xl: 4.5rem;

  /* Tighter tracking at display sizes reads as more precise/considered —
     applied on section titles and the hero headline only, never on body
     copy where tight tracking hurts legibility. */
  --tracking-tight: -0.035em;

  /* ---- Spacing scale (pushed further than v2 for a more spacious,
     restrained rhythm — space-6 through space-10 stepped up again) ------ */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2.5rem;
  --space-7: 4rem;
  --space-8: 5.5rem;
  --space-9: 8rem;
  --space-10: 10rem;

  /* ---- Shape / elevation — rounder, softer than v1; shadows pulled back
     to near-imperceptible depth cues rather than decoration ------------- */
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(35, 37, 58, 0.04);
  --shadow-md: 0 12px 32px rgba(35, 37, 58, 0.06);
  --shadow-lg: 0 30px 80px rgba(35, 37, 58, 0.10);
  --shadow-glow-accent: 0 14px 32px rgba(255, 59, 48, 0.22);
  --shadow-glow-primary: 0 14px 32px rgba(15, 39, 142, 0.18);

  /* ---- Motion -----------------------------------------------------------
     --ease-premium is used by the richer scroll-driven system in main.js
     (staggered reveals, parallax, count-ups) — a slightly snappier
     settle than --ease-out, tuned for elements animating a longer
     distance/duration. --stagger-step is the per-item delay JS reads via
     getComputedStyle to space out a group's reveal instead of firing
     every item at once. */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-premium: cubic-bezier(0.22, 1, 0.36, 1);
  --duration-fast: 160ms;
  --duration-base: 280ms;
  --duration-slow: 520ms;
  --duration-cinematic: 900ms;
  --stagger-step: 90ms;

  /* ---- Layout ----------------------------------------------------------- */
  --container-width: 1240px;
  --header-height: 76px;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --duration-fast: 0ms;
    --duration-base: 0ms;
    --duration-slow: 0ms;
    --duration-cinematic: 0ms;
    --stagger-step: 0ms;
  }
}
