/* ==========================================================================
   לומדים ומשקיעים — אתר
   כיוון: אתר תוכן חם ובהיר, פסים מתחלפים, מסע גלילה אחד.
   ========================================================================== */

@font-face { font-family:'Heebo'; src:url('../assets/fonts/heebo-700.woff2') format('woff2'); font-weight:700; font-display:swap; }
@font-face { font-family:'Heebo'; src:url('../assets/fonts/heebo-800.woff2') format('woff2'); font-weight:800; font-display:swap; }
@font-face { font-family:'Assistant'; src:url('../assets/fonts/assistant-400.woff2') format('woff2'); font-weight:400; font-display:swap; }
@font-face { font-family:'Assistant'; src:url('../assets/fonts/assistant-500.woff2') format('woff2'); font-weight:500; font-display:swap; }
@font-face { font-family:'Assistant'; src:url('../assets/fonts/assistant-600.woff2') format('woff2'); font-weight:600; font-display:swap; }

:root {
  --white:      #FFFFFF;
  --sage:       #EDF4F5;   /* פס ירקרק רך */
  --sage-deep:  #D9E8EA;
  --sand:       #FDF6EC;   /* פס חמים */
  --sand-deep:  #F6E8D4;

  --ink:        #14251E;
  --ink-soft:   #4B5B54;
  --ink-faint:  #7E8C86;

  --green:      #0F4650;
  --green-deep: #0A343C;
  --green-tint: #E0EDEF;

  --coral:      #E85D42;
  --coral-deep: #CC4830;
  --coral-tint: #FDECE8;

  --gold:       #C08A2E;
  --gold-tint:  #FAF0DC;

  /* תכלת עמוק — צבע נתונים משני בלבד. האלמוג שמור לפעולה. */
  --sky:        #1B6394;
  --sky-deep:   #14496D;
  --sky-tint:   #EAF4FB;
  --sky-line:   #C6E0F2;

  --line:       #E3E9E5;
  --line-warm:  #EFE4D4;

  --r-sm: 10px;
  --r:    16px;
  --r-lg: 24px;

  --shell:   1160px;
  --narrow:  760px;
  --measure: 64ch;

  --display: 'Heebo', system-ui, sans-serif;
  --body:    'Assistant', system-ui, -apple-system, sans-serif;

  --shadow-sm: 0 1px 2px rgba(20,37,30,.05), 0 4px 14px -8px rgba(20,37,30,.14);
  --shadow:    0 2px 6px rgba(20,37,30,.06), 0 16px 40px -22px rgba(20,37,30,.26);
  --shadow-lg: 0 4px 12px rgba(20,37,30,.07), 0 32px 70px -30px rgba(20,37,30,.32);

  --ease: cubic-bezier(.22,.68,.28,1);
}

*, *::before, *::after { box-sizing: border-box; }
/* scroll-padding — בלעדיו כל עוגן נחת מתחת להדר הדביק והכותרת נחתכה.
   ‎--sticky-h‎ נמדד ב-js/areas.js; ה-fallback הוא לדפדפן בלי JS. */
html {
  -webkit-text-size-adjust: 100%; scroll-behavior: smooth;
  scroll-padding-top: calc(var(--sticky-h, 70px) + 14px);
}
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: var(--body); font-size: 17px; line-height: 1.75;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
h1,h2,h3,h4 { font-family: var(--display); font-weight: 800; line-height: 1.18; margin: 0; letter-spacing: -.022em; text-wrap: balance; }
p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: none; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--green); color: #fff; }
:where(button,a,input,[tabindex]):focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }

/* ---------- Bands ---------- */
.band { padding-block: clamp(56px, 8vw, 104px); position: relative; }
.band--sage { background: var(--sage); }
.band--sand { background: var(--sand); }
.band--green { background: var(--green); color: #fff; }
.band--tight { padding-block: clamp(40px, 5vw, 64px); }
.shell { max-width: var(--shell); margin-inline: auto; padding-inline: 22px; }
@media (min-width:768px) { .shell { padding-inline: 40px; } }
.narrow { max-width: var(--narrow); margin-inline: auto; }

/* גל מפריד בין פסים */
.wave { display: block; width: 100%; height: 44px; }
.wave path { fill: currentColor; }

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-head.is-stuck { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(20,37,30,.4); }

/* ==========================================================================
   תפריטים נפתחים — משותף לניווט של דף הבית ולסרגל האזורים שבדפי הלימוד.
   נפתח בריחוף וגם ב-focus-within, כדי שגלישה במקלדת תגיע אליו.
   ========================================================================== */
.site-nav__group, .area-nav__group { position: relative; display: flex; align-items: center; }

/* גבולות פיזיים ולא לוגיים — border-inline-end מתהפך ב-RTL והחץ הצביע הצידה */
.has-menu > a::after {
  content: ''; width: 5px; height: 5px; margin-inline-start: 5px; flex: none;
  border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg) translateY(-2px); opacity: .5;
  transition: opacity .18s var(--ease), transform .18s var(--ease);
}
.has-menu:hover > a::after,
.has-menu:focus-within > a::after { opacity: 1; transform: rotate(225deg) translateY(-2px); }

