/* ============================================================================
   INSIGHTS MARKETING DESIGN SYSTEM — TOKENS
   ----------------------------------------------------------------------------
   Free-standing. No dependency on the product app's SCSS or mockups.

   Provenance of every value is noted inline:
     [BRAND]  sampled from "2020 insights branding 2024.pdf" (the brand book)
     [APP]    carried over from Insights Style Guide V2 / NFRC mockups
     [NEW]    authored for marketing; no app equivalent exists
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Figtree:wght@300;400;500;600;700;800&display=swap');

:root {

  /* --------------------------------------------------------------------------
     1. BRAND CORE
     The wordmark navy is the anchor of the whole system. Note it is materially
     darker than the app chrome (#34495E) — the marketing site uses the true
     brand navy, not the app's slate.
     ------------------------------------------------------------------------ */

  --ink:              #000F45;   /* [BRAND] wordmark navy — primary surface + heading colour */
  --ink-deep:         #000A2E;   /* [NEW]   pressed / overlay depth below --ink */
  --ink-soft:         #0B194D;   /* [BRAND] secondary navy sampled from lockup shading */

  /* Spectrum — sampled clockwise from the logo ring's conic gradient.
     This is the single most distinctive brand asset and appears nowhere in the
     product UI. Use it as a precision instrument: hairlines, arcs, ring motifs,
     small accents. Never as a full-bleed background wash. */

  --spectrum-red:     #EF3E36;
  --spectrum-orange:  #F78A31;
  --spectrum-yellow:  #FFD60A;
  --spectrum-green:   #00A850;
  --spectrum-teal:    #09B29B;
  --spectrum-cyan:    #23BFC8;
  --spectrum-blue:    #2974B8;

  --spectrum-conic: conic-gradient(from 0deg,
      var(--spectrum-red)    0deg,
      var(--spectrum-orange) 45deg,
      var(--spectrum-yellow) 90deg,
      var(--spectrum-green)  160deg,
      var(--spectrum-teal)   205deg,
      var(--spectrum-cyan)   245deg,
      var(--spectrum-blue)   295deg,
      var(--spectrum-red)    360deg);

  --spectrum-linear: linear-gradient(90deg,
      var(--spectrum-red), var(--spectrum-orange), var(--spectrum-yellow),
      var(--spectrum-green), var(--spectrum-teal), var(--spectrum-cyan),
      var(--spectrum-blue));

  /* --------------------------------------------------------------------------
     2. ACTION
     Carried from the product so a visitor who converts sees visual continuity
     between the marketing site and the app they land in.
     ------------------------------------------------------------------------ */

  --action:           #1A92EC;   /* [APP] primary action blue — 693 uses across mockups.
                                    Fills and UI only: 3.30:1 on --paper, which clears AA for
                                    UI components and large text but NOT for body-size text. */
  --action-hover:     #1580D8;   /* [APP] */
  --action-press:     #0D7AC4;   /* [APP] */
  --action-tint:      #E8F4FD;   /* [APP] pale wash behind action elements */
  --action-text:      #1073BE;   /* [NEW] same hue/saturation, darkened to clear AA for text.
                                    4.82:1 on --paper, 4.60:1 on --mist. Use for inline links. */

  /* --------------------------------------------------------------------------
     3. NEUTRALS
     Rationalised from Insights Style Guide V2.1's 11-shade audit. The app's
     near-duplicate greys (#CCCCCC / #C6C6C6, #D8D7D7) are collapsed here —
     marketing does not need that granularity.
     ------------------------------------------------------------------------ */

  --white:            #FFFFFF;
  --paper:            #FBFBFD;   /* [NEW] default page background — warmer than app white */
  --mist:             #F4F6FA;   /* [NEW] alternating section background */
  --cloud:            #E9ECF2;   /* [APP] ≈#E9ECEF — hairlines, dividers */
  --steel:            #A0A8BC;   /* [APP] ≈#A0AEC0 — muted text on light */
  --slate:            #5A6480;   /* [APP] ≈#565656 recast toward navy — body text secondary */
  --graphite:         #333A4D;   /* [APP] ≈#333333 recast toward navy — body text primary */

  /* Text roles — always reference these, never a raw neutral. */
  --text-strong:      var(--ink);
  --text-body:        var(--graphite);
  --text-muted:       var(--slate);
  --text-faint:       var(--steel);
  --text-on-dark:     rgba(255,255,255,0.94);
  --text-on-dark-dim: rgba(255,255,255,0.62);

  /* --------------------------------------------------------------------------
     4. TYPOGRAPHY
     Poppins  — the brand book itself is typeset in Poppins (verified from the
                PDF's embedded fonts). Display role, replaces Sofia Pro.
     Figtree  — closest freely-licensed analogue to Proxima Nova: geometric
                humanist, tall x-height, 300–800. Body + UI role.
     Both OFL, self-hostable, zero licence cost.
     ------------------------------------------------------------------------ */

  --font-display: 'Poppins', 'Sofia Pro', system-ui, sans-serif;
  --font-body:    'Figtree', 'Proxima Nova', system-ui, sans-serif;

  /* Expressive scale. The app tops out around 24px; marketing starts where the
     app stops. All fluid — no breakpoint jumps in the display range. */

  --fs-display-1: clamp(3.25rem, 7.5vw, 6.5rem);   /* [NEW] hero headline */
  --fs-display-2: clamp(2.5rem, 5vw, 4.25rem);     /* [NEW] section opener */
  --fs-display-3: clamp(2rem, 3.4vw, 3rem);        /* [NEW] sub-section */
  --fs-h1:        clamp(1.75rem, 2.4vw, 2.25rem);
  --fs-h2:        1.5rem;
  --fs-h3:        1.25rem;
  --fs-lead:      clamp(1.125rem, 1.5vw, 1.375rem); /* [NEW] standfirst under headlines */
  --fs-body:      1.0625rem;                        /* 17px — looser than the app's 14/15px */
  --fs-sm:        0.9375rem;
  --fs-xs:        0.8125rem;
  --fs-eyebrow:   0.75rem;

  --lh-tight:   1.04;   /* display only */
  --lh-snug:    1.18;
  --lh-normal:  1.5;
  --lh-relaxed: 1.7;    /* long-form body */

  --tracking-display: -0.035em;  /* large Poppins needs pulling in hard */
  --tracking-tight:   -0.02em;
  --tracking-normal:  0;
  --tracking-eyebrow: 0.14em;

  --fw-light: 300; --fw-regular: 400; --fw-medium: 500;
  --fw-semi: 600;  --fw-bold: 700;    --fw-black: 800;

  /* --------------------------------------------------------------------------
     5. SPACE
     8px base. The top of the scale is marketing-only — the app never needs
     160px of vertical air; a landing page does.
     ------------------------------------------------------------------------ */

  --space-1: 0.25rem;  --space-2: 0.5rem;   --space-3: 0.75rem;
  --space-4: 1rem;     --space-5: 1.5rem;   --space-6: 2rem;
  --space-7: 2.5rem;   --space-8: 3rem;     --space-9: 4rem;
  --space-10: 5rem;    --space-11: 7.5rem;  --space-12: 10rem;

  --section-y:       clamp(5rem, 10vw, 9.5rem);   /* [NEW] standard section rhythm */
  --section-y-tight: clamp(3.5rem, 6vw, 5.5rem);

  --measure:      68ch;    /* long-form reading width */
  --measure-lead: 46ch;    /* standfirst — deliberately narrower for shape */

  --container:        1240px;
  --container-narrow: 920px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  /* --------------------------------------------------------------------------
     6. RADIUS
     The mockups drifted to ten values (3/4/6/8/10/12/20px…). Collapsed to four.
     ------------------------------------------------------------------------ */

  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   32px;
  --radius-pill: 999px;

  /* --------------------------------------------------------------------------
     7. ELEVATION
     Navy-tinted rather than neutral black — shadows read as part of the brand
     rather than as generic drop shadows.
     ------------------------------------------------------------------------ */

  --shadow-sm: 0 1px 2px rgba(0,15,69,0.06), 0 2px 6px rgba(0,15,69,0.04);
  --shadow-md: 0 4px 12px rgba(0,15,69,0.07), 0 12px 28px rgba(0,15,69,0.06);
  --shadow-lg: 0 12px 32px rgba(0,15,69,0.10), 0 32px 64px rgba(0,15,69,0.08);
  --shadow-ring: 0 0 0 1px rgba(0,15,69,0.07);

  /* --------------------------------------------------------------------------
     8. MOTION
     [APP] guide specifies 0.2s ease transitions; kept, plus a longer authored
     curve for scroll reveals which the app has no equivalent for.
     ------------------------------------------------------------------------ */

  --ease:       cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast:   140ms;
  --dur-base:   220ms;
  --dur-slow:   620ms;

  --focus-ring: 0 0 0 3px rgba(26,146,236,0.42);
}

/* ----------------------------------------------------------------------------
   DARK SECTIONS
   Not a full dark mode — a scoped inversion for navy sections, which this
   system uses heavily. Apply .on-dark to any container.
   -------------------------------------------------------------------------- */

.on-dark {
  --text-strong: #FFFFFF;
  --text-body:   rgba(255,255,255,0.90);
  --text-muted:  rgba(255,255,255,0.66);
  --text-faint:  rgba(255,255,255,0.44);
  --cloud:       rgba(255,255,255,0.14);
  --paper:       var(--ink);
  --white:       var(--ink);
  color: var(--text-body);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
