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

/* ---------- כרטיס יוקרתי ---------- */
.luxury-card {
  background: color-mix(in oklab, white 66%, transparent);
  border: 1px solid color-mix(in oklab, var(--border-solid) 50%, transparent);
  box-shadow: 0 1px 2px oklch(0.20 0.04 264 / 5%), 0 14px 34px -22px oklch(0.20 0.04 264 / 42%);
  backdrop-filter: blur(24px) saturate(140%);
  transition: background-color 300ms ease, transform 300ms ease, box-shadow 300ms ease, border-color 300ms ease;
}
.luxury-card:hover {
  background: color-mix(in oklab, white 80%, transparent);
  transform: translateY(-4px);
  border-color: color-mix(in oklab, var(--growth) 30%, transparent);
  box-shadow: 0 4px 10px color-mix(in oklab, var(--primary) 10%, transparent);
}
.luxury-card.static:hover { transform: none; }

.glass-input {
  background: color-mix(in oklab, white 80%, transparent);
  border: 1px solid color-mix(in oklab, var(--border-solid) 80%, transparent);
  backdrop-filter: blur(8px);
  outline: none;
}
.glass-input:focus {
  border-color: var(--growth);
  box-shadow: 0 0 0 2px color-mix(in oklab, var(--growth) 20%, transparent);
}
.glass-input.bad { border-color: var(--destructive); box-shadow: 0 0 0 2px color-mix(in oklab, var(--destructive) 18%, transparent); }

/* שורה של תווית וערך (סליידרים): כשהערך גדול מדי הוא יורד לשורה משלו במקום לגלוש */
.kv { flex-wrap: wrap; row-gap: 2px; }

/* ---------- ריחוף וברק בכרטיסי מגזין ---------- */
@keyframes float-soft { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes sheen-sweep { from { transform: translateX(-140%) rotate(18deg); } to { transform: translateX(240%) rotate(18deg); } }
.sheen { position: relative; overflow: hidden; }
.sheen::after {
  content: ""; position: absolute; top: -60%; bottom: -60%; width: 45%;
  background: linear-gradient(to left, transparent, rgb(255 255 255 / 0.55), transparent);
  opacity: 0; pointer-events: none;
}
.sheen:hover::after { opacity: 1; animation: sheen-sweep 900ms ease-out; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-size: 15.5px; font-weight: 600; border-radius: 12px;
  padding: 13px 24px; min-height: 48px; text-align: center;
  transition: transform .3s ease, box-shadow .3s ease, opacity .3s ease;
}
.btn-growth { background: var(--growth); color: var(--growth-foreground); box-shadow: 0 6px 18px -6px color-mix(in oklab, var(--growth) 60%, transparent); }
.btn-growth:hover { color: var(--growth-foreground); transform: translateY(-2px); box-shadow: 0 12px 28px -8px color-mix(in oklab, var(--growth) 65%, transparent); }
.btn-navy { background: var(--primary); color: var(--primary-foreground); }
.btn-navy:hover { color: var(--primary-foreground); transform: translateY(-2px); }
.btn-ghost { border: 1px solid var(--border-solid); background: color-mix(in oklab, white 70%, transparent); color: var(--foreground); backdrop-filter: blur(8px); }
.btn-ghost:hover { color: var(--foreground); transform: translateY(-2px); border-color: color-mix(in oklab, var(--growth) 40%, transparent); }
.btn-sm { font-size: 14px; padding: 9px 16px; min-height: 40px; border-radius: 10px; }
.btn-wrap { white-space: normal; text-wrap: balance; line-height: 1.35; }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none !important; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 600; padding: 8px 15px; border-radius: 9999px;
  border: 1px solid var(--border-solid); background: color-mix(in oklab, white 70%, transparent); color: var(--muted-foreground);
  cursor: pointer; transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .12s ease;
}
.chip:hover { border-color: var(--growth); color: var(--growth); }
.chip:active { transform: scale(.95); }
.chip.on { background: var(--primary); border-color: var(--primary); color: var(--primary-foreground); }

/* צ'יפים של תגיות (בשורה השנייה, מתחת לקטגוריות) - עיצוב מעט שונה כדי שיהיה ברור
   מיד שמדובר בסינון אחר, שאינו חופף לשורת הקטגוריות שמעליו. */
.chip-tag {
  font-size: 12.5px; font-weight: 500; padding: 6.5px 13px 6.5px 14px;
  background: color-mix(in oklab, white 45%, transparent); border-style: dashed;
}
.chip-tag::before { content: "#"; opacity: .5; font-weight: 700; }
.chip-tag.on { background: var(--growth); border-color: var(--growth); border-style: solid; color: var(--growth-foreground); }
.chip-tag.on::before { opacity: .8; }

.pill {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700;
  padding: 5px 11px; border-radius: 9999px;
  background: color-mix(in oklab, var(--growth) 12%, transparent);
  color: oklch(0.45 0.16 252);
  border: 1px solid color-mix(in oklab, var(--growth) 25%, transparent);
}

/* ---------- הדר ---------- */
/* הסרגל העליון (2026-10-17, D38; לפני כן זכוכית נייבי, D34): "אי צף". הסרגל עצמו שקוף, ובתוכו גלולה עם קו זהב שמפניה דק
   ובלי מילוי, רק הפריטים. מהגלילה הראשונה (hdr-solid, hdrScroll() ב-main.js) הגלולה מקבלת זכוכית לבנה, כדי שהתוכן
   שעובר מתחתיה לא יתערבב בפריטים. בתוך הסרגל ובתפריט המובייל --border ו---secondary ממופים לקו ולשטיפה של הסרגל. */
.hdr, .drawer {
  --border: var(--hdr-line);
  --border-solid: var(--hdr-line);
  --secondary: var(--hdr-wash);
  --hdr-hover: var(--growth);
  --hdr-cta-ink: var(--card-solid);
  color: var(--foreground);
}
.hdr {
  --hdr-tall: 84px; --hdr-short: 64px; --hdr-pad: 10px;
  position: sticky; top: 0; z-index: 200;
  padding-block: var(--hdr-pad);
  transition: margin-block-end .3s ease, padding-block .3s ease;
}
/* גובה מינימלי ולא קבוע: כשהטקסט בטלפון מוגדל, הכפתורים יורדים לשורה שנייה במקום לגלוש מהמסך.
   הגלולה + הריפוד של הסרגל = 84 למעלה ו-64 אחרי הגלילה, כמו קודם (hero.js וזרימת header ב-smoke מודדים את זה) */
