/* LZTEAM — shared tokens + components. Palette is the brand book's five colours, nothing else:
   #1b1b1b black · #e5e5e5 off-white · #cbcbcb grey · #60626c dark grey · #04c9ff sky (the only accent). */

@font-face { font-family: 'NBlock'; src: url('../assets/NarkissBlockExtended-Semibold.otf') format('opentype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'NYair'; src: url('../assets/NarkissYair-Regular.otf') format('opentype'); font-weight: 400; font-display: swap; }
/* The third brand font. Latin only — never for Hebrew text (unreadable). Signature + the LZTEAM word. */
@font-face { font-family: 'LZReg'; src: url('../assets/LZTeam-Regular.otf') format('opentype'); font-weight: 400; font-display: swap; }

:root {
  --ink: #1b1b1b;
  --ink-2: #222225;
  --ink-3: #2b2c31;
  --line: #34353b;
  --paper: #e5e5e5;
  --grey: #cbcbcb;
  --slate: #60626c;
  --sky: #04c9ff;
  --sky-soft: rgba(4, 201, 255, 0.12);
  --sky-line: rgba(4, 201, 255, 0.35);
  --radius: 14px;
  --title: 'NBlock', 'Arial Hebrew', sans-serif;
  --body: 'NYair', 'Arial Hebrew', system-ui, sans-serif;
  --brand: 'LZReg', 'NBlock', sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  direction: rtl;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
/* Paper grain — premium comes from texture, not from more colours. */
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body > * { position: relative; z-index: 1; }

h1, h2, h3, .title { font-family: var(--title); font-weight: 600; letter-spacing: 0; line-height: 1.15; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--sky); }
bdi { unicode-bidi: isolate; }
.num { font-family: var(--title); font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
.hidden { display: none !important; }
.muted { color: var(--slate); }
.sky { color: var(--sky); }

/* The brand word — never plain text. */
.lz-word { font-family: var(--brand); letter-spacing: 0.06em; font-size: 1.05em; background: linear-gradient(90deg, var(--paper), var(--sky)); -webkit-background-clip: text; background-clip: text; color: transparent; direction: ltr; unicode-bidi: isolate; }

.eyebrow { font-family: var(--title); font-size: 12px; letter-spacing: 0.08em; color: var(--sky); display: inline-flex; align-items: center; gap: 8px; }
.eyebrow::before { content: ''; width: 18px; height: 2px; background: var(--sky); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--ink-2); font-family: var(--title); font-size: 15px; text-decoration: none; color: var(--paper);
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn:hover { border-color: var(--slate); }
.btn.primary { background: var(--sky); color: var(--ink); border-color: var(--sky); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; }
.btn.small { min-height: 36px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: 0.45; pointer-events: none; }
.icon-btn { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--ink-2); display: inline-grid; place-items: center; }
.icon-btn svg, .btn svg { width: 20px; height: 20px; }

/* Inputs */
.field { display: grid; gap: 6px; }
.field > span { font-size: 13px; color: var(--grey); }
.input, select.input, textarea.input {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 12px;
  background: var(--ink-2); border: 1px solid var(--line); outline: none; font-size: 16px;
}
textarea.input { min-height: 96px; resize: vertical; line-height: 1.6; }
.input:focus { border-color: var(--sky); box-shadow: 0 0 0 3px var(--sky-soft); }
.input::placeholder { color: var(--slate); }

/* Cards */
.card { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 99px; font-size: 12px; border: 1px solid var(--line); color: var(--grey); white-space: nowrap; }
.chip.sky { border-color: var(--sky-line); color: var(--sky); background: var(--sky-soft); }

/* Pyramid tags: weight of the set, readable at a glance */
.tag { background: transparent; display: inline-grid; place-items: center; min-width: 58px; height: 30px; padding: 0 10px; border-radius: 8px; font-family: var(--title); font-size: 13px; border: 1px solid var(--line); color: var(--grey); }
.tag[data-t="בינוני"] { color: var(--paper); border-color: var(--slate); }
.tag[data-t="כבד"] { color: var(--sky); border-color: var(--sky-line); background: var(--sky-soft); }
.tag[data-t="מקס"], .tag[data-t="כשל"] { color: var(--ink); background: var(--sky); border-color: var(--sky); }

/* Sheet / modal */
.scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.62); z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: 560px; max-height: 88vh; overflow: auto; background: var(--ink-2); border: 1px solid var(--line); border-bottom: 0; border-radius: 20px 20px 0 0; padding: 22px 20px calc(22px + var(--safe-b)); }
@media (min-width: 700px) { .scrim { align-items: center; } .sheet { border-radius: 20px; border-bottom: 1px solid var(--line); } }

.toast { position: fixed; bottom: calc(24px + var(--safe-b)); left: 50%; transform: translateX(-50%); background: var(--paper); color: var(--ink); padding: 12px 18px; border-radius: 12px; font-family: var(--title); font-size: 14px; z-index: 80; box-shadow: 0 10px 30px rgba(0,0,0,.4); max-width: calc(100vw - 32px); }

.spinner { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--sky); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }
