/* ==========================================================================
   QuLens Design System — Design Tokens
   Generated from the supplied token source: tokens-qulens.md
   (qulens-design-system v2.0.0, updated 2026-08-04).

   That file is authoritative. Primitive ramps, semantic names, the type scale,
   elevation, motion, layout and gradients below are transcribed from it
   verbatim — do not "improve" them here. Values added for this FAQ site that
   the source does not define are grouped under "FAQ ADDITIONS" and are built
   only from the primitives above them.

   Ramp method (from the source): ten-step OKLCH ramps sharing one lightness
   curve, so "step 600" reads at the same weight at any hue. Each seed keeps its
   exact hex and sits at the step matching its own lightness.
   ========================================================================== */

:root {
  /* ---------------------------------------------------------------------
     1. PRIMITIVE — COLOUR
     --------------------------------------------------------------------- */

  /* Accent — the QuLens purple, taken from the mark. #76489c is the mark's mid
     purple and sits at its circular mean hue (306.1°, measured across 43,761
     chromatic pixels of the rendered symbol). Seeded at step 700. 6.61:1 on white. */
  --color-accent-50:  #fcf8ff;
  --color-accent-100: #f4eaff;
  --color-accent-200: #e9d5ff;
  --color-accent-300: #d9b9f9;
  --color-accent-400: #c598ee;
  --color-accent-500: #ad78dc;
  --color-accent-600: #8a56b6;
  --color-accent-700: #76489c; /* ← seed */
  --color-accent-800: #583477;
  --color-accent-900: #381e4c;

  /* Cyan — STATUS HUE ONLY (admin info tone). Not part of the brand: the mark
     has no cyan. It appears in the hero and CTA gradients as their end stop. */
  --color-cyan-50:  #f1faff;
  --color-cyan-100: #def3fd;
  --color-cyan-200: #bce6fb;
  --color-cyan-300: #90d3f3;
  --color-cyan-400: #59bce7;
  --color-cyan-500: #00a1d3;
  --color-cyan-600: #007ea5;
  --color-cyan-700: #006688;
  --color-cyan-800: #004f6a;
  --color-cyan-900: #003143;

  /* Secondary — the indigo headings and dark panels are built from.
     Step 950 is literally the wordmark's own colour, so a heading and the logo
     beside it are the same value rather than two things that nearly match. */
  --color-secondary-50:  #f8f8fc;
  --color-secondary-100: #eeeef5;
  --color-secondary-200: #deddeb;
  --color-secondary-300: #c7c6dc;
  --color-secondary-400: #adabc9;
  --color-secondary-500: #9290b1;
  --color-secondary-600: #716e8e;
  --color-secondary-700: #5c5a75;
  --color-secondary-800: #47455b;
  --color-secondary-900: #2b2a39;
  --color-secondary-950: #201a3e; /* ← wordmark ink */

  /* Neutral — indigo hue at very low chroma */
  --color-neutral-0:   #ffffff;
  --color-neutral-50:  #f8f8f9;
  --color-neutral-100: #efefef;
  --color-neutral-200: #dedee0;
  --color-neutral-300: #c8c8cb;
  --color-neutral-400: #afafb2;
  --color-neutral-500: #939397;
  --color-neutral-600: #727276;
  --color-neutral-700: #5d5d60;
  --color-neutral-800: #48474a;
  --color-neutral-900: #2c2c2e;

  /* CLM — CertiLife. Marks which product a surface is about; the house accent
     stays the brand. clm-500 is 3.78:1 (fills and large text only);
     clm-700 (7.23:1) carries body text. */
  --color-clm-50:  #fff8fc;
  --color-clm-100: #ffe7f6;
  --color-clm-200: #ffceee;
  --color-clm-300: #fbabe1;
  --color-clm-400: #ef84cf;
  --color-clm-500: #d054ae; /* ← seed */
  --color-clm-600: #b33a94;
  --color-clm-700: #952b7a;
  --color-clm-800: #751f5f;
  --color-clm-900: #4b103c;

  /* CLM+ — CertiLife+. Seed's own lightness places it at 700, not 500. */
  --color-clm-plus-50:  #faf9ff;
  --color-clm-plus-100: #eeecff;
  --color-clm-plus-200: #ded9ff;
  --color-clm-plus-300: #c8bfff;
  --color-clm-plus-400: #b09eff;
  --color-clm-plus-500: #9778ff;
  --color-clm-plus-600: #7c3bf9;
  --color-clm-plus-700: #601eca; /* ← seed */
  --color-clm-plus-800: #4f1ea6;
  --color-clm-plus-900: #31106c;

  /* Status */
  --color-success-50: #f2fbf6; --color-success-500: #3eab7e; --color-success-700: #006f4b;
  --color-warning-50: #fdf7f0; --color-warning-500: #c08736; --color-warning-700: #805200;
  --color-danger-50:  #fff6f5; --color-danger-500:  #f2594f; --color-danger-700:  #a82221;

  /* ---------------------------------------------------------------------
     2. SEMANTIC — COLOUR (components use ONLY these)
     --------------------------------------------------------------------- */
  --color-surface:               var(--color-neutral-0);
  --color-surface-sunken:        #faf9fd;
  --color-surface-raised:        var(--color-neutral-0);
  --color-surface-ink:           var(--color-secondary-950);
  --color-surface-ink-raised:    var(--color-secondary-900);
  --color-surface-accent-subtle: var(--color-accent-50);
  --color-surface-accent-strong: var(--color-accent-700);

  --color-text-primary:       var(--color-secondary-950); /* 16.4:1 on white */
  --color-text-body:          var(--color-neutral-700);   /*  6.6:1 */
  --color-text-muted:         var(--color-neutral-600);   /*  4.8:1 */
  --color-text-subtle:        var(--color-neutral-500);
  --color-text-accent:        var(--color-accent-700);    /*  6.6:1 */
  --color-text-on-ink:        var(--color-neutral-0);     /* 16.4:1 on ink */
  --color-text-on-ink-muted:  var(--color-neutral-300);   /*  9.8:1 */
  --color-text-on-ink-accent: var(--color-accent-300);    /*  9.6:1 */
  --color-text-on-accent:     var(--color-neutral-0);

  --color-accent-magenta: #ae53a0; /* the mark's magenta, for gradient stops */

  /* Product marking — which product a surface is about */
  --color-product-clm:            var(--color-clm-700);
  --color-product-clm-fill:       var(--color-clm-500);
  --color-product-clm-soft:       var(--color-clm-50);
  --color-product-clm-line:       var(--color-clm-200);
  --color-product-clm-plus:       var(--color-clm-plus-700);
  --color-product-clm-plus-fill:  var(--color-clm-plus-600);
  --color-product-clm-plus-soft:  var(--color-clm-plus-50);
  --color-product-clm-plus-line:  var(--color-clm-plus-200);

  --color-border:            var(--color-neutral-200);
  --color-border-strong:     var(--color-neutral-500);
  --color-border-accent:     var(--color-accent-200);
  --color-border-on-ink:     #ffffff1f;
  --color-focus-ring:        var(--color-accent-800); /* 9.7:1 on white */
  --color-focus-ring-on-ink: var(--color-accent-300);

  --color-action-primary:          var(--color-accent-700);
  --color-action-primary-hover:    var(--color-accent-800);
  --color-action-primary-active:   var(--color-accent-900);
  --color-action-dark:             var(--color-secondary-950);
  --color-action-dark-hover:       var(--color-secondary-900);
  --color-action-disabled-surface: var(--color-neutral-100);
  --color-action-disabled-text:    var(--color-neutral-600);

  /* ---------------------------------------------------------------------
     3. TYPOGRAPHY
     Lexend runs wider and taller in the x-height than the face it replaced, so
     tracking is more negative above body size and headings sit at 600/700
     rather than 500 — Lexend's 500 reads closer to a regular weight.
     --------------------------------------------------------------------- */
  --font-lexend: "Lexend";
  --font-sans: var(--font-lexend), ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;

  --fw-regular:  400;
  --fw-medium:   500;
  --fw-semibold: 600;
  --fw-bold:     700;

  --fs-display-xl: clamp(2.375rem, 1.55rem + 3.5vw, 4rem);
  --lh-display-xl: 1.06; --ls-display-xl: -0.024em; --fw-display-xl: 700;
  --fs-display-lg: clamp(2rem, 1.5rem + 2.2vw, 3rem);
  --lh-display-lg: 1.1;  --ls-display-lg: -0.022em; --fw-display-lg: 700;
  --fs-heading-xl: clamp(1.75rem, 1.4rem + 1.4vw, 2.25rem);
  --lh-heading-xl: 1.18; --ls-heading-xl: -0.016em; --fw-heading-xl: 700;
  --fs-heading-lg: 1.375rem; --lh-heading-lg: 1.3;  --ls-heading-lg: -0.011em; --fw-heading-lg: 600;
  --fs-heading-md: 1.125rem; --lh-heading-md: 1.35; --ls-heading-md: -0.006em; --fw-heading-md: 600;
  --fs-heading-sm: 1rem;     --lh-heading-sm: 1.4;  --ls-heading-sm: -0.003em; --fw-heading-sm: 600;
  --fs-body-lg: 1.0625rem;   --lh-body-lg: 1.6;
  --fs-body-md: 1rem;        --lh-body-md: 1.65;
  --fs-body-sm: 0.875rem;    --lh-body-sm: 1.6;
  --fs-label-md: 0.875rem;   --lh-label-md: 1.4; --ls-label-md: 0;
  --fs-label-sm: 0.75rem;    --lh-label-sm: 1.4; --ls-label-sm: 0.01em;
  --fs-eyebrow: 0.75rem;     --lh-eyebrow: 1.4;  --ls-eyebrow: 0.1em;

  /* ---------------------------------------------------------------------
     4. SPACE  (note 5 = 1.5rem, not 1.25rem)
     --------------------------------------------------------------------- */
  --space-0: 0rem;    --space-px: 1px;
  --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;
  --space-9: 6rem;    --space-10: 8rem;

  /* ---------------------------------------------------------------------
     5. RADIUS
     --------------------------------------------------------------------- */
  --radius-xs: 4px; --radius-sm: 6px; --radius-md: 10px; --radius-lg: 16px;
  --radius-xl: 24px; --radius-2xl: 32px; --radius-full: 999px;

  /* ---------------------------------------------------------------------
     6. ELEVATION — tinted with the ink indigo rgb(32 26 62), not neutral black
     --------------------------------------------------------------------- */
  --elevation-flat:    none;
  --elevation-raised:  0 1px 2px 0 rgb(32 26 62 / 0.05), 0 1px 3px 0 rgb(32 26 62 / 0.04);
  --elevation-card:    0 1px 2px 0 rgb(32 26 62 / 0.04), 0 8px 24px -12px rgb(32 26 62 / 0.10);
  --elevation-overlay: 0 4px 8px -2px rgb(32 26 62 / 0.08), 0 20px 40px -16px rgb(32 26 62 / 0.18);
  --elevation-sticky:  0 1px 0 0 rgb(32 26 62 / 0.06);

  /* ---------------------------------------------------------------------
     7. MOTION
     --------------------------------------------------------------------- */
  --duration-fast: 120ms; --duration-base: 200ms; --duration-slow: 320ms;
  --ease-out:    cubic-bezier(0.2, 0, 0, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);

  /* ---------------------------------------------------------------------
     8. LAYOUT
     --------------------------------------------------------------------- */
  --layout-container-max: 1200px; /* source value — marketing pages, not this reading page */
  --measure: 68ch;
  --measure-narrow: 56ch;
  --gutter-sm: 1.25rem; --gutter-md: 2rem; --gutter-lg: 2.5rem;
  --section-y-sm: 3.5rem; --section-y-md: 5rem; --section-y-lg: 6.5rem;
  --layout-header-height: 4rem;      /* source floor */
  --layout-header-height-max: 6.5rem;/* source ceiling */

  /* Breakpoints (reference): sm 480 · md 768 · lg 1024 · xl 1280 · 2xl 1536 */

  /* =====================================================================
     FAQ ADDITIONS — not in the source token file.
     Composed only from the primitives above.
     ===================================================================== */

  /* The single alignment rail. The source container-max (1200px) is sized for
     multi-column marketing layouts; a single-column reading page needs a
     shorter measure, so header, nav, content and footer all share 960px. */
  --rail: 960px;
  --gutter: var(--gutter-sm);
  --header-height: 76px;   /* inside the source's 4rem–6.5rem range */
  --logo-height: 42px;     /* the "Building Trust for the Quantum Era" tagline stops reading below this */
  --logo-height-sm: 32px;
  --tap-target: 44px;

  /* The source defines gradient.hero-grid but leaves --grid-line to the
     implementation. Ink indigo at 5% — the same hue the elevations are tinted with. */
  --grid-line: rgb(32 26 62 / 0.05);
  --grid-size: 48px;

  --color-surface-muted:  var(--color-neutral-100);
  --color-highlight-bg:   var(--color-accent-100);
  --color-highlight-text: var(--color-accent-900);
  --color-selection-bg:   var(--color-accent-100);
  --color-marker-accent:  var(--color-accent-500); /* 3.23:1 on white — clears the 3:1 UI floor */

  --border-hairline: 1px solid var(--color-border);
  --border-input:    1px solid var(--color-neutral-300);
  --border-width-focus: 2px;

  --z-base: 1; --z-sticky: 100; --z-header: 200; --z-overlay: 300; --z-toast: 400;

  /* ---------------------------------------------------------------------
     9. GRADIENTS (from the source)
     --------------------------------------------------------------------- */
  --gradient-hero:
    radial-gradient(110% 70% at 45% -10%, var(--color-accent-100) 0%, transparent 60%),
    radial-gradient(70% 60% at 92% 12%, var(--color-cyan-100) 0%, transparent 55%),
    linear-gradient(180deg,
      color-mix(in oklab, var(--color-accent-50) 70%, transparent) 0%,
      color-mix(in oklab, var(--color-accent-50) 25%, transparent) 38%,
      transparent 58%, var(--color-surface) 94%);
  --gradient-hero-grid:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  --gradient-ink: linear-gradient(135deg, var(--color-secondary-950) 0%, #10254d 100%);
  --gradient-accent-cta: linear-gradient(115deg, var(--color-accent-900) 0%, var(--color-accent-700) 28%, var(--color-accent-600) 55%, var(--color-cyan-600) 82%, var(--color-cyan-500) 100%);
  --gradient-accent-band: linear-gradient(120deg, var(--color-accent-900) 0%, var(--color-accent-800) 58%, var(--color-cyan-800) 100%);
  --gradient-clm: linear-gradient(120deg, var(--color-clm-500) 0%, var(--color-clm-600) 55%, var(--color-clm-700) 100%);
  --gradient-clm-plus: linear-gradient(120deg, var(--color-clm-plus-600) 0%, var(--color-clm-plus-700) 55%, var(--color-clm-plus-800) 100%);
}

@media (prefers-reduced-motion: reduce) {
  :root { --duration-fast: 0ms; --duration-base: 0ms; --duration-slow: 0ms; }
}

/* ==========================================================================
   BASE / RESET
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 84px);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--color-surface);
  color: var(--color-text-body);
  font-family: var(--font-sans);
  font-size: var(--fs-body-md);
  line-height: var(--lh-body-md);
  font-weight: var(--fw-regular);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 { margin: 0; color: var(--color-text-primary); }
h1 { font-size: var(--fs-display-lg); line-height: var(--lh-display-lg); letter-spacing: var(--ls-display-lg); font-weight: var(--fw-display-lg); }
h2 { font-size: var(--fs-heading-xl); line-height: var(--lh-heading-xl); letter-spacing: var(--ls-heading-xl); font-weight: var(--fw-heading-xl); }
h3 { font-size: var(--fs-heading-md); line-height: var(--lh-heading-md); letter-spacing: var(--ls-heading-md); font-weight: var(--fw-heading-md); }
h4 { font-size: var(--fs-heading-sm); line-height: var(--lh-heading-sm); letter-spacing: var(--ls-heading-sm); font-weight: var(--fw-heading-sm); }

p { margin: 0 0 var(--space-4); }
p:last-child { margin-bottom: 0; }

a { color: var(--color-text-accent); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { color: var(--color-accent-800); }

ul, ol { margin: 0 0 var(--space-4); padding-left: var(--space-5); }
li { margin-bottom: var(--space-2); }
li:last-child { margin-bottom: 0; }

img, svg { max-width: 100%; }
svg { display: block; }

::selection { background: var(--color-selection-bg); color: var(--color-text-primary); }

:focus-visible {
  outline: var(--border-width-focus) solid var(--color-focus-ring);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

hr { border: 0; border-top: var(--border-hairline); margin: var(--space-6) 0; }
