/* ==========================================================================
   זולי — שפת העיצוב.

   שלושה צבעים, כפי שאיתי ביקש: שחור, ירוק וואטסאפ, ולבן.

   ⚠️ **האתר כהה בלבד, וזו הכרעה ולא עצלנות.** ירוק הוואטסאפ (#25D366)
   על שחור נותן ניגודיות 9.7:1 — מצוין. אותו ירוק בדיוק על לבן נותן
   2.0:1 ונכשל בכל תקן. כלומר פלטה של "שחור ירוק ולבן" יכולה להיות
   נגישה רק אם הרקע הוא השחור. מצב בהיר היה מכריח ירוק כהה אחר, כלומר
   מותג שני.

   ⚠️ **הפונטים נבחרו לפי עברית ולא לפי מראה.** מנוע העיצוב הציע
   Fredoka/Nunito — יפים, ובלי אות עברית אחת. Varela Round הוא כתב
   הבועה העברי, ו-Rubik נותן את המשקלים הכבדים שחסרים לו.
   ========================================================================== */

/* ⚠️ **עברית, גם בלי תגית dir.** הדף עצמו מצהיר `dir="rtl"` על
   ה-<html>, אבל סביבות שעוטפות את הקובץ ב-<html> משלהן (Artifact)
   מוחקות אותה — ואז הכול עולה משמאל לימין. זו שכבת הביטחון
   השנייה, והיא עובדת גם בלי שורת JS אחת. */
html { direction: rtl; }

:root {
  /* משטחים — שחור עם נטייה ירקרקה, כדי שהירוק יישב עליו ולא יצוף מעליו */
  --bg:       #070B09;
  --panel:    #0F1613;
  --panel-2:  #141E19;
  --chat:     #0B1210;
  --bot:      #141E19;
  --user:     #10402A;

  /* טקסט */
  --ink:      #FFFFFF;
  --soft:     #9AAAA1;

  --line:     #22302A;

  /* ירוק וואטסאפ */
  --green:    #25D366;
  --green-2:  #5AE68C;
  --green-dk: #128C4A;
  --on-green: #04170C;

  --warn:     #F5B84D;

  --shadow:   0 2px 6px rgba(0,0,0,.45), 0 22px 60px rgba(0,0,0,.55);
  --glow:     0 0 0 1px rgba(37,211,102,.22), 0 12px 44px rgba(37,211,102,.20);
  --radius:   22px;

  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  direction: rtl;
  background: var(--bg);
  color: var(--ink);
  font-family: "Rubik", "Assistant", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* כתב הבועה. Varela Round רק לכותרות ולשבבים — במשפט שלם הוא מתעייף. */
h1, h2, h3, .round {
  font-family: "Varela Round", "Rubik", system-ui, sans-serif;
  line-height: 1.16;
  margin: 0 0 14px;
  letter-spacing: -.4px;
}
h1 { font-size: clamp(34px, 8vw, 78px); }
h2 { font-size: clamp(26px, 5.4vw, 46px); }
h3 { font-size: clamp(19px, 3.2vw, 24px); }
p  { margin: 0 0 15px; }

a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-2); }

::selection { background: var(--green); color: var(--on-green); }

/* מיקוד גלוי — נדרש, ונמחק בטעות בכל עיצוב כהה שמסתמך על ברירת המחדל */
:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 740px; }
section { padding: clamp(56px, 10vw, 120px) 0; position: relative; }

.eyebrow {
  font-family: "Varela Round", sans-serif; font-size: 14px;
  letter-spacing: 1.4px; color: var(--green); margin: 0 0 14px;
  display: inline-flex; align-items: center; gap: 9px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--green); border-radius: 2px;
}
.lede { font-size: clamp(17px, 2.4vw, 20px); color: var(--soft); }

/* -------------------------------------------------- כפתורים */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  background: var(--green); color: var(--on-green); border: 0;
  padding: 15px 32px; border-radius: 999px; cursor: pointer;
  font-family: "Varela Round", sans-serif; font-size: 18px;
  text-decoration: none; box-shadow: var(--glow);
  transition: transform .18s cubic-bezier(.34,1.56,.64,1), box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-2px) scale(1.02); background: var(--green-2); color: var(--on-green); }
.btn:active { transform: translateY(0) scale(.99); }
.btn.ghost {
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--line); box-shadow: none;
}
.btn.ghost:hover { border-color: var(--green); color: var(--green); background: rgba(37,211,102,.06); }
.btn.soon {
  background: var(--panel); color: var(--soft);
  border: 1.5px dashed var(--line); box-shadow: none; cursor: default;
}
.btn.soon:hover { transform: none; background: var(--panel); color: var(--soft); }

