/* ============================================================
   theme.css — "עימוד ספר עלייה לרגל"
   שכבת העיצוב האמנותית. נטענת אחרי style.css ומעצבת מחדש את הדף
   הציבורי בשפה של ספר/פוסטר עברי מוקפד: אסימטריה מכוונת, קנה-מידה
   דרמטי, טיפוגרפיה עורכת, פרטים בעבודת-יד ומרקם נייר-אבן עדין.
   פלטה: זית ירושלמי · זהב-אבן · שמנת.  RTL · Mobile First · AA.
   ============================================================ */

@font-face {
  font-family: 'HarovaHayehudi';
  src: url('/public/fonts/harova-hayehudi.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}

/* BA Platforma (בית אלף, רישיון המשתמש) — גוף הטקסט בשלושה משקלים */
@font-face {
  font-family: 'BAPlatforma';
  src: url('/public/fonts/platforma-regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'BAPlatforma';
  src: url('/public/fonts/platforma-bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'BAPlatforma';
  src: url('/public/fonts/platforma-black.woff2') format('woff2');
  font-weight: 900; font-style: normal; font-display: swap;
}

:root {
  /* --- פלטה --- */
  --blue: #2e4a26;          /* זית ירושלמי עמוק (הצבע הראשי) */
  --blue-dark: #1e3216;
  --gold: #b0821c;          /* זהב-אבן */
  --gold-ink: #7a5a10;      /* זהב כהה — AA לטקסט אקצנט על שמנת */
  --gold-soft: #e6d6a3;
  --gold-line: rgba(176, 130, 28, .5);
  --olive: #5c7a2e;
  --olive-ink: #3f5a1e;

  --paper: #f6f1e4;         /* שמנת חמה — נייר */
  --paper-2: #efe8d6;
  --ink: #262a1e;           /* דיו — כמעט-שחור חמים */
  --ink-soft: #5a5c4c;      /* טקסט משני */
  --line: #ddd8c6;
  --rule: rgba(40, 50, 25, .16);      /* קו-שיער */
  --rule-strong: rgba(40, 50, 25, .30);

  --shadow: 0 10px 34px rgba(40, 55, 25, .10);

  --font-display: 'HarovaHayehudi', 'Frank Ruhl Libre', Georgia, serif;
  --font-serif: 'BAPlatforma', 'Heebo', 'Arial Hebrew', Arial, sans-serif;
  --font: 'BAPlatforma', 'Heebo', 'Assistant', system-ui, 'Arial Hebrew', Arial, sans-serif;

  /* מרקם נייר-אבן עדין (feTurbulence מוטבע — בלי קובץ, בלי CDN) */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
}

/* ============================================================
   טיפוגרפיה — שני קולות: כותרות (הרובע היהודי) · טקסט (פלטפורמה 400/700/900)
   ============================================================ */
body {
  color: var(--ink);
  background:
    linear-gradient(180deg, #f7f2e6 0%, #f3ecdc 60%, #eee6d3 100%) fixed;
}

/* גוף הטקסט — פלטפורמה. */
body { font-family: var(--font); }
h1, h2, h3 { color: var(--blue); letter-spacing: 0; }

/* כותרות — הרובע היהודי: כל הכותרות, המספרים הענקיים והמותג. */
h1, h2, h3, h4,
.hero-title,
.moed-line,
.sec-index,
.stat-figure,
.rank-item .rank-pos,
.brand-text,
.section-title,
.funnel-title,
.profiling-title {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: .2px;
}

/* טקסט מודגש בתוך העימוד — פלטפורמה במשקלים כבדים. */
.epigraph-line,
.rank-item .rank-name,
.faq summary,
.field > label {
  font-family: var(--font-serif);
}

.hero-title { font-size: clamp(3.4rem, 13.5vw, 5.2rem); line-height: 1.02; text-wrap: balance; }
.hero-sub   { font-size: clamp(1.05rem, 3.6vw, 1.28rem); }
@media (min-width: 760px) {
  .hero-title { font-size: clamp(5.4rem, 8.4vw, 8rem); }
  .hero-sub   { font-size: 1.4rem; }
}

/* ============================================================
   HERO — שומרים על הקומפוזיציה המצוירת; מעדנים את הטקסט והלוח
   ============================================================ */
[data-page="landing"] .hero-title {
  color: var(--blue-dark);
  text-shadow: 0 1px 2px rgba(255, 253, 246, .9), 0 2px 30px rgba(255, 252, 242, .7);
}
[data-page="landing"] .hero-sub {
  color: #223318; font-weight: 500;
  text-shadow: 0 1px 10px rgba(255, 253, 245, .9);
  max-width: 30ch; margin-inline: auto;
}

.sukkot-badge {
  background: rgba(247, 242, 230, .84) !important;
  border: 1px solid var(--gold-line) !important;
  color: var(--olive-ink) !important;
  letter-spacing: .3px; font-weight: 600;
  box-shadow: 0 4px 16px rgba(40, 55, 25, .12);
}

/* לוח-האבן של המונה: לא "כרטיס זכוכית" אלא לוח שמנת עם מסגרת-קו כפולה */
[data-page="landing"] .hero .counter {
  position: relative;
  background: rgba(247, 243, 232, .78);
  border: 1px solid var(--gold-line);
  border-radius: 4px;                 /* פינות כמעט-ישרות — עימוד, לא SaaS */
  backdrop-filter: blur(3px);
  box-shadow: 0 12px 34px rgba(40, 55, 25, .16), inset 0 0 0 4px rgba(247, 243, 232, .5);
  padding: 18px 26px; max-width: 30rem;
}
[data-page="landing"] .hero .counter::before {
  content: ''; position: absolute; inset: 5px;
  border: 1px solid var(--gold-line); border-radius: 2px; pointer-events: none; opacity: .5;
}
.counter-lead { color: var(--olive-ink); font-weight: 700; letter-spacing: .4px; }
[data-page="landing"] .hero .counter-main { color: var(--blue-dark); font-weight: 600; }
[data-page="landing"] .hero .counter-main strong { color: var(--gold-ink); font-weight: 800; }
[data-page="landing"] .hero .counter-sub { color: #4b5340; }

/* חץ גלילה */
.scroll-cue { color: var(--blue); }

/* ============================================================
   מבנה עורך משותף: כותרת-סקשן אסימטרית עם אות-פרק תלויה בשוליים
   ============================================================ */
.section { position: relative; padding: 46px 0; }
.section:nth-of-type(even) { background: transparent; }

/* מרקם נייר על סקשני המסע */
.section.paper::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: var(--grain); opacity: .7; mix-blend-mode: multiply; z-index: 0;
}
.section.paper > .wrap { position: relative; z-index: 1; }

/* container מעט רחב יותר לתחושת מגזין בדסקטופ */
.wrap-ed { max-width: 860px; }

/* כותרת עורך: אות-פרק ענקית (display) בשוליים + kicker + כותרת-סריף,
   וקו-שיער שנמתח עד הקצה הנגדי. לא ממורכז. */
.sec-head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end; column-gap: 20px;
  margin-bottom: 30px;
}
/* sec-index / sec-kicker (ההדגשות שליוו את הכותרות) הוסרו לבקשת הלקוח 18.8 */
.sec-head .section-title {
  text-align: start; margin: 0;
  font-size: clamp(1.8rem, 5.5vw, 2.5rem); font-weight: 700;
  color: var(--blue-dark); letter-spacing: 0;
}
/* קו-שיער עורך מתחת לכותרת */
.sec-head::after {
  content: ''; grid-column: 1 / -1; height: 1px; margin-top: 18px;
  background: var(--rule);
  background-repeat: no-repeat;
}

/**
 * ⚠️ **בטלפון הכותרת והתקציר נערמים.** `.sec-head` הוא גריד של שתי
 * עמודות `auto 1fr`: הכותרת לוקחת את מה שהיא צריכה, והתקציר מקבל את
 * השארית. בכותרת ארוכה ובמסך צר לא נשארת שארית — נמדד באתר החי
 * (16.9.2026): התקציר של דירוג הערים היה ברוחב 46px ובגובה 236px,
 * כלומר מילה אחת בשורה, עמוד שלם לאורך. עמודה אחת פותרת את זה.
 */
@media (max-width: 720px) {
  .sec-head { grid-template-columns: 1fr; row-gap: 6px; align-items: start; }
}

/* בטל את מפריד-הקשת האוטומטי הישן שהיה על כל סקשן */
.section:not(.privacy-line)::before { content: none; }

/* מפריד "אבן-מפתח": קו-שיער שנקטע ביהלום זהב קטן — פרט בעבודת-יד */
.keystone {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin: 8px auto 0; max-width: 320px; color: var(--gold-line);
}
.keystone::before, .keystone::after {
  content: ''; height: 1px; flex: 1; background: currentColor;
}
.keystone i {
  width: 7px; height: 7px; background: var(--gold);
  transform: rotate(45deg); border-radius: 1px;
  box-shadow: 0 0 0 4px rgba(176, 130, 28, .12);
}

/* ============================================================
   פתיח: פסוק תהילים מעומד כאפיגרף של ספר
   ============================================================ */
.epigraph {
  padding: 58px 0 40px; text-align: start; position: relative;
}
.epigraph .wrap { max-width: 680px; }
.epigraph-gate {
  width: 46px; height: 30px; margin-bottom: 22px; color: var(--gold-line);
}
.epigraph-line {
  font-size: clamp(1.6rem, 6.2vw, 2.7rem);
  line-height: 1.5; font-weight: 500; color: var(--blue-dark);
  margin: 0 0 .5em; max-width: 18ch;
}
.epigraph-line em { font-style: normal; color: var(--gold-ink); }
.epigraph-cite {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--ink-soft); font-size: .92rem; letter-spacing: .12em; margin: 0;
}
.epigraph-cite::before {
  content: ''; width: 34px; height: 1px; background: var(--gold-line);
}

/* ============================================================
   "המפקד במספרים" — קנה-מידה דרמטי: מספר ענק כאלמנט גרפי
   ============================================================ */
.tally {
  padding: 30px 0 50px; position: relative;
}
.tally .wrap { max-width: 860px; }
.tally-grid {
  display: grid; grid-template-columns: 1fr; gap: 8px;
  align-items: end;
}
@media (min-width: 620px) {
  .tally-grid { grid-template-columns: auto 1fr; column-gap: 34px; align-items: baseline; }
}
.stat-figure {
  font-size: clamp(4.6rem, 22vw, 9rem); line-height: .82;
  color: var(--blue); letter-spacing: -.01em;
  text-shadow: 0 2px 0 rgba(255, 255, 255, .4);
}
.stat-figure sup {
  font-family: var(--font-serif); font-size: .18em; vertical-align: top;
  color: var(--gold-ink); font-weight: 700; margin-inline-start: .3em;
  letter-spacing: .05em; top: 1.2em;
}
.tally-label {
  color: var(--ink); font-family: var(--font-serif);
  font-size: clamp(1.05rem, 3.6vw, 1.35rem); line-height: 1.4; margin: 0;
  padding-bottom: .3em;
}
.tally-label b { color: var(--blue-dark); }
.tally-foot {
  margin: 20px 0 0; color: var(--ink-soft); font-size: .95rem;
  border-top: 1px solid var(--rule); padding-top: 14px;
}
.tally-foot strong { color: var(--gold-ink); }

/* ============================================================
   דירוג הערים — "פנקס" מעומד: מספרי-ענק בשוליים, קווי-שיער בין שורות
   ============================================================ */
.leaderboard .tabs { justify-content: flex-start; gap: 6px 10px; margin-bottom: 22px; }
.leaderboard .tab {
  min-height: 40px; padding: 6px 15px; border-radius: 2px;
  border: 1px solid var(--rule-strong); background: transparent;
  color: var(--blue); font-weight: 600; font-size: .95rem; letter-spacing: .2px;
}
.leaderboard .tab.is-active {
  background: var(--blue); color: #f4efe1; border-color: var(--blue);
  box-shadow: 0 4px 14px rgba(46, 74, 38, .2);
}

.rank-list {
  border-top: 2px solid var(--rule-strong);
  border-bottom: 2px solid var(--rule-strong);
}
.rank-list li.rank-item {
  display: grid;
  grid-template-columns: 3.4rem 1fr auto;
  align-items: baseline; column-gap: 16px;
  padding: 16px 4px; margin: 0;
  background: transparent; border: none;
  border-bottom: 1px solid var(--rule); border-radius: 0;
}
.rank-list li.rank-item:last-child { border-bottom: none; }
.rank-item .rank-pos {
  flex: none; width: auto; height: auto; border-radius: 0;
  background: none; color: var(--gold-line);
  font-size: 2.5rem; line-height: 1; font-weight: 400;
  display: block; text-align: start; align-self: center;
}
.rank-item.top .rank-pos { color: var(--gold); font-size: 3.1rem; }
.rank-item .rank-name {
  flex: none; font-size: 1.3rem; font-weight: 700; color: var(--blue-dark); min-height: 40px; display: inline-flex; align-items: center;
  align-self: center;
}
.rank-item.top .rank-name { font-size: 1.5rem; }
.rank-item .rank-name:hover { color: var(--gold-ink); text-decoration: none;
  text-decoration: underline; text-decoration-color: var(--gold-line); text-underline-offset: 5px; }
.rank-item .rank-count {
  text-align: end; align-self: center;
  font-size: 1.15rem; font-weight: 800; color: var(--blue);
  font-variant-numeric: tabular-nums;
}
.rank-item .rank-count small {
  display: block; font-weight: 500; font-size: .85rem; color: var(--ink-soft);
  letter-spacing: .04em; margin-top: 2px;
}
.rank-item.top .rank-count { color: var(--gold-ink); }

/* ── קיפול הדירוג לחמישה (16.9.2026) ──────────────────────────────────
   ⚠️ `is-collapsible` נוספת ע"י `app.js` בלבד. בלי JS אין מחלקה, אין
   כלל הסתרה, והרשימה המלאה מוצגת — כפי שהיא נשלחת ב-HTML לסורקים. */
.rank-list.is-collapsible:not(.is-expanded) li.rank-extra { display: none; }
/* בלי זה השורה החמישית נשארת בלי קו תחתון כשהרשימה מקופלת. */
.rank-list.is-collapsible:not(.is-expanded) li.rank-item:nth-child(5) { border-bottom: none; }

.rank-more {
  display: block; width: 100%;
  margin-top: 14px; padding: 14px 18px;
  min-height: 44px;                 /* יעד מגע — ראו כלל המובייל */
  background: transparent;
  border: 1.5px solid var(--gold-line); border-radius: 4px;
  color: var(--blue-dark); font-family: inherit;
  font-size: 1.02rem; font-weight: 700; letter-spacing: .01em;
  cursor: pointer; transition: background .15s ease, border-color .15s ease;
}
.rank-more:hover { background: var(--gold-wash, rgba(208,160,57,.08)); border-color: var(--gold); }
.rank-more:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.rank-more[hidden] { display: none; }
.rank-skeleton { height: 56px; border-radius: 2px; background:
  linear-gradient(90deg, #ece6d6 25%, #f3eee0 50%, #ece6d6 75%); background-size: 200% 100%; }
.rank-empty { color: var(--ink-soft); text-align: start; padding: 22px 4px; }
.tabpanel { min-height: 120px; }

/* ============================================================
   "איך זה עובד" — הדרך העולה: מספרי-רפאים ענקיים, טקסט לצדם, נתיב מקווקו
   ============================================================ */
.how .steps {
  grid-template-columns: 1fr; gap: 0;
  counter-reset: none; position: relative; margin-top: 6px;
}
.how .steps li {
  background: transparent; border: none; border-radius: 0; box-shadow: none;
  text-align: start; padding: 22px 0;
  display: grid; grid-template-columns: auto 1fr; column-gap: 22px; align-items: start;
  border-bottom: 1px solid var(--rule); position: relative;
}
.how .steps li:last-child { border-bottom: none; }
.how .step-num {
  width: auto; height: auto; margin: 0; border-radius: 0; background: none;
  font-family: var(--font-display); color: transparent;
  -webkit-text-stroke: 1.5px var(--gold-line); text-stroke: 1.5px var(--gold-line);
  font-size: clamp(3rem, 12vw, 4.4rem); line-height: .8; font-weight: 400;
  grid-row: 1 / span 2; align-self: center; min-width: 1.6em; text-align: center;
}
.how .steps h3 {
  margin: .1em 0 .15em; color: var(--blue-dark);
  font-family: var(--font-display); font-size: 1.45rem; font-weight: 400;
}
.how .steps p { color: var(--ink-soft); margin: 0; font-size: 1.02rem; }
/* אסימטריה: הצעד האמצעי נדחק פנימה כמו מדרגה בדרך העולה */
.how .steps li:nth-child(2) { padding-inline-start: clamp(8px, 6vw, 54px); }
.how .steps li:nth-child(3) { padding-inline-start: clamp(16px, 12vw, 108px); }

/* ============================================================
   הוכחה חברתית — צ'יפים בפיזור חופשי, לא רשת סימטרית
   ============================================================ */
.proof .city-chips { justify-content: flex-start; gap: 10px 12px; }
.proof .city-chips li.chip {
  background: rgba(247, 243, 232, .7);
  border: 1px solid var(--rule-strong); border-radius: 2px;
  color: var(--blue-dark); font-weight: 600; padding: 8px 15px;
  box-shadow: 0 2px 0 rgba(176, 130, 28, .1);
}
.proof .city-chips li.chip:nth-child(3n) { transform: translateY(-3px); }
.proof .city-chips li.chip:nth-child(4n) { transform: translateY(2px); }
.chip-skeleton { border-radius: 2px; background:
  linear-gradient(90deg, #ece6d6 25%, #f3eee0 50%, #ece6d6 75%); background-size: 200% 100%; }

/* ============================================================
   שאלות ותשובות — עימוד ספרותי, שאלה מודגשת בסריף
   ============================================================ */
.faq details {
  background: transparent; border: none; border-radius: 0; padding: 0;
  border-bottom: 1px solid var(--rule); margin: 0;
}
.faq details:first-of-type { border-top: 1px solid var(--rule); }
.faq summary {
  color: var(--blue-dark); font-weight: 700; font-size: 1.15rem;
  padding: 16px 30px 16px 0; position: relative; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; inset-inline-end: 2px; top: 50%;
  transform: translateY(-50%); color: var(--gold-ink); font-weight: 400;
  font-size: 1.5rem; font-family: var(--font-serif);
}
.faq details[open] summary::after { content: '–'; }
.faq details[open] summary { border-bottom: none; }
.faq p { color: var(--ink); padding-bottom: 16px; margin: 0; max-width: 60ch; }

/* ============================================================
   פרטיות
   ============================================================ */
.privacy-line { background: transparent; text-align: start; padding: 20px 0; }
.privacy-line p { color: var(--ink-soft); }
.privacy-line a { color: var(--gold-ink); }

/* ============================================================
   "מועד" — סיום מרומם: שער-אבן פשוט + שורת display גדולה
   ============================================================ */
.moed {
  padding: 74px 20px 82px; text-align: center; overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(90% 130% at 50% -20%, rgba(255, 236, 178, .5), transparent 56%),
    radial-gradient(80% 120% at 50% 120%, rgba(140, 180, 80, .18), transparent 60%),
    linear-gradient(180deg, #faf3e0 0%, #f4eeda 55%, #ece7d2 100%);
}
.moed::before {
  background: radial-gradient(58% 42% at 50% 4%, rgba(255, 214, 120, .45), transparent 70%);
  opacity: .5;
}
.moed-mark {
  width: 46px; height: 30px; background: none; border-radius: 0;
  margin: 0 auto 22px; color: var(--gold-line);
}
.moed-line {
  font-size: clamp(2rem, 8vw, 3.4rem); color: var(--blue-dark);
  text-shadow: 0 1px 2px rgba(255, 255, 255, .7); margin: 0 0 .35em; font-weight: 400;
}
.moed-sub { color: #4a5140; font-size: 1.08rem; max-width: 34ch; margin-inline: auto; }

/* ============================================================
   כותרת עליונה + פוטר — עדכוני פלטה קלים
   ============================================================ */
.site-header { background: var(--blue); }
.site-footer { background: var(--blue-dark); }
.site-footer::before {
  background: linear-gradient(90deg, transparent, var(--gold-line) 50%, transparent);
}
.footer-links a, .footer-privacy summary { color: var(--gold-soft); }

/* ============================================================
   כפתורים — זהב-אבן חם עם עומק עדין, פינות כמעט-ישרות
   ============================================================ */
.btn { border-radius: 3px; letter-spacing: .2px; }
.btn-primary { background: var(--blue); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-outline { color: var(--blue); border-color: var(--rule-strong); }
.btn-outline:hover { background: rgba(46, 74, 38, .06); }
.btn-hero, .btn-primary.btn-hero {
  color: #fff8e8; background: linear-gradient(180deg, #c39a2e 0%, #a1780f 100%);
  border: 1px solid rgba(255, 240, 190, .45);
  box-shadow: 0 10px 26px rgba(160, 120, 15, .38), 0 2px 6px rgba(40, 40, 10, .25);
}
.btn-hero:hover, .btn-primary.btn-hero:hover {
  background: linear-gradient(180deg, #b58c1f 0%, #8a660c 100%); color: #fff;
}

/* ============================================================
   עמודי משנה (עיר / אישי / הצטרפות / הצלחה / צ'ק-אין) — לכידות עם המסע
   ============================================================ */
/* Hero של עמודי משנה (לא דף הנחיתה) — לוח שמנת חם במקום כחול שטוח */
body:not([data-page="landing"]) .hero {
  min-height: auto; padding: 54px 0 46px; color: var(--ink);
  background:
    radial-gradient(80% 120% at 50% -10%, rgba(255, 236, 178, .4), transparent 60%),
    linear-gradient(180deg, #f7f1e2 0%, #f1ead7 100%);
  text-align: start;
}
body:not([data-page="landing"]) .hero::after {
  height: 2px; background: linear-gradient(90deg, transparent, var(--gold-line) 50%, transparent);
}
body:not([data-page="landing"]) .hero-title {
  color: var(--blue-dark); text-shadow: none;
  font-size: clamp(2.6rem, 9vw, 4.2rem); margin-bottom: .3em;
}
body:not([data-page="landing"]) .hero-sub { color: var(--ink); text-shadow: none; }
.eyebrow { color: var(--gold-ink); font-weight: 700; letter-spacing: .16em; }

/* לוח נתונים של עיר — פנקס-אבן, לא שלושה תאים שקופים */
.hero-city .stat-grid { gap: 0; border-top: 2px solid var(--rule-strong);
  border-bottom: 2px solid var(--rule-strong); margin: 18px 0; }
.hero-city .stat {
  background: transparent; border-radius: 0; padding: 16px 8px; text-align: start;
  border-inline-start: 1px solid var(--rule);
}
.hero-city .stat:first-child { border-inline-start: none; }
.hero-city .stat-num { color: var(--blue); font-size: 2rem; font-family: var(--font-display); }
.hero-city .stat-label { color: var(--ink-soft); font-size: .95rem; }
.city-rank-box { border-inline-start: 3px solid var(--gold-line); padding-inline-start: 14px; }
.rank-line { color: var(--ink); }
.rank-line strong, .rank-goal strong { color: var(--gold-ink); }
.rank-goal { color: var(--blue-dark); }

/* עמוד אישי — מספר-ענק */
body[data-page="me"] .stat-big { text-align: start; }
.stat-big-num { color: var(--blue); font-family: var(--font-display); font-size: 4rem; }
.stat-big-label { color: var(--ink-soft); }

.checkin-card, .card {
  border: 1px solid var(--line); border-radius: 5px;
  background: rgba(250, 246, 236, .92); box-shadow: var(--shadow);
}
.checkin-code { color: var(--blue-dark); border-color: var(--gold-line); background: var(--paper-2); }
body[data-page="recover"] .card h1, body[data-page="remove"] .card h1,
.funnel-title { font-family: var(--font-display); color: var(--blue-dark); }

/* דיאלוג ההצטרפות — עימוד רך, פינות עדינות */
.join-dialog { border-radius: 6px; background: var(--paper); }
.join-dialog .funnel { padding: 46px 24px 28px; }
.step-count { color: var(--gold-ink); letter-spacing: .16em; font-weight: 700; }
.field input:focus { border-color: var(--olive); }

/* ============================================================
   Desktop — נשימה ואסימטריה
   ============================================================ */
@media (min-width: 760px) {
  .section { padding: 60px 0; }
  .epigraph { padding: 78px 0 54px; }
  .moed { padding: 96px 20px 104px; }
  /* יישור עדין של הכותרת-סקשן פנימה מהקצה לנשימה עורכת */
  .sec-head { column-gap: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-content .sukkot-badge, .hero-content .hero-title { animation: none !important; }
}

/* ============================================================
   HERO עריכתי — טיפוגרפיה על נייר + צילום אמיתי ממוסגר (פאבל)
   ============================================================ */
[data-page="landing"] .hero.hero-ed {
  background: linear-gradient(180deg, #f7f2e6 0%, #f2ebd9 100%);
  min-height: auto;
  padding: 40px 0 56px;
  text-align: start;
}
[data-page="landing"] .hero.hero-ed::before { content: none; }
[data-page="landing"] .hero.hero-ed::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: var(--grain); opacity: .8; mix-blend-mode: multiply;
  height: auto;
}
.hero-ed-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr; gap: 34px;
  max-width: 1060px;
}
.hero-ed-copy { display: flex; flex-direction: column; align-items: flex-start; }
[data-page="landing"] .hero-ed .hero-title {
  text-shadow: none; color: var(--blue-dark);
  font-size: clamp(3.4rem, 13vw, 5rem);
  margin-top: .35em;
}
[data-page="landing"] .hero-ed .hero-sub {
  text-shadow: none; color: var(--ink-soft);
  margin-inline: 0; max-width: 34ch;
}
[data-page="landing"] .hero-ed .counter {
  margin-inline: 0; text-align: start; max-width: 28rem;
}
.hero-ed .btn-hero { width: auto; min-width: 300px; }
.hero-ed .scroll-cue { color: var(--olive-ink); }

/* צילום ממוסגר — כמו תמונה תלויה: פספרטו שמנת, קו זהב פנימי, צל רך */
.hero-ed-photo { margin: 0; justify-self: center; max-width: 430px; width: 100%; }
.hero-ed-photo img,
.photo-fig img {
  display: block; width: 100%; height: auto;
  background: #fff;
  padding: 10px;
  border: 1px solid var(--gold-line);
  box-shadow: 0 14px 40px rgba(40, 55, 25, .16);
}
.hero-ed-photo figcaption,
.photo-fig figcaption {
  font-family: var(--font-serif);
  font-size: .95rem; color: var(--ink-soft);
  margin-top: 10px; padding-inline-start: 2px;
}

@media (min-width: 900px) {
  [data-page="landing"] .hero.hero-ed { padding: 64px 0 72px; }
  .hero-ed-grid { grid-template-columns: 1.12fr .88fr; align-items: center; gap: 56px; }
  [data-page="landing"] .hero-ed .hero-title { font-size: clamp(4.6rem, 6.8vw, 6.6rem); }
  .hero-ed-photo { transform: rotate(-1.1deg); }
  .hero-ed-photo:hover { transform: rotate(0deg); transition: transform .5s ease; }
}

/* ---------- מסת הצילומים (פרק ג) ---------- */
.photo-pair {
  display: grid; grid-template-columns: 1fr; gap: 26px;
}
.photo-fig { margin: 0; }
@media (min-width: 760px) {
  .photo-pair { grid-template-columns: .88fr 1.12fr; gap: 30px; align-items: start; }
  .photo-fig-tall { transform: translateY(22px); }
}

/* מספרי דירוג — ספרות בסריף (פונט התצוגה אינו כולל ספרות לטיניות) */
.rank-item .rank-pos { font-family: var(--font-serif); font-weight: 700; }

/* אפיגרף — מניעת חיתוך עליון */
.epigraph { padding-top: 64px; }
.epigraph-line { line-height: 1.5; }

/* מקום ראשון: ספרה לבנה על זהב — נראית תמיד */
.rank-item.top .rank-pos { color: #fff !important; }
.rank-item .rank-pos { color: var(--gold-ink); }

/* ============================================================
   ניווט עליון + Hero דרמטי (צילום הכותל) — פאבל
   ============================================================ */
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1120px; margin-inline: auto; padding-inline-end: 16px;
}
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  color: #efe9d8; text-decoration: none; font-weight: 600; font-size: .95rem;
  padding: 10px 12px; border-radius: 6px;
}
.site-nav a:hover { background: rgba(255, 255, 255, .1); }
.site-nav .nav-join {
  background: var(--gold); color: #fff; font-weight: 700;
  padding: 9px 18px; border-radius: 8px; margin-inline-start: 6px;
}
.site-nav .nav-join:hover { background: #9a7015; }
@media (max-width: 560px) {
  .brand-text { display: none; }
  .site-nav a { padding: 10px 9px; font-size: .95rem; }
}

[data-page="landing"] .hero.hero-drama {
  position: relative;
  background:
    linear-gradient(180deg, rgba(18, 24, 12, .48) 0%, rgba(18, 24, 12, .28) 40%, rgba(18, 24, 12, .72) 100%),
    url('/public/img/photos/hero-aerial.webp') center 58% / cover no-repeat;
  min-height: 92svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 56px 0 64px;
  text-align: start;
}
[data-page="landing"] .hero.hero-drama::before,
[data-page="landing"] .hero.hero-drama::after { content: none; }
@media (max-width: 700px) {
  [data-page="landing"] .hero.hero-drama {
    background-image:
      linear-gradient(180deg, rgba(18, 24, 12, .5) 0%, rgba(18, 24, 12, .3) 40%, rgba(18, 24, 12, .74) 100%),
      url('/public/img/photos/hero-aerial-mobile.webp');
  }
}
.hero-drama-copy { position: relative; z-index: 1; max-width: 1060px; }
[data-page="landing"] .hero-drama .hero-title {
  color: #fdfaf1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .55), 0 10px 44px rgba(0, 0, 0, .45);
  font-size: clamp(3.4rem, 13vw, 5rem);
  margin-top: .3em;
}
[data-page="landing"] .hero-drama .hero-sub {
  color: #f2edda; text-shadow: 0 1px 8px rgba(0, 0, 0, .6);
  margin-inline: 0; max-width: 36ch;
}
[data-page="landing"] .hero-drama .counter {
  margin-inline: 0; text-align: start; max-width: 28rem;
  background: rgba(20, 26, 12, .55);
  border-color: rgba(214, 178, 91, .55);
  backdrop-filter: blur(5px);
}
[data-page="landing"] .hero-drama .counter::before { border-color: rgba(214, 178, 91, .35); }
[data-page="landing"] .hero-drama .counter-lead { color: #e8d9a8; }
[data-page="landing"] .hero-drama .counter-main { color: #fdfaf1; }
[data-page="landing"] .hero-drama .counter-main strong { color: #ecc75e; }
[data-page="landing"] .hero-drama .counter-sub { color: #d9d4c0; }
.hero-drama .btn-hero { width: auto; min-width: 300px; box-shadow: 0 10px 34px rgba(0,0,0,.4); }
.hero-drama .scroll-cue { color: #f2edda; }
.hero-credit {
  position: absolute; bottom: 10px; inset-inline-start: 16px; z-index: 1;
  color: rgba(250, 246, 232, .72); font-size: .72rem; margin: 0;
  text-shadow: 0 1px 4px rgba(0,0,0,.6);
}
@media (min-width: 900px) {
  [data-page="landing"] .hero-drama .hero-title { font-size: clamp(4.8rem, 7.2vw, 7rem); }
}

/* עמודי תוכן (אודות / צור קשר) */
.page-doc { max-width: 720px; margin-inline: auto; padding: 48px 20px 64px; }
.page-doc h1 { font-family: var(--font-display); font-size: clamp(2.6rem, 9vw, 4rem); color: var(--blue-dark); }
.page-doc h2 { font-family: var(--font-display); font-size: 1.7rem; font-weight: 400; margin-top: 1.6em; }
.page-doc p, .page-doc li { color: var(--ink); line-height: 1.75; }
.page-doc .lead { font-size: 1.15rem; color: var(--ink-soft); }
.contact-form { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.contact-form label { font-family: var(--font-serif); font-weight: 600; display: block; margin-bottom: 4px; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; font: inherit; padding: 12px 14px;
  border: 1px solid var(--rule-strong); border-radius: 6px; background: #fffdf7;
}
.contact-form textarea { min-height: 120px; resize: vertical; }

/* --- עמוד הצטרפות לפעילות --- */
.contact-vol-note {
  background: rgba(176, 130, 28, .08); border: 1px solid var(--gold-line);
  border-radius: 6px; padding: 10px 14px; font-size: .98rem;
}
.contact-vol-note a { color: var(--gold-ink); font-weight: 700; }
.vol-roles-intro { list-style: none; padding: 0; margin: 18px 0 6px; display: grid; gap: 8px; }
.vol-roles-intro li { padding-inline-start: 2px; }
.vol-roles { border: none; padding: 0; margin: 0; }
.vol-roles legend { font-family: var(--font-serif); font-weight: 600; margin-bottom: 8px; padding: 0; }
.vol-roles { display: flex; flex-wrap: wrap; gap: 10px; }
.vol-roles legend { flex-basis: 100%; }
.role-chip {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 8px 16px; cursor: pointer; user-select: none;
  border: 1px solid var(--rule-strong); border-radius: 999px; background: #fffdf7;
  transition: background .15s, border-color .15s;
}
.role-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.role-chip:has(input:checked) {
  background: var(--gold-soft); border-color: var(--gold);
  box-shadow: inset 0 0 0 1px var(--gold);
}
.role-chip:has(input:focus-visible) { outline: 2px solid var(--gold-ink); outline-offset: 2px; }

/* ============================================================
   דיאלוג "הצטרפו לפעילות שלנו" (נפתח מכפתור ההדר)
   ============================================================ */
.help-dialog {
  border: none; border-radius: 8px; background: var(--paper);
  width: min(440px, calc(100vw - 32px)); padding: 0;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}
.help-dialog::backdrop { background: rgba(18, 24, 12, .55); }
.help-dialog .help-form { position: relative; padding: 30px 24px 22px; margin-top: 0; }
.help-dialog h2 { font-family: var(--font-display); color: var(--blue-dark); margin: 0; }
.help-lead { margin: 0 0 4px; }
.help-close {
  position: absolute; top: 10px; inset-inline-start: 10px;
  width: 40px; height: 40px; border: none; background: none;
  font-size: 26px; line-height: 1; cursor: pointer; color: #666; border-radius: 6px;
}
.help-close:hover { background: rgba(0, 0, 0, .06); }
.help-dialog textarea { min-height: 90px; }
.help-msg { margin: 0; }
.help-alt { font-size: .95rem; margin: 2px 0 0; }
@media (max-width: 560px) {
  .site-nav .nav-join { padding: 9px 10px; font-size: .92rem; }
  .help-dialog input, .help-dialog textarea { font-size: 16px; }
}

/* ============================================================
   מכסות אישיות — בשפת העימוד (קו זהב על נייר)
   ============================================================ */
.quota-track {
  position: relative;
  height: 3px;
  margin: 14px 0 10px;
  background: var(--rule);
  border-radius: 0;
  overflow: visible;
}
.quota-fill {
  display: block; height: 3px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-ink) 100%);
  box-shadow: 0 0 0 1px rgba(176, 130, 28, .12);
  transition: width .6s ease;
  min-width: 0;
}
.quota-fill::after {
  content: ''; position: absolute; top: 50%; inset-inline-start: 100%;
  width: 7px; height: 7px; background: var(--gold);
  transform: translate(50%, -50%) rotate(45deg); border-radius: 1px;
  box-shadow: 0 0 0 3px rgba(176, 130, 28, .14);
}
.quota-card {
  border-inline-start: 3px solid var(--gold-line);
  padding-inline-start: 16px;
}
.quota-headline {
  font-family: var(--font-serif); color: var(--blue-dark);
  font-size: clamp(1.25rem, 4.6vw, 1.7rem); font-weight: 700; margin: .1em 0 .2em; line-height: 1.35;
}
.quota-headline strong { color: var(--gold-ink); }
.quota-sub { color: var(--ink-soft); margin: 0 0 12px; }
.quota-foot { color: var(--blue-dark); margin: 4px 0 0; }
.quota-foot strong { color: var(--gold-ink); }
.quota-options { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.quota-options .quota-opt { min-height: 44px; padding: 8px 16px; }
.quota-change { margin-top: 12px; }
.quota-change summary {
  color: var(--gold-ink); font-weight: 600; cursor: pointer;
  font-size: .92rem; list-style: none;
}
.quota-change summary::-webkit-details-marker { display: none; }
.quota-offer { margin-top: 6px; }
.quota-offer .quota-options { justify-content: flex-start; }

/* ============================================================
   עמוד קהילה (/c/:code) — hero דרמטי כמו דף הנחיתה
   ============================================================ */
body[data-page="community"] .hero.hero-community {
  background:
    linear-gradient(180deg, rgba(18, 24, 12, .52) 0%, rgba(18, 24, 12, .34) 40%, rgba(18, 24, 12, .74) 100%),
    url('/public/img/photos/hero-aerial.webp') center 58% / cover no-repeat;
  min-height: 92svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 56px 0 64px;
  color: #fdfaf1;
  text-align: start;
}
body[data-page="community"] .hero.hero-community::before,
body[data-page="community"] .hero.hero-community::after { content: none; }
@media (max-width: 700px) {
  body[data-page="community"] .hero.hero-community {
    background-image:
      linear-gradient(180deg, rgba(18, 24, 12, .54) 0%, rgba(18, 24, 12, .36) 40%, rgba(18, 24, 12, .76) 100%),
      url('/public/img/photos/hero-aerial-mobile.webp');
  }
}
body[data-page="community"] .hero-title {
  color: #fdfaf1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .55), 0 10px 44px rgba(0, 0, 0, .45);
  font-size: clamp(2.3rem, 9vw, 3.8rem);
  margin-bottom: .25em;
}
body[data-page="community"] .hero-sub {
  color: #f3ecd9; text-shadow: 0 1px 10px rgba(0, 0, 0, .55);
  max-width: 640px;
}

/* לוח הקהילה — כרטיס זכוכית כהה על התצלום */
.community-board { text-align: start; margin-inline: 0; }
.community-stats { display: flex; flex-wrap: wrap; gap: 4px 26px; }
.community-stat { display: flex; flex-direction: column; min-width: 96px; }
.community-stat-num {
  font-family: var(--font-display); color: #f5d066;
  font-size: 2.4rem; line-height: 1.1;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .5);
}
.community-stat-label { color: #efe7d2; font-size: .92rem; }

.community-progress {
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(201, 162, 39, .4);
  border-radius: 999px; height: 14px; overflow: hidden;
  margin-top: 14px;
}
.community-progress-fill {
  height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, #c9a227, #f5d066);
  transition: width .4s ease;
}
.community-progress-fill.done { background: linear-gradient(90deg, #3f9d4e, #6fce7e); }
.community-progress-note { color: #f3ecd9; font-size: .95rem; margin: 8px 0 0; }
.community-progress-note strong { color: #f5d066; }

/* כפתור שיתוף בהיר על רקע כהה */
body[data-page="community"] .btn-ghost-light {
  color: #fdfaf1; border: 1px solid rgba(253, 250, 241, .55);
  background: rgba(18, 24, 12, .25);
  margin-top: 10px;
}
body[data-page="community"] .btn-ghost-light:hover {
  background: rgba(253, 250, 241, .16); color: #fff;
}
@media (max-width: 700px) {
  body[data-page="community"] .hero.hero-community { min-height: auto; }
  .community-stat-num { font-size: 2rem; }
}

/* ============================================================
   מכסות אישיות — בשפת העימוד (קו זהב על נייר)
   ============================================================ */
.quota-track {
  position: relative;
  height: 3px;
  margin: 14px 0 10px;
  background: var(--rule);
  border-radius: 0;
  overflow: visible;
}
.quota-fill {
  display: block; height: 3px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-ink) 100%);
  box-shadow: 0 0 0 1px rgba(176, 130, 28, .12);
  transition: width .6s ease;
  min-width: 0;
}
.quota-fill::after {
  content: ''; position: absolute; top: 50%; inset-inline-start: 100%;
  width: 7px; height: 7px; background: var(--gold);
  transform: translate(50%, -50%) rotate(45deg); border-radius: 1px;
  box-shadow: 0 0 0 3px rgba(176, 130, 28, .14);
}
.quota-card {
  border-inline-start: 3px solid var(--gold-line);
  padding-inline-start: 16px;
}
.quota-headline {
  font-family: var(--font-serif); color: var(--blue-dark);
  font-size: clamp(1.25rem, 4.6vw, 1.7rem); font-weight: 700; margin: .1em 0 .2em; line-height: 1.35;
}
.quota-headline strong { color: var(--gold-ink); }
.quota-sub { color: var(--ink-soft); margin: 0 0 12px; }
.quota-foot { color: var(--blue-dark); margin: 4px 0 0; }
.quota-foot strong { color: var(--gold-ink); }
.quota-options { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.quota-options .quota-opt { min-height: 44px; padding: 8px 16px; }
.quota-change { margin-top: 12px; }
.quota-change summary {
  color: var(--gold-ink); font-weight: 600; cursor: pointer;
  font-size: .92rem; list-style: none;
}
.quota-change summary::-webkit-details-marker { display: none; }
.quota-offer { margin-top: 6px; }
.quota-offer .quota-options { justify-content: flex-start; }

/* ============================================================
   סקשן "עולים יחד" (דף הבית) — קהילות + מנגנים
   ============================================================ */
.together-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px; margin-top: 8px;
}
.together-card {
  background: #fffdf7; border: 1px solid var(--rule-strong); border-radius: 10px;
  padding: 26px 22px 24px; display: flex; flex-direction: column; gap: 10px;
  align-items: flex-start;
}
.together-card h3 { font-family: var(--font-display); font-size: 1.5rem; margin: 0; color: var(--blue-dark); }
.together-card p { margin: 0 0 6px; line-height: 1.7; color: var(--ink); }
.together-card .btn { margin-top: auto; }
.together-icon { font-size: 2rem; line-height: 1; }

/* ניווט עליון — 5 קישורים: הידוק במסכים צרים */
@media (max-width: 640px) {
  .site-nav a.nav-about { display: none; } /* אודות נשאר נגיש דרך הפוטר */
  .site-nav a { padding: 10px 7px; font-size: .94rem; }
}
@media (max-width: 400px) {
  .site-nav a.nav-contact { display: none; } /* צור קשר נשאר נגיש דרך הפוטר */
}

/* טפסים בטלפון — מניעת זום אוטומטי ב-iOS */
@media (max-width: 560px) {
  .contact-form input, .contact-form select, .contact-form textarea { font-size: 16px; }
}

/* ============================================================
   המרה בדף המפקד (27.8) — המספר בולט, הפעולה תמיד בהישג יד.
   ============================================================ */

/* --- לוח ההוכחה בהירו --- */
.hero-proof {
  margin: 22px 0 26px;
  max-width: 30rem;
}
.proof-figure {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 12px;
}
.proof-num {
  font-family: var(--font-display, inherit);
  font-size: clamp(4.2rem, 17vw, 7.5rem);
  font-weight: 800;
  line-height: .9;
  color: #ecc75e;
  text-shadow: 0 3px 18px rgba(0, 0, 0, .55);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}
.proof-unit {
  font-size: clamp(1.05rem, 3.6vw, 1.35rem);
  font-weight: 700;
  color: #fdfaf1;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .6);
}
.proof-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(253, 250, 241, .22);
  overflow: hidden;
  border: 1px solid rgba(236, 199, 94, .45);
}
.proof-bar-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #d6b25b, #ecc75e);
  /* מתמלא בכניסה — תנועה קטנה שמושכת את העין אל הפער שנשאר */
  transform-origin: right center;
  animation: proof-fill 1.1s cubic-bezier(.2, .8, .3, 1) both;
}
@keyframes proof-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.proof-goal {
  margin: 10px 0 0;
  color: #f2edda;
  font-size: 1rem;
  line-height: 1.5;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .6);
}
.proof-goal strong { color: #ecc75e; }

/* --- הכפתור הראשי: גדול, זהוב, ועם דופק עדין --- */
.btn-pulse { position: relative; }
.btn-pulse::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 2px solid rgba(236, 199, 94, .75);
  animation: cta-pulse 2.6s ease-out infinite;
  pointer-events: none;
}
@keyframes cta-pulse {
  0% { opacity: .85; transform: scale(1); }
  70% { opacity: 0; transform: scale(1.12); }
  100% { opacity: 0; transform: scale(1.12); }
}
.cta-reassure {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
  color: #e6e1cd;
  font-size: .95rem;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .6);
}
.hero-countdown {
  margin: 14px 0 0;
  color: #ecc75e;
  font-weight: 700;
  font-size: 1rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .6);
}

/* --- סרגל CTA דביק --- */
.sticky-cta {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 60;
  background: rgba(20, 26, 12, .94);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(236, 199, 94, .4);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  transform: translateY(100%);
  transition: transform .25s ease;
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 720px;
  margin-inline: auto;
}
.sticky-cta-count { color: #f2edda; font-size: .95rem; flex: 1; }
.sticky-cta-count strong { color: #ecc75e; font-size: 1.15rem; }
.sticky-cta .btn { flex: none; min-height: 46px; padding-inline: 22px; }
/* התוכן האחרון לא נחבא מתחת לסרגל */
[data-page="landing"] .site-footer { padding-bottom: 84px; }

@media (min-width: 900px) {
  .sticky-cta-inner { justify-content: flex-end; }
  .sticky-cta-count { flex: none; }
}

@media (prefers-reduced-motion: reduce) {
  .btn-pulse::after, .proof-bar-fill { animation: none; }
  .sticky-cta { transition: none; }
}

/* --- שלב הקוד במשפך --- */
.funnel-verify .verify-sub { color: var(--ink-soft, #55604a); margin-bottom: 14px; line-height: 1.6; }
.code-input {
  font-size: 1.9rem;
  letter-spacing: .5em;
  text-align: center;
  font-variant-numeric: tabular-nums;
  padding-inline-start: .5em;
}
.verify-note { margin-top: 10px; color: var(--olive-ink, #5b6b3a); font-weight: 600; }

/* --- מסלול חלופי: בקשת הקוד מהבוט --- */
.verify-alt { margin-top: 18px; text-align: start; }
.verify-alt .soft-divider {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 0 0 14px;
}
.verify-alt-title {
  margin: 0 0 10px;
  font-weight: 700;
  color: var(--ink);
}
.verify-alt-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;   /* יעד מגע — מובייל */
  text-decoration: none;
}
.verify-alt-note {
  margin: 10px 0 0;
  font-size: .92rem;
  line-height: 1.6;
  color: var(--ink-soft, #55604a);
}
/* מסלול "הבוט קודם": הבלוק יושב מעל שדה הקוד, בלי קו מפריד מעליו, עם קו מתחתיו */
.verify--bot-first .verify-alt { margin: 0 0 18px; }
.verify--bot-first .verify-alt .soft-divider { display: none; }
.verify--bot-first .verify-alt::after {
  content: "";
  display: block;
  border-top: 1px solid var(--rule);
  margin-top: 16px;
}

/* --- מה נותן המספר: הטבות הבוט --- */
.phone-perks {
  margin: 10px 0 4px;
  padding: 14px 16px;
  border: 1px solid rgba(122, 138, 74, .35);
  border-radius: 14px;
  background: rgba(233, 238, 220, .55);
}
.phone-perks-title { margin: 0 0 8px; font-size: 1rem; line-height: 1.5; }
.phone-perks-list { margin: 0; padding-inline-start: 20px; display: grid; gap: 6px; }
.phone-perks-list li { font-size: .95rem; line-height: 1.5; }
.phone-perks-note { margin: 10px 0 0; font-size: .94rem; color: var(--ink-soft, #55604a); }

/* קישור דילוג לתוכן — ת"י 5568 / WCAG 2.4.1. ראו הערה מקבילה ב-main.css. */
.skip-link {
  position: absolute;
  inset-inline-start: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--blue);
  color: #fff;
  padding: 12px 22px;
  border-radius: 0 0 10px 10px;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { inset-inline-start: 12px; }

/* דירוג מלא (8.9.2026) */
.leaderboard-sub { color: var(--ink-soft); font-size: .95rem; margin: 6px 0 0; text-align: start; }
.rank-pending { color: var(--ink-soft); font-size: .92rem; padding: 12px 4px 0; text-align: start; }
.proof .city-chips li.chip a { color: inherit; text-decoration: none; display: inline-block; min-height: 24px; }

/* === רצועת הקהילות ב-/mifkad (14.9.2026) ===
   כרטיס לכל קהילה: שם בולט, שורת פרטים (סוג · יישוב), מונים גדולים,
   פס התקדמות ליעד וכפתור מלא-רוחב לעמוד הקהילה. Mobile First — עמודה
   אחת בטלפון, גריד אוטומטי מ-560px ומעלה. */
.communities .community-cards {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) {
  .communities .community-cards { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
}
.community-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 20px 18px;
  background: rgba(255, 253, 246, .72);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--gold-line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.community-card-name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1.25;
  margin: 0;
}
.community-card-name a { color: var(--ink); text-decoration: none; }
.community-card-name a:hover { color: var(--gold-ink); }
.community-card-meta {
  margin: -4px 0 0;
  color: var(--ink-soft);
  font-size: .95rem;
}
.community-card-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  margin: 4px 0 0;
}
.community-card-stat { display: flex; flex-direction: column-reverse; min-width: 84px; }
.community-card-stat dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2.1rem;
  line-height: 1;
  color: var(--blue);
}
.community-card-stat dt { color: var(--ink-soft); font-size: .9rem; margin-top: 4px; }
.community-card-progress {
  height: 8px;
  border-radius: 99px;
  background: rgba(40, 50, 25, .12);
  overflow: hidden;
}
.community-card-progress-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
}
.community-card-progress-fill.done { background: linear-gradient(90deg, #3f9d4e, #6fce7e); }
.community-card-note { margin: 0; color: var(--ink-soft); font-size: .93rem; }
.community-card-note strong { color: var(--gold-ink); }
.community-card-cta {
  margin-top: auto;
  align-self: stretch;
  text-align: center;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.communities-own {
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: .97rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
}
