/* ==========================================================================
   Presial — design tokens (2027 refresh)
   Single source of truth for every page in this folder.

   Direction: Swiss-minimal clinical layout, soft technology, calm data.
   Brand blue carries trust; coral carries human vitality; sky carries calm.
   Values are contrast-checked against their intended surface — change a
   colour here and re-check contrast before shipping.
   ========================================================================== */

:root {
  /* --- Brand ------------------------------------------------------------ */
  --ink:            #0C1330;
  --ink-2:          #131C44;
  --body:           #3A4566;

  --primary:        #4B52E3;   /* PRESIAL Blue (brand book #4B52E3) */
  --primary-hover:  #373DC4;
  --primary-press:  #2C31A8;
  --primary-soft:   #EEF0FE;
  --primary-soft-2: #DDE0FB;

  --coral:          #F6896E;   /* PRESIAL Coral (brand book #F6896E) */
  --coral-ink:      #B84B32;   /* AA-safe coral for text on light */
  --coral-soft:     #FFF1EC;
  --coral-soft-2:   #FFDFD4;

  --sky:            #C9E6F8;   /* PRESIAL Light Blue */
  --sky-ink:        #2C6D8F;
  --sky-soft:       #EDF7FD;

  /* --- Text ------------------------------------------------------------- */
  --muted:          #4A5578;
  --faint:          #636D93;
  --on-dark:        #FFFFFF;
  --on-dark-soft:   #C3CAE6;
  --on-dark-faint:  #969EC9;

  /* --- Surfaces --------------------------------------------------------- */
  --surface:        #FFFFFF;
  --surface-tint:   #F5F7FC;
  --surface-sunk:   #EDF1F9;
  --surface-chart:  #FAFBFD;
  --surface-dark:   #0A1030;
  --surface-dark-2: #111A41;

  --border:         #E3E8F2;
  --border-strong:  #CBD5E8;
  --border-soft:    #F0F3FA;
  --border-ink:     #2A3364;

  /* --- Status / provenance --------------------------------------------- */
  --success:        #0E7A5F;
  --success-soft:   #E2F2ED;
  --warn:           #8C6110;
  --warn-soft:      #F7EEDC;
  --info:           #2B6CB0;
  --info-soft:      #E4EEF7;
  --danger:         #B4304A;
  --danger-soft:    #F8EAED;

  --measured-ink:   #0E7A5F;
  --measured-bg:    #E2F2ED;
  --reported-ink:   #8C6110;
  --reported-bg:    #F7EEDC;
  --inferred-ink:   #2B6CB0;
  --inferred-bg:    #E4EEF7;

  /* --- Clinical zones (report/app only) -------------------------------- */
  --zone-optimal:          #4E8FD9;
  --zone-optimal-ink:      #2B6CB0;
  --zone-optimal-tint:     #EDF4FB;
  --zone-normal:           #3FA08A;
  --zone-normal-ink:       #276B5B;
  --zone-normal-tint:      #ECF6F3;
  --zone-high-normal:      #C9A227;
  --zone-high-normal-ink:  #7A6212;
  --zone-high-normal-tint: #FAF6E9;
  --zone-grade-1:          #D07A3A;
  --zone-grade-1-ink:      #96501B;
  --zone-grade-1-tint:     #FAF2EB;
  --zone-grade-2:          #B4304A;
  --zone-grade-2-ink:      #B4304A;
  --zone-grade-2-tint:     #F8EAED;
  --zone-grade-3:          #6E1E38;
  --zone-grade-3-ink:      #6E1E38;
  --zone-grade-3-tint:     #F1E9EB;

  --band-ok:               #EBF5F1;
  --band-high:             #F9F4E4;
  --band-line-140:         #D9A65A;

  /* --- Type ------------------------------------------------------------- */
  --font-sans: 'Albert Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --text-xs:   12px;
  --text-sm:   14px;
  --text-base: 16px;
  --text-lg:   18px;

  /* --- Rhythm ----------------------------------------------------------- */
  --gutter:     clamp(20px, 5vw, 56px);
  --section:    clamp(72px, 9vw, 120px);
  --section-sm: clamp(48px, 6vw, 72px);

  --radius-xs:  10px;
  --radius-sm:  14px;
  --radius:     20px;
  --radius-lg:  28px;
  --radius-xl:  36px;
  --radius-pill: 999px;

  --nav-height: 76px;

  /* --- Depth ------------------------------------------------------------ */
  --shadow-xs: 0 1px 2px rgba(12, 19, 48, 0.05);
  --shadow-sm: 0 1px 2px rgba(12, 19, 48, 0.05), 0 10px 26px -16px rgba(12, 19, 48, 0.20);
  --shadow-md: 0 2px 4px rgba(12, 19, 48, 0.04), 0 28px 56px -28px rgba(12, 19, 48, 0.28);
  --shadow-lg: 0 4px 8px rgba(12, 19, 48, 0.04), 0 48px 96px -40px rgba(12, 19, 48, 0.38);
  --shadow-card: var(--shadow-md);
  --shadow-sheet: var(--shadow-sm);

  --ring: 0 0 0 4px rgba(75, 82, 227, 0.20);
  --ring-dark: 0 0 0 4px rgba(201, 230, 248, 0.28);

  /* --- Gradients -------------------------------------------------------- */
  --grad-brand:  linear-gradient(135deg, #4B52E3 0%, #6255E8 48%, #8A6BF0 100%);
  --grad-warm:   linear-gradient(135deg, #FFF4EF 0%, #FFF9F6 60%, #FFFFFF 100%);
  --grad-cool:   linear-gradient(135deg, #F0F3FE 0%, #F7F9FF 60%, #FFFFFF 100%);

  /* --- Motion ----------------------------------------------------------- */
  --ease-out:  cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-1: 160ms;
  --dur-2: 260ms;
  --dur-3: 600ms;

  /* --- Back-compat aliases (privacy/404 use these) --------------------- */
  --accent-soft: #BEE0F2;
  --faint-on-dark: #C3CAE6;
  --faint-on-ink: #969EC9;
  --diastolic: #8FC6E8;
  --rule: #C6D2E2;
  --placeholder: #98A1BD;
  --hairline: #A9B1CC;
  --switch-off: #C6CCE0;
}
