:root {
  --kh-indigo: #2f2963;
  --kh-blue:   #288eff;
  --kh-sky:    #dbecff;
  --kh-sky-050:#eef5ff;
  --kh-mist:   #e9e9f2;
  --kh-ink:    #020304;
  --kh-text:   #14151a;
  --kh-text-2: #585857;
  --kh-text-3: #8b90a0;
  --kh-line:   #e8e9ee;
  --kh-surface:#ffffff;
  --kh-bg:     #f6f7f9;
  --kh-success:#12a150;
  --kh-danger: #e5484d;

  --kh-font: 'Rubik','Segoe UI',system-ui,sans-serif;
  --kh-r-card: 24px;
  --kh-r-field: 12px;
  --kh-r-pill: 999px;
  --kh-sh-sm: 0 2px 8px rgba(47,41,99,.06);
  --kh-sh-md: 0 4px 16px rgba(47,41,99,.08);
  --kh-sh-lg: 0 16px 40px rgba(47,41,99,.14);
  --kh-glow:  0 8px 24px rgba(40,142,255,.35);
  --kh-ease:  cubic-bezier(.22,.61,.36,1);
  --kh-ease-out: cubic-bezier(.16,1,.3,1);
  --kh-dur-fast: .18s;
  --kh-dur-base: .32s;

  /* chart tokens: single hue for magnitude, text always in ink tokens */
  --viz-1: #288eff;
  --viz-1-soft: rgba(40,142,255,.14);
  --viz-ink: #14151a;
  --viz-ink-2: #585857;
  --viz-muted: #8b90a0;
  --viz-grid: #e8e9ee;
  
  /* base scale (4px step) */
  --nk-sp-1: 4px;  --nk-sp-2: 8px;   --nk-sp-3: 12px; --nk-sp-4: 16px;
  --nk-sp-5: 20px; --nk-sp-6: 24px;  --nk-sp-8: 32px; --nk-sp-10: 40px;
  --nk-sp-12: 48px; --nk-sp-16: 64px; --nk-sp-24: 96px;

  /* semantic rhythm (desktop) */
  --nk-section: var(--nk-sp-24);   /* padding-block of every section (BRAND §5: ~100px) */
  --nk-section-hero: 72px;         /* hero top only: it already sits under the fixed header */
  --nk-head: var(--nk-sp-8);       /* section head → its content */
  --nk-stack: var(--nk-sp-10);     /* sub-blocks inside a section: buttons → facts, steps → footnote, copy → photo */
  --nk-grid: var(--nk-sp-5);       /* gap between cards in a grid */
  --nk-cols: var(--nk-sp-16);      /* gap between the two columns of a split layout */
  --nk-card-pad: var(--nk-sp-6);   /* inner padding of cards and form cards */
  --nk-gutter: var(--nk-sp-6);     /* container side padding (= .kh-container) */
}

/* ---------- base ---------- */

.kh-body {
  margin: 0;
  padding-top: var(--header-height, 62px);
  font-family: var(--kh-font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--kh-text);
  background: var(--kh-surface);
  -webkit-font-smoothing: antialiased;
}

.kh-body *, .kh-body *::before, .kh-body *::after { box-sizing: border-box; }
/* the hidden attribute must win over component display values (flex/grid) */
.kh-body [hidden] { display: none !important; }

/* .kh-main { position: relative; z-index: 1; }
.kh-main a { color: var(--kh-indigo); text-decoration: none; }
.kh-main img, .kh-main svg { display: block; max-width: 100%; }
.kh-main button, .kh-main input { font: inherit; color: inherit; }
.kh-main ul, .kh-main ol { list-style: none; } */

.kh-container { padding-inline: 24px; }

.kh-skip {
  position: absolute; inset-block-start: -100px; inset-inline-start: 16px; z-index: 2000;
  padding: 10px 16px; border-radius: var(--kh-r-pill);
  background: var(--kh-indigo); color: #fff;
}
.kh-skip:focus { inset-block-start: 12px; }

.kh-visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.kh-num { font-variant-numeric: tabular-nums; }

