/* ==========================================================================
   Porto RCM Partner Solutions — design tokens (v4)
   Type scale, spacing and layout follow the Physitrack reference
   (Inter, 1200px container, 56/48/32/20/16 scale). Colors are Porto's.
   ========================================================================== */

@layer reset, base, theme, components, utilities;

@layer theme {
:root {
  color-scheme: light;

  /* ---- Brand color -------------------------------------------------- */
  --porto-navy: #052e5c;      /* Logo color */
  --ink: #021a33;             /* Deepest navy: dark panels, footer */
  --navy-700: #0b3b73;
  --navy-500: #3a5f8f;
  --navy-100: #e4ebf4;
  --navy-50:  #f1f5fa;

  --brass: #b8924f;           /* Gold accent */
  --brass-text: #7e6235;      /* Gold as text on light (AA) */
  --brass-100: #f4e9d4;

  /* ---- Neutrals ------------------------------------------------------ */
  --white: #ffffff;
  --paper: #ffffff;           /* Page */
  --cream: #f7f5f3;           /* Cards and soft panels (Physitrack cream) */
  --cream-2: #efebe6;
  --line: #e7e2dc;
  --line-strong: #d3ccc3;
  --field-border: #6b7585;
  --focus: var(--navy-700);

  --text: #0d1b2e;            /* Headings and body */
  --text-2: #4a5566;          /* Secondary */
  --text-3: #5f6a7a;          /* Tertiary, captions (5.3:1 on white) */
  --text-on-dark: #ffffff;
  --text-on-dark-2: #c3ccd9;

  /* ---- Data ------------------------------------------------------------ */
  --signal: #2e7d6b;
  --signal-100: #e4f2ed;
  --leak: #a8432f;

  /* ---- Highlighter (Physitrack-style mark, in Porto colors) ------------ */
  --hl: linear-gradient(225deg, #f2dcae, #d7e5f6);
  --hl-dark: linear-gradient(225deg, #8a6a33, #2f5a8c);

  /* ---- Typography ------------------------------------------------------ */
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --font-display: var(--font);
  --font-body: var(--font);
  --font-ui: var(--font);
  --font-mono: var(--font);

  --fs-h1: clamp(2.5rem, 1.9rem + 2.4vw, 3.5rem);      /* 40 → 56 */
  --fs-h2: clamp(2rem, 1.55rem + 1.8vw, 3rem);         /* 32 → 48 */
  --fs-h3l: clamp(1.625rem, 1.4rem + 0.9vw, 2rem);     /* 26 → 32 */
  --fs-h3: 1.25rem;                                    /* 20 */
  --fs-lead: clamp(1.0625rem, 1rem + 0.25vw, 1.125rem);/* 17 → 18 */
  --fs-body: 1rem;                                     /* 16 */
  --fs-small: 0.875rem;                                /* 14 */
  --fs-xs: 0.75rem;                                    /* 12 */

  /* legacy aliases (brand.html) */
  --step--1: var(--fs-small);
  --step-0: var(--fs-body);
  --step-1: var(--fs-lead);
  --step-2: var(--fs-h3);
  --step-3: var(--fs-h3l);
  --step-4: var(--fs-h2);
  --step-5: var(--fs-h1);

  /* ---- Space & layout -------------------------------------------------- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --section: clamp(4.5rem, 3rem + 5vw, 7.5rem);
  --space-9: var(--section);

  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --content-max: 75rem;      /* 1200px */
  --measure: 60ch;

  /* ---- Shape & depth ----------------------------------------------------- */
  --radius-s: 8px;
  --radius-m: 16px;
  --radius-l: 24px;
  --radius-pill: 160px;
  --hairline: 1px solid var(--line);
  --shadow-card: 0 1px 2px rgb(13 27 46 / 0.06), 0 12px 32px -16px rgb(13 27 46 / 0.22);
  --shadow-float: 0 24px 48px -20px rgb(2 26 51 / 0.4);

  /* ---- Motion ------------------------------------------------------------ */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 160ms;
  --dur: 320ms;
  --dur-slow: 700ms;
}
}
