/* ==========================================================================
   Oktify Design System — Design Tokens
   Generated from the supplied token source: tokens-oktify.md
   (oktify-design-system v0.1.0, updated 2026-07-30).

   That file is authoritative. Primitive ramps, semantic names, the type scale,
   elevation, motion and layout values 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.
   ========================================================================== */

:root {
  /* ---------------------------------------------------------------------
     1. PRIMITIVE — COLOUR
     Accent seeds at 500 (#42aa7e). Secondary seeds at 800 (#443b79): its own
     lightness places it there, and pinning it at 500 would make the ramp
     non-monotonic. Neutrals carry the secondary hue at very low chroma so the
     greys sit in-family with the brand.
     --------------------------------------------------------------------- */

  /* Accent — brand green */
  --color-accent-50:  #f2fbf6;
  --color-accent-100: #e2f4ea;
  --color-accent-200: #c4e9d6;
  --color-accent-300: #9ed8bb;
  --color-accent-400: #71c39c;
  --color-accent-500: #42aa7e; /* ← seed */
  --color-accent-600: #13875e;
  --color-accent-700: #006f4b;
  --color-accent-800: #005639;
  --color-accent-900: #003622;

  /* Secondary — brand indigo */
  --color-secondary-50:  #f8f8ff;
  --color-secondary-100: #edecff;
  --color-secondary-200: #dbd9ff;
  --color-secondary-300: #c3c0f8;
  --color-secondary-400: #a8a2ec;
  --color-secondary-500: #8c83da;
  --color-secondary-600: #6d62b5;
  --color-secondary-700: #584e98;
  --color-secondary-800: #443b79; /* ← seed */
  --color-secondary-900: #29224f;

  /* Neutral */
  --color-neutral-0:   #ffffff;
  --color-neutral-50:  #f8f8f9;
  --color-neutral-100: #eeeef0;
  --color-neutral-200: #dddde2;
  --color-neutral-300: #c7c6ce;
  --color-neutral-400: #ababb5;
  --color-neutral-500: #908f9a;
  --color-neutral-600: #6f6f79;
  --color-neutral-700: #5a5a63;
  --color-neutral-800: #46454d;
  --color-neutral-900: #2a2a30;

  /* Status */
  --color-success-50: #f1fbf6; --color-success-500: #2ba978; --color-success-700: #006c49;
  --color-warning-50: #fff7ee; --color-warning-500: #c48000; --color-warning-700: #7d5000;
  --color-danger-50:  #fff6f5; --color-danger-500:  #ee554c; --color-danger-700:  #a71a1c;
  --color-info-50:    #f4f9ff; --color-info-500:    #3a93ee; --color-info-700:    #005ba6;

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

  --color-text-primary:       var(--color-secondary-900);
  --color-text-body:          var(--color-neutral-700);
  --color-text-muted:         var(--color-neutral-600);
  --color-text-subtle:        var(--color-neutral-500);
  --color-text-accent:        var(--color-accent-700);   /* 6.2:1 on white */
  --color-text-on-ink:        var(--color-neutral-0);    /* 15.6:1 on ink   */
  --color-text-on-ink-muted:  var(--color-neutral-300);  /*  8.7:1 on ink   */
  --color-text-on-ink-accent: var(--color-accent-300);   /*  9.1:1 on ink   */
  --color-text-on-accent:     var(--color-neutral-0);

  --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-700);
  --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-900);
  --color-action-dark-hover:       var(--color-secondary-800);
  --color-action-disabled-surface: var(--color-neutral-100);
  --color-action-disabled-text:    var(--color-neutral-600);

  /* ---------------------------------------------------------------------
     3. TYPOGRAPHY
     --------------------------------------------------------------------- */
  --font-outfit: "Outfit";
  --font-sans: var(--font-outfit), 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;

  /* display-xl — home hero h1 only (unused on this page) */
  --fs-display-xl: clamp(2.375rem, 1.55rem + 3.5vw, 4rem);
  --lh-display-xl: 1.06;  --ls-display-xl: -0.02em;
  /* display-lg — page h1 */
  --fs-display-lg: clamp(2rem, 1.5rem + 2.2vw, 3rem);
  --lh-display-lg: 1.1;   --ls-display-lg: -0.018em;
  /* heading-xl — section h2 */
  --fs-heading-xl: clamp(1.75rem, 1.4rem + 1.4vw, 2.25rem);
  --lh-heading-xl: 1.18;  --ls-heading-xl: -0.012em;
  /* heading-lg — sub-section h3 */
  --fs-heading-lg: 1.375rem;  --lh-heading-lg: 1.3;  --ls-heading-lg: -0.008em;
  /* heading-md — card title h3/h4 */
  --fs-heading-md: 1.125rem;  --lh-heading-md: 1.35; --ls-heading-md: -0.004em;
  /* heading-sm — dense card title */
  --fs-heading-sm: 1rem;      --lh-heading-sm: 1.4;  --ls-heading-sm: 0;
  /* body */
  --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;
  /* labels */
  --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;
  /* eyebrow */
  --fs-eyebrow: 0.75rem;      --lh-eyebrow: 1.4;   --ls-eyebrow: 0.1em;

  /* ---------------------------------------------------------------------
     4. SPACE  (source scale — note 5 = 1.5rem, not 1.25rem)
     --------------------------------------------------------------------- */
  --space-0: 0rem;      --space-px: 1px;
  --space-1: 0.25rem;   /*  4px */
  --space-2: 0.5rem;    /*  8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.5rem;    /* 24px */
  --space-6: 2rem;      /* 32px */
  --space-7: 3rem;      /* 48px */
  --space-8: 4rem;      /* 64px */
  --space-9: 6rem;      /* 96px */
  --space-10: 8rem;     /* 128px */

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

  /* ---------------------------------------------------------------------
     6. ELEVATION — indigo-tinted, from the source
     --------------------------------------------------------------------- */
  --elevation-flat:    none;
  --elevation-raised:  0 1px 2px 0 rgb(41 34 79 / 0.05), 0 1px 3px 0 rgb(41 34 79 / 0.04);
  --elevation-card:    0 1px 2px 0 rgb(41 34 79 / 0.04), 0 8px 24px -12px rgb(41 34 79 / 0.10);
  --elevation-overlay: 0 4px 8px -2px rgb(41 34 79 / 0.08), 0 20px 40px -16px rgb(41 34 79 / 0.18);
  --elevation-sticky:  0 1px 0 0 rgb(41 34 79 / 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 — for 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;

  /* ---------------------------------------------------------------------
     9. BREAKPOINTS (reference — media queries cannot read custom properties)
     sm 480 · md 768 · lg 1024 · xl 1280 · 2xl 1536
     --------------------------------------------------------------------- */

  /* =====================================================================
     FAQ ADDITIONS — not in the source token file.
     Everything here is composed from the primitives above.
     ===================================================================== */

  /* The single alignment rail for this page. 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;   /* 44px logo + breathing room; the source 4rem assumes a smaller lockup */
  --logo-height: 44px;     /* the "Discover | Classify | Protect | Monitor" tagline stops reading below this */
  --logo-height-sm: 34px;
  --tap-target: 44px;

  /* --- Primary action, brand direction 2026-09-07 -------------------------
     Overrides the source's action-primary (accent-700). Primary buttons use the
     accent seed 500 and step DOWN the ramp on hover and press; on ink surfaces
     they start at 400 and step UP on hover (brighter reads as "lift" on dark)
     before pressing back down.

     ACCEPTED TRADE-OFF (client direction): the white label on accent-500 is
     2.88:1 and on accent-400 is 2.10:1 — both below the 4.5:1 AA floor for
     text. This is a deliberate brand decision, not an oversight; do not
     "correct" it back. If AA is ever required, the fix is a brand-ink label
     (5.07:1 on 500) plus a lightening interaction range — ink only clears AA up
     to step 500, so hover must go 500 → 400, never 500 → 600. */
  --color-action-primary:        var(--color-accent-500);
  --color-action-primary-hover:  var(--color-accent-600);
  --color-action-primary-active: var(--color-accent-700);

  /* Primary action on ink surfaces */
  --color-action-primary-on-ink:        var(--color-accent-400);
  --color-action-primary-on-ink-hover:  var(--color-accent-300);
  --color-action-primary-on-ink-active: var(--color-accent-500);

  --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);
  /* accent-500 measures 2.88:1 on white — below the 3:1 floor for non-text UI —
     so the active-question marker steps up to accent-600 (4.5:1 on white,
     4.3:1 on the accent-50 tint it actually sits on). accent-500 stays a
     decorative fill only (illustration highlights). */
  --color-marker-accent:   var(--color-accent-600);

  --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;

  /* Brand grid pattern — the faint graph-paper rule used behind the hero on
     oktify.ai. Indigo ink at 5.5% so it reads as texture, never as content. */
  --grid-size: 48px;
  --grid-line: rgb(41 34 79 / 0.04);
  --pattern-grid:
    repeating-linear-gradient(to right, var(--grid-line) 0 1px, transparent 1px var(--grid-size)),
    repeating-linear-gradient(to bottom, var(--grid-line) 0 1px, transparent 1px var(--grid-size));

  /* Source gradients */
  --gradient-hero: radial-gradient(120% 80% at 8% 0%, var(--color-accent-100) 0%, transparent 55%),
                   radial-gradient(110% 90% at 96% 4%, var(--color-secondary-100) 0%, transparent 52%),
                   linear-gradient(180deg, var(--color-accent-50) 0%, var(--color-surface) 82%);
  --gradient-ink:  linear-gradient(135deg, var(--color-secondary-900) 0%, #322a63 100%);
  --gradient-accent-band: linear-gradient(120deg, var(--color-accent-800) 0%, var(--color-accent-700) 62%, #0a7d55 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);
  font-weight: var(--fw-medium);
  line-height: var(--lh-heading-xl);
}
h1 { font-size: var(--fs-display-lg); line-height: var(--lh-display-lg); letter-spacing: var(--ls-display-lg); }
h2 { font-size: var(--fs-heading-xl); letter-spacing: var(--ls-heading-xl); }
h3 { font-size: var(--fs-heading-md); line-height: var(--lh-heading-md); letter-spacing: var(--ls-heading-md); }
h4 { font-size: var(--fs-heading-sm); line-height: var(--lh-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; }