/* ---------- icon box utility (use on every page) ----------
   <span class="nk-icon"><svg viewBox="0 0 24 24">…</svg></span>
   --nk-icon-box = container size, --nk-icon-size = glyph size.
   Specificity (.kh-main .nk-icon) beats page-level "container span" rules
   that would otherwise turn the box back into display:block. */
.kh-main .nk-icon, .nk-icon {
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto; box-sizing: border-box; margin: 0; padding: 0; line-height: 0;
  width: var(--nk-icon-box, 40px); height: var(--nk-icon-box, 40px);
}
.kh-main .nk-icon > svg, .nk-icon > svg {
  display: block; flex: none; margin: 0;
  width: var(--nk-icon-size, 22px); height: var(--nk-icon-size, 22px);
}

/* ---------- typography ---------- */

.kh-eyebrow {
  font-size: 13px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  color: var(--kh-blue); margin-block-end: 12px;
}
.kh-eyebrow--light { color: #9fd0ff; }

.kh-h1 { font-size: 50px; line-height: 1.15; font-weight: 700; color: var(--kh-indigo); }
.kh-h2 { font-size: 36px; line-height: 1.2; font-weight: 500; color: var(--kh-indigo); }
.kh-h2--light { color: #fff; }
.kh-lead { font-size: 18px; color: var(--kh-text-2); max-width: 520px; margin-block-start: 16px; }

/* ---------- buttons ---------- */

.kh-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 32px; border: 0; border-radius: 24px;
  font-size: 16px; font-weight: 500; white-space: nowrap; cursor: pointer;
  background: var(--kh-indigo); color: #fff;
  transition: transform var(--kh-dur-fast) var(--kh-ease), box-shadow var(--kh-dur-fast) var(--kh-ease), background var(--kh-dur-fast);
}
.kh-btn:hover { transform: translateY(-2px); box-shadow: var(--kh-glow); }
.kh-btn:active { transform: translateY(0); }
.kh-btn:disabled { opacity: .5; cursor: default; transform: none; box-shadow: none; }
.kh-btn--secondary { background: var(--kh-mist); color: var(--kh-indigo); width: auto!important;}
.kh-btn--accent { background: var(--kh-blue); color: #fff; }
.kh-cta__links .kh-btn--ghost-light { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); }
.kh-cta__links .kh-btn--ghost-light:hover { border-color: #fff; box-shadow: none; }
.kh-btn--lg { height: 50px; padding: 0 36px; }

.kh-cta__links .kh-link--light { color: #fff; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- motion ---------- */

.kh-reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--kh-ease), transform .6s var(--kh-ease); }
.kh-reveal.is-in { opacity: 1; transform: none; }
.kh-card.is-new { animation: kh-in .5s var(--kh-ease) both; }
@keyframes kh-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .kh-reveal { transform: none; transition: opacity .3s; }
  .kh-card.is-new { animation: none; }
  .kh-btn, .kh-card, .kh-featured, .kh-card__media .kh-ph { transition: none; }
  .kh-btn:hover, .kh-card:hover, .kh-featured:hover, .kh-catlist__item:hover, .kh-card__read:hover { transform: none; }
  .kh-card__read svg { transition: none; }
  .kh-trending__bar i { transition: none; }
  .kh-chart .kh-viz-anim { animation: none !important; }
}

@media (max-width: 900px) {
  :root { --nk-section: 72px; --nk-section-hero: 56px; --nk-stack: var(--nk-sp-8); --nk-cols: var(--nk-sp-10); }
}

@media (max-width: 767px) {
    :root { --nk-section: 56px; --nk-section-hero: 40px; --nk-head: var(--nk-sp-6); --nk-stack: 28px; --nk-grid: var(--nk-sp-4); --nk-cols: var(--nk-sp-8); --nk-card-pad: var(--nk-sp-5); --nk-gutter: var(--nk-sp-4); }
  .kh-container { padding-inline: 0; }
  .kh-section { padding-block: 56px; }
  .kh-h1 { font-size: 32px; }
  .kh-h2 { font-size: 28px; }
  .kh-lead { font-size: 16px; }
  .kh-btn { padding: 0 24px; }
  
}

.kh-body.lang-he {
  direction: rtl;
  text-align: right;
}