/* ============================================================
   STARTUP ASSIST UK — DESIGN TOKENS
   Calm, trustworthy UK professional-services aesthetic.
   Accessible contrast (WCAG AA/AAA compliant).
   ============================================================ */

:root {
  /* ── Colour palette ── */
  --color-bg:           #FAF9F5;  /* Warm cream background */
  --color-bg-alt:       #F3EFE8;  /* Slightly deeper warm neutral for alt sections */
  --color-surface:      #FFFFFF;  /* Pure white for cards */
  --color-navy:         #132238;  /* Deep authoritative British navy — primary text & headings */
  --color-navy-mid:     #1E3352;  /* Slate navy for trust band & dark cards */
  --color-navy-dark:    #0D1726;  /* Deepest navy for footer */
  --color-teal:         #1A756C;  /* British racing/editorial teal accent — WCAG AA compliant on light backgrounds */
  --color-teal-hover:   #12554E;  /* Deeper teal on hover */
  --color-teal-active:  #0D423C;  /* Active/pressed teal */
  --color-teal-light:   #EBF5F3;  /* Very soft teal tint for card backgrounds & badges */
  --color-teal-subtle:  #F4FAF9;  /* Ultra-subtle teal wash */
  --color-teal-on-dark: #2EC4B6;  /* High-contrast vibrant teal for dark navy backgrounds */
  
  --color-text:         #213143;  /* Deep charcoal-navy for maximum body readability */
  --color-muted:        #536373;  /* Secondary text with high contrast (~6:1 on cream) */
  --color-border:       #E1DBD0;  /* Subtle warm card & section borders */
  --color-border-subtle:#EBE6DD;  /* Ultra-soft internal dividers */
  --color-white:        #FFFFFF;
  --color-error:        #C0392B;
  --color-success:      #1E824C;

  /* Score band colours — WCAG-safe high contrast text */
  --color-band-low:     #B03020;  /* Business Development Reality */
  --color-band-mid-lo:  #C86A14;  /* Busy but fragile */
  --color-band-mid-hi:  #1A756C;  /* Ready to build consistency */
  --color-band-high:    #1E824C;  /* Systemise and grow */

  /* ── Typography ── */
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --fs-xs:   0.75rem;   /* 12px */
  --fs-sm:   0.875rem;  /* 14px */
  --fs-base: 1rem;      /* 16px */
  --fs-md:   1.125rem;  /* 18px */
  --fs-lg:   1.25rem;   /* 20px */
  --fs-xl:   1.5rem;    /* 24px */
  --fs-2xl:  1.875rem;  /* 30px */
  --fs-3xl:  2.25rem;   /* 36px */
  --fs-4xl:  3rem;      /* 48px */

  --fw-normal:   400;
  --fw-medium:   500;
  --fw-semibold: 600;
  --fw-bold:     700;

  --lh-tight:  1.2;
  --lh-snug:   1.38;
  --lh-base:   1.6;
  --lh-loose:  1.8;

  /* ── Spacing scale ── */
  --space-1:  0.25rem;   /*  4px */
  --space-2:  0.5rem;    /*  8px */
  --space-3:  0.75rem;   /* 12px */
  --space-4:  1rem;      /* 16px */
  --space-5:  1.25rem;   /* 20px */
  --space-6:  1.5rem;    /* 24px */
  --space-8:  2rem;      /* 32px */
  --space-10: 2.5rem;    /* 40px */
  --space-12: 3rem;      /* 48px */
  --space-16: 4rem;      /* 64px */
  --space-20: 5rem;      /* 80px */
  --space-24: 6rem;      /* 96px */

  /* ── Layout ── */
  --max-w-prose: 62ch;
  --max-w-site:  1180px;
  --max-w-narrow: 760px;

  /* ── Borders & Radii ── */
  --radius-xs:  0.25rem;    /* 4px */
  --radius-sm:  0.375rem;   /* 6px */
  --radius-md:  0.5rem;     /* 8px */
  --radius-lg:  0.75rem;    /* 12px */
  --radius-xl:  1rem;       /* 16px */
  --radius-2xl: 1.25rem;    /* 20px */
  --radius-full: 9999px;

  /* ── Shadows (Layered, natural, non-glowing) ── */
  --shadow-xs: 0 1px 2px rgba(19, 34, 56, 0.04);
  --shadow-sm: 0 1px 3px rgba(19, 34, 56, 0.06), 0 1px 2px rgba(19, 34, 56, 0.03);
  --shadow-md: 0 4px 12px -1px rgba(19, 34, 56, 0.07), 0 2px 5px -1px rgba(19, 34, 56, 0.04);
  --shadow-lg: 0 12px 28px -4px rgba(19, 34, 56, 0.09), 0 4px 10px -2px rgba(19, 34, 56, 0.04);
  --shadow-card: 0 1px 3px rgba(19, 34, 56, 0.05), 0 0 0 1px var(--color-border);
  --shadow-card-hover: 0 6px 18px -2px rgba(19, 34, 56, 0.08), 0 0 0 1px rgba(26, 117, 108, 0.35);

  /* ── Transitions ── */
  --transition-fast:   120ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base:   180ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow:   300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reduced-motion overrides ── */
@media (prefers-reduced-motion: reduce) {
  :root {
    --transition-fast: 0ms;
    --transition-base: 0ms;
    --transition-slow: 0ms;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