/* -------------------------------------------------- קופסאות */
.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
}
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(270px,1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(235px,1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(170px,1fr)); }

.tile {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
}
.tile .num {
  font-family: "Varela Round", sans-serif; font-size: clamp(30px,5.5vw,42px);
  line-height: 1.05; display: block; margin-bottom: 6px;
  font-variant-numeric: tabular-nums; color: var(--green);
}
.tile .lab { color: var(--soft); font-size: 15px; }
.tile .sub { color: var(--soft); font-size: 13px; opacity: .8; margin-top: 5px; }

.pill {
  display: inline-block; padding: 5px 15px; border-radius: 999px;
  background: var(--panel-2); border: 1px solid var(--line);
  font-size: 14px; color: var(--soft); font-family: "Varela Round", sans-serif;
}
.pill.ok   { color: var(--green); border-color: rgba(37,211,102,.35); }
.pill.warn { color: var(--warn); border-color: rgba(245,184,77,.35); }

/* -------------------------------------------------- ניווט */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(7,11,9,.82); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-in {
  max-width: 1080px; margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.brand {
  font-family: "Varela Round", sans-serif; font-size: 21px; color: var(--ink);
  text-decoration: none; display: flex; align-items: center; gap: 9px;
}
.brand .dot { color: var(--green); }
.nav a.link { color: var(--soft); text-decoration: none; font-size: 15.5px; }
.nav a.link:hover { color: var(--green); }
.nav .spacer { flex: 1; }

/* -------------------------------------------------- טבלה */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 15.5px; min-width: 460px; }
th, td { text-align: right; padding: 11px 13px; border-bottom: 1px solid var(--line); }
th { font-family: "Varela Round", sans-serif; color: var(--soft); font-size: 14px; white-space: nowrap; font-weight: 400; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(37,211,102,.04); }
td.num, th.num { font-variant-numeric: tabular-nums; }
.bar-cell { width: 34%; min-width: 100px; }
.bar-bg { background: var(--panel-2); border-radius: 999px; height: 9px; overflow: hidden; }
.bar { height: 9px; border-radius: 999px; background: linear-gradient(90deg, var(--green-dk), var(--green)); }

.list-clean { list-style: none; padding: 0; margin: 0; }
.list-clean li { padding: 13px 0; border-bottom: 1px solid var(--line); display: flex; gap: 12px; }
.list-clean li:last-child { border-bottom: 0; }
.list-clean .mark { flex: none; }

footer {
  border-top: 1px solid var(--line); padding: 30px 0 46px;
  color: var(--soft); font-size: 14.5px;
}
footer a { color: var(--soft); text-decoration: none; }
footer a:hover { color: var(--green); }

/* -------------------------------------------------- העתקה (ערכת שיווק) */
.copy-row { display: flex; gap: 12px; align-items: flex-start; }
.copy-btn {
  flex: none; background: var(--panel-2); border: 1px solid var(--line);
  color: var(--soft); border-radius: 999px; padding: 8px 16px; cursor: pointer;
  font-family: "Varela Round", sans-serif; font-size: 14px;
  transition: color .15s, border-color .15s;
}
.copy-btn:hover { color: var(--green); border-color: var(--green); }
.copy-btn.done { color: var(--on-green); background: var(--green); border-color: var(--green); }
.snippet {
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  padding: 16px 18px; white-space: pre-wrap; font-size: 15.5px; flex: 1; color: var(--ink);
}

/* -------------------------------------------------- חשיפה בגלילה
   כל אלמנט עם .reveal מתחיל שקוף ומוזז, ונחשף כשהוא נכנס למסך.
   ⚠️ ה-JS מוסיף .on. אם ה-JS לא רץ מסיבה כלשהי, `no-js` על ה-html
   מבטל את ההסתרה — דף שכל תוכנו בלתי נראה בגלל סקריפט שנפל הוא
   התקלה הגרועה ביותר שאנימציית גלילה יכולה לגרום. */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.22,1,.36,1); }
.reveal.on { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }
.reveal.d5 { transition-delay: .40s; } .reveal.d6 { transition-delay: .48s; }
html.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

@media (max-width: 560px) {
  body { font-size: 16.5px; }
  .card, .tile { padding: 18px; }
  .copy-row { flex-direction: column-reverse; align-items: stretch; }
}