.hdr .hdr-in {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 18px;
  min-height: calc(var(--hdr-tall) - 2 * var(--hdr-pad)); padding-block: 5px;
  transition: min-height .3s ease, background-color .3s ease, box-shadow .3s ease, border-color .3s ease;
}
/* בגלילה הסרגל מתכווץ מ-84 ל-64. השוליים מתחתיו גדלים באותו זמן באותה כמות, כך שהתוכן שמתחת לא זז
   (בלי זה העמוד היה קופץ 20px למעלה ברגע ההתכווצות). המחלקה יושבת על <html> כי render() בונה את הסרגל מחדש. */
/* הגלולה רחבה מהתוכן (1320 ולא 1180): הלוגו, שישה פריטים, הטלפון והכפתור צריכים כ-1130px.
   רווח מהקצה + מסגרת + ריפוד = 24px לכל צד, בדיוק כמו ה-.wrap של הסרגל הקודם, כך שהשורה נכנסת באותם רוחבים */
.hdr .hdr-in.wrap {
  max-width: 1320px; width: calc(100% - 16px); padding-inline: 15px;
  border: 1px solid var(--hdr-line); border-radius: 32px; background: transparent;
}
.hdr-solid .hdr .hdr-in.wrap {
  background: var(--hdr-glass);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 10px 30px var(--hdr-shadow);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .hdr-solid .hdr .hdr-in.wrap { background: var(--hdr-glass-solid); } }
/* טלפון וטאבלט: בלי טשטוש (global.css, M-057), ולכן הרקע הכמעט אטום, כדי שטקסט שעובר מתחת לסרגל לא ייקרא דרכו */
@media (max-width: 1023px), (pointer: coarse) { .hdr-solid .hdr .hdr-in.wrap { background: var(--hdr-glass-solid); } }
.hdr-compact .hdr { --hdr-pad: 4px; margin-block-end: calc(var(--hdr-tall) - var(--hdr-short)); }
.hdr-compact .hdr .hdr-in { min-height: calc(var(--hdr-short) - 2 * var(--hdr-pad)); padding-block: 3px; }
/* דף הבית עדיין כהה (חלל) עד שלב 2: בראש העמוד, כשהגלולה שקופה, הפריטים בשנהב וזהב. דפדפן בלי :has() מדלג על הכלל
   ומשאיר פריטים כהים מעל החלל; מהגלילה הראשונה הגלולה לבנה ממילא */
html:not(.hdr-solid):has(main.home-dark) .hdr {
  --foreground: var(--on-dark);
  --muted-foreground: var(--on-dark-2);
  --hdr-hover: var(--hdr-gold);
  --hdr-cta-ink: var(--homa-night);
  --hdr-line: color-mix(in oklab, var(--hdr-gold) 60%, transparent);
}
html:not(.hdr-solid):has(main.home-dark) .hdr .hm-logo img { filter: brightness(0) invert(1); }
/* נגיעת ההייטק (D38): בדף הבית קו זהב דק בתחתית הגלולה מתמלא לפי הגלילה בפתיחה (אותו טווח כמו .cine: מסך אחד)
   ונעלם בסופה. רק בדפדפן עם אנימציה לפי גלילה (בלי JS בכל פריים, M-045); כבוי בהפחתת תנועה וב"עצירת אנימציות" */
html:has(main.home-dark) .hdr .hdr-in.wrap::after {
  content: ""; position: absolute; inset-inline: 28px; bottom: -1px; height: 2px; border-radius: 2px; pointer-events: none;
  background: linear-gradient(to left, var(--gold), var(--gold-deep)); transform: scaleX(0); transform-origin: 100% 50%; opacity: 0;
}
@supports (animation-timeline: scroll()) {
  html:has(main.home-dark) .hdr .hdr-in.wrap::after { animation: hdr-progress linear both; animation-timeline: scroll(root block); animation-range: 0px 100svh; }
}
@keyframes hdr-progress { 0% { transform: scaleX(0); opacity: 1; } 90% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { html:has(main.home-dark) .hdr .hdr-in.wrap::after { display: none; } }
html.a11y-no-motion .hdr .hdr-in.wrap::after { display: none; }
.hdr-brand, .hdr-act { min-width: 0; }
.hdr-act { flex-wrap: wrap; justify-content: flex-end; }

/* הלוגו: "חומה" במשקל בינוני עם ריווח, והכיתוב באפור פלטינה עם ריווח אותיות רחב. זוהר כחול רך בריחוף */
.hdr-brand { gap: 11px; text-decoration: none; color: var(--foreground); }
.hdr-brand:hover { color: var(--foreground); }
.hdr-name { font-size: 23px; font-weight: 500; line-height: 1; letter-spacing: .04em; }
.brandsub { font-size: 12px; font-weight: 400; letter-spacing: .14em; color: var(--muted-foreground); margin-top: 4px; }
/* הזוהר על .hm-logo עצמו ולא על התמונה: ל-.hm-logo יש overflow:hidden, שהיה חותך זוהר של התמונה בקצוות ישרים */
.hdr-brand .hm-logo { transition: filter .3s ease; }
.hdr-brand:hover .hm-logo, .hdr-brand:focus-visible .hm-logo {
  filter: drop-shadow(0 0 10px color-mix(in oklab, var(--growth-bright) 75%, transparent));
}
/* הברק נראה רק בתוך צורת החומה, לא כפס על כל הריבוע */
.hdr .hm-sheen, .drawer .hm-sheen {
  -webkit-mask: url("/img/logo.svg") center / contain no-repeat;
  mask: url("/img/logo.svg") center / contain no-repeat;
}

/* טלפון עד 400px: מרווחים וכפתור קטנים יותר, כדי שהכותרת תישאר בשורה אחת בגודל טקסט רגיל (נבדק ב-320, 360, 390) */
@media (max-width: 400px) {
  .hdr .hdr-in { column-gap: 8px; }
  .hdr-brand { gap: 8px; }
  .hdr-act { gap: 5px !important; }
  .hdr-act .hdr-cta.btn { padding-inline: 11px; font-size: 14px; }
  .hdr-name { font-size: 22px; }
  .hdr-brand .hm-logo { width: 34px !important; height: 30px !important; }
  .hdr-brand .hm-logo img { width: 100%; height: 100%; }
  /* אזור הלחיצה של הטלפון (44px) רחב מהאייקון, אז הוא עצמו נותן את הרווח */
  .hdr-act { gap: 2px !important; }
}
@media (max-width: 350px) {
  /* html בבורר: הכלל של 720px מופיע מאוחר יותר בקובץ וגובר על כלל בעל אותה ספציפיות */
  html .hdr .hdr-in.wrap { width: calc(100% - 8px); padding-inline: 7px; }
  .hdr-act .hdr-cta.btn { padding-inline: 10px; font-size: 13.5px; }
}
/* עד 480px הכיתוב מתחת ל"חומה" לא נכנס לצד הטלפון, הכפתור וההמבורגר */
@media (max-width: 480px) { .hdr .brandsub { display: none; } }
/* טלפון לרוחב: אין מקום לכותרת דביקה */
@media (max-height: 480px) and (orientation: landscape) { .hdr { position: static; } }

/* פריטי התפריט: דיו במשקל רגיל, בריחוף כחול, וקו זהב דק שגדל מהמרכז החוצה. העמוד הפעיל: הקו נשאר */
.nav { display: flex; align-items: center; gap: clamp(22px, 2.5vw, 36px); flex-shrink: 0; }
.nav > a, .navitem > a {
  display: inline-flex; align-items: center; min-height: 44px; position: relative;
  font-size: 16px; font-weight: 400; letter-spacing: .02em; color: var(--foreground); white-space: nowrap; text-decoration: none;
  transition: color .3s ease;
}
.nav > a:hover, .navitem > a:hover, .nav > a:focus-visible, .navitem > a:focus-visible, .navitem > a[aria-expanded="true"] { color: var(--hdr-hover); }
.nav > a::after, .navitem > a::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 8px; height: 1px; border-radius: 1px;
  background: var(--hdr-gold);
  transform: scaleX(0); transform-origin: center; transition: transform .3s ease;
}
.nav > a:hover::after, .navitem > a:hover::after, .nav > a:focus-visible::after, .navitem > a:focus-visible::after,
.nav > a.on::after, .navitem > a.on::after { transform: scaleX(1); }
/* החץ: מסתובב בפתיחה. render() מצייר את הפריט מחדש, ולכן הסיבוב הוא אנימציה של הפריט החדש ולא מעבר */
.nav-chev { display: inline-flex; margin-inline-start: 5px; transition: transform .3s ease; }
.navitem > a[aria-expanded="true"] .nav-chev { transform: rotate(180deg); animation: nav-chev-open .3s ease; }
@keyframes nav-chev-open { from { transform: rotate(0deg); } to { transform: rotate(180deg); } }

