/* ============================================================
   NimKora Design System — consolidated tokens + base reset
   (fonts → colors → typography → spacing → elevation → base)
   Single self-contained file for the marketing website.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500&family=JetBrains+Mono:wght@500;600;700&display=swap');

/* ---- Color tokens · Modern 2.0 ---- */
:root {
  /* Brand: Kora Tangerine */
  --nk-orange-700: #B23E0C;
  --nk-orange-600: #D6480F;
  --nk-orange:     #F75B1E;
  --nk-orange-400: #FB8043;
  --nk-orange-tint:#FFEDE2;
  --nk-orange-ink: #B23E0C;

  /* Structure: warm near-black (ink) */
  --nk-char-900: #15100B;
  --nk-char-800: #1F1812;
  --nk-char-700: #3A322A;
  --nk-char-tint:#F3EFEA;

  /* Neutrals / ink (warm gray) */
  --ink-900: #1A1410;
  --ink-700: #473E35;
  --ink-600: #736A60;
  --ink-400: #A69E94;
  --ink-300: #C9C2B8;

  /* Surfaces & lines (warm paper) */
  --surface:        #FFFFFF;
  --surface-subtle: #FAF8F5;
  --surface-sunken: #F1ECE5;
  --line:        #EDE8E2;
  --line-strong: #E0D9D0;
  --overlay:     rgba(26, 20, 13, 0.50);

  /* Status: Yellow (action needed) */
  --status-yellow:      #E0930F;
  --status-yellow-bg:   #FCF1D8;
  --status-yellow-ink:  #8A5A06;

  /* Status: Blue (in progress) */
  --status-blue:        #2C71DC;
  --status-blue-bg:     #E5EFFD;
  --status-blue-ink:    #1A4FA8;

  /* Status: Green (complete / positive) */
  --status-green:       #11935F;
  --status-green-bg:    #DCF2E8;
  --status-green-ink:   #0B6B45;

  /* Status: Red (cancelled / destructive) */
  --status-red:         #DD4436;
  --status-red-bg:      #FBE7E4;
  --status-red-ink:     #A82518;

  /* WhatsApp */
  --whatsapp:     #1FA855;
  --whatsapp-ink: #0E6B36;

  /* Semantic aliases */
  --bg-app:          var(--surface-subtle);
  --bg-card:         var(--surface);
  --bg-image-empty:  var(--surface-sunken);
  --text-primary:    var(--ink-900);
  --text-secondary:  var(--ink-600);
  --text-tertiary:   var(--ink-400);
  --text-disabled:   var(--ink-300);
  --text-on-brand:   #FFFFFF;
  --text-on-dark:    #FFFFFF;
  --border-card:     var(--line);
  --border-input:    var(--line-strong);
  --border-focus:    var(--nk-orange);
  --action-primary:        var(--nk-orange);
  --action-primary-hover:  var(--nk-orange-600);
  --action-primary-press:  var(--nk-orange-700);
  --action-danger:         var(--status-red);
  --action-danger-ink:     var(--status-red-ink);
  --surface-selected: var(--nk-orange-tint);
  --header-bg:       var(--surface-subtle);
  --header-text:     var(--ink-900);
}

/* ---- Typography tokens ---- */
:root {
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, system-ui, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

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

  --fs-caption:    12px;
  --fs-body:       14px;
  --fs-body-lg:    15px;
  --fs-button:     16px;
  --fs-section:    18px;
  --fs-title:      22px;
  --fs-display:    30px;
  --fs-code:       28px;
  --fs-code-xl:    40px;

  --lh-tight:  1.1;
  --lh-snug:   1.25;
  --lh-body:   1.5;

  --ls-display: -0.02em;
  --ls-code:    0.02em;
  --ls-caps:    0.05em;
  --ls-normal:  0;

  --text-caption-size:  var(--fs-caption);
  --text-body-size:     var(--fs-body-lg);
  --text-section-size:  var(--fs-section);
  --text-title-size:    var(--fs-display);
  --text-code-size:     var(--fs-code);
}

/* ---- Spacing & radii tokens ---- */
:root {
  --space-0:   0;
  --space-1:   4px;
  --space-2:   8px;
  --space-3:   12px;
  --space-4:   16px;
  --space-5:   20px;
  --space-6:   24px;
  --space-8:   32px;
  --space-10:  40px;
  --space-12:  48px;

  --touch-min:    48px;
  --touch-large:  54px;

  --radius-sm:    12px;
  --radius-md:    14px;
  --radius-button:16px;
  --radius-card:  20px;
  --radius-lg:    24px;
  --radius-sheet: 28px;
  --radius-pill:  999px;

  --screen-pad:    18px;
  --tabbar-height: 74px;
  --header-height: 64px;
  --content-max:   480px;
}

/* ---- Elevation & motion tokens ---- */
:root {
  --shadow-none: none;
  --shadow-1: 0 6px 22px rgba(26, 20, 13, 0.07),
              0 1px 3px rgba(26, 20, 13, 0.05);
  --shadow-2: 0 12px 32px rgba(26, 20, 13, 0.12),
              0 2px 6px rgba(26, 20, 13, 0.06);
  --shadow-sheet: 0 -8px 32px rgba(26, 20, 13, 0.16);
  --shadow-header: 0 1px 0 rgba(26, 20, 13, 0.05);

  --focus-ring: 0 0 0 3px rgba(247, 91, 30, 0.24);

  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --dur-fast:   120ms;
  --dur-base:   180ms;
  --press-scale: 0.98;
}

/* ---- Base reset + primitives ---- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text-primary);
  background: var(--bg-app);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button { font-family: inherit; }

* { -webkit-tap-highlight-color: transparent; }

.nk-mono,
.nk-code,
.nk-amount {
  font-family: var(--font-mono);
  font-feature-settings: 'tnum' 1;
  font-variant-numeric: tabular-nums;
}

.nk-code {
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-code);
}

.material-symbols-rounded {
  font-family: 'Material Symbols Rounded';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  font-variation-settings: 'opsz' 24;
}

.nk-visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---- Language toggle (added for the bilingual marketing site) ---- */
.nav-lang { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 800; color: var(--ink-300); }
.nav-lang a { color: var(--ink-600); padding: 2px 4px; transition: color .15s; }
.nav-lang a:hover { color: var(--nk-orange); }
.nav-lang a.on { color: var(--nk-orange); }
@media (max-width: 860px){ .nav-lang { margin-left: auto; } }