.area-nav__menu {
  position: absolute; top: 100%; inset-inline-start: 0; z-index: 80;
  min-width: 232px; padding: 7px; margin-top: 2px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.area-nav__menu--rich { min-width: 290px; }
.site-nav__group:hover > .area-nav__menu,
.site-nav__group:focus-within > .area-nav__menu,
.area-nav__group:hover > .area-nav__menu,
.area-nav__group:focus-within > .area-nav__menu { opacity: 1; visibility: visible; transform: none; }

.area-nav__sub {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; border-radius: 10px;
  font-size: .9rem; font-weight: 500; color: var(--ink-soft);
  transition: background .16s, color .16s;
}
.area-nav__sub svg { width: 16px; height: 16px; stroke-width: 1.85; flex: none; color: var(--ink-faint); transition: color .16s; }
.area-nav__sub:hover { background: var(--sage); color: var(--ink); }
.area-nav__sub:hover svg { color: var(--green); }
.area-nav__sub[aria-current="true"] { background: var(--green-tint); color: var(--green); font-weight: 700; }
.area-nav__sub[aria-current="true"] svg { color: var(--green); }
.area-nav__subcount {
  margin-inline-start: auto; font-size: .72rem; font-weight: 700;
  color: var(--ink-faint); background: var(--sage); padding: 2px 8px; border-radius: 99px;
}
.area-nav__sub[aria-current="true"] .area-nav__subcount { background: #fff; color: var(--green); }

/* הגרסה של דף הבית — שם האזור ומתחתיו מה שיש בתוכו */
.area-nav__sub--rich { align-items: flex-start; padding: 11px 12px; }
.area-nav__sub--rich svg { margin-top: 2px; }
.area-nav__subtext { display: flex; flex-direction: column; gap: 2px; }
.area-nav__subtitle { font-weight: 700; color: var(--ink); font-size: .93rem; }
.area-nav__subnote { font-size: .78rem; color: var(--ink-faint); line-height: 1.5; }
.area-nav__sub--rich:hover .area-nav__subtitle { color: var(--green); }

/* במכשירי מגע אין ריחוף — לחיצה פשוט הולכת ליעד */
@media (hover: none) {
  .area-nav__menu { display: none; }
  .has-menu > a::after { display: none; }
}
.site-head__inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-block: 13px; }

/* ⭐ הבאג שנמצא: "לומדים ומשקיעים" ו"משה מסינג · מתכנן פיננסי" יושבים זה
   לצד זה וצריכים 249px. הלוגו הוא פריט flex רגיל ולכן התכווץ ל-217
   כשהמקום נגמר — והשניים נשברו לשתי שורות, וההדר קפץ מ-73 ל-96.
   ⛔ נוסו גם grid בשלוש עמודות והרחבת ה-shell לרוחב מלא. שניהם יצרו
   רגרסיות חדשות (חלל ריק של 500px כשהניווט מוסתר, וחריגה אופקית
   ב-1000-1280) ולכן ירדו. שלוש שורות ה-nowrap/flex הן מה שנמדד כנכון. */
/* ⚠️ רק מ-700px ומעלה. ב-320 (אייפון SE, גלקסי S9) הלוגו שאינו מתכווץ
   דחף את הכפתורים ואת המבורגר 53px אל מחוץ למסך. שם ממילא תת-הכותרת
   מוסתרת, ולכן אין מה להגן עליו מפני שבירה. */
@media (min-width: 700px) { .site-head__inner > .logo { flex: none; } }

.logo { display: flex; align-items: center; gap: 11px; }
.logo__mark { width: 40px; height: 40px; flex: none; }
.logo__name { font-family: var(--display); font-weight: 800; font-size: 1.12rem; letter-spacing: -.03em; line-height: 1.15; }
.logo__sub { font-size: .74rem; color: var(--ink-faint); font-weight: 500; white-space: nowrap; }

.site-nav { display: none; gap: 4px; }
/* ⚠️ 1100 ולא 1000. ב-1024 הניווט נדחס עד שהטקסט בתוך כל פריט נשבר לשתי
   שורות ("איך זה עובד", "מרחב הלמידה"), וההדר קופץ מ-73 ל-96 פיקסל.
   נמדד: לוגו 303 + ניווט 507 + כפתורים 124 + מרווחים = ~970, ולכן צריך
   ~1060 פנויים. מתחת לזה עדיף המבורגר על פני סרגל מקומט. */
/* ⛔ 1300 ולא 1000. כפתור ההרשמה הוסיף ~120px לסרגל, ומאז הניווט אינו
   נכנס מתחת ל-1300 — נמדד: חריגה אופקית ב-1100, 1203 ו-1280. עדיף
   המבורגר על פני סרגל שגולש מהמסך. */
@media (min-width:1340px) { .site-nav { display: flex; } }

/* ---------- תפריט נייד ----------
   מתחת ל-1000px ‎.site-nav‎ מוסתר לגמרי. בלי המבורגר לא היה בדף הבית
   שום ניווט מלבד הלוגו וכפתור הטלפון. */
.nav-burger {
  display: grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: 12px;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  transition: border-color .2s, background .2s;
}
.nav-burger:hover { border-color: var(--green); color: var(--green); }
@media (min-width:1000px) { .nav-burger { display: none; } }

.nav-burger__bars { position: relative; width: 18px; height: 13px; }
.nav-burger__bars span {
  position: absolute; inset-inline: 0; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .3s var(--ease), opacity .18s var(--ease);
}
.nav-burger__bars span:nth-child(1) { top: 0; }
.nav-burger__bars span:nth-child(2) { top: 5.5px; }
.nav-burger__bars span:nth-child(3) { top: 11px; }
.nav-burger.is-open .nav-burger__bars span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-burger.is-open .nav-burger__bars span:nth-child(2) { opacity: 0; }
.nav-burger.is-open .nav-burger__bars span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.menu-scrim {
  position: fixed; inset: 0; z-index: 58; background: rgba(20,37,30,.42);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none; transition: opacity .28s var(--ease);
}
.menu-scrim.is-open { opacity: 1; pointer-events: auto; }

.mobile-menu {
  position: fixed; z-index: 59; inset-inline: 0; top: 0;
  background: #fff; border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 44px -26px rgba(20,37,30,.5);
  padding: 78px 22px calc(22px + env(safe-area-inset-bottom));
  max-height: 92dvh; overflow-y: auto;
  display: flex; flex-direction: column; gap: 2px;
  transform: translateY(-101%); visibility: hidden;
  transition: transform .34s var(--ease), visibility .34s;
}
.mobile-menu.is-open { transform: none; visibility: visible; }
@media (min-width:1000px) { .mobile-menu, .menu-scrim, .nav-burger { display: none; } }

/* 48px מינימום — יעד מגע, לא רק גובה טקסט */
.mobile-menu__item {
  display: flex; align-items: center; min-height: 48px; padding: 0 14px;
  border-radius: 12px; font-family: var(--display); font-weight: 600; font-size: 1rem;
  color: var(--ink); transition: background .16s, color .16s;
}
.mobile-menu__item:active { background: var(--sage); }

.mobile-menu__label {
  font-size: .74rem; font-weight: 700; letter-spacing: .04em; color: var(--ink-faint);
  margin: 16px 14px 10px; padding-top: 16px; border-top: 1px solid var(--line);
}
.mobile-menu__label--first { margin-top: 0; padding-top: 0; border-top: none; }

/* אזור ומתחתיו מה שיש בתוכו — כדי שהמחשבונים, הבחנים והאזור האישי
   יהיו נגישים בנגיעה אחת מכל דף, ולא רק שם האזור */
.mobile-menu__group + .mobile-menu__group { margin-top: 10px; }
.mobile-menu__area {
  display: flex; align-items: center; gap: 9px; min-height: 46px; padding: 0 13px;
  border-radius: 12px; background: var(--sage);
  font-family: var(--display); font-weight: 800; font-size: .96rem; color: var(--ink);
}
.mobile-menu__area svg { width: 18px; height: 18px; stroke-width: 1.9; color: var(--green); flex: none; }
.mobile-menu__area[aria-current="true"] { background: var(--green); color: #fff; }
.mobile-menu__area[aria-current="true"] svg { color: #fff; }

.mobile-menu__views { display: flex; flex-direction: column; padding: 2px 6px 0; }
.mobile-menu__view {
  display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 10px;
  border-radius: 10px; font-size: .93rem; font-weight: 500; color: var(--ink-soft);
}
/* קו מוביל שקושר את התצוגה לאזור שמעליה */
.mobile-menu__view::before {
  content: ''; width: 12px; height: 1.5px; background: var(--line); flex: none;
}
.mobile-menu__view[aria-current="true"] { color: var(--green); font-weight: 700; background: var(--green-tint); }
.mobile-menu__view[aria-current="true"]::before { background: var(--green); }
.mobile-menu__view:active { background: var(--sage); }
.mobile-menu__count {
  margin-inline-start: auto; font-size: .72rem; font-weight: 700;
  color: var(--ink-faint); background: var(--sage); padding: 2px 8px; border-radius: 99px;
}
.site-nav a {
  padding: 9px 14px; border-radius: 99px; font-size: .93rem; font-weight: 500;
  color: var(--ink-soft); transition: color .2s, background .2s;
}
.site-nav a { white-space: nowrap; }   /* תווית ניווט לא נשברת לעולם */
.site-nav a { white-space: nowrap; }   /* תווית ניווט לא נשברת */
.site-nav a:hover { color: var(--green); background: var(--green-tint); }
/* פריט עם תפריט — flex כדי שחץ ה-::after יתיישר לצד הטקסט */
.site-nav__group > a { display: flex; align-items: center; }

.head-cta { display: flex; align-items: center; gap: 9px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px; border-radius: 99px; white-space: nowrap;
  font-family: var(--display); font-size: .97rem; font-weight: 700;
  border: 2px solid transparent; transition: all .25s var(--ease);
}
.btn svg { width: 17px; height: 17px; stroke-width: 2.1; }
.btn--primary { background: var(--coral); color: #fff; box-shadow: 0 6px 20px -8px rgba(232,93,66,.55); }
.btn--primary:hover { background: var(--coral-deep); transform: translateY(-2px); box-shadow: 0 12px 28px -10px rgba(232,93,66,.6); }
.btn--green { background: var(--green); color: #fff; box-shadow: 0 6px 20px -8px rgba(15,70,80,.5); }
.btn--green:hover { background: var(--green-deep); transform: translateY(-2px); }
.btn--outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--outline:hover { border-color: var(--green); color: var(--green); }
.btn--onGreen { background: #fff; color: var(--green); }
.btn--onGreen:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -12px rgba(0,0,0,.4); }
.btn--sm { padding: 9px 18px; font-size: .875rem; }
.btn--lg { padding: 16px 34px; font-size: 1.05rem; }

/* ---------- Type helpers ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .8rem; font-weight: 700; font-family: var(--display);
  letter-spacing: .04em; color: var(--green); margin-bottom: 16px;
}
.kicker::before { content:''; width: 26px; height: 2px; background: var(--coral); border-radius: 2px; }
.kicker--onGreen { color: rgba(255,255,255,.85); }
.kicker--onGreen::before { background: rgba(255,255,255,.6); }

.h-xl { font-size: clamp(2.1rem, 5.6vw, 3.5rem); }
.h-lg { font-size: clamp(1.75rem, 4vw, 2.6rem); }
.h-md { font-size: clamp(1.3rem, 2.6vw, 1.65rem); }
.lede { font-size: clamp(1.02rem, 1.7vw, 1.16rem); color: var(--ink-soft); line-height: 1.8; }
.lede--onGreen { color: rgba(255,255,255,.88); }
.lede--onGreen strong { color: #fff; }
.mark { color: var(--green); }
.mark-u { position: relative; white-space: nowrap; display: inline-block; }
.mark-u::before {
  content: ''; position: absolute; inset-inline: -6px; bottom: .04em; height: .30em;
  background: var(--sand-deep); border-radius: 4px; z-index: 0;
}
.mark-u > span, .mark-u { z-index: 1; }
.mark-u::before { z-index: -1; }
.h-xl, .h-lg { position: relative; z-index: 1; }

.section-head { max-width: var(--measure); margin-bottom: 44px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head .lede { margin-top: 16px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--sage); }
.hero__grid { display: grid; gap: 44px; align-items: center; }
@media (min-width:980px) { .hero__grid { grid-template-columns: 1fr 1.05fr; gap: 56px; } }
.hero__copy > * + * { margin-top: 20px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; padding-top: 8px; }

.trust-row { display: flex; gap: 26px; flex-wrap: wrap; padding-top: 22px; margin-top: 26px; border-top: 1px solid var(--sage-deep); }
.trust { display: flex; align-items: center; gap: 10px; }
.trust__num { font-family: var(--display); font-weight: 800; font-size: 1.5rem; color: var(--green); line-height: 1; font-variant-numeric: tabular-nums; }
.trust__label { font-size: .82rem; color: var(--ink-soft); line-height: 1.35; }

/* עיטורים */
.dots { position: absolute; width: 132px; height: 132px; opacity: .5; pointer-events: none; }
.squiggle { position: absolute; pointer-events: none; opacity: .5; }

/* ---------- Hero calculator card ---------- */
.demo {
  background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  padding: 26px; position: relative;
}
.demo__top { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.demo__title { font-family: var(--display); font-weight: 700; font-size: 1.02rem; }
.demo__live {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .74rem; font-weight: 600; color: var(--green);
  background: var(--green-tint); padding: 5px 11px; border-radius: 99px;
}
.demo__live i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: pulse 2s var(--ease) infinite; }
@keyframes pulse { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:.35; transform:scale(.75); } }

.demo__result { text-align: center; padding-block: 6px 18px; }
.demo__result-label { font-size: .82rem; color: var(--ink-faint); margin-bottom: 4px; }
.demo__result-num {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2.1rem, 5.5vw, 2.9rem); letter-spacing: -.035em;
  color: var(--green); font-variant-numeric: tabular-nums; line-height: 1.1;
}
.demo__result-sub { font-size: .82rem; color: var(--ink-faint); margin-top: 6px; }

.demo__chart { position: relative; height: 168px; margin-bottom: 20px; }
.demo__chart canvas { position: absolute; inset: 0; }

.demo__foot { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 4px; }
.demo__note { font-size: .72rem; color: var(--ink-faint); line-height: 1.6; }

/* ---------- Sliders ---------- */
/* המרווחים קוצצו כי הסליידר עצמו גדל מ-6px ל-44px ומביא איתו אוויר */
.slider { margin-bottom: 4px; }
.slider:last-of-type { margin-bottom: 0; }
.slider__row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 0; }
.slider__label { font-size: .88rem; color: var(--ink-soft); font-weight: 500; }
.slider__value { font-family: var(--display); font-weight: 700; font-size: 1rem; font-variant-numeric: tabular-nums; }

/* גובה האלמנט היה 6px — כגובה הפס — כלומר יעד מגע של 6px באצבע.
   הפס נשאר דק, אבל האזור הלחיץ סביבו הוא 44px. touch-action מונע
   מהדפדפן לפרש גרירה אופקית על הסליידר כגלילה של העמוד. */
input[type=range] {
  -webkit-appearance:none; appearance:none; width:100%; background:transparent;
  height:44px; margin:0; padding:0; touch-action:none; cursor:pointer;
}
input[type=range]::-webkit-slider-runnable-track { height:6px; border-radius:99px; background:var(--line); }
input[type=range]::-moz-range-track { height:6px; border-radius:99px; background:var(--line); }
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance:none; width:22px; height:22px; margin-top:-8px; border-radius:50%;
  background:#fff; border:3px solid var(--green); cursor:pointer;
  box-shadow:0 2px 8px rgba(15,70,80,.34); transition:transform .15s var(--ease);
}
input[type=range]::-moz-range-thumb {
  width:22px; height:22px; border-radius:50%; background:#fff; border:3px solid var(--green);
  cursor:pointer; box-shadow:0 2px 8px rgba(15,70,80,.34);
}
input[type=range]:hover::-webkit-slider-thumb { transform: scale(1.13); }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 20px; }
@media (min-width:640px) { .cards--2 { grid-template-columns: repeat(2,1fr); } }
@media (min-width:640px) { .cards--3 { grid-template-columns: repeat(2,1fr); } }
@media (min-width:980px) { .cards--3 { grid-template-columns: repeat(3,1fr); } }