/* כפתור הפעולה (D38, בקשת הבעלים "יוקרתי יותר"): מסגרת דקה בדיו, בלי מילוי, בלי צל ובלי ברק. בריחוף מתמלא בדיו.
   חריגה מכוונת מ"כל פעולה כחולה" בסרגל בלבד; שאר הכפתורים באתר נשארים כחולים */
.hdr-cta.btn {
  position: relative; flex-shrink: 0;
  min-height: 44px; padding: 10px 22px; border-radius: 999px; font-size: 15px; font-weight: 500; letter-spacing: .03em;
  background: transparent; color: var(--foreground);
  border: 1px solid var(--foreground); box-shadow: none;
  transition: background-color .3s ease, color .3s ease;
}
.hdr-cta.btn:hover, .hdr-cta.btn:focus-visible { transform: none; background: var(--foreground); color: var(--hdr-cta-ink); box-shadow: none; }

/* ---------- תת-תפריט וניווט מובייל ---------- */
.navitem { position: relative; display: inline-flex; }
/* זכוכית לבנה כמו הסרגל, אבל כמעט אטומה: בתוך הסרגל (שיש לו backdrop-filter) טשטוש של רכיב בן לא רואה את העמוד שמתחתיו */
.dropdown {
  position: absolute; top: calc(100% + 12px); inset-inline-start: 50%; transform: translateX(50%);
  min-width: 258px; display: flex; flex-direction: column; gap: 2px; padding: 10px;
  background: var(--hdr-glass-solid); border: 1px solid var(--hdr-line); border-radius: 14px;
  box-shadow: 0 8px 32px var(--hdr-shadow); z-index: 220;
  animation: dropdown-in .3s cubic-bezier(.22,1,.36,1);
  /* בראש דף הבית הסרגל מחליף את --foreground לשנהב, והתפריט (בן שלו) ירש אותו: שנהב על לבן, לא נראה */
  --foreground: var(--hdr-menu-ink); --muted-foreground: var(--hdr-menu-ink-2); --hdr-hover: var(--growth);
  --hdr-line: var(--hdr-menu-line);
  color: var(--foreground);
}
/* אנימציה משלו ולא slide-up-fade: זו דורסת את ה-transform, והתפריט (שממורכז ב-translateX) נפתח בצד ואז קפץ למקומו */
@keyframes dropdown-in { from { opacity: 0; transform: translateX(50%) translateY(10px); } to { opacity: 1; transform: translateX(50%) translateY(0); } }
/* גשר שקוף בין הפריט לתפריט, כדי שהעכבר לא "ייפול" ביניהם */
.dropdown::before { content: ""; position: absolute; top: -14px; inset-inline: 0; height: 14px; }
.drop-a {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 44px; padding: 11px 16px; border-radius: 10px; font-size: 15px; font-weight: 500;
  color: var(--foreground); text-decoration: none; white-space: nowrap;
  transition: background-color .25s ease, color .25s ease;
}
/* ריחוף: שטיפה כחולה בהירה ופס זהב דק בצד ימין (תחילת השורה) */
.drop-a::before {
  content: ""; position: absolute; inset-inline-start: 0; inset-block: 10px; width: 2px; border-radius: 2px;
  background: var(--hdr-gold); transform: scaleY(0); transition: transform .25s ease;
}
.drop-a:hover, .drop-a:focus-visible { background: var(--hdr-wash); color: var(--foreground); }
.drop-a:hover::before, .drop-a:focus-visible::before, .drop-a[aria-current="page"]::before { transform: scaleY(1); }
.drop-sep { height: 1px; background: var(--hdr-line); margin: 6px 10px; }

