/* ============================================================
   ATOMATE — DESIGN TOKENS
   Single source of truth. Every colour, size and space on the
   site draws from this sheet. Values generated and contrast-
   checked by tools/color.py — do not hand-tune hex equivalents.

   Locked brand values (client document, June 2026):
     Deep Slate Blue #1E293B — ink
     Soft Sage Green #86EFAC — sage (luminous layer ONLY)
     Warm Cream      #F8FAFC — surface
   ============================================================ */

:root {

  /* ---------------------------------------------------------
     COLOUR · CORE
     --------------------------------------------------------- */

  /* Surface — the dominant page ground. Never pure white. */
  --surface:      oklch(98.4% 0.003 247.86);   /* #F8FAFC */
  --surface-down: oklch(96.2% 0.007 260.03);   /* #F0F3F7 · washed section band */
  --paper:        oklch(100% 0 0);             /* #FFFFFF · dashboard/card paper only */

  /* Ink ramp — hue 260.03 held; chroma tapers above 500 so pale
     steps stay neutral. Ink is text, footer ground, anchors.   */
  --ink-900: oklch(22.5% 0.037 260.03);  /* #111C2D · footer base, deepest wells   */
  --ink-800: oklch(27.9% 0.037 260.03);  /* #1E293B · BRAND INK — headings, body   */
  --ink-700: oklch(35.5% 0.037 260.03);  /* #313C4F · sub-heads on wash            */
  --ink-600: oklch(45.0% 0.037 260.03);  /* #49566A · secondary text  (7.11:1)     */
  --ink-500: oklch(55.0% 0.036 260.03);  /* #657287 · muted/meta text (4.66:1) —
                                            smallest text colour allowed on cream  */
  --ink-400: oklch(68.0% 0.028 260.03);  /* #8E99AA · disabled text, NEVER copy    */
  --ink-300: oklch(78.0% 0.022 260.03);  /* #AFB8C6 · strong borders               */
  --ink-200: oklch(86.5% 0.016 260.03);  /* #CDD3DD · default borders, rules       */
  --ink-100: oklch(92.5% 0.011 260.03);  /* #E2E6EE · hairlines, table rules       */
  --ink-50:  oklch(96.2% 0.007 260.03);  /* #F0F3F7 · row hover wash               */

  /* Sage ramp — hue 154.45 held; chroma gamut-fit at dark end.
     500 is the "data alive" layer: glows, fills, chart strokes,
     underlines, active states. 500 NEVER carries body text on
     cream (1.34:1). Text-bearing sage = 700/800 only.          */
  --sage-100: oklch(95.5% 0.045 154.45); /* #DAFAE3 · tint wash, link hover bg     */
  --sage-200: oklch(93.0% 0.085 154.45); /* #BBF9CF · soft fill                    */
  --sage-300: oklch(90.5% 0.118 154.45); /* #9EF7BD · glow mid, focus ring on ink  */
  --sage-500: oklch(87.1% 0.136 154.45); /* #86EFAC · BRAND SAGE — luminous layer  */
  --sage-600: oklch(78.0% 0.150 154.45); /* #5BD38B · chart strokes on ink         */
  --sage-700: oklch(62.0% 0.150 154.45); /* #149F5B · large text/icons on cream
                                            (3.27:1 — 24px+/19px-bold+ only)       */
  --sage-800: oklch(50.6% 0.124 154.45); /* #077943 · body-size sage text (5.25:1) */
  --sage-900: oklch(42.0% 0.100 154.45); /* #0B5C33 · text on sage-100/200 tints   */

  /* ---------------------------------------------------------
     COLOUR · LOGO ACCENTS  (extracted from the Atomate mark)
     base = decorative exact-match · deep = AA body text 4.5:1+
     ui = large-text/border 3:1+ · tint = chip/card ground
     --------------------------------------------------------- */

  /* Chalk — the hand-drawn stroke of the logo. */
  --chalk:      oklch(36.8% 0 89.88);          /* #3F3F3F · drawn strokes, jitter lines */
  --chalk-blue: oklch(79.6% 0.102 229.39);     /* #71C9F1 · highlighter sweeps ONLY     */

  /* Blue — primary interactive accent family. */
  --blue:      oklch(79.6% 0.102 229.39);      /* #71C9F1 */
  --blue-deep: oklch(53.5% 0.102 229.39);      /* #10779C · links, focus ring (4.85:1 cream, 4.56:1 wash) */
  --blue-ui:   oklch(64.3% 0.102 229.39);      /* #3E98BF · large accents (3.11:1)      */
  --blue-tint: oklch(96.5% 0.020 229.39);      /* #E7F6FE */

  /* Purple — data-layer accents (telemetry, schema labels). */
  --purple:      oklch(65.9% 0.086 303.77);    /* #9D85BD */
  --purple-deep: oklch(54.8% 0.086 303.77);    /* #7B649A · 4.86:1 cream · 4.56:1 own tint */
  --purple-tint: oklch(96.5% 0.020 303.77);    /* #F6F0FF */

  /* Category · SOCIAL DYNAMICS — pink. */
  --pink:      oklch(76.1% 0.131 352.81);      /* #F18DB9 */
  --pink-deep: oklch(55.7% 0.130 352.81);      /* #AB4F7A · 4.86:1 cream · 4.55:1 own tint */
  --pink-ui:   oklch(66.7% 0.130 352.81);      /* #D0709B (3.10:1) */
  --pink-tint: oklch(96.5% 0.020 352.81);      /* #FFEEF5 */

  /* Category · KINESTHETIC MILESTONES — coral. */
  --coral:      oklch(71.9% 0.138 29.52);      /* #EE8070 */
  --coral-deep: oklch(55.4% 0.130 29.52);      /* #B25044 · 4.87:1 cream · 4.56:1 own tint */
  --coral-ui:   oklch(66.3% 0.130 29.52);      /* #D77163 (3.12:1) */
  --coral-tint: oklch(96.5% 0.017 29.52);      /* #FFEFED */

  /* Category · ENGAGEMENT — yellow. */
  --yellow:      oklch(89.1% 0.125 90.96);     /* #FAD874 */
  --yellow-deep: oklch(54.1% 0.111 90.96);     /* #876B00 · 4.86:1 cream · 4.58:1 own tint */
  --yellow-ui:   oklch(65.1% 0.125 90.96);     /* #AC8B1C (3.11:1) */
  --yellow-tint: oklch(96.5% 0.024 90.96);     /* #F9F3E2 */

  /* Category · GROWTH / MILESTONES — green. */
  --green:      oklch(76.1% 0.119 143.00);     /* #83C57F */
  --green-deep: oklch(52.9% 0.119 143.00);     /* #3D7C3A · 4.85:1 cream · 4.62:1 own tint */
  --green-ui:   oklch(63.7% 0.119 143.00);     /* #5D9D5A (3.12:1) */
  --green-tint: oklch(96.5% 0.023 143.00);     /* #EBF8EA */

  /* SOOGRA product family (Products page tonal shift). */
  --teal:      oklch(58.7% 0.077 200.97);      /* #3B8A8F · large accents (3.4:1)  */
  --teal-deep: oklch(53.2% 0.077 200.97);      /* #28797F · 4.86:1 cream · 4.63:1 own tint */
  --teal-tint: oklch(96.5% 0.020 200.97);      /* #E5F8F9 */
  --navy:      oklch(29.3% 0.043 229.13);      /* #12303D · SOOGRA ink             */

  /* ---------------------------------------------------------
     COLOUR · SEMANTIC
     --------------------------------------------------------- */
  --text:        var(--ink-800);
  --text-2:      var(--ink-600);   /* secondary                */
  --text-3:      var(--ink-500);   /* meta — minimum on cream  */
  --border:      var(--ink-200);
  --border-soft: var(--ink-100);

  --ok:        var(--sage-800);    /* success text             */
  --ok-tint:   var(--sage-100);
  --error:      oklch(50.5% 0.155 25);   /* #B03A30 · error text (5.4:1)  */
  --error-tint: oklch(95.0% 0.022 25);   /* #FDEAE7                        */

  /* Focus — visible on cream AND on ink (set per ground).     */
  --focus:        var(--blue-deep);      /* on cream · 4.65:1   */
  --focus-on-ink: var(--sage-300);       /* on ink   · 8.9:1    */

  /* ---------------------------------------------------------
     TYPOGRAPHY
     Scale: fluid modular — ratio 1.2 at 360px → 1.25 at 1280px.
     Only these steps may set font-size.
     --------------------------------------------------------- */
  --font-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, sans-serif;
  --font-mono:    ui-monospace, "SF Mono", "Cascadia Mono", Menlo, monospace;

  --step--3: 0.6875rem;                                         /* micro-instrumentation, fixed */
  --step--2: 0.75rem;                                           /* telemetry small, fixed        */
  --step--1: clamp(0.875rem,  0.8511rem + 0.1087vw, 0.9375rem); /* caption 14→15   */
  --step-0:  clamp(1.0625rem, 1.0380rem + 0.1087vw, 1.125rem);  /* body    17→18   */
  --step-1:  clamp(1.275rem,  1.2236rem + 0.2283vw, 1.4063rem); /* lede    20→22.5 */
  --step-2:  clamp(1.5313rem, 1.4432rem + 0.3913vw, 1.7578rem); /* h4      24→28   */
  --step-3:  clamp(1.8375rem, 1.6957rem + 0.6304vw, 2.1973rem); /* h3      29→35   */
  --step-4:  clamp(2.2031rem, 1.9959rem + 0.9348vw, 2.7466rem); /* h2      35→44   */
  --step-5:  clamp(2.6438rem, 2.3356rem + 1.3696vw, 3.4332rem); /* h1      42→55   */
  --step-6:  clamp(2.6rem,  1.9385rem + 2.9413vw, 4.2915rem);   /* display 42→69   */
  --step-7:  clamp(2.9rem,  1.9806rem + 4.0870vw, 5.25rem);     /* hero    46→84   */

  /* Per-step treatment (leading/tracking pair with size).     */
  --leading-tight: 1.04;   /* step-6/7            */
  --leading-head:  1.12;   /* step-3/4/5          */
  --leading-sub:   1.3;    /* step-1/2            */
  --leading-body:  1.65;   /* step-0              */
  --leading-cap:   1.45;   /* step--1             */
  --track-display: -0.025em;
  --track-head:    -0.015em;
  --track-body:     0;
  --track-label:    0.08em; /* instrumentation labels */

  --measure: 68ch;

  /* ---------------------------------------------------------
     SPACE — base 4px; progression 4/8/12/16/24/32/48/64/96/128.
     Only these values may set margin/padding/gap.
     --------------------------------------------------------- */
  --space-1:  0.25rem;  /*   4 */
  --space-2:  0.5rem;   /*   8 */
  --space-3:  0.75rem;  /*  12 */
  --space-4:  1rem;     /*  16 */
  --space-5:  1.5rem;   /*  24 */
  --space-6:  2rem;     /*  32 */
  --space-7:  3rem;     /*  48 */
  --space-8:  4rem;     /*  64 */
  --space-9:  6rem;     /*  96 */
  --space-10: 8rem;     /* 128 */

  /* Section rhythm — consistent vertical beat; the two pinned
     sequences are the only deliberate breaks in it.           */
  --section-pad:   clamp(4rem, 2.5rem + 6vw, 8rem);
  --section-pad-s: clamp(3rem, 2rem  + 4vw, 6rem);

  /* ---------------------------------------------------------
     GEOMETRY / ELEVATION / MOTION
     --------------------------------------------------------- */
  --container:      75rem;   /* 1200 */
  --container-wide: 82.5rem; /* 1320 */
  --gutter: clamp(1.25rem, 0.75rem + 2.5vw, 2.5rem);

  --radius-s: 6px;
  --radius-m: 10px;
  --radius-l: 16px;
  --radius-pill: 999px;

  /* Real shadow physics: ambient + key, ink-tinted, no grey mud. */
  --shadow-1: 0 1px 2px oklch(27.9% 0.037 260.03 / 0.06),
              0 2px 8px oklch(27.9% 0.037 260.03 / 0.05);
  --shadow-2: 0 2px 4px oklch(27.9% 0.037 260.03 / 0.07),
              0 12px 28px -8px oklch(27.9% 0.037 260.03 / 0.14);
  --shadow-3: 0 4px 8px oklch(27.9% 0.037 260.03 / 0.08),
              0 24px 48px -12px oklch(27.9% 0.037 260.03 / 0.2);

  --ease-out:    cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-1: 150ms;
  --dur-2: 280ms;
  --dur-3: 500ms;

  --z-nav: 100;
  --z-skip: 200;
}

/* Ink ground — dense, trust-heavy sections (footer, claim bands).
   Flips semantic tokens so components adapt without variants.   */
.on-ink {
  --text:        var(--surface);
  --text-2:      var(--ink-200);
  --text-3:      var(--ink-300);
  --border:      oklch(45% 0.037 260.03);
  --border-soft: oklch(35.5% 0.037 260.03);
  --focus:       var(--focus-on-ink);
}
