/*
 * TALKOLI: שפת העיצוב המשותפת לכל הדפים (דף הנחיתה, הצהרת הנגישות, דפי התוכן).
 * שם הקובץ נשאר kolai.css מסיבות היסטוריות. השם הקודם של המוצר היה KOLAI.
 * סגנון בהשראת poly.ai: שחור, כסף ואדום, כותרות במשקל רגיל בשני גוונים.
 * פונט: Assistant בלבד, מאוחסן אצלנו (רישיון OFL): קובץ משתנה אחד, משקלים 200 עד 800, עברית ולטינית.
 */
@font-face {
  font-family: "Assistant";
  src: url("fonts/assistant.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0a0a0b;
  --ink-2: #141518;
  --ink-3: #1e2024;
  --paper: #eceef1;          /* כסף בהיר: טקסט על שחור, ורקע של חלק בהיר */
  --paper-2: #e6e8eb;
  --paper-3: #d9dce1;
  --card-light: #f5f6f8;
  --gray-1: #858b94;         /* כסף כהה: השורה הראשונה בכותרות על שחור */
  --gray-2: #b4b9c1;
  --gray-dark: #5b6068;      /* טקסט משני על רקע בהיר */
  --line-dark: rgba(236, 238, 241, 0.12);
  --line-light: rgba(10, 10, 11, 0.12);
  --frame: #c4c9d0;          /* מסגרת כסופה לכרטיסים על רקע בהיר */
  --accent: #e0263c;         /* אדום: פעולות והדגשה */
  --accent-ink: #ffffff;
  --accent-bright: #ff4a5e;  /* אדום לטקסט קטן על שחור */
  --accent-on-light: #c01a31;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --gutter: clamp(16px, 4.4vw, 64px);
  --max: 1320px;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { background: var(--ink); scrollbar-color: #3a3c40 var(--ink); -webkit-text-size-adjust: 100%; }
::selection { background: var(--accent); color: var(--accent-ink); }
body { margin: 0; font-family: "Assistant", system-ui, sans-serif; color: var(--paper); background: var(--ink); line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--paper); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ניווט צף */
.nav { position: fixed; inset-inline: var(--gutter); top: 16px; z-index: 50; max-width: var(--max); margin-inline: auto; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-inline: 22px 12px; border-radius: 16px; background: var(--ink-2); border: 1px solid var(--line-dark); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.3rem; font-weight: 600; letter-spacing: 0.04em; text-decoration: none; }
.brand svg { width: 26px; height: 26px; }
.nav-links { display: flex; gap: 30px; font-size: 0.98rem; }
.nav-links a { opacity: 0.8; text-decoration: none; transition: opacity 160ms ease; }
@media (hover: hover) and (pointer: fine) { .nav-links a:hover { opacity: 1; } }

/* כפתורי גלולה, עם עיגול חץ */
.pill { display: inline-flex; align-items: center; gap: 12px; height: 48px; padding-inline: 22px 6px; border-radius: 999px; font-size: 1rem; font-weight: 500; white-space: nowrap; text-decoration: none; transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease; }
.pill:active { transform: scale(0.97); }
.pill .dot { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; transition: transform 220ms var(--ease-out); }
.pill .dot svg { width: 16px; height: 16px; }
.pill-sm { height: 40px; padding-inline: 18px; font-size: 0.95rem; }
.pill-red { background: var(--accent); color: var(--accent-ink); }
.pill-red .dot { background: var(--accent-ink); color: var(--accent); }
.pill-ghost { border: 1px solid rgba(236, 238, 241, 0.55); color: var(--paper); }
.pill-ghost .dot { background: var(--paper); color: var(--ink); }
.light .pill-ghost { border-color: rgba(10, 10, 11, 0.5); color: var(--ink); }
.light .pill-ghost .dot { background: var(--ink); color: var(--paper); }
@media (hover: hover) and (pointer: fine) {
  .pill:hover .dot { transform: translateX(-3px); }
  .pill-red:hover { background: #c81f34; }
}

/* חלקים: שחור ובהיר */
.dark { background: var(--ink); color: var(--paper); }
.light { background: var(--paper); color: var(--ink); }
.wrap { max-width: var(--max); margin-inline: auto; }
.section { padding: clamp(88px, 11vw, 150px) var(--gutter); }

/* כותרות בשני גוונים: השורה הראשונה בכסף כהה, השנייה בהירה */
.h-display { margin: 0; font-weight: 400; font-size: clamp(2.2rem, 1.2rem + 3vw, 4rem); line-height: 1.06; letter-spacing: -0.035em; }
.h-display .g { display: block; color: var(--gray-1); }
.light .h-display .g { color: #7a8089; }
.lede { font-size: clamp(1.06rem, 1rem + 0.3vw, 1.22rem); color: #c9cdd3; max-width: 40ch; }
.light .lede { color: #4d525a; }

/* תחתית */
.footer { background: var(--ink); color: var(--gray-2); padding: 56px var(--gutter) 40px; border-top: 1px solid var(--line-dark); }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; align-items: flex-start; }
.footer a { color: var(--paper); }
.footer small { display: block; color: #8a9099; margin-top: 8px; }

/*
 * כרטיס עם קרן אור: משטח שחור, קו בסיס עדין, וקו לבן דק וזוהר שרץ מסביב.
 * שימוש: class="beam" על הכרטיס, ו-assets/beam.js בדף (נותן לכל כרטיס נקודת התחלה אחרת ועוצר מחוץ למסך).
 * הכרטיס עצמו בלי רקע ובלי גבול: הכלי מצייר את שניהם. הוא תופס את ::before (מילוי וקו) ואת ::after (זוהר),
 * ולכן כרטיס שכבר משתמש בהם צריך עוטף פנימי.
 * overflow:hidden על הכרטיס חותך את הזוהר החיצוני. הקו עצמו נשאר.
 * משתנים: --beam-fill (מילוי), --beam-speed (משך סיבוב), --beam-delay (נקבע ב-beam.js).
 */
@property --beam-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

:where(.beam) { position: relative; border-radius: var(--radius); color: var(--paper); }
.beam { isolation: isolate; background: transparent; border-color: transparent; }
.beam::before,
.beam::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  animation: beam-spin var(--beam-speed, 7s) linear infinite;
  animation-delay: var(--beam-delay, 0s);
}
/* מילוי אטום וקו של פיקסל אחד: הקרן היא החלק הלבן של הגרדיאנט שבגבול */
.beam::before {
  z-index: -1;
  border: 1px solid transparent;
  background:
    var(--beam-fill, linear-gradient(180deg, #17181b 0%, #101113 100%)) padding-box,
    conic-gradient(from var(--beam-angle),
      rgba(236, 238, 241, 0.13) 0deg 298deg,
      rgba(255, 255, 255, 0.5) 334deg,
      #fff 355deg,
      rgba(236, 238, 241, 0.13) 360deg) border-box;
}
/* זוהר: אותה קרן, מטושטשת, מתחת למילוי. נראית רק במקום שבו היא יוצאת מחוץ לכרטיס */
.beam::after {
  z-index: -2;
  inset: -1px;
  background: conic-gradient(from var(--beam-angle),
    transparent 0deg 316deg,
    rgba(255, 255, 255, 0.55) 354deg,
    transparent 360deg);
  filter: blur(6px);
  opacity: 0.7;
}
@keyframes beam-spin { to { --beam-angle: 360deg; } }

.beam.is-paused::before,
.beam.is-paused::after { animation-play-state: paused; }

/* בלי תנועה: הקרן עומדת בפינה העליונה, בצד שבו מתחילים לקרוא */
@media (prefers-reduced-motion: reduce) {
  .beam::before, .beam::after { animation: none; --beam-angle: 64deg; }
}
html.a11y-no-motion .beam::before,
html.a11y-no-motion .beam::after { animation: none !important; --beam-angle: 64deg; }

/* ניגודיות גבוהה: מסגרת לבנה מלאה על שחור, בלי זוהר */
html.a11y-contrast .beam::after { display: none; }
html.a11y-contrast .beam::before { animation: none; background: #000; border-color: #fff; }
@media (forced-colors: active) {
  .beam::after { display: none; }
  .beam::before { border-color: CanvasText; }
}

@media (max-width: 980px) {
  .nav-links { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; }
}