/* כפתור ההמבורגר: שלושה קווים דקים בדיו, בלי מסגרת (הגלולה היא המסגרת) */
.burger { display: none !important; }
.hdr .burger.btn {
  width: 44px; height: 44px; min-height: 44px; flex-shrink: 0; padding: 0; border-radius: 12px; justify-content: center;
  background: transparent; border: 1px solid transparent; color: var(--foreground);
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.hdr .burger.btn:hover { transform: none; background: var(--hdr-wash); color: var(--hdr-hover); }
.burger-lines { display: flex; flex-direction: column; gap: 5px; width: 20px; }
.burger-lines i { display: block; height: 1.5px; border-radius: 2px; background: currentColor; }

.scrim { position: fixed; inset: 0; z-index: 480; background: oklch(0.178 0.035 264 / 42%); backdrop-filter: blur(3px); }
/* תפריט המובייל: פאנל זכוכית לבנה שנכנס מהצד; בטלפון הוא תופס את כל המסך */
.drawer {
  position: fixed; inset-block: 0; inset-inline-end: 0; z-index: 490;
  width: 400px; max-width: 100vw;
  background: var(--hdr-glass-solid);   /* כמעט אטום: העמוד מאחורי התפריט לא אמור להיראות, ומעל דף כהה הטקסט האפור ירד מתחת ל-4.5:1 */
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border-inline-start: 1px solid var(--hdr-line);
  box-shadow: 0 8px 32px var(--hdr-shadow);
  display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain;
  animation: drawer-in .3s cubic-bezier(.22,1,.36,1);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .drawer { background: var(--hdr-glass-solid); } }
@media (max-width: 560px) { .drawer { width: 100%; border-inline-start: 0; } }
/* האתר RTL: inset-inline-end הוא הצד השמאלי, ליד כפתור ההמבורגר, ולכן הפאנל נכנס משמאל */
@keyframes drawer-in { from { transform: translateX(-105%); opacity: .6; } to { transform: none; opacity: 1; } }
.drawer-top { position: sticky; top: 0; z-index: 2; gap: 12px; padding: 16px 16px 14px; background: var(--hdr-glass-solid); border-bottom: 1px solid var(--hdr-line); }
.drawer-close { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; color: var(--foreground); }
.drawer-close:hover { background: var(--hdr-wash); }
.drawer-a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 52px; padding: 13px 16px; border-radius: 12px; text-decoration: none; color: var(--foreground);
  text-align: start; width: 100%;
}
.drawer-a:hover, .drawer-a:focus-visible { background: var(--secondary); color: var(--foreground); }
.drawer-t { font-size: 20px; font-weight: 500; line-height: 1.3; }
.drawer-st { font-size: 16px; font-weight: 500; }
.drawer-chev { display: flex; color: var(--muted-foreground); }
.drawer-label { font-weight: 700; letter-spacing: .08em; color: var(--muted-foreground); padding: 6px 16px; }
.drawer .btn-ghost { background: transparent; border-color: var(--hdr-line); color: var(--foreground); -webkit-backdrop-filter: none; backdrop-filter: none; }
.drawer .btn-ghost:hover { border-color: var(--hdr-gold); color: var(--foreground); background: var(--hdr-wash); }
.drawer .hdr-cta.btn { width: 100%; min-height: 52px; font-size: 17px; }
.drawer-foot { gap: 9px; padding: 16px 16px 22px; margin-top: auto; border-top: 1px solid var(--hdr-line); }

/* אקורדיונים בתפריט המובייל */
.drawer-acc-btn { cursor: pointer; }
.drawer-acc-chev { transition: transform .25s ease; }
.drawer-acc-btn[aria-expanded="true"] .drawer-acc-chev { transform: rotate(180deg); }
.drawer-acc-panel { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .28s ease, visibility 0s linear .28s; }
.drawer-acc-panel.open { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .28s ease, visibility 0s; }
.drawer-acc-inner { overflow: hidden; min-height: 0; margin-inline-start: 14px; padding-inline-start: 6px; border-inline-start: 2px solid var(--hdr-line); display: flex; flex-direction: column; gap: 2px; }
.drawer-sub { min-height: 48px; padding-block: 11px; }

