/* ==========================================================================
   PBS Biotech — design tokens
   Derived from the Figma styles (GF/Text/*, GF/Mockup/*, Text/* type styles).
   styles.css consumes only these custom properties.
   ========================================================================== */

:root {
  /* ---- Color primitives ------------------------------------------------ */
  --navy-950: #000d1e;        /* hero gradient start */
  --navy-900: #001c42;        /* GF/Text/Dark */
  --navy-700: #233b5c;        /* Dark_blue (footer) */
  --blue-600: #0649a4;        /* hero gradient end */
  --slate-600: #4a5e78;       /* GF/Text/Dark Blue */
  --slate-500: #6e7486;       /* GF/Text/Blue Smoke */
  --grey-600: #77787b;        /* GF/Mockup/Grey */
  --grey-400: #8c9598;        /* grey - 1 */
  --grey-300: #c8ccd8;        /* GF/Text/Light Grey */
  --grey-100: #f6f6f6;        /* GF/Mockup/Dark White */
  --white: #ffffff;
  --ink-900: #1b1b1c;         /* GF/Mockup/Dark */
  --espresso-900: #171007;    /* competition spotlight background */
  --tangerine-500: #f77c00;   /* Tangerine */
  --tangerine-600: #e06f00;   /* hover step, derived */
  --tangerine-700: #c96300;   /* active step, derived */
  --tangerine-400: #ef8f10;   /* GF/Text/Tangerine */
  --red-500: #f43319;         /* required marker / error */
  --blush-a50: rgba(255, 189, 189, 0.5);

  /* ---- Semantic color aliases ------------------------------------------ */
  --color-bg: var(--white);
  --color-bg-muted: var(--grey-100);
  --color-bg-inverse: var(--espresso-900);
  --color-bg-footer: var(--navy-700);
  --color-surface: var(--white);
  --color-surface-strong: var(--navy-900);

  --color-text: var(--navy-900);
  --color-text-body: var(--slate-600);
  --color-text-muted: var(--grey-600);
  --color-text-subtle: var(--grey-400);
  --color-text-nav: var(--slate-500);
  --color-text-on-dark: var(--white);
  --color-text-on-dark-body: var(--grey-300);
  --color-text-on-strong: var(--grey-100);
  --color-text-accent: var(--tangerine-400);

  --color-accent: var(--tangerine-500);
  --color-accent-hover: var(--tangerine-600);
  --color-accent-active: var(--tangerine-700);
  --color-on-accent: var(--white);

  --color-border: var(--grey-300);
  --color-border-strong: var(--grey-400);
  --color-border-control: var(--grey-600);
  --color-chip-active: var(--slate-600);
  --color-danger: var(--red-500);
  --color-focus: var(--blue-600);
  --color-focus-on-dark: var(--white);
  --color-scrim: rgba(0, 13, 30, 0.6);
  --color-image-tint: rgba(0, 0, 0, 0.2);

  --gradient-hero: linear-gradient(72deg, var(--navy-950) 28.8%, var(--blue-600) 94.3%);

  /* ---- Typography ------------------------------------------------------ */
  --font-display: "Rubik", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Karla", "Helvetica Neue", Arial, sans-serif;

  /* Numerals: always lining. Tabular figures are reserved for data (tables,
     specs, numeric inputs) because Rubik's tnum feature also widens
     parentheses and punctuation, which breaks running headings. */
  --numeric-text: lining-nums;
  --numeric-data: lining-nums tabular-nums;

  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-bold: 700;

  /* size / line-height pairs follow the Figma text styles */
  --fs-h1: 60px;      --lh-h1: 1.2;   --ls-h1: -2px;   /* Text/H1 "hb" 60 */
  --fs-h2: 44px;      --lh-h2: 1.2;                    /* Text/H2 "hb" 44 */
  --fs-title: 29px;   --lh-title: 1.2;                 /* card title, Rubik Medium */
  --fs-h3: 26px;      --lh-h3: 1.3;                    /* Text/H3 "hb" 26 */
  --fs-lead: 24px;    --lh-lead: 1.31;                 /* Text/Text3 "hb" 24 */
  --fs-h4: 22px;      --lh-h4: 1.2;                    /* Text/H4 "hb" 22 (Karla Bold) */
  --fs-body: 18px;    --lh-body: 1.5;                  /* Text/Text 1 "or" 18 */
  --lh-body-loose: 1.6;                                /* Text/Text 4 "hb" 18 */
  --fs-ui: 16px;      --lh-ui: 24px;                   /* nav, buttons, H5 */
  --fs-small: 14px;   --lh-small: 1.6;                 /* Text/Text 2, footer */
  --fs-button-lg: 18px;
  --ls-button: 0.2px;

  /* ---- Spacing scale (4px base) ---------------------------------------- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-14: 56px;
  --space-16: 64px;
  --space-22: 88px;
  --space-28: 112px;
  --space-36: 144px;
  --space-46: 184px;

  /* ---- Layout ---------------------------------------------------------- */
  --container: 1110px;
  --container-narrow: 730px;
  --container-text: 916px;
  --frame: 1440px;
  --gutter: 40px;
  --header-h: 90px;
  --hero-h: 730px;
  --hero-pad-top: 164px;
  --hero-art-scale: 1;
  --control-h: 48px;
  --section-y: var(--space-28);
  --section-y-md: var(--space-22);
  --section-y-sm: var(--space-14);
  --section-y-lg: var(--space-36);

  /* ---- Radii ----------------------------------------------------------- */
  --radius-xs: 4px;      /* buttons */
  --radius-sm: 5px;      /* cards, inputs, panels */
  --radius-lg: 21px;     /* figure image */
  --radius-xl: 30px;     /* figure frame */
  --radius-pill: 90px;   /* segmented chips */

  /* ---- Borders --------------------------------------------------------- */
  --border-1: 1px;
  --border-2: 2px;
  --border-4: 4px;

  /* ---- Shadows --------------------------------------------------------- */
  --shadow-header: 0 2px 12px rgba(0, 28, 66, 0.08);
  --shadow-sm: 0 4px 4px rgba(0, 0, 0, 0.25);                 /* Card shadow_2 */
  --shadow-card: 0 14px 18.5px rgba(149, 149, 149, 0.71);     /* benefit cards */
  --shadow-card-hover: 0 22px 30px rgba(120, 124, 138, 0.6);
  --shadow-float: 0 8px 24px rgba(0, 28, 66, 0.14);
  --shadow-dialog: 0 30px 80px rgba(0, 13, 30, 0.35);

  /* ---- Motion ---------------------------------------------------------- */
  --dur-fast: 200ms;
  --dur-base: 320ms;
  --dur-slow: 500ms;
  --dur-reveal: 700ms;
  --ease-standard: cubic-bezier(0.45, 0, 0.25, 1);    /* ease-in-out, soft landing */
  --ease-emphasis: cubic-bezier(0.65, 0, 0.35, 1);    /* cinematic in-out */
  --reveal-shift: 24px;
  --stagger-step: 90ms;

  /* ---- Layers ---------------------------------------------------------- */
  --z-decor: 0;
  --z-content: 1;
  --z-header: 50;
  --z-float: 60;
}

/* Tablet */
@media (max-width: 1023px) {
  :root {
    --fs-h1: 48px;   --ls-h1: -1.5px;
    --fs-h2: 38px;
    --fs-title: 26px;
    --fs-h3: 24px;
    --fs-lead: 22px;
    --gutter: 32px;
    --hero-h: 0px;
    --hero-pad-top: 88px;
    --hero-art-scale: 0.8;
    --section-y: var(--space-22);
    --section-y-md: var(--space-16);
    --section-y-sm: var(--space-12);
    --section-y-lg: var(--space-28);
  }
}

/* Mobile */
@media (max-width: 639px) {
  :root {
    --fs-h1: 38px;   --ls-h1: -1px;
    --fs-h2: 30px;
    --fs-title: 24px;
    --fs-h3: 20px;
    --fs-lead: 19px;
    --fs-h4: 19px;
    --fs-body: 17px;
    --gutter: 20px;
    --header-h: 68px;
    --hero-h: 0px;
    --hero-pad-top: 56px;
    --hero-art-scale: 0.6;
    --section-y: var(--space-16);
    --section-y-md: var(--space-14);
    --section-y-sm: var(--space-10);
    --section-y-lg: var(--space-22);
  }
}
