/* SaNes — פלטת "כחול ירושלים": נייבי סמכותי, כחול פעולה אחד, תכלת לבחירה,
   לבן חם ואבן ירושלמית. התמונות הן הצבע; הממשק סביבן שקט. אין ירוק בממשק.
   כללי השימוש, הניגודיות והחריגים: docs/design-colors.md.
   בלי Tailwind בכוונה: ה-CSP של ה-Worker מתיר סקריפטים מ-self בלבד,
   ואנחנו רוצים דף בלי build step ובלי 3MB של CSS מיותר. */

:root {
  /* ── פלטה (פרימיטיבים) ── ערכים קבועים; רכיבים לא משתמשים בהם ישירות. */
  --jlm-navy: #0B2140;
  --jlm-blue: #2F73BA;
  --jlm-blue-hover: #255F9B;
  --jlm-sky: #E8F2FB;
  --jlm-warm-white: #FFFDF9;
  --jlm-stone-light: #F5F1EB;
  --jlm-stone: #D8C2AF;
  --jlm-slate: #52677C;
  --jlm-cool-border: #C8DCEC;
  --jlm-terracotta: #B66A50;
  --jlm-error: #B84743;
  --jlm-warning: #A86B24;

  /* ── טוקנים סמנטיים ── רכיב בוחר לפי תפקיד, לא לפי שם צבע. */
  /* מותג וטקסט */
  --color-primary: var(--jlm-navy);
  --color-primary-hover: color-mix(in srgb, var(--jlm-navy) 84%, var(--jlm-blue));
  --color-text: var(--jlm-navy);
  --color-text-secondary: var(--jlm-slate);
  --color-icon-muted: color-mix(in srgb, var(--jlm-slate) 62%, var(--jlm-warm-white));
  --color-on-dark: var(--jlm-warm-white);
  --color-on-dark-secondary: var(--jlm-cool-border);
  /* משטחים */
  --color-page: var(--jlm-stone-light);
  --color-surface: var(--jlm-warm-white);
  --color-surface-muted: var(--jlm-stone-light);
  --color-surface-hover: color-mix(in srgb, var(--jlm-sky) 45%, var(--jlm-warm-white));
  --color-info-surface: var(--jlm-sky);
  /* פעולה ובחירה — כחול אחד */
  --color-action: var(--jlm-blue);
  --color-action-hover: var(--jlm-blue-hover);
  /* טקסט כחול קטן על אבן או תכלת: --color-action שם 4.3:1, הגוון הכהה 5.8:1. */
  --color-action-strong: var(--jlm-blue-hover);
  --color-on-action: #FFFFFF;
  --color-link: var(--jlm-blue-hover);
  --color-selected: var(--jlm-sky);
  --color-selected-border: var(--jlm-blue);
  --color-progress: var(--jlm-blue);
  --color-progress-track: color-mix(in srgb, var(--jlm-cool-border) 60%, var(--jlm-warm-white));
  /* גבולות */
  --color-border: var(--jlm-cool-border);
  --color-border-hover: color-mix(in srgb, var(--jlm-blue) 55%, var(--jlm-cool-border));
  /* מסגרת של שדה קלט: 3.5:1 על לבן חם (WCAG 1.4.11 דורש 3:1). cool border לבד הוא 1.4:1. */
  --color-border-strong: color-mix(in srgb, var(--jlm-slate) 70%, var(--jlm-cool-border));
  --color-border-stone: var(--jlm-stone);
  --color-divider: color-mix(in srgb, var(--jlm-stone) 55%, var(--jlm-warm-white));
  /* מבטא חם — עד 5% מהממשק, לעולם לא כפתור ראשי. */
  --color-accent: var(--jlm-terracotta);
  --color-accent-text: color-mix(in srgb, var(--jlm-terracotta) 82%, var(--jlm-navy));
  --color-accent-surface: color-mix(in srgb, var(--jlm-terracotta) 11%, var(--jlm-warm-white));
  /* הרקע הכתום של הדמות (יוסף/אדם): ה-launcher, עמוד הבית, והערה של המלווה (בגוון בהיר). רקע בלבד, לא לטקסט ולא לכפתור. */
  --color-assistant-highlight: #FFC857;
  /* מצבי מערכת. הצלחה היא כחול עם אייקון — לא ירוק. */
  --color-success: var(--jlm-blue-hover);
  --color-success-surface: var(--jlm-sky);
  --color-error: var(--jlm-error);
  --color-error-surface: color-mix(in srgb, var(--jlm-error) 7%, var(--jlm-warm-white));
  --color-warning: var(--jlm-warning);
  --color-warning-text: color-mix(in srgb, var(--jlm-warning) 82%, var(--jlm-navy));
  --color-warning-surface: color-mix(in srgb, var(--jlm-warning) 10%, var(--jlm-warm-white));
  /* אינטראקציה: טבעת פוקוס אחת לכל האתר, ו-disabled בהיר וקריא (לא opacity). */
  --focus-outline: 3px solid var(--jlm-blue);
  --focus-ring: 0 0 0 3px rgba(47, 115, 186, .35);
  --color-disabled-bg: color-mix(in srgb, var(--jlm-cool-border) 35%, var(--jlm-stone-light));
  --color-disabled-text: color-mix(in srgb, var(--jlm-slate) 90%, var(--jlm-warm-white));
  --color-disabled-border: color-mix(in srgb, var(--jlm-cool-border) 70%, var(--jlm-stone-light));
  /* הדפסה של מסמך (חוזה השכירות, /lease): שחור על לבן, בלי צבעי המותג. */
  --color-print-ink: #000000;
  --color-print-paper: #FFFFFF;

  --r-sm: 12px;
  --r: 16px;
  --r-lg: 24px;
  --r-pill: 9999px;
  /* צללים על בסיס הנייבי, לא שחור. */
  --shadow: 0 10px 25px rgba(11, 33, 64, .05);
  --shadow-lift: 0 16px 34px rgba(11, 33, 64, .10);
  --shadow-card: 0 5px 18px rgba(11, 33, 64, .06);
  --shadow-selected: 0 7px 22px rgba(47, 115, 186, .14);

  --quiz-space-2: 10px;
  --quiz-space-3: 14px;
  --quiz-space-4: 18px;
  --quiz-space-5: 24px;
  --quiz-space-6: 30px;

  --head: Rubik, 'Assistant', 'Segoe UI', sans-serif;
  --body: Assistant, Rubik, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  background: var(--color-page);
  background-image: radial-gradient(circle at 12% 0%, var(--color-surface) 0%, transparent 42%),
                    radial-gradient(circle at 90% 4%, var(--color-surface) 0%, transparent 38%);
  background-repeat: no-repeat;
  color: var(--color-text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--head); font-weight: 700; margin: 0; line-height: 1.15; }
p { margin: 0; }
a { color: var(--color-link); font-weight: 600; }
a:hover { color: var(--color-primary); }

/* אייקונים מתוך ה-sprite: יורשים צבע מההקשר (currentColor) */
.ico { width: 18px; height: 18px; flex-shrink: 0; fill: none; color: inherit; }
.ico--title { width: 21px; height: 21px; color: var(--color-action); }
.ico--arrow { width: 20px; height: 20px; }
html[dir="rtl"] .ico--arrow { transform: scaleX(-1); }

.is-hidden { display: none !important; }
/* השלד משותף לכל הנתיבים, והנתב ב-app.js בוחר את המסך המתאים מיד באתחול.
   עד הבחירה אין להציג את מסך הנחיתה הישן שנמצא ראשון ב-DOM: אחרת הוא
   מהבהב לפני עמוד הבית החדש בזמן שקובץ ה-JS ותמונת ה-hero נטענים. */
body:not([data-step]) .step { display: none; }
.muted { color: var(--color-text-secondary); }
.footnote { font-size: 13px; color: var(--color-text-secondary); line-height: 1.55; }
.center { text-align: center; }
.hl { color: var(--color-primary); }

.section-title { font-size: 22px; margin-bottom: 16px; }

/* ── pastilles ──────────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: var(--r-pill);
  background: var(--color-accent-surface); color: var(--color-accent-text);
  font-size: 14px; font-weight: 600;
}
.pill--go { background: var(--color-selected); color: var(--color-action-strong); }
.pill .ico { width: 16px; height: 16px; }
.hero__badge { background: var(--color-info-surface); color: var(--color-primary); }
.pill--sun { background: var(--color-accent-surface); color: var(--color-accent-text); }

/* ── barre du haut ──────────────────────────────────── */
/* קפסולה: מסגרת כחולה-כהה דקה על רקע שמנת, בלי צל. המותג מימין והניווט
   נפרש עד לקישור ההתחברות שמשמאל. */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: nowrap; gap: 12px;
  width: min(100% - 40px, 1180px); margin: 14px auto 0; padding: 8px 12px 8px 10px;
  padding-inline-start: 28px;
  background: var(--color-surface); border: 1px solid rgba(11, 33, 64, .3); border-radius: var(--r-pill);
}

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
/* סמליל טקסט: "SaNes." בכחול-כהה, והנקודה בכתום של האתר. הגובה המינימלי
   של הלוגו העגול שהיה כאן נשמר, כדי שגובה הסרגל לא ישתנה. */
.brand { min-height: 48px; }
.brand__word {
  font-family: var(--head); font-weight: 700; font-size: 28px; line-height: 1;
  letter-spacing: -.02em; color: var(--color-text); white-space: nowrap;
}
.brand__dot { color: var(--color-accent); }
.brand__text { display: grid; gap: 1px; }
.brand__tag { font-size: 12px; line-height: 1.3; color: var(--color-text-secondary); letter-spacing: .01em; }

/* התפריט הראשי. הפריטים שאין להם עוד מקטע (is-soon) נראים כמו השאר אבל
   אינם קישור — עדיף פריט שקוף שמסביר "בקרוב" על עוגן שבור. */
/* הפריטים צמודים לימין, אחרי המותג; קישור ההתחברות נדחף לקצה השמאלי. */
.mainnav {
  flex: 1; display: flex; align-items: center; justify-content: flex-start;
  gap: clamp(4px, 1.2vw, 16px); margin-inline-start: clamp(16px, 3vw, 44px);
}
.navlink {
  padding: 9px 13px; border-radius: var(--r-pill); text-decoration: none;
  font-family: var(--body); font-size: 15.5px; font-weight: 600; color: var(--color-text);
  white-space: nowrap;
}
.navlink--auth {
  margin-inline-start: auto; color: var(--color-primary); text-decoration: none;
}
.nav-account { position: relative; margin-inline-start: auto; }
.nav-account .navlink--auth {
  display: inline-flex; align-items: center; gap: 7px; margin-inline-start: 0;
}
.nav-account .navlink--auth.is-account {
  background: var(--color-info-surface); color: var(--color-primary);
}
.nav-account__person { width: 18px; height: 18px; }
.nav-account__chevron { width: 14px; height: 14px; transition: transform .18s ease-out; }
.navlink--auth[aria-expanded="true"] .nav-account__chevron { transform: rotate(180deg); }
.nav-account__menu {
  position: absolute; z-index: 30; inset-block-start: calc(100% + 10px); inset-inline-end: 0;
  width: 220px; padding: 10px; border-radius: var(--r-md); background: var(--color-surface);
  box-shadow: 0 16px 34px rgba(11, 33, 64, .12);
}
.nav-account__identity { display: grid; gap: 2px; padding: 9px 10px 12px; }
.nav-account__identity strong { color: var(--color-text); font-size: 16px; }
.nav-account__identity span { color: var(--color-text-secondary); font-size: 13px; }
.nav-account__logout {
  width: 100%; min-height: 44px; padding: 10px; border: 0; border-block-start: 1px solid var(--color-divider);
  background: transparent; color: var(--color-text); font: 600 15px var(--body); text-align: start; cursor: pointer;
}
.nav-account__logout:hover { background: var(--color-info-surface); color: var(--color-primary); }
.navlink:hover { background: var(--color-info-surface); color: var(--color-primary); }
.navlink[aria-current] { background: var(--color-info-surface); color: var(--color-primary); font-weight: 700; }
.navlink.is-soon { color: var(--color-text-secondary); cursor: default; }
.navlink.is-soon:hover { background: none; color: var(--color-text-secondary); }

/* כפתור התפריט קיים למובייל בלבד; בדסקטופ התפריט פרוש ממילא. */
.navtoggle {
  display: none; border: none; cursor: pointer; padding: 9px; border-radius: var(--r-sm);
  background: var(--color-surface); color: var(--color-text); box-shadow: var(--shadow);
}
.navtoggle .ico { width: 22px; height: 22px; display: block; }
/* "צור קשר" קיים בטלפון בלבד; בדסקטופ פריט ההתחברות פרוש בתפריט. */
.topbar__contact { display: none; }
/* חלונית הסטטוס שנפתחת מ"✓ הפנייה נשלחה". חיה בטלפון בלבד, כמו הכפתור. */
.contact-status { display: none; }

.lang {
  border: none; background: none; cursor: pointer; padding: 6px 12px; border-radius: var(--r-pill);
  font-family: var(--body); font-size: 13px; font-weight: 600; color: var(--color-text-secondary);
}
.lang { letter-spacing: .06em; }
.lang:hover { background: var(--color-info-surface); color: var(--color-primary); }
.lang.is-active { background: var(--color-action); color: var(--color-on-action); }
.lang.is-active:hover { background: var(--color-primary); color: var(--color-on-action); }
.lang.is-soon { opacity: .38; cursor: default; }
.lang.is-soon:hover { background: none; color: var(--color-text-secondary); }

main { max-width: 1180px; margin: 0 auto; padding: 12px 20px 64px; }
body[data-step="landing-v2"] main { max-width: 1280px; }

/* Keep the desktop navigation within the capped header width, including
   translated labels. Smaller screens use the existing disclosure menu. */
@media (min-width: 1200px) {
  .mainnav { gap: 4px; margin-inline-start: 16px; min-width: 0; }
  .navlink { min-height: 44px; padding: 8px; font-size: 14px; }
  .mainnav > .navlink:not(.nav-language) .navlink__icon { display: none; }
  .nav-language > span,
  .navlink--demo .navlink__label {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  }
  #nav-auth-label { max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
  .nav-language { flex: none; padding-block: 0; }
  .nav-account { flex: none; }
  html[lang="fr"] .mainnav > a.navlink { flex: 1 1 auto; min-width: 0; white-space: normal; justify-content: center; text-align: center; }

}
@media (max-width: 1199px) {
  .navtoggle { display: block; order: 2; margin-inline-start: auto; box-shadow: none; background: none; }
  .topbar { padding: 6px 8px; padding-inline-start: 20px; }
  .topbar.is-open { border-radius: var(--r-lg); }
  /* בטלפון: לוגו בתחילת הסרגל וכפתור התפריט בקצה השני. */
  .topbar, .topbar.is-open {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
    width: 100%; margin: 0; padding: 10px 16px; gap: 0 12px;
    border: 0; border-radius: 0; box-shadow: 0 4px 16px rgba(11, 33, 64, .06);
  }
  .topbar__contact {
    display: inline-flex; align-items: center; justify-self: start; min-height: 44px; padding: 8px 20px;
    border: 0; border-radius: var(--r-pill); background: var(--color-action); color: var(--color-on-action);
    font-family: var(--head); font-size: 16px; font-weight: 600; cursor: pointer; white-space: nowrap;
  }
  .topbar__contact:hover { background: var(--color-action-hover); }
  .topbar__contact:focus-visible { outline: var(--focus-outline); outline-offset: 2px; }
  /* אחרי השליחה: אותה גלולה, בגוון שקט — זה סטטוס ולא קריאה לפעולה.
     הצלחה בכחול עם סימן וי, כמו בשאר האתר. */
  .topbar__contact.is-sent { gap: 6px; background: var(--color-info-surface); color: var(--color-primary); }
  .topbar__contact.is-sent:hover { background: var(--color-info-surface); color: var(--color-action); }
  .topbar__contact-mark { width: 16px; height: 16px; flex: none; }
  .topbar { position: relative; }
  .contact-status:not(.is-hidden) {
    position: absolute; z-index: 30; inset-block-start: calc(100% + 8px); inset-inline-start: 16px;
    display: grid; justify-items: start; gap: 4px; width: min(300px, calc(100% - 32px)); padding: 16px;
    border-radius: var(--r-md); background: var(--color-surface); box-shadow: 0 16px 34px rgba(11, 33, 64, .12);
  }
  .contact-status__mark {
    display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 6px;
    border-radius: 50%; background: var(--color-info-surface); color: var(--color-action);
  }
  .contact-status__mark .ico { width: 18px; height: 18px; }
  .contact-status__title { color: var(--color-text); font-family: var(--head); font-size: 17px; font-weight: 700; }
  .contact-status__text { margin: 0; color: var(--color-text-secondary); font-size: 15px; }
  .contact-status__next {
    margin-top: 10px; min-height: 44px; padding: 0; border: 0; background: none; cursor: pointer;
    color: var(--color-action); font: 600 15px var(--body); text-align: start;
    text-decoration: underline; text-underline-offset: 3px;
  }
  .contact-status__next:hover { color: var(--color-action-hover); }
  .contact-status__next:focus-visible { outline: var(--focus-outline); outline-offset: 2px; }
  .topbar .brand { justify-self: start; margin-inline-start: 10px; }
  .topbar .navtoggle { justify-self: end; margin: 0; }
  .topbar .mainnav { grid-column: 1 / -1; }
  
  
  .mainnav {
    order: 4; display: none; flex: none; flex-direction: column; align-items: stretch;
    flex-basis: 100%; gap: 2px; padding: 4px 4px 8px; margin-inline-start: 0;
  }
  .topbar.is-open .mainnav { display: flex; }
  .navlink { padding: 12px 14px; font-size: 16px; }
  .navlink--auth { margin-inline-start: 0; }
  .nav-account { margin-inline-start: 0; }
  .nav-account.is-signed-in { order: -1; }
  .nav-account .navlink--auth { width: 100%; min-height: 58px; }
  .nav-account .navlink--auth.is-account { padding: 12px 14px; border-radius: var(--r-md); }
  .nav-account__chevron { margin-inline-start: auto; }
  .nav-account__menu {
    position: static; width: 100%; margin-top: 4px; border-radius: var(--r-md); box-shadow: none;
    background: var(--color-info-surface);
  }
}
@media (max-width: 620px) {
  .brand { min-height: 44px; }
  .brand__word { font-size: 25px; }
  .brand__tag { display: none; }
  .lang { padding: 6px 10px; font-size: 12px; }
  
  .topbar { gap: 10px; width: calc(100% - 24px); margin-top: 10px; }
  .topbar { gap: 0 10px; width: 100%; margin-top: 0; padding-inline: 14px; }
  .topbar__contact { padding-inline: 18px; font-size: 15px; }
  /* "✓ הפנייה נשלחה" ארוך מ"צור קשר", והעמודה שלו היא שליש מהסרגל: כך הוא
     לא נוגע בלוגו שבמרכז. */
  .topbar__contact.is-sent { gap: 4px; padding-inline: 10px; font-size: 13px; }
  .topbar__contact.is-sent .topbar__contact-mark { width: 14px; height: 14px; }
  .hero__cta { width: 100%; }
  .hero__cta .btn { flex: 1 1 100%; }
}
/* בטלפון צר במיוחד אין מקום גם לסימן; הטקסט לבדו נשאר. */
@media (max-width: 359px) {
  .topbar__contact.is-sent .topbar__contact-mark { display: none; }
}

/* ── boutons ────────────────────────────────────────── */
.btn {
  cursor: pointer; border: none; border-radius: var(--r-pill);
  font-family: var(--head); font-size: 17px; font-weight: 600;
  padding: 16px 34px; min-height: 56px;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn--go { background: var(--color-action); color: var(--color-on-action); box-shadow: 0 8px 18px rgba(47, 115, 186, .28); }
.btn--go:hover { background: var(--color-action-hover); transform: translateY(-2px); box-shadow: 0 12px 24px rgba(47, 115, 186, .3); }
.btn--navy { background: var(--color-primary); color: var(--color-on-action); box-shadow: 0 8px 18px rgba(11, 33, 64, .24); }
.btn--navy:hover { background: var(--color-primary-hover); transform: translateY(-2px); box-shadow: 0 12px 24px rgba(11, 33, 64, .3); }
/* כפתור סגור נראה סגור: "ממשיכים" בשאלת ריבוי-בחירה לפני שסומן משהו. */
.btn:disabled, .btn:disabled:hover,
.btn[aria-disabled="true"], .btn[aria-disabled="true"]:hover {
  background: var(--color-disabled-bg); color: var(--color-disabled-text); border-color: var(--color-disabled-border);
  cursor: default; box-shadow: none; transform: none;
}
.btn--arrow { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.btn--arrow .ico--arrow { transition: transform .16s ease; }
.btn--arrow:hover .ico--arrow { transform: translateX(3px); }
html[dir="rtl"] .btn--arrow:hover .ico--arrow { transform: scaleX(-1) translateX(3px); }
@media (prefers-reduced-motion: reduce) {
  .btn--arrow:hover .ico--arrow { transform: none; }
  html[dir="rtl"] .btn--arrow:hover .ico--arrow { transform: scaleX(-1); }
}
.btn--ghost { background: var(--color-surface); color: var(--color-action-strong); border: 2px solid var(--color-selected); }
.btn--ghost:hover { border-color: var(--color-action); transform: translateY(-2px); }
.linkish {
  background: none; border: none; cursor: pointer; padding: 10px 0;
  font-family: var(--body); font-size: 15px; font-weight: 600; color: var(--color-text-secondary);
}
.linkish:hover { color: var(--color-action-strong); }

/* ── cartes ─────────────────────────────────────────── */
.card { background: var(--color-surface); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 26px; }

/* ── héros ──────────────────────────────────────────── */
.hero { display: grid; grid-template-columns: 1fr; gap: 26px; padding: 14px 0 32px; align-items: center; }

/* סדר ההיררכיה נשלט ב-order כדי שבמובייל ה-CTA יופיע לפני מדדי האמון,
   בלי לשנות את סדר ה-DOM (וכך גם סדר הקריאה והמקלדת נשמר). */
.hero__text { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.hero__badge { order: 1; margin: 0; }
.hero__text h1 { order: 2; font-size: clamp(34px, 7vw, 56px); letter-spacing: -.01em; max-width: 18ch; }
.hero__text .hero__sub { order: 3; }
.hero__text .lede { order: 4; }
.hero__text .trust { order: 5; }
.hero__text .hero__cta { order: 6; }

/* ההבטחה שמתחת לכותרת: שורה אחת, כבדה מהליד ובצבע הדיו המלא. */
.hero__sub {
  font-family: var(--head); font-size: clamp(18px, 2.4vw, 22px); font-weight: 600;
  line-height: 1.45; color: var(--color-text); max-width: 34ch; margin: -6px 0 0;
}

.lede { font-size: 18px; line-height: 1.65; color: var(--color-text-secondary); max-width: 46ch; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 0; }
.hero__art {
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-lift); line-height: 0; background: var(--color-selected);
}

/* ── indicateurs de confiance ───────────────────────── */
.trust {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px 18px;
}
.trust__item {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14px; font-weight: 600; color: var(--color-text-secondary);
}
.trust__item .ico { width: 17px; height: 17px; color: var(--color-action); }

/* פריטי grid מקבלים min-width:auto כברירת מחדל — בלי האיפוס הזה
   ה-SVG (רוחב מובנה 520px) מרחיב את הדף ושובר את המובייל. */
.hero > *, .result > *, .how__steps > *, .cities ul > *, .pros > * { min-width: 0; }
.hero__art svg, .hero__art img { display: block; width: 100%; height: auto; }
.hero__art-img { aspect-ratio: 3 / 2; object-fit: cover; }

/* ── עמוד הבית: שלושת המסכים של ההדמיה (2026-10-09) ─────────────────────
   Hero (פסוק, כותרת, צילום, CTA וארבעה עמודי שירות) → "גלו איך זה עובד"
   (ארבעה שלבים) → כרטיס הדגמה של תוצאה. הרקע של כל מקטע נפרש לרוחב המסך
   דרך border-image, בלי להרחיב את הפריסה ובלי גלילה אופקית. */
.landing-v2 { display: grid; gap: clamp(42px, 7vw, 78px); }
.landing-v2__hero { position: relative; }
.hero-title__line { display: block; white-space: nowrap; }

/* ה-Hero הקלאסי (מ-760px): הבעלים ביקש לשמר את ה-Hero הגדול בדסקטופ. התמונה
   נבנתה עם מרחב לבן מימין, ולכן היא משמשת במה אחת לטקסט ולצילום. בטלפון
   הוא מוסתר, וה-Hero של ההדמיה (.home-hero) מוצג במקומו. */
.landing-v2__hero--classic {
  min-height: clamp(580px, 66vw, 720px); overflow: hidden;
  border-radius: 30px; background: var(--color-surface); box-shadow: var(--shadow-lift);
}
.landing-v2__image {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  object-position: center; display: block;
}
.landing-v2__copy {
  position: relative; z-index: 1; width: 48%; min-height: inherit;
  margin-left: auto; margin-right: 0; padding: clamp(42px, 6vw, 76px) clamp(28px, 5vw, 64px);
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 19px;
}
.landing-v2__copy h1 {
  font-size: clamp(38px, 4.7vw, 58px); letter-spacing: -.02em; max-width: none;
}
.landing-v2__copy .lede { font-size: 17px; max-width: 42ch; }
.landing-v2__copy .btn { margin-top: 3px; }
@media (min-width: 760px) and (max-width: 979px) {
  .landing-v2__copy {
    width: 57%;
    background: linear-gradient(90deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, .34) 16%,
      rgba(255, 255, 255, .84) 38%,
      rgba(255, 255, 255, .97) 64%);
  }
  .landing-v2__copy h1 { font-size: clamp(36px, 5vw, 46px); }
  .landing-v2__hero--classic { margin-bottom: 40px; }
}
@media (min-width: 760px) { .landing-v2__hero.home-hero { display: none; } }
@media (max-width: 759px) { .landing-v2__hero--classic { display: none; } }
.landing-v2__services { display: grid; gap: 28px; }
.landing-v2__services-head {
  padding: 0 0 12px; border-bottom: 1px solid var(--color-border);
}
/* הכותרת לבדה בשורה (בלי הערת הצד של עמוד השירותים), ולכן במרכז. */
.landing-v2 .landing-v2__services-head { grid-template-columns: 1fr; }
.landing-v2__services-head .services-page__eyebrow { margin: 0; text-align: center; }
.landing-v2__bottom-cta { display: flex; justify-content: center; }

.home-hero, .home-how, .home-demo { position: relative; text-align: center; }
.home-hero {
  display: grid; justify-items: center; gap: 0; padding-block: 18px 8px;
  border-image: linear-gradient(180deg, var(--color-surface) 0 78%,
    color-mix(in srgb, var(--color-info-surface) 55%, var(--color-surface))) fill 0 / 0 / 12px 100vmax 0;
}
.home-hero__copy { display: grid; justify-items: center; }
.home-hero__title { display: grid; gap: 6px; max-width: none; }
.home-hero__headline {
  font-weight: 800; font-size: clamp(46px, 13.6vw, 78px); line-height: 1.05;
  letter-spacing: -.02em; color: var(--color-text);
}
.home-hero__promise {
  font-weight: 800; font-size: clamp(36px, 10.4vw, 56px); line-height: 1.08;
  letter-spacing: -.015em; color: var(--color-action); text-wrap: balance;
}
.home-hero__lede {
  max-width: 36ch; margin: 18px 0 0; font-size: 17.5px; line-height: 1.6; color: var(--color-text);
}
/* הצילום נצמד לקצה השמאלי של המסך (כמו בהדמיה) ומעוגל רק מימין. */
.home-hero__photo {
  position: relative; width: calc(100% + 20px); margin: 22px -20px 0 0; margin-inline: 0 -20px;
  overflow: hidden; border-start-start-radius: 26px; border-end-start-radius: 26px;
}
.home-hero__photo img { display: block; width: 100%; height: auto; aspect-ratio: 804 / 336; object-fit: cover; }
.home-hero__actions { display: grid; justify-items: center; width: 100%; }
.home-hero__cta {
  position: relative; z-index: 1; width: 100%; min-height: 62px; margin-top: -10px;
  font-size: 17px; padding-inline: 14px; white-space: nowrap; box-shadow: 0 12px 26px rgba(47, 115, 186, .30);
}
.home-hero__cta.is-hidden { display: none; }
.home-pillars {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%;
  margin: 26px 0 0; padding: 0; list-style: none;
}
.home-pillar {
  display: grid; justify-items: center; align-content: start; gap: 8px; padding-inline: 4px;
  font-size: 13.5px; line-height: 1.35; color: var(--color-text);
}
.home-pillar + .home-pillar { border-inline-start: 1px solid var(--color-divider); }
.home-pillar__ico { width: 38px; height: 38px; color: var(--color-action); }
.home-pillar--warm .home-pillar__ico { color: var(--color-accent); }

/* "גלו איך זה עובד" / "המשיכו לגלול": עיגול תכלת עם חץ, ותווית מתחתיו. */
.home-scroll {
  display: grid; justify-items: center; gap: 8px; margin: 26px auto 0; padding: 4px 10px;
  border: 0; background: none; cursor: pointer;
  font-family: var(--body); font-size: 16px; font-weight: 600; color: var(--color-text);
}
.home-scroll__disc {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--r-pill);
  background: var(--color-info-surface); color: var(--color-text);
  box-shadow: 0 6px 16px rgba(11, 33, 64, .06); transition: transform .18s ease-out;
}
.home-scroll__disc .ico { width: 24px; height: 24px; }
.home-scroll:hover .home-scroll__disc { transform: translateY(2px); }
.home-scroll:focus-visible { outline: var(--focus-outline); outline-offset: 4px; border-radius: var(--r-sm); }
.home-how:focus, .home-demo:focus, .landing-v2__services:focus { outline: none; }

/* ── איך זה עובד ── */
.home-how {
  display: grid; justify-items: center; padding-block: 34px 120px;
  border-image: linear-gradient(180deg,
    color-mix(in srgb, var(--color-info-surface) 55%, var(--color-surface)),
    color-mix(in srgb, var(--color-info-surface) 85%, var(--color-surface))) fill 0 / 0 / 0 100vmax;
}
.home-how__note {
  position: absolute; inset-block-start: 6px; inset-inline-end: -6px; width: 104px; height: auto;
  transform: rotate(-4deg);
}
.home-how__title {
  margin-top: 30px; font-weight: 800; font-size: clamp(38px, 11vw, 56px); letter-spacing: -.02em;
  color: var(--color-text);
}
.home-how__lede {
  max-width: 40ch; margin: 12px 0 0; font-size: 17px; line-height: 1.55; color: var(--color-text);
}
.home-steps {
  display: grid; gap: 12px; width: 100%; margin: 26px 0 0; padding: 0; list-style: none;
  counter-reset: none;
}
.home-step {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, .72fr);
  align-items: center; gap: 12px; padding: 20px 18px 20px 12px; padding-inline: 18px 10px;
  border-radius: var(--r-lg); background: var(--color-surface); box-shadow: 0 8px 22px rgba(11, 33, 64, .05);
  text-align: start;
}
.home-step__copy { align-self: center; }
.home-step h3 {
  font-weight: 800; font-size: clamp(18px, 5.2vw, 24px); line-height: 1.2; color: var(--color-text);
}
.home-step p { margin: 8px 0 0; font-size: 15.5px; line-height: 1.5; color: var(--color-text); }
.home-step__num {
  align-self: start; display: grid; place-items: center; width: 38px; height: 38px; margin-top: -2px;
  border-radius: var(--r-pill); background: var(--color-accent-surface);
  font-family: var(--head); font-weight: 700; font-size: 18px; color: var(--color-text);
}
.home-step__art { width: 100%; height: auto; }
/* קו מקווקו שמחבר בין שלב לשלב, מהאיור אל המספר של השלב הבא. */
.home-step:not(:last-child)::after {
  content: ""; position: absolute; z-index: 1; inset-inline-end: 31%; inset-block-end: -38px;
  width: 34px; height: 62px; background: var(--color-action); opacity: .7;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 62'%3E%3Cpath d='M3 4c14 2 26 12 28 26s-6 22-6 28' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-dasharray='1 6'/%3E%3Ccircle cx='3' cy='4' r='3'/%3E%3Ccircle cx='25' cy='58' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 62'%3E%3Cpath d='M3 4c14 2 26 12 28 26s-6 22-6 28' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-dasharray='1 6'/%3E%3Ccircle cx='3' cy='4' r='3'/%3E%3Ccircle cx='25' cy='58' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
}
.home-how__cta { width: min(100%, 360px); min-height: 60px; margin-top: 28px; font-size: 18px; }
.home-how__skyline {
  position: absolute; inset-block-end: 0; inset-inline-start: -20px; width: min(66%, 420px); height: auto;
  pointer-events: none; opacity: .9;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 35%);
  mask-image: linear-gradient(90deg, transparent, black 35%);
}
.home-how .home-scroll { position: relative; z-index: 1; }

/* ── הדגמה ── */
.home-demo {
  display: grid; justify-items: center; padding-block: 30px 20px; margin-top: calc(-1 * clamp(42px, 7vw, 78px));
  border-image: linear-gradient(180deg,
    color-mix(in srgb, var(--color-info-surface) 85%, var(--color-surface)),
    color-mix(in srgb, var(--color-info-surface) 40%, var(--color-surface)) 60%,
    var(--color-page)) fill 0 / 0 / 0 100vmax;
}
.home-demo__badge {
  display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 8px 20px;
  border-radius: var(--r-pill); background: var(--color-info-surface);
  font-size: 17px; font-weight: 600; color: var(--color-action-strong);
}
.home-demo__badge .ico { width: 20px; height: 20px; color: var(--color-action); }
.home-demo__title {
  margin-top: 18px; font-weight: 800; font-size: clamp(32px, 9.2vw, 48px); line-height: 1.15;
  letter-spacing: -.02em; color: var(--color-text);
}
.home-demo__lede {
  max-width: 40ch; margin: 14px 0 0; font-size: 17px; line-height: 1.55; color: var(--color-text-secondary);
}
.home-demo__card {
  width: 100%; margin-top: 22px; padding: 6px; border-radius: var(--r-lg);
  background: var(--color-surface); box-shadow: var(--shadow-lift); text-align: center;
}
.home-demo__photo { position: relative; margin: 0; overflow: hidden; border-radius: 20px; }
.home-demo__photo > img { display: block; width: 100%; height: auto; aspect-ratio: 15 / 8; object-fit: cover; }
.home-demo__score {
  position: absolute; inset-block-start: 12px; inset-inline-start: 12px;
  display: inline-flex; align-items: baseline; gap: 8px; padding: 8px 18px;
  border-radius: var(--r-pill); background: var(--color-primary); color: var(--color-on-dark);
  font-size: 15px; font-weight: 600;
}
.home-demo__score strong { font-family: var(--head); font-weight: 800; font-size: 28px; line-height: 1; }
.home-demo__heart {
  position: absolute; inset-block-start: 12px; inset-inline-end: 12px;
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--r-pill);
  background: var(--color-surface); color: var(--color-text); box-shadow: var(--shadow);
}
.home-demo__heart .ico { width: 24px; height: 24px; }
.home-demo__city, .home-demo__photos {
  position: absolute; inset-block-end: 12px; display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px; border-radius: var(--r-pill); background: var(--color-surface);
  font-size: 15px; font-weight: 600; color: var(--color-text); text-decoration: none;
}
.home-demo__city { inset-inline-start: 12px; }
.home-demo__photos { inset-inline-end: 12px; }
.home-demo__photos:hover { background: var(--color-surface-hover); }
.home-demo__photos:focus-visible { outline: var(--focus-outline); outline-offset: 2px; }
/* הייחוס של הצילום עולה מתחת ללב, כדי לא להתנגש ב"הצגת תמונות". */
.home-demo__photo .image-attribution { inset-block-end: auto; inset-block-start: 70px; inset-inline-end: 23px; }
.home-demo__photo .image-attribution__popover { inset-block-end: auto; inset-block-start: calc(100% + 6px); }
.home-demo__body { padding: 16px 10px 10px; }
.home-demo__head {
  position: relative; display: grid; justify-items: center; padding-inline: 36px;
  color: inherit; text-decoration: none; border-radius: var(--r);
}
.home-demo__head h3 { font-weight: 800; font-size: 32px; line-height: 1.15; color: var(--color-text); }
.home-demo__head p { margin: 4px 0 0; font-size: 16.5px; color: var(--color-text-secondary); }
.home-demo__go {
  position: absolute; inset-inline-end: 4px; inset-block-start: 10px; width: 26px; height: 26px;
  transform: rotate(90deg); color: var(--color-text);
}
.home-demo__head:hover h3 { color: var(--color-action-strong); }
.home-demo__head:focus-visible { outline: var(--focus-outline); outline-offset: 2px; }
.home-demo__traits {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 18px 0 0; padding: 0; list-style: none;
}
.home-demo__traits li {
  min-width: 0; padding-inline: 4px; overflow-wrap: anywhere;
  font-size: 14.5px; line-height: 1.35; color: var(--color-text);
}
.home-demo__traits li + li { border-inline-start: 1px solid var(--color-divider); }
.home-demo__traits .ico { display: block; margin: 0 auto 6px; width: 30px; height: 30px; color: var(--color-action); }
.home-demo__quote {
  display: flex; align-items: flex-start; gap: 10px; margin: 18px 0 0; padding: 16px 18px;
  border-radius: var(--r); background: color-mix(in srgb, var(--color-info-surface) 60%, var(--color-surface));
  text-align: start;
}
.home-demo__quote .ico { width: 26px; height: 26px; margin-top: 1px; color: var(--color-action); }
.home-demo__quote p { margin: 0; font-size: 16.5px; line-height: 1.5; color: var(--color-text); }
.home-demo__cta {
  display: flex; align-items: center; justify-content: center; gap: 14px; width: 100%;
  margin-top: 26px; padding: 14px 18px; min-height: 76px;
}
.home-demo__cta-text { display: grid; gap: 2px; font-weight: 500; font-size: 16.5px; line-height: 1.3; white-space: nowrap; }
.home-demo__cta-text strong { font-weight: 800; font-size: 20px; }
.home-demo__cta .ico--arrow { width: 26px; height: 26px; }
.home-demo__note { width: min(78%, 330px); height: auto; margin-top: 18px; }
.home-scroll--bare { margin-top: 10px; }

/* ── דסקטופ: ה-Hero הקלאסי למעלה, השלבים וההדגמה בשתי עמודות ── */
@media (min-width: 980px) {
  .home-how { padding-block: 56px 64px; }
  .home-how__note { inset-inline-end: 4%; inset-block-start: 40px; width: 150px; }
  .home-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 1080px; margin-top: 40px; }
  .home-step { padding: 26px 26px 26px 18px; padding-inline: 26px 18px; }
  .home-step:not(:last-child)::after { display: none; }
  .home-how__skyline { display: none; }
  .home-demo {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    grid-template-rows: 1fr repeat(5, auto) 1fr auto;
    grid-template-areas: ". card" "badge card" "title card" "lede card" "cta card" "note card" ". card" "scroll scroll";
    column-gap: clamp(36px, 5vw, 80px); justify-items: start; text-align: start;
    padding-block: 56px 20px;
  }
  .home-demo__badge { grid-area: badge; align-self: end; }
  .home-demo__title { grid-area: title; }
  .home-demo__lede { grid-area: lede; }
  .home-demo__card { grid-area: card; align-self: center; margin-top: 0; }
  .home-demo__cta { grid-area: cta; width: auto; justify-self: start; }
  .home-demo__note { grid-area: note; width: 300px; }
  .home-demo > .home-scroll { grid-area: scroll; justify-self: center; }
}

@media (max-width: 979px) {
  .landing-v2 { gap: 0; }
  .landing-v2__services { margin-top: 36px; }
  .landing-v2__bottom-cta { margin-top: 28px; }
  .landing-v2__bottom-cta .btn { width: 100%; }
  .home-demo { margin-top: 0; }
  /* במובייל הגלילה טבעית; כפתורי "המשיכו לגלול" רק חוצים את המסך. */
  .home-scroll { display: none; }
}

@media (max-width: 380px) {
  .home-step { grid-template-columns: minmax(0, 1fr) auto minmax(0, .7fr); gap: 8px; padding-inline: 14px 8px; }
  .home-step p { font-size: 14.5px; }
  .home-pillar { font-size: 13px; }
  .home-demo__traits li { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .home-scroll__disc { transition: none; }
  .home-scroll:hover .home-scroll__disc { transform: none; }
}

/* ── מסלול הנכסים בעמוד הבית ──────────────────────────────────────────
   כרטיס רחב בגווני שמנת וזית: טקסט וקריאה לפעולה מימין, קרוסלת נכסים
   משמאל. הקרוסלה היא גלילה אופקית עם scroll-snap — החיצים והנקודות רק
   מזיזים אותה, ובלי JavaScript היא עדיין נגללת במגע. */
.offer {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); align-items: center;
  gap: clamp(20px, 3vw, 40px); padding: clamp(34px, 4.6vw, 56px) clamp(24px, 4vw, 52px) clamp(110px, 11vw, 150px);
  /* לבן, כמו ה-hero וכרטיסי השירותים, כדי שהמקטע ישב באותה משפחה על רקע
     התכלת של העמוד. העיטורים עברו נרמול לרקע לבן, ולכן אין סביבם מסגרת. */
  border-radius: 30px; border: 1px solid rgba(11, 33, 64, .1);
  background: var(--color-surface);
  box-shadow: var(--shadow-lift);
}
/* גל תכלת עדין שחוצה את הכרטיס באלכסון, כמו בהדמיה. */
.offer::before {
  content: ''; position: absolute; z-index: 0; inset: 12% -10% auto -10%; height: 72%;
  background: linear-gradient(170deg, rgba(245, 241, 235, 0) 30%, rgba(245, 241, 235, .55) 50%, rgba(245, 241, 235, 0) 70%);
  border-radius: 50%; transform: rotate(-6deg); pointer-events: none;
}
.offer__title--service { display: none; }
/* ברירת המחדל (לא /?offer=section): המקטע הוא ההמשך של כרטיס השירות, ולכן רק כותרת
   קצרה מעל הקרוסלה, בעמודה אחת. */
.is-offer-service .offer { grid-template-columns: 1fr; padding-top: clamp(28px, 3.6vw, 44px); }
/* בעמוד /homes המקטע הוא העמוד עצמו: בלי מסגרת, רקע וצל — התוכן יושב ישר
   על רקע העמוד. העיטורים הלבנים (multiply) נמזגים גם ברקע התכלת. ריפוד
   צד קטן נשאר כדי שהשוליים השליליים של המסילה לא יגלשו מחוץ למסך. */
.is-offer-service .offer {
  background: none; border: 0; border-radius: 0; box-shadow: none;
  padding-inline: 12px; padding-bottom: 12px;
}
.is-offer-service .offer::before { display: none; }
.is-offer-service .offer__olive, .is-offer-service .offer__town { display: none; }
.is-offer-service .offer__copy { align-items: center; text-align: center; }
.is-offer-service #offer-title, .is-offer-service .offer__lede,
.is-offer-service .offer__sub, .is-offer-service .offer__cta { display: none; }
.is-offer-service .offer__title--service { display: block; font-size: clamp(26px, 2.8vw, 36px); }
.is-offer-service .offer__stage { width: min(100%, 940px); justify-self: center; }
.offer__intro, .offer__search { display: none; }
.is-offer-service .offer__intro {
  display: block; margin: 0; max-width: 640px; font-size: clamp(16px, 1.5vw, 18px); line-height: 1.6; color: var(--color-text-secondary);
}
/* "לא מצאתם?" מתחת לקרוסלה: אזור רגוע בכחול של "חיפוש נכס אישי". */
.is-offer-service .offer__search {
  position: relative; z-index: 2; width: min(100%, 940px); justify-self: center;
  display: flex; align-items: center; gap: 20px; padding: 20px 24px; border-radius: 24px;
  background: var(--color-selected); border: 1px solid rgba(47, 115, 186, .1);
}
.offer__search-icon {
  flex: none; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: var(--color-surface); color: var(--color-action); box-shadow: 0 6px 18px rgba(11, 33, 64, .08);
}
.offer__search-icon .ico { width: 30px; height: 30px; }
.offer__search-copy { display: grid; gap: 4px; }
.offer__search-copy h3 { margin: 0; font-family: 'Rubik', sans-serif; font-size: 20px; color: color-mix(in srgb, var(--color-action) 60%, var(--color-text)); }
.offer__search-copy p { margin: 0; font-size: 15px; color: var(--color-text-secondary); }
.offer__search-btn {
  margin-inline-start: auto; flex: none; min-height: 54px; padding: 0 26px; border: 0; border-radius: 18px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--color-action); color: var(--color-on-action); font: inherit; font-size: 17px; font-weight: 700;
  box-shadow: 0 8px 20px rgba(47, 115, 186, .22); transition: background-color .2s ease, box-shadow .2s ease;
}
.offer__search-btn:hover { background: var(--color-action-hover); box-shadow: 0 10px 24px rgba(47, 115, 186, .3); }
.offer__search-btn:focus-visible { outline: var(--focus-outline); outline-offset: 3px; }
@media (max-width: 680px) {
  .is-offer-service .offer__search { flex-direction: column; text-align: center; padding: 22px 18px; }
  .offer__search-btn { margin-inline-start: 0; width: 100%; }
}
@media (min-width: 760px) {
  .is-offer-service .offer__track { --carousel-card: calc((100% - 44px) / 3); }
}
.offer__copy { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.offer__title {
  margin: 0; font-family: 'Rubik', sans-serif; font-weight: 700; color: var(--color-text);
  font-size: clamp(34px, 3.9vw, 52px); line-height: 1.08; letter-spacing: -.02em;
}
.offer__lede { margin: 4px 0 0; font-size: clamp(17px, 1.6vw, 20px); color: var(--color-text); }
.offer__sub { margin: 0; font-size: 16px; color: var(--color-text-secondary); }
.offer__cta {
  margin-top: 14px; min-width: min(100%, 380px); padding: 17px 30px; border-radius: 16px;
  background: var(--color-action); box-shadow: 0 12px 24px rgba(11, 33, 64, .22); text-decoration: none;
}
.offer__cta:hover { background: var(--color-action-hover); }

.offer__stage { position: relative; z-index: 2; display: grid; gap: 22px; min-width: 0; outline: none; }
.offer__track {
  /* מסילה נגללת חותכת גם לגובה, ולכן הריפוד גדול מהצל של הכרטיסים (עד 72px
     למטה) והשוליים השליליים מבטלים אותו בפריסה. */
  --carousel-card: min(260px, 72%);
  --carousel-gap: 18px;
  list-style: none; margin: -20px -30px -50px; padding: 46px 30px 72px; display: flex; gap: var(--carousel-gap);
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  overscroll-behavior-x: contain;
  /* כרטיס שיוצא מהמסילה נמוג אל הרקע בריפוד הצד, במקום להיחתך בקו ישר. */
  --carousel-fade: 30px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--carousel-fade), #000 calc(100% - var(--carousel-fade)), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 var(--carousel-fade), #000 calc(100% - var(--carousel-fade)), transparent);
}
.offer__track::-webkit-scrollbar { display: none; }
/* מרווח בשני קצות המסילה, כדי שגם הכרטיס הראשון והאחרון יגיעו למרכז. */
.offer__track::before, .offer__track::after { content: ''; flex: 0 0 calc((100% - var(--carousel-card)) / 2 - var(--carousel-gap)); }
/* בנסיעה בקפיץ ובגרירה בעכבר המסילה זזה בעצמה; ה-snap חוזר כשהיא נעצרת על כרטיס. */
.offer__track.is-gliding, .offer__track.is-dragging { scroll-snap-type: none; }
.offer__track.is-dragging { user-select: none; -webkit-user-select: none; }
.offer__track.is-dragging .offer-card { cursor: grabbing; }
/* העומק נגזר ממרחק הכרטיס מהמרכז, ש-initProjectCarousel כותב בכל פריים:
   --depth 0 במרכז ו-1 אצל השכנים, --shift בין -1 ל-1 לפי הצד. הכרטיסים
   נשארים ישרים — השכנים רק קטנים, והצל שלהם נמוך יותר. */
.offer-card {
  --lift: calc(1 - var(--depth, 0));
  flex: 0 0 var(--carousel-card); scroll-snap-align: center; display: flex; flex-direction: column;
  border-radius: 18px; overflow: hidden; background: var(--color-surface); border: 1px solid var(--color-divider);
  transform: scale(calc(1 - var(--depth, 0) * .1)); will-change: transform;
  box-shadow: 0 calc(8px + 16px * var(--lift)) calc(18px + 30px * var(--lift)) rgba(11, 33, 64, calc(.07 + .11 * var(--lift)));
}
.offer-card:has(.offer-card__link) { cursor: pointer; }
/* הכרטיס שבמרכז מעל שני השכנים, כדי שהצל שלו לא ייחתך רק בצד אחד. */
.offer-card.is-active { z-index: 1; }
.offer-card__media { position: relative; overflow: hidden; aspect-ratio: 4 / 3.6; background: var(--color-surface-muted); }
/* התמונה זזה בתוך המסגרת לאט מהכרטיס, כמו נוף מבעד לחלון. */
.offer-card__media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transform: translateX(calc(var(--shift, 0) * -5%)) scale(1.12);
}
.offer-card__tag {
  position: absolute; top: 14px; inset-inline-end: 14px; padding: 5px 13px; border-radius: 9px;
  background: var(--color-primary); color: var(--color-on-action); font-size: 14px; font-weight: 600;
}
.offer-card__tag--sea { background: var(--color-action-strong); }
.offer-card__tag--sand { background: var(--color-accent); }
.offer-card__fav {
  position: absolute; top: 14px; inset-inline-start: 14px; width: 26px; height: 26px;
  color: rgba(255, 255, 255, .25); stroke: var(--color-on-action); stroke-width: 1.8;
  filter: drop-shadow(0 1px 3px rgba(11, 33, 64, .25));
}
.offer-card__body { padding: 16px 18px 14px; display: grid; gap: 5px; }
.offer-card__body h3 { margin: 0; font-family: 'Rubik', sans-serif; font-size: 20px; color: var(--color-text); }
.offer-card__loc { margin: 0; display: flex; align-items: center; gap: 6px; color: var(--color-text-secondary); font-size: 15px; }
.offer-card__loc .ico { width: 17px; height: 17px; color: var(--color-text-secondary); }
.offer-card__meta {
  margin: 8px 0 0; padding-top: 11px; border-top: 1px solid var(--color-divider); color: var(--color-text-secondary); font-size: 14.5px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 9px;
}
.offer-card__meta span { white-space: nowrap; }
.offer-card__meta span + span { padding-inline-start: 9px; border-inline-start: 1px solid var(--color-divider); color: var(--color-action-strong); }
/* חדרים · שטח · קומה, עם אייקונים, בשלוש עמודות שוות. */
.offer-card__facts {
  list-style: none; margin: 8px 0 0; padding: 11px 0 0; border-top: 1px solid var(--color-divider);
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
}
.offer-card__facts li { display: grid; justify-items: center; gap: 4px; font-size: 14px; color: var(--color-text-secondary); white-space: nowrap; }
.offer-card__facts li + li { border-inline-start: 1px solid var(--color-divider); }
.offer-card__facts .ico { width: 19px; height: 19px; color: var(--color-action-strong); }
.offer-card--plan .offer-card__media { background: var(--color-surface); }
.offer-card--plan .offer-card__media img { object-fit: contain; padding: 30px 4px 2px; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .offer-card__media img { transform: none; }
}
.offer-card__link {
  justify-self: start; margin-top: 6px; color: var(--color-action); font-weight: 600; font-size: 14.5px;
  text-decoration: underline; text-underline-offset: 4px;
  display: inline-flex; align-items: center; gap: 6px;
}
.offer-card__link .ico { width: 16px; height: 16px; }

.offer__nav { display: flex; align-items: center; justify-content: center; gap: 30px; }
.offer__arrow {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--color-divider); background: var(--color-surface); color: var(--color-text); cursor: pointer;
  box-shadow: 0 6px 14px rgba(11, 33, 64, .09); transition: transform .15s ease;
}
.offer__arrow:hover { transform: translateY(-1px); }
.offer__arrow:disabled { background: var(--color-disabled-bg); color: var(--color-disabled-text); border-color: var(--color-disabled-border); cursor: default; transform: none; box-shadow: none; }
.offer__arrow .ico { width: 22px; height: 22px; transform: rotate(-90deg); }
.offer__arrow--next .ico { transform: rotate(90deg); }
.offer__dots { display: flex; gap: 9px; }
.offer__dots i { width: 8px; height: 8px; border-radius: 4px; background: var(--color-border); transition: width .35s cubic-bezier(.2, .8, .2, 1), background-color .2s ease; }
.offer__dots i.is-on { width: 24px; background: var(--color-action); }

.offer__olive {
  position: absolute; z-index: 1; bottom: 0; left: 0; width: clamp(80px, 9vw, 128px); height: auto;
  mix-blend-mode: multiply; pointer-events: none;
  -webkit-mask-image: radial-gradient(120% 90% at 0% 100%, #000 45%, transparent 80%);
  mask-image: radial-gradient(120% 90% at 0% 100%, #000 45%, transparent 80%);
}
.offer__town {
  position: absolute; z-index: 0; bottom: 0; right: 0; width: min(44%, 560px); height: auto;
  mix-blend-mode: multiply; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%), linear-gradient(0deg, #000 70%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 14%), linear-gradient(0deg, #000 70%, transparent);
  mask-composite: intersect;
}

@media (min-width: 900px) and (max-width: 1199px) {
  /* ברוחב ביניים שלושה כרטיסים צרים מדי — מציגים שניים וחצי, והשאר בגלילה. */
  .offer__track { --carousel-card: 44%; }
}

@media (min-width: 1200px) {
  /* בדסקטופ רחב שלושת הכרטיסים נראים יחד והמרכזי מודגש, כמו בהדמיה. */
  .offer__track { --carousel-card: calc((100% - 44px) / 3); }
}

@media (max-width: 899px) {
  .offer { grid-template-columns: 1fr; padding-bottom: 150px; }
  .offer__copy { align-items: stretch; }
    .offer__cta { min-width: 0; width: 100%; }
    .offer__town { width: 86%; }
}

@media (max-width: 480px) {
  .offer { border-radius: 24px; padding-inline: 18px; }
  .offer__track { --carousel-card: 76%; margin-inline: -18px; padding-inline: 18px; }
}
/* בטלפון, ב-/homes, המסילה נמתחת עד קצות המסך: הכרטיסים נכנסים מהצד ונמוגים
   בו, במקום להיחתך בשולי העמוד. העיטורים שהמקטע חתך מוסתרים כאן ממילא. */
@media (max-width: 480px) {
  .is-offer-service .offer { overflow: visible; }
  .is-offer-service .offer__track { margin-inline: calc(50% - 50vw); --carousel-fade: 16px; }
}

/* ── שלב ההסבר של /landing-v2 ───────────────────────────────────────── */
.v2-intro {
  max-width: 980px; margin: 0 auto; padding: clamp(18px, 4vw, 44px) 0 30px;
  display: grid; gap: 30px; justify-items: center;
}
.v2-intro__back { justify-self: start; }
.v2-intro__head { max-width: 760px; display: grid; gap: 16px; justify-items: center; text-align: center; }
.v2-intro__head h1 { font-size: clamp(34px, 5.4vw, 58px); letter-spacing: -.025em; }
.v2-intro__head .lede { max-width: 66ch; font-size: 18px; }
.v2-intro__steps {
  width: 100%; list-style: none; margin: 4px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px;
}
.v2-intro__step {
  position: relative; min-width: 0; min-height: 290px; padding: 28px 24px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 13px;
  overflow: hidden; border-radius: var(--r-lg); background: var(--color-surface); box-shadow: var(--shadow);
  border-top: 5px solid var(--color-action);
}
.v2-intro__mark {
  width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center;
  color: var(--color-action); background: var(--color-selected);
}
.v2-intro__mark .ico { width: 30px; height: 30px; }
.v2-intro__num {
  position: absolute; inset-block-start: 30px; inset-inline-end: 24px;
  color: var(--color-border); font-family: var(--head); font-size: 50px; font-weight: 700; line-height: 1;
}
.v2-intro__step h2 { margin-top: 7px; font-size: 21px; line-height: 1.3; }
.v2-intro__step p { color: var(--color-text-secondary); font-size: 16px; line-height: 1.65; }
.v2-intro__member {
  width: min(100%, 760px); padding: 20px 24px; display: flex; align-items: flex-start; gap: 14px;
  border-radius: var(--r); background: var(--color-info-surface); color: var(--color-primary);
}
.v2-intro__member > .ico { width: 26px; height: 26px; margin-top: 2px; }
.v2-intro__member div { display: grid; gap: 3px; }
.v2-intro__member strong { font-family: var(--head); font-size: 18px; }
.v2-intro__member p { color: var(--color-text-secondary); font-size: 16px; }
.v2-intro__cta { min-width: min(100%, 330px); }

@media (max-width: 759px) {
  .v2-intro { gap: 24px; padding-top: 10px; }
  .v2-intro__head { justify-items: start; text-align: start; }
  .v2-intro__head h1 { font-size: clamp(32px, 9vw, 42px); }
  .v2-intro__steps { grid-template-columns: 1fr; gap: 14px; }
  .v2-intro__step { min-height: 0; padding: 22px; }
  .v2-intro__member { padding: 18px; }
  .v2-intro__cta { width: 100%; }
}

/* ── איך זה עובד ────────────────────────────────────── */
/* שלושת הצעדים ממורכזים סביב עיגול אחד לכל צעד: מספר צבעוני על עיגול לבן
   עם הסמל. במובייל הצעדים בטור, ולכן החצים המקווקווים בין העיגולים —
   שהם קישוט בלבד — נעלמים שם. */
.how { margin: 0 0 44px; text-align: center; }
.how__title { margin-bottom: 4px; }
.how__lede { font-size: 15px; color: var(--color-text-secondary); margin: 0 0 26px; }
.how__steps {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; align-items: center; gap: 26px;
}
.howstep {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  flex: 1 1 0; max-width: 30ch;
}
.howstep__mark {
  position: relative; width: 74px; height: 74px; margin-bottom: 8px;
  border-radius: var(--r-pill); background: var(--color-surface); box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center; color: var(--color-text);
}
.howstep__ico { width: 34px; height: 34px; }
.howstep__num {
  position: absolute; top: 50%; inset-inline-start: 100%; transform: translate(-50%, -50%);
  width: 36px; height: 36px; border-radius: var(--r-pill); color: var(--color-on-action);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--head); font-size: 17px; font-weight: 700;
}
.howstep__num { background: var(--color-action); }
.howstep strong { font-family: var(--head); font-size: 17px; color: var(--color-text); }
.howstep__body { font-size: 15px; line-height: 1.6; color: var(--color-text-secondary); }
.how__link { display: none; }
.how__arrow { width: 100%; height: 12px; color: var(--color-icon-muted); }
html[dir="rtl"] .how__arrow { transform: scaleX(-1); }

/* ── villes ─────────────────────────────────────────── */
.cities { margin-bottom: 36px; }
.cities ul { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 12px; }
.citycard {
  background: var(--color-surface); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 14px;
  transition: transform .12s ease, box-shadow .12s ease;
}
.citycard { text-decoration: none; color: inherit; cursor: pointer; font-weight: 400; }
.citycard:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); color: inherit; }
.citycard:focus-visible { outline: var(--focus-outline); outline-offset: 3px; }
/* החץ מסמן שהכרטיס נפתח לעמוד, ולא שהוא רק פריט ברשימה */
.citycard__go { margin-inline-start: auto; color: var(--color-icon-muted); }
.citycard:hover .citycard__go { color: var(--color-action); }
.citycard__icon {
  width: 48px; height: 48px; border-radius: var(--r-sm); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.citycard__icon { background: var(--color-selected); color: var(--color-action); }
.citycard .name { font-family: var(--head); font-weight: 600; font-size: 17px; display: block; }
.citycard .tag { font-size: 14px; color: var(--color-text-secondary); }

.disclaimer {
  font-size: 13px; color: var(--color-text-secondary); line-height: 1.7;
  background: var(--color-surface); border-radius: var(--r); padding: 16px 20px; box-shadow: var(--shadow);
}

/* ── questionnaire ──────────────────────────────────── */
body[data-step="quiz"] {
  background-color: var(--color-page);
  background-image:
    radial-gradient(circle at 8% 2%, rgba(232, 242, 251, .9) 0%, transparent 36%),
    radial-gradient(circle at 92% 0%, rgba(255, 253, 249, .8) 0%, transparent 32%);
}
body[data-step="quiz"] main {
  padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
}
.quiz {
  max-width: 780px; margin: 10px auto 40px;
  padding: var(--quiz-space-6) var(--quiz-space-6) 34px;
  background: var(--color-surface); border: 1px solid rgba(47, 115, 186, .18);
  box-shadow: 0 14px 42px rgba(11, 33, 64, .09);
}
.quiz__head { display: flex; align-items: center; justify-content: space-between; min-height: 36px; margin-bottom: var(--quiz-space-3); }
.quiz__head #back {
  display: inline-flex; align-items: center; min-height: 36px; padding: 4px 0;
  color: var(--color-text); font-family: var(--head); font-size: 19px; font-weight: 700;
}
.quiz__head #back:hover { color: var(--color-action-strong); }
.quiz__count {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; color: var(--color-primary); font-family: var(--head);
}
.quiz__count .ico { width: 17px; height: 17px; color: var(--color-action); }
/* לקורא מסך בלבד (כותרת השאלון, ההכרזות). הכותרת הנראית היא השאלה עצמה. */
.vh {
  position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
/* המסילה בטוקן שלה (docs/design-colors.md): המילוי הכחול 4:1 מולה, והמסילה
   עצמה נראית על הכרטיס ולא נבלעת בו. */
.progress { height: 9px; background: var(--color-progress-track); border-radius: var(--r-pill); margin-bottom: var(--quiz-space-6); overflow: hidden; }
.progress__bar {
  height: 9px; width: 20%; border-radius: var(--r-pill); transition: width .25s ease;
  background: var(--color-progress);
}
#q-title {
  max-width: 25ch; margin-bottom: var(--quiz-space-3);
  color: var(--color-text); font-size: clamp(25px, 4.7vw, 32px); line-height: 1.24;
  letter-spacing: -.012em;
}
/* הכותרת מקבלת מיקוד בכל שאלה (public/app.js) — בלי מסגרת, היא לא כפתור. */
#q-title:focus { outline: none; }
#q-hint { color: var(--color-text-secondary); font-size: 15.5px; font-weight: 500; line-height: 1.5; }
.q-hint--with-count { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
/* מונה הבחירה הוא טקסט מצב, לא כפתור: בלי מסגרת, רקע או צורת גלולה. */
.selection-count {
  color: var(--color-text-secondary);
  font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.options { display: grid; gap: var(--quiz-space-3); margin-top: var(--quiz-space-5); }
/* קבוצת הכרטיסים (radiogroup / group) יורשת את הרשת של .options, כדי שהעטיפה
   הסמנטית לא תשנה את הפריסה. */
.options__group { display: grid; gap: inherit; grid-template-columns: inherit; grid-column: 1 / -1; }
.options__group--ranked, .draft-question .options__group { gap: var(--quiz-space-3); }
.options--family-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.options--family-grid .quiz__nav { grid-column: 1 / -1; }
.options--continuum { gap: 10px; }
.options--continuum .option__key { display: none; }
.options--text-only .option__key { display: none; }
/* A shared frame keeps the heading and controls anchored between questions.
   Longer answers grow naturally; short answers leave the action in one place. */
#step-quiz:not(.profile-editor) .quiz { max-width: 960px; }
.quiz__prompt { min-block-size: 112px; }
#step-quiz #options {
  display: flex; flex-direction: column;
  min-block-size: max(340px, calc(100svh - 460px));
  margin-top: var(--quiz-space-5);
}
#options > .quiz__nav { margin-top: auto; }
#options > * { flex-shrink: 0; }
/* איי React בתוך #options (parts/question-island.js): הילדים שלהם נפרסים כילדי #options, וה-gap והעמודות עוברים דרכם (.options__group יורש אותם). */
.question-island { display: contents; gap: inherit; grid-template-columns: inherit; }
.question-island > * { flex-shrink: 0; }
#step-quiz:not(.profile-editor) .quiz--housing,
#step-quiz:not(.profile-editor) .quiz--environment-experiment { padding-inline: var(--quiz-space-6); }
.repeat-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.repeat-row:has(> .field:only-child) { grid-template-columns: minmax(0, 1fr); }

.quiz--housing { max-width: 1080px; }
.options--housing { gap: 14px; margin-top: 22px; }
.quiz--environment-experiment { max-width: 1040px; }
.options--environment-experiment { gap: 18px; margin-top: 20px; }
.environment-preferences { display: grid; gap: 14px; }
.environment-preferences__order-help {
  display: grid; gap: 3px; padding: 11px 14px; border-radius: 12px; background: var(--color-info-surface);
  color: var(--color-text-secondary); font-size: 14px; font-weight: 650; line-height: 1.45;
}

.environment-preferences__list { position: relative; display: grid; gap: 12px; }
.environment-preferences.is-order-demo .environment-preferences__order-help {
  animation: preference-order-demo-help 1.35s cubic-bezier(.16, 1, .3, 1) both;
}
.environment-preferences.is-order-demo .preference-card:first-child {
  z-index: 3; transform-origin: center top;
  animation: preference-order-demo-card 1.35s cubic-bezier(.16, 1, .3, 1) both;
}
.environment-preferences.is-order-demo .preference-card:nth-child(2) {
  animation: preference-order-demo-yield 1.35s cubic-bezier(.16, 1, .3, 1) both;
}
.environment-preferences.is-order-demo .preference-card:first-child .preference-card__drag,
.environment-preferences.is-order-demo-reduced .preference-card:first-child .preference-card__drag {
  animation: preference-order-demo-grip 1.35s cubic-bezier(.16, 1, .3, 1) both;
}
.environment-preferences.is-order-demo .preference-card:first-child .preference-card__rank {
  animation: preference-order-demo-rank 1.35s cubic-bezier(.16, 1, .3, 1) both;
}
.environment-preferences.is-order-demo .preference-card:first-child .preference-station:nth-of-type(2) .preference-station__marker {
  animation: preference-choice-demo-point 1.05s 1.28s cubic-bezier(.16, 1, .3, 1) both;
}
.environment-preferences.is-order-demo .preference-card:first-child .preference-station:nth-of-type(3) .preference-station__marker {
  animation: preference-choice-demo-point 1.05s 1.48s cubic-bezier(.16, 1, .3, 1) both;
}
.environment-preferences.is-order-demo .preference-card:first-child .preference-station:nth-of-type(2),
.environment-preferences.is-order-demo .preference-card:first-child .preference-station:nth-of-type(3) {
  animation: preference-choice-demo-label 1.05s 1.38s cubic-bezier(.16, 1, .3, 1) both;
}

@keyframes preference-order-demo-card {
  0%, 100% { transform: translateY(0) scale(1); box-shadow: none; }
  20% { transform: translateY(-3px) scale(1.006); box-shadow: var(--shadow-lift); }
  52%, 66% { transform: translateY(28px) scale(1.006); box-shadow: var(--shadow-lift); }
}
@keyframes preference-order-demo-yield {
  0%, 100% { transform: translateY(0); }
  45%, 68% { transform: translateY(-8px); }
}
@keyframes preference-order-demo-help {
  0%, 100% { background: var(--color-info-surface); color: var(--color-text-secondary); }
  24%, 68% { background: var(--color-selected); color: var(--color-text); }
}
@keyframes preference-order-demo-grip {
  0%, 100% { border-color: var(--color-border); background: var(--color-surface); color: var(--color-text-secondary); }
  18%, 70% { border-color: var(--color-action); background: var(--color-selected); color: var(--color-action-strong); box-shadow: var(--focus-ring); }
}
@keyframes preference-order-demo-rank {
  0%, 100% { filter: brightness(1); }
  24%, 68% { filter: brightness(1.13); }
}
@keyframes preference-choice-demo-point {
  0%, 100% { background: var(--color-border-hover); box-shadow: 0 0 0 1px var(--color-border-hover); transform: scale(1); }
  28%, 72% { background: var(--color-action); box-shadow: 0 0 0 2px var(--color-action), 0 4px 12px rgba(47, 115, 186, .22); transform: scale(1.12); }
}
@keyframes preference-choice-demo-label {
  0%, 100% { color: var(--color-text-secondary); }
  30%, 72% { color: var(--color-text); }
}

.environment-preferences__live {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.preference-card {
  display: grid; gap: 14px; padding: 17px 18px;
  border: 1px solid var(--color-border); border-radius: 16px; background: var(--color-surface);
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease;
}
.preference-card.has-selection { border-color: color-mix(in srgb, var(--color-action) 48%, var(--color-border)); }
.preference-card.is-at-selection-limit { animation: preference-selection-limit .55s ease-out both; }
@keyframes preference-selection-limit {
  0%, 100% { border-color: var(--color-border); background: var(--color-surface); }
  35%, 70% { border-color: var(--color-error); background: var(--color-error-surface); }
}
.preference-card.is-dragging {
  position: fixed; z-index: 1000; inset: 0 auto auto 0; box-sizing: border-box;
  width: var(--preference-drag-width); margin: 0;
  border-color: var(--color-action); background: var(--color-surface);
  box-shadow: var(--shadow-lift);
  transform: translate3d(var(--preference-drag-x), var(--preference-drag-y), 0);
  transition: none; will-change: transform;
}
.preference-card.is-dragging .preference-card__drag {
  border-color: var(--color-action); background: var(--color-selected); color: var(--color-action-strong);
  cursor: grabbing;
}
.preference-card__placeholder {
  box-sizing: border-box; min-height: 96px;
  border: 1px dashed color-mix(in srgb, var(--color-action) 55%, var(--color-border));
  border-radius: 16px; background: color-mix(in srgb, var(--color-selected) 58%, transparent);
}
body.is-reordering-preferences { user-select: none; cursor: grabbing; overscroll-behavior: none; }
.preference-card__header {
  display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto auto;
  align-items: center; gap: 10px;
}
.preference-card__rank {
  display: grid; place-items: center; align-content: center;
  width: 48px; height: 48px; border-radius: 50%; background: var(--color-selected);
  color: var(--color-action-strong); font-family: var(--head); font-size: 19px; font-weight: 800;
  font-variant-numeric: tabular-nums; line-height: 1;
}
.preference-card__rank small { margin-top: 3px; font-family: var(--body); font-size: 9px; font-weight: 750; }
.preference-card.is-top-priority .preference-card__rank { background: var(--color-action); color: var(--color-on-action); }
.preference-card__icon {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px;
  background: var(--color-selected); color: var(--color-action-strong);
}
.preference-card__icon .ico { width: 22px; height: 22px; }
.preference-card__title { font-size: 18px; line-height: 1.35; }
.preference-card__controls { display: flex; gap: 4px; }
.preference-card__move, .preference-card__drag {
  display: grid; place-items: center; width: 42px; height: 42px; padding: 0;
  border: 1px solid var(--color-border); border-radius: 12px;
  background: var(--color-surface); color: var(--color-text-secondary); cursor: pointer;
}
.preference-card__move:hover, .preference-card__drag:hover { border-color: var(--color-border-hover); color: var(--color-action-strong); }
.preference-card__move:focus-visible, .preference-card__drag:focus-visible {
  outline: none; border-color: var(--color-action); box-shadow: var(--focus-ring);
}
.preference-card__move:disabled {
  border-color: var(--color-disabled-border); background: var(--color-disabled-bg);
  color: var(--color-disabled-text); cursor: default;
}
.preference-card__move .ico { width: 18px; height: 18px; }
.preference-card__move--up .ico { transform: rotate(180deg); }
.preference-card__drag { touch-action: none; cursor: grab; }
.preference-card__drag:active { cursor: grabbing; }
.preference-card__grip { display: grid; grid-template-columns: repeat(2, 4px); gap: 3px; }
.preference-card__grip i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.preference-scale {
  --station-count: 4;
  position: relative; isolation: isolate; display: grid;
  grid-template-columns: repeat(var(--station-count), minmax(0, 1fr)); direction: rtl;
}
.preference-scale__rail {
  position: absolute; z-index: -1; inset-inline: calc(50% / var(--station-count)); top: 17px;
  height: 4px; border-radius: var(--r-pill); background: var(--color-progress-track);
}
.preference-station {
  position: relative; display: grid; grid-template-rows: 36px auto; justify-items: center; align-content: start;
  min-width: 0; min-height: 76px; padding: 0 6px 6px; border: 0; border-radius: 12px;
  background: transparent; color: var(--color-text-secondary); font-family: var(--body); cursor: pointer;
}
.preference-station:hover { color: var(--color-action-strong); background: var(--color-surface-hover); }
.preference-station:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.preference-station__marker {
  align-self: start; display: grid; place-items: center; width: 20px; height: 20px; margin-top: 9px;
  border: 3px solid var(--color-surface); border-radius: 50%; background: var(--color-border-hover);
  box-shadow: 0 0 0 1px var(--color-border-hover); transition: transform .14s ease, background .14s ease;
}
.preference-station.is-selected { color: var(--color-text); font-weight: 700; }
.preference-station.is-selected .preference-station__marker {
  background: var(--color-action); box-shadow: 0 0 0 2px var(--color-action), 0 4px 12px rgba(47, 115, 186, .22);
  transform: scale(1.12);
}
.preference-station__marker--building::after {
  content: ''; width: 5px; height: calc(3px + var(--building-level) * 2px); max-height: 11px;
  border-radius: 1px 1px 0 0; background: var(--color-surface);
}
.preference-station__label { max-width: 18ch; font-size: 13.5px; font-weight: 650; line-height: 1.25; text-align: center; }
.preference-card__feedback {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 38px; padding-top: 11px; border-top: 1px solid var(--color-divider);
}
.preference-card__summary {
  display: grid; flex: 1 1 auto; gap: 5px;
  color: var(--color-text-secondary); font-size: 14px; line-height: 1.4;
}
.preference-card.has-selection .preference-card__summary { color: var(--color-text); }
.preference-card__summary.is-limit-message { color: var(--color-error); font-weight: 650; }
.preference-card__summary-lead { margin: 0; font-weight: 700; }
.preference-card__summary-list {
  display: grid; gap: 3px; margin: 0; padding-inline-start: 19px;
  color: var(--color-text-secondary);
}
.preference-card__summary-list li::marker { color: var(--color-action); }
.preference-card__open-choice {
  flex: 0 0 auto; min-height: 38px; padding: 7px 13px; border: 1px solid var(--color-border);
  border-radius: var(--r-pill); background: var(--color-surface); color: var(--color-action-strong);
  font-family: var(--body); font-size: 13px; font-weight: 750; cursor: pointer;
}
.preference-card__open-choice:hover { border-color: var(--color-border-hover); background: var(--color-surface-hover); }
.preference-card__open-choice:focus-visible { outline: none; border-color: var(--color-action); box-shadow: var(--focus-ring); }
.preference-card__open-choice.is-selected { border-color: var(--color-action); background: var(--color-selected); color: var(--color-text); }
@media (max-width: 700px) {
  .quiz--environment-experiment { padding-inline: 14px; }
  .preference-card { padding: 14px 12px; gap: 12px; }
  .preference-card__header { grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; }
  .preference-card__rank { width: 44px; height: 44px; }
  .preference-card__icon { display: none; }
  .preference-card__title { font-size: 16.5px; }
  .preference-card__controls { grid-column: 2; grid-row: 2; justify-self: start; }
  .preference-card__drag { grid-column: 3; grid-row: 1; width: 44px; height: 44px; }
  .preference-station { min-height: 82px; padding-inline: 3px; }
  .preference-station__label { font-size: 12.5px; line-height: 1.2; }
  .preference-card__feedback { align-items: stretch; flex-direction: column; gap: 8px; }
  .preference-card__open-choice { align-self: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .preference-card, .preference-station__marker { transition: none; }
  .environment-preferences.is-order-demo .environment-preferences__order-help,
  .environment-preferences.is-order-demo .preference-card:first-child,
  .environment-preferences.is-order-demo .preference-card:nth-child(2),
  .environment-preferences.is-order-demo .preference-card:first-child .preference-card__rank { animation: none; }
  .environment-preferences.is-order-demo-reduced .preference-card:first-child .preference-card__drag {
    animation-duration: .8s;
  }
  .environment-preferences.is-order-demo-reduced .preference-card:first-child .preference-station:nth-of-type(2) .preference-station__marker {
    animation: preference-choice-demo-point-reduced .7s .55s ease-out both;
  }
  .environment-preferences.is-order-demo-reduced .preference-card:first-child .preference-station:nth-of-type(3) .preference-station__marker {
    animation: preference-choice-demo-point-reduced .7s .75s ease-out both;
  }
  
}
@keyframes preference-choice-demo-point-reduced {
  0%, 100% { background: var(--color-border-hover); box-shadow: 0 0 0 1px var(--color-border-hover); }
  30%, 72% { background: var(--color-action); box-shadow: 0 0 0 2px var(--color-action); }
}
.housing-section {
  container-type: inline-size;
  display: grid; gap: 16px; padding: 20px; border: 1px solid var(--color-border);
  border-radius: 18px; background: rgba(255, 255, 255, .84);
}
.housing-section.is-missing {
  border-color: var(--color-error); background: var(--color-error-surface);
  box-shadow: 0 0 0 3px rgba(184, 71, 67, .09);
}
.housing-section.is-missing .housing-section__number { background: var(--color-error-surface); color: var(--color-error); }
.housing-section__error {
  margin: -4px 50px 0 0; padding: 10px 13px; border-radius: 10px;
  background: var(--color-error-surface); color: var(--color-error); font-size: 14px; font-weight: 750;
}
.housing-section__heading { display: flex; align-items: flex-start; gap: 12px; }
.housing-section__number {
  display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px;
  border-radius: 50%; background: var(--color-selected); color: var(--color-action-strong);
  font-family: var(--head); font-size: 18px; font-weight: 800;
}
.housing-section__heading h3 { margin: 1px 0 2px; font-family: var(--head); font-size: 20px; line-height: 1.3; }
.housing-section__heading p { margin: 0; color: var(--color-text-secondary); font-size: 14px; }
.housing-intents { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@container (max-width: 720px) {
  .housing-intents { grid-template-columns: 1fr; }
}
.housing-choice {
  position: relative; display: flex; align-items: center; min-height: 132px; gap: 13px;
  padding: 18px; border: 2px solid var(--color-border); border-radius: 15px; background: var(--color-surface);
  color: var(--color-text); text-align: start; transition: border-color .14s ease, background .14s ease, box-shadow .14s ease;
}
.housing-choice:hover { border-color: var(--color-border-hover); box-shadow: var(--shadow); }
.housing-choice:focus-visible { border-color: var(--color-action); outline: none; box-shadow: var(--focus-ring); }
.housing-choice.is-picked { border-color: var(--color-action); background: linear-gradient(135deg, var(--color-selected), var(--color-surface)); box-shadow: var(--shadow); }
.housing-art {
  display: block; width: 96px; height: 90px; flex: 0 0 96px; overflow: hidden;
  border-radius: 22px; background-color: var(--color-surface);
  background-image: url('/assets/optimized/house-q-icons-ffb8148a.webp');
  background-repeat: no-repeat; background-size: 460.8px 307.2px;
}
.housing-art--apartment { background-position: -19px -27px; }
.housing-art--private-house { background-position: -130px -29px; }
.housing-art--garden-apartment { background-position: -234px -29px; }
.housing-art--penthouse { background-position: -346px -27px; }
.housing-art--rent { background-position: -63px -167px; }
.housing-art--purchase { background-position: -183px -167px; }
.housing-art--unknown { background-position: -310px -167px; }
.housing-choice__copy { display: grid; gap: 3px; }
.housing-choice__copy strong { font-family: var(--head); font-size: 18px; }
.housing-choice__copy small { color: var(--color-text-secondary); font-size: 13px; line-height: 1.35; }
.housing-choice__check, .housing-dwelling__check {
  position: absolute; inset-block-start: 10px; inset-inline-start: 10px; display: none;
  width: 25px; height: 25px; border-radius: 50%; place-items: center;
  background: var(--color-action); color: var(--color-on-action); font-size: 15px; font-weight: 900;
}
.is-picked > .housing-choice__check, .is-picked > .housing-dwelling__check { display: grid; }
.housing-budgets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.housing-budget {
  display: grid; gap: 11px; padding: 17px; border-radius: 15px;
  background: linear-gradient(135deg, rgba(232, 242, 251, .88), rgba(255, 255, 255, .96));
}
.housing-budget--purchase { background: linear-gradient(135deg, rgba(232, 242, 251, .9), rgba(255, 255, 255, .96)); }
.housing-budget__head { display: flex; align-items: center; gap: 11px; }
.housing-budget__head > span:last-child { display: grid; gap: 1px; }
.housing-budget__head strong { font-family: var(--head); font-size: 17px; }
.housing-budget__head small, .housing-budget__example { color: var(--color-text-secondary); font-size: 13px; }
.housing-budget__icon {
  display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 40px;
  border-radius: 50%; background: rgba(255, 255, 255, .62); color: var(--color-action);
}
.housing-budget--purchase .housing-budget__icon { color: var(--color-primary); }
.housing-budget__icon .ico { width: 23px; height: 23px; }
.housing-budget__field { position: relative; display: block; }
.housing-budget__select {
  width: 100%; padding-inline: 14px 42px; cursor: pointer;
  font-weight: 750; text-align: start;
}
.housing-budget__select[aria-invalid="true"] { border-color: var(--color-error); box-shadow: 0 0 0 3px rgba(184, 71, 67, .09); }
.housing-section__prompt {
  grid-column: 1 / -1; margin: 0; padding: 16px; border-radius: 12px;
  background: var(--color-selected); color: var(--color-text-secondary); text-align: center;
}
.housing-rooms { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; direction: rtl; }
.housing-room {
  min-height: 48px; border: 2px solid transparent; border-radius: var(--r-pill);
  background: var(--color-selected); color: var(--color-text); font-family: var(--head); font-size: 18px; font-weight: 750;
}
.housing-room:hover { border-color: var(--color-border-hover); }
.housing-room:focus-visible { border-color: var(--color-action); outline: none; box-shadow: var(--focus-ring); }
.housing-room.is-picked { background: var(--color-selected); color: var(--color-action-strong); }
.housing-room.is-edge { border-color: var(--color-action); box-shadow: 0 4px 12px rgba(47, 115, 186, .12); }
.housing-rooms__note { margin: -6px 0 0; color: var(--color-text-secondary); font-size: 13px; text-align: center; }
.housing-dwellings { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.housing-dwelling {
  position: relative; display: grid; place-items: center; gap: 8px; min-height: 152px;
  padding: 16px 10px; border: 2px solid var(--color-border); border-radius: 15px;
  background: var(--color-surface); color: var(--color-text); font-family: var(--head); font-size: 16px;
  transition: border-color .14s ease, background .14s ease, box-shadow .14s ease;
}
.housing-dwelling:hover { border-color: var(--color-border-hover); box-shadow: var(--shadow); }
.housing-dwelling:focus-visible { border-color: var(--color-action); outline: none; box-shadow: var(--focus-ring); }
.housing-dwelling.is-picked { border-color: var(--color-action); background: var(--color-selected); }
.housing-dwelling:disabled { background: var(--color-disabled-bg); color: var(--color-disabled-text); border-color: var(--color-disabled-border); cursor: default; box-shadow: none; }
.housing-dwelling__icon { margin-block: -5px 1px; }
.housing-dwellings__count { margin: -7px 0 0; color: var(--color-text-secondary); font-size: 13px; text-align: end; }
.housing-dwellings__hints:empty { display: none; }
.housing-dwellings__hint { margin: 0; color: var(--color-text-secondary); font-size: 13px; line-height: 1.45; }
@media (max-width: 760px) {
  .quiz--housing { padding-inline: 16px; }
  .housing-section { padding: 16px 13px; }
  .housing-section__error { margin-inline: 0; }
  .housing-intents, .housing-budgets { grid-template-columns: 1fr; }
  .housing-choice { min-height: 118px; }
  .housing-rooms { gap: 6px; }
  .housing-room { min-height: 44px; font-size: 16px; }
  .housing-dwellings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.age-range, .budget-range, .room-range { padding: 20px 8px 8px; direction: ltr; }
.age-range__values, .budget-range__values, .room-range__values { display: flex; justify-content: space-between; margin: 0 0 16px; padding: 0 1px; }
.age-range__values output, .budget-range__values output, .room-range__values output {
  min-width: 54px; padding: 7px 12px; border-radius: 12px; text-align: center;
  background: var(--color-selected); color: var(--color-action-strong); font-size: 20px; font-weight: 800;
}
.age-range__controls, .budget-range__controls, .room-range__controls { position: relative; height: 30px; }
.age-range__controls::before, .age-range__fill, .budget-range__controls::before, .budget-range__fill, .room-range__controls::before, .room-range__fill {
  content: ''; position: absolute; top: 12px; height: 8px; border-radius: var(--r-pill);
}
.age-range__controls::before, .budget-range__controls::before, .room-range__controls::before { inset-inline: 0; background: var(--color-selected); }
.age-range__fill, .budget-range__fill, .room-range__fill { background: var(--color-progress); }
.age-range__input, .budget-range__input, .room-range__input {
  position: absolute; z-index: 1; inset: 0; width: 100%; height: 30px; margin: 0;
  appearance: none; -webkit-appearance: none; background: transparent; pointer-events: none;
}
.age-range__input::-webkit-slider-runnable-track, .budget-range__input::-webkit-slider-runnable-track, .room-range__input::-webkit-slider-runnable-track { height: 8px; background: transparent; }
.age-range__input::-moz-range-track, .budget-range__input::-moz-range-track, .room-range__input::-moz-range-track { height: 8px; background: transparent; }
.age-range__input::-webkit-slider-thumb, .budget-range__input::-webkit-slider-thumb, .room-range__input::-webkit-slider-thumb {
  width: 26px; height: 26px; margin-top: -9px; border: 5px solid var(--color-surface); border-radius: 50%;
  appearance: none; -webkit-appearance: none; background: var(--color-action); box-shadow: 0 3px 12px rgba(47, 115, 186, .32); pointer-events: auto; cursor: grab;
}
.age-range__input::-moz-range-thumb, .budget-range__input::-moz-range-thumb, .room-range__input::-moz-range-thumb {
  width: 18px; height: 18px; border: 5px solid var(--color-surface); border-radius: 50%;
  background: var(--color-action); box-shadow: 0 3px 12px rgba(47, 115, 186, .32); pointer-events: auto; cursor: grab;
}
@media (max-width: 640px) {
  .repeat-row { grid-template-columns: 1fr; }
  .repeat-row .linkish { justify-self: start; }
}
.option {
  position: relative; display: flex; align-items: center; gap: var(--quiz-space-3);
  width: 100%; min-height: 74px; padding: 17px 18px; text-align: start;
  background: var(--color-surface); border: 2px solid var(--color-border);
  border-radius: 18px; cursor: pointer; font-family: var(--body); color: var(--color-text);
  box-shadow: var(--shadow-card);
  transition: border-color .12s ease, background .12s ease, transform .12s ease, box-shadow .12s ease;
}
.option:focus-visible {
  border-color: var(--color-selected-border); background: var(--color-surface-hover); transform: translateY(-1px);
  box-shadow: var(--focus-ring), var(--shadow-card); outline: none;
}
/* ה-hover מותנה במכשיר שיש לו מצביע.
   במסך מגע ה-hover *נדבק* אחרי נגיעה (iOS Safari): האצבע עוזבת, והמצב נשאר
   על מה שנמצא באותה נקודה במסך. השאלה הבאה מרנדרת שם אופציה חדשה, והיא
   נראית בחורה לפני שנגעו בה. */
@media (hover: hover) {
  .option:hover {
    border-color: var(--color-border-hover); background: var(--color-surface-hover); transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(11, 33, 64, .09); outline: none;
  }
}
/* ריבוי-בחירה: המתג שנבחר נשאר מסומן, ומעל התקרה השאר נסגרים כדי שהגבול
   ייראה במקום להיות קליק מת. */
.option.is-picked {
  border-color: var(--color-selected-border); background: var(--color-selected);
  box-shadow: 0 0 0 1px rgba(47, 115, 186, .08), var(--shadow-selected);
}
.option:disabled { background: var(--color-disabled-bg); color: var(--color-disabled-text); border-color: var(--color-disabled-border); cursor: default; transform: none; box-shadow: none; }
.option:disabled .option__key { filter: grayscale(1); opacity: .7; }
@media (hover: hover) {
  .option:disabled:hover { border-color: var(--color-disabled-border); background: var(--color-disabled-bg); transform: none; }
}
.option__key {
  width: 52px; height: 52px; flex: 0 0 52px; border: 1px solid rgba(47, 115, 186, .12);
  border-radius: 16px; background: var(--color-surface-muted);
  display: flex; align-items: center; justify-content: center; color: var(--color-primary);
}
.option__key--semantic { width: 76px; height: 76px; flex-basis: 76px; }
.option__semantic-icon { display: block; width: 64px; height: 64px; object-fit: contain; }
.option__content { display: grid; min-width: 0; gap: 3px; flex: 1 1 auto; }
.option__check {
  display: grid; place-items: center; width: 28px; height: 28px; margin-inline-start: auto;
  flex: 0 0 28px; border: 2px solid rgba(255, 255, 255, .88); border-radius: 50%;
  background: var(--color-selected-border); color: var(--color-on-action);
  font-size: 17px; font-weight: 900; opacity: 0; transform: scale(.72);
  box-shadow: 0 3px 10px rgba(47, 115, 186, .22);
  transition: opacity .12s ease, transform .12s ease;
}
.option.is-picked .option__check,
.nearby-choice-card.is-picked .option__check { opacity: 1; transform: scale(1); }
/* ריבוי-בחירה מדורג (q08): המספר יושב במקום ה-✓. */
.option__check--rank { font-family: var(--head); font-size: 15px; }
/* "עדיפות 1: " בשם הנגיש של הכפתור; את המספר רואים בעיגול. */
.option__rank-name, .ranked-live {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
/* שורת הסדר הסטטית מתחת לכרטיסים: הכרטיסים לא זזים, הסדר נקרא כאן. */
.ranked-order { margin: 0; color: var(--color-text-secondary); font-size: 14.5px; font-weight: 600; line-height: 1.5; }
.ranked-order[hidden], .ranked-cleared[hidden] { display: none; }
/* הודעה שקטה אחרי ש"אין העדפה" ניקה בחירות, עם החזרה. */
.ranked-cleared {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0;
  padding: 10px 14px; border-radius: 12px;
  background: var(--color-info-surface); color: var(--color-text); font-size: 14.5px; line-height: 1.45;
}
.ranked-cleared__undo {
  min-height: 44px; padding: 0 6px; border: 0; background: transparent;
  color: var(--color-link); font: inherit; font-weight: 700;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.ranked-cleared__undo:focus-visible { outline: 2px solid var(--color-action); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) {
  .option__check { transition: none; }
}
/* הפיקטוגרמה יורשת את צבע הפסטיל (currentColor). כל האפשרויות באותו גוון:
   אין צבעוניות "קשת" בין תשובות — ההבחנה היא בטקסט ובאייקון. */
.ico--opt { width: 24px; height: 24px; }
.option .option__key.option__key--semantic { border-color: transparent; background: transparent; }
.option__label { font-size: 17.5px; font-weight: 700; font-family: var(--head); line-height: 1.3; }
.option__hint { font-size: 14.5px; color: var(--color-text-secondary); line-height: 1.45; }
.option--illustrated {
  min-height: 164px; padding: 18px; flex-direction: column; justify-content: center;
  text-align: center; gap: 12px;
}
.option--illustrated .option__key {
  width: 112px; height: 84px; border-radius: 22px; background: transparent; color: inherit;
}
.option--illustrated .option__illustration { display: block; width: 100%; height: 100%; object-fit: contain; }
.option--illustrated .option__check { position: absolute; inset-block-start: 12px; inset-inline-end: 12px; }
.option--illustrated.is-picked { border-color: var(--color-selected-border); background: var(--color-selected); }
/* מסך הפתיחה (v0.16): איור רחב 2:1 ממלא את ראש הכרטיס, הטקסט מתחתיו מיושר להתחלה. */
.options--dream-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.options--dream-grid .quiz__nav { grid-column: 1 / -1; }
.options--dream-grid .option--illustrated {
  min-height: 0; padding: 0; gap: 0; justify-content: flex-start; align-items: stretch;
  text-align: start; overflow: hidden;
}
.options--dream-grid .option--illustrated .option__key {
  width: 100%; height: auto; aspect-ratio: 2 / 1; flex-basis: auto; border: 0; border-radius: 0;
}
.options--dream-grid .option--illustrated .option__illustration { object-fit: cover; }
.options--dream-grid .option--illustrated .option__content { padding: 12px 16px 16px; }
.adult-ages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
/* מבוגר אחד: שדה אחד ברוחב של גיל, לא חצי עמודה ריקה לצידו. */
.adult-ages--single { grid-template-columns: minmax(0, 220px); }
.adult-ages__item { display: grid; gap: 6px; align-content: start; }
.adult-ages__field { display: grid; gap: 8px; color: var(--color-text-secondary); font-size: 15px; font-weight: 700; }
.adult-ages__input { width: 100%; font-variant-numeric: tabular-nums; }
.adult-ages__input[aria-invalid="true"] { border-color: var(--color-error); }
.field-error, .quiz__missing {
  margin: 0; color: var(--color-error); font-size: 14px; font-weight: 700; line-height: 1.45;
}
.quiz__missing { margin-top: var(--quiz-space-3); grid-column: 1 / -1; }
@media (max-width: 520px) {
  body[data-step="quiz"] main { padding-inline: 12px; }
  .quiz {
    margin-top: 2px; padding: 22px 18px calc(24px + env(safe-area-inset-bottom, 0px));
    border-radius: 22px;
  }
  #step-quiz:not(.profile-editor) .quiz--housing,
  #step-quiz:not(.profile-editor) .quiz--environment-experiment { padding-inline: 18px; }
  #step-quiz #options { margin-top: var(--quiz-space-4); }
  .quiz__prompt { min-block-size: 124px; }
  .quiz__head { margin-bottom: var(--quiz-space-2); }
  .progress { margin-bottom: var(--quiz-space-5); }
  #q-title { font-size: clamp(24px, 7.2vw, 29px); margin-bottom: var(--quiz-space-2); }
  #q-hint { font-size: 15px; }
  .options__group--ranked, .draft-question .options__group { gap: 11px; }
  .options { gap: 11px; margin-top: var(--quiz-space-4); }
  .option { min-height: 68px; padding: 14px; gap: 12px; border-radius: 16px; }
  .option__key { width: 48px; height: 48px; flex-basis: 48px; border-radius: 15px; }
  .option__key--semantic { width: 72px; height: 72px; flex-basis: 72px; }
  .option__semantic-icon { width: 60px; height: 60px; }
  .option__label { font-size: 16.5px; }
  .option__hint { font-size: 14px; }
  .option__check { width: 26px; height: 26px; flex-basis: 26px; }
  .options--family-grid { gap: 10px; }
  .option--illustrated { min-height: 144px; padding: 14px 10px; }
  .option--illustrated .option__key { width: 92px; height: 68px; }
  .option--illustrated .option__label { font-size: 15px; }
  .options--dream-grid { gap: 10px; }
  .options--dream-grid .option--illustrated .option__content { padding: 10px 12px 12px; }
  .options--dream-grid .option--illustrated .option__hint { font-size: 13px; }
  .adult-ages { grid-template-columns: 1fr; }
}

/* עריכת פרופיל ממוקדת: אותם רכיבי שאלון, כפאנל מעל הפרופיל ולא כמסע חדש. */
body.is-profile-editing { overflow: hidden; }
#step-quiz.profile-editor {
  position: fixed; z-index: 80; inset: 0; display: flex !important; justify-content: flex-start;
  padding: 0; overflow: hidden; background: rgba(11, 33, 64, .42);
}
#step-quiz.profile-editor .quiz {
  width: min(720px, calc(100% - 72px)); max-width: none; height: 100dvh; margin: 0;
  padding: 34px clamp(24px, 4vw, 48px) 42px; overflow-y: auto; overscroll-behavior: contain;
  border-width: 0 0 0 1px; border-radius: 24px 0 0 24px; box-shadow: 0 18px 56px rgba(11, 33, 64, .22);
  animation: profile-editor-enter .28s cubic-bezier(.16, 1, .3, 1) both;
}
#step-quiz.profile-editor .quiz--housing { width: min(720px, calc(100% - 72px)); }
#step-quiz.profile-editor .quiz__head { position: sticky; z-index: 3; top: -34px; padding-block: 12px; background: var(--color-surface); }
.profile-editor__error {
  margin: 18px 0 0; padding: 12px 14px; border-radius: 12px;
  background: var(--color-error-surface); color: var(--color-error); font-size: 14px; font-weight: 700; line-height: 1.5;
}
@keyframes profile-editor-enter {
  from { transform: translateX(28px); clip-path: inset(0 0 0 12% round 24px); }
  to { transform: translateX(0); clip-path: inset(0 0 0 0 round 0); }
}
@media (max-width: 720px) {
  #step-quiz.profile-editor { background: var(--color-page); }
  #step-quiz.profile-editor .quiz,
  #step-quiz.profile-editor .quiz--housing {
    width: 100%; height: 100dvh; padding: 24px 18px calc(28px + env(safe-area-inset-bottom, 0px));
    border: 0; border-radius: 0; box-shadow: none;
  }
  #step-quiz.profile-editor .quiz__head { top: -24px; }
  #step-quiz.profile-editor .quiz__nav {
    position: sticky; z-index: 2; bottom: calc(-28px - env(safe-area-inset-bottom, 0px));
    margin-inline: -18px; padding: 14px 18px calc(14px + env(safe-area-inset-bottom, 0px));
    background: var(--color-surface); box-shadow: 0 -8px 24px rgba(11, 33, 64, .07);
  }
}
@media (prefers-reduced-motion: reduce) {
  #step-quiz.profile-editor .quiz { animation: none; }
  .progress__bar { transition: none; }
}

/* ── חיפוש חזותי בין שכונות ──────────────────────────────────────────────
   התמונות הן נכסי שכונה אמיתיים ומאושרים מ-SaNes Image Ledger. שתי שכבות
   חופפות יוצרות crossfade; העדשה היא זכוכית מגדלת אמיתית: אותו צילום מוגדל
   פי --lens-zoom סביב מרכז העדשה (transform-origin נע יחד איתה), ולכן מה
   שבתוכה הוא בדיוק מה שמתחתיה, רק קרוב יותר. אין כאן שפת "סריקה" טכנית —
   התנועה איטית ואורגנית. */
body[data-step="loading"] {
  min-height: 100vh; background-color: var(--color-surface);
  background-image:
    radial-gradient(circle at 10% 10%, rgba(232, 242, 251, .9) 0%, transparent 38%),
    radial-gradient(circle at 90% 4%, rgba(245, 241, 235, .9) 0%, transparent 36%);
}
body[data-step="loading"] main { padding-top: 10px; padding-bottom: 24px; }
body[data-step="loading"] .sitefoot { display: none; }
/* הניווט נשאר במקומו כדי שהמעבר לא יקפוץ, אבל אינו מזמין לצאת באמצע
   החיפוש. ה-inert עצמו מוצב ב-showStep. */
body[data-step="loading"] .topbar { opacity: .5; transition: opacity .3s ease; }
.loading {
  --lens-r: clamp(54px, 11vw, 89px);
  --lens-zoom: 1.45;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  max-width: 780px; margin: 4px auto 0; padding: 10px 0 24px;
  text-align: center; border: 0; background: transparent; box-shadow: none;
}
/* במסך צר התוכן ישב בחצי העליון והשאיר חצי מסך ריק: ממרכזים אנכית בגובה
   שמתחת לסרגל העליון. רק כאן — גם /survey משתמש ב-.loading. */
#step-loading .loading { min-height: calc(100svh - 120px); }
.loading__media {
  position: relative; isolation: isolate; overflow: hidden;
  width: min(88vw, 620px); aspect-ratio: 8 / 5; border-radius: clamp(22px, 4vw, 34px);
  background: var(--color-info-surface); box-shadow: 0 20px 55px rgba(11, 33, 64, .16);
}
.loading__photo {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.015); transition: opacity .8s ease, transform 1.2s ease;
}
.loading__photo.is-active { opacity: 1; transform: scale(1); }
.loading__media::after {
  content: ''; position: absolute; z-index: 1; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 58%, rgba(11, 33, 64, .28) 100%);
}
.loading__lens {
  position: absolute; z-index: 3; left: 24%; top: 30%;
  width: calc(var(--lens-r) * 2); aspect-ratio: 1;
  border: 3px solid rgba(255, 255, 255, .96); border-radius: 50%;
  box-shadow: 0 14px 34px rgba(11, 33, 64, .3), inset 0 0 0 1px rgba(11, 33, 64, .14),
    inset 0 -10px 22px rgba(255, 255, 255, .18);
  transform: translate(-50%, -50%); animation: lens-drift 4.8s ease-in-out infinite alternate;
}
/* clip-path נמדד לפני ה-transform, ולכן הרדיוס מחולק ב-zoom: אחרי ההגדלה
   העיגול החתוך מתלכד בדיוק עם הטבעת. */
.loading__lens-photo {
  position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0;
  transform: scale(var(--lens-zoom)); transform-origin: 24% 30%;
  clip-path: circle(calc(var(--lens-r) / var(--lens-zoom)) at 24% 30%);
  filter: brightness(1.08) saturate(1.08) contrast(1.05);
  transition: opacity .8s ease; animation: lens-clip 4.8s ease-in-out infinite alternate;
}
.loading__lens-photo.is-active { opacity: 1; }
.loading__place {
  position: absolute; z-index: 3; inset-inline-start: clamp(14px, 3vw, 24px); bottom: clamp(14px, 3vw, 22px);
  display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 7px 13px;
  border: 1px solid rgba(255, 255, 255, .38); border-radius: var(--r-pill);
  background: rgba(11, 33, 64, .72); color: var(--color-on-action); backdrop-filter: blur(9px);
  font-family: var(--head); font-size: clamp(13px, 2.4vw, 15px); font-weight: 600;
}
.loading__place .ico { width: 16px; height: 16px; }
.loading__title {
  max-width: 23ch; margin-top: 4px; color: var(--color-primary);
  font-size: clamp(25px, 4.8vw, 36px); line-height: 1.18; letter-spacing: -.015em;
  text-wrap: balance;
}
.loading__sub {
  min-height: 1.6em; max-width: 38ch; color: var(--color-text-secondary);
  font-family: var(--head); font-size: clamp(15px, 2.8vw, 18px); font-weight: 500;
  text-wrap: balance; transition: opacity .25s ease, transform .25s ease;
}
.loading__sub.is-changing { opacity: 0; transform: translateY(4px); }
.loading__sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.loading__progress-block { width: min(78vw, 560px); margin-top: 4px; }
.loading__bar-track {
  position: relative; height: 12px; overflow: hidden; border-radius: var(--r-pill);
  background: rgba(47, 115, 186, .24); box-shadow: inset 0 1px 2px rgba(11, 33, 64, .12);
}
.loading__bar-fill {
  position: relative; display: block; width: 0; height: 100%; overflow: hidden; border-radius: inherit;
  background: var(--color-progress);
  transition: width .08s linear;
}
/* השרת עוד לא ענה אחרי הזמן המינימלי: במקום לקפוא על מספר, הפס "נושם"
   והאחוזים מתחלפים בשלוש נקודות. */
.loading__bar-fill::after {
  content: ''; position: absolute; inset: 0; opacity: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, .55) 50%, transparent 100%);
  transform: translateX(-100%);
}
.loading__progress-block.is-waiting .loading__bar-fill::after {
  opacity: 1; animation: loading-shimmer 1.3s ease-in-out infinite;
}
html[dir="rtl"] .loading__progress-block.is-waiting .loading__bar-fill::after { animation-direction: reverse; }
.loading__progress-block.is-done .loading__bar-fill { transition: width .25s ease-out; }
.loading__meta {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin-top: 9px; color: var(--color-text-secondary); font-size: 15px;
}
.loading__pct {
  min-width: 3.5ch; color: var(--color-action-strong); font-size: 17px; font-weight: 800;
  font-variant-numeric: tabular-nums; text-align: start;
}
/* "עוד רגע" נאמר רק כשזה נכון — לא ב-0%. */
.loading__ready { opacity: 0; transition: opacity .4s ease; }
.loading__progress-block.is-near .loading__ready { opacity: 1; }
.loading__error {
  display: grid; gap: 14px; justify-items: center; max-width: 440px; margin-top: 4px;
  padding: 16px 20px; border-radius: var(--r-lg); background: var(--color-surface);
  border: 1px solid rgba(184, 71, 67, .22); box-shadow: 0 10px 28px rgba(11, 33, 64, .1);
}
.loading__error.is-hidden { display: none; }
.loading__error-text { color: var(--color-primary); font-weight: 600; }
.loading__error-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.loading.has-error .loading__progress-block, .loading.has-error .loading__sub { display: none; }
.loading.has-error .loading__lens, .loading.has-error .loading__lens-photo { animation-play-state: paused; }
@keyframes lens-drift {
  0% { left: 24%; top: 30%; }
  48% { left: 72%; top: 42%; }
  100% { left: 43%; top: 72%; }
}
@keyframes lens-clip {
  0% { clip-path: circle(calc(var(--lens-r) / var(--lens-zoom)) at 24% 30%); transform-origin: 24% 30%; }
  48% { clip-path: circle(calc(var(--lens-r) / var(--lens-zoom)) at 72% 42%); transform-origin: 72% 42%; }
  100% { clip-path: circle(calc(var(--lens-r) / var(--lens-zoom)) at 43% 72%); transform-origin: 43% 72%; }
}
@keyframes loading-shimmer {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}
@media (max-width: 520px) {
  body[data-step="loading"] main { padding-inline: 12px; }
  .loading { gap: 10px; padding-top: 4px; }
  #step-loading .loading { min-height: calc(100svh - 100px); }
  .loading__media { width: 88vw; border-radius: 22px; }
  .loading__progress-block { width: 82vw; }
  .loading__meta { font-size: 14px; }
}
/* פחות תנועה: תמונה אחת, עדשה קבועה וטקסט קבוע. ההתקדמות עצמה נשארת
   פונקציונלית, אך בלי transitions, shimmer או מסלול תנועה. */
@media (prefers-reduced-motion: reduce) {
  .loading__photo, .loading__lens-photo, .loading__sub, .loading__bar-fill, .loading__ready { transition: none; }
  .loading__lens, .loading__lens-photo { animation: none; }
  .loading__progress-block.is-waiting .loading__bar-fill::after { animation: none; opacity: 0; }
}

/* ── מסך התוצאה ─────────────────────────────────────────────────────────
   פתיחה (צילום ושם) ואחריה דו"ח אחד: שורת נתונים, ואז סעיפים ממוספרים —
   למה השכונה, נסיעות למשפחה, מפה, דירות, הצעד הבא. מ-1024px תוכן עניינים
   צמוד בעמודה משלו; הסעיפים עצמם נשארים בעמודה אחת. */
#step-matches, #step-result { display: grid; gap: 22px; max-width: 1040px; margin: 0 auto; }

/* חשיפה מדורגת אחרי מסך הטעינה. is-revealed נוספת ב-app.js (revealResult)
   פריים אחד אחרי שהמסך הוצג, כדי שמצב ההתחלה יצויר לפני המעבר. */
#step-result > .rx-intro, #step-result > .rx-all-matches, #step-result > .rx-hero, #step-result > .rx-report {
  opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease;
}
#step-result > .rx-all-matches { transition-delay: .04s; }
#step-result > .rx-hero { transition-delay: .08s; }
#step-result > .rx-report { transition-delay: .2s; }
#step-result.is-revealed > .rx-intro, #step-result.is-revealed > .rx-all-matches,
#step-result.is-revealed > .rx-hero, #step-result.is-revealed > .rx-report {
  opacity: 1; transform: none;
}
@media (prefers-reduced-motion: reduce) {
  #step-result > .rx-intro, #step-result > .rx-all-matches,
  #step-result > .rx-hero, #step-result > .rx-report { transition: none; opacity: 1; transform: none; }
  .rx-toc__link { transition: none; }
}

/* פתיח — קומפקטי; מוצג רק לתוצאה בלי שכונה. */
.rx-intro { display: grid; gap: 8px; padding: 6px 4px 0; }
.rx-intro__eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--head);
  font-size: 15px; font-weight: 600; color: var(--color-primary);
}
.rx-intro__eyebrow .ico { color: var(--color-action); }
.rx-intro__title { font-size: clamp(30px, 5.4vw, 46px); line-height: 1.08; color: var(--color-primary); }
.rx-intro__lede { font-size: 16.5px; color: var(--color-text-secondary); max-width: 62ch; }

/* דוח שכונה ממוקד: סימן ההתאמות הנוספות קודם לצילום, ואז פתיחת origin/main. */
.rx-all-matches {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 13px 16px; border: 1px solid var(--color-selected-border); border-radius: var(--r);
  background: var(--color-info-surface); color: var(--color-primary); text-decoration: none;
}
.rx-all-matches > span:first-child { display: grid; gap: 2px; }
.rx-all-matches strong { font-family: var(--head); font-size: 16px; line-height: 1.35; }
.rx-all-matches small { color: var(--color-text-secondary); font-size: 13px; line-height: 1.45; }
.rx-all-matches__action { display: inline-flex; align-items: center; gap: 7px; flex: none; color: var(--color-link); font-weight: 700; }
.rx-all-matches__action .ico { width: 17px; height: 17px; }
.rx-all-matches:hover .rx-all-matches__action { text-decoration: underline; text-underline-offset: 3px; }
.rx-all-matches:focus-visible { outline: var(--focus-outline); outline-offset: 3px; box-shadow: var(--focus-ring); }

.rx-match__photo { position: relative; margin: 0; background: var(--color-border); }
.rx-match__photo img { display: block; width: 100%; height: clamp(260px, 60vw, 420px); object-fit: cover; }
.rx-hero { position: relative; margin: 0; overflow: hidden; background: var(--color-surface-muted); }
.rx-hero .image-attribution { z-index: 4; }
.rx-hero__caption {
  position: absolute; inset-inline: 0; inset-block-end: 0; display: grid; gap: 4px;
  padding: clamp(18px, 3vw, 36px); padding-block-start: 48px; color: var(--color-on-action);
  /* מעבר כהה גבוה שנותן קריאוּת גם בצילום בהיר. */
  background: linear-gradient(to top, rgba(11, 33, 64, .82), rgba(11, 33, 64, .5) 55%, transparent);
}
.rx-hero__caption #hood-name { color: inherit; font-size: clamp(30px, 6vw, 56px); line-height: 1.02; }
.rx-hero__caption .result__city { color: inherit; margin: 3px 0 0; }
/* תגיות השכונה (D-012): עד שלוש, מה שמבדיל אותה מהשכונות האחרות בתוצאה. על הצילום שורה אחת עם נקודות;
   בכרטיס תוויות קטנות עם קו מתאר, שקטות מתג "ההמלצה המובילה". */
.hood-tags { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.hood-tags--hero { gap: 2px 0; margin-block-start: 10px; color: var(--color-on-dark); font-size: clamp(15px, 1.6vw, 17px); font-weight: 600; line-height: 1.45; }
.hood-tags--hero .hood-tags__tag:not(:last-child)::after { content: "·"; margin-inline: 10px; color: var(--color-on-dark-secondary); }
.rx-hero:has(#city-photo.is-hidden) .hood-tags--hero { color: var(--color-text); }
.rx-hero:has(#city-photo.is-hidden) .hood-tags--hero .hood-tags__tag::after { color: var(--color-text-secondary); }
/* D-021: שורת טקסט עם אייקון, בלי מסגרת; התגיות אינן כפתורים ולא נראות כמו כפתורים. */
.hood-tags--card { gap: 6px 16px; margin-block-start: 8px; }
.hood-tags--card .hood-tags__tag {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--color-primary); font-size: 14px; font-weight: 600; line-height: 1.35;
}
.hood-tags--card .hood-tags__icon { width: 17px; height: 17px; flex: none; color: var(--color-action-strong); }
.rx-hero__kicker { margin: 0; font-family: var(--head); font-size: 14px; font-weight: 700; line-height: 1.4; letter-spacing: .03em; color: var(--color-on-dark-secondary); }
.rx-hero:has(#city-photo.is-hidden) .rx-hero__caption { position: static; color: var(--color-text); background: none; }
.rx-hero:has(#city-photo.is-hidden) .rx-hero__kicker { color: var(--color-primary); }
#hood-name { font-size: clamp(30px, 5.6vw, 42px); line-height: 1.08; }
.result__city {
  display: flex; align-items: center; gap: 8px; margin-top: 4px; color: var(--color-action);
  font-family: var(--head); font-size: clamp(22px, 3vw, 28px); font-weight: 700; line-height: 1.25;
}
.result__city .ico { width: 22px; height: 22px; flex: none; }

/* פתיחת התוצאה: השכונה הפעילה מובילה בשם, צילום ותקציר. שאר הדירוג נשאר
   גלוי לצידה, אך אינו מתחרה בה כשלושה כרטיסים שווי־מעמד. */
.rx-match-set {
  display: grid; gap: clamp(14px, 2.2vw, 22px); padding: clamp(18px, 3vw, 30px);
  background: var(--color-surface); border-radius: var(--r-lg); box-shadow: var(--shadow-card);
}
.rx-match-set__head { display: grid; gap: 5px; max-width: 72ch; }
.rx-match-set__title {
  color: var(--color-primary); font-size: clamp(34px, 5vw, 52px); line-height: 1.04;
  letter-spacing: -.02em; text-wrap: balance;
}
.rx-match-set__lede { color: var(--color-action-strong); font-family: var(--head); font-size: 16px; font-weight: 600; line-height: 1.45; }
.rx-guide-opening__panel {
  display: grid; gap: 13px; min-width: 0; padding: clamp(18px, 2.6vw, 26px);
  border: 1px solid color-mix(in srgb, var(--color-selected-border) 28%, var(--color-border));
  border-radius: var(--r); background: var(--color-surface);
}
.rx-guide-opening__panel[hidden] { display: none; }
.rx-guide-opening__title {
  max-width: 34ch; margin: 0; color: var(--color-primary); font-family: var(--head);
  font-size: clamp(20px, 2.2vw, 25px); font-weight: 700; line-height: 1.3; text-wrap: balance;
}
.rx-guide-opening__summary {
  max-width: 68ch; margin: 0; color: var(--color-primary); font-size: 17px; line-height: 1.65;
  overflow-wrap: anywhere;
}
.rx-guide-opening__reasons {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none;
}
.rx-guide-opening__reasons li {
  min-width: 0; padding: 7px 13px; border-radius: var(--r-pill); background: var(--color-surface);
  color: var(--color-action-strong); font-size: 14px; font-weight: 700; line-height: 1.4;
  overflow-wrap: anywhere;
}
.rx-guide-opening__scope { display: grid; gap: 4px; max-width: 68ch; color: var(--color-text-secondary); }
.rx-guide-opening__scope p { margin: 0; font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.rx-guide-opening__next {
  display: flex; flex-wrap: wrap; gap: 4px 7px; max-width: 68ch; margin: 0;
  color: var(--color-text-secondary); font-size: 14px; line-height: 1.5;
}
.rx-guide-opening__next-label { color: var(--color-primary); font-weight: 700; }
.rx-guide-opening__followup { display: grid; justify-items: start; gap: 8px; }
.rx-guide-opening__followup-status {
  max-width: 68ch; margin: 0; color: var(--color-text-secondary); font-size: 14px; line-height: 1.5;
}
/* Decision Session: ברירת המחדל היא פעולה אחת קומפקטית; השאלה נפתחת רק לפי בקשה. */
.rx-decide {
  display: grid; justify-items: start; gap: 12px;
}
.rx-decide__toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 11px 20px;
  border: 1px solid var(--color-border); border-radius: var(--r-pill); background: var(--color-surface);
  color: var(--color-action-strong); font: inherit; font-family: var(--head); font-size: 16px; font-weight: 700; cursor: pointer;
  box-shadow: var(--shadow-card); transition: border-color .16s ease, background-color .16s ease, transform .16s ease;
}
.rx-decide__toggle .ico { width: 19px; height: 19px; flex: none; }
.rx-decide__chevron { margin-inline-start: 2px; transition: transform .2s cubic-bezier(.16, 1, .3, 1); }
.rx-decide.is-open .rx-decide__chevron { transform: rotate(180deg); }
.rx-decide__toggle:focus-visible { outline: var(--focus-outline); outline-offset: 3px; box-shadow: var(--focus-ring); }
@media (hover: hover) {
  .rx-decide__toggle:hover { border-color: var(--color-border-hover); background: var(--color-surface-hover); transform: translateY(-1px); }
}
.rx-decide__body {
  display: grid; gap: 14px; width: 100%; padding: clamp(20px, 2.6vw, 30px);
  border: 1px solid color-mix(in srgb, var(--color-selected-border) 22%, transparent);
  border-radius: var(--r-lg); background: var(--color-info-surface); color: var(--color-primary);
}
.rx-decide__body[hidden] { display: none; }
.rx-decide__eyebrow {
  display: flex; align-items: center; gap: 8px; margin: 0;
  color: var(--color-action-strong); font-family: var(--head); font-size: 14px; font-weight: 750; letter-spacing: .01em;
}
.rx-decide__eyebrow .ico { width: 18px; height: 18px; flex: none; }
.rx-decide__updated {
  display: flex; align-items: center; gap: 8px; margin: 0; color: var(--color-primary); font-family: var(--head);
  font-size: clamp(19px, 2vw, 22px); font-weight: 700; line-height: 1.3;
}
.rx-decide__updated .ico { width: 20px; height: 20px; flex: none; color: var(--color-action); }
.rx-decide__updated:focus { outline: none; }
.rx-decide__updated:focus-visible { outline: var(--focus-outline); outline-offset: 4px; }
.rx-decide__context { max-width: 64ch; margin: 0; color: var(--color-text-secondary); font-size: 15.5px; line-height: 1.6; }
.rx-decide__question { display: grid; gap: 16px; min-width: 0; margin: 0; padding: 0; border: 0; }
.rx-decide__question legend { padding: 0; }
.rx-decide__question-title {
  max-width: 34ch; margin: 0; color: var(--color-primary); font-family: var(--head);
  font-size: clamp(20px, 2.2vw, 25px); font-weight: 700; line-height: 1.3; text-wrap: balance;
}
.rx-decide__question-title:focus { outline: none; }
.rx-decide__question-title:focus-visible { outline: var(--focus-outline); outline-offset: 4px; }
.rx-decide__answers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
/* האפשרויות של השאלון, בגובה נמוך יותר: שתי תשובות שוות, אף אחת לא "הנכונה". */
.rx-decide__answer.option { min-height: 60px; padding: 14px 18px; justify-content: center; text-align: center; }
.rx-decide__answer .option__label { font-size: 16.5px; }
.rx-decide__answer[aria-busy="true"] { cursor: wait; opacity: .78; }
.rx-decide__answer:disabled:not([aria-busy="true"]):not(.is-picked) { opacity: .6; }
.rx-decide__error { margin: 0; color: var(--color-error); font-weight: 650; line-height: 1.45; }
.rx-decide__retry, .rx-decide__change {
  justify-self: start; padding: 2px 0; border: 0; background: none; color: var(--color-link);
  font: inherit; font-weight: 750; text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.rx-decide__retry:focus-visible, .rx-decide__change:focus-visible { outline: var(--focus-outline); outline-offset: 3px; box-shadow: var(--focus-ring); }
.rx-decide__record { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px; margin: 0; color: var(--color-text-secondary); font-size: 15px; }
.rx-decide__record strong { color: var(--color-primary); font-weight: 750; }
.rx-decide__dot { color: var(--color-text-secondary); }
.rx-decide__summary, .rx-decide__entrant { max-width: 68ch; margin: 0; color: var(--color-primary); font-size: 16.5px; line-height: 1.6; }
.rx-decide__entrant { color: var(--color-text-secondary); font-size: 15.5px; }
.rx-decide__evidence { border-block-start: 1px solid color-mix(in srgb, var(--color-selected-border) 22%, transparent); padding-block-start: 12px; }
.rx-decide__evidence summary {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer; list-style: none;
  color: var(--color-link); font-size: 14.5px; font-weight: 750;
}
.rx-decide__evidence summary::-webkit-details-marker { display: none; }
.rx-decide__evidence summary:focus-visible { outline: var(--focus-outline); outline-offset: 3px; border-radius: 6px; }
.rx-decide__info { font-size: 15px; line-height: 1; }
.rx-decide__why { display: grid; gap: 8px; margin-block: 12px 8px; }
.rx-decide__why p, .rx-decide__evidence-note { max-width: 68ch; margin: 0; color: var(--color-primary); font-size: 15px; line-height: 1.6; }
.rx-decide__evidence-note { color: var(--color-text-secondary); margin-block-start: 8px; }
.rx-decide__evidence-list { display: grid; gap: 4px; margin: 10px 0 0; padding-inline-start: 18px; color: var(--color-text-secondary); font-size: 14.5px; line-height: 1.5; }
/* תיקו בראש: שתי השכונות מסומנות יחד, בלי מקום ראשון ושני מדומים. */
.rx-match-card.is-tied { box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-selected-border) 55%, transparent), var(--shadow-card); }
.rx-match-card.is-tied .rx-match-card__rank { color: var(--color-action-strong); }
.rx-match-card__entrant {
  display: inline-flex; align-items: center; padding: 6px 12px; border-radius: var(--r-pill);
  background: var(--color-surface); color: var(--color-action-strong); font-size: 13px; font-weight: 750;
}
@media (max-width: 640px) {
  .rx-guide-opening__panel { padding: 18px 16px; }
  .rx-guide-opening__followup, .rx-guide-opening__followup .btn { width: 100%; }
  .rx-decide { justify-items: stretch; }
  .rx-decide__toggle { width: 100%; }
  .rx-decide__body { padding: 18px 16px; border-radius: var(--r); }
  .rx-decide__answers { grid-template-columns: 1fr; }
  .rx-decide__answer.option { min-height: 56px; }
  .rx-decide__context { font-size: 15px; }
}
.rx-match-set.is-refined .rx-match-card__score { animation: rx-score-settle .55s cubic-bezier(.16, 1, .3, 1); }
@keyframes rx-score-settle { from { transform: translateY(-4px) scale(.98); opacity: .72; } }

/* ── המלווה: הדמות, חלון הפתיחה ועמוד /assistant (public/assistant.js) ──────── */
/* ה-launcher נשאר בפינה השמאלית גם ב-RTL (העיצוב המאושר), מעל safe-area. במסך
   "השכונות שלי" אין סרגל תחתון קבוע, ולכן אין מה שיוסתר מתחתיו. */
.assistant-launcher {
  position: fixed; z-index: 60;
  left: max(16px, env(safe-area-inset-left, 0px));
  bottom: max(16px, calc(12px + env(safe-area-inset-bottom, 0px)));
  display: grid; place-items: center; width: 64px; height: 64px; padding: 0; overflow: hidden;
  border: 2px solid var(--color-surface); border-radius: 50%; background: var(--color-assistant-highlight);
  box-shadow: var(--shadow-lift); cursor: pointer;
  animation: assistant-launcher-in .32s cubic-bezier(.16, 1, .3, 1) both;
}
.assistant-launcher.is-hidden { display: none; }
.assistant-launcher:hover { transform: translateY(-2px); }
.assistant-launcher:focus-visible { outline: var(--focus-outline); outline-offset: 3px; }
.assistant-launcher img { width: 100%; height: 100%; object-fit: contain; }
@keyframes assistant-launcher-in { from { opacity: 0; transform: translateY(8px) scale(.92); } }
@media (min-width: 900px) {
  .assistant-launcher { left: 28px; bottom: 28px; width: 72px; height: 72px; }
}

/* השיחה החופשית (public/parts/assistant-chat.js): מסך מלא כמו שיחה בווטסאפ (הבעלים, 2026-11-03). כותרת עם X למעלה,
   השדה צמוד למטה, וכל השאר להיסטוריה. בטלפון הגובה והמיקום באים מ-visualViewport (fitChatToViewport), כדי שהשדה
   יישב מעל המקלדת ולא מתחתיה. בדסקטופ אותו מסך, והתוכן בעמודה ממורכזת. */
.modal.assistant-chat {
  position: fixed; inset: var(--assistant-chat-top, 0) 0 auto; margin: 0;
  width: 100%; max-width: none; height: var(--assistant-chat-height, 100dvh); max-height: none;
  border-radius: 0; box-shadow: none; background: var(--color-page);
}
.assistant-chat[open] { animation: assistant-chat-in .22s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes assistant-chat-in { from { opacity: 0; transform: translateY(24px); } }
html:has(.assistant-chat[open]) { overflow: hidden; }
.assistant-chat__body { display: flex; flex-direction: column; height: 100%; }
.assistant-chat__head {
  display: flex; align-items: center; gap: 12px; padding: 10px 16px;
  padding-block-start: max(10px, env(safe-area-inset-top));
  background: var(--color-surface); border-bottom: 1px solid var(--color-divider);
}
.assistant-chat__avatar img {
  display: block; width: 44px; height: 44px; border-radius: 50%; object-fit: contain;
  background: var(--color-assistant-highlight);
}
.assistant-chat__head h2 { flex: 1; margin: 0; font-size: 20px; line-height: 1.3; }
.assistant-chat__log {
  flex: 1; min-height: 0; margin: 0; padding-block: 16px; list-style: none; overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; gap: 10px;
}
/* בדסקטופ התוכן בעמודה ממורכזת של 760px, כמו בווטסאפ ברשת: הריפוד גדל, לא הרוחב, כך שהגלילה והקווים ברוחב מלא. */
.assistant-chat__log, .assistant-chat__suggest, .assistant-chat__actions, .assistant-chat__gate,
.assistant-chat__remaining, .assistant-chat__form { padding-inline: max(16px, calc((100% - 760px) / 2 + 16px)); }
/* בגובה קטן (מקלדת בטלפון שוכב) השאלות המוצעות והפעולות מתכווצות וגוללות, כדי שהשדה לא ייחתך. */
.assistant-chat__suggest, .assistant-chat__actions { flex-shrink: 1; min-height: 0; overflow-y: auto; }
.assistant-chat__head, .assistant-chat__gate, .assistant-chat__remaining, .assistant-chat__form { flex-shrink: 0; }
.assistant-chat__msg--assistant { border: 1px solid var(--color-divider); }
.assistant-chat__msg { max-width: 88%; padding: 10px 14px; border-radius: 16px; line-height: 1.55; overflow-wrap: anywhere; }
.assistant-chat__msg p { margin: 0; white-space: pre-wrap; }
.assistant-chat__msg--assistant { align-self: flex-start; background: var(--color-surface); color: var(--color-text); border-start-start-radius: 4px; }
.assistant-chat__msg--user { align-self: flex-end; background: var(--color-action); color: var(--color-on-action); border-start-end-radius: 4px; }
.assistant-chat__msg--typing { color: var(--color-text-secondary); font-style: italic; }
/* שאלות מוצעות (chips) מתחת לברכה, רק כשהשיחה עוד ריקה. */
.assistant-chat__suggest { display: flex; flex-wrap: wrap; gap: 8px; padding-block: 0 8px; }
.assistant-chat__chip { border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-text); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: .92rem; cursor: pointer; }
.assistant-chat__chip:hover, .assistant-chat__chip:focus-visible { border-color: var(--color-primary); color: var(--color-primary); }
/* כלי שרץ ברקע ("קורא את התוצאה…"): שורה קטנה ושקטה בתוך בועת התשובה. */
.assistant-chat__tool { display: block; margin-top: 4px; color: var(--color-text-secondary); font-size: .85rem; }
.assistant-chat__links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.assistant-chat__link { min-height: 44px; background: var(--color-surface); }
.assistant-chat__actions { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.assistant-chat__actions:not(:has(> :not(.is-hidden))) { display: none; }
.assistant-chat__gate {
  display: grid; gap: 12px; justify-items: start; padding-block: 12px 16px;
  border-top: 1px solid var(--color-divider);
}
.assistant-chat__gate p { margin: 0; }
.assistant-chat__gate .btn { text-decoration: none; }
.assistant-chat__remaining { margin: 0; padding-block: 0 12px; }
.assistant-chat__form {
  display: flex; align-items: flex-end; gap: 10px; padding-block: 8px;
  padding-block-end: max(8px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--color-divider);
}
.assistant-chat__input {
  flex: 1; min-height: 48px; max-height: 140px; padding: 12px 16px; resize: none;
  border: 1px solid var(--color-border-strong); border-radius: 24px;
  background: var(--color-surface); color: var(--color-text); font: inherit; line-height: 1.45;
}
.assistant-chat__input:focus-visible { outline: var(--focus-outline); outline-offset: 1px; }
.assistant-chat__send { min-height: 48px; border-radius: var(--r-pill); }
@media (prefers-reduced-motion: reduce) { .assistant-chat[open] { animation: none; } }

.assistant-welcome { width: min(calc(100% - 32px), 440px); border-radius: var(--r-lg); }
.assistant-welcome[open] { animation: assistant-welcome-in .26s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes assistant-welcome-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
html:has(.assistant-welcome[open]) { overflow: hidden; }
.assistant-welcome__body {
  position: relative; display: grid; justify-items: center; gap: 10px;
  max-height: calc(100dvh - 32px); overflow: auto;
  padding: 30px clamp(20px, 5vw, 32px) 28px; text-align: center;
}
.assistant-welcome__close { position: absolute; inset-block-start: 14px; inset-inline-end: 14px; }
.assistant-welcome__close:focus-visible { outline: var(--focus-outline); outline-offset: 3px; }
.assistant-welcome__figure img { display: block; width: auto; height: clamp(140px, 30dvh, 190px); }
.assistant-welcome h2 {
  margin: 4px 0 0; color: var(--color-primary); font-family: var(--head);
  font-size: clamp(24px, 5vw, 28px); line-height: 1.2; text-wrap: balance;
}
.assistant-welcome p { margin: 0; max-width: 34ch; color: var(--color-text-secondary); font-size: 16px; line-height: 1.55; }
.assistant-welcome__cta { width: min(100%, 300px); min-height: 52px; margin-top: 10px; }

.assistant-page__inner {
  display: grid; gap: clamp(16px, 2.4vw, 22px); width: min(100%, 760px); margin: 0 auto;
  padding: clamp(18px, 3vw, 32px) 16px calc(112px + env(safe-area-inset-bottom, 0px));
}
.assistant-page__back { justify-self: start; min-height: 44px; display: inline-flex; align-items: center; }
.assistant-page__head {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: clamp(14px, 3vw, 26px);
  padding: clamp(18px, 3vw, 28px); border-radius: var(--r-lg);
  background: var(--color-info-surface); color: var(--color-primary);
}
.assistant-page__figure img { display: block; width: auto; height: clamp(120px, 22vw, 180px); }
.assistant-page__intro { display: grid; gap: 6px; }
.assistant-page__intro h1 {
  margin: 0; font-family: var(--head); font-size: clamp(26px, 4.4vw, 38px); line-height: 1.12; text-wrap: balance;
}
.assistant-page__intro h1:focus { outline: none; }
.assistant-page__intro h1:focus-visible { outline: var(--focus-outline); outline-offset: 6px; border-radius: var(--r-sm); }
.assistant-page__intro p { margin: 0; color: var(--color-text-secondary); font-size: 16.5px; line-height: 1.55; }
.assistant-page__options { display: flex; flex-wrap: wrap; gap: 10px; }
.assistant-page__options .btn, .assistant-page__note .btn { min-height: 48px; }
.assistant-page__note {
  display: grid; justify-items: start; gap: 8px; padding: clamp(18px, 2.6vw, 26px);
  border: 1px solid var(--color-border); border-radius: var(--r); background: var(--color-surface);
}
.assistant-page__note h2 { margin: 0; color: var(--color-primary); font-family: var(--head); font-size: clamp(19px, 2.2vw, 23px); }
.assistant-page__note h2:focus { outline: none; }
.assistant-page__note h2:focus-visible { outline: var(--focus-outline); outline-offset: 4px; }
.assistant-page__note p { margin: 0; max-width: 62ch; color: var(--color-text-secondary); line-height: 1.6; }
/* לשפר התאמה: איך אפשר לעזור? → נושאים → שאלת הסביבה. טוקנים סמנטיים בלבד. */
.assistant-improve { display: grid; gap: 14px; }
.assistant-improve.is-hidden, .assistant-improve[hidden] { display: none; }
.assistant-improve__panel {
  display: grid; gap: 14px; padding: clamp(18px, 2.6vw, 26px);
  border: 1px solid var(--color-border); border-radius: var(--r); background: var(--color-surface);
}
.assistant-improve__panel[hidden] { display: none; }
.assistant-improve__panel h2 {
  margin: 0; color: var(--color-primary); font-family: var(--head); font-size: clamp(20px, 2.4vw, 25px); line-height: 1.25;
  text-wrap: balance;
}
.assistant-improve__panel h2:focus { outline: none; }
.assistant-improve__panel h2:focus-visible { outline: var(--focus-outline); outline-offset: 4px; border-radius: var(--r-sm); }
.assistant-improve__hint { margin: 0; color: var(--color-text-secondary); font-size: 16px; line-height: 1.55; }
.assistant-improve__list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.assistant-improve__choice {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 56px;
  padding: 12px 18px; text-align: start; font: inherit; font-weight: 600; color: var(--color-text);
  background: var(--color-surface); border: 2px solid var(--color-border); border-radius: 16px; cursor: pointer;
  transition: border-color .12s ease, background .12s ease;
}
.assistant-improve__choice-copy { display: grid; grid-template-columns: minmax(0, 1fr); gap: 5px; min-width: 0; flex: 1; }
.assistant-improve__choice-title { display: block; font-family: var(--head); font-size: 16px; font-weight: 700; line-height: 1.35; }
.assistant-improve__description { display: block; color: var(--color-text-secondary); font-size: 15px; font-weight: 400; line-height: 1.5; }
.assistant-improve__choice[hidden] { display: none; }
.assistant-improve__choice:focus-visible { outline: var(--focus-outline); outline-offset: 2px; border-color: var(--color-selected-border); }
@media (hover: hover) {
  .assistant-improve__choice:not(.is-soon):hover { border-color: var(--color-border-hover); background: var(--color-surface-hover); }
}
.assistant-improve__choice.is-soon {
  background: var(--color-disabled-bg); color: var(--color-disabled-text); border-color: var(--color-disabled-border); cursor: default;
}
.assistant-improve__soon {
  padding: 2px 10px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  background: var(--color-surface); color: var(--color-text-secondary); border: 1px solid var(--color-border);
}
.assistant-improve__done {
  padding: 2px 10px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  background: var(--color-success-surface); color: var(--color-success); border: 1px solid var(--color-selected-border);
}
/* נושאי טיוטה ב"לשפר התאמה" (public/improve-drafts.js): לוקאלית וב-preview בלבד. */
.assistant-improve__draft {
  padding: 2px 10px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  background: var(--color-accent-surface); color: var(--color-accent-text); border: 1px solid var(--color-border);
}
.assistant-improve__saved { margin: 0; padding: 10px 14px; border-radius: var(--r-sm); background: var(--color-info-surface); color: var(--color-text); }
.assistant-improve__saved:empty { padding: 0; background: none; }
.draft-topic { grid-column: 1 / -1; display: grid; gap: 26px; }
.draft-question { display: grid; gap: 10px; min-width: 0; }
.draft-question__title { margin: 0; font-size: 18px; line-height: 1.3; }
.draft-question__hint { margin: 0; color: var(--color-text-secondary); font-size: 15px; line-height: 1.5; }
.draft-question .options__group { grid-template-columns: minmax(0, 1fr); }
.assistant-improve__subtitle { margin: 10px 0 0; font-size: 16px; color: var(--color-text-secondary); }
.assistant-improve__cards { margin-top: 0; }
.assistant-improve__counter { margin: 0; color: var(--color-text-secondary); font-size: 14.5px; }
.assistant-improve__error {
  display: grid; justify-items: start; gap: 10px; padding: 14px 16px; border-radius: var(--r-sm);
  background: var(--color-warning-surface); color: var(--color-primary); border: 1px solid var(--color-border);
}
.assistant-improve__error.is-hidden { display: none; }
.assistant-improve__error p { margin: 0; line-height: 1.55; }
.assistant-improve__actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.assistant-improve .btn { min-height: 48px; }
.assistant-improve .btn:disabled { background: var(--color-disabled-bg); color: var(--color-disabled-text); box-shadow: none; transform: none; cursor: default; }
@media (max-width: 640px) {
  .assistant-improve__actions { flex-direction: column-reverse; }
  .assistant-improve .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .assistant-improve__choice { transition: none; }
}
@media (max-width: 640px) {
  .assistant-page__head { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .assistant-page__options .btn, .assistant-page__note .btn { width: 100%; }
}
/* העוזר כשכבה מעל התוצאות: כרטיס במרכז בדסקטופ, גיליון תחתון במובייל. */
.assistant-overlay { width: min(calc(100% - 32px), 560px); border-radius: var(--r-lg); }
.assistant-overlay[open] { animation: assistant-welcome-in .26s cubic-bezier(.16, 1, .3, 1) both; }
html:has(.assistant-overlay[open]) { overflow: hidden; }
.assistant-overlay__body {
  position: relative; display: grid; gap: 12px; max-height: calc(100dvh - 32px); overflow: auto;
  padding: 24px clamp(16px, 4vw, 28px) calc(24px + env(safe-area-inset-bottom, 0px));
}
.assistant-overlay__close { position: absolute; inset-block-start: 12px; inset-inline-end: 12px; z-index: 1; width: 36px; height: 36px; }
.assistant-overlay__close .ico { width: 18px; height: 18px; }
.assistant-overlay__close:focus-visible { outline: var(--focus-outline); outline-offset: 3px; }
.assistant-overlay__figure { justify-self: center; }
.assistant-overlay__figure img { display: block; width: auto; height: clamp(90px, 16dvh, 130px); }
.assistant-overlay .assistant-improve__panel { border: 0; padding: 0; }
/* מסך הפתיחה של השכבה ("איך אפשר לעזור?"): שיחה קומפקטית. דמות קטנה ליד הכותרת במקום הדמות הגדולה,
   כותרת שאינה נראית כפתור (בלי מסגרת פוקוס: הפוקוס עליה רק לקורא מסך), ובחירות נמוכות עם חץ. */
@media (min-width: 641px) {
  .assistant-overlay:has(#assistant-improve:not([hidden]) > #assistant-improve-help:not([hidden])) { width: min(calc(100% - 32px), 640px); }
}
.assistant-overlay__body:has(#assistant-improve:not([hidden]) > :is(#assistant-improve-help, #assistant-improve-undecided, #assistant-improve-next-step):not([hidden])) > .assistant-overlay__figure { display: none; }
.assistant-overlay .assistant-improve__panel h2:focus-visible { outline: none; }
.assistant-improve__intro { display: flex; align-items: flex-start; gap: 12px; padding-inline-end: 44px; }
.assistant-improve__avatar { flex-shrink: 0; }
.assistant-improve__avatar img { display: block; width: 48px; height: 48px; object-fit: contain; }
.assistant-improve__intro-text { display: grid; gap: 4px; min-width: 0; text-align: start; }
.assistant-improve__lead { margin: 0; color: var(--color-text-secondary); font-size: 15px; line-height: 1.5; }
.assistant-improve__panel--results-ready { gap: 18px; }
.assistant-improve__intro--results-ready { align-items: center; }
.assistant-improve__results-ready-copy { margin: 0; color: var(--color-text-secondary); font-size: 16px; line-height: 1.6; }
.assistant-improve__actions--results-ready { justify-content: flex-start; }
.assistant-improve__actions--results-ready .btn--go { order: -1; }
.assistant-overlay__body:has(#assistant-improve-results-ready:not([hidden])) > .assistant-overlay__figure { display: none; }
:is(#assistant-improve-help, #assistant-improve-undecided, #assistant-improve-next-step) { gap: 16px; }
:is(#assistant-improve-help, #assistant-improve-undecided, #assistant-improve-next-step) .assistant-improve__list { gap: var(--quiz-space-3); }
:is(#assistant-improve-help, #assistant-improve-undecided, #assistant-improve-next-step) .assistant-improve__choice {
  min-height: 46px; padding: 10px 14px; border-width: 2px; border-radius: 18px;
  background: var(--color-surface); box-shadow: var(--shadow-card);
}
:is(#assistant-improve-help, #assistant-improve-undecided, #assistant-improve-next-step) .assistant-improve__choice:disabled {
  background: var(--color-disabled-bg); color: var(--color-disabled-text); border-color: var(--color-disabled-border); box-shadow: none; cursor: default;
}
#assistant-whatsapp { text-decoration: none; }
@media (hover: hover) {
  :is(#assistant-improve-help, #assistant-improve-undecided, #assistant-improve-next-step) .assistant-improve__choice:not(:disabled):hover { background: var(--color-surface-hover); border-color: var(--color-border-hover); }
}
.assistant-improve__go { width: 18px; height: 18px; transform: rotate(90deg); color: var(--color-action); }
@media (max-width: 640px) {
  .assistant-overlay {
    width: 100%; max-width: 100%; margin: auto 0 0; border-end-start-radius: 0; border-end-end-radius: 0;
  }
  .assistant-overlay__body { max-height: 88dvh; padding-block-start: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .assistant-overlay[open] { animation: none; }
}
@media (prefers-reduced-motion: reduce) {
  .assistant-launcher, .assistant-welcome[open] { animation: none; }
  .assistant-launcher:hover { transform: none; }
}
/* "לשפר התאמה" כהמשך שיחה (הבעלים, 2026-10-19): המלווה ליד הכותרת, נושאים פתוחים ככרטיסים פסטליים,
   ונושאים שנענו באזור מתקפל. טוקנים סמנטיים בלבד; שני גוונים של המותג, בלי צבעוניות קשת. */
.assistant-overlay:has(#assistant-improve-topics:not([hidden])) { width: min(calc(100% - 32px), 860px); }
.assistant-overlay__body:has(#assistant-improve-topics:not([hidden])) > .assistant-overlay__figure { display: none; }
#assistant-improve-topics { gap: 20px; animation: improve-rise .32s cubic-bezier(.16, 1, .3, 1) both; }
.assistant-improve__intro--topics {
  position: relative; isolation: isolate; display: flex; flex-direction: row-reverse; align-items: start;
  min-height: 250px; gap: 0; padding: 42px 0 30px;
}
.assistant-improve__intro--topics::before {
  content: ""; position: absolute; z-index: -1; inset: -24px -28px 0;
  background: url('/assets/assistant/topics/neighborhood.webp') center bottom / cover no-repeat;
  mask-image: linear-gradient(to bottom, transparent, black 22%, black 85%, transparent);
}
.assistant-improve__companion { flex: 0 0 31%; align-self: end; margin-block-end: -24px; }
.assistant-improve__companion img { display: block; width: 100%; height: auto; }
.assistant-improve__intro--topics .assistant-improve__intro-text { flex: 1; gap: 16px; }
.assistant-improve__intro--topics .assistant-improve__lead { font-size: clamp(17px, 2vw, 21px); line-height: 1.55; }
#assistant-improve-topics h2 { font-size: clamp(25px, 3vw, 34px); line-height: 1.25; text-wrap: balance; }
.assistant-improve__open, .assistant-improve__known { display: grid; gap: 12px; }
.assistant-improve__open { gap: 16px; }
.assistant-improve__known[hidden], .assistant-improve__empty[hidden], .assistant-improve__soon-line[hidden] { display: none; }
.assistant-improve__section-title { margin: 0; color: var(--color-primary); font-family: var(--head); font-size: clamp(19px, 2.4vw, 23px); line-height: 1.35; }
.assistant-improve__topic-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; }
.assistant-improve__topic-card { --topic-surface: var(--color-info-surface); min-width: 0; }
.assistant-improve__topic-card--warm { --topic-surface: var(--color-accent-surface); }
.assistant-improve__topic-go {
  position: relative; isolation: isolate; display: flex; align-items: center; gap: 18px;
  width: 100%; min-height: 144px; padding: 22px 26px; overflow: hidden;
  border: 0; border-radius: 30px; background: var(--topic-surface); color: var(--color-primary);
  font: inherit; text-align: start; cursor: pointer;
}
.assistant-improve__topic-image {
  position: absolute; z-index: -1; inset-block: 0; inset-inline-end: 0; width: 47%; height: 100%; object-fit: cover;
  mask-image: linear-gradient(to right, black 50%, transparent);
}
[dir="ltr"] .assistant-improve__topic-image { mask-image: linear-gradient(to left, black 50%, transparent); }
.assistant-improve__topic-icon {
  display: inline-grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px;
  border-radius: 50%; background: var(--color-surface); color: var(--color-action);
}
.assistant-improve__topic-icon .ico { width: 22px; height: 22px; }
.assistant-improve__topic-go > .assistant-improve__topic-icon { width: 70px; height: 70px; }
.assistant-improve__topic-go > .assistant-improve__topic-icon .ico { width: 32px; height: 32px; }
.assistant-improve__topic-copy { display: grid; gap: 8px; width: 43%; min-width: 0; }
.assistant-improve__topic-name { margin: 0; color: var(--color-primary); font-family: var(--head); font-size: 24px; font-weight: 700; line-height: 1.3; }
.assistant-improve__topic-lead { margin: 0; color: var(--color-text-secondary); font-size: 19px; line-height: 1.5; }
.assistant-improve__topic-arrow {
  display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; margin-inline-start: auto;
  border-radius: 50%; background: var(--color-surface); color: var(--color-action-strong);
}
.assistant-improve__topic-arrow .ico { width: 20px; height: 20px; transform: rotate(90deg); }
[dir="ltr"] .assistant-improve__topic-arrow .ico { transform: rotate(-90deg); }
.assistant-improve__topic-go:focus-visible { outline: var(--focus-outline); outline-offset: 4px; }
@media (hover: hover) {
  .assistant-improve__topic-go:hover { background: color-mix(in srgb, var(--topic-surface), var(--color-action) 8%); }
  .assistant-improve__topic-go:hover .assistant-improve__topic-arrow { background: var(--color-action-strong); color: var(--color-on-action); }
}
.assistant-improve__topic-go:active { background: color-mix(in srgb, var(--topic-surface), var(--color-action) 12%); }
.assistant-improve__home .ico { width: 18px; height: 18px; }
.assistant-improve__empty { margin: 0; padding: 14px 16px; border-radius: var(--r-md); background: var(--color-info-surface); color: var(--color-text); }
.assistant-improve__soon-line { margin: 0; color: var(--color-text-secondary); font-size: 14px; }
.assistant-improve__known { gap: 8px; padding-block-start: 14px; border-block-start: 1px solid var(--color-divider); }
.assistant-improve__known-toggle {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 8px 4px;
  font: inherit; text-align: start; color: var(--color-primary); background: none; border: 0; border-radius: var(--r-sm); cursor: pointer;
}
.assistant-improve__known-toggle:focus-visible { outline: var(--focus-outline); outline-offset: 2px; }
.assistant-improve__known-check {
  flex-shrink: 0; width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: var(--color-action); color: var(--color-on-action);
}
.assistant-improve__known-title { flex: 1; font-family: var(--head); font-weight: 700; font-size: 17px; line-height: 1.3; }
.assistant-improve__known-chevron { flex-shrink: 0; width: 18px; height: 18px; color: var(--color-action); transition: transform .22s ease; }
.assistant-improve__known-toggle[aria-expanded="true"] .assistant-improve__known-chevron { transform: rotate(180deg); }
.assistant-improve__known-region { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .26s ease; }
.assistant-improve__known-region.is-open { grid-template-rows: 1fr; }
.assistant-improve__known-inner { display: grid; gap: 10px; min-height: 0; overflow: hidden; }
.assistant-improve__known-lead { margin: 0; color: var(--color-text-secondary); font-size: 14px; }
.assistant-improve__known-list { display: grid; gap: 8px; margin: 0; padding: 0 0 2px; list-style: none; }
.assistant-improve__known-row {
  display: flex; align-items: center; gap: 12px; min-width: 0; padding: 10px 12px;
  border-radius: var(--r-md); background: var(--color-surface-muted);
}
.assistant-improve__known-row .assistant-improve__topic-icon { width: 38px; height: 38px; }
.assistant-improve__known-row .assistant-improve__topic-icon .ico { width: 19px; height: 19px; }
.assistant-improve__known-text { display: grid; gap: 2px; flex: 1; min-width: 0; }
.assistant-improve__known-name { color: var(--color-primary); font-weight: 700; }
.assistant-improve__known-summary {
  color: var(--color-text-secondary); font-size: 14px; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.assistant-improve__edit {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; min-height: 40px; padding: 6px 14px;
  font: inherit; font-weight: 600; color: var(--color-action-strong); background: var(--color-surface); border: 0; border-radius: 999px; cursor: pointer;
}
.assistant-improve__edit .ico { width: 16px; height: 16px; }
.assistant-improve__edit:focus-visible { outline: var(--focus-outline); outline-offset: 2px; }
@media (hover: hover) {
  .assistant-improve__edit:hover { background: var(--color-surface-hover); }
  .assistant-improve__known-toggle:hover .assistant-improve__known-title { color: var(--color-action-strong); }
}
.assistant-improve__actions--topics { justify-content: center; padding-block-start: 16px; border-block-start: 1px solid var(--color-divider); }
.assistant-improve .btn.assistant-improve__home { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: auto; background: transparent; border: 0; box-shadow: none; font-size: 18px; color: var(--color-action-strong); }
@keyframes improve-rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) {
  .assistant-overlay:has(#assistant-improve-topics:not([hidden])) { width: calc(100% - 16px); }
  .assistant-improve__intro--topics { min-height: 240px; padding-block: 36px 24px; }
  .assistant-improve__intro--topics::before { inset-inline: -16px; background-size: auto 100px; }
  .assistant-improve__companion { position: absolute; inset-inline-end: -10px; bottom: 0; width: 43%; margin: 0; }
  .assistant-improve__intro--topics .assistant-improve__intro-text { display: grid; gap: 12px; }
  .assistant-improve__intro--topics .assistant-improve__lead { width: 66%; font-size: 17px; }
  #assistant-improve-topics h2 { font-size: 26px; }
  .assistant-improve__topic-go { min-height: 132px; padding: 18px 14px; gap: 10px; border-radius: 24px; }
  .assistant-improve__topic-go > .assistant-improve__topic-icon { width: 44px; height: 44px; }
  .assistant-improve__topic-go > .assistant-improve__topic-icon .ico { width: 24px; height: 24px; }
  .assistant-improve__topic-copy { width: auto; flex: 1; padding-inline-end: 4px; }
  .assistant-improve__topic-name { font-size: 20px; }
  .assistant-improve__topic-lead { font-size: 16px; }
  .assistant-improve__topic-image { width: 38%; opacity: .4; mask-image: linear-gradient(to right, black, transparent 85%); }
  [dir="ltr"] .assistant-improve__topic-image { mask-image: linear-gradient(to left, black, transparent 85%); }
  .assistant-improve__topic-arrow { width: 36px; height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  #assistant-improve-topics, .assistant-improve__topic-card { animation: none; }
  .assistant-improve__known-region, .assistant-improve__known-chevron { transition: none; }
}
.rx-match-set__comparison { display: grid; gap: 12px; padding-block-start: 5px; }
.rx-match-set__comparison-head { display: grid; gap: 4px; padding-block-start: 18px; border-block-start: 1px solid var(--color-divider); }
.rx-match-set__comparison-head h2 { color: var(--color-primary); font-size: clamp(24px, 3vw, 32px); line-height: 1.15; }
.rx-match-set__comparison-head p { max-width: 66ch; color: var(--color-text-secondary); font-size: 14px; line-height: 1.5; }
.rx-match-set__list {
  display: grid; grid-template-columns: 1fr;
  gap: 12px; margin: 0; padding: 0; list-style: none;
}
.rx-match-card {
  position: relative; display: grid; min-width: 0; overflow: visible;
  border: 1px solid var(--color-border); border-radius: var(--r); background: var(--color-surface);
}
.rx-match-card__surface {
  display: grid; grid-template-columns: minmax(190px, .56fr) minmax(0, 1.44fr); width: 100%; min-height: 150px; overflow: hidden;
  padding: 0; border: 0; border-radius: calc(var(--r) - 1px) calc(var(--r) - 1px) 0 0;
  background: var(--color-surface); color: var(--color-text); text-align: start;
  font: inherit; box-shadow: none;
}
button.rx-match-card__surface { cursor: pointer; }
button.rx-match-card__surface:disabled { cursor: default; }
button.rx-match-card__surface:not(:disabled):hover { background: var(--color-surface-hover); }
button.rx-match-card__surface:focus-visible { outline: var(--focus-outline); outline-offset: 3px; box-shadow: var(--focus-ring); }
.rx-match-card:has(.rx-match-card__surface:not(:disabled):hover) { border-color: var(--color-border-hover); }
.rx-match-card.is-active { border-color: var(--color-selected-border); box-shadow: var(--shadow-selected); }
.rx-match-card.is-active .rx-match-card__surface { grid-template-columns: minmax(240px, .8fr) minmax(0, 1.2fr); background: var(--color-surface); }
.rx-match-card__meta {
  position: absolute; z-index: 2; inset-inline-start: 12px; inset-block-end: 12px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px; max-width: calc(100% - 24px);
  margin: 0; color: var(--color-primary); font-size: 13px; font-weight: 700; line-height: 1.2;
}
.rx-match-card__meta:not(:has(> :not(.is-hidden))) { display: none; }
.rx-match-card__photo.is-empty .rx-match-card__meta { position: static; max-width: none; padding: 12px; }
.rx-match-card__meta > * { box-shadow: 0 4px 12px rgba(11, 33, 64, .18); }
.rx-match-card__rank {
  display: inline-flex; align-items: center; padding: 6px 12px; border-radius: var(--r-pill);
  background: var(--color-surface); color: var(--color-primary);
}
.rx-match-card__score {
  padding: 6px 13px; border-radius: var(--r-pill); background: var(--color-primary);
  color: var(--color-surface); font-family: var(--head); font-size: 14px; font-weight: 700;
  line-height: 1.2; white-space: nowrap;
}
.rx-match-card__photo { position: relative; min-height: 210px; margin: 0; background: var(--color-surface-muted); }
.rx-match-card__photo img { display: block; width: 100%; height: 100%; min-height: 210px; object-fit: cover; }
.rx-match-card__photo.is-empty { min-height: 24px; background: var(--color-surface-muted); }
.rx-match-card__body { display: grid; align-content: start; gap: 13px; min-width: 0; padding: 16px 18px; }
.rx-match-card__identity, .rx-match-card__copy { display: grid; min-width: 0; line-height: 1.25; }
.rx-match-card__identity strong, .rx-match-card__copy strong {
  overflow: visible; color: var(--color-primary); font-family: var(--head); font-size: clamp(22px, 2.2vw, 26px);
  font-weight: 800; line-height: 1.12; letter-spacing: -.012em; text-overflow: clip; white-space: normal; overflow-wrap: anywhere;
}
.rx-match-card__identity span, .rx-match-card__copy span { margin-block-start: 4px; color: var(--color-text-secondary); font-size: 14px; line-height: 1.4; }
.rx-match-card__body.is-overview { min-height: 94px; display: grid; align-items: start; gap: 10px; padding: 10px 18px 18px; }
.rx-match-card__identity--active { justify-items: start; gap: 7px; text-align: right; }
.rx-match-card__identity--active strong {
  overflow: visible; color: var(--color-primary); font-size: clamp(34px, 3vw, 38px); font-weight: 700; line-height: 1.08;
  text-overflow: clip; white-space: normal; overflow-wrap: anywhere;
}
/* העיר נראית אותו דבר בכל הכרטיסים; בכרטיסים הבאים היא קטנה ביחס לשם כמו בראשון. */
.rx-match-card__identity .rx-match-card__city {
  display: inline-flex; align-items: center; gap: 5px; margin: 0 0 4px; color: var(--color-action-strong);
  font-family: var(--head); font-size: 15px; font-weight: 600; line-height: 1.2;
}
.rx-match-card__identity--active .rx-match-card__city { gap: 6px; margin: 0; font-size: clamp(20px, 1.8vw, 22px); }
.rx-match-card__city .ico { width: 13px; height: 13px; flex: none; }
.rx-match-card__identity--active .rx-match-card__city .ico { width: 16px; height: 16px; }
.rx-match-card__overview { display: grid; gap: 5px; min-width: 0; }
.rx-match-card__overview-headline {
  color: var(--color-text-secondary); font-family: var(--body); font-size: 17px; font-weight: 600; line-height: 1.4;
}
.rx-match-card__overview-copy {
  display: -webkit-box; overflow: hidden; color: var(--color-text-secondary); font-size: 14px; line-height: 1.55;
  -webkit-box-orient: vertical; -webkit-line-clamp: 2;
}
.rx-match-card:not(.is-active) .rx-match-card__overview {
  display: grid; gap: 4px; padding-block: 2px 4px;
}
.rx-match-card:not(.is-active) .rx-match-card__overview-headline { font-size: 14px; }
.rx-match-card:not(.is-active) .rx-match-card__overview-copy {
  font-size: 14px; -webkit-line-clamp: 3;
}
.rx-match-card__lock {
  display: grid; place-items: center; flex: none; width: 38px; height: 38px;
  border-radius: var(--r-pill); background: var(--color-surface); color: var(--color-action-strong);
}
.rx-match-card__differences { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.rx-match-card__difference { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 11px; align-items: center; }
.rx-match-card__difference-icon {
  display: grid; place-items: center; width: 32px; height: 32px; border: 2px solid var(--color-action);
  border-radius: var(--r-pill); background: var(--color-action); color: var(--color-surface);
}
.rx-match-card__difference-icon .ico { width: 19px; height: 19px; stroke-width: 2.2; }
.rx-match-card__difference.is-disadvantage .rx-match-card__difference-icon {
  border-color: var(--color-primary); background: var(--color-primary); color: var(--color-surface);
}
.rx-match-card__difference-text { color: var(--color-text); font-size: 15px; line-height: 1.45; }
.rx-match-card__difference.is-neutral { display: block; color: var(--color-text-secondary); font-size: 14px; line-height: 1.5; }
.rx-match-card__price {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; align-items: center;
  padding-block: 13px 5px; border-block-start: 1px solid var(--color-divider);
}
.rx-match-card__price-market { display: grid; gap: 2px; }
.rx-match-card__price-label { color: var(--color-text-secondary); font-size: 12px; font-weight: 700; }
.rx-match-card__price-value {
  color: var(--color-primary); font-family: var(--head); font-size: 17px; font-weight: 800;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.rx-match-card__price-value { font-size: clamp(20px, 2vw, 24px); line-height: 1.15; letter-spacing: -.015em; }
.rx-match-card__price-detail { color: var(--color-text-secondary); font-size: 12px; }
.rx-match-card.is-explored { border-color: var(--color-selected-border); }
.rx-match-card__explore { display: grid; gap: 14px; padding: 16px 18px; border-block-start: 1px solid var(--color-divider); }
.rx-match-card__explore[hidden] { display: none; }
.rx-match-card__explore-title { color: var(--color-primary); font-family: var(--head); font-size: 15px; font-weight: 750; }
.rx-match-card__differences--more { padding: 2px 18px 16px; }
.rx-match-card__explore .rx-match-card__differences--more { padding: 0; }
.rx-match-card__feedback { display: grid; gap: 9px; }
.rx-match-card__feedback > p { color: var(--color-text-secondary); font-size: 13px; font-weight: 650; }
.rx-match-card__feedback-options { display: flex; flex-wrap: wrap; gap: 7px; }
.rx-match-card__feedback-choice {
  min-height: 38px; padding: 7px 12px; border: 1px solid var(--color-border); border-radius: var(--r-pill);
  background: var(--color-surface); color: var(--color-text); font: inherit; font-size: 13px; font-weight: 650; cursor: pointer;
}
.rx-match-card__feedback-choice:hover { border-color: var(--color-action); color: var(--color-action-strong); }
.rx-match-card__feedback-choice[aria-pressed="true"] { border-color: var(--color-action); background: var(--color-action); color: var(--color-surface); }
.rx-match-card__feedback-choice:focus-visible { outline: var(--focus-outline); outline-offset: 2px; box-shadow: var(--focus-ring); }
.rx-match-card__actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 16px;
  border-block-start: 1px solid var(--color-divider);
}
.rx-match-card__service {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; padding: 8px 13px;
  border: 1px solid var(--color-border); border-radius: var(--r-pill); background: var(--color-surface);
  color: var(--color-text); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
}
.rx-match-card__service:hover { border-color: var(--color-action); color: var(--color-action-strong); }
.rx-match-card__service:focus-visible {
  outline: var(--focus-outline); outline-offset: 3px; box-shadow: var(--focus-ring);
}
.rx-match-card__profile {
  min-height: 46px; padding: 10px 20px; border: 1px solid var(--color-action); border-radius: var(--r-pill);
  background: var(--color-action); color: var(--color-surface); font: inherit; font-size: 14px; font-weight: 800; cursor: pointer;
}
.rx-match-card__profile:hover { border-color: var(--color-action-strong); background: var(--color-action-strong); }
.rx-match-card__profile:focus-visible { outline: var(--focus-outline); outline-offset: 3px; box-shadow: var(--focus-ring); }

@media (max-width: 680px) {
  #step-matches, #step-result { gap: 12px; }
  .rx-all-matches { align-items: start; padding: 12px 14px; }
  .rx-all-matches small { display: none; }
  .rx-all-matches__action { font-size: 13px; }
  .rx-match-set { gap: 12px; padding: 16px; border-radius: var(--r); }
  .rx-match-set__title { font-size: 34px; }
  .rx-match-set__lede { font-size: 14.5px; }
  .rx-match-set__list { grid-template-columns: 1fr; grid-template-rows: none; gap: 8px; }
  .rx-match-set__comparison-head { padding-block-start: 14px; }
  .rx-match-card.is-active .rx-match-card__surface, .rx-match-card__surface { grid-template-columns: 1fr; }
  .rx-match-card__surface { min-height: 76px; }
  .rx-match-card.is-active .rx-match-card__surface { min-height: 300px; }
  .rx-match-card__meta { inset-inline-start: 10px; inset-block-end: 10px; }
  .rx-match-card:not(.is-active) .rx-match-card__body { padding: 13px 14px; }
  .rx-match-card__photo, .rx-match-card__photo img { min-height: 158px; max-height: 170px; }
  .rx-match-card__body.is-overview { min-height: 82px; gap: 8px; padding: 9px 14px 14px; }
  .rx-match-card__identity.rx-match-card__identity--active strong { font-size: 34px; }
  .rx-match-card__overview-headline { font-size: 16px; }
  .rx-match-card__overview-copy { font-size: 13.5px; -webkit-line-clamp: 2; }
  .rx-match-card__identity strong, .rx-match-card__copy strong { font-size: 21px; }
  .rx-match-card__price { grid-template-columns: 1fr; gap: 10px; padding-block-start: 12px; }
  .rx-match-card__difference { grid-template-columns: 34px minmax(0, 1fr); gap: 10px; }
  .rx-match-card__explore { padding: 14px; }
  .rx-match-card__differences--more { padding-inline: 14px; }
  .rx-match-card__actions { padding: 10px 12px; }
  .rx-match-card__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* בטלפון: שני השירותים זה לצד זה, הדוח בשורה מלאה; בלי שורה יתומה ובלי שבירת טקסט. */
  .rx-match-card__profile { grid-column: 1 / -1; }
  .rx-match-card__profile { order: 2; }
  .rx-match-card__service { white-space: nowrap; }
  .rx-match-card__profile { width: 100%; }
  
  
}

@media (prefers-reduced-motion: reduce) {
  .rx-match-set.is-refined .rx-match-card__score { animation: none; }
}

/* "הדירוג הזה נשען רק על…": הסתייגות אמינות מעל הבלוק. */
.rx-reliability {
  margin: 0 0 14px; padding: 10px 14px; border-inline-start: 3px solid var(--color-action);
  background: var(--color-info-surface); color: var(--color-text); line-height: 1.5;
}
.rx-reliability__action { font-weight: 700; color: var(--color-action); white-space: nowrap; }
/* שכונה שנפתחה מחוץ לדירוג (גם מהכפתור של אדם בשיחה): הצהוב של הדמות, כדי שייראה כהערה של המלווה. */
#result-unranked-focus {
  border-inline-start-color: var(--color-assistant-highlight);
  background: color-mix(in srgb, var(--color-assistant-highlight) 22%, var(--color-surface));
}

/* "מה סיפרתם לנו": שורות של איור קטן והתשובה, ומתחתיה מה נבדק ו"אומדן מודל" כשצריך. בלי קופסאות. */
.rx-told { display: grid; gap: 12px; }
.rx-told__title { margin: 0; font-family: var(--head); font-size: 19px; color: var(--color-text); }
.rx-told__rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rx-told__row { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: center; }
.rx-told__row:not(:has(.rx-told__plate)) { grid-template-columns: minmax(0, 1fr); }
.rx-told__plate { width: 44px; height: 44px; object-fit: contain; }
.rx-told__text { display: grid; gap: 2px; min-width: 0; }
.rx-told__answer { margin: 0; font-weight: 700; color: var(--color-text); line-height: 1.4; }
.rx-told__note { margin: 0; font-size: 14px; color: var(--color-text-secondary); }
.rx-told__tradeoff {
  margin: 4px 0 0; padding: 10px 14px; border-inline-start: 3px solid var(--color-accent);
  background: var(--color-accent-surface); color: var(--color-text); line-height: 1.5;
}

.rx-lead { display: grid; gap: 14px; }

/* השכונה במספרים: תמונת מצב אייקונוגרפית ואחריה מילון נתונים מלא. הפריטים
   נשענים על קצב, קווים וטיפוגרפיה — לא על אוסף כרטיסים זהים. */
.rx-statistics { display: grid; gap: 24px; }
.rx-statistics__head { display: grid; gap: 8px; max-width: 68ch; }
.rx-statistics__title { margin: 0; font-family: var(--head); font-size: clamp(25px, 3vw, 32px); line-height: 1.24; color: var(--color-text); }
.rx-statistics__lede { margin: 0; color: var(--color-text-secondary); font-size: 17px; line-height: 1.6; }
.rx-statistics__highlights {
  list-style: none; margin: 0; padding: 0; display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid var(--color-divider);
}
.rx-statistics__highlight {
  display: grid; grid-template-columns: 46px minmax(0, 1fr); align-items: start; gap: 12px;
  min-width: 0; padding: 20px 18px; border-inline-start: 1px solid var(--color-divider);
}
.rx-statistics__highlight:nth-child(3n + 1) { border-inline-start: 0; }
.rx-statistics__highlight:nth-child(n + 4) { border-block-start: 1px solid var(--color-divider); }
.rx-statistics__mark {
  display: grid; place-items: center; inline-size: 46px; block-size: 46px;
  border-radius: 50%; background: var(--color-info-surface); color: var(--color-action);
}
.rx-statistics__mark .ico { inline-size: 23px; block-size: 23px; }
.rx-statistics__highlight-copy { display: grid; gap: 4px; min-width: 0; }
.rx-statistics__value { font-family: var(--head); font-size: 20px; line-height: 1.35; color: var(--color-text); font-variant-numeric: tabular-nums; }
.rx-statistics__label { color: var(--color-text-secondary); font-size: 16px; line-height: 1.45; }
.rx-statistics__all { display: grid; gap: 0; }
.rx-statistics__all > summary {
  justify-self: start; min-height: 44px; display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 18px; border: 1px solid var(--color-action); border-radius: var(--r-pill);
  color: var(--color-action); font-weight: 700; cursor: pointer; list-style: none;
}
.rx-statistics__all > summary::-webkit-details-marker { display: none; }
.rx-statistics__all > summary::after { content: '+'; font-family: var(--head); font-size: 20px; line-height: 1; }
.rx-statistics__all[open] > summary::after { content: '−'; }
.rx-statistics__all > summary:hover { background: var(--color-info-surface); }
.rx-statistics__all > summary:focus-visible { outline: var(--focus-outline); outline-offset: 3px; }
.rx-statistics__groups { display: grid; gap: 0; margin-block-start: 26px; border-block-start: 2px solid var(--color-text); }
.rx-statistics__group { display: grid; grid-template-columns: minmax(150px, .55fr) minmax(0, 1.45fr); gap: 18px 30px; padding-block: 24px; border-block-end: 1px solid var(--color-divider); }
.rx-statistics__group-title { display: flex; align-items: flex-start; gap: 10px; margin: 0; font-family: var(--head); font-size: 20px; color: var(--color-text); }
.rx-statistics__group-title .ico { flex: 0 0 auto; inline-size: 23px; block-size: 23px; color: var(--color-action); }
.rx-statistics__facts { display: grid; gap: 0; margin: 0; }
.rx-statistics__fact { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; padding-block: 9px; border-block-end: 1px solid var(--color-divider); }
.rx-statistics__fact:last-child { border-block-end: 0; }
.rx-statistics__fact dt { color: var(--color-text-secondary); line-height: 1.45; }
.rx-statistics__fact dd { margin: 0; color: var(--color-text); font-weight: 700; font-variant-numeric: tabular-nums; text-align: end; }
.rx-statistics__sources { grid-column: 2; margin: 0; }
@media (max-width: 760px) {
  .rx-statistics__highlights { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rx-statistics__highlight:nth-child(3n + 1) { border-inline-start: 1px solid var(--color-divider); }
  .rx-statistics__highlight:nth-child(2n + 1) { border-inline-start: 0; }
  .rx-statistics__highlight:nth-child(n + 3) { border-block-start: 1px solid var(--color-divider); }
  .rx-statistics__highlight { grid-template-columns: 40px minmax(0, 1fr); padding: 16px 10px; gap: 10px; }
  .rx-statistics__mark { inline-size: 40px; block-size: 40px; }
  .rx-statistics__group { grid-template-columns: 1fr; gap: 12px; }
  .rx-statistics__sources { grid-column: 1; }
}
@media (max-width: 430px) {
  .rx-statistics__fact { grid-template-columns: 1fr; gap: 3px; }
  .rx-statistics__fact dd { text-align: start; }
}

/* הדו"ח: משטח נייר אחד. בדסקטופ תוכן עניינים צמוד מימין; הסעיפים בלי
   קופסאות — קו דק ביניהם ומספר בטרקוטה. */
.rx-report { display: grid; background: var(--color-surface); padding: clamp(18px, 3.2vw, 40px); }
.rx-hero:not(.is-hidden) + .rx-report { margin-block-start: -22px; }
.rx-toc { display: none; }
@media (min-width: 1024px) {
  .rx-report { grid-template-columns: 200px minmax(0, 1fr); column-gap: 40px; }
  .rx-report:has(> .rx-toc.is-hidden) { grid-template-columns: minmax(0, 1fr); }
  .rx-toc {
    display: grid; gap: 14px; align-content: start; align-self: start; position: sticky; top: 24px;
    padding-inline-end: 24px; border-inline-end: 1px solid var(--color-divider);
  }
}
.rx-toc__eyebrow { margin: 0; font-family: var(--head); font-size: 13px; font-weight: 700; color: var(--color-accent); }
.rx-toc__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.rx-toc__link {
  display: flex; gap: 8px; padding: 6px 10px; margin-inline-start: -10px; border-inline-start: 2px solid transparent;
  color: var(--color-text-secondary); font-size: 15px; text-decoration: none; transition: color .2s ease, border-color .2s ease;
}
.rx-toc__link:hover { color: var(--color-text); }
.rx-toc__link.is-current { color: var(--color-text); font-weight: 700; border-inline-start-color: var(--color-accent); }
.rx-toc__num { color: var(--color-accent); font-family: var(--head); font-variant-numeric: tabular-nums; }
.rx-toc__cta { justify-content: center; margin-top: 8px; }
.rx-toc__restart { justify-self: start; min-height: 36px; font-size: 14px; text-align: start; }
.rx-body { display: grid; min-width: 0; }
.rx-body > section {
  padding: clamp(24px, 3vw, 34px) 0; border: 0; border-block-start: 1px solid var(--color-divider);
  border-radius: 0; background: none; box-shadow: none;
}
.rx-section-disclosure { display: block; }
.rx-section__summary {
  display: grid; grid-template-columns: auto minmax(0, 1fr) 24px; align-items: center; gap: 14px;
  min-height: 52px; padding: 4px 0; color: var(--color-text); cursor: pointer; list-style: none;
}
.rx-section__summary::-webkit-details-marker { display: none; }
.rx-section__summary::marker { content: ""; }
.rx-section__summary:hover { color: var(--color-action-strong); }
.rx-section__summary:focus-visible { outline: var(--focus-outline); outline-offset: 6px; border-radius: var(--r-sm); }
.rx-section__number {
  min-width: 24px; color: var(--color-accent); font-family: var(--head); font-size: 14px;
  font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .04em;
}
.rx-section__heading { min-width: 0; }
.rx-section__heading > h3 {
  margin: 0; color: inherit; font-family: var(--head); font-size: clamp(20px, 2.4vw, 25px);
  line-height: 1.3; text-wrap: balance;
}
.rx-section__chevron {
  width: 22px; height: 22px; color: var(--color-action); transition: transform .2s ease-out;
}
.rx-section-disclosure[open] > .rx-section__summary .rx-section__chevron { transform: rotate(180deg); }
.rx-section__content { display: grid; gap: 22px; padding-block-start: 22px; }
.rx-section__content .rx-num { display: none; }
@media (max-width: 600px) {
  .rx-section__summary { grid-template-columns: auto minmax(0, 1fr) 22px; gap: 10px; min-height: 48px; }
  .rx-section__heading > h3 { font-size: 20px; }
  .rx-section__content { gap: 18px; padding-block-start: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .rx-section__chevron { transition: none; }
}
.rx-body > .rx-lead { padding-block-end: clamp(20px, 3vw, 30px); }
/* בלי דירוג הפתיח מוסתר ו"הצעד הבא" הוא הראשון: אין קו מעל הסעיף הראשון. */
.rx-body > :nth-child(1 of :not(.is-hidden)) { border-block-start: 0; }
.rx-num { margin: 0; font-family: var(--head); font-size: 15px; font-weight: 700; letter-spacing: .06em; color: var(--color-accent); }
.rx-num:empty { display: none; }
/* הפוקוס עובר לסעיף אחרי קפיצה מתוכן העניינים; הסימון הנראה הוא בתוכן העניינים. */
.rx-body > [tabindex="-1"]:focus { outline: none; }
.rx-body .rx-map__head, .rx-body .rx-personal__head { justify-items: start; text-align: start; }
.rx-body .rx-map__eyebrow { justify-self: start; }
.rx-body .rx-map__title, .rx-body .rx-personal__title { font-size: clamp(24px, 2.8vw, 30px); }

/* הציון, השם והסקירה. */

.rx-match__explain { font-size: 16.5px; line-height: 1.65; color: var(--color-text-secondary); }
/* סקירת השכונה המפורסמת מחליפה את ההסבר של המנוע: טקסט עריכתי ארוך יותר, ולכן מרווח שורות נדיב. */
.rx-match__explain.is-overview { line-height: 1.75; }

/* <ImageAttribution /> — אייקון קטן וקרדיט אפור שנשאר על גבי הצילום. */
.image-attribution {
  position: absolute; z-index: 4; inset-inline-end: 12px; inset-block-end: 12px; margin: 0;
}
.image-attribution__trigger {
  position: relative; width: 26px; height: 26px; display: grid; place-items: center; padding: 0;
  border: 0; border-radius: var(--r-pill); background: rgba(255, 255, 255, .62);
  color: rgba(42, 62, 82, .72); cursor: pointer;
  transition: opacity .16s ease, background-color .16s ease;
}
.image-attribution__trigger::before {
  content: ""; position: absolute; inset: -9px; border-radius: inherit;
}
.image-attribution__info { width: 14px; height: 14px; }
.image-attribution__trigger:hover, .image-attribution.is-open .image-attribution__trigger {
  background: rgba(255, 255, 255, .86); color: var(--color-text-secondary);
}
.image-attribution__trigger:focus-visible {
  outline: var(--focus-outline); outline-offset: 3px; box-shadow: var(--focus-ring);
}
.image-attribution__popover {
  position: absolute; z-index: 1; inset-inline-end: 0; inset-block-end: calc(100% + 6px);
  width: max-content; max-width: min(280px, calc(100vw - 32px)); padding: 7px 9px;
  border-radius: var(--r-sm); background: rgba(255, 255, 255, .94);
  color: var(--color-text-secondary); text-align: start;
  animation: image-attribution-enter .14s ease-out;
}
.image-attribution__popover[hidden] { display: none; }
.image-attribution__details {
  display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 2px 7px; margin: 0;
}
.image-attribution__details dt {
  color: inherit; font-size: 11px; font-weight: 600; line-height: 1.35;
}
.image-attribution__details dd {
  min-width: 0; margin: 0; color: inherit; font-size: 11px; line-height: 1.35;
  overflow-wrap: anywhere;
}
.image-attribution__details a {
  color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 2px;
}
.image-attribution__details a:hover { color: var(--color-text); }
.rx-match-card > .image-attribution {
  inset-block-start: 12px; inset-block-end: auto;
}
/* בדסקטופ הצילום בצד ההתחלה של הכרטיס, ולכן הייחוס עובר לפינה שלו. */
@media (min-width: 681px) {
  .rx-match-card > .image-attribution { inset-inline-end: auto; inset-inline-start: 12px; }
}
.rx-match-card > .image-attribution .image-attribution__popover {
  inset-block-start: calc(100% + 6px); inset-block-end: auto;
}
@keyframes image-attribution-enter {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 600px) {
  .image-attribution { inset-inline-end: 9px; inset-block-end: 9px; }
  .image-attribution__trigger { width: 24px; height: 24px; }
  .image-attribution__popover { max-width: min(260px, calc(100vw - 28px)); }
}
@media (prefers-reduced-motion: reduce) {
  .image-attribution__trigger { transition: none; }
  .image-attribution__popover { animation: none; }
}

/* "למה השכונה מתאימה לך" — תגיות קצרות, לא משפטים. */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px;
  border-radius: var(--r-pill); background: var(--color-info-surface); color: var(--color-primary);
  font-size: 14px; font-weight: 600; line-height: 1.2;
}
.chip::before { content: "✓"; color: var(--color-action); font-weight: 700; }

/* תוכן אישי: מקטע עריכתי אחד, לא אוסף כרטיסי ניקוד. האטומים הרגילים זורמים
   כרשימה קצרה; הסתייגות מקבלת אזור נפרד ורך בלי להפוך לאזהרה מאיימת. */
.rx-personal { display: grid; gap: 22px; overflow: hidden; }
.rx-family { display: grid; gap: 20px; }
.rx-family__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; margin: 0; padding: 0; list-style: none; }
.rx-family__item { display: grid; gap: 6px; align-content: start; padding-inline-start: 14px; border-inline-start: 3px solid var(--color-info-surface); }
.rx-family__item.is-caveat { border-inline-start-color: var(--color-divider); }
.rx-family__name { margin: 0; color: var(--color-text); font-size: 17px; line-height: 1.35; }
.rx-family__text, .rx-family__traffic { margin: 0; color: var(--color-text-secondary); font-size: 15px; line-height: 1.6; }
.rx-family__traffic { font-size: 14px; }
.rx-family__source { margin: 0; color: var(--color-text-secondary); font-size: 12.5px; line-height: 1.5; }
@media (max-width: 680px) {
  .rx-family { gap: 16px; }
  .rx-family__list { grid-template-columns: 1fr; gap: 14px; }
}
/* "להכיר את X לעומק" (#hood-guide): כרטיס כתבה אופקי וקומפקטי ברוחב הסעיף. התמונה (אם יש) בצד
   הימני, כ-30% מהרוחב; התוכן מיושר לימין. כל הכרטיס לחיץ דרך הקישור שבכותרת (::after), גם התמונה. */
.rx-tour__article {
  position: relative; display: flex; align-items: stretch; gap: 18px; width: 100%; min-height: 168px;
  padding: 14px; border-radius: 18px; background: var(--color-info-surface); text-align: start; cursor: pointer;
}
.rx-tour__thumb { position: relative; flex: 0 0 30%; margin: 0; border-radius: 12px; overflow: hidden; background: var(--color-border); z-index: 2; pointer-events: none; }
.rx-tour__thumb .image-attribution { pointer-events: auto; }
.rx-tour__thumb img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.rx-tour__article-body { display: grid; flex: 1; align-content: center; justify-items: start; gap: 6px; min-width: 0; padding-block: 4px; }
.rx-tour__article-eyebrow { margin: 0; color: var(--color-text-secondary); font-size: 13px; font-weight: 700; line-height: 1.3; }
.rx-tour__article-title { margin: 0; font-family: var(--head); font-size: 19px; line-height: 1.3; color: var(--color-primary); text-wrap: balance; }
.rx-tour__article-link { color: inherit; text-decoration: none; }
.rx-tour__article-link::after { content: ''; position: absolute; inset: 0; border-radius: 18px; z-index: 1; }
.rx-tour__article-link:focus-visible { outline: none; }
.rx-tour__article-link:focus-visible::after { outline: var(--focus-outline); outline-offset: 3px; }
.rx-tour__article-text { margin: 0; max-width: 60ch; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--color-text-secondary); font-size: 15.5px; line-height: 1.5; text-wrap: pretty; }
.rx-tour__article-cta { display: inline-flex; align-items: center; gap: 6px; margin-block-start: 2px; color: var(--color-link); font-weight: 700; font-size: 15px; }
.rx-tour__article:hover .rx-tour__article-cta { text-decoration: underline; text-underline-offset: 4px; }
@media (hover: hover) {
  .rx-tour__article { transition: box-shadow .2s ease-out; }
  .rx-tour__article:hover { box-shadow: var(--shadow-card); }
}
@media (prefers-reduced-motion: reduce) { .rx-tour__article { transition: none; } }
/* "בואו לראות את X מקרוב": אזור ממורכז עם הפעולה הראשית. הכותרת בגודל כותרות הסעיפים, לא מעליהן. */
.rx-tour__body { display: grid; gap: 14px; justify-items: center; text-align: center; padding: 8px 0; }
.rx-body .rx-tour .rx-personal__title { font-family: var(--head); font-size: clamp(20px, 2.4vw, 25px); line-height: 1.3; text-wrap: balance; }
.rx-tour__lede { margin: 0; max-width: 52ch; color: var(--color-text-secondary); font-size: 16px; line-height: 1.6; text-wrap: pretty; }
.rx-tour__cta { margin-block-start: 6px; }
@media (max-width: 680px) {
  .rx-tour__article { min-height: 0; padding: 12px; gap: 12px; }
  .rx-tour__thumb { flex-basis: 32%; min-height: 128px; }
  .rx-tour__article-title { font-size: 17px; }
  .rx-tour__article-text { font-size: 15px; }
  .rx-tour__cta { align-self: stretch; justify-content: center; }
}
/* עמוד המדריך של השכונה (src/neighborhood-guide-page.js): placeholder עד שהכתבה מוכנה. */
.guide-page { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; background: var(--color-page); }
.guide-card {
  display: grid; gap: 14px; justify-items: center; text-align: center; width: min(100%, 560px);
  padding: 48px 32px; border: 1px solid var(--color-border); border-radius: 24px;
  background: var(--color-surface); box-shadow: var(--shadow-card);
}
.guide-card__eyebrow { margin: 0; color: var(--color-text-secondary); font-size: 14px; }
.guide-card__title { margin: 0; font-size: clamp(26px, 5vw, 34px); line-height: 1.2; color: var(--color-primary); }
.guide-card__text { margin: 0; max-width: 40ch; color: var(--color-text-secondary); font-size: 16.5px; line-height: 1.65; }
.guide-card__back { margin-block-start: 10px; color: var(--color-link); font-weight: 600; text-decoration: none; }
.guide-card__back:hover { text-decoration: underline; }
.guide-card__back:focus-visible { outline: var(--focus-outline); outline-offset: 3px; }
.rx-personal__head { justify-items: start; text-align: start; }
.rx-body .rx-map__eyebrow { justify-self: start; }
.rx-body .rx-map__title, .rx-body .rx-personal__title { font-size: clamp(24px, 2.8vw, 30px); }

/* הציון, השם והסקירה. */

.rx-match__explain { font-size: 16.5px; line-height: 1.65; color: var(--color-text-secondary); }
/* סקירת השכונה המפורסמת מחליפה את ההסבר של המנוע: טקסט עריכתי ארוך יותר, ולכן מרווח שורות נדיב. */
.rx-match__explain.is-overview { line-height: 1.75; }

/* <ImageAttribution /> — אייקון קטן וקרדיט אפור שנשאר על גבי הצילום. */
.image-attribution {
  position: absolute; z-index: 4; inset-inline-end: 12px; inset-block-end: 12px; margin: 0;
}
.image-attribution__trigger {
  position: relative; width: 26px; height: 26px; display: grid; place-items: center; padding: 0;
  border: 0; border-radius: var(--r-pill); background: rgba(255, 255, 255, .62);
  color: rgba(42, 62, 82, .72); cursor: pointer;
  transition: opacity .16s ease, background-color .16s ease;
}
.image-attribution__trigger::before {
  content: ""; position: absolute; inset: -9px; border-radius: inherit;
}
.image-attribution__info { width: 14px; height: 14px; }
.image-attribution__trigger:hover, .image-attribution.is-open .image-attribution__trigger {
  background: rgba(255, 255, 255, .86); color: var(--color-text-secondary);
}
.image-attribution__trigger:focus-visible {
  outline: var(--focus-outline); outline-offset: 3px; box-shadow: var(--focus-ring);
}
.image-attribution__popover {
  position: absolute; z-index: 1; inset-inline-end: 0; inset-block-end: calc(100% + 6px);
  width: max-content; max-width: min(280px, calc(100vw - 32px)); padding: 7px 9px;
  border-radius: var(--r-sm); background: rgba(255, 255, 255, .94);
  color: var(--color-text-secondary); text-align: start;
  animation: image-attribution-enter .14s ease-out;
}
.image-attribution__popover[hidden] { display: none; }
.image-attribution__details {
  display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 2px 7px; margin: 0;
}
.image-attribution__details dt {
  color: inherit; font-size: 11px; font-weight: 600; line-height: 1.35;
}
.image-attribution__details dd {
  min-width: 0; margin: 0; color: inherit; font-size: 11px; line-height: 1.35;
  overflow-wrap: anywhere;
}
.image-attribution__details a {
  color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 2px;
}
.image-attribution__details a:hover { color: var(--color-text); }
.rx-match-card > .image-attribution {
  inset-block-start: 12px; inset-block-end: auto;
}
/* בדסקטופ הצילום בצד ההתחלה של הכרטיס, ולכן הייחוס עובר לפינה שלו. */
@media (min-width: 681px) {
  .rx-match-card > .image-attribution { inset-inline-end: auto; inset-inline-start: 12px; }
}
.rx-match-card > .image-attribution .image-attribution__popover {
  inset-block-start: calc(100% + 6px); inset-block-end: auto;
}
@keyframes image-attribution-enter {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 600px) {
  .image-attribution { inset-inline-end: 9px; inset-block-end: 9px; }
  .image-attribution__trigger { width: 24px; height: 24px; }
  .image-attribution__popover { max-width: min(260px, calc(100vw - 28px)); }
}
@media (prefers-reduced-motion: reduce) {
  .image-attribution__trigger { transition: none; }
  .image-attribution__popover { animation: none; }
}

/* "למה השכונה מתאימה לך" — תגיות קצרות, לא משפטים. */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px;
  border-radius: var(--r-pill); background: var(--color-info-surface); color: var(--color-primary);
  font-size: 14px; font-weight: 600; line-height: 1.2;
}
.chip::before { content: "✓"; color: var(--color-action); font-weight: 700; }

/* תוכן אישי: מקטע עריכתי אחד, לא אוסף כרטיסי ניקוד. האטומים הרגילים זורמים
   כרשימה קצרה; הסתייגות מקבלת אזור נפרד ורך בלי להפוך לאזהרה מאיימת. */
.rx-personal { display: grid; gap: 22px; overflow: hidden; }
.rx-family { display: grid; gap: 20px; }
.rx-family__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; margin: 0; padding: 0; list-style: none; }
.rx-family__item { display: grid; gap: 6px; align-content: start; padding-inline-start: 14px; border-inline-start: 3px solid var(--color-info-surface); }
.rx-family__item.is-caveat { border-inline-start-color: var(--color-divider); }
.rx-family__name { margin: 0; color: var(--color-text); font-size: 17px; line-height: 1.35; }
.rx-family__text, .rx-family__traffic { margin: 0; color: var(--color-text-secondary); font-size: 15px; line-height: 1.6; }
.rx-family__traffic { font-size: 14px; }
.rx-family__source { margin: 0; color: var(--color-text-secondary); font-size: 12.5px; line-height: 1.5; }
@media (max-width: 680px) {
  .rx-family { gap: 16px; }
  .rx-family__list { grid-template-columns: 1fr; gap: 14px; }
}
.rx-personal__head { display: grid; gap: 6px; max-width: 68ch; }
.rx-personal__eyebrow {
  display: inline-flex; align-items: center; gap: 7px; margin: 0;
  color: var(--color-primary); font-family: var(--head); font-size: 13px; font-weight: 700;
}
.rx-personal__eyebrow .ico { width: 16px; height: 16px; color: var(--color-action); }
.rx-personal__title { margin: 0; font-size: clamp(23px, 4vw, 30px); line-height: 1.15; }
.rx-personal__lede { margin: 0; color: var(--color-text-secondary); font-size: 14.5px; line-height: 1.6; }
/* נקודה אחת לכל שורה (D-011): רשימה אחת, לא כרטיסים. אייקון קטן, כותרת, משפט עם
   המספר מודגש בתוכו, ושורת מקור שקטה. השורות נפרדות בקו דק, בלי מסגרות. */
.rx-fit { display: grid; max-width: 72ch; margin: 0; padding: 0; list-style: none; }
.rx-fit:empty { display: none; }
.rx-fit__row {
  display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 0 16px;
  padding-block: 18px; border-top: 1px solid var(--color-divider);
}
.rx-fit__row:first-child { padding-top: 2px; border-top: 0; }
.rx-fit__row:last-child { padding-bottom: 0; }
.rx-fit__icon { width: 22px; height: 22px; margin-top: 2px; color: var(--color-action); }
.rx-fit--note .rx-fit__icon { color: var(--color-warning-text); }
.rx-fit__body { display: grid; gap: 4px; min-width: 0; }
.rx-fit__title { margin: 0; color: var(--color-text); font-family: var(--head); font-size: 17px; line-height: 1.35; }
.rx-fit__text { margin: 0; color: var(--color-text-secondary); font-size: 16px; line-height: 1.6; text-wrap: pretty; }
.rx-fit__figure { color: var(--color-text); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rx-fit__details { display: grid; gap: 2px; margin: 4px 0 0; }
.rx-fit__detail { display: flex; flex-wrap: wrap; gap: 0 6px; font-size: 15px; line-height: 1.55; }
.rx-fit__detail dt { color: var(--color-text); font-weight: 700; }
.rx-fit__detail dd { margin: 0; color: var(--color-text-secondary); }
.rx-fit__source { margin: 6px 0 0; color: var(--color-text-secondary); font-size: 13px; line-height: 1.5; }
@media (max-width: 680px) {
  .rx-personal { gap: 18px; }
  .rx-fit__row { gap: 0 12px; padding-block: 14px; }
  .rx-fit__row:first-child { padding-top: 0; }
  .rx-fit__title { font-size: 16px; }
  .rx-fit__text { font-size: 15px; }
}

/* המפה — סעיף בדו"ח: כותרת, בוררי נושאים, מקרא ומפה אחת נקייה. */
.rx-map { display: grid; gap: clamp(18px, 2.5vw, 28px); overflow: visible; }
.rx-map__head { display: grid; justify-items: center; gap: 7px; text-align: center; }
.rx-map__eyebrow {
  justify-self: end; margin: 0; color: var(--color-text-secondary); font-size: 14px; font-weight: 700;
}
.rx-map__title { max-width: 850px; font-size: clamp(30px, 4.2vw, 46px); line-height: 1.08; color: var(--color-primary); }
.rx-map__toolbar { display: grid; gap: 12px; }
/* "לפי מה שסיפרתם": מעל הכפתורים, רק כשהם באים מהשאלון. */
/* min-width: 0 — בלעדיו שורת הכפתורים הנגללת מותחת את כל הכרטיס לרוחב שלה. */
.rx-map__filters { min-width: 0; }
.rx-map__topics { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
/* כפתור נושא — Chips ב-DESIGN.md: גלולה, מנוחה ב-ivory, נבחר ב-Quiet Sky עם וי.
   המצב לא נשען על צבע בלבד: הווי מחליף את עיגול הקטגוריה, ו-aria-pressed נושא אותו. */
.rx-map-topic,
.rx-map-category summary {
  min-height: 44px; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px;
  border: 1px solid var(--color-border); border-radius: var(--r-pill); background: var(--color-surface);
  color: var(--color-primary); font: 700 14px/1.3 var(--body); white-space: nowrap; cursor: pointer;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.rx-map-topic:hover,
.rx-map-category summary:hover { border-color: var(--color-border-hover); }
.rx-map-topic:focus-visible,
.rx-map-category summary:focus-visible { outline: var(--focus-outline); outline-offset: 2px; }
.rx-map-topic[aria-pressed="true"],
.rx-map-category.is-active summary {
  border-color: var(--color-action); background: var(--color-selected); box-shadow: var(--shadow-selected);
}
.rx-map-topic__count { color: var(--color-text-secondary); font-weight: 600; }
.rx-map-topic__count::before { content: '· '; }
.rx-map-topic__check { display: none; width: 24px; height: 24px; color: var(--color-action-strong); }
.rx-map-topic[aria-pressed="true"] .rx-map-category__mark { display: none; }
.rx-map-topic[aria-pressed="true"] .rx-map-topic__check { display: block; }
.rx-map-category { position: relative; flex: 0 0 auto; color: var(--color-primary); font-size: 14px; }
.rx-map-category summary { list-style: none; padding-inline: 14px; }
.rx-map-category summary::-webkit-details-marker { display: none; }
.rx-map-category__mark {
  flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  color: var(--color-action); background: var(--color-selected);
}
.rx-map-category__mark .ico { width: 15px; height: 15px; }
.rx-map-category--parks .rx-map-category__mark { color: #4E6B39; background: #EDF2E2; }
.rx-map-category--leisure .rx-map-category__mark { color: #C84A67; background: #FFE8ED; }
.rx-map-category--commerce .rx-map-category__mark { color: #805D35; background: #F4EBDD; }
.rx-map-category--transit .rx-map-category__mark { color: var(--color-primary); background: #E6EBEE; }
.rx-map-category--synagogue .rx-map-category__mark { color: #6B5CA5; background: #EEEBF7; }
.rx-map-category--playground .rx-map-category__mark { color: #A8660F; background: #FDF1DE; }
.rx-map-category--sports .rx-map-category__mark { color: #C24B3A; background: #FBE7E3; }
.rx-map-category--community_center .rx-map-category__mark { color: #2E8C8C; background: #E0F2F1; }
.rx-map-category--more .rx-map-category__mark { color: var(--color-primary); background: var(--color-selected); }
/* מה רואים על המפה ולמה: השורה צמודה למפה, מעליה. */
.rx-map-category__chevron { direction: ltr; font-size: 20px; line-height: 1; transition: transform .2s ease; }
.rx-map-category[open] .rx-map-category__chevron { transform: rotate(180deg); }
/* התפריט צף מתחת לצ'יפ שלו: המיקום נקבע ב-placeMenu (app.js) לפי הצ'יפ, כדי
   ששורת הצ'יפים הגוללת (overflow-x) לא תחתוך אותו. */
.rx-map-category__menu {
  position: fixed; z-index: 30; max-height: min(60vh, 360px); overflow-y: auto;
  display: grid; gap: 4px; min-width: 210px; padding: 9px; border: 1px solid var(--color-border);
  border-radius: 14px; background: var(--color-surface); box-shadow: var(--shadow-lift);
}
.rx-map-category__menu[hidden] { display: none; }
.rx-map-category__heading {
  margin: 6px 8px 2px; color: var(--color-text-secondary); font-size: 12px; font-weight: 700;
}
.rx-map-category__heading:first-child { margin-top: 0; }
.rx-map-category__option {
  display: flex; align-items: center; gap: 9px; padding: 8px; border-radius: 9px; cursor: pointer;
  color: var(--color-text-secondary); font-size: 13px; font-weight: 600;
}
.rx-map-category__option:hover { background: var(--color-page); }
.rx-map-category__option input {
  appearance: none; flex: 0 0 auto; position: relative; width: 18px; height: 18px; margin: 0;
  border: 1.5px solid rgba(11, 33, 64, .32); border-radius: 6px; background: var(--color-surface); cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.rx-map-category__option input:checked { border-color: var(--color-action); background: var(--color-selected, var(--color-selected)); }
.rx-map-category__option input:checked::after {
  content: ''; position: absolute; inset-block-start: 2px; inset-inline-start: 5px; width: 4px; height: 8px;
  border: solid var(--color-action-strong); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
/* בחירה אחת: עיגול עם נקודה, לא V. */
.rx-map-category__option input[type="radio"] { border-radius: 50%; }
.rx-map-category__option input[type="radio"]:checked::after {
  inset: 4px; width: auto; height: auto; border: 0; border-radius: 50%; background: var(--color-action-strong); transform: none;
}
.rx-map-category__option input:focus-visible { outline: var(--focus-outline); outline-offset: 2px; }
.rx-map__foot { display: grid; gap: 8px; margin-top: -8px; }
/* נושא שהמשפחה ביקשה ואין לו נקודות: מדבקה במרכז המפה (החלטה 2A). */
.rx-map__empty {
  position: absolute; z-index: 3; inset-block-start: 50%; inset-inline-start: 50%; transform: translate(50%, -50%);
  max-width: min(320px, 80%); margin: 0; padding: 10px 14px; border-radius: 12px;
  background: var(--color-surface); color: var(--color-text-secondary); box-shadow: var(--shadow-card);
  font-size: 14px; line-height: 1.45; text-align: center; pointer-events: none;
}
.rx-map__empty[hidden] { display: none; }
.rx-map__body { display: grid; grid-template-columns: minmax(0, 1fr); }
.rx-map__frame {
  position: relative; direction: rtl; min-width: 0; align-self: stretch; overflow: hidden; border: 1px solid rgba(47,85,104,.14);
  border-radius: 18px; background: #F4F8F0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.6);
}
.rx-map__svg { display: block; width: 100%; height: auto; }
.rx-map__ground { fill: #F4F8F0; }
.rx-map__grid line { stroke: #E3ECDD; stroke-width: 1; }
.rx-map__feature { vector-effect: non-scaling-stroke; }
.rx-map__layer--water .rx-map__feature { fill: #DCEFF5; stroke: #A9D3E2; stroke-width: 2; }
.rx-map__layer--water .rx-map__feature--river,
.rx-map__layer--water .rx-map__feature--canal,
.rx-map__layer--water .rx-map__feature--stream,
.rx-map__layer--water .rx-map__feature--coastline { fill: none; }
.rx-map__layer--green .rx-map__feature { fill: #DDEBD8; stroke: #C1D9B9; stroke-width: 1.5; }
.rx-map__layer--streets .rx-map__feature { fill: none; stroke: #FFFFFF; stroke-linecap: round; stroke-linejoin: round; }
.rx-map__layer--streets .rx-map__feature--major { stroke: #E9D5AE; stroke-width: 6; }
.rx-map__layer--streets .rx-map__feature--secondary { stroke: #FFFFFF; stroke-width: 4.5; }
.rx-map__layer--streets .rx-map__feature--minor { stroke: #FFFFFF; stroke-width: 3; }
.rx-map__layer--streets .rx-map__feature--path { stroke: #CDD8D4; stroke-width: 1.5; stroke-dasharray: 5 4; }
.rx-map__area { fill: rgba(47, 115, 186, .08); stroke: var(--color-action-strong); stroke-width: 3; stroke-linejoin: round; }
.rx-map__poi { transition: opacity .2s ease; cursor: pointer; outline: none; }
.rx-map__poi.is-off { opacity: 0; pointer-events: none; }
.rx-map__dot { stroke: var(--color-on-action); stroke-width: 3; }
.rx-map__poi--education .rx-map__dot { fill: #3E9ACB; }
.rx-map__poi--parks .rx-map__dot { fill: #6B8F4E; }
.rx-map__poi--leisure .rx-map__dot { fill: #E3526E; }
.rx-map__poi--commerce .rx-map__dot { fill: #805D35; }
.rx-map__poi--transit .rx-map__dot { fill: #637886; }
.rx-map__poi--synagogue .rx-map__dot { fill: #6B5CA5; }
.rx-map__poi--playground .rx-map__dot { fill: #D98A1C; }
.rx-map__poi--sports .rx-map__dot { fill: #C24B3A; }
.rx-map__poi--community_center .rx-map__dot { fill: #2E8C8C; }
.rx-map__icon { color: var(--color-on-action); }
.rx-map__poi:focus-visible .rx-map__dot { stroke: var(--color-primary); stroke-width: 5; }
.rx-map__poi-caption rect { fill: rgba(255,255,255,.92); stroke: rgba(11, 33, 64, .13); stroke-width: 1; }
.rx-map__poi-caption text { fill: var(--color-primary); font-family: var(--body); font-size: 18px; font-weight: 700; }
.rx-map__street-labels text {
  fill: var(--color-text-secondary); paint-order: stroke; stroke: rgba(255,255,255,.96); stroke-width: 5px;
  stroke-linejoin: round; font-family: var(--body); font-size: 15px; font-weight: 700;
}
.rx-map__stage.is-hiding-street-labels .rx-map__street-labels { display: none; }
/* הבועה של נקודה: שם ומתחתיו הסוג. ממוקמת ב-JS (tipPosition) בתוך העטיפה. */
.rx-map__stage { position: relative; min-height: clamp(460px, 48vw, 620px); }
.rx-maplibre { position: absolute; inset: 0; direction: ltr; background: var(--color-surface-muted); }
/* המעטה תופס את הלחיצה הראשונה, אבל לא את הפס התחתון: הקרדיט של OSM נשאר גלוי
   ולחיץ גם כשהמפה נעולה. הרמז במרכז, לא מעל הקרדיט. */
.rx-maplibre__lock {
  position: absolute; inset: 0 0 var(--map-credit-strip, 44px); z-index: 5; display: flex; align-items: center; justify-content: center;
  padding: 0; border: 0; background: transparent; cursor: pointer;
  font: 600 .9rem/1 inherit; color: var(--color-on-action);
}
.rx-maplibre__lock[hidden] { display: none; }
.rx-maplibre__lock { text-shadow: 0 1px 4px rgba(11, 33, 64, .6); }
.rx-maplibre__recenter {
  position: absolute; z-index: 6; inset-block-start: 14px; inset-inline-end: 14px;
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--color-border); border-radius: 50%; background: var(--color-surface); color: var(--color-primary);
  box-shadow: var(--shadow-card); cursor: pointer; transition: background-color .18s ease, color .18s ease, transform .18s ease;
}
.rx-maplibre__recenter[hidden] { display: none; }
.rx-maplibre__recenter:hover { background: var(--color-surface-hover); color: var(--color-action-strong); transform: translateY(-1px); }
.rx-maplibre__recenter:focus-visible { outline: var(--focus-outline); outline-offset: 2px; }
.rx-maplibre__recenter .ico { width: 22px; height: 22px; }
.rx-maplibre__project { position: relative; display: block; padding: 0; border: 0; background: none; cursor: pointer; z-index: 3; }
.rx-maplibre__project-dot {
  width: 30px; height: 30px; display: grid; place-items: center; border: 2px solid var(--color-surface); border-radius: 50% 50% 50% 6px;
  background: var(--color-accent); color: var(--color-on-action); box-shadow: 0 3px 10px rgba(182, 106, 80, .35);
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.rx-maplibre__project-dot .ico { width: 15px; height: 15px; }
.rx-maplibre__project-label {
  position: absolute; inset-block-start: 100%; inset-inline-start: 50%; transform: translateX(-50%); margin-top: 3px;
  padding: 2px 7px; border-radius: 6px; background: rgba(255,255,255,.94); border: 1px solid var(--color-divider);
  color: var(--color-accent-text); font: 700 11px/1.3 var(--body); white-space: nowrap;
  /* המפה כולה ltr; התווית העברית ("3 דירות שמתאימות לכם") לוקחת כיוון מהטקסט שלה. */
  unicode-bidi: plaintext;
}
/* פרויקטים קרובים יושבים כמעט באותה נקודה: התווית מופיעה רק לסמן שנבחר, מרחפים מעליו או
   מגיעים אליו במקלדת, כדי שתוויות לא יעלו זו על זו ועל שמות הרחובות. */
.rx-maplibre__project .rx-maplibre__project-label { display: none; }
.rx-maplibre__project:is(:hover, :focus-visible, .is-selected) .rx-maplibre__project-label:not(:empty) { display: block; }
.rx-maplibre__project:is(:hover, :focus-visible) { z-index: 7; }
.rx-maplibre__project:hover .rx-maplibre__project-dot { background: var(--color-accent-text); }
.rx-maplibre__project:focus-visible .rx-maplibre__project-dot { outline: var(--focus-outline); outline-offset: 2px; }
.rx-maplibre__project.is-selected { z-index: 6; }
.rx-maplibre__project.is-selected .rx-maplibre__project-dot {
  transform: scale(1.2); background: var(--color-accent-text); box-shadow: 0 0 0 4px rgba(182, 106, 80, .38), 0 5px 14px rgba(182, 106, 80, .4);
}

/* ── תצוגה מקדימה של פרויקט: כרטיס קטן וצף בתחתית המפה, כולו קישור ── */
.rx-pv {
  position: absolute; inset-inline: 0; bottom: 14px; z-index: 8; display: flex; justify-content: center;
  padding: 0 14px; pointer-events: none; direction: rtl;
}
.rx-pv[hidden] { display: none; }
.rx-pv__slot { position: relative; width: min(380px, 100%); pointer-events: auto; }
.rx-pv.is-open .rx-pv__slot { animation: rx-pv-in 220ms cubic-bezier(.2,.8,.2,1); }
@keyframes rx-pv-in { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
.rx-pv__link {
  display: flex; align-items: center; gap: 11px; padding: 8px 10px 8px 34px; border: 1px solid var(--color-divider); border-radius: 16px;
  background: var(--color-surface); color: var(--color-text); text-decoration: none; box-shadow: 0 10px 26px rgba(11, 33, 64, .16);
  transition: box-shadow .18s ease, transform .18s ease;
}
.rx-pv__link:hover { box-shadow: 0 14px 30px rgba(11, 33, 64, .22); transform: translateY(-1px); }
.rx-pv__link:focus-visible { outline: var(--focus-outline); outline-offset: 2px; }
.rx-pv__link.is-swapped { animation: rx-pv-swap 200ms ease; }
@keyframes rx-pv-swap { from { opacity: .3; } to { opacity: 1; } }
.rx-pv__thumb { flex: 0 0 auto; width: 64px; height: 64px; border-radius: 11px; overflow: hidden; background: var(--color-surface-muted); }
.rx-pv__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rx-pv__text { display: grid; gap: 1px; min-width: 0; flex: 1 1 auto; }
.rx-pv__badge { color: var(--color-accent-text); font-size: 11px; font-weight: 700; }
.rx-pv__title { font-size: 16px; line-height: 1.25; }
.rx-pv__place { color: var(--color-text-secondary); font-size: 12.5px; }
/* המחיר מהמחירון, עם המקור והתאריך שלו (רק לדירה בתקציב). */
.rx-pv__price { color: var(--color-text); font-size: 12.5px; font-weight: 600; }
/* דירה שיש עליה טיוטות: עובדה, לא אזהרה — בלי צבע התראה. */
.rx-pv__talks { color: var(--color-text-secondary); font-size: 12px; }
.rx-pv__facts { color: var(--color-text-secondary); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rx-pv__arrow { flex: 0 0 auto; color: var(--color-accent-text); font-size: 24px; line-height: 1; }
.rx-pv__arrow .ico { width: 20px; height: 20px; }
/* דירה מתאימה, לפני השארת פרטים: אותו כרטיס, ככפתור שמוביל לטופס. */
.rx-pv__link--locked { width: 100%; border: 0; font: inherit; text-align: start; cursor: pointer; }
.rx-pv__cta { margin-top: 2px; color: var(--color-action-strong); font-size: 12.5px; font-weight: 700; }
.rx-pv__close {
  position: absolute; top: 6px; left: 6px; width: 24px; height: 24px; display: grid; place-items: center; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: var(--color-text-secondary); cursor: pointer; pointer-events: auto;
}
.rx-pv__close:hover { background: var(--color-surface-muted); color: var(--color-text); }
.rx-pv__close .ico { width: 14px; height: 14px; }
.rx-maplibre .maplibregl-canvas { cursor: grab; }
.rx-maplibre .maplibregl-canvas:active { cursor: grabbing; }
.rx-maplibre .maplibregl-ctrl-attrib {
  color: var(--color-text-secondary); background: rgba(255,255,255,.82); font-family: var(--body); font-size: 10px;
}
.rx-maplibre .maplibregl-ctrl-attrib a { color: var(--color-text-secondary); }
/* שם רחוב הוא טקסט עם הילה, בלי מסגרת: כך הוא לא נראה כמו נקודת עניין. */
.rx-maplibre__street {
  display: block; max-width: 150px; transform: rotate(var(--street-angle));
  color: var(--color-text-secondary); white-space: nowrap; font: 600 12px/1.25 var(--body); letter-spacing: .01em;
  text-shadow: 0 0 2px #fff, 0 0 3px #fff, 0 0 5px rgba(255,255,255,.9);
  pointer-events: none;
}
.rx-maplibre__street.is-label-hidden { visibility: hidden; }
/* המתג "הצג שמות רחובות" מסמן hidden; בלי זה ה-display: block שלמעלה גובר עליו. */
.rx-maplibre__street[hidden] { display: none; }
/* נקודות העניין עצמן הן שכבות של המפה (neighborhood-poi-layer.js); כאן רק הבועה שלהן. */
.rx-maplibre__popup-groups {
  display: grid; gap: 12px; min-width: 150px; max-width: min(260px, 70vw); max-height: 240px; padding-inline-end: 3px;
  direction: rtl; text-align: start; overflow-y: auto; overscroll-behavior: contain; scrollbar-color: var(--color-border) transparent;
}
.rx-maplibre__popup-group { display: grid; gap: 4px; }
.rx-maplibre__popup-group + .rx-maplibre__popup-group { padding-block-start: 10px; border-block-start: 1px solid var(--color-border); }
.rx-maplibre__popup-heading { margin: 0; color: var(--color-primary); font: 700 14px/1.35 var(--body); }
.rx-maplibre__popup-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; color: var(--color-text-secondary); font-weight: 500; }
.rx-maplibre__popup-list li { display: grid; gap: 1px; overflow-wrap: anywhere; }
.rx-maplibre__popup-address { color: var(--color-text-secondary); font-size: 12px; font-weight: 400; line-height: 1.3; opacity: .78; }
/* מצגת המפה (map-tour.js): הכיתוב שמסביר מה רואים בכל שלב. */
.rx-maplibre__tour-caption {
  position: absolute; z-index: 3; inset-block-start: 14px; inset-inline: 0; width: max-content; max-width: calc(100% - 28px);
  margin: 0 auto; padding: 9px 16px; border-radius: var(--r-pill); background: rgba(11, 33, 64, .9); color: var(--color-on-action);
  direction: rtl; font: 700 15px/1.3 var(--body); text-align: center; box-shadow: 0 8px 22px rgba(11, 33, 64, .22);
  pointer-events: none; animation: rx-tour-caption .3s ease both;
}
.rx-maplibre__tour-caption { display: grid; gap: 2px; }
.rx-maplibre__tour-caption small { font-size: 12.5px; font-weight: 600; opacity: .88; }
.rx-maplibre__tour-caption small[hidden] { display: none; }
.rx-maplibre__tour-caption[hidden] { display: none; }
@keyframes rx-tour-caption { from { opacity: 0; transform: translateY(-6px); } }
.rx-maplibre__popup { z-index: 10; }
.rx-maplibre__popup .maplibregl-popup-content {
  padding: 10px 12px; border-radius: 9px; color: var(--color-primary); font: 500 13px/1.4 var(--body);
  box-shadow: 0 8px 24px rgba(11, 33, 64, .18);
}
.rx-map__tip {
  position: absolute; z-index: 2; display: grid; gap: 2px; max-width: min(260px, 80%);
  padding: 8px 12px; border-radius: 10px; background: var(--color-primary); color: var(--color-on-action);
  font-size: 14px; line-height: 1.35; text-align: start; box-shadow: var(--shadow); pointer-events: none;
}
.rx-map__tip[hidden] { display: none; }
.rx-map__tip span { font-size: 13px; opacity: .85; }
.rx-map__tip span[hidden] { display: none; }
.rx-map__label rect { fill: var(--color-primary); }
.rx-map__label text { fill: var(--color-on-action); font-family: var(--head); font-size: 22px; font-weight: 700; }
.rx-map__scale path { fill: none; stroke: var(--color-text-secondary); stroke-width: 2; }
.rx-map__scale text { fill: var(--color-text-secondary); font-size: 18px; font-family: var(--body); }
.rx-map__note { margin: 0; text-align: start; color: var(--color-text-secondary); }

/* בטלפון: שורה אחת נגללת, ודהייה בקצה הסוף רק כשיש עוד (has-more, ב-app.js). */
@media (max-width: 680px) {
  .rx-map__topics {
    flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
    margin-inline: -4px; padding: 4px;
  }
  .rx-map__topics::-webkit-scrollbar { display: none; }
  .rx-map__topics > * { flex: 0 0 auto; scroll-snap-align: start; }
  .rx-map__topics.has-more {
    -webkit-mask-image: linear-gradient(to right, transparent, #000 24px);
    mask-image: linear-gradient(to right, transparent, #000 24px);
  }
}
@media (max-width: 600px) {
  .rx-map { gap: 17px; }
  .rx-map__eyebrow { justify-self: center; font-size: 12px; }
  .rx-map__title { font-size: 29px; }
    .rx-map__frame { border-radius: 15px; }
  .rx-map__stage { min-height: max(540px, 70dvh); }
}

/* עזרה בהחלטה — פס משני ושקט אחרי פעולת הסיור הראשית; הטופס #gate נשאר כרטיס. */
.rx-body > .rx-next { border-block-start: 0; padding-block-start: 10px; }
.rx-next { display: grid; gap: 20px; }
.rx-next__prompt {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center;
  padding: 24px 20px; border-radius: var(--r-md); background: var(--color-surface-muted);
}
.rx-next__head { display: grid; justify-items: center; gap: 3px; min-width: 0; text-align: center; }
.rx-next__head h2 { font-size: 19px; line-height: 1.35; color: var(--color-primary); }
.rx-next__head p { max-width: 56ch; font-size: 15px; line-height: 1.45; }
.rx-advisor__cta { flex: none; min-height: 44px; padding: 9px 17px; border-width: 1px; font-size: 15px; box-shadow: none; }
.rx-next__choice:focus-visible { outline: var(--focus-outline); outline-offset: 3px; }
.rx-next.is-open > .rx-next__prompt { display: none; }
@media (max-width: 680px) {
  .rx-next__prompt { gap: 14px; padding: 20px 16px; }
}

.rx-form { display: grid; gap: 14px; width: min(100%, 560px); justify-self: center; scroll-margin-top: 90px; }
.rx-form:focus { outline: none; }
.rx-form__head { display: grid; gap: 6px; text-align: center; }
.rx-form__head h3 { font-size: 21px; }
.rx-form__fields { display: grid; gap: 12px; }

/* ── <dialog> — התשובות שמאחורי התוצאה (כלי פיתוח) ─────────────────── */
.modal {
  border: 0; padding: 0; margin: auto; width: min(100% - 24px, 820px); max-height: calc(100vh - 32px);
  border-radius: var(--r-lg); background: var(--color-surface); color: var(--color-text); box-shadow: var(--shadow-lift);
  overflow: hidden;
}
.modal::backdrop { background: rgba(11, 33, 64, .55); backdrop-filter: blur(2px); }
.modal__body { display: grid; gap: 26px; padding: 26px; max-height: calc(100vh - 32px); overflow: auto; }
.modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.modal__head h2 { font-size: clamp(26px, 5vw, 34px); line-height: 1.1; margin-top: 10px; }
.modal__close {
  flex-shrink: 0; width: 44px; height: 44px; border: 0; border-radius: var(--r-pill);
  background: var(--color-selected); color: var(--color-text-secondary); display: grid; place-items: center; cursor: pointer;
}
.modal__close:hover { background: var(--color-border); }
.modal__close .ico { width: 20px; height: 20px; }

/* ── טופס הפרטים (מסך התוצאה, עמוד העיר) ─────────────────────────────────────────── */
.guide__form { display: grid; gap: 12px; }
.guide__field { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--color-text-secondary); }
.guide__form input[type="text"], .guide__form input[type="tel"], .guide__form select {
  width: 100%; min-height: 54px; padding: 12px 16px; border: 2px solid var(--color-border);
  border-radius: var(--r-sm); background: var(--color-surface); font-family: var(--body); font-size: 16px; color: var(--color-text);
}
.guide__form input:focus, .guide__form select:focus { outline: none; border-color: var(--color-action); box-shadow: var(--focus-ring); }
.guide__form .btn { width: 100%; }
.guide__form .footnote { margin: 0; }
.phone { display: flex; gap: 8px; }
/* l'indicatif se lit à gauche du numéro dans les deux sens d'écriture : le
   couple « +972 5X… » forme un seul nombre, et un nombre ne se miroite pas. */
html[dir="rtl"] .phone { flex-direction: row-reverse; }
/* la liste déroulante des indicatifs reste en LTR même en hébreu : « +972 »
   n'a pas de sens miroité. */
.phone select { width: 104px; flex-shrink: 0; direction: ltr; text-align: center; }
/* le numéro se colle à son indicatif : « start » d'un champ en LTR, c'est le
   bord gauche — celui que le row-reverse ci-dessus met contre la liste. Un
   alignement à droite en hébreu renverrait le numéro au bord opposé, à trois
   cents pixels du « +972 » qui en est pourtant le début. */
.phone input { direction: ltr; text-align: start; flex: 1; min-width: 0; }
.guide__done { display: grid; gap: 12px; justify-items: center; text-align: center; padding: 6px 0; }
.error { color: var(--color-error); font-size: 14px; font-weight: 600; }

/* ── les services : demandés, jamais groupés avec le guide ─────────── */
.services { display: grid; gap: 12px; }
.services__grid { display: grid; gap: 14px; }
.service {
  background: var(--color-surface); border-radius: var(--r-lg); box-shadow: var(--shadow);
  padding: 22px; display: grid; gap: 10px; justify-items: start;
  border-top: 5px solid var(--color-action);
}
.service__head { display: flex; align-items: center; gap: 12px; }
.service__mark {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: var(--r-pill);
  background: var(--color-selected); color: var(--color-action);
  display: flex; align-items: center; justify-content: center;
}
.service__title { font-family: var(--head); font-size: 19px; font-weight: 700; line-height: 1.25; }
.service__body { font-size: 15px; color: var(--color-text-secondary); line-height: 1.55; }
.service .btn { width: 100%; }
.check { display: flex; flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; font-size: 14px; color: var(--color-text-secondary); line-height: 1.5; }
.check input { width: 20px; height: 20px; margin-top: 3px; flex-shrink: 0; accent-color: var(--color-action); }

/* ── כתבת שכונה (/neighborhood/<slug>) ורשימת השכונות (/neighborhoods) ──
   עמוד קריאה בלי כרטיס עוטף: שער (פירורי לחם, עיר, שם, פתיח, דקות קריאה), תמונה רחבה אם יש,
   "במבט מהיר", ואז הקטעים בעמודה של כ-720px. רווח לבן מפריד בין קטעים, לא קווים. */
.hood-index { max-width: 760px; margin-inline: auto; padding-block: clamp(8px, 2vw, 24px) clamp(24px, 4vw, 48px); }
.hood-index__card { margin-top: 12px; }
.hood-article { padding-block: 0 clamp(40px, 6vw, 72px); }
.hood-article__inner { max-width: 1040px; margin-inline: auto; display: grid; justify-items: center; }
.hood-article__inner > * { width: 100%; max-width: 720px; }

.hood-article__crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center;
  gap: 4px 8px; font-size: 14px; color: var(--color-text-secondary); }
.hood-article__crumbs li:empty { display: none; }
.hood-article__crumbs li + li::before { content: '‹'; margin-inline-end: 8px; color: var(--color-icon-muted); }
/* אזור לחיצה של 44px בלי להזיז את השורה. */
.hood-article__crumbs .linkish, .hood-article__crumbs a { font-size: inherit; padding-block: 13px; margin-block: -13px; }
.hood-article__crumbs a { color: var(--color-link); text-underline-offset: 3px; }
.hood-article__crumbs [aria-current] { color: var(--color-text); font-weight: 600; }

.hood-article__hero { padding-block: clamp(4px, 1vw, 12px) clamp(20px, 2.6vw, 28px); }
.hood-article__name { font-family: var(--head); font-size: clamp(38px, 4.7vw, 58px); font-weight: 700; line-height: 1.12;
  letter-spacing: -0.02em; margin: clamp(14px, 2vw, 20px) 0 10px; text-wrap: balance; }
.hood-article__subtitle { font-family: var(--head); font-size: clamp(20px, 2.3vw, 24px); font-weight: 500; line-height: 1.45;
  color: var(--color-text); margin: 0; max-width: 34em; text-wrap: balance; }
.hood-article__meta { margin: 12px 0 0; font-size: 14px; font-weight: 600; color: var(--color-text-secondary); }
.hood-article__meta:empty { display: none; }

.hood-article__photo { margin: 0 0 clamp(24px, 3vw, 32px); position: relative; border-radius: var(--r-lg); overflow: hidden;
  aspect-ratio: 12 / 5; background: var(--color-surface); }
.hood-article__photo img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0;
  transition: opacity .45s cubic-bezier(.16, 1, .3, 1); }
.hood-article__photo img.is-loaded { opacity: 1; }
/* כפתור הקרדיט מופיע יחד עם התמונה, לא מעל מקום ריק. */
.hood-article__photo img:not(.is-loaded) ~ .image-attribution { visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .hood-article__photo img { transition: none; } }

.hood-article__lead { font-size: clamp(18px, 1.9vw, 20px); line-height: 1.6; color: var(--color-text); margin: 0 0 clamp(24px, 3vw, 32px); }

.hood-article__glance { margin: 0 0 clamp(28px, 3.6vw, 40px); background: var(--color-info-surface); border-radius: var(--r);
  padding: clamp(18px, 3vw, 26px) clamp(20px, 3.4vw, 30px); }
.hood-article__glance-title { font-family: var(--body); font-size: 14px; font-weight: 700; color: var(--color-text-secondary); margin: 0 0 10px; }
.hood-article__glance ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2px 28px; }
.hood-article__glance-link { position: relative; display: block; padding-block: 10px; padding-inline-start: 18px; font-size: 17px; font-weight: 600;
  line-height: 1.45; color: var(--color-text); text-decoration: none; border-radius: var(--r-sm); }
.hood-article__glance-link::before { content: ''; position: absolute; inset-inline-start: 0; top: calc(10px + .6em); width: 7px; height: 7px;
  border-radius: var(--r-pill); background: var(--color-action); }
.hood-article__glance-link:hover { color: var(--color-link); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.hood-article__glance-link:focus-visible { outline: var(--focus-outline); outline-offset: 2px; }

.hood-article__segments { display: grid; gap: clamp(26px, 3.2vw, 34px); }
.hood-article__segments:empty { display: none; }
.hood-article__segment { scroll-margin-top: 120px; }
.hood-article__segment h2 { font-family: var(--head); font-size: clamp(22px, 2.6vw, 26px); font-weight: 700; line-height: 1.3; margin: 0 0 8px;
  text-wrap: balance; }
.hood-article__segment h2:focus { outline: none; }
.hood-article__segment p { font-size: 17px; line-height: 1.65; margin: 0; text-wrap: pretty; }
.hood-article__lead, .hood-article__next-lede { text-wrap: pretty; }
/* בחירת טקסט בצבעי SaNes ולא בכחול של הדפדפן. */
.hood-article ::selection { background: var(--color-selected); color: var(--color-text); }
.hood-article__segment .hood-article__source { margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--color-text-secondary); }
.hood-article__source-label { font-weight: 700; }
/* הודעת "עובדים על זה" היא טקסט בעמוד ולא תיבה, כדי שלא יהיו שתי תיבות זו מעל זו עם הצעד הבא. */
.hood-article__pending { display: grid; gap: 6px; font-size: clamp(18px, 1.9vw, 20px); line-height: 1.6; }
.hood-article__byline { margin: clamp(32px, 4vw, 44px) 0 0; font-size: 14px; color: var(--color-text-secondary); }
.hood-article__byline:empty { display: none; }

.hood-article__next { margin-top: clamp(24px, 3vw, 32px); background: var(--color-surface); border-radius: var(--r-lg);
  box-shadow: var(--shadow); padding: clamp(24px, 4vw, 40px); }
.hood-article__next-title { font-family: var(--head); font-size: clamp(24px, 3vw, 30px); font-weight: 700; line-height: 1.25;
  letter-spacing: -0.012em; margin: 0 0 10px; text-wrap: balance; }
.hood-article__next-lede { font-size: 17px; line-height: 1.6; color: var(--color-text-secondary); margin: 0 0 24px; max-width: 36em; }
.hood-article__next-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.is-load-error .hood-article__next { display: none; }
.hood-index__cities { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px 28px; margin-top: 22px; }
.hood-index__city h3 { font-size: 18px; margin-bottom: 8px; }
.hood-index__city ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.hood-index__soon { font-size: 12px; font-weight: 600; color: var(--color-text-secondary); background: var(--color-surface-muted);
  border-radius: var(--r-pill); padding: 1px 8px; }
@media (max-width: 600px) {
  .hood-index__card { padding: 20px 16px; }
  .hood-article__inner { padding-inline: 16px; }
  .hood-article__photo { aspect-ratio: 16 / 9; border-radius: var(--r); }
  .hood-article__next-actions .btn { width: 100%; }
}

/* ── עמוד "עלינו" ──────────────────────────────────────────────────────
   כרטיס אחד, כמו ברפרנס: הנוף בטור הראשון (מימין) והטקסט לצדו, ושורת המשימה בסוף.
   תמונה אחת קבועה — בלי מצגת מתחלפת. */
.about-page { max-width: none; padding-block: clamp(8px, 2vw, 24px) clamp(24px, 4vw, 48px); }
.about-page__card {
  display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(0, 0.97fr);
  min-height: min(78vh, 780px); overflow: hidden;
  border: 1px solid rgba(11, 33, 64, .08); border-radius: clamp(28px, 3vw, 44px);
  background: var(--color-surface); box-shadow: var(--shadow-lift);
}
.about-page__copy {
  grid-column: 2; grid-row: 1;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(40px, 6vw, 96px);
}
.about-page__copy h2 {
  margin: 0 0 28px; color: var(--color-text); font-size: clamp(48px, 6vw, 92px);
  font-weight: 800; line-height: .95; letter-spacing: -.035em;
}
.about-page__copy p {
  margin: 0 0 24px; color: var(--color-text-secondary);
  font-size: clamp(17px, 1.45vw, 22px); line-height: 1.85;
}
.about-page__copy .about-page__mission {
  margin: 12px 0 0; padding: 24px 30px; border-radius: 24px;
  border: 1px solid rgba(47, 115, 186, .08);
  background: linear-gradient(110deg, var(--color-surface-muted), var(--color-selected));
  color: var(--color-primary); font-family: var(--head); text-align: center;
  font-size: clamp(20px, 2vw, 30px); font-weight: 700; line-height: 1.35;
}
.about-page__landscape {
  grid-column: 1; grid-row: 1;
  position: relative; min-height: 600px; margin: 28px; overflow: hidden;
  border-radius: 32px; background: var(--color-selected);
}
.about-page__landscape img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
/* ── השותפים: תמונה עגולה, שם, קו מפריד וטקסט ממורכז ─────────────────── */
.about-team {
  max-width: 720px; margin: clamp(40px, 6vw, 72px) auto 0; padding: 0 8px;
  display: grid; justify-items: center; gap: 14px; text-align: center;
}
.about-team__photo {
  width: clamp(200px, 30vw, 300px); aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center; margin-bottom: 12px;
  background: linear-gradient(160deg, var(--color-accent-surface), var(--color-selected) 70%);
  box-shadow: var(--shadow-lift);
}
.about-team__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-team__name { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; color: var(--color-text); letter-spacing: -.01em; }
.about-team__name::after {
  content: ''; display: block; width: 72px; height: 2px; margin: 18px auto 4px;
  border-radius: 2px; background: var(--color-action-strong, var(--color-action));
}
.about-team p { margin: 0; max-width: 58ch; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.75; color: var(--color-text-secondary); }
/* במסכים צרים התמונה נשארת בצד ומצטמצמת לחלון צר וחתוך — הטור שלה
   מתכווץ, והיא נמתחת לגובה הטקסט במקום לרדת מתחתיו. */
@media (max-width: 900px) {
  .about-page__card { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); min-height: 0; }
  .about-page__copy { padding: 44px 28px 32px; }
  .about-page__landscape { min-height: 0; margin: 18px; margin-inline-end: 0; border-radius: 24px; }
}
@media (max-width: 540px) {
  .about-page__card { grid-template-columns: 34% minmax(0, 1fr); border-radius: 24px; }
  .about-page__copy { padding: 30px 16px 22px; }
  .about-page__copy h2 { margin-bottom: 18px; font-size: clamp(34px, 11vw, 46px); }
  .about-page__copy p { margin-bottom: 16px; font-size: 15px; line-height: 1.7; }
  .about-page__copy .about-page__mission { padding: 16px 12px; border-radius: 16px; font-size: 18px; }
  .about-page__landscape { margin: 10px; margin-inline-end: 0; border-radius: 18px; }
  /* החלון הצר ממורכז על הכפר והברושים, לא על השמיים הריקים. */
  .about-page__landscape img { object-position: 32% 70%; }
}

/* ── עמוד "איך סאנס עובדת" ──────────────────────────────────────────────
   טור קריאה אחד: פתיח, שלושה עמודי מידע, ההתאמה, ובסוף כרטיס החזון עם שורת המשימה. */
.how-page { max-width: 1040px; padding-block: clamp(16px, 3vw, 40px) clamp(32px, 5vw, 64px); }
.how-page h1, .how-page h2, .how-page h3 { color: var(--color-text); }
.how-page__hero { max-width: 760px; margin: 0 auto clamp(40px, 6vw, 72px); text-align: center; }
.how-page__hero h1 { margin: 0 0 20px; font-size: clamp(40px, 5.5vw, 72px); font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.how-page__hero p { margin: 0; font-size: clamp(18px, 1.7vw, 22px); line-height: 1.75; color: var(--color-text-secondary); }
.how-page__section { margin-bottom: clamp(40px, 6vw, 72px); }
.how-page__section h2, .how-page__vision h2 { margin: 0 0 14px; font-size: clamp(28px, 3.2vw, 40px); font-weight: 800; letter-spacing: -.015em; }
.how-page__lede { margin: 0; max-width: 64ch; font-size: clamp(17px, 1.45vw, 20px); line-height: 1.8; color: var(--color-text-secondary); }
.how-page__pillars {
  list-style: none; margin: 28px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
}
.how-page__pillar {
  padding: 26px 24px; border: 1px solid var(--color-border); border-radius: var(--r-lg);
  background: var(--color-surface); box-shadow: var(--shadow-lift);
}
.how-page__pillar-icon {
  display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px;
  border-radius: 50%; background: var(--color-selected); color: var(--color-primary);
}
.how-page__pillar h3 { margin: 0 0 8px; font-size: 20px; font-weight: 700; }
.how-page__pillar p { margin: 0; font-size: 16px; line-height: 1.7; color: var(--color-text-secondary); }
.how-page__note {
  display: flex; align-items: center; gap: 10px; margin: 22px 0 0;
  font-size: 16px; line-height: 1.6; color: var(--color-text-secondary);
}
.how-page__note .ico { flex: none; color: var(--color-accent); }
.how-page__vision {
  padding: clamp(28px, 5vw, 64px); border-radius: clamp(24px, 3vw, 40px);
  border: 1px solid var(--color-border); background: var(--color-surface); box-shadow: var(--shadow-lift);
}
.how-page__vision p { margin: 0 0 18px; max-width: 64ch; font-size: clamp(17px, 1.45vw, 20px); line-height: 1.8; color: var(--color-text-secondary); }
.how-page__vision .how-page__mission {
  max-width: none; margin: 10px 0 28px; padding: 22px 28px; border-radius: 24px;
  background: linear-gradient(110deg, var(--color-surface-muted), var(--color-selected));
  color: var(--color-primary); font-family: var(--head); text-align: center;
  font-size: clamp(20px, 2vw, 28px); font-weight: 700; line-height: 1.4;
}
.how-page__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
@media (max-width: 760px) {
  .how-page__pillars { grid-template-columns: 1fr; }
  .how-page__vision .how-page__mission { padding: 16px 14px; font-size: 18px; }
  .how-page__actions .btn { width: 100%; }
}

/* ── Showcase השירותים המשותף ──────────────────────────────────────────
   אותו רכיב מופיע בעמוד הבית וב-/services: תמונה, אייקון, תיאור וגב
   אינטראקטיבי. הכותרת והסיום שמסביבו שייכים רק לעמוד השירותים. */
.services-page { max-width: none; display: grid; gap: 34px; }
.services-page__hero {
  display: grid; gap: 22px; align-items: end;
  padding: clamp(28px, 5vw, 54px) 0 4px;
}
.services-page__eyebrow {
  margin: 0 0 10px; color: var(--color-action); font-family: var(--head);
  font-size: 14px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
}
.services-page__hero h2 {
  max-width: 19ch; color: var(--color-text); font-size: clamp(34px, 5.2vw, 58px);
  line-height: 1.02; letter-spacing: -.025em;
}
.services-page__lede {
  max-width: 63ch; margin-top: 18px; color: var(--color-text-secondary);
  font-size: 18px; line-height: 1.6;
}
.services-page__note {
  max-width: 15ch; color: var(--color-action-strong); font-family: var(--head);
  font-size: clamp(18px, 2.4vw, 25px); font-weight: 600; line-height: 1.25;
  transform: rotate(-4deg); justify-self: end;
}
html[dir="rtl"] .services-page__note { transform: rotate(4deg); }
.services-page__note::after {
  content: '↘'; display: block; margin-top: 2px; font-size: 30px; font-weight: 400;
}
html[dir="rtl"] .services-page__note::after { content: '↙'; }

.services-page__grid { display: grid; gap: 16px; align-items: stretch; }
.services-page__card {
  min-width: 0; overflow: hidden; display: flex; flex-direction: column;
  background: var(--color-surface); border: 1px solid rgba(11, 33, 64, .1);
  border-radius: 22px; box-shadow: 0 8px 24px rgba(11, 33, 64, .07);
  transition: transform .18s ease, box-shadow .18s ease;
}
.services-page__media { overflow: hidden; aspect-ratio: 4 / 3; background: var(--color-selected); }
.services-page__media img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s ease;
}
.services-page__card--2 .services-page__media img { object-position: 68% 50%; }
.services-page__card--3 .services-page__media img { object-position: 42% 50%; }
.services-page__body {
  position: relative; flex: 1; display: flex; flex-direction: column; align-items: flex-start;
  gap: 12px; padding: 42px 20px 24px;
}
.services-page__mark {
  position: absolute; inset-block-start: -31px; inset-inline-start: 20px;
  width: 62px; height: 62px; border: 4px solid var(--color-surface); border-radius: 50%;
  display: grid; place-items: center; color: var(--color-action-strong); background: var(--color-selected);
  box-shadow: 0 5px 16px rgba(11, 33, 64, .08);
}
.services-page__mark .ico { width: 29px; height: 29px; }
.services-page__cta {
  margin-top: auto; font-weight: 700; font-size: 15px; color: var(--color-action-strong);
  text-decoration: underline; text-underline-offset: 5px;
}
.services-page__body h3 { font-size: 20px; line-height: 1.3; color: var(--color-text); }
.services-page__body p { font-size: 15.5px; line-height: 1.62; color: var(--color-text-secondary); }
.services-page__badge {
  margin-top: auto; padding: 6px 11px; border-radius: var(--r-pill);
  background: var(--color-accent-surface); color: var(--color-accent-text); font-size: 13px; font-weight: 700;
}
.services-page__closing {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 22px; padding: 26px 30px; border-radius: var(--r-lg);
  color: var(--color-on-action); background: var(--color-primary); box-shadow: var(--shadow-lift);
}
.services-page__closing div { display: grid; gap: 5px; }
.services-page__closing h3 { font-size: 23px; }
.services-page__closing p { color: var(--color-on-dark-secondary); font-size: 16px; }

@media (hover: hover) {
  .services-page__card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
  .services-page__card:hover .services-page__media img { transform: scale(1.035); }
}
@media (prefers-reduced-motion: reduce) {
  .services-page__card, .services-page__media img { transition: none; }
}
@media (min-width: 660px) {
  .services-page__hero { grid-template-columns: minmax(0, 1fr) auto; }
  .services-page__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services-page__card:last-child { grid-column: 1 / -1; }
  .services-page__card:last-child { display: grid; grid-template-columns: minmax(220px, .72fr) 1fr; }
  .services-page__card:last-child .services-page__media { aspect-ratio: auto; min-height: 280px; }
}
@media (min-width: 980px) {
  .services-page__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .services-page__card:last-child { grid-column: auto; display: flex; }
  .services-page__card:last-child .services-page__media { aspect-ratio: 4 / 3; min-height: 0; }
}
/* ברירת המחדל (לא /?offer=section): שישה כרטיסים יושבים בשתי שורות של שלושה, ובשתי
   עמודות אין כרטיס יתום שצריך להימתח לרוחב. */
@media (min-width: 660px) {
  .services-page__grid--six .services-page__card:last-child { grid-column: auto; display: flex; }
  .services-page__grid--six .services-page__card:last-child .services-page__media { aspect-ratio: 4 / 3; min-height: 0; }
}
@media (min-width: 980px) {
  .services-page__grid--six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ── כרטיסי שירות מתהפכים (עמוד הבית ו-/services) ──────────────────────
   המראה של הכרטיס עובר מה-article לשני הצדדים, וה-article נשאר במה עם
   perspective. שני הצדדים באותו תא grid: הגובה הוא של הצד הגבוה. */
.services-page__card.is-flip {
  background: none; border: 0; box-shadow: none; overflow: visible;
  perspective: 1400px; cursor: pointer; display: block;
}
.services-flip__inner {
  display: grid; height: 100%; transform-style: preserve-3d;
  transition: transform .6s cubic-bezier(.3, .7, .2, 1);
}
.is-flipped .services-flip__inner { transform: rotateY(180deg); }
.services-flip__face {
  grid-area: 1 / 1; min-width: 0; display: flex; flex-direction: column; overflow: hidden;
  background: var(--color-surface); border: 1px solid rgba(11, 33, 64, .1); border-radius: 22px;
  box-shadow: 0 8px 24px rgba(11, 33, 64, .07);
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  transition: opacity .5s ease, filter .5s ease;
}
/* כרטיס שחוזר לחזית כי נבחר כרטיס אחר נמוג במקום להתהפך: הכרטיס כבר
   עומד על החזית, והגב מונח מעליה בפנים קדימה ונמוג — כך התמונה נראית
   מתחתיו לאורך כל המעבר. השקיפות על הצד ולא על ה-inner, כדי לא לשטח
   את ה-preserve-3d. */
.is-dissolving .services-flip__back { transform: translateZ(1px); }
.is-dissolving.is-fading .services-flip__back { opacity: 0; filter: blur(6px); }
.is-snap .services-flip__inner, .is-snap .services-flip__face { transition: none; }
/* כל השירותים באותה שפה: כחול פעולה לטקסט ולסימנים, תכלת לרקע. ההבחנה
   בין השירותים היא באייקון ובכותרת, לא בצבע (ראו docs/design-colors.md). */
.services-page__card { --svc: var(--color-action); --svc-soft: var(--color-selected); }
.services-flip__back {
  position: relative; isolation: isolate;
  transform: rotateY(180deg); gap: 14px; padding: 30px 28px 24px;
  background: linear-gradient(165deg, var(--svc-soft) 0%, var(--color-surface) 62%);
  border-top: 4px solid var(--svc);
}
.services-flip__watermark {
  position: absolute; z-index: -1; inset-inline-end: -18px; bottom: -22px;
  width: 190px; height: 190px; color: var(--svc); opacity: .07; pointer-events: none;
}
/* margin-top: auto לסמל ולכפתור "חזרה": כשהפנים גבוהים מהרשימה, התוכן
   יושב באמצע הגב ולא נצמד לראשו. */
.services-flip__icon {
  margin-top: auto; width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center; color: var(--svc); background: var(--color-surface);
  box-shadow: 0 6px 18px rgba(11, 33, 64, .1);
}
.services-flip__icon .ico { width: 27px; height: 27px; }
.services-flip__back h3 {
  font-size: clamp(22px, 2vw, 27px); line-height: 1.2; letter-spacing: -.01em; color: var(--color-text);
}
.services-flip__lead {
  align-self: flex-start; margin: 0; padding: 4px 12px; border-radius: var(--r-pill);
  background: var(--color-surface); color: var(--svc); font-size: 13.5px; font-weight: 700; letter-spacing: .03em;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--svc) 22%, transparent);
}
.services-flip__list { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.services-flip__list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 17px; line-height: 1.5; color: var(--color-text);
}
.services-flip__tick { flex: none; width: 22px; height: 22px; margin-top: 2px; color: var(--svc); }
.services-flip__toggle {
  align-self: flex-start; margin-top: auto; padding: 6px 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 15px; font-weight: 700; color: var(--svc);
  display: inline-flex; align-items: center; gap: 7px;
}
.services-flip__toggle::after { content: '↻'; font-size: 16px; }

/* ── תחתית הגב: קו עדין, אזור CTA בצבע השירות, ו"חזרה" כקישור ──────────── */
.services-flip__rule {
  align-self: stretch; margin: 6px 0 0; border: 0;
  border-top: 1px solid color-mix(in srgb, var(--svc) 16%, transparent);
}
.services-flip__cta {
  align-self: stretch; display: grid; justify-items: center; gap: 12px;
  padding: 20px 18px 16px; border-radius: 20px; text-align: center;
  background: color-mix(in srgb, var(--svc-soft) 75%, var(--color-surface));
}
.services-flip__cta-title {
  margin: 0; font-size: 16.5px; font-weight: 700; line-height: 1.4;
  color: color-mix(in srgb, var(--svc) 60%, var(--color-text));
}
.services-flip__leave {
  width: 100%; min-height: 56px; padding: 0 20px; border: 0; border-radius: 18px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--svc); color: var(--color-on-action); font: inherit; font-size: 17px; font-weight: 700;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--svc) 22%, transparent);
  transition: background-color .2s ease, box-shadow .2s ease;
}
.services-flip__leave:hover {
  background: var(--color-action-hover);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--svc) 30%, transparent);
}
.services-flip__leave:focus-visible { outline: var(--focus-outline); outline-offset: 3px; }
.services-flip__cta-note { margin: 0; font-size: 13.5px; color: var(--color-text-secondary); }
/* "חזרה" בגב: קישור טקסט עם חץ, בלי מסגרת, במרכז. */
.services-flip__return { align-self: center; margin-top: 2px; padding: 6px 10px; }
.services-flip__return::after { content: none; }
.services-flip__return .ico { width: 18px; height: 18px; }
.services-flip__front .services-page__cta + .services-flip__toggle { margin-top: 0; }
/* הגב הגבוה קובע את גובה הכרטיס: העודף בחזית הולך קודם לתמונה (4/3 הוא
   המינימום, 440px התקרה), ורק מה שנשאר אחריה לרווח שמעל ה-CTA. */
.services-flip__front .services-page__media { flex: 1 1 auto; max-height: 440px; }
.services-flip__toggle:focus-visible, .services-page__cta:focus-visible {
  outline: var(--focus-outline); outline-offset: 3px; border-radius: 6px;
}
@media (hover: hover) {
  .services-page__card.is-flip:hover { box-shadow: none; }
  .services-page__card.is-flip:hover .services-flip__face { box-shadow: var(--shadow-lift); }
}
@media (min-width: 660px) {
  /* הכרטיס החמישי שנמתח לרוחב בשתי עמודות נשאר בפריסת עמודה במתהפך. */
  .services-page__card.is-flip:last-child { display: block; }
  .services-page__card.is-flip:last-child .services-page__media { aspect-ratio: 16 / 7; min-height: 0; }
}
@media (min-width: 980px) {
  .services-page__card.is-flip:last-child .services-page__media { aspect-ratio: 4 / 3; }
  /* בגובה הכרטיס משתתף גם הצד האחורי. בדסקטופ שלוש העמודות צרות יחסית,
     ולכן גב מרווח מדי מותח את כל השורה ומשאיר חלל לבן גדול בחזית. */
  .services-flip__back { gap: 8px; padding: 18px 20px 14px; }
  .services-flip__icon { margin-top: 0; width: 42px; height: 42px; }
  .services-flip__icon .ico { width: 22px; height: 22px; }
  .services-flip__back h3 { font-size: 21px; }
  .services-flip__lead { padding: 3px 10px; font-size: 12.5px; }
  .services-flip__list { margin-top: 2px; gap: 6px; }
  .services-flip__list li { gap: 8px; font-size: 15px; line-height: 1.35; }
  .services-flip__tick { width: 18px; height: 18px; margin-top: 1px; }
  .services-flip__rule { margin-top: 2px; }
  .services-flip__cta { gap: 7px; padding: 12px 14px 10px; border-radius: 16px; }
  .services-flip__cta-title { font-size: 15px; line-height: 1.3; }
  .services-flip__leave { min-height: 46px; padding-inline: 14px; border-radius: 14px; font-size: 15.5px; }
  .services-flip__cta-note { font-size: 12.5px; }
  .services-flip__return { margin-top: 0; padding: 3px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .services-flip__inner, .services-flip__face { transition: none; }
}
/* כרטיס הדירות אינו מתהפך — הוא קישור בגודל כרטיס. */
.services-page__card.is-link { perspective: none; }

/* ── ServiceLead: "להשאיר פרטים" מכרטיס שירות ─────────────────────────── */
.service-lead { width: min(100% - 24px, 460px); }
.service-lead__form { gap: 18px; }
.service-lead__fields { display: grid; gap: 12px; }
.service-lead__lede { margin: 0; color: var(--color-text-secondary); }
.service-lead__steps { list-style: none; margin: -2px 0 0; padding: 0; display: grid; gap: 8px; }
.service-lead__steps[hidden] { display: none; }
.service-lead__steps li { display: flex; align-items: center; gap: 10px; color: var(--color-primary); font-weight: 600; }
.service-lead__steps .ico { flex: none; width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--color-success); color: var(--color-on-action); }
.service-lead__needs { min-width: 0; margin: 0; padding: 0; border: 0; }
.service-lead__needs[hidden] { display: none; }
.service-lead__needs legend { margin-bottom: 8px; color: var(--color-text-secondary); font-size: 14px; font-weight: 700; }
.service-lead__needs-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.service-lead__need {
  min-width: 0; min-height: 46px; display: flex; align-items: center; gap: 9px; padding: 9px 11px;
  border: 1px solid var(--color-border); border-radius: 12px; background: var(--color-surface); cursor: pointer;
  color: var(--color-text); font-size: 14px; font-weight: 600; line-height: 1.3;
}
.service-lead__need:has(input:checked) { border-color: var(--color-action); background: var(--color-selected); }
.service-lead__need:has(input:focus-visible) { outline: var(--focus-outline); outline-offset: 2px; }
.service-lead__need input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--color-action); }
.service-lead__need span { min-width: 0; }
.service-lead__sent { display: none; justify-self: start; }
.service-lead__form.is-sent .service-lead__fields { display: none; }
.service-lead__form.is-sent .service-lead__sent { display: inline-flex; }
@media (max-width: 420px) {
  .service-lead__needs-options { grid-template-columns: 1fr; }
}

/* ── SignupSuccess: חלון ההרשמה שהצליחה (רק אחרי 200 מ-/api/service-request) ──
   מובייל תחילה: התמונה מוגבלת בגובה לפי המסך, הגוף נגלל בתוך החלון,
   והכפתור נשאר בהישג יד גם במסך נמוך. */
.signup-success {
  --confetti-warm: var(--color-border-stone); --confetti-accent: var(--color-accent);
  width: min(100% - 24px, 420px); max-height: calc(100dvh - 24px);
  border-radius: 28px; overflow: visible;
  box-shadow: 0 24px 60px rgba(11, 33, 64, .22), 0 4px 14px rgba(11, 33, 64, .08);
}
.signup-success::backdrop { background: rgba(11, 33, 64, .32); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); }
.signup-success__body {
  position: relative; display: grid; justify-items: center; gap: 0;
  max-height: calc(100dvh - 24px); overflow: auto; overscroll-behavior: contain;
  padding: 16px 16px 20px; border-radius: inherit; text-align: center;
}
.signup-success__head {
  display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; width: 100%;
  margin-bottom: 12px;
}
.signup-success__head .brand__word { grid-column: 2; justify-self: center; font-size: 26px; color: var(--color-primary); }
.signup-success__head .modal__close { grid-column: 3; }
.signup-success__photo {
  width: 100%; height: clamp(112px, 26dvh, 210px); margin: 0;
  border-radius: 22px; overflow: hidden; background: var(--color-surface-muted);
}
.signup-success__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.signup-success__mark {
  position: relative; z-index: 1; display: grid; place-items: center;
  width: 76px; height: 76px; margin-top: -40px; border-radius: 50%;
  background: var(--color-selected); color: var(--color-primary); border: 5px solid var(--color-surface);
  box-shadow: 0 10px 24px rgba(11, 33, 64, .16);
}
.signup-success__mark svg { width: 46px; height: 46px; }
.signup-success__ring, .signup-success__tick { stroke-dasharray: 1; stroke-dashoffset: 0; }
.signup-success__title {
  margin: 14px 0 0; font-family: var(--head); font-weight: 700;
  font-size: clamp(26px, 7.4vw, 32px); line-height: 1.15; color: var(--color-primary);
}
.signup-success__subtitle {
  margin: 8px 0 0; font-family: var(--head); font-weight: 600; font-size: clamp(15px, 4.2vw, 17px);
  line-height: 1.4; color: var(--color-primary); text-wrap: balance;
}
.signup-success__text { margin: 8px 0 0; max-width: 32ch; color: var(--color-text-secondary); line-height: 1.55; text-wrap: pretty; }
.signup-success__go {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; margin-top: 18px; background: var(--color-action); color: var(--color-on-action);
  font-size: 19px; font-weight: 700; box-shadow: 0 10px 22px rgba(47, 115, 186, .3);
}
.signup-success__go:hover { background: var(--color-action-hover); transform: translateY(-2px); }
.signup-success__go:focus-visible, .signup-success .modal__close:focus-visible {
  outline: var(--focus-outline); outline-offset: 3px;
}
.signup-success__foot {
  display: flex; align-items: center; gap: 12px; width: 100%;
  margin: 16px 0 0; color: var(--color-text-secondary); font-size: 15px;
}
.signup-success__foot::before, .signup-success__foot::after { content: ''; flex: 1; height: 1px; background: var(--color-divider); }

/* חשיפה מדורגת (~1 שנייה), בלי השהיה מלאכותית: התשובה כבר חיובית והכפתור
   ממוקד ולחיץ מהרגע הראשון. התמונה נכנסת, העיגול והסימן "מצוירים", הטקסט
   עולה, ובסוף — קונפטי. display:none של dialog סגור מאפס את כל האנימציות. */
.signup-success__photo { animation: signup-success-photo .45s cubic-bezier(.2, .8, .3, 1) both; }
.signup-success__mark { animation: signup-success-pop .45s .25s cubic-bezier(.2, .9, .28, 1.2) both; }
.signup-success__ring { animation: signup-success-draw .4s .38s ease-out both; }
.signup-success__tick { animation: signup-success-draw .28s .68s ease-out both; }
.signup-success__title, .signup-success__subtitle, .signup-success__text,
.signup-success__go, .signup-success__foot { animation: signup-success-rise .4s cubic-bezier(.2, .8, .3, 1) both; }
.signup-success__title { animation-delay: .5s; }
.signup-success__subtitle { animation-delay: .58s; }
.signup-success__text { animation-delay: .64s; }
.signup-success__go { animation-delay: .72s; }
.signup-success__foot { animation-delay: .8s; }

/* קונפטי: סרטים בכחול, אבן וטרקוטה סביב התמונה — מתחת לכותרת העליונה ומעל
   הטקסט — פעם אחת, אחרי שהסימן נסגר, ונעלמים. בלי לולאה ובלי לחסום לחיצות. */
/* z-index: התמונה והסימן מונפשים ולכן יוצרים stacking context משלהם; בלי
   זה הסרטים שמעל התמונה נבלעים מתחתיה. */
.signup-success__confetti { position: absolute; inset: 0; z-index: 2; overflow: hidden; border-radius: inherit; pointer-events: none; perspective: 400px; }
.signup-success__confetti i {
  position: absolute; top: var(--y); left: var(--x); width: 9px; height: 20px; border-radius: 3px;
  background: var(--c, var(--color-action)); opacity: 0;
  animation: signup-success-confetti 1.7s var(--d, 0s) cubic-bezier(.2, .7, .3, 1) both;
}
.signup-success__confetti i:nth-child(3n) { --c: var(--confetti-warm); }
.signup-success__confetti i:nth-child(3n+1) { --c: var(--viz-1); width: 8px; height: 22px; }
.signup-success__confetti i:nth-child(4n) { --c: var(--confetti-accent); height: 14px; }
@keyframes signup-success-photo {
  from { opacity: 0; transform: scale(.97); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes signup-success-pop {
  from { opacity: 0; transform: scale(.6); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes signup-success-draw {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}
@keyframes signup-success-rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@keyframes signup-success-confetti {
  0% { opacity: 0; transform: translateY(-16px) rotate(var(--r, 0deg)) rotateX(0); }
  12% { opacity: .95; }
  70% { opacity: .9; }
  100% { opacity: 0; transform: translateY(54px) rotate(calc(var(--r, 0deg) + 160deg)) rotateX(540deg); }
}
@media (max-height: 620px) {
  .signup-success__photo { height: clamp(88px, 20dvh, 140px); }
  .signup-success__mark { width: 64px; height: 64px; margin-top: -34px; }
  .signup-success__mark svg { width: 38px; height: 38px; }
  .signup-success__title { margin-top: 10px; }
  .signup-success__go { margin-top: 14px; }
}
@media (min-width: 640px) {
  .signup-success__body { padding: 22px 24px 26px; }
  .signup-success__title { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .signup-success__confetti { display: none; }
  .signup-success__photo, .signup-success__mark, .signup-success__ring, .signup-success__tick,
  .signup-success__title, .signup-success__subtitle, .signup-success__text,
  .signup-success__go, .signup-success__foot { animation: none; }
}

/* שליחת ההרשמה: הכפתור אומר מה קורה בזמן הבקשה האמיתית (לא השהיה מלאכותית). */
.service-lead__form button[type="submit"].is-sending { display: inline-flex; align-items: center; justify-content: center; gap: 10px; opacity: 1; cursor: progress; }
.service-lead__form button[type="submit"].is-sending::before {
  content: ''; width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, .45); border-top-color: #fff;
  animation: home-loading-spin .8s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .service-lead__form button[type="submit"].is-sending::before { animation: none; }
}
}

/* ── /homes/<id>: עמוד של נכס ─────────────────────────────────────────
   אותה שפה של המקטע: לבן, זית ותכלת-ים. התמונה והמפרט בראש, ואחריהם
   חלוקת הדירה, המפרט הטכני בקבוצות, המקור, ועוד נכסים. */
.project-page { display: grid; gap: 18px; }
.project-page__back { justify-self: start; }
/* עמוד הנכס בלי כרטיסים: משטח אחד, והפרדה ברווח ובקווים דקים בלבד.
   רק התמונות והתוכנית ממוסגרות. */
.project {
  display: grid; gap: clamp(40px, 5vw, 64px);
}
.project__hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(22px, 3.4vw, 44px);
  align-items: center; padding-top: 8px;
}
.project__media { margin: 0; border-radius: 22px; overflow: hidden; background: var(--color-selected); aspect-ratio: 4 / 3.3; }
.project__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.project__media { position: relative; }
.project__media--plan { background: var(--color-surface); border: 1px solid var(--color-border); }
/* תמונה שאינה של הנכס עצמו מסומנת — בכרטיס ובעמוד. */
.offer-card__note, .project__note {
  position: absolute; bottom: 8px; inset-inline-start: 8px; padding: 1px 6px; border-radius: 5px;
  background: rgba(11, 33, 64, .45); color: var(--color-on-action); font-size: 10.5px; font-weight: 500; line-height: 1.5; letter-spacing: .02em;
  backdrop-filter: blur(3px);
}
.project__note { bottom: 10px; inset-inline-start: 10px; font-size: 11px; }
.project__layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; gap: clamp(20px, 3vw, 40px); }
.project__layout-text { display: grid; gap: 18px; align-content: center; }
.project__plan-figure { margin: 0; padding: 10px; border-radius: 18px; background: var(--color-surface); }
.project__plan-figure img { width: 100%; height: auto; display: block; }
.project__plan-open {
  position: relative; display: block; width: 100%; padding: 0; border: 0; background: none;
  cursor: zoom-in; border-radius: 16px;
}
.project__plan-hint {
  position: absolute; bottom: 10px; inset-inline-start: 10px; padding: 6px 12px; border-radius: var(--r-pill);
  background: rgba(11, 33, 64, .72); color: var(--color-on-action); font-size: 13.5px; font-weight: 600;
  transition: background .16s ease;
}
.project__plan-open:hover .project__plan-hint { background: var(--color-action); }
.project__plan-open:focus-visible { outline: var(--focus-outline); outline-offset: 4px; }

/* ── תוכנית במסך מלא ─────────────────────────────────────────────────── */
.plan-viewer {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0;
  border: 0; background: var(--color-surface); color: var(--color-text);
}
.plan-viewer::backdrop { background: rgba(11, 33, 64, .6); }
.plan-viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.plan-viewer__bar {
  display: flex; justify-content: flex-end; gap: 10px; padding: 12px 14px;
  border-bottom: 1px solid var(--color-border);
}
.plan-viewer__btn {
  min-width: 44px; height: 44px; padding: 0 16px; border-radius: var(--r-pill); cursor: pointer;
  border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-text); font: inherit; font-size: 15px; font-weight: 700;
}
.plan-viewer__btn:hover { background: var(--color-selected); }
.plan-viewer__btn:focus-visible { outline: var(--focus-outline); outline-offset: 2px; }
.plan-viewer__stage { overflow: auto; display: grid; place-items: center; padding: 16px; overscroll-behavior: contain; }
.plan-viewer__stage img {
  max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; cursor: zoom-in;
}
/* בהגדלה התוכנית פי שניים מרוחב המסך, והבמה נגללת לכל הכיוונים. */
.plan-viewer.is-zoomed .plan-viewer__stage { place-items: start; }
.plan-viewer.is-zoomed .plan-viewer__stage img { max-width: none; max-height: none; width: 200%; cursor: zoom-out; }
@media (min-width: 900px) {
  .plan-viewer.is-zoomed .plan-viewer__stage img { width: 160%; }
}
@media (max-width: 899px) {
  .project__layout { grid-template-columns: 1fr; }
}
.project__media--plan img { object-fit: contain; padding: 14px; }
.project__intro { display: grid; gap: 14px; align-content: center; }
.project__tag { position: static; justify-self: start; font-size: 14px; }
.project__title { font-family: 'Rubik', sans-serif; font-size: clamp(34px, 4.4vw, 52px); line-height: 1.05; letter-spacing: -.02em; color: var(--color-text); }
.project__loc { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 7px 10px; color: var(--color-text-secondary); font-size: 17px; }
.project__loc .ico { width: 19px; height: 19px; }
.project__dev { padding-inline-start: 10px; border-inline-start: 1px solid var(--color-divider); color: var(--color-text-secondary); font-size: 15px; }
.project__summary { margin: 0; font-size: 18px; line-height: 1.65; color: var(--color-text-secondary); max-width: 46ch; }
.project__pending { margin: 0; padding: 12px 16px; border-radius: 14px; background: var(--color-selected); color: var(--color-text-secondary); font-size: 16px; }
/* שורות נתונים: קו דק מעל כל ערך, בלי קופסה. העמודות מתרחבות לפי התוכן,
   וערך ארוך נשבר בשורה במקום לברוח מהעמודה. */
.project__spec {
  margin: 6px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(128px, 100%), 1fr)); gap: 0 26px;
}
.project__spec-item { min-width: 0; padding: 12px 0 4px; border-top: 1px solid var(--color-border); display: grid; gap: 4px; align-content: start; }
.project__spec dt { font-size: 13px; font-weight: 500; color: var(--color-text-secondary); overflow-wrap: anywhere; }
.project__spec dd {
  margin: 0; font-family: 'Rubik', sans-serif; font-size: clamp(22px, 2vw, 26px); font-weight: 600; line-height: 1.2;
  color: var(--color-text); overflow-wrap: anywhere;
}
.project__spec dd small { margin-inline-start: 3px; font-family: var(--body); font-size: 14px; font-weight: 500; color: var(--color-text-secondary); }
.project__spec dd.is-text { padding-top: 4px; font-size: 17px; }
/* עובדות הבניין בראש העמוד */
.project__facts { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.project__fact {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: var(--r-pill);
  border: 1px solid var(--color-border); font-size: 15px; font-weight: 600; color: var(--color-text);
}
.project__fact b { font-family: 'Rubik', sans-serif; color: var(--color-action); }
.project__fact--status { background: var(--color-selected); border-color: var(--color-border); color: var(--color-action-strong); }
.project__fact--status .ico { width: 16px; height: 16px; }
.project__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.project__plan { background: var(--color-action); box-shadow: 0 10px 22px rgba(11, 33, 64, .22); text-decoration: none; }
.project__plan:hover { background: var(--color-action-hover); }
.project__section { display: grid; gap: 18px; }
.project > .project__section ~ .project__section { padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--color-divider); }
/* הדמיות: פס גלילה לרוחב */
.project__gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 32%); gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin;
}
.project__shot {
  position: relative; display: block; padding: 0; border: 0; border-radius: 18px; overflow: hidden;
  aspect-ratio: 3 / 2; background: var(--color-surface-muted); cursor: zoom-in; scroll-snap-align: start;
}
.project__shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.project__shot:focus-visible { outline: var(--focus-outline); outline-offset: 3px; }
/* הדירות בפרויקט: לשוניות עם קו תחתון, ומתחתן הדירה שנבחרה */
.project__tabs {
  display: flex; gap: clamp(18px, 3vw, 34px); overflow-x: auto; scrollbar-width: none;
  border-bottom: 1px solid var(--color-border);
}
.project__tabs::-webkit-scrollbar { display: none; }
.project__tab {
  flex: none; display: grid; gap: 1px; padding: 6px 0 12px; margin-bottom: -1px; text-align: start; cursor: pointer;
  border: 0; border-bottom: 2.5px solid transparent; background: none; font: inherit; color: inherit;
  transition: border-color .15s ease;
}
.project__tab b { font-family: 'Rubik', sans-serif; font-size: 16.5px; font-weight: 600; color: var(--color-text-secondary); }
.project__tab span { font-size: 13.5px; color: var(--color-text-secondary); }
.project__tab:hover b { color: var(--color-text); }
.project__tab[aria-selected="true"] { border-bottom-color: var(--color-action); }
.project__tab[aria-selected="true"] b { color: var(--color-action); font-weight: 700; }
.project__tab:focus-visible { outline: var(--focus-outline); outline-offset: 2px; }
.project__unit {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(20px, 3vw, 36px);
  align-items: start; padding-top: 26px;
}
.project__unit-text { display: grid; gap: 14px; }
.project__unit-title { font-family: 'Rubik', sans-serif; font-size: 26px; color: var(--color-text); }
.project__unit-rooms { font-size: 15.5px; line-height: 1.7; color: var(--color-text-secondary); }
.project__unit-source { font-size: 13px; color: var(--color-text-secondary); }
.project__h2 { font-family: 'Rubik', sans-serif; font-size: clamp(24px, 2.6vw, 30px); color: var(--color-text); }
.project__rooms { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.project__rooms li {
  padding: 10px 18px; border-radius: var(--r-pill); background: var(--color-surface); border: 1px solid var(--color-border);
  font-size: 16px; font-weight: 600; color: var(--color-text); box-shadow: 0 4px 12px rgba(11, 33, 64, .05);
}
/* המפרט הטכני: קבוצות אחת מעל השנייה — כותרת בצד, הפריטים בשתי עמודות */
.project__features { display: grid; }
.project__feature { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 10px 28px; padding: 22px 0; }
.project__feature:first-child { padding-top: 4px; }
.project__feature + .project__feature { border-top: 1px solid var(--color-border); }
.project__feature h3 { font-size: 18px; color: var(--color-text); }
.project__feature ul { margin: 0; padding: 0; list-style: none; columns: 2 260px; column-gap: 32px; }
.project__feature li {
  display: flex; align-items: flex-start; gap: 9px; padding: 3px 0 6px; break-inside: avoid;
  font-size: 15.5px; line-height: 1.5; color: var(--color-text-secondary);
}
.project__tick { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--color-action-strong); }
.project__source {
  display: grid; gap: 6px; padding-top: 18px; border-top: 1px solid var(--color-divider);
  color: var(--color-text-secondary); font-size: 13.5px; line-height: 1.6;
}
.project__source p { margin: 0; }
.project__others { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.project__other {
  display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 18px; text-decoration: none;
  background: var(--color-surface); border: 1px solid rgba(11, 33, 64, .1); box-shadow: 0 6px 16px rgba(11, 33, 64, .06);
  transition: transform .16s ease, box-shadow .16s ease;
}
.project__other:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.project__other img { width: 86px; height: 70px; border-radius: 12px; object-fit: cover; flex: none; }
.project__other-text { display: grid; gap: 2px; }
.project__other-text strong { font-family: 'Rubik', sans-serif; font-size: 18px; color: var(--color-text); }
.project__other-text span { font-size: 14.5px; color: var(--color-text-secondary); }
@media (max-width: 899px) {
  .project__hero, .project__unit { grid-template-columns: 1fr; }
  .project__gallery { grid-auto-columns: minmax(240px, 46%); }
}
@media (max-width: 600px) {
  .project__feature { grid-template-columns: 1fr; }
  .project__gallery { grid-auto-columns: 82%; }
  .project__spec dd { font-size: 21px; }
  .project__actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .project__other, .project__tab { transition: none; }
}

/* ── /homes ──────────────────────────────────────────────────────────── */
.homes-page { display: grid; gap: 18px; }
@media (max-width: 659px) {
  .services-page { gap: 30px; }
  .services-page__hero { padding-top: 22px; }
  .services-page__note { justify-self: start; transform: none; max-width: none; }
  html[dir="rtl"] .services-page__note { transform: none; }
  .services-page__note::after { display: inline; margin-inline-start: 8px; font-size: 22px; }
  .services-page__closing { padding: 24px 22px; }
  .services-page__closing .btn { width: 100%; padding-inline: 18px; }
}

/* ── kit d'atterrissage ─────────────────────────────── */
#thanks-title { font-size: clamp(26px, 5.6vw, 38px); margin: 14px 0 10px; }
.pros { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 28px 0; }
.pro { background: var(--color-surface); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow); }
.pro__head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.pro__mono {
  width: 56px; height: 56px; border-radius: var(--r-pill); background: var(--color-selected);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--head); font-size: 18px; font-weight: 700; color: var(--color-action-strong);
}
.pro__name { font-family: var(--head); font-size: 18px; font-weight: 700; }
.pro__role { font-size: 14px; color: var(--color-text-secondary); }
.pro__pitch { font-size: 15px; line-height: 1.65; color: var(--color-text-secondary); margin-bottom: 16px; }
.pro__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.pro__tag { padding: 6px 14px; background: var(--color-selected); border-radius: var(--r-pill); font-size: 13px; font-weight: 600; color: var(--color-action-strong); }
.pro .btn { width: 100%; }

/* התחתית כולה ממורכזת: הברכה, שורת המקור ושורת הקרדיט יושבות על אותו
   ציר, כדי שהחתימה תיראה כגוש אחד ולא כטקסט שנדחק לשולי העמוד. */
.sitefoot {
  max-width: 1180px; margin: 0 auto; padding: 22px 20px 40px;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  font-size: 14px; color: var(--color-text-secondary); text-align: center;
}
.sitefoot__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* הברכה מתפילת העמידה חותמת את האתר. הניקוד מחייב שורה מרווחת, ולכן
   line-height גבוה — ולא הדגשה: היא סוגרת, לא צועקת. */
.sitefoot__blessing {
  margin: 0; padding: 8px 0 0;
}
.sitefoot__blessing p {
  margin: 0 0 8px; font-family: var(--head); font-size: 12px; font-weight: 500;
  line-height: 2; color: var(--color-text-secondary);
}
.sitefoot__blessing cite { font-size: 13px; font-style: normal; color: var(--color-text-secondary); }
/* הברכה רק בעמוד הבית: בשאר המסכים של האפליקציה היא מוסתרת. */
body:not([data-step="landing"]):not([data-step="landing-v2"]) .sitefoot__blessing { display: none; }

/* ── responsive ─────────────────────────────────────── */
/* מובייל: ה-CTA עולה מעל מדדי האמון כדי שיהיה נראה מוקדם, בלי גלילה. */
@media (max-width: 759px) {
  /* le libellé du CTA porte le nom de la ville : il lui faut la largeur,
     sinon il part sur trois lignes et la flèche flotte à côté du bloc. */
  .guide__form .btn { padding: 15px 18px; font-size: 16px; }
  .hero__text { gap: 18px; }
  .hero__text .hero__cta { order: 5; }
  .hero__text .trust { order: 6; }
  .hero__text h1 { max-width: none; }
  .trust { gap: 8px 14px; }
}
@media (min-width: 760px) {
  .how__steps { flex-direction: row; align-items: flex-start; gap: 10px; }
  .how__link { display: block; flex: 0 1 130px; margin-top: 31px; }
  .cities ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 980px) {
  main { padding: 20px 32px 80px; }
  .hero { grid-template-columns: 1.05fr .95fr; gap: 52px; padding: 28px 0 48px; }
  .hero__text { gap: 22px; }
  .how { margin-bottom: 52px; }
  .pros { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cities ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ── השאלון הסטטיסטי (/survey) ────────────────────────────────────────
   רוב העמוד מורכב מרכיבים שכבר קיימים למעלה — .card · .quiz · .option ·
   .progress · .guide · .phone. כאן רק מה שייחודי לו. */
#step-boot .loading, #step-boot-error .quiz { margin-top: 40px; }
#step-boot-error .quiz { display: grid; gap: 16px; justify-items: start; }

/* ── מסך הקשר ──────────────────────────────────────────────────────────
   סדר: הפעולה קודם, האמון אחריה. גריד אחד — 760px — משותף לסרגל העליון,
   לכרטיס השאלה ולכרטיסים כאן, כדי שהקצוות יתיישרו לאורך כל המסע. */

#step-contact, #step-thanks { display: grid; gap: 14px; max-width: 760px; margin: 0 auto; }
#step-contact { padding-top: 4px; }

/* הכותרת קטנה בכ-12% מקודמתה: היא עדיין ראשונה בהיררכיה, בלי לצעוק. */

/* אישור שקט — ירקרק עדין, לא הודעת מערכת */

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

/* ── "קצת על SaNes" — משני בכוונה: נמוך, שקט, ובצבע רך יותר ─────────── */

/* 720px כמבוקש — תקרה, לא מידה: הטקסט קוצר כך שהוא מסתדר בשתי שורות
   ולא מגיע לרוחב הזה בפועל על מסך רגיל. */

/* אותו גרדיאנט כחול/כתום, מעורבב כ-45% לעבר צבע הבסיס — כמעט בלתי מורגש.
   מוגבל לעמוד השאלון כדי לא לשנות את דף הנחיתה בלי שביקשו. */

/* ── עמודים משפטיים (/legal/…) ─────────────────────────────────────────
   טקסט ארוך לקריאה: מידה צרה יותר מהכרטיסים, ומשקל טיפוגרפי שקט. */
.legal-page .topbar { max-width: 820px; }
.legal { max-width: 820px; margin: 0 auto; padding: 4px 0 40px; }
.legal h1 { font-size: clamp(28px, 5vw, 38px); margin-bottom: 6px; }
.legal h2 {
  font-size: 20px; margin: 34px 0 10px; padding-top: 18px;
  border-top: 1px solid var(--color-border);
}
.legal h3 { font-size: 16.5px; margin: 20px 0 6px; color: var(--color-text); }
.legal p { font-size: 15.5px; line-height: 1.8; color: var(--color-text-secondary); margin-bottom: 12px; max-width: 70ch; }
.legal strong { color: var(--color-text); font-weight: 600; }
.legal code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13.5px;
  background: var(--color-selected); border-radius: 5px; padding: 1px 6px; direction: ltr; display: inline-block;
}
.legal__meta { font-size: 13.5px; color: var(--color-text-secondary); margin-bottom: 20px; }
.legal__lede { font-size: 17px; line-height: 1.75; }

/* הודעת הטיוטה — בולטת בכוונה, כדי שלא תישכח לפני השקה */
.legal__draft {
  background: var(--color-accent-surface); color: var(--color-accent-text);
  border-inline-start: 4px solid var(--color-accent);
  border-radius: var(--r-sm); padding: 14px 18px; margin: 0 0 24px;
  font-size: 14.5px; line-height: 1.7;
}
.legal__draft strong { color: var(--color-accent-text); }

.legal__list { margin: 0 0 14px; padding-inline-start: 22px; display: grid; gap: 8px; }
.legal__list li { font-size: 15.5px; line-height: 1.75; color: var(--color-text-secondary); max-width: 68ch; }

.legal__note {
  background: var(--color-selected); border-radius: var(--r-sm); padding: 12px 16px;
  font-size: 14.5px; line-height: 1.7;
}

/* טבלה: גוללת בתוך עצמה, כדי שהעמוד לא יזוז לרוחב במובייל */
.legal__tablewrap { overflow-x: auto; margin: 0 0 14px; }
.legal__table { border-collapse: collapse; width: 100%; min-width: 420px; font-size: 14.5px; }
.legal__table th, .legal__table td {
  text-align: start; padding: 10px 14px; border-bottom: 1px solid var(--color-border); line-height: 1.6;
}
.legal__table thead th { color: var(--color-text-secondary); font-weight: 600; font-size: 13.5px; }
.legal__table td { color: var(--color-text-secondary); }

.legal__contact { background: var(--color-surface); border-radius: var(--r-sm); padding: 14px 18px; }
.legal__back { margin-top: 30px; font-weight: 600; }

/* ── התשובה החופשית היחידה בשאלון ──────────────────────────────────────── */
/* שדות הקלט של השאלון נושאים את אותו משקל של כפתור אופציה: אותו גובה, אותה
   מסגרת, אותו גופן. בלי הבסיס הזה הדפדפן מצייר תיבה של 13px עם קו דק אחד,
   והשאלה שנענית בהקלדה נראית כמו טופס זר בתוך השאלון. */
.field {
  min-height: 54px; padding: 12px 16px; border: 2px solid var(--color-border-strong);
  border-radius: var(--r-sm); background: var(--color-surface);
  font-family: var(--body); font-size: 17px; color: var(--color-text);
  transition: border-color .12s ease, box-shadow .12s ease;
}
.field::placeholder { color: var(--color-text-secondary); }
.field:focus { outline: none; border-color: var(--color-selected-border); box-shadow: var(--focus-ring); }
.combo.is-picked .field { border-color: var(--color-selected-border); background: var(--color-selected); box-shadow: var(--shadow-selected); }

.field--note { width: 100%; min-height: 92px; resize: vertical; line-height: 1.55; }
/* שדה בשורה אחת: השלמת עיר, ו"אחר · מאיזו מדינה". גדל למלא את השורה כדי
   שהכפתור שלצידו יישאר בגודלו ולא ייחתך במסך צר. */
.field--inline { flex: 1 1 auto; min-width: 0; }

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

/* ── השלמת עיר: רשימה משלנו, לא של הדפדפן ──────────────────────────────
   ל-<datalist> אין שום אחיזה ב-CSS — הדפדפן מצייר אותה בגופן ובגודל שלו,
   וברשימה בעברית זה נראה כמו תפריט מערכת שנפל על העמוד. הרשימה כאן היא
   אלמנטים רגילים, ולכן היא יורשת את הטיפוגרפיה והכיווניות של השאלון. */
.combo { position: relative; flex: 1 1 auto; min-width: 0; }
.combo .field { width: 100%; }
.combo__list {
  position: absolute; inset-inline: 0; top: calc(100% + 6px); z-index: 30;
  margin: 0; padding: 6px; list-style: none;
  max-height: 264px; overflow-y: auto; overscroll-behavior: contain;
  background: var(--color-surface); border: 2px solid var(--color-border); border-radius: var(--r-sm);
  box-shadow: var(--shadow-card);
}
.combo__option {
  padding: 11px 14px; border-radius: 10px; cursor: pointer;
  font-family: var(--body); font-size: 17px; color: var(--color-text); line-height: 1.3;
}
.searchable__option { display: flex; align-items: center; gap: 10px; }
.searchable__option.is-selected { font-weight: 700; }
.searchable__flag {
  flex: 0 0 1.6em; font-size: 22px; line-height: 1; text-align: center;
  font-family: system-ui, sans-serif;
}
.searchable__list { text-align: start; }
.combo__option.is-active { background: var(--color-selected); color: var(--color-action-strong); font-weight: 600; }
.searchable__empty { cursor: default; color: var(--color-text-secondary); }
.searchable__status {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
/* במובייל רשימת המדינות צפה מעל כפתור "הבא" ומסתירה אותו. בטלפון היא
   יורדת לזרימת העמוד ודוחפת את "הבא" מטה, ונמוכה מספיק כדי שיישאר במסך
   גם כשהמקלדת פתוחה. */
@media (max-width: 640px) {
  .searchable--country .combo__list { position: static; margin-top: 6px; max-height: min(264px, 36dvh); }
}
@media (hover: hover) {
  .combo__option:hover { background: var(--color-selected); color: var(--color-action-strong); }
}

.note__actions { display: flex; align-items: center; gap: 16px; margin-top: 14px; flex-wrap: wrap; }
.quiz__nav {
  display: flex; align-items: center; gap: 12px; margin-top: var(--quiz-space-4);
  padding-top: var(--quiz-space-4); padding-bottom: env(safe-area-inset-bottom, 0px);
  border-top: 1px solid rgba(47, 115, 186, .2);
}
.quiz__nav .btn { min-width: 118px; }

/* מסך אזורי המגורים (public/region-map.js). לכל אזור גוון פסטל משלו, כמו בהדמיה
   של הבעלים (2026-10-11, D-022): חריג מתועד לכלל "אין קשת" (docs/design-colors.md).
   הגוונים חיים רק כאן, ב-region-tone--<key>; --tone ממלא את השטח, ו---tone-ink
   (כהה יותר, 3:1 לפחות על לבן) צובע את האייקון בתווית. אזור שנבחר בכחול הפעולה עם
   ✓ בתווית, כך שהבחירה לא תלויה בגוון. הים והאגמים בתכלת. */
.region-tone--north { --tone: #B9DDA0; --tone-ink: #4F7F33; }
.region-tone--haifa_carmel { --tone: #A9D3F3; --tone-ink: #2F74B0; }
.region-tone--sharon { --tone: #B5E2CD; --tone-ink: #2A8466; }
.region-tone--gush_dan { --tone: #F6D98F; --tone-ink: #9A6C14; }
.region-tone--jerusalem { --tone: #EDBDC1; --tone-ink: #A24E58; }
.region-tone--south { --tone: #F5CEA3; --tone-ink: #A5622A; }
.region-tone--judea_samaria { --tone: #CDC5EE; --tone-ink: #6656B0; }
.quiz--region-map { --region-bleed: var(--quiz-space-6); max-width: 860px; }
.options--region-map { margin-top: var(--quiz-space-4); gap: 0; }
.region-map { display: grid; gap: 14px; justify-items: start; }
.region-map__frame {
  /* בדסקטופ המפה לא דוחפת את הכותרת ואת פס ההמשך אל מתחת לקפל. */
  --map-h: clamp(560px, calc(100vh - 170px), 780px);
  position: relative; justify-self: stretch; height: var(--map-h); overflow: hidden;
  border-radius: 20px; background: var(--color-info-surface);
  box-shadow: inset 0 0 0 1px var(--color-border);
}
.region-map__canvas {
  position: absolute; inset-block: 0; left: 50%; height: 100%; aspect-ratio: var(--map-ratio);
  /* מרכז ישראל (קו אורך 35.05) נמצא ב-52% מרוחב הבד: הוא באמצע המסגרת בכל רוחב. */
  translate: -52% 0;
}
.region-map__svg { display: block; width: 100%; height: 100%; }
.region-map__land { fill: color-mix(in srgb, var(--color-border-stone) 14%, var(--color-page)); }
.region-map__water { fill: color-mix(in srgb, var(--color-action) 14%, var(--color-info-surface)); }
.region-map__water--sea { stroke: color-mix(in srgb, var(--color-border) 70%, var(--color-surface)); stroke-width: 1.4; }
.region-map__water--lake { pointer-events: none; }
.region-map__region {
  fill: var(--tone, color-mix(in srgb, var(--color-border-stone) 46%, var(--color-surface)));
  stroke: var(--color-surface); stroke-width: 2.4; stroke-linejoin: round;
  cursor: pointer; transition: fill .18s ease;
}
.region-map__country { filter: drop-shadow(0 3px 6px rgba(11, 33, 64, .1)); }
.region-map__region.is-hover { fill: color-mix(in srgb, var(--tone) 72%, var(--tone-ink)); }
.region-map__region.is-selected { fill: color-mix(in srgb, var(--color-action) 88%, var(--color-surface)); }
.region-map__region.is-selected.is-hover { fill: var(--color-action); }
@media (hover: hover) {
  .region-map__region:hover { fill: color-mix(in srgb, var(--tone) 72%, var(--tone-ink)); }
  .region-map__region.is-selected:hover { fill: var(--color-action); }
}
.region-map__place {
  fill: var(--color-text-secondary); font-family: var(--head); font-size: 22px; font-weight: 500;
  text-anchor: middle; pointer-events: none; user-select: none;
}
.region-map__place--sea { fill: var(--color-link); font-size: 25px; letter-spacing: .02em; }
.region-map__labels { position: absolute; inset: 0; pointer-events: none; }
.region-pill {
  position: absolute; translate: -50% -50%; pointer-events: auto;
  display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 5px 11px 5px 9px;
  background: var(--color-surface); color: var(--color-text);
  border: 1px solid color-mix(in srgb, var(--tone, var(--color-border-stone)) 75%, var(--color-surface));
  border-radius: var(--r-pill); box-shadow: 0 4px 12px rgba(11, 33, 64, .14);
  font-family: var(--head); font-size: 13.5px; font-weight: 700; line-height: 1.15; white-space: nowrap;
  cursor: pointer; transition: background .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.region-map__icon { width: 18px; height: 18px; flex: none; color: var(--tone-ink, var(--color-accent-text)); }
.region-map__check {
  width: 18px; height: 18px; flex: none; padding: 1.5px; border-radius: 50%;
  background: var(--color-surface); color: var(--color-action-strong);
}
.region-pill .region-map__check, .region-map__none .region-map__check { display: none; }
.region-pill.is-selected .region-map__check, .region-map__none.is-selected .region-map__check { display: block; }
.region-pill.is-selected .region-map__icon { display: none; }
.region-pill.is-selected {
  background: var(--color-action-strong); border-color: var(--color-action-strong); color: var(--color-on-action);
  box-shadow: 0 6px 16px rgba(11, 33, 64, .24);
}
.region-pill:focus-visible, .region-map__none:focus-visible { outline: var(--focus-outline); outline-offset: 3px; }
@media (hover: hover) {
  .region-pill:not(.is-selected):hover { border-color: var(--color-border-hover); background: var(--color-surface-hover); }
  .region-pill.is-selected:hover { background: var(--color-action-hover); border-color: var(--color-action-hover); }
}
.region-pill:active { transform: scale(.96); }
.region-map__chips { display: flex; flex-wrap: wrap; gap: 10px; }
.region-map__chips--primary { margin-bottom: 2px; }
.region-map__none {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 18px;
  background: var(--color-surface); color: var(--color-text);
  border: 1.5px solid var(--color-border); border-radius: var(--r-pill);
  font-family: var(--head); font-size: 15px; font-weight: 600; cursor: pointer;
  transition: background .16s ease, border-color .16s ease;
}
.region-map__none .region-map__check { background: var(--color-action-strong); color: var(--color-on-action); }
.region-map__none.is-selected { background: var(--color-selected); border-color: var(--color-selected-border); }
@media (hover: hover) {
  .region-map__none:not(.is-selected):hover { border-color: var(--color-border-hover); background: var(--color-surface-hover); }
}
.quiz__nav--summary { justify-content: space-between; gap: 16px; }
/* פס הסיכום נדבק לתחתית המסך בכל רוחב: הבחירה וההמשך נראים בזמן שגוללים במפה. */
.quiz--region-map .quiz__nav {
  position: sticky; bottom: 0; z-index: 3;
  margin-inline: calc(var(--region-bleed) * -1); padding-inline: var(--region-bleed);
  padding-bottom: calc(var(--quiz-space-4) + env(safe-area-inset-bottom, 0px));
  background: var(--color-surface);
}
.region-summary { display: grid; flex: 1 1 auto; gap: 2px; min-width: 0; }
.region-summary__title { color: var(--color-text); font-family: var(--head); font-size: 18px; font-weight: 700; line-height: 1.25; }
.region-summary__names {
  overflow: hidden; color: var(--color-text-secondary); font-size: 14.5px; font-weight: 600;
  text-overflow: ellipsis; white-space: nowrap;
}
.quiz__nav.quiz__nav--summary .btn { flex: none; width: auto; min-width: 148px; }
@media (max-width: 520px) {
  .quiz--region-map { --region-bleed: 18px; }
  /* בטלפון המפה מגיעה עד קצות הכרטיס, ופס הסיכום נדבק לתחתית המסך כמו גיליון. */
  .region-map__frame { --map-h: 760px; margin-inline: calc(var(--region-bleed) * -1); border-radius: 0; box-shadow: none; }
  .region-map__chips { margin-top: 2px; }
  .quiz--region-map .quiz__nav {
    margin-bottom: calc(-24px - env(safe-area-inset-bottom, 0px));
    padding-top: 14px; padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    border-top: 0; border-radius: 22px 22px 0 0;
    box-shadow: 0 -10px 28px rgba(11, 33, 64, .1);
  }
  .quiz__nav.quiz__nav--summary .btn { min-width: 128px; }
  .region-summary__title { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .region-map__region, .region-pill, .region-map__none { transition: none; }
  .region-pill:active { transform: none; }
}

.choice-with-locations { display: grid; gap: 20px; }
.choice-with-locations__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.nearby-choice-card {
  display: flex; min-height: 112px; align-items: center; gap: 12px; padding: 18px;
  background: var(--color-surface); border: 2px solid var(--color-border); border-radius: 18px; color: var(--color-text);
  cursor: pointer; text-align: start; box-shadow: var(--shadow-card);
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.nearby-choice-card:hover { border-color: var(--color-border-hover); background: var(--color-surface-hover); }
.nearby-choice-card.is-picked {
  background: var(--color-selected); border-color: var(--color-selected-border);
  box-shadow: 0 0 0 1px rgba(47, 115, 186, .08), var(--shadow-selected);
}
.nearby-choice-card__icon {
  display: grid; flex: 0 0 42px; width: 42px; height: 42px; place-items: center;
  border-radius: var(--r-pill); background: var(--color-selected); color: var(--color-action);
}
.nearby-choice-card__icon .ico { width: 23px; height: 23px; }
.nearby-choice-card__text { display: grid; gap: 4px; }
.nearby-choice-card__text strong { font-family: var(--head); font-size: 18px; }
.nearby-choice-card__text small { color: var(--color-text-secondary); font-size: 14px; line-height: 1.4; }
.choice-with-locations__details {
  display: grid; gap: 14px; padding: 22px; border: 1px solid var(--color-border); border-radius: var(--r-sm);
  background: linear-gradient(135deg, rgba(245, 241, 235, .58), var(--color-surface) 52%);
}
.choice-with-locations__details h3 { margin: 0; font-size: 21px; }
.choice-with-locations__details p { margin: -7px 0 2px; color: var(--color-text-secondary); }
.location-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.location-chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px 7px 7px; background: var(--color-selected); border-radius: 999px; color: var(--color-action-strong); font-weight: 700; }
.location-chip__remove { display: grid; width: 24px; height: 24px; place-items: center; padding: 0; border: 0; border-radius: 50%; background: rgba(47, 115, 186, .16); color: var(--color-action-strong); cursor: pointer; }
.location-chip__remove .ico { width: 14px; height: 14px; }

@media (max-width: 520px) {
  .choice-with-locations__cards { grid-template-columns: 1fr; }
  .nearby-choice-card { min-height: 78px; padding: 14px; }
  .choice-with-locations__details { padding: 18px; }
  .quiz__nav { padding-bottom: max(6px, env(safe-area-inset-bottom, 0px)); }
  .quiz__nav .btn { width: 100%; }
}

/* ── עמוד העיר (/city/:id) ──────────────────────────────────────────────────
   ארבעה בלוקים בטור אחד, בכל רוחב: מי העיר → מה אספנו → למי מתאימה →
   מה אנחנו מציעים. אותם רכיבים של עמוד התוצאות (.card · .service ·
   .guide__form · .citycard), כדי שהמסע יראה כמו מקום אחד. */
#step-city { display: grid; gap: 22px; }
#step-city > .linkish { justify-self: start; }
#step-city .section-title { display: flex; align-items: center; gap: 9px; }

.city__hero { display: grid; gap: 12px; justify-items: start; }
.city__hero h2 { font-size: clamp(27px, 5.6vw, 38px); }
.city__hero .lede { color: var(--color-text-secondary); }
.city__hero .btn { margin-top: 6px; }
.city__highlights { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 9px; }
.city__highlights li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 15.5px; line-height: 1.55; color: var(--color-text-secondary);
}
.city__highlights .ico { color: var(--color-action); margin-top: 3px; }

.city__block { display: grid; gap: 12px; }
.city__block > .muted { font-size: 15px; }
.city__data { display: grid; gap: 14px; }

/* קבוצת נתונים: תווית מול מספר, והמקור והתאריך מתחת למספר — כל נתון נושא
   את המקור שלו על עצמו, ולא בהערה אחת בתחתית העמוד. */
.datagroup__title { font-size: 17px; }

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

.suit {
  background: var(--color-surface); border-radius: var(--r); box-shadow: var(--shadow);
  padding: 16px 18px; display: grid; gap: 9px;
  border-inline-start: 4px solid var(--color-action);
}

/* השירותים בעמוד העיר נושאים טופס, ולכן הכרטיס גבוה מזה של עמוד התוצאות */
#city-services .service { justify-items: stretch; }
#city-services .guide__list li { display: flex; align-items: flex-start; gap: 9px; }
#city-services .guide__list .ico { color: var(--color-action); margin-top: 3px; }
#city-services .guide__form { margin-top: 4px; }

/* רשימת הערים האחרות היא אותה רשימה של דף הנחיתה (.cities ul), ולכן היא
   מקבלת את אותן עמודות בכל רוחב — אין כאן כלל שני לאותו רכיב. */
@media (min-width: 760px) {
  #step-city .city__hero { padding: 30px 32px; }
}

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

   --viz-1..3  סולם מסודר של גוון אחד, מבהיר לכהה. הגילאים הם סדר ולא
               זהויות, ולכן שלושה גוונים מתחרים היו אומרים דבר שאינו נכון.
   --pair-1/2  שתי זהויות — עיר מול עיר בעמוד ההשוואה. הצבע נדבק לעיר
               לאורך כל הטבלה, כך שהעין לומדת אותו פעם אחת.

   שתי הערכות נגזרות מפלטת "כחול ירושלים": הסולם הוא כחול-תכלת-נייבי,
   והזוג הוא כחול פעולה מול טרקוטה. בכל מקרה אף גרף כאן אינו נשען על צבע
   בלבד — לכל חלק יש מספר כתוב לצדו. */
:root {
  --viz-1: color-mix(in srgb, var(--jlm-blue) 42%, var(--jlm-warm-white));
  --viz-2: var(--jlm-blue);
  --viz-3: var(--jlm-navy);
  --viz-track: var(--jlm-sky);
  --pair-1: var(--jlm-blue);
  --pair-2: var(--jlm-terracotta);
  --pair-1-soft: var(--jlm-sky);
  --pair-2-soft: var(--color-accent-surface);
  /* גוון כהה לכל עיר, **לטקסט בלבד**, כדי שהצ'יפ יעבור AA על הרקע הרך שלו. */
  --pair-1-ink: var(--jlm-blue-hover);
  --pair-2-ink: var(--color-accent-text);
}

.charts { display: grid; gap: 14px; margin-bottom: 14px; }
.chart { padding: 20px 22px; display: grid; gap: 12px; margin: 0; }
.chart__title { font-family: var(--head); font-size: 16px; font-weight: 700; color: var(--color-text); }
.chart__svg--donut { width: 148px; height: 148px; justify-self: center; }
/* הרווח בין הקשתות נוצר מקיצור כל קשת (ראו donutChart), והקצה עגול */
.chart__arc { stroke-linecap: round; }
.chart__arc--1 { stroke: var(--viz-1); }
.chart__arc--2 { stroke: var(--viz-2); }
.chart__arc--3 { stroke: var(--viz-3); }

.chart__legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.chart__legend li { display: flex; align-items: center; gap: 9px; font-size: 14.5px; }
.chart__swatch { width: 12px; height: 12px; border-radius: 4px; flex-shrink: 0; }
.chart__swatch--seq-1 { background: var(--viz-1); }
.chart__swatch--seq-2 { background: var(--viz-2); }
.chart__swatch--seq-3 { background: var(--viz-3); }
.chart__swatch--pair-1 { background: var(--viz-2); }
.chart__swatch--pair-2 { background: var(--viz-3); }
.chart__legend-label { color: var(--color-text-secondary); }
.chart__legend-value { margin-inline-start: auto; font-family: var(--head); font-weight: 600; color: var(--color-text); }

/* מוט מחולק: שני חלקים, רווח לבן ביניהם, וקצוות עגולים בשני הקצוות */
.chart__split { display: flex; gap: 2px; height: 34px; }
.chart__split-part {
  display: flex; align-items: center; justify-content: center;
  min-width: 0; overflow: hidden;
}
.chart__split-part--1 { background: var(--viz-2); border-start-start-radius: 999px; border-end-start-radius: 999px; }
.chart__split-part--2 { background: var(--viz-3); border-start-end-radius: 999px; border-end-end-radius: 999px; }
.chart__split-value { font-family: var(--head); font-size: 13.5px; font-weight: 700; color: var(--color-on-action); }

/* מד: נתח בודד. המסלול הוא מדרגה בהירה של אותו גוון ולא אפור ניטרלי */
.chart__meter { display: grid; gap: 8px; }
.chart__figure { font-family: var(--head); font-size: 34px; font-weight: 700; color: var(--color-text); line-height: 1; }
.chart__track { display: block; height: 12px; border-radius: 999px; background: var(--viz-track); overflow: hidden; }
.chart__track i { display: block; height: 100%; border-radius: 999px; background: var(--viz-2); }
.chart__of { font-size: 14px; color: var(--color-text-secondary); }
.chart__source { font-size: 12.5px; color: var(--color-text-secondary); line-height: 1.5; }

/* אריח מספר: מה שאינו נתח נשאר מספר גדול, ולא גרף של עמודה אחת */
.stats { display: grid; gap: 12px; }
.stat { padding: 16px 18px; display: grid; gap: 4px; }
.stat__label { font-size: 14px; color: var(--color-text-secondary); line-height: 1.4; }
.stat__value { font-family: var(--head); font-size: 24px; font-weight: 700; color: var(--color-text); line-height: 1.15; }
.stat__source { font-size: 12px; font-weight: 400; color: var(--color-text-secondary); line-height: 1.5; }
a.stat__source { text-decoration: underline; text-decoration-color: var(--color-border); }
a.stat__source:hover { color: var(--color-action-strong); text-decoration-color: currentColor; }
.datagroup { display: grid; gap: 10px; }

@media (min-width: 620px) {
  .charts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 980px) {
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

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

   ההיררכיה: כותרת · במה (שני צילומים, שם העיר הוא הבורר) · פתיח (כמה
   קרובים, איפה הפערים) · המספרים · מקורות · סיום. הצילומים נושאים את
   העושר החזותי; שאר העמוד שקט סביבם.

   מרווחים: 4 · 8 · 12 · 16 · 24 · 32 · 48. */
#step-compare {
  display: grid; gap: 32px;
  max-width: 1080px; margin-inline: auto; padding-inline: 8px;
}
#step-compare > .linkish { justify-self: start; }

/* רקע רך משלו לעמוד ההשוואה: המשטחים הלבנים צריכים משהו להיפרד ממנו. */
#step-compare::before {
  content: ''; position: fixed; inset: 0; z-index: -1;
  background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-selected) 100%);
}

/* טקסט לקורא מסך בלבד: התווית של הבורר שעל הצילום. */
.cmp__vh {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

/* ── הכותרת ─────────────────────────────────────────────────────────────── */
.cmp__header { display: grid; gap: 10px; justify-items: center; text-align: center; }
.cmp__header h2 { font-size: clamp(30px, 4.6vw, 44px); letter-spacing: -.01em; color: var(--color-text); text-wrap: balance; }
.cmp__sub { font-size: 16.5px; line-height: 1.6; color: var(--color-text-secondary); max-inline-size: 58ch; text-wrap: pretty; }

/* ── הבמה ────────────────────────────────────────────────────────────────
   שני צילומים שנפגשים בתפר צר. הפינות החיצוניות עגולות והפנימיות כמעט
   ישרות — שני חצאים של תמונה אחת, לא שני כרטיסים. הפס בתחתית כל צילום הוא
   המקרא: אותו צבע חוזר על המספרים של העיר בכל שורה. */
.cmp__stage { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 6px; row-gap: 12px; }
.cmp__side {
  position: relative; grid-row: 1; display: grid; align-items: end;
  min-height: clamp(230px, 36vw, 400px); overflow: hidden;
  background: var(--color-primary); border-block-end: 5px solid var(--pair-1);
}
.cmp__side--1 { grid-column: 1; border-start-start-radius: var(--r-lg); border-end-start-radius: var(--r-lg); border-start-end-radius: 6px; border-end-end-radius: 6px; }
.cmp__side--2 { grid-column: 2; border-start-end-radius: var(--r-lg); border-end-end-radius: var(--r-lg); border-start-start-radius: 6px; border-end-start-radius: 6px; border-block-end-color: var(--pair-2); }

.cmp__media { position: absolute; inset: 0; }
.compare__photo { display: block; width: 100%; height: 100%; }
.compare__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* הכהיה בתחתית — בלעדיה השם הלבן נבלע בשמיים או בים. נייבי ולא שחור. */
.cmp__side::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, rgba(11, 33, 64, .84) 0%, rgba(11, 33, 64, .42) 34%, rgba(11, 33, 64, 0) 62%);
}

.cmp__overlay { position: relative; z-index: 1; display: grid; gap: 6px; justify-items: start; padding: 24px 28px 22px; min-width: 0; }
/* הבורר הוא שם העיר: גדול, לבן, בלי מסגרת. החץ אומר שאפשר להחליף. */
.cmp__pick { position: relative; display: inline-flex; align-items: center; max-width: 100%; }
.cmp__pick select {
  appearance: none; -webkit-appearance: none; max-width: 100%;
  font-family: var(--head); font-size: clamp(28px, 4vw, 44px); font-weight: 700; line-height: 1.15;
  color: var(--color-on-dark); background: transparent; border: 0; border-radius: 10px;
  border-block-end: 2px solid rgba(255, 255, 255, .28);
  padding-block: 2px; padding-inline: 0 38px; cursor: pointer;
  /* הקו שמתחת לשם ברוחב השם שנבחר, ולא ברוחב השם הארוך ברשימה. */
  field-sizing: content;
}
.cmp__pick select:hover { border-block-end-color: rgba(255, 255, 255, .8); }
.cmp__pick select:focus-visible { outline: var(--focus-outline); outline-offset: 4px; }
.cmp__pick option { color: var(--color-text); background: var(--color-surface); font-family: var(--body); font-size: 16px; }
.cmp__chevron {
  position: absolute; inset-inline-end: 4px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; color: var(--color-on-dark); pointer-events: none;
}
.cmp__cardtag {
  font-size: 15px; line-height: 1.45; color: var(--color-on-dark-secondary);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cmp__cardtag:empty { display: none; }

/* צד בלי צילום: משטח שקט עם בורר כהה. זה מצב הפתיחה של /compare, ולכן הוא
   מזמין ("בחרו עיר…") ולא נראה כמו תמונה שלא נטענה. */
.cmp__side.is-empty { background: var(--color-surface); border: 1.5px dashed var(--color-border); border-block-end: 5px solid var(--pair-1); }
.cmp__side--2.is-empty { border-block-end-color: var(--pair-2); }
.cmp__side.is-empty::after { content: none; }
/* בלי צילום התווית של הבורר גלויה ("העיר הראשונה"): היא מה שמסביר את המשטח
   הריק. התוכן יורד לתחתית, כדי ש"מול" שבאמצע לא יישב עליו. */
.cmp__side.is-empty .cmp__overlay { justify-items: center; text-align: center; gap: 4px; padding-block-end: 32px; }
.cmp__side.is-empty .cmp__pick { flex-direction: column; }
.cmp__side.is-empty .cmp__vh {
  position: static; width: auto; height: auto; overflow: visible; clip-path: none;
  font-size: 14px; font-weight: 600; color: var(--color-text-secondary);
}
.cmp__side.is-empty .cmp__chevron { top: auto; bottom: 10px; transform: none; }
.cmp__side.is-empty .cmp__pick select { font-size: clamp(22px, 3vw, 30px); color: var(--color-text); border-block-end-color: var(--color-border); }
.cmp__side.is-empty .cmp__pick select:hover { border-block-end-color: var(--color-action); }
.cmp__side.is-empty .cmp__chevron { color: var(--color-action); }
/* בלי צילום אין כהיה, ולכן גם שורת התיאור עוברת לטקסט משני כהה: התכלת
   שנועד לרקע הכהה כמעט נעלם על לבן חם. */
.cmp__side.is-empty .cmp__cardtag { color: var(--color-text-secondary); }

/* "מול" על התפר. מונח על שני הצדדים בשורה הראשונה של הרשת. */
.cmp__vs {
  grid-row: 1; grid-column: 1 / -1; place-self: center; z-index: 2;
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: var(--color-primary); color: var(--color-on-dark);
  font-family: var(--head); font-size: 17px; font-weight: 700;
  box-shadow: 0 0 0 6px var(--color-surface), var(--shadow-lift);
}
.cmp__vs:empty { display: none; }

/* מתחת לכל צילום: האזור, והדרך לעמוד העיר. */
.cmp__meta {
  grid-row: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 4px 12px; padding-inline: 8px; font-size: 14.5px; color: var(--color-text-secondary);
}
.cmp__meta:empty { display: none; }
.cmp__meta--1 { grid-column: 1; }
.cmp__meta--2 { grid-column: 2; }
.cmp__region { display: inline-flex; align-items: center; gap: 6px; }
.cmp__region .ico { width: 17px; height: 17px; color: var(--color-text-secondary); }
.cmp__citylink { font-weight: 600; color: var(--color-link); text-underline-offset: 3px; }
.cmp__citylink:hover { color: var(--color-action-hover); }
#compare-hint { text-align: center; margin-top: -16px; }

#compare-result { display: grid; gap: 40px; }

/* ── הפתיח ───────────────────────────────────────────────────────────────
   התשובה לשאלה שהקורא בא איתה — במה הן שונות — לפני כל השורות. */
.cmp__block { display: grid; gap: 24px; }
.cmp__summary { display: grid; justify-items: center; text-align: center; gap: 12px; }
.cmp__summary h3 { font-family: var(--head); font-size: clamp(24px, 3.4vw, 34px); font-weight: 700; color: var(--color-text); text-wrap: balance; }
.cmp__summary p { font-size: 15.5px; line-height: 1.55; color: var(--color-text-secondary); max-inline-size: 56ch; }
.cmp__widest { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.cmp__widest:empty { display: none; }
.cmp__gapchip {
  display: grid; justify-items: center; gap: 2px; min-width: 168px; padding: 14px 20px 13px;
  border: 1px solid var(--color-border); border-radius: var(--r); background: var(--color-surface);
  box-shadow: inset 0 3px 0 var(--pair-1), var(--shadow-card);
  color: var(--color-text); text-decoration: none;
  transition: border-color .15s ease, background-color .15s ease;
}
.cmp__gapchip--2 { box-shadow: inset 0 3px 0 var(--pair-2), var(--shadow-card); }
.cmp__gapchip b { font-family: var(--head); font-size: 16.5px; font-weight: 700; }
.cmp__gapchip span { font-size: 14px; font-weight: 600; color: var(--pair-1-ink); }
.cmp__gapchip--2 span { color: var(--pair-2-ink); }
.cmp__gapchip:hover { border-color: var(--color-border-hover); background: var(--color-surface-hover); }
.cmp__gapchip:focus-visible { outline: var(--focus-outline); outline-offset: 3px; }

/* ── המקרא הדביק ─────────────────────────────────────────────────────────
   נצמד לראש המסך כל עוד המספרים על המסך (sticky בתוך הבלוק), ונעלם איתם. */
.cmp__legend {
  position: sticky; top: 12px; z-index: 4;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 20px; border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--color-surface) 90%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--color-border); box-shadow: var(--shadow);
  font-family: var(--head); font-size: 16px; font-weight: 700;
}
.cmp__legend-item { display: inline-flex; align-items: center; gap: 8px; color: var(--pair-1-ink); }
.cmp__legend-item::before { content: ''; width: 11px; height: 11px; border-radius: 50%; background: var(--pair-1); }
/* הנקודה בצד החיצוני של כל שם — כמו הפס, שמתחיל בקצוות. */
.cmp__legend-item--2 { flex-direction: row-reverse; color: var(--pair-2-ink); }
.cmp__legend-item--2::before { background: var(--pair-2); }

/* ── המספרים ─────────────────────────────────────────────────────────────
   משטח אחד לכל קבוצה, והכותרת שלה יושבת על התפר — באמצע הקצה העליון. */
.compare__groups { display: grid; gap: 44px; padding-top: 14px; }
.compare__group {
  position: relative; display: grid;
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--r-lg);
  box-shadow: var(--shadow-card); padding: 26px 12px 8px;
}
.compare__grouptitle {
  position: absolute; top: 0; inset-inline-start: 50%; transform: translate(50%, -50%);
  white-space: nowrap; padding: 6px 18px; border-radius: var(--r-pill);
  background: var(--color-primary); color: var(--color-on-dark);
  font-family: var(--head); font-size: 14.5px; font-weight: 600;
}
[dir="ltr"] .compare__grouptitle { transform: translate(-50%, -50%); }

.compare__row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(130px, auto) minmax(0, 1fr);
  grid-template-areas: "v1 label v2" "bar bar bar" "note note note";
  align-items: end; gap: 8px 16px; padding: 20px 16px 18px;
  border-radius: var(--r); scroll-margin-block: 96px;
}
.compare__row + .compare__row { border-top: 1px solid var(--color-divider); border-top-left-radius: 0; border-top-right-radius: 0; }
.compare__label {
  grid-area: label; display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-align: center; font-size: 14.5px; font-weight: 600; line-height: 1.3; color: var(--color-text-secondary);
}
.compare__label-ico { width: 22px; height: 22px; flex-shrink: 0; color: var(--color-text-secondary); }
.compare__cell { display: grid; min-width: 0; }
.compare__cell--1 { grid-area: v1; justify-items: start; text-align: start; }
.compare__cell--2 { grid-area: v2; justify-items: end; text-align: end; }
.compare__value {
  font-family: var(--head); font-size: clamp(21px, 2.7vw, 30px); font-weight: 600; line-height: 1.1;
  color: var(--pair-1-ink); font-variant-numeric: tabular-nums; overflow-wrap: break-word;
}
.compare__cell--2 .compare__value { color: var(--pair-2-ink); }
.compare__unit { font-family: var(--body); font-size: max(13px, .5em); font-weight: 600; color: var(--color-text-secondary); }
/* הסלקטור כפול בכוונה: החוסר צריך לגבור על .compare__cell--2 .compare__value,
   ובלי זה הוא היה נצבע בצבע העיר כאילו הוא ערך. */
.compare__value--empty,
.compare__cell .compare__value--empty { font-family: var(--body); font-size: 15px; font-weight: 500; color: var(--color-text-secondary); }

/* הפס המפוצל. כל חלק ברוחב היחסי שלו (flex-grow מ-app.js), והחריץ שבאמצע
   הוא נקודת השוויון. בכניסה הפס נפתח מחצי-חצי אל היחס האמיתי — התנועה
   היחידה בעמוד, והיא מראה בדיוק את מה שהפס אומר: לאן הוא נוטה. */
.compare__split { grid-area: bar; position: relative; display: flex; gap: 3px; height: 10px; margin-top: 6px; }
.compare__part { display: block; flex: 1 1 0; min-width: 0; border-radius: var(--r-pill); background: var(--pair-1); animation: cmp-tip .9s cubic-bezier(.2, .7, .2, 1) .15s both; }
.compare__part--2 { background: var(--pair-2); }
.compare__split::after {
  content: ''; position: absolute; inset-inline-start: 50%; top: -5px; bottom: -5px;
  width: 2px; margin-inline-start: -1px; border-radius: 2px; background: var(--color-text);
}
@keyframes cmp-tip { from { flex-grow: 1; } }
/* שורה "כמעט זהה" (פער מתחת לסף שכתוב בפתיח) מקבלת פס חיוור: העין
   נמשכת לשורות שבהן באמת יש הבדל, והפתיח כבר אמר כמה כאלה יש. */
.compare__row[data-near] .compare__part--1 { background: color-mix(in srgb, var(--pair-1) 38%, var(--color-surface)); }
.compare__row[data-near] .compare__part--2 { background: color-mix(in srgb, var(--pair-2) 38%, var(--color-surface)); }

.compare__gapnote {
  grid-area: note; justify-self: center; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center;
  gap: 2px 8px; text-align: center; font-size: 13.5px; line-height: 1.4;
}
.compare__gapnote b { font-family: var(--head); font-size: 14px; font-weight: 700; color: var(--pair-1-ink); }
.compare__gapnote--2 b { color: var(--pair-2-ink); }
.compare__gapnote span { color: var(--color-text-secondary); }
.compare__gapnote--same b { font-weight: 600; color: var(--color-text-secondary); }

/* לחיצה על פער בפתיח: השורה מסומנת לרגע, כדי שהעין תדע לאן הגיעה. */
.compare__row.is-flash { animation: cmp-flash 1.8s ease-out; }
@keyframes cmp-flash { 0%, 35% { background: var(--color-selected); } 100% { background: transparent; } }

/* ── מחירי הדירות בשכונות ─────────────────────────────────────────────────
   לוח לכל עיר, בצד שלה, עם פס עליון בצבע שלה. הפס שבכל תא על סקאלה אחת לשני
   הלוחות (‎--share מ-app.js), ולכן העמודות ברוחב קבוע (table-layout: fixed). */
.cmp__prices { display: grid; gap: 24px; }
.cmp__pricegrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.cmp__pricecity {
  background: var(--color-surface); border: 1px solid var(--color-border); border-top: 5px solid var(--pair-1);
  border-radius: var(--r-lg); box-shadow: var(--shadow-card); padding: 18px 20px 10px; min-width: 0;
}
.cmp__pricecity--2 { border-top-color: var(--pair-2); }
.cmp__pricehead {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 6px;
  font-family: var(--head); font-size: 20px; font-weight: 700; color: var(--pair-1-ink);
}
.cmp__pricecity--2 .cmp__pricehead { color: var(--pair-2-ink); }
.cmp__pricehead span { font-family: var(--body); font-size: 14px; font-weight: 600; color: var(--color-text-secondary); }
.cmp__pricetable { width: 100%; border-collapse: collapse; table-layout: fixed; font-variant-numeric: tabular-nums; }
.cmp__pricetable th, .cmp__pricetable td { padding: 10px 6px; text-align: start; vertical-align: top; }
.cmp__pricetable thead th { padding-top: 4px; font-size: 13px; font-weight: 600; color: var(--color-text-secondary); border-bottom: 1px solid var(--color-border); }
.cmp__pricetable thead th:first-child { width: 36%; }
.cmp__pricetable tbody th { font-family: var(--head); font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--color-text); overflow-wrap: break-word; }
.cmp__pricetable tbody tr + tr > * { border-top: 1px solid var(--color-divider); }
.cmp__price { display: block; font-family: var(--head); font-size: 17px; font-weight: 600; line-height: 1.2; color: var(--color-text); }
.cmp__price--empty { font-weight: 400; color: var(--color-text-secondary); }
.cmp__pricebar {
  display: block; height: 4px; margin-top: 6px; border-radius: var(--r-pill);
  inline-size: calc(var(--share, 0) * 100%); min-inline-size: 4px; background: var(--pair-1);
}
.cmp__pricecity--2 .cmp__pricebar { background: var(--pair-2); }
.cmp__pricetable small { display: block; margin-top: 3px; font-size: 11.5px; color: var(--color-text-secondary); }
.cmp__pricenone { padding: 6px 0 12px; font-size: 15px; color: var(--color-text-secondary); }
.cmp__pricesource { display: grid; gap: 4px; padding-inline: 16px; }

/* ── מקורות וסיום ─────────────────────────────────────────────────────── */
.cmp__sources { display: grid; gap: 6px; padding-inline: 16px; }
.cmp__sources b { color: var(--color-text); font-weight: 700; }
.cmp__sources ul { margin: 0; padding-inline-start: 18px; display: grid; gap: 2px; }

.cmp__closing {
  display: grid; gap: 16px; align-items: center;
  background: var(--color-primary); color: var(--color-on-dark);
  border-radius: var(--r-lg); padding: 24px 28px;
}
.cmp__closing-text { display: grid; gap: 4px; }
.cmp__closing-text b { font-family: var(--head); font-size: 20px; font-weight: 700; color: var(--color-on-dark); }
.cmp__closing-text span { font-size: 15px; color: var(--color-on-dark-secondary); }
.cmp__more-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cmp__more-actions .btn { min-height: 44px; padding: 9px 18px; font-size: 14.5px; }
.cmp__closing .btn--ghost { border-color: var(--color-surface); }

@media (min-width: 760px) {
  #step-compare { gap: 40px; padding-inline: 24px; }
  .compare__group { padding-inline: 20px; }
  .cmp__closing { grid-template-columns: 1fr auto; padding: 26px 32px; }
}

/* בנייד: אותו תפר, צפוף יותר. התווית עולה לשורה משלה מעל שני המספרים —
   בין שני מספרים ברוחב 375 היא הייתה נשברת לארבע שורות. */
@media (max-width: 760px) {
  .cmp__pricegrid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 600px) {
  .cmp__pricecity { padding: 16px 12px 8px; }
  .cmp__price { font-size: 15.5px; }
  .cmp__pricetable tbody th { font-size: 14px; }
  .cmp__pricetable th, .cmp__pricetable td { padding-inline: 4px; }
  #step-compare { gap: 28px; padding-inline: 0; }
  .cmp__stage { column-gap: 4px; }
  .cmp__side { min-height: 220px; }
  .cmp__overlay { padding: 14px 12px 12px; gap: 4px; }
  .cmp__pick select { font-size: 23px; padding-inline-end: 28px; }
  .cmp__chevron { width: 20px; height: 20px; inset-inline-end: 2px; }
  .cmp__cardtag { font-size: 12.5px; }
  .cmp__vs { width: 42px; height: 42px; font-size: 13.5px; box-shadow: 0 0 0 4px var(--color-surface), var(--shadow-lift); }
  .cmp__meta { flex-direction: column; align-items: flex-start; padding-inline: 4px; font-size: 13.5px; }
  .cmp__meta--2 { align-items: flex-end; }
  .cmp__gapchip { min-width: 0; flex: 1 1 140px; padding: 12px 12px 11px; }
  .cmp__legend { padding: 8px 14px; font-size: 14.5px; }
  .compare__group { padding: 24px 4px 4px; }
  .compare__row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "label label" "v1 v2" "bar bar" "note note";
    padding: 16px 12px 14px; gap: 6px 12px;
  }
  .compare__label { flex-direction: row; justify-content: center; font-size: 14px; }
  .compare__label-ico { width: 18px; height: 18px; }
  .compare__value { font-size: 21px; }
  .cmp__closing { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .compare__part, .compare__row.is-flash { animation: none; }
  .cmp__gapchip { transition: none; }
}

/* component: ReturningBanner — רצועה לא חוסמת בראש דף הנחיתה */
.returning {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  margin: 0 0 24px;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-surface);
}
.returning__text { margin: 0; font-size: 15px; color: var(--color-text-secondary); }
.returning__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.returning .btn { padding: 8px 14px; font-size: 14px; }

/* ── סיכום הדיבוג ──────────────────────────────────────────────────────────
   נראה במכוון כמו כלי ולא כמו מוצר: רוחב קבוע, מסגרת מקווקוות, וניגוד נמוך.
   מי שרואה אותו צריך לדעת מיד שהוא לא אמור לראות אותו. */
.debug { border: 1px dashed rgba(11, 33, 64, .5); background: rgba(11, 33, 64, .04); padding: 14px; border-radius: var(--r-lg); }
/* כלי פיתוח במסך התוצאה: מוסתרים כברירת מחדל, נחשפים רק על localhost (app.js). */
.devbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px;
  padding: 12px; border: 1px dashed rgba(11, 33, 64, .5); border-radius: var(--r-lg); }
.devbar__tag { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--color-text-secondary); }
.devbar__field { display: inline-flex; align-items: center; gap: 6px; color: var(--color-text-secondary); font-size: 13px; font-weight: 600; }
.debug__group { margin: 0 0 18px; }
.debug__group:last-child { margin-bottom: 0; }
.debug__group h4 { margin: 0 0 8px; font-size: .82rem; letter-spacing: .04em;
  text-transform: uppercase; opacity: .6; }
.debug__table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.debug__table td { padding: 5px 8px; border-block-end: 1px solid rgba(11, 33, 64, .16);
  vertical-align: top; }
.debug__table td:first-child { width: 38%; opacity: .7; }
.debug__key { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .78rem;
  opacity: .45; display: block; }

.debug__empty { opacity: .5; font-size: .88rem; margin: 0; }

/* גילי ילדים: שורה לכל ילד/ה, בורר גיל, הוספה והסרה. */
.children-ages { display: grid; gap: 14px; padding: 8px 4px; }
.children-count { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.children-count__label { font-weight: 700; }
.stepper { display: inline-flex; align-items: center; gap: 6px; }
.stepper__button {
  display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 2px solid var(--color-border-strong); border-radius: 12px; background: var(--color-surface);
  color: var(--color-action-strong); font: 700 22px/1 var(--body); cursor: pointer;
}
.stepper__button:hover { background: var(--color-selected); border-color: var(--color-selected-border); }
.stepper__button:focus-visible { outline: var(--focus-outline); outline-offset: 2px; }
.stepper__button:disabled, .stepper__button:disabled:hover {
  background: var(--color-disabled-bg); color: var(--color-disabled-text); border-color: var(--color-disabled-border); cursor: default;
}
.stepper__value { min-width: 2.2ch; text-align: center; font: 700 20px/1 var(--body); font-variant-numeric: tabular-nums; }
.children-ages__limit, .children-ages__note { margin: 0; color: var(--color-text-secondary); font-size: 14px; }
/* שלוש עמודות לכל הרשימה, ולא flex לכל שורה: "ילד/ה 10" רחב מ"ילד/ה 9", ושדות
   הגיל צריכים לעמוד באותו קו בכל השורות. */
.children-ages__list {
  display: grid; grid-template-columns: max-content minmax(0, 160px) 44px;
  align-items: center; column-gap: 12px; row-gap: 10px; justify-content: start;
}
.children-ages__label { font-weight: 600; }
.children-ages__input { width: 100%; font-variant-numeric: tabular-nums; }
.children-ages__input[aria-invalid="true"] { border-color: var(--color-error); }
.children-ages__error { grid-column: 2 / -1; margin-top: -4px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
@media (max-width: 520px) {
  /* במובייל השדה ממלא את הרוחב עד כפתור ההסרה. */
  .children-ages__list { grid-template-columns: max-content minmax(0, 1fr) 44px; justify-content: stretch; }
}
.children-ages__remove {
  display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0;
  border: 0; border-radius: 12px; background: none; cursor: pointer;
  color: var(--color-text-secondary); font: 600 16px/1 var(--body);
}
.children-ages__remove:hover { color: var(--color-action-strong); background: var(--color-selected); }
.children-ages__remove:focus-visible { outline: var(--focus-outline); outline-offset: 2px; }

/* component: HomePersonal — הכרטיס האישי בראש עמוד הבית (landing-v2) */
.home-personal {
  display: grid;
  gap: 10px;
  /* פריט ב-grid של landing-v2: לא מתכווץ לתוכן, ומבטל את רוב המרווח
     שבין הפריטים — הכרטיס שייך לגיבור שמתחתיו, לא נפרד ממנו. */
  box-sizing: border-box;
  width: 100%;
  margin: 0 0 calc(16px - clamp(42px, 7vw, 78px));
  padding: 18px 20px;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: var(--color-surface);
}
.home-personal__title { margin: 0; font-size: 20px; line-height: 1.3; }
.home-personal__meta { margin: 0; font-size: 15px; color: var(--color-text-secondary); }
.home-personal__bar {
  height: 8px;
  border-radius: 999px;
  background: var(--color-border);
  overflow: hidden;
}
.home-personal__bar > span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--color-action); }
.home-personal__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }

/* מי שכבר ראה תוצאה בדפדפן הזה מחכה לה מתחת ל-Hero הקבוע. */
.landing-v2.is-awaiting-result .landing-v2__bottom-cta { display: none; }
.landing-v2.is-awaiting-result .js-hero-cta { visibility: hidden; }
.home-loading {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; min-height: min(60vh, 520px); color: var(--color-text-secondary);
}
.home-loading__text { margin: 0; font-size: 1.05rem; }
.home-loading__spinner {
  width: 40px; height: 40px; border-radius: 50%;
  border: 3px solid rgba(11, 33, 64, .1); border-top-color: var(--color-action);
  animation: home-loading-spin .8s linear infinite;
}
@keyframes home-loading-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .home-loading__spinner { animation: none; }
}

/* אחרי השלמת השאלון ה-Hero נשאר פתיחת עמוד הבית, והתוצאות האישיות הן
   הפרק הבא מתחתיו. רק ה-CTA התחתון החוזר מוסתר. */
.landing-v2.has-completed-result { gap: clamp(40px, 4.5vw, 58px); }
.landing-v2.has-completed-result .landing-v2__bottom-cta { display: none; }

.home-dashboard {
  width: min(100%, 1180px); margin: 0 auto;
}

.home-result {
  width: 100%; margin: 0; padding: clamp(28px, 3.6vw, 42px);
  border-radius: 16px; background: var(--color-surface);
  box-shadow: var(--shadow-card);
}
.home-result__header { max-width: 1020px; margin: 0 auto; text-align: start; }
.home-result__heading {
  margin: 0; color: var(--color-primary); font-family: var(--head);
  font-size: clamp(25px, 4.7vw, 32px); font-weight: 700; line-height: 1.24;
  letter-spacing: -.02em; text-wrap: balance;
}
.home-result__intro {
  max-width: 66ch; margin: 10px 0 0; color: var(--color-text-secondary);
  font-size: 17px; line-height: 1.6;
}
.home-result__region-note { max-width: 66ch; margin: 14px 0 0; }
.home-result__ranked {
  display: grid; grid-template-columns: minmax(0, 760px); justify-content: center; margin: 26px auto 0;
}
.home-result__footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 10px 18px; max-width: 1020px; margin: 26px auto 0; }
.home-result__all-results {
  min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 11px 24px; border-radius: 9999px; font-size: 20px; text-decoration: none;
}
.home-result__all-results .ico { width: 20px; height: 20px; }

body[data-step="profile"] { background: var(--color-page); }
body[data-step="profile"] main { max-width: 1240px; padding-bottom: 64px; }
.profile-page { width: 100%; min-height: min(68vh, 680px); margin: 0 auto; padding-top: 18px; }
/* Compact preference summary, using the existing guide and brand tokens. */
/* Owner-approved palette expansion for /profile only. */
.home-profile {
  --preference-home-surface: #E8F2FB;
  --preference-home-ink: #183D62;
  --preference-region-surface: #FBE8E0;
  --preference-region-ink: #7B3E2D;
  --preference-priority-surface: #E5F0DC;
  --preference-priority-ink: #2C4A5E;
  --preference-intro-surface: #EAF0E3;
}
.home-profile { width: 100%; max-width: 780px; margin: 0 auto; padding: 16px 24px 32px; }
.preferences-intro { display: grid; grid-template-columns: minmax(0, 1fr) 170px; align-items: center; gap: 24px; }
.preferences-intro__copy { background: var(--preference-intro-surface); border-radius: 24px; padding: 24px 30px; }
.preferences-intro h1 { margin: 0 0 12px; color: var(--color-primary); font-size: clamp(28px, 4vw, 40px); line-height: 1.2; text-wrap: balance; }
.preferences-intro p { margin: 0; color: var(--preference-priority-ink); font-size: 18px; line-height: 1.6; }
.preferences-intro__yosef { display: block; width: 100%; height: 200px; object-fit: contain; object-position: bottom; align-self: end; }
.preferences-card { position: relative; background: var(--color-surface); border-radius: 24px; padding: 8px 30px 24px; box-shadow: var(--shadow-card); }
.preferences-summary__row {
  --preference-surface: var(--preference-home-surface);
  --preference-ink: var(--preference-home-ink);
}
.preferences-summary__row[data-summary-group="regions"] {
  --preference-surface: var(--preference-region-surface);
  --preference-ink: var(--preference-region-ink);
}
.preferences-summary__row[data-summary-group="priorities"] {
  --preference-surface: var(--preference-priority-surface);
  --preference-ink: var(--preference-priority-ink);
}
.preferences-summary__row { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 20px; padding: 22px 0; }
.preferences-summary__row + .preferences-summary__row { border-block-start: 1px solid var(--color-divider); }
.preferences-summary__icon { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: var(--preference-surface); color: var(--preference-ink); }
.preferences-summary__icon .ico { width: 54%; height: 54%; }
.preferences-summary__content { min-width: 0; }
.preferences-summary h2 { margin: 0 0 10px; color: var(--preference-ink); font-size: 20px; line-height: 1.3; }
.preferences-summary__values { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.preferences-summary__values li { background: var(--preference-surface); color: var(--preference-ink); padding: 6px 14px; border-radius: var(--r-pill); font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
.preferences-card__edit { width: 100%; margin-top: 12px; min-height: 54px; white-space: normal; text-align: center; }
.preferences-card__saved { margin: 14px 0 0; text-align: center; color: var(--color-text-secondary); font-size: 15px; line-height: 1.5; }
@media (max-width: 720px) {
  .home-profile { padding: 12px 16px 24px; }
  .preferences-intro { grid-template-columns: minmax(0, 1fr) 90px; gap: 8px; }
  .preferences-intro__copy { padding: 18px 16px; margin-bottom: 14px; border-radius: 18px; }
  .preferences-intro h1 { font-size: 27px; margin-bottom: 8px; }
  .preferences-intro p { font-size: 16px; }
  .preferences-intro__yosef { height: 150px; }
  .preferences-card { padding: 0 18px 20px; }
  .preferences-summary__row { grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 20px 0; }
  .preferences-summary__icon { width: 44px; height: 44px; }
  .preferences-summary h2 { font-size: 19px; }
  .preferences-summary__values li { padding: 5px 10px; font-size: 15px; }
}
.profile-group {
  display: grid; grid-template-columns: minmax(210px, .72fr) minmax(0, 1.55fr) auto;
  gap: 24px; align-items: start; padding: 28px 4px; border-block-end: 1px solid var(--color-divider);
}
.profile-group:last-child { border-block-end: 0; }

.profile-group__impact {
  display: inline-flex; align-items: center; gap: 5px; color: var(--color-action-strong);
  font-size: 14px; font-weight: 700; line-height: 1.4;
}
.profile-group__impact::before {
  content: ""; width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--color-action);
}
.profile-group[data-impact="context"] .profile-group__impact,
.profile-group[data-impact="inactive"] .profile-group__impact { color: var(--color-text-secondary); }
.profile-group[data-impact="context"] .profile-group__impact::before { background: var(--color-divider); }
.profile-group[data-impact="inactive"] .profile-group__impact::before { background: var(--color-accent); }
.profile-group__content { min-width: 0; display: grid; gap: 13px; margin: 0; }
.profile-group__row { display: grid; grid-template-columns: minmax(92px, .42fr) minmax(0, 1fr); gap: 4px 18px; }
.profile-group__row dt { color: var(--color-text-secondary); font-size: 14px; font-weight: 700; line-height: 1.45; }
.profile-group__row dd { margin: 0; color: var(--color-primary); font-size: 17px; line-height: 1.5; overflow-wrap: anywhere; }
.profile-group__row small {
  grid-column: 2; color: var(--color-text-secondary); font-size: 14px; line-height: 1.4;
}
.profile-group__row--inactive { grid-template-columns: 1fr; }
.profile-group__row--inactive dd { color: var(--color-text-secondary); }
.profile-group__edit {
  min-width: 92px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 8px 14px; border: 1px solid var(--color-border); border-radius: var(--r-pill);
  background: var(--color-surface); color: var(--color-action-strong); font: 700 14px/1.4 var(--body); cursor: pointer;
}
.profile-group__edit .ico { width: 17px; height: 17px; }
.profile-group__edit:hover { border-color: var(--color-action); background: var(--color-selected); }
.profile-group__edit:focus-visible { outline: var(--focus-outline); outline-offset: 3px; }

.home-profile__status {
  min-height: 24px; margin: 18px 0 0; color: var(--color-action-strong); text-align: center; font-weight: 700;
}
.home-profile__status:empty { margin: 0; min-height: 0; }
.home-profile__status:focus { outline: none; }
.fresh-quiz-modal { width: min(calc(100% - 24px), 500px); border-radius: var(--r-lg); }
.fresh-quiz-modal__body {
  position: relative; display: grid; gap: 16px; padding: clamp(30px, 6vw, 44px);
  max-height: calc(100dvh - 24px); overflow: auto; text-align: center;
}
.fresh-quiz-modal__close { position: absolute; inset-block-start: 16px; inset-inline-end: 16px; }
.fresh-quiz-modal h2 {
  margin: 18px auto 0; color: var(--color-primary); font-size: clamp(25px, 4.7vw, 32px);
  line-height: 1.15; text-wrap: balance;
}
.fresh-quiz-modal p {
  max-width: 40ch; margin: 0 auto; color: var(--color-text-secondary); font-size: 17px; line-height: 1.55;
}
.fresh-quiz-modal__actions { width: min(100%, 340px); display: grid; justify-self: center; gap: 10px; margin-top: 10px; }
.fresh-quiz-modal__actions .btn { width: 100%; min-height: 54px; }
.fresh-quiz-modal__actions .linkish { min-height: 44px; }
.fresh-quiz-modal__close:focus-visible,
.fresh-quiz-modal__actions .btn:focus-visible,
.fresh-quiz-modal__actions .linkish:focus-visible { outline: var(--focus-outline); outline-offset: 3px; }
.result-notice-modal__text { display: grid; gap: 10px; }
@media (max-width: 520px) {
  .fresh-quiz-modal__body { padding: 64px 22px 26px; }
}
/* הודעת הדירוג של העוזר: פאנלים בתוך שכבת העוזר, ובועה קלה ליד ה-launcher. טוקנים בלבד. */
.assistant-ranking { display: grid; }
.assistant-ranking[hidden], .assistant-ranking__panel[hidden] { display: none; }
.assistant-ranking__panel { display: grid; gap: 12px; }
.assistant-ranking h2 {
  margin: 0; color: var(--color-primary); font-family: var(--head); font-size: clamp(22px, 4.6vw, 28px);
  line-height: 1.2; text-wrap: balance;
}
.assistant-ranking h2:focus { outline: none; }
.assistant-ranking h2:focus-visible { outline: var(--focus-outline); outline-offset: 4px; border-radius: var(--r-sm); }
.assistant-ranking p { margin: 0; color: var(--color-text-secondary); font-size: 16.5px; line-height: 1.55; }
.assistant-ranking__intro { color: var(--color-primary); font-weight: 600; margin-top: 4px; }
.assistant-ranking__list { display: grid; margin: 0; padding: 0; list-style: none; counter-reset: ranking; }
.assistant-ranking__list li {
  counter-increment: ranking; display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center;
  gap: 12px; min-height: 52px; padding: 10px 0; border-bottom: 1px solid var(--color-divider);
  color: var(--color-primary); font-size: 17px; font-weight: 700;
}
.assistant-ranking__list li:first-child { border-top: 1px solid var(--color-divider); }
.assistant-ranking__list li::before {
  content: counter(ranking); display: grid; place-items: center; width: 30px; height: 30px;
  border-radius: 50%; background: var(--color-selected); color: var(--color-action-strong);
  font-size: 14px; font-variant-numeric: tabular-nums;
}
.assistant-ranking__identity { display: grid; gap: 2px; min-width: 0; justify-items: start; }
.assistant-ranking__identity strong { overflow-wrap: anywhere; }
.assistant-ranking__city { color: var(--color-text-secondary); font-size: 14px; font-weight: 500; line-height: 1.25; }
.assistant-ranking__left { color: var(--color-accent-text); font-size: 15px; font-weight: 600; }
.assistant-ranking__left.is-hidden, .assistant-ranking__departed.is-hidden, .assistant-ranking__explain.is-hidden { display: none; }
.assistant-ranking__actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 8px; }
.assistant-ranking .btn { min-height: 48px; }
/* פירוט "מה השתנה?" (D-032): בועת העוזר, כרטיסי השלישייה, מי שיצאה, והסברים מקופלים. כחולים וניטרליים בלבד. */
.assistant-overlay__body:has(#assistant-ranking-details:not([hidden])) > .assistant-overlay__figure { display: none; }
@media (min-width: 641px) {
  .assistant-overlay:has(#assistant-ranking-details:not([hidden])) { width: min(calc(100% - 32px), 640px); }
}
.assistant-ranking__panel--details { gap: 16px; }
/* הפוקוס על כותרת הבועה הוא לקורא מסך; בלי מסגרת שנראית כמו שדה. */
.assistant-ranking .assistant-ranking__bubble h2:focus-visible { outline: none; }
.assistant-ranking__speech {
  display: grid; grid-template-columns: clamp(76px, 22vw, 116px) minmax(0, 1fr); align-items: end; gap: 6px;
  padding-inline-end: 40px;
}
.assistant-ranking__speaker img { display: block; width: 100%; height: auto; }
.assistant-ranking__bubble {
  position: relative; display: grid; gap: 6px; align-self: center; padding: 14px 16px; border-radius: var(--r);
  background: var(--color-info-surface); color: var(--color-primary);
}
.assistant-ranking__bubble::before {
  content: ""; position: absolute; inset-inline-start: -7px; bottom: 22px; width: 14px; height: 14px;
  background: inherit; transform: rotate(45deg); border-radius: 3px;
}
.assistant-ranking .assistant-ranking__bubble h2 { font-size: clamp(18px, 4.4vw, 22px); line-height: 1.25; }
.assistant-ranking .assistant-ranking__bubble p { color: var(--color-text); font-size: 15.5px; line-height: 1.5; }
.assistant-ranking__top, .assistant-ranking__departed {
  display: grid; gap: 10px; padding: 12px; border-radius: var(--r); background: var(--color-surface-muted);
}
.assistant-ranking__top h3 { margin: 2px 0 0; color: var(--color-primary); font-size: 18px; text-align: center; }
.assistant-ranking__departed h3 {
  display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0;
  color: var(--color-primary); font-size: 15px;
}
.assistant-ranking__departed h3 .ico { width: 18px; height: 18px; color: var(--color-accent-text); }
.assistant-ranking__cards, .assistant-ranking__mini { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.assistant-ranking__card {
  display: grid; grid-template-columns: auto minmax(0, 1fr) clamp(76px, 24vw, 112px); align-items: center; gap: 12px;
  padding: 8px; padding-inline-start: 12px; border-radius: var(--r-sm); background: var(--color-surface); box-shadow: var(--shadow-card);
}
/* RTL: המקומות בתחילת השורה (ימין), השם באמצע, הצילום בסוף, כמו בהדמיה. */
.assistant-ranking__card > .assistant-ranking__places { grid-column: 1; grid-row: 1; }
.assistant-ranking__card > .assistant-ranking__identity { grid-column: 2; grid-row: 1; gap: 3px; }
.assistant-ranking__card > .assistant-ranking__photo { grid-column: 3; grid-row: 1; }
.assistant-ranking__name { color: var(--color-primary); font-family: var(--head); font-size: 17px; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.assistant-ranking__photo {
  position: relative; display: grid; place-items: center; overflow: hidden; border-radius: var(--r-sm);
  background: var(--color-surface-muted); color: var(--color-icon-muted);
}
.assistant-ranking__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.assistant-ranking__photo.is-empty { background: var(--color-progress-track); }
.assistant-ranking__photo.is-empty .ico { width: 26px; height: 26px; }
.assistant-ranking__card-photo { width: 100%; aspect-ratio: 4 / 3; }
.assistant-ranking__badge {
  position: absolute; inset-block-start: 6px; inset-inline-start: 6px; display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50%; background: var(--color-primary); color: var(--color-on-dark);
  font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; box-shadow: 0 0 0 2px var(--color-surface);
}
.assistant-ranking__chip {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 3px; padding: 2px 9px; border-radius: var(--r-pill);
  background: var(--color-surface-muted); color: var(--color-text-secondary); font-size: 13px; font-weight: 600; line-height: 1.5;
}
.assistant-ranking__chip .ico { width: 15px; height: 15px; flex-shrink: 0; }
.assistant-ranking__chip.is-up { background: var(--color-success-surface); color: var(--color-success); }
.assistant-ranking__chip.is-down { background: var(--color-accent-surface); color: var(--color-accent-text); }
.assistant-ranking__places-visual { display: flex; flex-direction: row-reverse; align-items: center; gap: 4px; }
.assistant-ranking__place {
  display: grid; justify-items: center; gap: 2px; min-width: 50px; padding: 6px 6px 4px; border-radius: 10px;
  background: var(--color-surface-muted); color: var(--color-text-secondary);
}
.assistant-ranking__place-label { font-size: 11.5px; font-weight: 500; line-height: 1.2; white-space: nowrap; }
.assistant-ranking__place-value { font-family: var(--head); font-size: 22px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.assistant-ranking__place.is-current { background: var(--color-selected); color: var(--color-action-strong); }
.assistant-ranking__card.is-down .assistant-ranking__place.is-current { background: var(--color-accent-surface); color: var(--color-accent-text); }
.assistant-ranking__arrow { display: inline-grid; place-items: center; color: var(--color-action); }
.assistant-ranking__arrow .ico { width: 16px; height: 16px; }
.assistant-ranking__card.is-down .assistant-ranking__places .assistant-ranking__arrow { color: var(--color-accent-text); }
.assistant-ranking__mini { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.assistant-ranking__mini-card {
  display: grid; grid-template-columns: minmax(0, 1fr) 64px; align-items: center; gap: 10px;
  padding: 6px; padding-inline-start: 10px; border-radius: var(--r-sm); background: var(--color-surface); box-shadow: var(--shadow-card);
}
.assistant-ranking__mini-card .assistant-ranking__name { font-size: 15.5px; }
.assistant-ranking__mini-card .assistant-ranking__city { font-size: 13px; }
.assistant-ranking__mini-photo { width: 64px; height: 52px; }
.assistant-ranking__mini-photo.is-empty .ico { width: 20px; height: 20px; }
.assistant-ranking__mini-move { color: var(--color-accent-text); font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.assistant-ranking__mini-move .assistant-ranking__arrow { margin-inline: 3px; vertical-align: -3px; color: inherit; }
.assistant-ranking__mini-move .assistant-ranking__arrow .ico { width: 14px; height: 14px; }
/* החץ של הסמל מצביע ימינה; בעברית "הלאה" הוא שמאלה, בכרטיס הקטן. בכרטיס הגדול הוא מצביע אל המקום החדש. */
[dir="rtl"] .assistant-ranking__mini-move .assistant-ranking__arrow .ico { transform: scaleX(-1); }
.assistant-ranking__explain { border: 1px solid var(--color-border); border-radius: var(--r); background: var(--color-surface); }
.assistant-ranking__explain-toggle {
  display: grid; grid-template-columns: 28px minmax(0, 1fr) 20px; align-items: center; gap: 10px; width: 100%;
  min-height: 56px; padding: 10px 14px; border: 0; border-radius: inherit; background: transparent;
  color: var(--color-primary); font: inherit; text-align: start; cursor: pointer;
}
.assistant-ranking__explain-icon { width: 24px; height: 24px; color: var(--color-action); }
.assistant-ranking__explain-label { display: grid; gap: 1px; }
.assistant-ranking__explain-label strong { font-size: 16px; font-weight: 700; line-height: 1.3; }
.assistant-ranking__explain-label span { color: var(--color-text-secondary); font-size: 13.5px; line-height: 1.4; }
.assistant-ranking__explain-chevron { width: 20px; height: 20px; color: var(--color-action-strong); transition: transform .2s ease; }
.assistant-ranking__explain-toggle[aria-expanded="true"] .assistant-ranking__explain-chevron { transform: rotate(180deg); }
.assistant-ranking__explain-toggle:focus-visible { outline: var(--focus-outline); outline-offset: 2px; }
@media (hover: hover) { .assistant-ranking__explain-toggle:hover { background: var(--color-surface-hover); } }
.assistant-ranking__explain-body { display: grid; gap: 14px; padding: 2px 16px 16px; }
.assistant-ranking__explain-body[hidden] { display: none; }
.assistant-ranking__why-group { display: grid; gap: 4px; padding-top: 12px; border-top: 1px solid var(--color-divider); }
.assistant-ranking__why-name { margin: 0; color: var(--color-primary); font-family: var(--head); font-size: 15.5px; font-weight: 700; }
.assistant-ranking p.assistant-ranking__why-intro { color: var(--color-text-secondary); font-size: 14.5px; font-weight: 500; line-height: 1.5; }
.assistant-ranking .assistant-ranking__why {
  display: grid; gap: 2px; margin: 0; padding: 0; padding-inline-start: 18px; list-style: disc;
  color: var(--color-text-secondary); font-size: 14.5px; line-height: 1.5;
}
.assistant-ranking__panel--details .assistant-ranking__actions { margin-top: 0; }
.assistant-ranking__panel--details .assistant-ranking__actions .btn { width: 100%; }
@media (max-width: 640px) {
  .assistant-ranking__actions { flex-direction: column-reverse; }
  .assistant-ranking .btn { width: 100%; }
  .assistant-ranking__list li { grid-template-columns: 30px minmax(0, 1fr); gap: 10px; }
  /* הכפתור הראשי נשאר בתחתית הגיליון גם כשהפירוט ארוך. */
  .assistant-ranking__panel--details .assistant-ranking__actions {
    position: sticky; bottom: calc(-24px - env(safe-area-inset-bottom, 0px)); z-index: 1;
    margin-inline: calc(-1 * clamp(16px, 4vw, 28px)); padding: 10px clamp(16px, 4vw, 28px) calc(4px + env(safe-area-inset-bottom, 0px));
    background: var(--color-surface); box-shadow: 0 -8px 16px -12px rgba(11, 33, 64, .25);
  }
}
@media (max-width: 480px) {
  /* בטלפון: השם והתגית ליד הצילום, והמקומות בשורה מתחתם לכל הרוחב. */
  .assistant-ranking__card { grid-template-columns: minmax(0, 1fr) 88px; gap: 6px 12px; padding: 10px; padding-inline-start: 12px; }
  .assistant-ranking__card > .assistant-ranking__identity { grid-column: 1; grid-row: 1; }
  .assistant-ranking__card > .assistant-ranking__places { grid-column: 1 / -1; grid-row: 2; justify-self: start; }
  .assistant-ranking__card > .assistant-ranking__photo { grid-column: 2; grid-row: 1; align-self: stretch; aspect-ratio: auto; min-height: 76px; }
  .assistant-ranking__places-visual { flex-direction: row; }
  .assistant-ranking__place { display: inline-flex; align-items: baseline; gap: 5px; min-width: 0; padding: 3px 9px; }
  .assistant-ranking__place-value { font-size: 17px; }
  .assistant-ranking__name { font-size: 16px; }
  /* בשורה אחת (ימין לשמאל) החץ מצביע שמאלה, אל המקום החדש. */
  .assistant-ranking__places .assistant-ranking__arrow .ico { transform: scaleX(-1); }
}
.assistant-bubble {
  position: fixed; z-index: 55; left: max(16px, env(safe-area-inset-left, 0px)); bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  display: grid; grid-template-columns: 44px minmax(0, 1fr) 32px; align-items: start; gap: 10px;
  width: min(calc(100vw - 32px), 360px); padding: 12px 12px 12px 8px; border-radius: var(--r);
  background: var(--color-surface); color: var(--color-primary); border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lift); animation: assistant-welcome-in .26s cubic-bezier(.16, 1, .3, 1) both;
}
.assistant-bubble.is-hidden { display: none; }
.assistant-bubble__figure img { display: block; width: 44px; height: auto; }
.assistant-bubble__body { display: grid; gap: 6px; min-width: 0; }
.assistant-bubble__text { margin: 0; font-size: 15px; line-height: 1.45; font-weight: 600; }
.assistant-bubble__actions { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.assistant-bubble__actions[hidden] { display: none; }
.assistant-bubble__actions .linkish { min-height: 36px; font-size: 14px; color: var(--color-link); font-weight: 600; }
.assistant-bubble__close {
  display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--color-text-secondary); cursor: pointer;
}
.assistant-bubble__close:focus-visible, .assistant-bubble__actions .linkish:focus-visible { outline: var(--focus-outline); outline-offset: 2px; }
@media (hover: hover) { .assistant-bubble__close:hover { background: var(--color-surface-hover); } }
@media (min-width: 900px) { .assistant-bubble { bottom: 112px; left: 28px; } }
@media (prefers-reduced-motion: reduce) {
  .assistant-bubble { animation: none; }
  .assistant-ranking__explain-chevron { transition: none; }
}
.profile-page__loading, .profile-page__empty, .profile-page__error {
  min-height: min(56vh, 520px); display: grid; place-content: center; justify-items: center;
  gap: 14px; padding: 32px; text-align: center;
}
.profile-page__loading p { margin: 0; color: var(--color-text-secondary); font-size: 17px; }
.profile-page__empty, .profile-page__error {
  border: 1px solid rgba(47, 85, 104, .12); border-radius: 26px; background: rgba(255, 255, 255, .86);
  box-shadow: 0 16px 40px rgba(31, 58, 70, .07);
}
.profile-page__empty-icon {
  width: 68px; height: 68px; display: grid; place-items: center; border-radius: 20px;
  background: #E7F4EC; color: var(--color-action-strong);
}
.profile-page__empty-icon .ico { width: 36px; height: 36px; }
.profile-page__empty h1, .profile-page__error h1 { margin: 2px 0 0; color: var(--color-primary); font-size: clamp(28px, 4vw, 38px); }
.profile-page__empty p, .profile-page__error p { max-width: 48ch; margin: 0 0 8px; color: var(--color-text-secondary); font-size: 17px; line-height: 1.55; }
@media (max-width: 1040px) {
  .landing-v2.has-completed-result { gap: 34px; }
  .home-dashboard { width: calc(100% - 8px); }
  .home-result { padding: 26px 16px 24px; border-radius: 16px; }
  .home-result__heading { font-size: clamp(25px, 4.7vw, 32px); }
  .home-result__intro { margin-top: 12px; font-size: 17px; }
  .home-result__ranked { grid-template-columns: 1fr; gap: 22px; margin-top: 24px; }
  .home-result__footer { margin-top: 24px; }
  .home-result__all-results { width: 100%; min-height: 50px; }
}

@media (max-width: 980px) {
  body[data-step="profile"] main { padding-inline: 12px; }
  .profile-page { padding-top: 0; }
  
  
  .profile-group { grid-template-columns: minmax(190px, .8fr) minmax(0, 1.45fr) auto; gap: 18px; }
  
}

@media (max-width: 720px) {
  body[data-step="profile"] main { padding-inline: 0; padding-bottom: 28px; }
  
  
  
  
  
  
  
  .profile-group {
    grid-template-columns: minmax(0, 1fr) auto; gap: 16px 12px; padding: 24px 0;
  }
  
  
  .profile-group__content { grid-column: 1 / -1; grid-row: 2; }
  .profile-group__edit { grid-column: 2; grid-row: 1; align-self: center; min-width: 82px; }
  .profile-group__row { grid-template-columns: minmax(84px, .38fr) minmax(0, 1fr); gap: 3px 12px; }
  
  
  
  
}

/* ── <ResultProjects />: רצועת תמונות עם כיתוב, בלי מסגרת ── */
.rx-projects { display: grid; gap: 18px; }
.rx-projects__strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.rx-projects__link { display: grid; gap: 6px; color: inherit; text-decoration: none; }
.rx-projects__link img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--color-surface-muted); }
.rx-projects__name { margin: 4px 0 0; font-family: var(--head); font-size: 18px; color: var(--color-text); }
.rx-projects__meta { margin: 0; font-size: 14.5px; color: var(--color-text-secondary); }
.rx-projects__link:hover .rx-projects__name { text-decoration: underline; }
.rx-projects__link:focus-visible { outline: var(--focus-outline); outline-offset: 4px; }
.rx-projects__all { justify-self: start; min-height: 44px; display: inline-flex; align-items: center; color: var(--color-action-strong); font-weight: 700; }
@media (max-width: 760px) {
  .rx-projects__strip { grid-template-columns: 1fr; gap: 20px; }
}

/* ── הדגמה ללקוח (בתפריט הראשי, app.js, demo-fill.js)
   הפעולות נחשפות רק על localhost וב-preview. בזמן המילוי המונפש השאלון
   אינו מגיב ללחיצות, כדי שנגיעה מקרית לא תסיט את הפרסונה מהיעד. */
.demo-menu { position: relative; }
.demo-menu.is-hidden { display: none; }
/* רצועת "נתוני דוגמה" של אינדקס הפיתוח (/dev/screens, screens/demo-dev.js), רק ב-localhost. */
.dev-sample-banner {
  margin: 0; padding: 6px 16px; text-align: center; font-size: 13px; font-weight: 600;
  background: var(--color-warning-surface); color: var(--color-warning-text); border-block-end: 1px solid var(--color-warning);
}
.navlink--demo {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer; list-style: none;
  color: var(--color-primary);
}
.navlink--demo::-webkit-details-marker { display: none; }
.navlink__wand { display: inline-block; }
.demo-menu__list {
  position: absolute; inset-block-start: calc(100% + 6px); inset-inline-start: 0; z-index: 40;
  display: grid; gap: 2px; min-width: 170px; padding: 6px;
  background: var(--color-surface); border: 1px solid rgba(11, 33, 64, .18); border-radius: var(--r-sm);
  box-shadow: var(--shadow);
}
.demo-menu__item {
  border: none; background: none; cursor: pointer; text-align: start; white-space: nowrap;
  padding: 10px 12px; border-radius: 8px;
  font-family: var(--body); font-size: 15px; font-weight: 600; color: var(--color-text);
}
.demo-menu__item:hover { background: var(--color-info-surface); color: var(--color-primary); }
.demo-menu__item:disabled { color: var(--color-disabled-text); cursor: progress; }
#demo-neighborhood-search { width: min(300px, calc(100vw - 64px)); padding: 0 10px; }
@media (max-width: 699px) {
  .navlink--demo { display: flex; }
  .demo-menu__list { position: static; box-shadow: none; border: none; background: none; padding: 0 12px; }
}
.is-demo-filling #options { pointer-events: none; }

/* "כמה זמן מכאן לעבודה": שלושה מרכזי תעסוקה, הדקות בגדול. */
.rx-commute__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 24px; margin: 0; padding: 0; list-style: none; }
.rx-commute__item { display: grid; gap: 4px; align-content: start; padding: 16px 18px; border-radius: 14px; background: var(--color-surface); border: 1px solid var(--color-border); }
.rx-commute__name { margin: 0; color: var(--color-text); font-size: 15px; line-height: 1.35; font-weight: 600; }
.rx-commute__city { display: block; font-weight: 400; font-size: 13px; color: var(--color-text-secondary); }
.rx-commute__value { margin: 0; display: flex; align-items: baseline; gap: 6px; color: var(--color-text); }
.rx-commute__minutes { font-family: var(--head); font-size: 34px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.rx-commute__unit { font-size: 16px; color: var(--color-text-secondary); }
.rx-commute__text { margin: 0; color: var(--color-text-secondary); font-size: 14px; line-height: 1.55; }
@media (max-width: 720px) {
  .rx-commute__list { grid-template-columns: 1fr; gap: 10px; }
  .rx-commute__item { grid-template-columns: auto 1fr; column-gap: 16px; padding: 12px 14px; }
  .rx-commute__name { grid-column: 1 / -1; }
  .rx-commute__value { grid-row: span 2; }
}

/* "מקומות בילוי": סוגי המקומות במספר גדול, הרחוב של הערב וקישור למפה. */
.rx-evening__kinds { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0; padding: 0; list-style: none; }
.rx-evening__kind { display: grid; gap: 2px; min-width: 84px; }
.rx-evening__count { font-family: var(--head); font-size: 34px; line-height: 1.1; color: var(--color-text); font-variant-numeric: tabular-nums; }
.rx-evening__label { color: var(--color-text-secondary); font-size: 15px; line-height: 1.4; }
.rx-evening__street { margin: 0; padding: 12px 16px; border-radius: 12px; background: var(--color-info-surface); color: var(--color-text); font-size: 16px; line-height: 1.5; }
.rx-evening__foot { display: grid; gap: 6px; justify-items: start; }
.rx-evening__map { font-size: 15px; }
@media (max-width: 720px) {
  .rx-evening__kinds { gap: 10px 20px; }
  .rx-evening__count { font-size: 28px; }
}

/* "בתי הספר לילדים שלכם": קבוצה לכל שלב, שם המוסד ומתחתיו זרם ומרחק. */
.rx-schools__groups { display: grid; gap: 22px; }
.rx-schools__group { display: grid; gap: 10px; }
.rx-schools__title { margin: 0; color: var(--color-text); font-size: 17px; line-height: 1.35; }
.rx-schools__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; margin: 0; padding: 0; list-style: none; }
.rx-schools__item { display: grid; gap: 2px; padding-inline-start: 12px; border-inline-start: 3px solid var(--color-info-surface); }
.rx-schools__name { color: var(--color-text); font-size: 16px; line-height: 1.4; font-weight: 600; }
.rx-schools__meta, .rx-schools__note { color: var(--color-text-secondary); font-size: 14px; line-height: 1.5; }
.rx-schools__note { margin: 0; }
.rx-schools__caveat { margin: 0; padding: 12px 16px; border-radius: 12px; background: var(--color-surface-muted); color: var(--color-text-secondary); font-size: 14.5px; line-height: 1.55; }
@media (max-width: 720px) {
  .rx-schools__list { grid-template-columns: 1fr; }
}

/* "פארקים גדולים ליד הבית": שם ומרחק, והשטח בצד. */
.rx-parks__list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.rx-parks__item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--color-divider); }
.rx-parks__item:last-child { border-bottom: 0; }
.rx-parks__text { display: grid; gap: 2px; }
.rx-parks__name { color: var(--color-text); font-size: 16.5px; line-height: 1.4; font-weight: 600; }
.rx-parks__where { color: var(--color-text-secondary); font-size: 14px; line-height: 1.5; }
.rx-parks__area { flex: none; color: var(--color-text); font-family: var(--head); font-size: 18px; font-variant-numeric: tabular-nums; }

/* "עלייה לעיר": גרף עמודות קטן, עמודה מוערמת כשיש ארץ מוצא. */
.rx-aliyah__figure { display: grid; gap: 10px; margin: 0; }
.rx-aliyah__svg { display: block; width: 100%; height: auto; overflow: visible; }
.rx-aliyah__base { stroke: var(--color-divider); stroke-width: 1; }
.rx-aliyah__total, .rx-aliyah__rest { fill: var(--pair-1); }
.rx-aliyah__mine { fill: var(--pair-2); }
.rx-aliyah__hit { fill: transparent; }
.rx-aliyah__bar:hover .rx-aliyah__hit, .rx-aliyah__bar:focus .rx-aliyah__hit { fill: var(--color-surface-hover); }
.rx-aliyah__bar:focus { outline: none; }
.rx-aliyah__year { fill: var(--color-text-secondary); font-size: 12px; }
.rx-aliyah__value { fill: var(--color-text); font-size: 13px; font-weight: 600; }
.rx-aliyah__legend { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--color-text-secondary); font-size: 13.5px; }
.rx-aliyah__key { display: inline-flex; align-items: center; gap: 6px; }
.rx-aliyah__swatch { width: 12px; height: 12px; border-radius: 3px; }
.rx-aliyah__key--mine { background: var(--pair-2); }
.rx-aliyah__key--rest { background: var(--pair-1); }
.rx-aliyah__note { margin: 0; color: var(--color-text-secondary); font-size: 14px; line-height: 1.5; }
.rx-aliyah__toggle { margin-top: 2px; }
.rx-aliyah__ranking { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.rx-aliyah__country { display: grid; grid-template-columns: minmax(96px, 9rem) minmax(0, 1fr) 4.5rem; align-items: center; gap: 12px; }
.rx-aliyah__country-name { color: var(--color-text); font-size: 15px; line-height: 1.35; display: grid; }
.rx-aliyah__mine-tag { color: var(--pair-2-ink); font-size: 12.5px; font-weight: 600; }
.rx-aliyah__country-track { display: block; block-size: 12px; }
.rx-aliyah__country-fill { display: block; block-size: 100%; border-start-end-radius: 4px; border-end-end-radius: 4px; background: var(--pair-1); }
.rx-aliyah__country.is-mine .rx-aliyah__country-fill { background: var(--pair-2); }
.rx-aliyah__country-count { color: var(--color-text-secondary); font-size: 14px; font-variant-numeric: tabular-nums; text-align: end; }
.rx-aliyah__country-others { color: var(--color-text-secondary); font-size: 14px; padding-top: 4px; }

/* "מאיפה הגיעו המשפחות": טבעת ומקרא עם אחוזים. הסדר בטבעת (נייבי, תכלת, כחול,
   אבן, slate) נבחר כך שכל שתי פרוסות סמוכות נבדלות גם בעיוורון צבעים. */
.rx-origins__figure { display: grid; grid-template-columns: 180px minmax(0, 1fr); align-items: center; gap: 24px; margin: 0; }
.rx-origins__svg { display: block; width: 180px; height: 180px; }
.rx-origins__slice { stroke: var(--color-surface); stroke-width: 2; }
.rx-origins__tone-0 { fill: var(--viz-3); background: var(--viz-3); }
.rx-origins__tone-1 { fill: var(--viz-1); background: var(--viz-1); }
.rx-origins__tone-2 { fill: var(--viz-2); background: var(--viz-2); }
.rx-origins__tone-3 { fill: var(--color-border-stone); background: var(--color-border-stone); }
.rx-origins__tone-4 { fill: var(--color-text-secondary); background: var(--color-text-secondary); }
.rx-origins__tone-mine { fill: var(--pair-2); background: var(--pair-2); }
.rx-origins__legend { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.rx-origins__item { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.rx-origins__swatch { width: 12px; height: 12px; border-radius: 3px; }
.rx-origins__label { display: grid; color: var(--color-text); font-size: 15px; line-height: 1.35; }
.rx-origins__share { color: var(--color-text); font-variant-numeric: tabular-nums; font-size: 15px; }
@media (max-width: 720px) {
  .rx-origins__figure { grid-template-columns: 1fr; justify-items: center; }
  .rx-origins__legend { inline-size: 100%; }
}

/* "בתי כנסת בשכונה": שמות בשתי עמודות, בלי ספירה. */
.rx-synagogues__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; margin: 0; padding: 0; list-style: none; }
.rx-synagogues__item { padding-inline-start: 12px; border-inline-start: 3px solid var(--color-info-surface); color: var(--color-text); font-size: 16px; line-height: 1.45; }
@media (max-width: 720px) { .rx-synagogues__list { grid-template-columns: 1fr; } }

/* "יום רגיל בשכונה": סעיף מלא בדו"ח; כל משפט מקשר לסעיף שלו. */
.rx-day__text { margin: 0; color: var(--color-text); font-size: 17px; line-height: 1.75; }
.rx-day__link { color: inherit; text-decoration: underline dotted; text-decoration-color: var(--color-border-hover); text-underline-offset: 5px; }
.rx-day__link:hover { color: var(--color-link); text-decoration-color: currentColor; }
.rx-day__link:focus-visible { outline: var(--focus-outline); outline-offset: 2px; border-radius: 4px; }

/* "למה לא 100%": שורה לכל ממד. הפער מסומן בפס טרקוטה, מה שמושלם בכחול. */
.rx-gaps__list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.rx-gaps__item { display: grid; gap: 2px; padding-inline-start: 14px; border-inline-start: 3px solid var(--color-divider); }
.rx-gaps__item.is-most, .rx-gaps__item.is-some { border-inline-start-color: var(--color-accent); }
.rx-gaps__item.is-almost, .rx-gaps__item.is-perfect { border-inline-start-color: var(--color-action); }
.rx-gaps__tone { color: var(--color-text-secondary); font-size: 13px; font-weight: 600; }
.rx-gaps__label { color: var(--color-text); font-size: 17px; line-height: 1.35; }
.rx-gaps__text { color: var(--color-text-secondary); font-size: 15px; line-height: 1.6; }

/* ── component: Feedback — כרטיס פידבק בסוף מסך התוצאה (D-025) ──────────────
   מזמין ושקט: משטח לבן חם עם פס עליון בכחול הפעולה, דירוג מהיר בשלושה כפתורים
   שווים (בחירה = תכלת + מסגרת כחולה + אייקון, כמו תשובה בשאלון), ותודה בכחול. */
.feedback {
  width: min(720px, calc(100% - 32px)); margin: 40px auto 48px; padding: 28px 28px 24px;
  border: 1px solid var(--color-border); border-top: 4px solid var(--color-action);
  border-radius: var(--r-lg); background: var(--color-surface); box-shadow: var(--shadow-card);
}
.feedback[hidden] { display: none; }
/* סוף "השכונות שלי": העוזר מציע פידבק כשהוא נראה (screens/assistant-improve.js). */
#feedback-offer-sentinel { height: 1px; pointer-events: none; }
/* רק במסכי התוצאה ("השכונות שלי" והשכונה עצמה). */
body:not([data-step="matches"]):not([data-step="result"]) .feedback { display: none; }
.feedback__form { display: grid; gap: 18px; }
.feedback__head { display: grid; gap: 6px; }
.feedback__eyebrow {
  display: inline-flex; align-items: center; gap: 7px; margin: 0;
  color: var(--color-primary); font-family: var(--head); font-size: 13px; font-weight: 700;
}
.feedback__eyebrow .ico { width: 16px; height: 16px; color: var(--color-action); }
.feedback__title { margin: 0; font-size: clamp(22px, 4vw, 28px); line-height: 1.2; color: var(--color-primary); }
.feedback__lede { margin: 0; max-width: 60ch; color: var(--color-text-secondary); font-size: 15.5px; line-height: 1.6; }
.feedback__rating { margin: 0; padding: 0; border: 0; min-width: 0; }
.feedback__label {
  display: block; margin: 0 0 10px; padding: 0;
  font-family: var(--head); font-size: 15px; font-weight: 600; color: var(--color-text);
}
.feedback__field { display: grid; gap: 10px; }
.feedback__field .feedback__label { margin: 0; }
.feedback__choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.feedback__choice {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 10px 12px; cursor: pointer;
  border: 2px solid var(--color-border); border-radius: var(--r-sm); background: var(--color-surface);
  font-family: var(--head); font-size: 15px; font-weight: 600; color: var(--color-text);
  transition: border-color .12s ease, background .12s ease, transform .12s ease;
}
.feedback__choice .ico { width: 24px; height: 24px; color: var(--color-action); }
.feedback__choice:hover { border-color: var(--color-border-hover); background: var(--color-surface-hover); }
.feedback__choice:focus-visible { outline: var(--focus-outline); outline-offset: 2px; }
.feedback__choice[aria-pressed="true"] {
  border-color: var(--color-selected-border); background: var(--color-selected);
  color: var(--color-action-strong); box-shadow: var(--shadow-selected);
}
.feedback__choice[aria-pressed="true"] .ico { color: var(--color-action-strong); }
/* בחירה תמיד עם ✓ (docs/design-colors.md): סימן קטן בפינה של הכפתור הנבחר. */
.feedback__choice { position: relative; }
.feedback__choice .feedback__choice-check {
  display: none; position: absolute; inset-block-start: 6px; inset-inline-end: 6px;
  width: 18px; height: 18px; color: var(--color-action-strong);
}
.feedback__choice[aria-pressed="true"] .feedback__choice-check { display: block; }
.feedback__text { min-height: 104px; font-size: 16px; }
.feedback__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.feedback__send { padding: 12px 30px; min-height: 48px; font-size: 16px; }
.feedback__privacy {
  display: flex; align-items: flex-start; gap: 7px; flex: 1 1 260px; margin: 0;
  color: var(--color-text-secondary); font-size: 13.5px; line-height: 1.5;
}
.feedback__privacy .ico { width: 15px; height: 15px; margin-top: 2px; color: var(--color-icon-muted); }
.feedback__error { margin: 0; color: var(--color-error); font-size: 14.5px; font-weight: 600; }
.feedback__error:empty { display: none; }
.feedback__thanks {
  display: flex; align-items: flex-start; gap: 14px; padding: 18px 20px;
  border-radius: var(--r); background: var(--color-success-surface);
}
.feedback__thanks-mark { width: 30px; height: 30px; color: var(--color-success); }
.feedback__thanks-body { display: grid; gap: 4px; }
.feedback__thanks-title { margin: 0; font-family: var(--head); font-size: 19px; font-weight: 700; color: var(--color-primary); }
.feedback__thanks-text { margin: 0; color: var(--color-text-secondary); font-size: 15px; line-height: 1.55; }
.feedback__again { justify-self: start; padding: 6px 0 0; color: var(--color-link); }
.feedback__again:hover { color: var(--color-action-hover); text-decoration: underline; }
@media (max-width: 520px) {
  .feedback { padding: 22px 18px 20px; margin: 28px auto 36px; }
  .feedback__choice { flex-direction: column; gap: 4px; min-height: 68px; padding: 8px 6px; font-size: 14px; }
  .feedback__send { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .feedback__choice { transition: none; }
}

/* ── כרטיס שכונה מקופל במסך ההתאמות (D-028) ─────────────────────────────
   כותרת קטנה (צילום, שם, עיר, תגית רמה); לחיצה פותחת לוח עם ההצגה המקדימה, ורק אחד פתוח בכל פעם.
   מעבר לדוח המלא: הכפתור הכחול או הצילום. */
.rx-match-card.is-collapsible { overflow: hidden; }
.rx-match-card.is-previewed { border-color: var(--color-selected-border); box-shadow: var(--shadow-selected); }
.rx-match-card__head {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 72px; padding: 8px 12px;
  border: 0; border-radius: calc(var(--r) - 1px); background: transparent; color: var(--color-text);
  font: inherit; text-align: start; cursor: pointer;
}
.rx-match-card__head:hover { background: var(--color-surface-hover); }
.rx-match-card__head:focus-visible { outline: var(--focus-outline); outline-offset: -3px; box-shadow: var(--focus-ring); }
.rx-match-card__thumb {
  width: 56px; height: 56px; flex: none; border-radius: var(--r-sm); object-fit: cover; background: var(--color-surface-muted);
}
.rx-match-card__head-identity { display: grid; gap: 3px; min-width: 0; flex: 1; }
.rx-match-card__head-identity strong {
  color: var(--color-primary); font-family: var(--head); font-size: 18px; font-weight: 700; line-height: 1.15; overflow-wrap: anywhere;
}
.rx-match-card__head-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.rx-match-card__head-meta .rx-match-card__city {
  display: inline-flex; align-items: center; gap: 4px; color: var(--color-action-strong);
  font-family: var(--head); font-size: 13.5px; font-weight: 600; line-height: 1.2;
}
.rx-match-card__chip {
  padding: 2px 10px; border-radius: var(--r-pill); background: var(--color-selected); color: var(--color-action-strong);
  font-size: 12.5px; font-weight: 700; line-height: 1.3;
}
.rx-match-card__chevron { width: 22px; height: 22px; flex: none; color: var(--color-icon-muted); transition: transform .18s ease; }
.rx-match-card.is-previewed .rx-match-card__chevron { transform: rotate(180deg); }
.rx-match-card__panel { display: grid; border-block-start: 1px solid var(--color-divider); }
.rx-match-card__panel[hidden] { display: none; }
.rx-match-card.is-collapsible .rx-match-card__surface {
  min-height: 0; border-radius: 0; cursor: default;
}
.rx-match-card.is-collapsible .rx-match-card__surface:hover { background: var(--color-surface); }
.rx-match-card.is-collapsible .rx-match-card__photo { min-height: 190px; cursor: pointer; }
.rx-match-card.is-collapsible .rx-match-card__photo img { min-height: 190px; }
/* השם והעיר כבר בכותרת; בלוח נשארות התגיות. */
.rx-match-card.is-collapsible .rx-match-card__body .rx-match-card__city,
.rx-match-card.is-collapsible .rx-match-card__body .rx-match-card__identity > strong { display: none; }
.rx-match-card.is-collapsible .rx-match-card__body { padding: 14px 16px; gap: 11px; }
.rx-match-card.is-collapsible .rx-match-card__body.is-overview { min-height: 0; padding: 14px 16px; }
.rx-match-card.is-collapsible .rx-match-card__overview-copy { -webkit-line-clamp: 2; }
.rx-match-card.is-collapsible .rx-match-card__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 12px 16px 16px; }
.rx-match-card.is-collapsible .rx-match-card__profile { grid-column: 1 / -1; order: -1; }
.rx-match-card.is-collapsible .rx-match-card__service {
  min-height: 40px; padding: 8px 6px; font-size: 12.5px; line-height: 1.2; text-align: center; white-space: normal;
}
@media (max-width: 719px) {
  .rx-match-card.is-collapsible .rx-match-card__surface, .rx-match-card.is-collapsible.is-active .rx-match-card__surface { grid-template-columns: 1fr; min-height: 0; }
}
@media (min-width: 720px) {
  #result-match-list:has(.rx-match-card.is-collapsible) { grid-template-columns: 1fr 1fr; align-items: start; }
  #result-match-list .rx-match-card.is-previewed { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { .rx-match-card__chevron { transition: none; } }
/* ── עמוד שירות מלא: /services/rental ─────────────────────────────────────
   עמוד קריאה מאותה משפחה של כתבות השכונה: בלי כרטיס עוטף ובלי כרטיס לכל פסקה.
   שער (פירורי לחם, כותרת, פתיח, תמונה), ואז עמודת קריאה של עד 720px. במחשב יש לצדה
   תוכן עניינים דביק של השלבים עם "השאירו פרטים". השלבים הם ציר: מספר בטרקוטה (מספרי
   סעיפים, לפי DESIGN.md), קו דק שמחבר ביניהם, "מה החוק קובע" על משטח שמנת,
   ו"מה אנחנו עושים" על תכלת, צבע הפעולה של SaNes. רווח מפריד בין חלקים, לא מסגרות. */
.service-page { width: 100%; max-width: 1080px; margin-inline: auto; display: grid; gap: clamp(28px, 4vw, 48px);
  padding-bottom: clamp(32px, 5vw, 64px); }
.service-page ::selection { background: var(--color-selected); color: var(--color-text); }

.service-page__crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center;
  gap: 4px 8px; font-size: 14px; color: var(--color-text-secondary); }
.service-page__crumbs li + li::before { content: '‹'; margin-inline-end: 8px; color: var(--color-icon-muted); }
.service-page__crumbs a { display: inline-block; padding-block: 13px; margin-block: -13px; color: var(--color-link);
  text-underline-offset: 3px; }
.service-page__crumbs [aria-current] { color: var(--color-text); font-weight: 600; }

.service-page__hero { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; }
.service-page__intro { display: grid; gap: 18px; justify-items: start; }
.service-page__hero h2 {
  margin: 0; color: var(--color-text); font-size: clamp(38px, 4.7vw, 58px);
  line-height: 1.12; letter-spacing: -.02em; text-wrap: balance;
}
.service-page__lede { margin: 0; max-width: 30em; color: var(--color-text); font-family: var(--head); font-weight: 500;
  font-size: clamp(19px, 2vw, 22px); line-height: 1.5; text-wrap: balance; }
.service-page__leave { margin-top: 6px; }
.service-page__media { overflow: hidden; border-radius: var(--r-lg); aspect-ratio: 4 / 3; background: var(--color-selected);
  box-shadow: var(--shadow-lift); }
.service-page__media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 60% 55%; }

.service-page__layout { display: grid; gap: 48px; align-items: start; }
.service-page__main { display: grid; gap: clamp(48px, 6vw, 72px); min-width: 0; }

.service-page__block { display: grid; gap: 18px; align-content: start; }
.service-page__block h3 {
  margin: 0; color: var(--color-text); font-size: clamp(24px, 2.8vw, 30px); line-height: 1.24;
  letter-spacing: -.012em; text-wrap: balance;
}
.service-page__block p, .service-page__block li, .service-page__block dd {
  margin: 0; color: var(--color-text); font-size: 17px; line-height: 1.7; text-wrap: pretty;
}

/* "בקצרה": הפתיח של העמוד, על משטח תכלת שקט כמו "במבט מהיר" בכתבות. */
.service-page__summary { padding: clamp(22px, 3.4vw, 32px) clamp(20px, 3.6vw, 36px); border-radius: var(--r-lg);
  background: var(--color-info-surface); gap: 14px; }
.service-page__summary h3 { font-size: 20px; }
.service-page__summary ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.service-page__summary li { position: relative; padding-inline-start: 20px; font-size: 18px; line-height: 1.6; }
.service-page__summary li::before { content: ''; position: absolute; inset-inline-start: 2px; top: .68em;
  width: 7px; height: 7px; border-radius: var(--r-pill); background: var(--color-action); }

/* ── השלבים ── */
.service-page__steps { list-style: none; margin: 8px 0 0; padding: 0; display: grid; }
.service-page__step {
  position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 20px;
  grid-template-areas: "num title" ". body"; padding-bottom: clamp(36px, 4.4vw, 48px);
  scroll-margin-top: 24px;
}
.service-page__step:last-child { padding-bottom: 0; }
/* הקו שמחבר את המספרים; עובר מתחת לעיגול ועד העיגול הבא. */
.service-page__step:not(:last-child)::before {
  content: ''; position: absolute; inset-inline-start: 23.5px; top: 48px; bottom: 0; width: 1px;
  background: var(--color-border-stone);
}
.service-page__step-number {
  grid-area: num; width: 48px; height: 48px; border-radius: var(--r-pill); display: grid; place-items: center;
  background: var(--color-surface); border: 1px solid var(--color-border-stone); color: var(--color-accent-text);
  font-family: var(--head); font-size: 20px; font-weight: 700; font-variant-numeric: lining-nums tabular-nums;
}
.service-page__step h4 {
  grid-area: title; align-self: center; margin: 0; color: var(--color-text); font-size: clamp(20px, 2.2vw, 23px);
  line-height: 1.3; text-wrap: balance;
}
.service-page__step h4:focus { outline: none; }
.service-page__step h4:focus-visible { outline: var(--focus-outline); outline-offset: 4px; border-radius: 4px; }
.service-page__step-body { grid-area: body; display: grid; gap: 14px; min-width: 0; margin-top: 12px; }

.service-page__law {
  display: grid; gap: 8px; margin-top: 6px; padding: 18px 20px; border-radius: var(--r);
  background: var(--color-surface); box-shadow: var(--shadow-card);
}
.service-page__block .service-page__law-title {
  display: flex; align-items: center; gap: 8px; color: var(--color-text); font-family: var(--head);
  font-size: 15px; font-weight: 700; line-height: 1.4;
}
.service-page__law-title .ico { width: 20px; height: 20px; color: var(--color-action-strong); }
.service-page__block .service-page__law p:not([class]) { font-size: 16px; line-height: 1.65; }
.service-page__law-sources { display: grid; gap: 2px; margin-top: 4px; padding-top: 10px;
  border-top: 1px solid var(--color-divider); }
.service-page__block .service-page__source { color: var(--color-text-secondary); font-size: 14px; line-height: 1.5; }

.service-page__we { display: grid; gap: 2px; padding: 14px 20px; border-radius: var(--r);
  background: var(--color-info-surface); }
.service-page__block .service-page__we-title { color: var(--color-action-strong); font-size: 14px; font-weight: 700; line-height: 1.5; }
.service-page__block .service-page__we p:not([class]) { font-size: 16.5px; line-height: 1.6; }

/* ── להכין ולבדוק: משטח אחד, שתי רשימות עם סימון ── */
.service-page__pair { display: grid; gap: 28px; padding: clamp(24px, 3.6vw, 36px); border-radius: var(--r-lg);
  background: var(--color-surface); box-shadow: var(--shadow); }
.service-page__pair .service-page__block + .service-page__block { padding-top: 28px; border-top: 1px solid var(--color-divider); }
.service-page__pair h3 { font-size: clamp(21px, 2.3vw, 24px); }
.service-page__checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.service-page__checklist li { position: relative; padding-inline-start: 32px; }
.service-page__checklist li::before {
  content: ''; position: absolute; inset-inline-start: 0; top: .3em; width: 20px; height: 20px;
  background: var(--color-action);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.4'/%3E%3Cpath d='M8.4 12.3l2.5 2.5 4.7-5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.4'/%3E%3Cpath d='M8.4 12.3l2.5 2.5 4.7-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ── מילון: שורות עם קו דק, לא כרטיסים ── */
.service-page__terms { margin: 0; display: grid; column-gap: 32px; }
.service-page__terms div { padding-block: 14px; border-top: 1px solid var(--color-divider); }
.service-page__terms dt { margin: 0; color: var(--color-text); font-weight: 700; font-size: 17px; line-height: 1.4; }
.service-page__block .service-page__terms dd { margin: 4px 0 0; color: var(--color-text-secondary); font-size: 16px; line-height: 1.6; }

/* ── איך אנחנו עוזרים: הסגירה, על נייבי, נפתחת במוטו ── */
.service-page__help {
  display: grid; gap: 14px; justify-items: start;
  padding: clamp(28px, 4.4vw, 44px); border-radius: var(--r-lg);
  background: var(--color-primary); box-shadow: var(--shadow-lift);
}
.service-page__block .service-page__help p { color: var(--color-on-dark-secondary); font-size: 17px; line-height: 1.7; }
.service-page__block .service-page__help .service-page__motto {
  margin-bottom: 4px; color: var(--color-on-dark); font-family: var(--head); font-size: clamp(30px, 3.8vw, 42px);
  font-weight: 700; line-height: 1.15; letter-spacing: -.02em;
}
.service-page__block .service-page__help .service-page__checklist li { color: var(--color-on-dark); font-size: 17px; line-height: 1.6; }
.service-page__help .service-page__checklist li::before { background: var(--color-on-dark); }
.service-page__help .btn { margin-top: 10px; box-shadow: none; }
.service-page__help .btn:hover { box-shadow: none; }

/* ── שאלות נפוצות: רשימה עם קווים, חץ שמסתובב ── */
.service-page__faq { display: grid; border-bottom: 1px solid var(--color-divider); }
.service-page__question { border-top: 1px solid var(--color-divider); }
.service-page__question summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding-block: 16px;
  cursor: pointer; list-style: none; color: var(--color-text); font-family: var(--head); font-weight: 600;
  font-size: 18px; line-height: 1.45;
}
.service-page__question summary::-webkit-details-marker { display: none; }
.service-page__question summary:hover { color: var(--color-link); }
.service-page__question summary:focus-visible { outline: var(--focus-outline); outline-offset: 2px; border-radius: 6px; }
.service-page__chevron { width: 22px; height: 22px; color: var(--color-action-strong); transition: transform .25s cubic-bezier(.16, 1, .3, 1); }
.service-page__question[open] .service-page__chevron { transform: rotate(180deg); }
.service-page__question > p { padding-bottom: 18px; max-width: 62ch; }
.service-page__question > p + .service-page__source { margin-top: -10px; }
@media (prefers-reduced-motion: reduce) { .service-page__chevron { transition: none; } }

.service-page .disclaimer { margin: 0; padding: 0; background: none; box-shadow: none; border-radius: 0;
  font-size: 14px; line-height: 1.7; }

/* ── תוכן העניינים, רק במחשב ── */
.service-page__aside { display: none; }
.service-page__aside-title { margin: 0 0 10px; color: var(--color-text-secondary); font-size: 14px; font-weight: 700; }
.service-page__toc { list-style: none; margin: 0 0 22px; padding: 0; display: grid; }
.service-page__toc a {
  display: flex; align-items: baseline; gap: 12px; padding: 9px 12px; margin-inline: -12px; border-radius: var(--r-sm);
  color: var(--color-text); font-size: 16px; font-weight: 600; line-height: 1.4; text-decoration: none;
}
.service-page__toc a:hover { background: var(--color-surface-hover); color: var(--color-link); }
.service-page__toc a:focus-visible { outline: var(--focus-outline); outline-offset: 0; }
.service-page__toc-number { min-width: 1ch; color: var(--color-accent-text); font-family: var(--head); font-weight: 700;
  font-variant-numeric: tabular-nums; }
.service-page__aside .btn { width: 100%; min-height: 52px; padding-inline: 20px; font-size: 17px; }

/* הקישור לעמוד המלא בגב כרטיס השירות. */
.services-flip__more {
  align-self: center; font-weight: 700; font-size: 15px; color: var(--color-action-strong);
  text-decoration: underline; text-underline-offset: 5px;
}

@media (min-width: 640px) {
  .service-page__terms { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 860px) {
  .service-page__hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (min-width: 1040px) {
  .service-page__layout { grid-template-columns: minmax(0, 720px) 240px; justify-content: space-between; }
  .service-page__aside { display: block; position: sticky; top: 28px; padding-top: 6px; }
}
@media (max-width: 600px) {
  .service-page { gap: 28px; }
  .service-page__media { aspect-ratio: 16 / 11; border-radius: var(--r); }
  .service-page__leave { width: 100%; }
  .service-page__summary, .service-page__pair { margin-inline: -4px; }
  .service-page__step { grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; grid-template-areas: "num title" "body body"; }
  .service-page__step::before { display: none; }
  .service-page__step-number { width: 40px; height: 40px; font-size: 18px; }
  .service-page__step-body { margin-top: 14px; }
  .service-page__law { padding: 16px; }
  .service-page__we { padding: 14px 16px; }
  .service-page__help .btn { width: 100%; }
}
/* ── עמוד הבית החלופי של הדמות המלווה (/home-yosef) ─────────────────────────── */
.yosef-home-step { padding: 0; background: transparent; }
.yosef-home { --yosef-highlight: var(--color-assistant-highlight); color: var(--color-text); }
.yosef-home__hero {
  position: relative; isolation: isolate; overflow: hidden; min-height: min(760px, calc(100vh - 72px));
  display: grid; grid-template-columns: minmax(360px, .9fr) minmax(500px, 1.1fr);
  align-items: stretch; background: linear-gradient(135deg, var(--color-info-surface) 0 45%, var(--color-surface) 66%);
}
.yosef-home__hero::after {
  content: ""; position: absolute; inset: auto -8% -34% 38%; z-index: -1; height: 70%;
  border-radius: 50%; background: color-mix(in srgb, var(--color-info-surface) 48%, transparent); filter: blur(2px);
}
.yosef-home__dismiss {
  position: absolute; z-index: 4; inset-block-start: 28px; inset-inline-start: 32px;
  width: 48px; height: 48px; display: grid; place-items: center; border: 0; border-radius: 50%;
  background: color-mix(in srgb, var(--color-surface) 86%, transparent); color: var(--color-text); box-shadow: var(--shadow); cursor: pointer;
}
.yosef-home__dismiss .ico { width: 22px; height: 22px; }
.yosef-home__portrait { position: relative; display: flex; align-items: end; justify-content: center; min-height: 650px; }
.yosef-home__portrait::before {
  content: ""; position: absolute; inset: 8% 2% 2%; border-radius: 42% 58% 30% 70% / 48% 30% 70% 52%;
  background: linear-gradient(145deg, color-mix(in srgb, var(--color-info-surface) 88%, transparent), color-mix(in srgb, var(--color-surface) 35%, transparent));
}
.yosef-home__figure { position: relative; z-index: 2; width: min(92%, 690px); line-height: 0; transform-origin: 50% 100%; }
.yosef-home__portrait picture { display: block; }
.yosef-home__portrait img { width: 100%; height: auto; max-height: 720px; object-fit: contain; object-position: bottom center; }
.yosef-home__rive { position: absolute; z-index: 3; bottom: 0; left: 50%; translate: -50% 0; width: min(92%, 690px); height: auto; max-height: 720px; aspect-ratio: 900 / 1080; opacity: 0; transition: opacity .4s ease; }
.yosef-home__portrait.is-animated .yosef-home__rive { opacity: 1; }
.yosef-home__portrait.is-animated .yosef-home__figure { visibility: hidden; }
/* יוסף חי: כניסה, נשימה, מצמוץ, ואור שנוסע על המסלול במפה עד לפעימה ביעד (client/parts/YosefPortrait.jsx). */
.yosef-home__motion { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.yosef-home__lid { transform-box: fill-box; transform-origin: 50% 0; transform: scaleY(0); }
.yosef-home__trip { stroke-dasharray: .2 1.3; stroke-dashoffset: .2; opacity: 0; }
.yosef-home__trip-dot { stroke-dasharray: .0001 1.3; stroke-dashoffset: 0; opacity: 0; }
.yosef-home__arrive { transform-box: fill-box; transform-origin: 50% 50%; opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .yosef-home__figure { animation: yosef-rise .7s cubic-bezier(.2, .8, .2, 1) both, yosef-breathe 5.2s ease-in-out .7s infinite; }
  .yosef-home__lid { animation: yosef-blink 6.5s linear 1.6s infinite; }
  .yosef-home__trip { animation: yosef-trip 7s ease-in-out 1s infinite; }
  .yosef-home__trip-dot { animation: yosef-trip-dot 7s ease-in-out 1s infinite; }
  .yosef-home__arrive { animation: yosef-arrive 7s ease-out 1s infinite; }
}
@keyframes yosef-rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes yosef-breathe { 50% { transform: scale(1.004, 1.008); } }
@keyframes yosef-blink {
  0%, 44%, 48%, 90%, 92.5%, 95%, 100% { transform: scaleY(0); }
  46%, 91.2%, 93.8% { transform: scaleY(1); }
}
@keyframes yosef-trip {
  0%, 6% { stroke-dashoffset: .2; opacity: 0; }
  10%, 40% { opacity: 1; }
  46% { stroke-dashoffset: -.8; opacity: 0; }
  100% { stroke-dashoffset: -.8; opacity: 0; }
}
@keyframes yosef-trip-dot {
  0% { stroke-dashoffset: 0; opacity: 0; }
  6% { stroke-dashoffset: 0; opacity: 0; }
  9% { opacity: 1; }
  46% { stroke-dashoffset: -1; opacity: 1; }
  54%, 100% { stroke-dashoffset: -1; opacity: 0; }
}
@keyframes yosef-arrive {
  0%, 43% { opacity: 0; transform: scale(.6); }
  47% { opacity: .9; transform: scale(1); }
  62%, 100% { opacity: 0; transform: scale(2.4); }
}
.yosef-home__content {
  align-self: center; width: min(760px, 92%); padding: 88px clamp(36px, 6vw, 96px) 64px 24px;
}
.yosef-home__eyebrow {
  display: inline-flex; margin: 0 0 20px; padding: 9px 16px; border-radius: 999px;
  color: var(--color-action-strong); background: var(--color-info-surface); font-weight: 800;
}
.yosef-home h1 { max-width: 730px; margin: 0; color: var(--color-text); font-size: clamp(2.7rem, 4.5vw, 5rem); line-height: .98; letter-spacing: -.045em; }
.yosef-home__lede { max-width: 690px; margin: 28px 0 0; font-size: clamp(1.15rem, 1.55vw, 1.48rem); line-height: 1.65; color: var(--color-text-secondary); }
.yosef-home__actions { display: flex; align-items: center; gap: 18px; margin-top: 34px; }
.yosef-home__start { min-width: 230px; min-height: 58px; justify-content: center; gap: 14px; border-radius: 18px; font-size: 1.25rem; }
.yosef-home__start .ico { width: 22px; height: 22px; }
.yosef-home__reassurance { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 26px 0 0; color: var(--color-text-secondary); }
.yosef-home__reassurance .ico { width: 20px; height: 20px; }
/* The page already has a capped main container; gutters must not grow with the viewport. */
.yosef-home__demo { width: 100%; min-width: 0; padding-inline: 24px; }
@media (max-width: 1199px) {
  body[data-step="yosef-home"] .topbar { grid-template-columns: minmax(0, 1fr) auto; }
  body[data-step="yosef-home"] .topbar__contact { display: none; }
  body[data-step="yosef-home"] .topbar .brand { justify-self: start; margin-inline-start: 10px; }
}
.yosef-home__demo { padding-bottom: 100px; }
.yosef-home__demo .home-demo__badge { background: var(--yosef-highlight); color: var(--color-text); font-weight: 800; }
.yosef-home__demo .home-demo__badge .ico { color: currentColor; }
.yosef-home__guide {
  position: fixed; z-index: 25; inset-inline-start: 20px;
  inset-block-end: max(20px, env(safe-area-inset-bottom)); text-align: start;
}
.yosef-home__guide-trigger {
  display: grid; place-items: center; width: 64px; height: 64px; padding: 0;
  border: 0; border-radius: 50%; background: var(--yosef-highlight); cursor: pointer;
  box-shadow: 0 6px 18px rgb(11 33 64 / 18%);
}
.yosef-home__guide-trigger img { display: block; width: 64px; height: 64px; object-fit: contain; }
.yosef-home__guide-trigger:hover { transform: translateY(-2px); }
.yosef-home__guide-trigger:focus-visible, .yosef-home__bubble-close:focus-visible {
  outline: var(--focus-outline); outline-offset: 4px;
}
.yosef-home__bubble {
  position: absolute; inset-inline-start: 0; inset-block-end: 82px;
  width: min(680px, calc(100vw - 40px)); max-height: calc(100dvh - 130px); overflow-y: auto;
  padding: 28px; border-radius: 16px; background: var(--color-surface);
  box-shadow: 0 12px 40px rgb(11 33 64 / 18%);
}
.yosef-home__bubble[hidden] { display: none; }
.yosef-home__bubble h2 { margin: 0; padding-inline-end: 44px; font-size: 26px; line-height: 1.3; }
.yosef-home__bubble p { margin: 12px 0 22px; font-size: 20px; line-height: 1.6; }
.yosef-home__bubble .yosef-home__bubble-services { font-size: 17px; color: var(--color-text-secondary); }
.yosef-home__bubble-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.yosef-home__bubble-actions .btn { min-height: 48px; }
@media (max-width: 480px) {
  .yosef-home__bubble-actions .btn { width: 100%; justify-content: center; }
}
.yosef-home__bubble-close {
  position: absolute; inset-inline-end: 12px; inset-block-start: 12px;
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 0; border-radius: 50%; background: transparent; color: var(--color-text); cursor: pointer;
}
.yosef-home__bubble-close:hover { background: var(--color-info-surface); }
.yosef-home__bubble-close .ico { width: 20px; height: 20px; }
@media (min-width: 980px) {
  .yosef-home__demo {
    grid-template-rows: 1fr auto auto auto 1fr;
    grid-template-areas: ". card" "badge card" "title card" "lede card" ". card";
  }
}

@media (max-width: 820px) {
  .yosef-home__hero { display: flex; flex-direction: column; min-height: auto; background: linear-gradient(var(--color-info-surface) 0 33%, var(--color-surface) 52%); }
  .yosef-home__dismiss { top: 18px; left: 18px; width: 44px; height: 44px; }
  .yosef-home__portrait { min-height: 370px; order: 0; padding-top: 42px; }
  .yosef-home__figure, .yosef-home__rive { width: min(100%, 460px); }
  .yosef-home__portrait img, .yosef-home__rive { max-height: 455px; }
  .yosef-home__content { order: 1; width: auto; margin-top: -30px; padding: 20px 24px 42px; text-align: center; }
  .yosef-home h1 { font-size: clamp(2.45rem, 11vw, 4rem); line-height: 1.04; }
  .yosef-home__lede { margin-top: 20px; font-size: 1.12rem; }
  .yosef-home__actions { flex-direction: column; gap: 14px; }
  .yosef-home__start { width: 100%; min-height: 58px; }
  .yosef-home__reassurance { font-size: .9rem; }
  .yosef-home__how, .yosef-home__demo { padding-inline: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .yosef-home *, .yosef-home *::before, .yosef-home *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

/* Neighborhood comparison within the assistant dialog. */
.assistant-comparison__selectors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.assistant-comparison__selectors label { display: grid; gap: 8px; font-weight: 600; min-width: 0; }
.assistant-comparison__selectors select { width: 100%; min-width: 0; min-height: 48px; padding: 10px; border: 1px solid var(--color-border); border-radius: 12px; color: inherit; background: var(--color-surface); font: inherit; }
.assistant-comparison__status:empty, .assistant-comparison__result:empty { display: none; }
.assistant-comparison__result { display: grid; gap: 16px; }
.assistant-comparison__sentence { font-size: 1.1rem; line-height: 1.8; }
.assistant-comparison__preferred { padding: 16px; border-radius: 12px; background: var(--color-info-surface); line-height: 1.7; }
.assistant-comparison__basis summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; text-decoration: underline; text-underline-offset: 4px; }
.assistant-comparison__basis ul { padding-inline-start: 20px; line-height: 1.7; }
.assistant-comparison__basis li + li { margin-block-start: 8px; }
.assistant-comparison__scope { font-size: .9rem; line-height: 1.6; color: var(--color-text-secondary); }
@media (max-width: 600px) {
  .assistant-comparison__selectors { grid-template-columns: 1fr; gap: 12px; }
}

.assistant-overlay__body:has(#assistant-improve:not([hidden]) > #assistant-improve-comparison:not([hidden])) > .assistant-overlay__figure { display: none; }
.assistant-comparison__choice { min-width: 0; }
.assistant-comparison__photo { position: relative; margin: 12px 0 0; aspect-ratio: 16 / 10; border-radius: 12px; background: var(--color-info-surface); }
.assistant-comparison__photo > img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.assistant-comparison__no-photo { display: flex; height: 100%; align-items: center; justify-content: center; padding: 16px; text-align: center; color: var(--color-text-secondary); }
.assistant-comparison__rank { margin-block: 8px 0; font-size: .85rem; color: var(--color-text-secondary); }

/* Guided search: the supplied Yosef references, real ranked neighborhoods, one question at a time. */
#step-guided-search { max-width: 580px; margin-inline: auto; }
.guided-search { color: var(--color-text); padding-block-end: 28px; }
.guided-search__hero { height: 210px; position: relative; overflow: hidden; background: url('/images/home/step-2.webp') center 45% / cover; border-radius: 24px 24px 0 0; }
.guided-search__hero::before { content: ''; position: absolute; inset: 0; background: color-mix(in srgb, var(--color-surface) 65%, transparent); }
.guided-search__hero > img { position: absolute; height: 315px; width: auto; inset-block-start: 8px; inset-inline-start: 12%; }
.guided-search__content { position: relative; margin-top: -20px; padding: 24px 28px; border-radius: 28px; background: var(--color-surface); display: flex; flex-direction: column; gap: 14px; }
.guided-search h1 { margin: 0; font-size: clamp(23px, 4vw, 29px); line-height: 1.3; text-align: center; text-wrap: balance; }
/* Route changes focus this heading for screen readers; it is not an interactive control. */
#guided-search-title:focus { outline: none; }
.guided-search__intro { margin: 0; text-align: center; color: var(--color-text-secondary); line-height: 1.55; }
.guided-search__matches { display: grid; gap: 12px; }
.guided-search__match { border: 1px solid var(--color-border); border-radius: 16px; }
.guided-search__match figure { position: relative; height: 100px; margin: 0; }
.guided-search__match figure > img { width: 100%; height: 100%; object-fit: cover; border-radius: 15px 15px 0 0; }
.guided-search__band { position: absolute; inset-block-start: 9px; inset-inline-start: 10px; background: var(--color-info-surface); color: var(--color-action-strong); padding: 3px 10px; border-radius: 99px; font-size: 13px; font-weight: 700; }
.guided-search__match > button:not(.btn) { width: 100%; border: 0; background: transparent; color: inherit; display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; text-align: start; cursor: pointer; }
.guided-search__match button strong { display: block; font-size: 19px; }
.guided-search__match button span span { color: var(--color-text-secondary); font-size: 15px; }
.guided-search__match button > .ico { color: var(--color-primary); }
.guided-search__match { background: var(--color-surface); box-shadow: var(--shadow-card); }
.guided-search--results .guided-search__match figure { height: 200px; }
/* "ההעדפות שלכם בשכונה": פאנל תכלת עם ספירה וטבעת, הפירוט בלחיצה, וכפתור "לפרטים מלאים" מתחתיו. */
.guided-search__prefs { padding: 12px 12px 0; border-block-start: 1px solid var(--color-border); }
/* בעמוד השכונה הפאנל עומד בפני עצמו, לא בתחתית כרטיס. */
.rx-preferences { margin-block-end: 24px; }
.rx-preferences .guided-search__prefs { padding: 0; border-block-start: 0; }
.guided-search__summary {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px 14px;
  padding: 14px 16px; border-radius: 16px; background: color-mix(in srgb, var(--color-info-surface) 65%, var(--color-surface));
}
.guided-search__prefs-head { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 8px; }
.guided-search__prefs-head > .ico { flex: none; width: 20px; height: 20px; margin-block-start: 2px; color: var(--color-action-strong); }
.guided-search__prefs-title { margin: 0; font-size: 16px; font-weight: 700; color: var(--color-primary); }
.guided-search__prefs-subtitle { margin: 2px 0 0; font-size: 14px; color: var(--color-text-secondary); }
.guided-search__summary-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.guided-search__summary-rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto 26px; align-items: center; gap: 8px; }
.guided-search__summary-rows li.guided-search__summary-pending { display: block; }
.guided-search__summary-action {
  display: grid; grid-template-columns: minmax(0, 1fr) auto 26px; align-items: center; gap: inherit; width: 100%;
  margin: -4px; padding: 4px; box-sizing: content-box; border: 0; border-radius: 10px; background: transparent; color: inherit; font: inherit; text-align: start; cursor: pointer;
}
.guided-search__summary-action:hover { background: var(--color-surface-hover); }
.guided-search__summary-action:hover .guided-search__summary-label { color: var(--color-link); text-decoration: underline; }
.guided-search__summary-action:focus-visible { outline: var(--focus-outline); outline-offset: 2px; }
.guided-search__summary-action:disabled { cursor: default; }
.guided-search__summary-label { min-width: 0; font-size: 15px; color: var(--color-text-secondary); }
.guided-search__summary-value { min-width: 2em; text-align: center; font-size: 16px; font-weight: 700; color: var(--color-text); }
.guided-search__summary-mark { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: var(--color-on-action); }
.guided-search__summary-mark svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.guided-search__summary-mark.is-full { background: var(--color-success); }
.guided-search__summary-mark.is-partial { background: var(--color-warning); }
.guided-search__summary-mark.is-pending { background: var(--color-surface); border: 1px solid var(--color-border-hover); color: var(--color-action-strong); }
.guided-search__summary-mark.is-pending svg { fill: currentColor; stroke: none; }
.guided-search__ring { display: grid; justify-items: center; gap: 6px; padding-inline-start: 14px; border-inline-start: 1px solid var(--color-border); }
.guided-search__ring svg, .guided-search__ring-count { grid-area: 1 / 1; }
.guided-search__ring svg { width: 96px; height: 96px; transform: rotate(-90deg); fill: none; stroke-width: 9; }
.guided-search__ring-track { stroke: var(--color-progress-track); }
.guided-search__ring-value { stroke: var(--color-success); stroke-linecap: round; }
.guided-search__ring-count { align-self: center; font-size: 24px; font-weight: 700; color: var(--color-text); }
.guided-search__ring-caption { max-width: 96px; text-align: center; line-height: 1.3; font-size: 14px; font-weight: 600; color: var(--color-text-secondary); }
.guided-search__pref-details { padding: 6px 4px 2px; }
.guided-search__pref-details ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.guided-search__pref { display: flex; align-items: center; gap: 10px; }
.guided-search__pref-mark { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--color-info-surface); color: var(--color-action-strong); }
.guided-search__pref-mark .ico { width: 16px; height: 16px; }
.guided-search__pref-label { flex: 1; min-width: 0; font-size: 15px; }
.guided-search__pref-label small { display: block; color: var(--color-text-secondary); font-size: 12px; }
.guided-search__pref:has(.guided-search__pref-explanation) { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; row-gap: 4px; }
.guided-search__pref-explanation { grid-column: 2 / -1; color: var(--color-text-secondary); font-size: 13px; line-height: 1.5; }
.guided-search__pref-state { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 99px; border: 1px solid var(--color-border); color: var(--color-text-secondary); font-size: 13px; font-weight: 700; }
.guided-search__pref.is-full .guided-search__pref-state { background: var(--color-info-surface); border-color: transparent; color: var(--color-action-strong); }
.guided-search__pref-state .ico { width: 13px; height: 13px; }
.guided-search__pref-unknown { margin: 8px 0 0; color: var(--color-text-secondary); font-size: 13px; }
.guided-search__pref-hint { margin: 0 0 10px; color: var(--color-text-secondary); font-size: 13px; line-height: 1.5; }
.typed-text { position: relative; }
.typed-text__ghost { visibility: hidden; }
.typed-text__typed { position: absolute; inset: 0; }
.typed-text.is-typing .typed-text__typed::after { content: ""; display: inline-block; inline-size: 1px; block-size: 1.1em; margin-inline-start: 1px; vertical-align: text-bottom; background: currentColor; animation: typed-text-caret .8s steps(1) infinite; }
@keyframes typed-text-caret { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .typed-text.is-typing .typed-text__typed::after { animation: none; } }
.guided-search__pref-details ul + .guided-search__pref-order { margin-block-start: 8px; }
.guided-search__pref-order { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.guided-search__pref-item { display: flex; align-items: center; gap: 4px; border-radius: 12px; transition: background-color .12s ease, box-shadow .12s ease; }
.guided-search__pref-item > .guided-search__pref { flex: 1; min-width: 0; }
.guided-search__pref-item.is-dragging { background: var(--color-info-surface); box-shadow: var(--shadow-lift); }
/* touch-action: none so a drag on the handle moves the row instead of scrolling the page. */
.guided-search__pref-handle { flex: none; display: grid; place-items: center; width: 32px; height: 40px; padding: 0; border: 0; border-radius: 8px;
  background: transparent; color: var(--color-text-secondary); cursor: grab; touch-action: none; }
.guided-search__pref-handle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.guided-search__pref-handle:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.guided-search__pref-item.is-dragging .guided-search__pref-handle { cursor: grabbing; color: var(--color-action-strong); }
.guided-search__pref-handle:disabled { cursor: default; color: var(--color-disabled-text); }
.guided-search__pref-save { width: 100%; margin-block-start: 12px; }
.guided-search__prefs-more { display: inline-flex; align-items: center; gap: 4px; margin: 6px 4px 0; border: 0; background: transparent; color: var(--color-link); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; padding: 6px 0; }
.guided-search__prefs-more .ico { width: 14px; height: 14px; transition: transform .16s ease; }
.guided-search__prefs-more[aria-expanded="true"] .ico { transform: rotate(180deg); }
.guided-search .guided-search__match > .guided-search__details { display: block; width: calc(100% - 24px); margin: 12px; }
@media (max-width: 420px) {
  .guided-search__summary { padding: 12px 10px; column-gap: 10px; }
  .guided-search__ring { padding-inline-start: 10px; }
  .guided-search__ring svg { width: 72px; height: 72px; }
  .guided-search__ring-count { font-size: 19px; }
  .guided-search__ring-caption { max-width: 72px; font-size: 13px; }
  .guided-search__summary-rows li { gap: 6px; }
  .guided-search__summary-value { min-width: 1.8em; }
  .guided-search__summary-label { font-size: 14px; }
}
.guided-search__note, .guided-search__hint { display: flex; align-items: center; gap: 14px; padding: 15px 18px; margin: 0; background: var(--color-info-surface); border-radius: 16px; color: var(--color-text-secondary); line-height: 1.5; }
.guided-search__note { background: var(--color-accent-surface); }
.guided-search__note .ico, .guided-search__hint .ico { flex: 0 0 24px; color: var(--color-primary); }
.guided-search .btn { width: 100%; min-height: 48px; }
.guided-search__speech { position: absolute; inset-inline-end: 18px; top: 34px; width: 56%; margin: 0; padding: 20px; border-radius: 22px; background: var(--color-info-surface); color: var(--color-text); font-weight: 600; font-size: 19px; line-height: 1.5; }
.guided-search--question .guided-search__hero > img { inset-inline-start: -5%; height: 290px; top: 22px; }
.guided-search__question-heading { display: flex; gap: 16px; align-items: center; margin-block: 8px 14px; }
.guided-search__question-heading h1 { text-align: start; font-size: clamp(22px, 4vw, 27px); }
.guided-search__question-icon { display: grid; place-items: center; width: 54px; height: 54px; flex: 0 0 54px; border-radius: 50%; background: var(--color-info-surface); color: var(--color-action-strong); }
.guided-search__question-icon .ico { width: 30px; height: 30px; }
.guided-search__options { display: grid; gap: 12px; }
.guided-search__options .option { width: 100%; min-height: 62px; display: flex; justify-content: space-between; align-items: center; border-radius: 18px; padding: 14px 20px; text-align: start; }
.guided-search__options .option.is-selected { border-color: var(--color-primary); background: var(--color-info-surface); }
.guided-search__hint { margin-block: 12px; }
.guided-search__back { align-self: flex-start; background: none; border: 0; color: var(--color-primary); min-height: 44px; padding: 8px 12px; cursor: pointer; }
.guided-search__error { color: var(--color-error); margin: 0; }
.search-loading { width: min(100%, 340px); margin: 16px auto 36px; background: var(--color-surface); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lift); }
.search-loading__art { width: 100%; aspect-ratio: 5 / 6; overflow: hidden; background: linear-gradient(180deg, var(--color-info-surface), var(--color-surface) 92%); }
/* הדמות חושבת: היא במרכז, האריחים חגים סביבו על טבעת מוטה. הטבעת מסתובבת, .search-loading__spin
   מסתובב נגדה באותו קצב כך שהאריח נשאר זקוף, ו-preserve-3d מעביר את מה שמאחור מאחורי הדמות. */
.search-loading__scene {
  --orbit-radius: 108px; --orbit-tilt: 64deg; --orbit-turn: 11s;
  position: relative; width: 100%; height: 100%; perspective: 700px; transform-style: preserve-3d;
}
.search-loading__halo {
  position: absolute; left: 50%; top: 52%; width: 210px; height: 210px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--color-progress) 22%, transparent), transparent 70%);
  transform: translate(-50%, -50%); animation: search-loading-breathe 3.2s ease-in-out infinite;
}
.search-loading__yosef {
  position: absolute; left: 50%; bottom: 0; width: 72%; height: auto; transform: translate(-50%, 0) translateZ(0);
  object-fit: contain; filter: drop-shadow(0 12px 18px color-mix(in srgb, var(--color-primary) 18%, transparent));
}
.search-loading__orbit {
  list-style: none; margin: 0; padding: 0; position: absolute; left: 50%; top: 50%; width: 0; height: 0;
  transform-style: preserve-3d; transform: rotateX(var(--orbit-tilt)); animation: search-loading-orbit var(--orbit-turn) linear infinite;
}
.search-loading__slot {
  position: absolute; left: 0; top: 0; width: 0; height: 0; transform-style: preserve-3d;
  transform: rotate(calc(var(--slot) * 72deg)) translateX(var(--orbit-radius)) rotate(calc(var(--slot) * -72deg));
}
.search-loading__spin { display: block; transform-style: preserve-3d; animation: search-loading-counter var(--orbit-turn) linear infinite; }
.search-loading__tile {
  display: grid; place-items: center; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 16px;
  background: color-mix(in srgb, var(--color-surface) 84%, transparent); color: var(--color-action-strong);
  border: 1px solid color-mix(in srgb, var(--color-progress) 35%, transparent); box-shadow: var(--shadow-card);
  transform: rotateX(calc(-1 * var(--orbit-tilt))); backdrop-filter: blur(3px);
}
.search-loading__tile .ico { width: 30px; height: 30px; }
@keyframes search-loading-orbit { from { transform: rotateX(var(--orbit-tilt)) rotate(0turn); } to { transform: rotateX(var(--orbit-tilt)) rotate(1turn); } }
@keyframes search-loading-counter { from { transform: rotate(0turn); } to { transform: rotate(-1turn); } }
@keyframes search-loading-breathe { 0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: .8; } 50% { transform: translate(-50%, -50%) scale(1.12); opacity: 1; } }
.search-loading__body { padding: 22px 28px 14px; text-align: center; }
.search-loading h2 { font-size: 21px; margin: 0 0 20px; line-height: 1.4; color: var(--color-text); }
.search-loading__track { height: 12px; border-radius: 99px; overflow: hidden; background: var(--color-progress-track); direction: ltr; }
.search-loading__track span { display: block; height: 100%; background: var(--color-progress); border-radius: inherit; }
.search-loading__status { margin: 10px 0 0; min-height: 20px; color: var(--color-text-secondary); font-size: 14px; }
.search-loading__error { display: grid; gap: 12px; }
.search-loading.has-error .search-loading__orbit, .search-loading.has-error .search-loading__spin, .search-loading.has-error .search-loading__halo { animation-play-state: paused; }
@media (max-width: 600px) {
  .guided-search__content { padding: 22px 18px; }
  .guided-search__hero { height: 180px; }
  .guided-search__hero > img { height: 285px; }
  .guided-search__match figure { height: 82px; }
  .guided-search__speech { font-size: 17px; padding: 16px; top: 24px; inset-inline-end: 10px; }
  .guided-search--question .guided-search__hero > img { height: 250px; }
  .search-loading { width: min(100%, 300px); }
  .search-loading__scene { --orbit-radius: 96px; }
  .search-loading__tile { width: 48px; height: 48px; margin: -24px 0 0 -24px; }
}
@media (prefers-reduced-motion: reduce) {
  .search-loading__track span { width: 100% !important; }
  .search-loading__orbit, .search-loading__spin, .search-loading__halo { animation: none; }
}
@media (max-width: 600px) {
  #app:has(.guided-search--results) { padding-inline: 8px; }
  .guided-search--results { padding-inline: 0; }
  .guided-search--results .guided-search__hero { height: 142px; }
  .guided-search--results .guided-search__hero > img { height: 238px; }
  .guided-search--results .guided-search__content { gap: 10px; padding: 18px 10px; }
  .guided-search--results h1 { font-size: 24px; }
  .guided-search--results .guided-search__intro { font-size: 15px; }
  .guided-search--results .guided-search__match figure { height: clamp(160px, 38vw, 220px); }
  .guided-search--results .guided-search__match > button:not(.btn) { padding: 7px 12px; }
  .guided-search--results .guided-search__note { font-size: 14px; padding: 10px 14px; }
  .guided-search--results .btn { font-size: 17px; padding: 10px 14px; }
}
.guided-search__options .option { font-size: 19px; font-weight: 600; }
.guided-search__match > button > .ico { transform: rotate(90deg); }

/* Personal preference map: each pair grows in document flow, including on narrow screens. */
.preference-tree__root {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  width: 168px; min-height: 168px; aspect-ratio: 1; margin: 28px auto 0; padding: 22px;
  border: 1px solid var(--color-border); border-radius: 50%; background: var(--color-info-surface);
  color: var(--color-primary); text-align: center; font-size: 17px; font-weight: 700; line-height: 1.4;
}
.preference-tree__root > .preference-tree__illustration { width: 60px; height: 60px; flex-shrink: 0; }
.preference-tree { position: relative; max-width: 860px; margin: 0 auto; padding: 26px 0 32px; }
.preference-tree__trunk {
  position: absolute; inset-block: 0; left: calc(50% - 1px); width: 2px; height: 100%;
  fill: none; stroke: var(--color-border-stone); stroke-width: 2; pointer-events: none;
}
.preference-tree__pair {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 80px minmax(0, 1fr);
  align-items: start; padding-block: 12px;
}
.preference-tree__branches {
  position: absolute; top: 20px; left: calc(50% - 40px); width: 80px; height: 100px;
  fill: none; stroke: var(--color-border-stone); stroke-width: 2; stroke-linecap: round; pointer-events: none;
}
.preference-tree__heading { grid-row: 1; margin: 0; min-width: 0; }
.preference-tree__side-0 { grid-column: 1; }
.preference-tree__side-1 { grid-column: 3; }
.preference-tree__toggle {
  width: 100%; min-height: 122px; display: flex; align-items: center; gap: 14px; padding: 12px 18px;
  border: 1px solid var(--color-border); border-radius: 20px; background: var(--color-info-surface);
  color: var(--color-primary); font: 700 20px/1.35 var(--head); text-align: start; cursor: pointer;
}
.preference-tree__side-1 .preference-tree__toggle { background: var(--color-surface-muted); border-color: var(--color-border-stone); }
.preference-tree__illustration { display: block; width: 96px; height: 96px; object-fit: contain; flex-shrink: 0; }
.preference-tree__toggle > .ico { width: 26px; height: 26px; flex-shrink: 0; color: var(--color-action-strong); }
.preference-tree__toggle > span { flex: 1; overflow-wrap: anywhere; }
.preference-tree__toggle > .preference-tree__chevron { width: 16px; height: 16px; transform: rotate(0deg); transition: transform 220ms ease-out; }
.preference-tree__toggle[aria-expanded="true"] > .preference-tree__chevron { transform: rotate(180deg); }
.preference-tree__toggle:hover { border-color: var(--color-action); }
.preference-tree__toggle:focus-visible, .preference-tree__continue a:focus-visible { outline: var(--focus-outline); outline-offset: 4px; }
.preference-tree__panel {
  grid-row: 2; display: grid; grid-template-rows: 0fr; visibility: hidden; min-width: 0;
  transition: grid-template-rows 240ms cubic-bezier(.16, 1, .3, 1), visibility 240ms;
}
.preference-tree__panel.is-open { grid-template-rows: 1fr; visibility: visible; }
.preference-tree__panel-inner { min-height: 0; overflow: hidden; background: var(--color-surface); }
.preference-tree__group { padding: 20px 12px 12px; }
.preference-tree__group + .preference-tree__group { border-top: 1px solid var(--color-divider); margin-top: 12px; }
.preference-tree__group-title { margin: 0 0 6px; font-size: 17px; color: var(--color-primary); }
.preference-tree__group .profile-group__impact { margin: 0 0 18px; }
.preference-tree__group .profile-group__row { grid-template-columns: 1fr; gap: 3px; }
.preference-tree__group .profile-group__row small { grid-column: 1; }
.preference-tree__group .profile-group__edit { margin-top: 16px; }
.preference-tree__continue { display: flex; justify-content: center; }
.preference-tree__continue .btn { white-space: normal; text-align: center; }
@media (max-width: 720px) {
  .preference-tree__pair { grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr); }
  .preference-tree__branches { left: calc(50% - 18px); width: 36px; }
  .preference-tree__toggle { display: grid; grid-template-columns: minmax(0, 1fr) 16px; gap: 6px; min-height: 176px; padding: 10px; font-size: 17px; border-radius: 16px; }
  .preference-tree__toggle > .preference-tree__illustration { grid-column: 1 / -1; width: 94px; height: 94px; justify-self: center; }
  .preference-tree__toggle > span { flex-basis: calc(100% - 40px); }
  .preference-tree__toggle > .preference-tree__chevron { margin-inline-start: auto; }
  .preference-tree__panel { grid-column: 1 / -1; }
  .preference-tree__panel.preference-tree__side-1 { grid-row: 3; }
  .preference-tree__group { padding: 20px 14px; }
  .preference-tree__root { width: 164px; min-height: 164px; font-size: 16px; padding: 16px; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .preference-tree__panel, .preference-tree__toggle > .preference-tree__chevron { transition: none; }
}

/* Center category artwork and copy as one unit; the disclosure stays at the edge. */
.preference-tree__toggle { position: relative; justify-content: center; padding-inline: 40px; }
.preference-tree__identity { display: flex; align-items: center; justify-content: center; gap: 14px; min-width: 0; text-align: center; }
.preference-tree__identity > span { overflow-wrap: anywhere; }
.preference-tree__toggle > .preference-tree__chevron { position: absolute; inset-inline-end: 18px; top: calc(50% - 8px); }
.preference-tree__root { width: 192px; min-height: 192px; padding: 16px; gap: 6px; font-family: var(--body); cursor: pointer; }
.preference-tree__root-edit { display: inline-flex; align-items: center; gap: 5px; color: var(--color-link); font-size: 14px; }
.preference-tree__root-edit .ico { width: 14px; height: 14px; }
.preference-tree__root:hover { border-color: var(--color-action); }
.preference-tree__root:focus-visible { outline: var(--focus-outline); outline-offset: 4px; }
.preference-tree__root:disabled { background: var(--color-disabled-bg); color: var(--color-disabled-text); cursor: default; }
@media (max-width: 720px) {
  .preference-tree__toggle { display: flex; padding: 10px 22px; }
  .preference-tree__identity { flex-direction: column; gap: 6px; }
  .preference-tree__identity .preference-tree__illustration { width: 86px; height: 86px; }
  .preference-tree__toggle > .preference-tree__chevron { inset-inline-end: 8px; }
  .preference-tree__root { width: 182px; min-height: 182px; }
}

/* Four stages of Yosef’s accompaniment, following the approved visual. */
.yosef-home__how { width: 100%; min-width: 0; grid-template-columns: minmax(0, 1fr); padding-inline: 24px; }
.yosef-home__how .home-how__title { max-width: 100%; font-size: clamp(32px, 5vw, 48px); line-height: 1.15; }
.yosef-home__how .home-how__lede { width: min(100%, 48ch); }
.yosef-home__how .home-step__copy { min-width: 0; }
.yosef-home__how .home-steps { grid-template-columns: 1fr; max-width: 980px; gap: 20px; }
.yosef-home__how .home-step { grid-template-columns: minmax(0, 1.45fr) 48px minmax(0, 1fr); gap: 16px; padding: 24px; border-radius: 28px; }
.yosef-home__how .home-step h3 { font-size: clamp(20px, 3.2vw, 34px); }
.yosef-home__how .home-step p { font-size: clamp(16px, 2.2vw, 23px); line-height: 1.5; color: var(--color-text-secondary); }
.yosef-home__how .home-step__num { width: 48px; height: 48px; font-size: 26px; }
.yosef-home__how .home-step:nth-child(2) .home-step__num { background: #e5f3ff; }
.yosef-home__how .home-step:nth-child(3) .home-step__num { background: #e8f4df; }
.yosef-home__how .home-step:nth-child(4) .home-step__num { background: #efe5fb; }
.yosef-home__how .home-step:not(:last-child)::after { display: block; inset-inline-end: 34%; }
.yosef-home__step-art { display: block; width: 100%; aspect-ratio: 1; background-image: url('/images/home/journey-sprite.webp'); background-size: 200% 200%; background-repeat: no-repeat; border-radius: 22px; }
.yosef-home__step-art--1 { background-position: 0 0; }
.yosef-home__step-art--2 { background-position: 100% 0; }
.yosef-home__step-art--3 { background-position: 0 100%; }
.yosef-home__step-art--4 { background-position: 100% 100%; }
@media (max-width: 620px) {
  body[data-step="yosef-home"] > main { padding-inline: 8px; }
  main.yosef-home { padding-inline: 0; }
  .yosef-home__demo { padding-inline: 0; }
  .home-demo__body { padding-inline: 8px; }
  .home-demo__traits { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 20px; }
  .home-demo__traits li { font-size: 15px; }
  .home-demo__traits li:nth-child(odd) { border-inline-start: 0; }
  .home-demo__quote { padding: 12px; }
  .home-demo__score { inset-block-start: 8px; inset-inline-start: 8px; gap: 6px; padding: 8px; font-size: 12px; }
  .home-demo__score strong { font-size: 22px; }
  .home-demo__heart { inset-block-start: 8px; inset-inline-end: 8px; width: 40px; height: 40px; }
  .home-demo__city, .home-demo__photos { inset-block-end: 8px; padding: 8px; font-size: 12px; }
  .home-demo__city { inset-inline-start: 8px; }
  .home-demo__photos { inset-inline-end: 8px; }
  .yosef-home__how { padding-inline: 0; }
  .yosef-home__how .home-step { grid-template-columns: minmax(0, 1fr) 120px; grid-template-areas: "num art" "copy copy"; gap: 12px 16px; padding: 20px; border-radius: 20px; }
  .yosef-home__how .home-step__copy { grid-area: copy; }
  .yosef-home__how .yosef-home__step-art { grid-area: art; }
  .yosef-home__how .home-step:not(:last-child)::after { display: none; }
  .yosef-home__how .home-step__num { grid-area: num; align-self: center; width: 32px; height: 32px; font-size: 20px; }
  .yosef-home__how .home-step h3 { font-size: 20px; }
  .yosef-home__how .home-step p { font-size: 16px; }
}

/* French region names need room to wrap inside the clipped map canvas. */
html[lang="fr"] .region-pill { max-width: 148px; white-space: normal; text-align: center; }
html[lang="fr"] .region-map__place--sea { font-size: 17px; text-anchor: start; }
html[lang="fr"] .region-summary__names { white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 520px) {
  html[lang="fr"] .quiz__nav.quiz__nav--summary .btn { min-width: 104px; padding-inline: 12px; }
}

.navlink { display: inline-flex; align-items: center; gap: 8px; }
.navlink__icon { width: 20px; height: 20px; flex: none; }
.nav-group-label { display: none; }
.coming-soon-page { min-height: 55vh; display: grid; place-items: center; }
.coming-soon-page h1 { font-size: 32px; }
@media (max-width: 1199px) {
  .nav-group-label { display: block; padding: 12px 14px 4px; color: var(--color-text-secondary); font-size: 14px; }
  .nav-group-label--secondary { border-top: 1px solid var(--color-divider); margin-top: 12px; }
  .mainnav > .navlink { min-height: 56px; white-space: normal; }
  .mainnav > .navlink .navlink__icon { width: 24px; height: 24px; }
}
.mainnav { flex-wrap: nowrap; }
.nav-language select { margin-inline-start: auto; min-height: 44px; max-width: 120px; border: 0; background: transparent; color: var(--color-text-secondary); font: inherit; cursor: pointer; }
.nav-language select:focus-visible { outline: var(--focus-outline); outline-offset: 2px; }

/* Personal property search */
/* Property search is a conversation: a stable header and composer surround one scrolling thread. */
body[data-step="find-home"] { height: 100dvh; overflow: hidden; display: flex; flex-direction: column; }
body[data-step="find-home"] > .topbar { flex: none; max-height: 50dvh; overflow-y: auto; }
body[data-step="find-home"] main { display: flex; flex: 1; min-height: 0; width: 100%; max-width: 1180px; padding: 16px 20px; }
body[data-step="find-home"] footer { display: none; }
.find-home:not(.is-hidden) { display: flex; flex-direction: column; min-height: 0; width: 100%; max-width: 760px; margin: 0 auto; padding: 0; border: 1px solid var(--color-border); border-radius: 16px; background: var(--color-page); }
.find-home__chat-header { position: relative; display: flex; flex: none; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--color-divider); background: var(--color-surface); border-radius: 16px 16px 0 0; z-index: 2; }
.find-home__chat-header img { width: 38px; height: 46px; object-fit: contain; flex: none; }
.find-home__identity { flex: 1; min-width: 0; }
.find-home__chat-header h1 { margin: 0; font-size: 20px; line-height: 1.3; }
.find-home__chat-header h1:focus { outline: none; }
.find-home__chat-header p { margin: 2px 0 0; color: var(--color-text-secondary); font-size: 14px; }
.find-home__conversation, .find-home__favorites { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; scrollbar-color: var(--color-border-strong) transparent; padding: 20px; scroll-padding-block: 16px; }
.find-home__conversation { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.find-home__bubble { flex: none; max-width: min(88%, 520px); padding: 12px 16px; border-radius: 12px; border-start-end-radius: 3px; background: var(--color-surface); font-size: 17px; line-height: 1.55; overflow-wrap: anywhere; }
.find-home__bubble p { margin: 0 0 12px; }
.find-home__bubble p:last-child { margin-bottom: 0; }
.find-home__bubble .find-home__greeting { font-size: 18px; line-height: 1.5; }
.find-home__bubble a { color: var(--color-link); text-underline-offset: 3px; }
.find-home__bubble--user { align-self: flex-end; background: var(--color-info-surface); border-start-end-radius: 12px; border-start-start-radius: 3px; white-space: pre-wrap; }
.find-home__conversation > .find-home__card { min-width: 0; margin: 16px 0; padding: 16px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 16px; }
.find-home__card h2 { margin: 16px 0 4px; font-size: 20px; line-height: 1.35; overflow-wrap: anywhere; }
.find-home__location { margin: 0; color: var(--color-text-secondary); font-size: 15px; }
.find-home__card .find-home__price { font-size: 26px; line-height: 1.3; font-weight: 700; margin: 14px 0 18px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.find-home__specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding-block: 14px; border-top: 1px solid var(--color-divider); }
.find-home__specs dt { font-size: 13px; color: var(--color-text-secondary); }
.find-home__specs dd { margin: 4px 0 0; font-size: 17px; font-weight: 600; overflow-wrap: anywhere; }
.find-home__card > .find-home__specs dd { font-size: 18px; font-weight: 700; }
.find-home__property-details { border-top: 1px solid var(--color-divider); }
.find-home__property-details summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 44px; padding-block: 10px; color: var(--color-link); font-size: 15px; cursor: pointer; list-style: none; }
.find-home__property-details summary::-webkit-details-marker { display: none; }
.find-home__property-details summary svg { flex: none; }
.find-home__property-details[open] summary svg { transform: rotate(180deg); }
.find-home__source-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--color-link); font-size: 15px; }
.find-home__source-text { border-top: 1px solid var(--color-divider); }
.find-home__source-text summary { min-height: 44px; padding-block: 10px; color: var(--color-link); font-size: 15px; cursor: pointer; }
.find-home__source-text p { margin: 0 0 12px; white-space: pre-wrap; font-size: 15px; line-height: 1.6; }
.find-home__property-details summary:hover { color: var(--color-action-strong); }
.find-home__property-details .find-home__specs { grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 0; padding-top: 4px; }
.find-home__gallery { margin: -16px -16px 0; overflow: hidden; border-radius: 15px 15px 0 0; background: var(--color-page); }
.find-home__photos { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--color-border-strong) transparent; }
.find-home__photo { flex: 0 0 100%; min-width: 0; margin: 0; scroll-snap-align: center; }
.find-home__photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; }
.find-home__photo figcaption { padding: 8px 16px; font-size: 13px; overflow-wrap: anywhere; }
.find-home__photo-controls { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 8px; background: var(--color-surface); border-bottom: 1px solid var(--color-divider); }
.find-home__photo-nav { display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 12px; background: transparent; color: var(--color-link); cursor: pointer; }
.find-home__photo-nav:hover { background: var(--color-info-surface); }
.find-home__photo-nav:active { background: var(--color-border); }
.find-home__photo-nav:dir(ltr) svg { transform: rotate(180deg); }
.find-home__photo-controls span { flex: none; font-size: 13px; color: var(--color-text-secondary); font-variant-numeric: tabular-nums; }
.find-home__no-photos, .find-home__photo-error { display: grid; place-items: center; margin: 0; min-height: 160px; padding: 24px; text-align: center; color: var(--color-text-secondary); }
.find-home__photo-error { aspect-ratio: 4 / 3; }
.find-home__photos:focus-visible { outline: var(--focus-outline); outline-offset: -4px; }
.find-home button, .find-home .btn { min-height: 44px; white-space: normal; font-size: 15px; box-shadow: none; }
.find-home .btn:hover { transform: none; box-shadow: none; }
.find-home button:disabled { cursor: wait; background: var(--color-disabled-bg); color: var(--color-disabled-text); }
.find-home :is(button, summary, a):focus-visible { outline: var(--focus-outline); outline-offset: 3px; }
.find-home__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.find-home__actions .btn { display: flex; align-items: center; justify-content: center; text-decoration: none; padding: 10px 16px; }
.find-home__dock { flex: none; padding: 12px 16px max(12px, env(safe-area-inset-bottom)); background: var(--color-surface); border-top: 1px solid var(--color-divider); border-radius: 0 0 16px 16px; }
.find-home__dock:empty { display: none; }
.find-home__start { display: block; margin-inline-start: auto; }
.find-home__composer { display: grid; gap: 8px; min-width: 0; margin: 0; }
.find-home__composer .find-home__actions { margin-top: 0; }
.find-home__starters .btn { padding: 6px 14px; background: transparent; border: 1px solid var(--color-border); font: 600 15px var(--body); color: var(--color-text-secondary); }
.find-home__starters .btn:hover, .find-home__starters .btn[aria-pressed="true"] { border-color: var(--color-action); background: var(--color-info-surface); color: var(--color-action-strong); }
.find-home__input-row { display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 8px; align-items: end; }
.find-home__composer textarea { width: 100%; min-height: 48px; max-height: 144px; resize: none; font: 17px/1.5 var(--body); color: var(--color-text); border: 1px solid var(--color-border-strong); border-radius: 24px; padding: 10px 16px; background: var(--color-surface); caret-color: var(--color-action); }
.find-home__composer textarea::placeholder { color: var(--color-text-secondary); opacity: 1; }
.find-home__composer textarea:focus-visible { outline: var(--focus-outline); outline-offset: 2px; }
.find-home .find-home__send { width: 44px; min-width: 44px; height: 44px; padding: 0; display: grid; place-items: center; border-radius: 50%; margin-bottom: 2px; }
.find-home__send:dir(rtl) svg { transform: scaleX(-1); }
.find-home__composer-error { margin: 0; color: var(--color-text); font-size: 14px; }
.find-home__status { flex: none; margin: 0; padding: 6px 16px; background: var(--color-info-surface); color: var(--color-text-secondary); font-size: 14px; }
.find-home__error { padding: 8px 0; font-size: 15px; }
.find-home__error p { margin: 0 0 8px; }
.find-home__error .btn { padding: 8px 16px; }
.find-home__notice { padding: 12px; background: var(--color-info-surface); border-radius: 12px; }
.find-home__meta { color: var(--color-text-secondary); font-size: 14px; line-height: 1.5; }
.find-home__tools { flex: none; }
.find-home__tools > summary { display: flex; align-items: center; min-height: 44px; padding: 8px; color: var(--color-text-secondary); font-size: 14px; cursor: pointer; list-style: none; }
.find-home__tools > summary::-webkit-details-marker { display: none; }
.find-home__tools > summary:hover { color: var(--color-action); }
.find-home__tool-panel { position: absolute; inset-inline-end: 8px; top: calc(100% + 4px); width: min(320px, calc(100% - 16px)); max-height: 50dvh; overflow-y: auto; padding: 12px; border-radius: 12px; background: var(--color-surface); box-shadow: var(--shadow-card); }
.find-home__tool-panel .btn { width: 100%; text-align: start; padding: 10px 12px; }
.find-home__rules { padding-inline-start: 24px; font-size: 15px; }
.find-home [hidden] { display: none !important; }
.find-home ::selection { background: var(--color-info-surface); color: var(--color-text); }
@media (max-width: 620px) {
  body[data-step="find-home"] main { padding: 0; }
  .find-home { border: 0; border-radius: 0; }
  .find-home__chat-header { border-radius: 0; padding: 8px 12px; }
  .find-home__conversation, .find-home__favorites { padding: 16px 12px; }
  .find-home__bubble { max-width: 92%; padding: 10px 13px; }
  .find-home__dock { padding: 8px 10px max(10px, env(safe-area-inset-bottom)); border-radius: 0; }
  .find-home__starters .btn { font-size: 14px; }
}

.find-home__gate { align-items: center; gap: 28px; padding-block: 32px; }
.find-home__gate .find-home__bubble { width: min(100%, 540px); max-width: 100%; }
.find-home__gate h2 { margin: 0 0 16px; font-size: 22px; line-height: 1.4; }
.find-home__gate > .btn { display: inline-flex; flex: none; align-items: center; justify-content: center; align-self: center; margin-top: 8px; padding: 12px 28px; text-decoration: none; }
.find-home__bubble { white-space: pre-wrap; }

/* Conversation acknowledgements stay with their message; only the typing dots move. */
.find-home__message-meta { display: flex; align-items: center; justify-content: flex-end; gap: 5px; margin-top: 5px; color: var(--color-text-secondary); font-size: 12px; line-height: 1.4; white-space: nowrap; direction: ltr; font-variant-numeric: tabular-nums; }
.find-home__bubble:has(.find-home__message-meta) > p { margin-bottom: 0; }
.find-home__receipt { display: inline-flex; align-items: center; flex: none; }
.find-home__receipt[data-state="read"] { color: var(--color-action-strong); }
.find-home__receipt svg { display: block; }
.find-home__conversation > .find-home__typing { display: flex; align-items: center; justify-content: center; gap: 5px; min-width: 66px; min-height: 42px; padding: 12px 16px; }
.find-home__typing-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--color-text-secondary); animation: find-home-typing 1.2s ease-in-out infinite; }
.find-home__typing-dot:nth-child(2) { animation-delay: 140ms; }
.find-home__typing-dot:nth-child(3) { animation-delay: 280ms; }
@keyframes find-home-typing { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .find-home__typing-dot { animation: none; opacity: .75; } }
/* Keep map zoom accessible while the gesture-activation veil is visible. */
.rx-maplibre .maplibregl-ctrl-top-left { z-index: 7; }
.rx-maplibre .maplibregl-ctrl-group button { width: 44px; height: 44px; }

/* Neighborhood lookup shared by personalized results and the detail report. */
.neighborhood-search { margin-block: 20px 28px; min-width: 0; }
.neighborhood-search__label { display: grid; gap: 8px; font-weight: 600; color: var(--color-text); }
.neighborhood-search input { width: 100%; min-height: 48px; font-size: 16px; box-sizing: border-box; }
.neighborhood-search__status { font-size: 14px; color: var(--color-text-secondary); margin: 8px 0; }
.neighborhood-search__status:empty { display: none; }
.neighborhood-search__results { list-style: none; margin: 8px 0 0; padding: 0; max-height: 18rem; overflow-y: auto; border: 1px solid var(--color-divider); border-radius: 12px; background: var(--color-surface); }
.neighborhood-search__results a { display: block; padding: 12px 16px; min-height: 44px; box-sizing: border-box; color: var(--color-action-strong); text-decoration: none; }
.neighborhood-search__results li + li { border-block-start: 1px solid var(--color-divider); }
.neighborhood-search__results a:hover { background: var(--color-info-surface); }
.neighborhood-search__results a:focus-visible { outline: var(--focus-outline); outline-offset: -3px; }

/* Saved neighborhoods use the same controls on result cards and detail pages. */
/* לב השמירה יושב בפינה העליונה של הצילום, מול שם השכונה: עיגול לבן שקוף מעט, אייקון 24px ואזור לחיצה 44×44.
   קו מתאר נייבי לפני שמירה, מלא בכחול הפעולה אחריה. */
.neighborhood-favorite-slot { position: absolute; z-index: 5; inset-block-start: 12px; inset-inline-end: 12px; display: grid; justify-items: end; gap: 6px; }
.neighborhood-favorite {
  width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 0; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .86); color: var(--color-primary); cursor: pointer;
  box-shadow: 0 1px 4px rgba(11, 33, 64, .18); transition: background-color .16s ease, transform .16s ease;
}
.neighborhood-favorite:hover { background: rgba(255, 255, 255, .97); }
.neighborhood-favorite:active { transform: scale(.94); }
.neighborhood-favorite:focus-visible { outline: var(--focus-outline); outline-offset: 3px; box-shadow: var(--focus-ring); }
.neighborhood-favorite:disabled { cursor: default; }
.neighborhood-favorite__icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; transition: fill .16s ease; }
.neighborhood-favorite[aria-pressed="true"] { color: var(--color-action); }
.neighborhood-favorite[aria-pressed="true"] .neighborhood-favorite__icon { fill: currentColor; }
.neighborhood-favorite__status {
  max-width: min(260px, calc(100vw - 48px)); padding: 6px 10px; border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .95); color: var(--color-primary); font-size: 14px; font-weight: 600; line-height: 1.35;
  box-shadow: 0 2px 8px rgba(11, 33, 64, .16); animation: image-attribution-enter .14s ease-out;
}
.neighborhood-favorite__status:empty { display: none; }
@media (prefers-reduced-motion: reduce) {
  .neighborhood-favorite, .neighborhood-favorite__icon { transition: none; }
  .neighborhood-favorite__status { animation: none; }
}
/* בלי צילום הכותרת יורדת לזרימה הרגילה, והלב נשאר בפינה העליונה מעליה. */
.rx-hero:has(#city-photo.is-hidden) { padding-block-start: 56px; }
.guided-search__match { position: relative; }
.neighborhood-favorites { margin-block: 24px; padding-block: 20px; border-block: 1px solid var(--color-divider); }
.neighborhood-favorites__status { margin: 0 0 8px; font-size: 14px; color: var(--color-text-secondary); }
.neighborhood-favorites__status:empty { display: none; }
.neighborhood-favorites h2 { font-size: 20px; margin: 0 0 12px; }
.neighborhood-favorites__list { padding: 0; margin: 0; list-style: none; }
.neighborhood-favorites__list li { display: flex; gap: 16px; align-items: center; justify-content: space-between; }
.neighborhood-favorites__list a { min-width: 0; padding-block: 12px; overflow-wrap: anywhere; }
.neighborhood-favorites__remove { min-height: 44px; padding: 8px 12px; color: var(--color-action-strong); background: transparent; border: 0; font: inherit; cursor: pointer; }
.neighborhood-favorites__remove:focus-visible { outline: var(--focus-outline); outline-offset: 2px; }

/* ── מלווה חוזה השכירות (/lease, public/screens/lease.js) ─────────────────
   אותה שיחה כמו "מצא לי בית": כותרת קבועה, בועות, ורכיב תשובה אחד במעגן התחתון.
   ההבדל: במקום כרטיס דירה מגיעה שאלה עם רכיב קלט, ובסוף מסמך להדפסה. */
body[data-step="lease"] { height: 100dvh; overflow: hidden; display: flex; flex-direction: column; }
body[data-step="lease"] > .topbar { flex: none; max-height: 50dvh; overflow-y: auto; }
body[data-step="lease"] main { display: flex; flex: 1; min-height: 0; width: 100%; max-width: 1180px; padding: 16px 20px; }
body[data-step="lease"] footer { display: none; }
.lease:not(.is-hidden) { position: relative; display: flex; flex-direction: column; min-height: 0; width: 100%; max-width: 760px; margin: 0 auto; padding: 0; border: 1px solid var(--color-border); border-radius: 16px; background: var(--color-page); }
.lease [hidden] { display: none !important; }
.lease ::selection { background: var(--color-info-surface); color: var(--color-text); }
.lease__chat-header { position: relative; display: flex; flex: none; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--color-divider); background: var(--color-surface); border-radius: 16px 16px 0 0; z-index: 2; }
.lease__chat-header img { width: 38px; height: 46px; object-fit: contain; flex: none; }
.lease__identity { flex: 1; min-width: 0; }
.lease__chat-header h1 { margin: 0; font-size: 20px; line-height: 1.3; }
.lease__chat-header h1:focus { outline: none; }
.lease__identity p { margin: 2px 0 0; color: var(--color-text-secondary); font-size: 14px; font-variant-numeric: tabular-nums; }
.lease__progress { flex: none; height: 3px; background: var(--color-progress-track); }
.lease__progress-bar { display: block; height: 100%; width: 100%; background: var(--color-progress); transform: scaleX(0); transform-origin: left; transition: transform 320ms cubic-bezier(.16, 1, .3, 1); }
[dir="rtl"] .lease__progress-bar { transform-origin: right; }
.lease__status { flex: none; margin: 0; padding: 6px 16px; background: var(--color-info-surface); color: var(--color-text-secondary); font-size: 14px; }
.lease__draft, .lease__form-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; scrollbar-color: var(--color-border-strong) transparent; padding: 20px; scroll-padding-block: 16px; }
.lease__help { color: var(--color-text-secondary); font-size: 15px; }

/* tools menu */
/* טופס קודם (2026-10-29): כל סעיפי החוזה מהרגע הראשון; סעיף חסר נפתח במקום, בלי שיחה. */
.lease__form-header { align-items: flex-start; padding: 14px 16px 12px; }
.lease__form-header .lease__identity p { margin-top: 4px; line-height: 1.5; }
.lease__identity .lease__form-progress { margin-top: 6px; color: var(--color-text); font-weight: 600; font-size: 14px; }
.lease__notices:empty { display: none; }
.lease__notices { margin-bottom: 12px; }
.lease__preview:not(:empty) { margin-bottom: 28px; }
.lease .lease__fill { display: inline; min-height: 0; min-width: 0; margin: 0; padding: 0 4px; border: 0; border-radius: 6px; font: inherit; line-height: inherit; color: var(--color-accent-text); background: var(--color-accent-surface); text-decoration: underline dotted; text-underline-offset: 3px; cursor: pointer; }
.lease .lease__fill:hover { text-decoration-style: solid; }
.lease .lease__fill:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.lease .lease__fill--missing { color: var(--color-warning-text); background: var(--color-warning-surface); font-weight: 600; }
.lease .lease__fill--choice { padding: 0 8px; font-size: 14px; font-weight: 600; text-decoration: none; border: 1px solid currentColor; }
.lease__form { display: grid; gap: 22px; min-width: 0; }
.lease__form-step { display: grid; gap: 10px; min-width: 0; }
.lease__form-step-title { margin: 0; font: 700 14px/1.4 var(--head); color: var(--color-accent-text); letter-spacing: .01em; }
.lease__form-section { display: grid; gap: 8px; min-width: 0; padding: 12px 16px 14px; border: 1px solid var(--color-divider); border-radius: 12px; background: var(--color-surface); }
.lease__form-section--missing { border-style: dashed; border-color: var(--color-border-strong); }
.lease__form-section--default { background: transparent; }
.lease__form-section.is-open { gap: 12px; border: 2px solid var(--color-selected-border); box-shadow: var(--shadow-card); scroll-margin-block: 12px; }
.lease__form-section-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-width: 0; }
.lease__form-section-title { margin: 0; font: 700 16px/1.4 var(--head); overflow-wrap: anywhere; }
.lease__badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px 2px 8px; border-radius: var(--r-pill); font-size: 13px; font-weight: 600; line-height: 1.5; }
.lease__badge--missing { background: var(--color-warning-surface); color: var(--color-warning-text); }
.lease__badge--done { background: var(--color-info-surface); color: var(--color-action-strong); }
.lease__badge--default { color: var(--color-text-secondary); font-weight: 400; }
/* כפתור קטן לעין (32px), ואזור לחיצה של 44px דרך ::after. */
.lease .lease__form-section-head .lease__form-open { position: relative; flex: none; min-height: 32px; margin-inline-start: auto; padding: 2px 14px; border-width: 1px; font-size: 14px; line-height: 1.4; }
.lease .lease__form-section-head .lease__form-open::after { content: ""; position: absolute; inset: -6px -4px; }
.lease .lease__form-section--missing .lease__form-open { border-color: var(--color-action); font-weight: 600; }
.lease__form-missing { margin: 0; color: var(--color-text-secondary); font-size: 14px; line-height: 1.5; }
.lease__form-values { display: grid; grid-template-columns: minmax(120px, max-content) minmax(0, 1fr); gap: 4px 16px; margin: 0; font-size: 15px; line-height: 1.5; }
.lease__form-value { display: contents; }
.lease__form-values dt { color: var(--color-text-secondary); }
.lease__form-values dd { margin: 0; min-width: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.lease__form-person { display: block; }
.lease__form-prompt { margin: 0; font-size: 16px; line-height: 1.5; }
.lease__form-section .lease__composer { padding-top: 4px; }
.lease__draft-when { margin: 0; }
.lease__forgotten { display: grid; align-content: start; justify-items: start; gap: 12px; }
.lease__tools { flex: none; }
.lease__tools > summary { display: flex; align-items: center; min-height: 44px; padding: 8px; color: var(--color-text-secondary); font-size: 14px; cursor: pointer; list-style: none; }
.lease__tools > summary::-webkit-details-marker { display: none; }
.lease__tools > summary:hover { color: var(--color-action-strong); }
.lease__tool-panel { position: absolute; inset-inline-end: 8px; top: calc(100% + 4px); display: grid; gap: 8px; width: min(300px, calc(100% - 16px)); padding: 12px; border-radius: 12px; background: var(--color-surface); box-shadow: var(--shadow-card); }
.lease__tool-panel .btn { width: 100%; text-align: start; padding: 10px 12px; }
.lease__tool-panel a { padding: 6px 4px; color: var(--color-link); font-size: 14px; text-underline-offset: 3px; }

/* controls */
.lease button, .lease .btn { min-height: 44px; white-space: normal; font-size: 15px; box-shadow: none; }
.lease .btn:hover { transform: none; box-shadow: none; }
.lease button:disabled, .lease input:disabled, .lease textarea:disabled { cursor: wait; background: var(--color-disabled-bg); color: var(--color-disabled-text); border-color: var(--color-disabled-border); }
.lease :is(button, summary, a, label.btn):focus-visible { outline: var(--focus-outline); outline-offset: 3px; }

/* dock and composer */
.lease__dock { flex: none; max-height: 58dvh; overflow-y: auto; padding: 12px 16px max(10px, env(safe-area-inset-bottom)); background: var(--color-surface); border-top: 1px solid var(--color-divider); border-radius: 0 0 16px 16px; }
.lease__dock:empty { display: none; }
.lease__composer { display: grid; gap: 10px; min-width: 0; margin: 0; }
.lease__composer-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.lease__composer-actions .btn { padding: 10px 18px; }
.lease__submit { margin-inline-end: auto; }
.lease__complete-actions .btn--go { margin-inline-end: auto; }
.lease__composer-error { margin: 0; padding: 8px 12px; border-radius: 12px; background: var(--color-error-surface); color: var(--color-error); font-size: 14px; }
.lease__disclaimer { margin: 8px 0 0; color: var(--color-text-secondary); font-size: 13px; line-height: 1.5; }
.lease__options { display: flex; flex-wrap: wrap; gap: 8px; }
.lease .lease__option { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: 2px solid var(--color-border); border-radius: var(--r-pill); background: var(--color-surface); color: var(--color-text); font: 600 16px/1.35 var(--body); text-align: start; cursor: pointer; transition: border-color 160ms ease, background-color 160ms ease; }
.lease .lease__option:hover { border-color: var(--color-border-hover); background: var(--color-surface-hover); }
.lease .lease__option[aria-pressed="true"] { border-color: var(--color-selected-border); background: var(--color-selected); }
.lease .lease__option[aria-pressed="true"]::before { content: ""; flex: none; width: 12px; height: 7px; margin-top: -4px; border: solid var(--color-action-strong); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.lease__checks-group { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.lease__checks-group legend { width: 100%; margin-bottom: 4px; padding: 0; }
.lease__check-option { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border: 2px solid var(--color-border); border-radius: var(--r-pill); background: var(--color-surface); font-size: 16px; cursor: pointer; }
.lease__check-option:hover { border-color: var(--color-border-hover); }
.lease__check-option:has(input:checked) { border-color: var(--color-selected-border); background: var(--color-selected); }
.lease__check-option input { width: 18px; height: 18px; margin: 0; accent-color: var(--color-action); }
.lease__check-option:has(input:focus-visible) { outline: var(--focus-outline); outline-offset: 2px; }
.lease__field { display: grid; gap: 4px; min-width: 0; }
.lease__label { font-weight: 700; font-size: 15px; }
.lease__optional { font-weight: 400; color: var(--color-text-secondary); }
.lease__hint { color: var(--color-text-secondary); font-size: 14px; line-height: 1.45; }
.lease__input { width: 100%; min-height: 48px; padding: 10px 14px; border: 2px solid var(--color-border-strong); border-radius: 12px; background: var(--color-surface); color: var(--color-text); font: 17px/1.5 var(--body); caret-color: var(--color-action); }
.lease__input::placeholder { color: var(--color-text-secondary); opacity: 1; }
.lease__input:focus-visible { outline: none; border-color: var(--color-action); box-shadow: var(--focus-ring); }
.lease__input[aria-invalid="true"] { border-color: var(--color-error); }
.lease__input[type="number"], .lease__input[type="tel"], .lease__input[type="date"] { font-variant-numeric: tabular-nums; }
.lease__textarea { min-height: 112px; resize: vertical; }
.lease__amount { display: flex; align-items: center; gap: 10px; max-width: 320px; }
.lease__amount .lease__input { flex: 1; min-width: 0; }
.lease__unit { flex: none; color: var(--color-text-secondary); font-size: 16px; }
.lease__parties { display: grid; gap: 12px; }
.lease__party { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; margin: 0; padding: 0; border: 0; min-width: 0; }
.lease__parties .lease__party { padding: 12px; border: 1px solid var(--color-divider); border-radius: 12px; }
.lease__party legend { padding: 0 4px; font: 700 15px/1.4 var(--head); }
.lease__party .lease__field:first-of-type, .lease__party .lease__field:nth-of-type(3) { grid-column: 1 / -1; }
.lease__remove { grid-column: 1 / -1; justify-self: start; padding: 6px 14px; }
.lease__add { justify-self: start; padding: 8px 16px; }
.lease__photo { display: grid; gap: 8px; justify-items: start; }
.lease__file { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.lease__photo-pick { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; cursor: pointer; }
.lease__photo:has(.lease__file:focus-visible) .lease__photo-pick { outline: var(--focus-outline); outline-offset: 3px; }
.lease__photo-preview { display: block; max-width: min(100%, 280px); max-height: 200px; border-radius: 12px; border: 1px solid var(--color-border); object-fit: contain; background: var(--color-page); }
.lease__photo-status { margin: 0; font-size: 14px; color: var(--color-text-secondary); }
.lease__photo-status:empty { display: none; }
.lease__confirm { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; border-radius: 12px; background: var(--color-warning-surface); color: var(--color-warning-text); font-weight: 600; font-size: 15px; }
.lease__confirm input { width: 20px; height: 20px; margin: 0; accent-color: var(--color-action); }
/* card (v2): one assistant turn = a compact form of the card's questions */
.lease__card-title { margin: 0; font: 700 16px/1.35 var(--head); }
.lease__card-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; min-width: 0; }
.lease__card--single .lease__card-fields { grid-template-columns: minmax(0, 1fr); }
.lease__card-fields > .lease__field--wide { grid-column: 1 / -1; }
.lease fieldset.lease__field { margin: 0; padding: 0; border: 0; min-width: 0; }
.lease fieldset.lease__field > legend { padding: 0; margin-bottom: 4px; }
.lease__card-fields .lease__options { gap: 6px; }
.lease .lease__card-fields .lease__option { padding: 8px 14px; font-size: 15px; }
.lease__field-error { margin: 2px 0 0; color: var(--color-error); font-size: 14px; }
.lease__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.lease .lease__chip { min-height: 40px; padding: 6px 16px; border: 1px solid var(--color-border); border-radius: var(--r-pill); background: var(--color-surface); color: var(--color-text); font-size: 14px; cursor: pointer; }
.lease .lease__chip:hover { border-color: var(--color-border-hover); background: var(--color-surface-hover); }
.lease .lease__chip[aria-pressed="true"] { border-color: var(--color-selected-border); background: var(--color-selected); font-weight: 600; }
.lease__none { justify-self: start; margin-top: 6px; }
/* refine the draft */
.lease__refine h3 { margin: 0 0 4px; font-size: 18px; }
.lease__refine > .lease__meta { margin-bottom: 10px; }
.lease__refine-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.lease__refine-card { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid var(--color-divider); border-radius: 12px; background: var(--color-surface); }
.lease__refine-card--done { border-color: var(--color-selected-border); background: var(--color-selected); }
.lease__refine-copy { display: grid; gap: 4px; min-width: 0; }
.lease__refine-name { font-size: 16px; }
.lease__refine-state { display: inline-flex; align-items: center; gap: 6px; color: var(--color-text-secondary); font-size: 13px; }
.lease__refine-card--done .lease__refine-state { color: var(--color-success); font-weight: 600; }
.lease .lease__refine-open { flex: none; padding: 6px 14px; }
.lease__assumed { margin: 4px 0 6px; padding-inline-start: 20px; font-size: 15px; line-height: 1.55; }
.lease__section-edit { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; padding-inline-start: calc(1.6em + 10px); }
.lease .lease__edit { min-height: 40px; padding: 6px 14px; font-size: 14px; color: var(--color-link); }
@media (pointer: coarse) { .lease .lease__chip, .lease .lease__edit { min-height: 44px; } }
.lease__error { padding: 8px 0; font-size: 15px; }
.lease__error p { margin: 0 0 8px; }
.lease__notice { padding: 12px; background: var(--color-info-surface); border-radius: 12px; }
.lease__notice--block { background: var(--color-error-surface); color: var(--color-error); font-weight: 600; }
.lease__meta { margin: 0; color: var(--color-text-secondary); font-size: 14px; }

/* draft: the review list, then the document on a paper sheet */
.lease__draft { display: grid; align-content: start; gap: 20px; background: var(--color-page); }
.lease__draft-head h2 { margin: 0 0 4px; font-size: 24px; line-height: 1.25; }
.lease__draft-head h2:focus { outline: none; }
.lease__draft-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.lease__draft-actions .btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; }
.lease__review h3 { margin: 0 0 10px; font-size: 18px; }
.lease__check-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.lease__check { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--color-surface); }
.lease__check--block { background: var(--color-error-surface); }
.lease__check--warn { background: var(--color-warning-surface); }
.lease__check--info { background: var(--color-info-surface); }
.lease__check-icon { display: grid; place-items: start center; padding-top: 1px; }
.lease__check--block .lease__check-icon, .lease__check--block .lease__severity { color: var(--color-error); }
.lease__check--warn .lease__check-icon, .lease__check--warn .lease__severity { color: var(--color-warning-text); }
.lease__check--info .lease__check-icon, .lease__check--info .lease__severity { color: var(--color-action-strong); }
.lease__check-copy p { margin: 0 0 6px; font-size: 15px; line-height: 1.55; }
.lease__check-copy p:last-child { margin-bottom: 0; }
.lease__check-copy .lease__check-title { font-size: 16px; }
.lease__severity { font-weight: 700; }
.lease__check-copy .lease__law { color: var(--color-text-secondary); font-size: 13px; }
.lease__contract { counter-reset: lease-section; padding: clamp(20px, 5vw, 48px); border-radius: 12px; background: var(--color-surface); box-shadow: var(--shadow-card); font-size: 16px; line-height: 1.75; }
.lease__contract-title { margin: 8px 0 24px; text-align: center; font-size: 26px; letter-spacing: -0.01em; }
.lease__contract-disclaimer { margin: 0; padding: 8px 12px; border: 1px solid var(--color-divider); border-radius: 12px; color: var(--color-text-secondary); font-size: 13px; text-align: center; }
.lease__contract > .lease__contract-disclaimer:last-child { margin-top: 28px; }
.lease__sections { margin: 0; padding: 0; list-style: none; }
.lease__section { counter-increment: lease-section; margin: 0 0 22px; max-width: 70ch; }
.lease__section h3 { display: flex; gap: 10px; margin: 0 0 6px; font-size: 17px; line-height: 1.45; }
.lease__section h3::before { content: counter(lease-section) "."; flex: none; min-width: 1.6em; color: var(--color-accent-text); font-variant-numeric: tabular-nums; }
.lease__section p { margin: 0 0 8px; padding-inline-start: calc(1.6em + 10px); text-wrap: pretty; }
.lease__pre { white-space: pre-wrap; }
.lease__signatures { margin-top: 32px; page-break-inside: avoid; break-inside: avoid; }
.lease__signatures h3, .lease__annex h3 { margin: 0 0 14px; font-size: 18px; }
.lease__signature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 28px 24px; }
.lease__signature p { margin: 0; font-size: 15px; }
.lease__signature-line { display: block; height: 44px; margin-bottom: 6px; border-bottom: 1px solid var(--color-text); }
.lease__annexes { display: grid; gap: 24px; margin-top: 32px; }
.lease__annex { padding-top: 20px; border-top: 1px solid var(--color-divider); }
.lease__annex p { margin: 0 0 6px; }
.lease__meters { display: grid; gap: 16px; margin: 0; }
.lease__meter { display: grid; grid-template-columns: minmax(110px, 160px) minmax(0, 1fr); gap: 12px; }
.lease__meter dt { font-weight: 700; }
.lease__meter dd { margin: 0; }
.lease__meter-value { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; direction: ltr; text-align: start; }
.lease__meter-photo { display: block; max-width: 220px; max-height: 160px; margin-top: 6px; border-radius: 12px; border: 1px solid var(--color-border); object-fit: contain; }
@media (max-width: 620px) {
  body[data-step="lease"] main { padding: 0; }
  .lease:not(.is-hidden) { border: 0; border-radius: 0; }
  .lease__chat-header { border-radius: 0; padding: 8px 12px; }
  .lease__draft, .lease__form-scroll { padding: 16px 12px; }
  .lease__form-header { padding: 10px 12px; }
  .lease__form-values { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .lease__form-values dd { margin-bottom: 6px; }
  .lease__dock { padding: 10px 12px max(10px, env(safe-area-inset-bottom)); border-radius: 0; }
  .lease__party { grid-template-columns: minmax(0, 1fr); }
  .lease__card-fields { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .lease__refine-list { grid-template-columns: minmax(0, 1fr); }
  .lease__meter { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .lease .lease__option { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .lease__progress-bar, .lease .lease__option { transition: none; }
}
/* Print: only the contract, black on white; no navigation, avatar, controls or review list. */
@media print {
  body[data-step="lease"] { height: auto; overflow: visible; display: block; background: var(--color-print-paper); }
  body[data-step="lease"] > :not(main), body[data-step="lease"] main > :not(#step-lease),
  .lease__chat-header, .lease__progress, .lease__status, .lease__form-scroll, .lease__dock,
  .lease__draft-head, .lease__review, .lease__refine, .lease__section-edit, .lease__error { display: none !important; }
  body[data-step="lease"] main { display: block; max-width: none; padding: 0; }
  .lease:not(.is-hidden) { display: block; max-width: none; border: 0; border-radius: 0; background: var(--color-print-paper); }
  .lease__draft { display: block; overflow: visible; padding: 0; background: var(--color-print-paper); }
  .lease__contract { padding: 0; box-shadow: none; border-radius: 0; background: var(--color-print-paper); color: var(--color-print-ink); font-size: 11.5pt; line-height: 1.6; }
  .lease__contract * { color: var(--color-print-ink) !important; }
  .lease__contract-disclaimer { border-color: var(--color-print-ink); }
  .lease__contract > .lease__contract-disclaimer:first-child { margin-bottom: 12pt; }
  .lease__signatures { break-before: avoid-page; }
  .lease__section { max-width: none; break-inside: avoid-page; }
  .lease__section h3 { break-after: avoid-page; }
  .lease__annexes { break-before: page; }
  .lease__annex { border-color: var(--color-print-ink); break-inside: avoid-page; }
  .lease__signature-line { border-color: var(--color-print-ink); }
  .lease__meter-photo { border-color: var(--color-print-ink); max-width: 6cm; }
}