/* 1024–1279: התפריט המלא נכנס רק כשהפריטים 15px. מתחת ל-1024 התפריט עובר להמבורגר */
@media (max-width: 1279.98px) {
  .nav > a, .navitem > a { font-size: 15px; letter-spacing: 0; }
  /* רווח קטן יותר בין הפריטים: ב-1024 עם פס גלילה (Windows, כ-15px) נשארו רק 17px עד שהשורה נשברת (B-084). כך כ-50px */
  .nav { gap: clamp(16px, 1.9vw, 36px); }
  /* הריווח בין האותיות עולה רוחב: ב-1024 בלעדיו השורה לא נכנסת */
  .hdr .brandsub { letter-spacing: .06em; }
  .hdr-cta.btn { letter-spacing: 0; }
}
@media (max-width: 1023.98px) {
  .nav { display: none !important; }
  .burger { display: inline-flex !important; }
}
/* בטלפון הסרגל נמוך מלכתחילה ואינו מתכווץ */
@media (max-width: 720px) {
  .hdr { --hdr-tall: 64px; --hdr-short: 64px; --hdr-pad: 4px; }
  .hdr .hdr-in { padding-block: 3px; }
  /* בטלפון: 6 + 1 + 10 = 17px לכל צד, כמו ה-.wrap (18px) */
  .hdr .hdr-in.wrap { width: calc(100% - 12px); padding-inline: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .hdr, .hdr .hdr-in, .nav > a, .navitem > a, .nav > a::after, .navitem > a::after, .nav-chev,
  .hdr-cta.btn, .hdr-cta.btn::after, .drop-a, .drop-a::before, .hdr-brand .hm-logo { transition: none; }
  .navitem > a[aria-expanded="true"] .nav-chev, .dropdown, .drawer { animation: none; }
  .hdr-cta.btn:hover, .hdr-cta.btn:focus-visible { transform: none; }
}
.a11y-no-motion .hdr-cta.btn:hover, .a11y-no-motion .hdr-cta.btn:focus-visible { transform: none; }

/* ---------- באנר הסכמה ---------- */
.consent {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 460;
  background: var(--card-solid); border-top: 1px solid var(--border);
  box-shadow: 0 -8px 30px oklch(0.30 0.06 258 / .10);
  animation: consent-up .42s cubic-bezier(.22,1,.36,1) both;
  padding-bottom: env(safe-area-inset-bottom, 0);
  /* טקסט מוגדל בטלפון: הבאנר לא יעלה על חצי מסך, ומה שלא נכנס נגלל בתוכו */
  max-height: 60vh; max-height: 60dvh; overflow-y: auto; overscroll-behavior: contain;
}
/* בטלפון הבאנר נשאר על המסך בזמן הגלילה: svh יציב, ו-dvh היה משנה את גובהו כששורת הכתובת מתכווצת */
@media (max-width: 767px) { .consent { max-height: 60vh; max-height: 60svh; } }
@keyframes consent-up { from { transform: translateY(100%); } to { transform: none; } }
.consent-in {
  max-width: 1180px; margin: 0 auto; padding: 15px 20px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.consent-t { flex: 1 1 420px; min-width: 0; font-size: 13.5px; line-height: 1.7; color: var(--muted-foreground); }
.consent-t strong { color: var(--foreground); }
.consent-t a { color: var(--growth); text-decoration: underline; }
.consent-btns { display: flex; gap: 9px; flex-shrink: 0; }
.consent-btns .btn { padding: 10px 20px; font-size: 14px; }
@media (max-width: 560px) {
  .consent-in { padding: 14px 16px; gap: 12px; }
  .consent-btns { width: 100%; }
  .consent-btns .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { .consent { animation: none; } }

/* כל עוד הבאנר על המסך, הכפתורים הצפים עולים מעליו ולא נחסמים */
body.has-consent .noa-fab,
body.has-consent .a11y-btn,
body.has-consent .a11y-panel { bottom: calc(20px + var(--consent-h, 88px)); }
/* לפאנל של נועה המרחק מהתחתית נשמר במשתנה, כי גם הגובה המרבי מחושב ממנו.
   בלי זה הבאנר דוחף את הפאנל למעלה והכותרת יוצאת מהמסך. */
body.has-consent .noa-panel { --noa-bot: calc(20px + var(--consent-h, 88px)); }
@media (max-width: 560px) {
  body.has-consent .noa-fab { bottom: calc(12px + var(--consent-h, 128px)); }
  body.has-consent .noa-panel { --noa-bot: calc(12px + var(--consent-h, 128px)); }
}

/* ---------- באנר לכידת פניות ---------- */
.pop { padding: 0 !important; max-width: 460px; width: 100%; }
.pop-in {
  display: flex; flex-direction: column; gap: 16px;
  padding: 30px 28px 24px; position: relative;
}
.pop-x {
  position: absolute; inset-inline-end: 16px; top: 16px;
  display: flex; padding: 6px; border-radius: 8px;
  color: var(--muted-foreground); transition: background .15s, color .15s;
}
.pop-x:hover { background: var(--secondary); color: var(--foreground); }

.pop-head { display: flex; flex-direction: column; gap: 6px; text-align: center; margin-top: 4px; }
.pop-h { font-size: 23px; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; }
.pop-sub { font-size: 14.5px; line-height: 1.65; color: var(--muted-foreground); margin: 0; }

.pop-f { display: flex; flex-direction: column; gap: 6px; }
.pop-l { font-size: 13px; font-weight: 600; color: var(--foreground); }
.vis-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.pop-i {
  width: 100%; font: inherit; font-size: 15px; color: var(--foreground);
  background: var(--card-solid);
  border: 1px solid var(--input); border-radius: 11px;
  padding: 12px 14px; outline: none;
  transition: border-color .16s, box-shadow .16s;
}
.pop-i::placeholder { color: color-mix(in oklab, var(--muted-foreground) 72%, transparent); }
.pop-i:hover { border-color: color-mix(in oklab, var(--ring) 45%, var(--input)); }
.pop-i:focus {
  border-color: var(--ring);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 18%, transparent);
}
.pop-i.bad { border-color: var(--destructive); }
.pop-t { resize: vertical; min-height: 84px; line-height: 1.6; }

.pop-sel { position: relative; display: block; }
.pop-sel select {
  appearance: none; -webkit-appearance: none;
  padding-inline-start: 40px; cursor: pointer;
}
.pop-chev {
  position: absolute; inset-inline-start: 13px; top: 50%; transform: translateY(-50%);
  display: flex; pointer-events: none; color: var(--muted-foreground);
}

.pop-e { font-size: 12.5px; font-weight: 500; color: var(--destructive); line-height: 1.5; }

.pop-send { width: 100%; padding: 14px; font-size: 15.5px; border-radius: 12px; margin-top: 2px; }
.pop-send:disabled { opacity: .6; cursor: default; transform: none; }

.pop-trust {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  font-size: 12px; line-height: 1.5; color: var(--muted-foreground); margin: 0;
  text-align: center;
}
.pop-tick {
  display: flex; align-items: center; justify-content: center;
  width: 58px; height: 58px; border-radius: 50%; margin-top: 6px;
  background: color-mix(in oklab, var(--growth) 12%, transparent); color: var(--growth);
}

@media (max-width: 480px) {
  .pop-in { padding: 26px 20px 20px; gap: 14px; }
  .pop-h { font-size: 21px; }
}

/* ---------- הלוגו ---------- */
.hm-logo {
  position: relative; display: inline-block; flex-shrink: 0;
  line-height: 0; overflow: hidden; border-radius: 4px;
}
.hm-logo img {
  display: block; width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 1px 2px oklch(0.30 0.08 255 / .20));
}

/* כניסה עדינה פעם אחת בטעינה */
.hm-anim img { animation: hm-in .62s cubic-bezier(.22,1,.36,1) both; }
@keyframes hm-in {
  from { opacity: 0; transform: translateY(4px) scale(.92); }
  to   { opacity: 1; transform: none; }
}

/* הבזק אור שעובר על המגן — פעם בטעינה, ושוב במעבר עכבר */
.hm-sheen {
  position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(105deg,
    transparent 38%,
    oklch(1 0 0 / .55) 48%,
    oklch(1 0 0 / .16) 55%,
    transparent 64%);
  background-size: 260% 100%; background-position: 180% 0;
}
.hm-anim .hm-sheen { animation: hm-sweep 1.5s ease-out .5s 1 both; }
@keyframes hm-sweep {
  from { background-position: 180% 0; }
  to   { background-position: -80% 0; }
}

a:hover > .hm-logo img, button:hover > .hm-logo img,
.hm-logo:hover img { transform: translateY(-1px) scale(1.04); }
.hm-logo img { transition: transform .28s cubic-bezier(.22,1,.36,1); }
a:hover > .hm-logo .hm-sheen, .hm-logo:hover .hm-sheen {
  animation: hm-sweep .9s ease-out 1 both;
}

@media (prefers-reduced-motion: reduce) {
  .hm-anim img { animation: none; }
  .hm-sheen { display: none; }
  .hm-logo img { transition: none; }
}

/* ---------- טבלאות ---------- */
.tscroll { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
table.t { width: 100%; border-collapse: collapse; min-width: 560px; }
/* העיצוב הבסיסי של התאים לפני כללי הטלפון שמתחת, כדי שהם יוכלו לגבור עליו */
table.t th, table.t td { padding: 14px 16px; text-align: right; border-bottom: 1px solid var(--border); font-size: 14.5px; }
table.t thead th { background: var(--secondary); font-weight: 700; color: var(--foreground); font-size: 13.5px; }
table.t tbody tr:last-child td { border-bottom: none; }
table.t td:first-child { font-weight: 600; color: var(--foreground); }

/* במסך צר טבלה של שלוש עמודות נחתכת, והעמודה החשובה היא בדיוק זו שנעלמת.
   לכן כל שורה הופכת לכרטיס, עם שם העמודה לצד הערך. */
@media (max-width: 620px) {
  .tscroll { overflow: visible; }
  table.t, table.t tbody, table.t tr, table.t td { display: block; width: 100%; min-width: 0; }
  table.t thead { display: none; }
  table.t tr {
    border-bottom: 1px solid var(--border); padding: 4px 0 8px;
  }
  table.t tbody tr:last-child { border-bottom: none; }
  table.t td {
    display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
    border-bottom: none; padding: 7px 16px; text-align: start;
  }
  table.t td::before {
    content: attr(data-h);
    /* שם העמודה לא יותר מחצי שורה: בגודל רגיל זה לא משנה דבר, וכשהטקסט מוגדל הוא נשבר ולא דוחף את הערך מהמסך */
    flex: 0 0 auto; max-width: 50%; font-size: 12px; font-weight: 600;
    color: var(--muted-foreground); opacity: .9;
  }
  table.t td:first-child {
    padding-top: 13px; font-size: 15.5px; font-weight: 700;
    background: var(--secondary); margin-bottom: 4px; padding-bottom: 11px;
  }
  table.t td:first-child::before { display: none; }
  table.t td:not(:first-child) { text-align: end; }
}

/* ---------- נועה ---------- */
.noa-fab {
  position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 400;
  display: flex; align-items: center; gap: 10px;
  background: var(--growth); color: var(--growth-foreground);
  border-radius: 9999px; padding: 12px 20px; font-weight: 600; font-size: 15px;
  box-shadow: 0 10px 30px -6px color-mix(in oklab, var(--growth) 55%, transparent);
}
.noa-fab:hover { transform: translateY(-3px); color: var(--growth-foreground); }
.noa-panel {
  --noa-bot: 20px;
  position: fixed; inset-inline-end: 20px; bottom: var(--noa-bot); z-index: 420;
  width: 384px; max-width: calc(100vw - 32px);
  height: 620px; max-height: calc(100vh - var(--noa-bot) - 20px); max-height: calc(100dvh - var(--noa-bot) - 20px);
  background: var(--card-solid); border: 1px solid var(--border-solid); border-radius: 18px;
  box-shadow: 0 24px 70px -12px oklch(0.178 0.035 264 / 28%);
  display: flex; flex-direction: column; overflow: hidden;
}
/* המחלקה הזו מתווספת רק לרינדור שבו החלון נפתח בפועל (ר' renderNoa ב-leads.js).
   כל שינוי אחר בתוך השיחה (למשל בחירת אופציה) בונה מחדש את ה-DOM של הפאנל
   בלי המחלקה הזו, כדי שהאנימציה לא תרוץ מחדש בכל לחיצה ותיצור קפיצה. */
.noa-panel.noa-enter { animation: slide-up-fade .3s cubic-bezier(.22,1,.36,1); }
.noa-log { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 12px; }
.bub { max-width: 86%; padding: 11px 15px; border-radius: 16px; font-size: 15px; line-height: 1.65; white-space: pre-line; }
.bub.noa { background: var(--secondary); color: var(--secondary-foreground); border-end-start-radius: 6px; align-self: flex-start; }
.bub.me { background: var(--growth); color: var(--growth-foreground); border-end-end-radius: 6px; align-self: flex-end; }
.typing { display: flex; gap: 5px; padding: 14px 16px; background: var(--secondary); border-radius: 16px; border-end-start-radius: 6px; align-self: flex-start; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted-foreground); opacity: .6; animation: bounce 1.3s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%,60%,100% { transform: translateY(0); } 30% { transform: translateY(-5px); } }
.quick {
  font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 9999px;
  border: 1px solid color-mix(in oklab, var(--growth) 25%, transparent);
  background: color-mix(in oklab, var(--growth) 10%, transparent);
  color: oklch(0.45 0.16 252);
}
.quick:hover { background: var(--growth); color: var(--growth-foreground); border-color: var(--growth); }
.quick.on { background: var(--growth); color: var(--growth-foreground); border-color: var(--growth); }

/* ---------- מודאל ---------- */
.ovl { position: fixed; inset: 0; z-index: 500; background: oklch(0.178 0.035 264 / 45%); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal { background: var(--card-solid); border-radius: 20px; width: 100%; max-width: 520px; max-height: 92vh; max-height: 92dvh; overflow-y: auto; box-shadow: 0 30px 80px -16px oklch(0.178 0.035 264 / 40%); animation: slide-up-fade .3s cubic-bezier(.22,1,.36,1); position: relative; }

/* ---------- סרגל נגישות ---------- */
.a11y-btn {
  position: fixed; inset-inline-start: 20px; bottom: 20px; z-index: 400;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--primary); color: var(--primary-foreground);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px -6px oklch(0.178 0.035 264 / 45%);
}
.a11y-btn:hover { transform: translateY(-3px); color: var(--primary-foreground); }
.a11y-panel {
  position: fixed; inset-inline-start: 20px; bottom: 20px; z-index: 420;
  width: 310px; max-width: calc(100vw - 32px);
  background: var(--card-solid); border: 1px solid var(--border-solid); border-radius: 18px;
  box-shadow: 0 24px 60px -14px oklch(0.178 0.035 264 / 30%);
  animation: slide-up-fade .3s cubic-bezier(.22,1,.36,1);
}
.a11y-opt {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; padding: 11px 14px; border-radius: 10px; font-size: 14px; font-weight: 500;
  color: var(--foreground); text-align: right;
}
.a11y-opt:hover { background: var(--secondary); }
.a11y-opt.on { background: color-mix(in oklab, var(--growth) 12%, transparent); color: oklch(0.42 0.16 252); font-weight: 600; }
@media (max-width: 720px) {
  .btn { width: 100%; }
  .btn.auto { width: auto; }
  .noa-panel { --noa-bot: 12px; inset-inline: 12px; width: auto; height: calc(100vh - 24px); height: calc(100dvh - 24px);
               max-height: calc(100vh - var(--noa-bot) - 12px); max-height: calc(100dvh - var(--noa-bot) - 12px); }
  .noa-fab { inset-inline-end: 12px; bottom: 12px; }
  .a11y-btn { inset-inline-start: 12px; bottom: 12px; }
  .a11y-panel { inset-inline-start: 12px; bottom: 12px; }
  /* בטלפון הכפתורים הצפים קטנים (עיגול) ויושבים תמיד באותו מקום: בלי הסתתרות לקצה ובלי תלות בגלילה */
  .noa-fab { padding: 0; width: 52px; height: 52px; justify-content: center; gap: 0; }
  .noa-fab .noa-fab-t { display: none; }
  .noa-fab img { width: 44px !important; height: 44px !important; }
  .noa-fab:hover, .a11y-btn:hover { transform: none; }
}
@media (max-width: 400px) { .brandsub { display: none; } }
.toastwrap{position:fixed;left:0;right:0;bottom:24px;z-index:9999;display:flex;
  justify-content:center;pointer-events:none;padding:0 14px}
@media (max-width:640px){.toastwrap{bottom:92px}}
.toast{pointer-events:auto;display:flex;align-items:flex-start;gap:10px;
  max-width:min(470px,100%);background:oklch(0.225 0.062 258);color:#fff;
  border-radius:14px;padding:13px 17px;box-shadow:0 14px 38px rgba(10,20,40,.30);
  font-size:14.5px;font-weight:500;line-height:1.55;
  animation:toastin .36s cubic-bezier(.2,.8,.3,1)}
.toast.bad{background:oklch(0.40 0.15 27)}
.toast .tw-i{flex-shrink:0;display:flex;margin-top:1px}
.toast a{color:#fff;text-decoration:underline;font-weight:700;white-space:nowrap}
.toast.out{opacity:0;transform:translateY(10px);transition:opacity .3s,transform .3s}
@keyframes toastin{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.toast{animation:none}}
/* חלון שכבר על המסך ונבנה מחדש לא נכנס שוב (renderPopup, renderA11y) */
.modal.stay, .a11y-panel.stay { animation: none; }

/* ================= נועה — תיקוני תצוגה ================= */
.noa-fab { min-height: 48px; }
.noa-fab .noa-fab-t { white-space: nowrap; }
/* במסך צר הכפתור מתכווץ לעיגול ומפסיק לכסות תוכן */
@media (max-width: 560px) {
  .noa-fab { padding: 0; width: 56px; height: 56px; justify-content: center; gap: 0; }
  .noa-fab .noa-fab-t { display: none; }
  /* בכפתור העגול הפנים ממלאות אותו כמעט כולו; הגודל המוטבע מ-noaAvatar נדרס בכוונה */
  .noa-fab img { width: 46px !important; height: 46px !important; }
}
.noa-panel { max-height: calc(100vh - var(--noa-bot) - 20px); max-height: calc(100dvh - var(--noa-bot) - 20px); }
@media (max-width: 560px) { .noa-panel { max-height: calc(100vh - var(--noa-bot) - 12px); max-height: calc(100dvh - var(--noa-bot) - 12px); } }
/* חלונית הנגישות לא תגלוש מהמסך גם כשהבאנר פתוח */
.a11y-panel { max-height: calc(100vh - 120px); max-height: calc(100dvh - 120px); overflow-y: auto; }
.noa-log { -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
/* השיחה נצמדת לתחתית, כמו בכל צ'אט — בלי חלל ריק מתחת להודעה הראשונה.
   margin-top:auto על הראשון עדיף על justify-content:flex-end, שחותך תוכן בגלילה. */
.noa-log > *:first-child { margin-top: auto; }
/* כשהטקסט מוגדל, האפשרויות לא יבלעו את השיחה: לשיחה נשאר תמיד מקום לשאלה עצמה,
   והאפשרויות נגללות בתוך האזור שלהן רק כשבאמת אין מקום. כפתור "המשך" נשאר גלוי. */
.noa-log { min-height: 4.5em; }
.noa-panel > header { flex-shrink: 0; }
.noa-foot { min-height: 0; overflow-y: auto; overscroll-behavior: contain; border-top: 1px solid var(--border);
  background: color-mix(in oklab, var(--secondary) 55%, transparent); padding: 12px 14px; }
/* אזור מגע תקני, וטקסט שלא נחתך באמצע מילה */
.quick {
  min-height: 40px; display: inline-flex; align-items: center; gap: 7px;
  max-width: 100%; text-align: right; line-height: 1.35;
}
.quick .tick { display: none; flex-shrink: 0; }
.quick.on .tick { display: inline-flex; }
@media (max-width: 560px) {
  .quick { min-height: 44px; font-size: 13.5px; padding: 9px 15px; }
  .bub { max-width: 92%; font-size: 14.5px; }
  .noa-log { padding: 14px 12px; }
}
.noa-multi {
  width: 100%; min-height: 44px; font-size: 14px;
  position: sticky; bottom: 0;   /* גלוי גם כשהאפשרויות מעליו נגללות */
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.noa-multi:disabled {
  cursor: default; transform: none; box-shadow: none;
  background: var(--secondary); color: var(--muted-foreground);
  border: 1px solid var(--border);
}
.noa-hint { font-size: 12px; color: var(--muted-foreground); line-height: 1.5; }
/* "שאלה 2 מתוך 5" מתחת לכותרת: פס דק ושורה קטנה (noaProgress.js) */
.noa-prog { flex-shrink: 0; display: flex; align-items: center; gap: 10px; padding: 7px 15px; border-bottom: 1px solid var(--border); }
.noa-prog-bar { flex: 1; height: 4px; border-radius: 9999px; background: var(--muted); overflow: hidden; }
.noa-prog-bar > div { height: 100%; background: var(--growth); border-radius: inherit; }
.noa-step { flex-shrink: 0; font-size: 12px; font-weight: 600; color: var(--muted-foreground); line-height: 1.4; }

/* ---------- תפריט המשנה של הביטוחים הפרטיים ---------- */
.drop-a .drop-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0;
  background: var(--hdr-wash); color: var(--growth);
  border: 1px solid var(--hdr-line);
}
/* בלי space-between כאן: הטקסט צמוד לאייקון, וכל השורות מיושרות לאותו קו */
.drop-a.rich { align-items: center; justify-content: flex-start; gap: 12px; padding: 9px 11px; }
.drop-a.rich .col { gap: 1px; min-width: 0; flex: 1; text-align: start; }
.drop-a.rich strong { font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.drop-a.rich .xs { line-height: 1.4; }
.dropdown.wide { min-width: 320px; }

/* ============================================================================
   קליפ ההדגמה ("ככה זה עובד") — public/js/demo.js
   ברירת המחדל: שורה קומפקטית (מסגרת טלפון קטנה + שלושה צעדים).
   ========================================================================== */
.demo {
  display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 16px; align-items: center;
  margin: 0; padding: 14px; border-radius: 20px;
  background: var(--card); border: 1px solid var(--border);
  box-shadow: 0 14px 34px -26px color-mix(in oklab, var(--navy) 60%, transparent);
}
.demo-phone {
  position: relative; aspect-ratio: 780 / 1440; overflow: hidden;
  border: 5px solid var(--navy); border-radius: 20px; background: var(--card-solid);
  box-shadow: 0 12px 26px -14px color-mix(in oklab, var(--navy) 70%, transparent);
}
.demo-vid { display: block; width: 100%; height: 100%; object-fit: cover; }
.demo-btn {
  position: absolute; inset-block-end: 8px; inset-inline-end: 8px;
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: color-mix(in oklab, var(--navy) 80%, transparent); color: var(--primary-foreground);
  box-shadow: 0 4px 12px -4px color-mix(in oklab, var(--navy) 70%, transparent);
}
.demo-btn:hover { background: var(--navy); }
.demo-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.demo-cap { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.demo-t { display: inline-flex; align-items: center; gap: 7px; font-size: 15.5px; font-weight: 700; color: var(--foreground); }
.demo-t svg { color: var(--growth); }
.demo-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; counter-reset: demo; }
.demo-steps li {
  counter-increment: demo; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 9px; align-items: start;
  font-size: 13.5px; line-height: 1.5; color: var(--muted-foreground);
}
.demo-steps li::before {
  content: counter(demo); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  font-size: 12px; font-weight: 700; background: var(--growth-wash); color: var(--growth);
}
.demo-note { font-size: 11.5px; line-height: 1.5; color: var(--muted-foreground); }
@media (max-width: 400px) { .demo { grid-template-columns: 92px minmax(0, 1fr); gap: 12px; padding: 12px; } .demo-btn { width: 30px; height: 30px; inset-block-end: 6px; inset-inline-end: 6px; } }
@media (min-width: 620px) { .demo { grid-template-columns: 138px minmax(0, 1fr); gap: 20px; padding: 16px 18px; } }

/* הפוטר: עמודות הקישורים ושורת הקישורים המשפטיים (ui.js: footer) */
.ftr-links { gap: 10px; }
.ftr-legal { gap: 8px 18px; }

/* מסך מגע: שדה בפונט קטן מ־16px גורם לאייפון להגדיל את העמוד כשנוגעים בו, והעמוד "קופץ".
   כל יעד לחיצה לפחות 44x44 (WCAG 2.5.5, הנחיית אפל): כפתורים וצ'יפים מקבלים גובה; כפתור קטן שגדילתו הייתה משנה את
   העיצוב (הפעלת הסרטון) מקבל אזור נגיעה שקוף סביבו (::after). קישורי הפוטר בשורות של 44, בלי רווח נוסף ביניהן. */
@media (pointer: coarse) {
  input:not([type="range"]):not([type="checkbox"]):not([type="radio"]), select, textarea, .pop-i { font-size: 16px; }
  .fee-seg-b, .chip-tag, .chip, .btn-sm, .hdr-brand { min-height: 44px; }
  .tap { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; } /* קישור טקסט שעומד לבד (לא בתוך פסקה) */
  .demo-btn::after { content: ""; position: absolute; inset: -7px; } /* 30 + 14 = 44 בטלפון צר */
  .ftr-links { row-gap: 0; }
  .ftr-links > button { padding-inline: 0; } /* "הצהרת נגישות" מיושר לימין כמו הקישורים שמעליו */
  .ftr-links > a, .ftr-links > button, .ftr-legal > a { min-height: 44px; display: inline-flex; align-items: center; }
  .ftr-legal { row-gap: 0; }
}
/* משוב מגע: לחיצה מרגישה מיד (הגדלה הפוכה קצרה), במקום ההבהוב האפור של הדפדפן. לא כשביקשו בלי תנועה. */
@media (pointer: coarse) and (prefers-reduced-motion: no-preference) {
  html:not(.a11y-no-motion) :where(.btn, .chip, .chip-tag, .fee-seg-b, .calc-tab, .hub-tab, .ctd-chip, .cmp-chip, .trk-reset, .demo-btn, .tip-cat, .burger):active {
    transform: scale(.97); transition-duration: .08s;
  }
  /* בטלפון :hover "נתקע" בזמן הנגיעה, וכללי ה-hover של הסרגל (סרגל: בלי תזוזה; "בדיקת חיסכון": הגדלה) חזקים יותר */
  html:not(.a11y-no-motion) .hdr .burger.btn:active, html:not(.a11y-no-motion) .hdr .hdr-cta.btn:active { transform: scale(.97); }
  html:not(.a11y-no-motion) :where(.btn, .chip, .chip-tag, .fee-seg-b, .calc-tab, .hub-tab, .ctd-chip, .cmp-chip, .trk-reset, .demo-btn, .tip-cat, .burger) { -webkit-tap-highlight-color: transparent; }
}