.card {
  background: #fff; border-radius: var(--r-lg); padding: 30px 28px;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  display: flex; flex-direction: column; gap: 12px; text-align: start;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--sage-deep); }
.card__art { width: 68px; height: 68px; margin-bottom: 4px; }
.card__title { font-size: 1.16rem; }
.card__text { font-size: .935rem; color: var(--ink-soft); line-height: 1.7; }
/* מה יש בתוך האזור — שורה לפריט, מופרד מהתיאור בקו דק */
.card__list {
  font-size: .875rem; color: var(--ink-faint); line-height: 2;
  padding-top: 4px; border-top: 1px solid var(--line); margin-top: 4px;
}
.card__list br { line-height: 0; }
.card__go { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: .9rem; color: var(--green); }
.card__go svg { width: 15px; height: 15px; stroke-width: 2.3; transition: transform .28s var(--ease); }
.card:hover .card__go svg { transform: translateX(-5px); }

/* ---------- Curriculum ---------- */
.curriculum { display: grid; gap: 14px; }
@media (min-width:760px) { .curriculum { grid-template-columns: repeat(2,1fr); } }
@media (min-width:1060px) { .curriculum { grid-template-columns: repeat(3,1fr); } }
.lesson-tile {
  display: flex; gap: 15px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 18px 20px; transition: all .26s var(--ease); text-align: start;
}
.lesson-tile:hover { border-color: var(--green); box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.lesson-tile__num {
  font-family: var(--display); font-weight: 800; font-size: .84rem;
  color: var(--green); background: var(--green-tint);
  width: 32px; height: 32px; border-radius: 10px; flex: none;
  display: grid; place-items: center; font-variant-numeric: tabular-nums;
}
.lesson-tile__title { font-family: var(--display); font-weight: 700; font-size: .96rem; line-height: 1.4; }
.lesson-tile__prev { font-size: .82rem; color: var(--ink-faint); line-height: 1.55; margin-top: 4px; }

/* ---------- Steps rail ---------- */
.rail { display: grid; gap: 30px; counter-reset: s; }
@media (min-width:860px) { .rail { grid-template-columns: repeat(3,1fr); gap: 26px; } }
.rail__item { position: relative; padding-top: 56px; }
.rail__item::before {
  counter-increment: s; content: counter(s);
  position: absolute; top: 0; inset-inline-start: 0;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--coral); color: #fff;
  font-family: var(--display); font-weight: 800; font-size: 1.02rem;
  display: grid; place-items: center;
  box-shadow: 0 4px 14px -4px rgba(232,93,66,.6);
}
.rail__item::after {
  content: ''; position: absolute; top: 21px; inset-inline-start: 52px; inset-inline-end: -26px;
  height: 2px; background: repeating-linear-gradient(to left, var(--sand-deep) 0 6px, transparent 6px 12px);
}
@media (max-width:859px) { .rail__item::after { display: none; } }
.rail__item:last-child::after { display: none; }
.rail__title { font-size: 1.1rem; margin-bottom: 9px; }
.rail__text { font-size: .93rem; color: var(--ink-soft); line-height: 1.7; }

/* ---------- Quote ---------- */
.quote { background: #fff; border-radius: var(--r-lg); padding: 34px 32px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.quote__mark { font-family: var(--display); font-size: 3rem; line-height: .7; color: var(--sand-deep); }
.quote__text { font-size: 1.06rem; line-height: 1.8; margin-block: 12px 18px; }
.quote__who { font-size: .87rem; color: var(--ink-faint); font-weight: 600; }

/* ---------- CTA band ---------- */
.cta-grid { display: grid; gap: 30px; align-items: center; }
@media (min-width:880px) { .cta-grid { grid-template-columns: 1.15fr .85fr; } }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Disclaimer ---------- */
.note {
  display: flex; gap: 14px; padding: 20px 22px; border-radius: var(--r);
  background: var(--sand); border-inline-start: 3px solid var(--gold);
}
.note svg { width: 18px; height: 18px; stroke-width: 1.9; color: var(--gold); margin-top: 4px; flex: none; }
.note__text { font-size: .855rem; line-height: 1.75; color: var(--ink-soft); }
.note__text strong { color: var(--ink); font-weight: 600; }

/* ---------- Footer ---------- */
.site-foot { background: var(--ink); color: rgba(255,255,255,.72); padding-block: 52px 34px; }
.site-foot__grid { display: grid; gap: 34px; }
@media (min-width:760px) { .site-foot__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-foot h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; font-weight: 700; }
.site-foot a { color: rgba(255,255,255,.72); transition: color .2s; }
.site-foot a:hover { color: #fff; }
.site-foot__links { display: flex; flex-direction: column; gap: 10px; font-size: .9rem; }
.site-foot__text { font-size: .9rem; line-height: 1.75; max-width: 42ch; }
.site-foot__legal {
  margin-top: 38px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.13);
  font-size: .76rem; line-height: 1.75; color: rgba(255,255,255,.5);
}

/* ---------- Reveal ---------- */
.rv { opacity: 0; transform: translateY(20px); }
.rv.in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rv-d1.in { transition-delay: .08s; } .rv-d2.in { transition-delay: .16s; } .rv-d3.in { transition-delay: .24s; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; z-index: 95; bottom: 26px; inset-inline-start: 50%;
  transform: translateX(50%) translateY(14px);
  display: flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 99px; background: var(--ink); color: #fff;
  font-size: .9rem; font-weight: 600; box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; transition: all .3s var(--ease);
}
.toast.is-open { opacity: 1; transform: translateX(50%); }
.toast svg { width: 16px; height: 16px; stroke-width: 2.6; color: #6FD3A8; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration:.01ms !important; transition-duration:.01ms !important; }
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; }
}

/* ---------- דפים משפטיים ---------- */
.legal { font-size: 1rem; line-height: 1.85; color: var(--ink-soft); }
.legal h3 { font-size: 1.14rem; color: var(--ink); margin-top: 34px; margin-bottom: 10px; }
.legal p + p { margin-top: 12px; }
.legal ul { margin: 12px 0; padding-inline-start: 22px; line-height: 1.9; }

/* ---------- ממיר "כמה זה שווה" ---------- */
.worth { display: grid; gap: 22px; align-items: start; }
@media (min-width:900px) { .worth { grid-template-columns: 400px 1fr; gap: 30px; } }

.worth__input { background:#fff; border:1px solid var(--line); border-radius:var(--r-lg); padding:26px; box-shadow:var(--shadow-sm); }
.worth__row { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.worth__label { font-size:.88rem; color:var(--ink-soft); font-weight:500; width:100%; margin-bottom:2px; }
.worth__field { position:relative; flex:1; min-width:130px; }
.worth__field input {
  width:100%; padding:14px 18px 14px 40px; font:inherit;
  font-family:var(--display); font-weight:700; font-size:1.3rem;
  font-variant-numeric:tabular-nums; color:var(--ink);
  border:1.5px solid var(--line); border-radius:var(--r); background:#fff;
  transition:border-color .22s, box-shadow .22s;
}
.worth__field input:focus { outline:none; border-color:var(--green); box-shadow:0 0 0 4px var(--green-tint); }
.worth__field input::-webkit-outer-spin-button,
.worth__field input::-webkit-inner-spin-button { -webkit-appearance:none; margin:0; }
.worth__field input { -moz-appearance:textfield; }
.worth__unit {
  position:absolute; inset-inline-end:16px; top:50%; transform:translateY(-50%);
  font-family:var(--display); font-weight:700; color:var(--ink-faint); pointer-events:none;
}
.worth__row select {
  padding:14px 16px; font:inherit; font-size:.95rem; font-weight:600;
  border:1.5px solid var(--line); border-radius:var(--r); background:#fff; color:var(--ink); cursor:pointer;
}
.worth__row select:focus { outline:none; border-color:var(--green); }
.worth__equiv { font-size:.83rem; color:var(--ink-faint); margin-top:14px; }
.worth__equiv strong { color:var(--green); font-weight:700; }

.worth__out { display:grid; gap:12px; }
@media (min-width:560px) { .worth__out { grid-template-columns:repeat(3,1fr); } }
.worth-card {
  background:#fff; border:1px solid var(--line); border-radius:var(--r-lg);
  padding:24px 22px; box-shadow:var(--shadow-sm); text-align:center;
  display:flex; flex-direction:column; justify-content:center; min-height:150px;
}
.worth-card--peak { background:var(--green); border-color:var(--green); box-shadow:0 10px 30px -14px rgba(15,70,80,.6); }
.worth-card__years { font-size:.8rem; color:var(--ink-faint); font-weight:600; margin-bottom:8px; }
.worth-card--peak .worth-card__years { color:rgba(255,255,255,.8); }
.worth-card__num {
  font-family:var(--display); font-weight:800; letter-spacing:-.035em;
  font-size:clamp(1.5rem,3.4vw,2rem); color:var(--green);
  font-variant-numeric:tabular-nums; line-height:1.1;
}
.worth-card--peak .worth-card__num { color:#fff; }
.worth-card__sub { font-size:.74rem; color:var(--ink-faint); margin-top:8px; }
.worth-card--peak .worth-card__sub { color:rgba(255,255,255,.75); }
.worth__note { font-size:.78rem; color:var(--ink-faint); text-align:center; margin-top:20px; }

/* ---------- כרטיס המחבר בהירו ---------- */
.author { display:flex; align-items:center; gap:14px; margin-bottom:22px; }
.author__photo {
  width:60px; height:60px; border-radius:50%; flex:none; overflow:hidden;
  background:var(--sage-deep); display:grid; place-items:center;
  border:3px solid #fff; box-shadow:var(--shadow-sm);
}
.author__photo svg { width:26px; height:26px; stroke-width:1.6; color:var(--green); }
.author__photo img { width:100%; height:100%; object-fit:cover; }
.author__name { font-family:var(--display); font-weight:800; font-size:1.02rem; line-height:1.2; }
.author__role { font-size:.82rem; color:var(--ink-soft); }

/* בנייד הכרטיס הוא הדבר הראשון בהירו והוא משך את כל תשומת הלב לפני הכותרת.
   מוקטן ונדחס — משה נוכח, אבל הכותרת מקבלת את הבמה. */
@media (max-width:620px) {
  .author { gap:10px; margin-bottom:16px; }
  .author__photo { width:40px; height:40px; border-width:2px; }
  .author__photo svg { width:18px; height:18px; }
  .author__name { font-size:.92rem; }
  .author__role { font-size:.76rem; }
}

/* ---------- שורת הבטחה מתחת לכפתורים ---------- */
.hero__assurance {
  display:flex; align-items:center; gap:8px;
  font-size:.87rem; color:var(--green); font-weight:600; margin-top:14px;
}
.hero__assurance svg { width:16px; height:16px; stroke-width:2.6; flex:none; }

/* ---------- הבטחת הקנייה הראשונה ---------- */
.promise {
  margin-top:24px; padding:22px 24px; border-radius:var(--r-lg);
  background:#fff; border:1px solid var(--line);
  border-inline-start:4px solid var(--coral); box-shadow:var(--shadow-sm);
}
.promise__title { font-family:var(--display); font-weight:800; font-size:1.05rem; margin-bottom:8px; }
.promise__text { font-size:.93rem; color:var(--ink-soft); line-height:1.75; }
.promise__text strong { color:var(--green); font-weight:700; }

/* ---------- קהלי יעד להרצאות ---------- */
.audience { background:#fff; border:1px solid var(--line); border-radius:var(--r-lg); padding:28px 26px; box-shadow:var(--shadow-sm); }
.audience__title { font-family:var(--display); font-weight:800; font-size:1.05rem; margin-bottom:16px; }
.audience__list { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:13px; }
.audience__list li { display:flex; align-items:flex-start; gap:12px; font-size:.93rem; line-height:1.6; }
.audience__list svg { width:17px; height:17px; stroke-width:2.4; color:var(--green); margin-top:4px; flex:none; }

/* מספר ההירו — משה ביקש להקטין ("קצת בומבסטי") */
.demo__result-num { font-size: clamp(1.6rem, 3.6vw, 2.1rem); }
.demo__result { padding-block: 4px 14px; }

.lecture-tag {
  display:inline-block; font-family:var(--display); font-weight:700; font-size:.88rem;
  color:var(--green); background:#fff; border:1px solid var(--sage-deep);
  padding:7px 15px; border-radius:99px; margin-top:4px;
}

/* המקף מאפשר שבירת שורה אחריו — כאן זה משאיר "כבר מ־" תלוי לבד */
.nowrap { white-space: nowrap; }
.hero__copy .h-xl { font-size: clamp(1.9rem, 4.4vw, 3rem); }

/* ---------- הדר בנייד: הלוגו נשבר והכפתורים דרסו אותו ---------- */
.logo__name { white-space: nowrap; }
@media (max-width: 620px) {
  /* הודק כדי שהמבורגר בן 44px לא ינפח את ההדר */
  .site-head__inner { gap: 10px; padding-block: 8px; }
  .logo__mark { width: 34px; height: 34px; }
  .logo__name { font-size: .98rem; }
  .logo__sub  { display: none; }
  .head-cta .btn--outline { display: none; }   /* "חומרי לימוד" קיים בתפריט ובפוטר */
  .head-cta .btn--sm { padding: 8px 14px; font-size: .82rem; }
}
@media (max-width: 400px) {
  .logo__name { font-size: .9rem; }
}

/* ==========================================================================
   כפתור צף לפתיחת חשבון — קבוע בכל הדפים, לא מסתיר תוכן
   ========================================================================== */
.float-cta {
  position: fixed; z-index: 55;
  bottom: 22px; inset-inline-end: 22px;      /* בעברית = צד שמאל */
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 99px;
  background: var(--coral); color: #fff;
  font-family: var(--display); font-weight: 700; font-size: .95rem;
  box-shadow: 0 10px 30px -8px rgba(232,93,66,.6);
  transform: translateY(90px); opacity: 0;
  transition: transform .4s var(--ease), opacity .3s var(--ease), background .2s;
}
.float-cta.is-shown { transform: none; opacity: 1; }
body.menu-open .float-cta { opacity: 0; pointer-events: none; }
.float-cta:hover { background: var(--coral-deep); }
.float-cta svg { width: 18px; height: 18px; stroke-width: 2.2; }

/* שומר מקום כדי שהכפתור לא יכסה תוכן בסוף הדף */
body { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
@media (max-width: 620px) {
  /* env — בלעדיו הכפתור נחתך מתחת לסרגל הכתובות של ספארי באייפון */
  .float-cta {
    inset-inline: 14px; bottom: calc(14px + env(safe-area-inset-bottom));
    justify-content: center; padding: 15px 20px;
  }
  body { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
}

/* ההירו — משה: "גדול ובומבסטי" */
.demo { padding: 20px; }
.demo__chart { height: 132px; margin-bottom: 16px; }
.demo__result-num { font-size: clamp(1.45rem, 3vw, 1.8rem); }
.demo__title { font-size: .95rem; }
.slider { margin-bottom: 2px; }

/* ==========================================================================
   הרשמה וכניסה — js/auth.js
   החלון בונה DOM משלו ולא מסתמך על .veil/.modal, כי אלה קיימים רק בארבעת
   דפי האזור ולא ב-index.html.
   ========================================================================== */

.lu-auth-me strong { font-weight: 700; }

.lu-veil {
  position: fixed; inset: 0; z-index: 120;
  display: none; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(10, 52, 60, .55);
  backdrop-filter: blur(3px);
}
.lu-veil.is-open { display: flex; }

.lu-modal {
  position: relative;
  width: min(420px, 100%);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  padding: 30px 26px 26px;
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: 0 24px 60px rgba(10, 52, 60, .28);
  text-align: start;
}
.lu-modal__x {
  position: absolute; inset-block-start: 12px; inset-inline-end: 12px;
  width: 38px; height: 38px;               /* יעד מגע — לא גודל האייקון */
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: transparent; color: var(--ink-faint); cursor: pointer;
}
.lu-modal__x:hover { background: var(--sage); color: var(--ink); }
.lu-modal__x svg { width: 20px; height: 20px; }

.lu-modal__title { font-family: var(--display); font-size: 1.45rem; font-weight: 800; color: var(--green-deep); margin: 0 0 8px; }
.lu-modal__text  { color: var(--ink-soft); line-height: 1.6; margin: 0 0 20px; }
.lu-modal__err   { margin: 14px 0 0; padding: 10px 12px; border-radius: var(--r-sm);
                   background: var(--coral-tint); color: var(--coral-deep); font-size: .95rem; font-weight: 600; }

.lu-field { display: block; margin-bottom: 16px; }
.lu-field > span { display: block; margin-bottom: 6px; font-weight: 700; color: var(--ink); font-size: .95rem; }
.lu-field em { font-style: normal; font-weight: 400; color: var(--ink-faint); }
.lu-field input {
  width: 100%; padding: 13px 14px;
  border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background: var(--white); color: var(--ink);
  font: inherit; font-size: 1rem;
}
.lu-field input:focus-visible { outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green); }

.lu-check { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; cursor: pointer; }
.lu-check input { width: 20px; height: 20px; accent-color: var(--green); flex: none; }
.lu-check span { color: var(--ink); font-size: .97rem; }

.lu-hint { margin: 0 0 18px; color: var(--ink-faint); font-size: .87rem; line-height: 1.5; }

.lu-go { width: 100%; justify-content: center; }
.lu-go.is-busy { opacity: .6; pointer-events: none; }

.lu-link {
  border: 0; background: none; padding: 0;
  color: var(--green); font: inherit; font-weight: 700;
  text-decoration: underline; cursor: pointer;
}
.lu-resend { display: block; margin: 14px auto 0; font-size: .92rem; }

/* שש תיבות ספרה. dir=ltr כי קוד מספרי נקרא משמאל לימין גם בעברית. */
.lu-code { direction: ltr; display: flex; gap: 8px; justify-content: center; margin-bottom: 16px; }
.lu-code input {
  width: 100%; max-width: 52px; aspect-ratio: 1 / 1.15;
  border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background: var(--white); color: var(--green-deep);
  font-family: var(--display); font-size: 1.5rem; font-weight: 800; text-align: center;
}
.lu-code input:focus-visible { outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green); }

@media (max-width: 420px) {
  .lu-modal { padding: 26px 18px 20px; }
  .lu-code { gap: 6px; }
}

/* כפתור החשבון בכותרת.
   ⚠️ לא btn--outline — הוא מוסתר מתחת ל-620px ע"י הכלל של "חומרי לימוד". */
.lu-auth-btn {
  background: var(--white); color: var(--green);
  border: 1.5px solid var(--line);
}
.lu-auth-btn:hover { border-color: var(--green); background: var(--green-tint); }
.lu-lbl-short { display: none; }

@media (max-width: 620px) {
  .lu-lbl-full  { display: none; }
  .lu-lbl-short { display: inline; }
  .lu-auth-btn  { padding: 8px 12px; }
}
/* מסך צר מאוד — אייקון בלבד, כדי שההדר לא יישבר לשתי שורות */
@media (max-width: 430px) {
  .lu-lbl-short { display: none; }
  .lu-auth-btn  { padding: 8px 10px; }
}

/* פריט ההרשמה בתפריט הנייד — מודגש, כי הוא הפעולה ולא ניווט */
.lu-menu-item { font-weight: 800; color: var(--green); }

/* ==========================================================================
   האזור האישי ב-me.html — נבנה ב-js/auth.js
   ========================================================================== */
.lu-account { margin-top: 26px; }
.lu-account__title { font-family: var(--display); font-size: 1.2rem; font-weight: 800;
                     color: var(--green-deep); margin: 0 0 6px; }
.lu-account__lede  { color: var(--ink-soft); line-height: 1.65; margin: 0 0 18px; max-width: 52ch; }

.lu-account__rows { margin: 0 0 20px; display: grid; gap: 2px; }
.lu-account__rows > div { display: flex; gap: 10px; align-items: baseline;
                          padding: 9px 0; border-bottom: 1px solid var(--line); }
.lu-account__rows > div:last-child { border-bottom: 0; }
.lu-account__rows dt { flex: 0 0 92px; color: var(--ink-faint); font-size: .9rem; font-weight: 600; }
.lu-account__rows dd { margin: 0; color: var(--ink); font-weight: 600; word-break: break-word; }

.lu-account__actions { display: flex; flex-wrap: wrap; gap: 9px; }
.lu-account__note { margin: 16px 0 0; color: var(--ink-faint); font-size: .87rem; line-height: 1.55; }

/* פעולה הרסנית — אלמון רק בגבול ובטקסט, לא כמילוי, כדי שלא תתחרה ב-CTA */
.lu-danger { color: var(--coral-deep); border-color: var(--coral-tint); }
.lu-danger:hover { border-color: var(--coral); background: var(--coral-tint); }
.lu-danger-go { background: var(--coral-deep); }

/* רשימת "מה נפתח לרשומים" — נגזרת ממה שנעול בפועל ב-CMS */
.lu-perks { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 10px; }
.lu-perks li { display: flex; align-items: flex-start; gap: 9px;
               font-size: .93rem; line-height: 1.55; color: var(--ink-soft); }
.lu-perks svg { width: 17px; height: 17px; flex: none; margin-top: 3px; color: var(--green); }
.lu-perks strong { color: var(--green-deep); font-weight: 700; }

/* יעד מגע: 44px זו הרצפה של Apple. הכפתור היה 36 ונדרש דיוק מיותר. */
@media (max-width: 620px) {
  .lu-auth-btn { min-height: 44px; }
  .head-cta .btn--sm { min-height: 44px; }
}

/* מסך צר מאוד (320px — אייפון SE, גלקסי S9): לוגו + הרשמה + "דברו איתי"
   + המבורגר לא נכנסים יחד, והמבורגר נדחף אל מחוץ למסך. ההרשמה יורדת
   מהכותרת — היא קיימת כפריט מודגש בראש תפריט ההמבורגר, ונבדק שהוא עובד.
   "דברו איתי" נשאר, כי זה ה-CTA של הלקוח. */
@media (max-width: 360px) {
  .lu-auth-btn { display: none; }
}
