/* =========================================================================
   Legalsense Design System — colors_and_type.css
   Imported as the foundation for everything in this system.
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800&family=Open+Sans:wght@400;500;600;700&display=swap');

:root {
  /* ---------- Brand palette ---------- */
  --ls-navy-900: #0E1149;        /* deepest navy, hover/press for primary */
  --ls-navy-800: #13174F;
  --ls-navy-700: #1A1F6A;        /* primary brand ink */
  --ls-navy-600: #2A3084;        /* nav bar fill in product */
  --ls-navy-500: #3D4AA0;
  --ls-peri-500: #5B6BAA;        /* sub-nav stripe */
  --ls-peri-400: #8E9FCF;        /* light half of wordmark */
  --ls-peri-300: #B6C2E0;
  --ls-peri-200: #D6DDEE;
  --ls-peri-100: #E8ECF7;

  --ls-coral-700: #C84A30;
  --ls-coral-600: #DD5B40;       /* coral CTA hover */
  --ls-coral-500: #F26C50;       /* coral accent */
  --ls-coral-400: #F58E78;
  --ls-coral-100: #FDE5DE;

  /* ---------- Neutrals ---------- */
  --ls-ink-900: #1A1F2C;          /* headings on white */
  --ls-ink-700: #3A4054;          /* body text */
  --ls-ink-500: #6B7186;          /* secondary text */
  --ls-ink-400: #9097A9;          /* tertiary, placeholders */
  --ls-ink-300: #C0C5D4;          /* disabled */

  --ls-line-200: #E1E4EE;         /* default border */
  --ls-line-100: #ECEEF5;         /* hairline */

  --ls-canvas: #F4F6FB;           /* product page background */
  --ls-canvas-warm: #EEF1F8;      /* alt section bg on marketing */
  --ls-surface: #FFFFFF;
  --ls-surface-hover: #F8FAFD;

  /* ---------- Status / semantic ---------- */
  --ls-success: #2E7D5B;
  --ls-success-bg: #E6F3EC;
  --ls-warning: #B27A00;
  --ls-warning-bg: #FBF1D9;
  --ls-danger:  #C7423B;
  --ls-danger-bg: #FBE6E5;
  --ls-info:    var(--ls-peri-500);
  --ls-info-bg: var(--ls-peri-100);

  /* ---------- Semantic foreground / background ---------- */
  --fg-1: var(--ls-ink-900);      /* primary text */
  --fg-2: var(--ls-ink-700);      /* secondary text */
  --fg-3: var(--ls-ink-500);      /* meta text */
  --fg-4: var(--ls-ink-400);      /* placeholder */
  --fg-brand: var(--ls-navy-700);
  --fg-on-brand: #FFFFFF;
  --fg-link: var(--ls-navy-700);
  --fg-link-hover: var(--ls-peri-500);

  --bg-page: var(--ls-canvas);
  --bg-surface: var(--ls-surface);
  --bg-surface-hover: var(--ls-surface-hover);
  --bg-brand: var(--ls-navy-700);
  --bg-brand-strong: var(--ls-navy-900);
  --bg-accent: var(--ls-coral-500);

  --border: var(--ls-line-200);
  --border-strong: var(--ls-peri-300);

  /* ---------- Typography ---------- */
  --font-sans: "Nunito", "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-ui:   "Open Sans", "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Roboto Mono", Menlo, monospace;

  /* base scale (marketing) */
  --text-xs:   12px;
  --text-sm:   13px;
  --text-base: 15px;
  --text-md:   17px;
  --text-lg:   20px;
  --text-xl:   24px;
  --text-2xl:  32px;
  --text-3xl:  44px;
  --text-4xl:  56px;
  --text-5xl:  72px;

  --leading-tight: 1.15;
  --leading-snug:  1.3;
  --leading-normal: 1.5;
  --leading-loose: 1.65;

  --weight-regular:  400;
  --weight-medium:   500;
  --weight-semibold: 600;
  --weight-bold:     700;
  --weight-black:    800;

  /* ---------- Spacing (8px grid) ---------- */
  --space-0: 0;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;
  --space-9: 56px;
  --space-10: 80px;
  --space-11: 120px;

  /* ---------- Radii ---------- */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-pill: 999px;

  /* ---------- Shadows ---------- */
  --shadow-xs: 0 1px 2px rgba(26,31,106,0.06);
  --shadow-sm: 0 2px 8px rgba(26,31,106,0.08);
  --shadow-md: 0 8px 24px rgba(26,31,106,0.10);
  --shadow-lg: 0 16px 48px rgba(26,31,106,0.14);
  --shadow-xl: 0 24px 64px rgba(26,31,106,0.18);

  /* ---------- Easing ---------- */
  --ease-out-quart: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 150ms;
  --duration-base: 250ms;
  --duration-slow: 400ms;

  /* ---------- Layout ---------- */
  --container-marketing: 1200px;
  --container-app: 1280px;
  --nav-height-app: 96px;     /* two stripes combined */
  --nav-stripe-1: 56px;
  --nav-stripe-2: 40px;
}

/* ============================================================
   Base type rules — opt in via the .ls-typography class on a
   container, or rely on the semantic element selectors below.
   ============================================================ */

.ls-typography,
.ls-typography * {
  font-family: var(--font-sans);
  color: var(--fg-1);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* H1 – marketing hero */
.ls-h1, h1.ls {
  font-family: var(--font-sans);
  font-size: var(--text-5xl);
  font-weight: var(--weight-black);
  line-height: var(--leading-tight);
  letter-spacing: -0.02em;
  color: var(--ls-navy-700);
  margin: 0;
}

/* H2 – section headers, marketing */
.ls-h2, h2.ls {
  font-family: var(--font-sans);
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  line-height: var(--leading-snug);
  letter-spacing: -0.01em;
  color: var(--ls-navy-700);
  margin: 0;
}

/* H3 – card titles, sub-section */
.ls-h3, h3.ls {
  font-family: var(--font-sans);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  line-height: var(--leading-snug);
  color: var(--ls-navy-700);
  margin: 0;
}

/* H4 – product page titles */
.ls-h4, h4.ls {
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  line-height: var(--leading-snug);
  color: var(--ls-navy-700);
  margin: 0;
}

/* Eyebrow – small label above a heading */
.ls-eyebrow {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ls-coral-500);
  margin: 0 0 var(--space-3);
}

/* Lead paragraph (under H1/H2) */
.ls-lead {
  font-family: var(--font-sans);
  font-size: var(--text-md);
  font-weight: var(--weight-regular);
  line-height: var(--leading-loose);
  color: var(--fg-2);
  margin: var(--space-4) 0 0;
}

/* Body paragraph */
.ls-p, p.ls {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: var(--leading-loose);
  color: var(--fg-2);
  margin: 0 0 var(--space-4);
}

/* Inline code / mono */
.ls-code, code.ls {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--ls-canvas);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  color: var(--ls-navy-700);
}

/* UI labels (in product) */
.ls-label {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--fg-2);
  letter-spacing: 0.01em;
  margin: 0 0 var(--space-2);
  display: block;
}

/* Table column header (ALL CAPS small) */
.ls-th {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-3);
}

/* Tiny meta text */
.ls-meta {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  color: var(--fg-3);
  line-height: var(--leading-normal);
}

/* Link */
.ls-link, a.ls {
  color: var(--fg-link);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--duration-fast) var(--ease-out-quart);
}
.ls-link:hover, a.ls:hover {
  border-bottom-color: var(--fg-link-hover);
}

/* Tabular numerals everywhere financial */
.ls-num {
  font-feature-settings: "tnum" 1, "lnum" 1;
}
