/* ============================================================
   מפקד עולי הרגלים — עיצוב ציבורי. RTL, Mobile First, בלי ספריות.
   ============================================================ */
:root {
  --blue: #1e3a5f;
  --blue-dark: #162b47;
  --gold: #c9a227;
  --gold-soft: #e7d9a6;
  --cream: #faf8f4;
  --surface: #ffffff;
  --ink: #1c2430;
  --muted: #59616e;
  --line: #e3ddd2;
  --danger: #b3261e;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 6px 24px rgba(30, 58, 95, .10);
  --tap: 48px;
  --wrap: 720px;
  --font: "Heebo", "Assistant", system-ui, -apple-system, "Segoe UI", "Arial Hebrew", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; font-weight: 800; color: var(--blue); }
p { margin: 0 0 1em; }
a { color: var(--blue); }
img, svg { max-width: 100%; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.center { text-align: center; }
.eyebrow { color: var(--muted); font-weight: 600; margin-bottom: .3em; }
.opt { color: var(--muted); font-weight: 400; font-size: .85em; }

/* ---------- Header ---------- */
.site-header {
  background: var(--blue);
  color: #fff;
  position: sticky; top: 0; z-index: 20;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; color: #fff; text-decoration: none;
  font-weight: 800; font-size: 1.05rem;
}
.brand-mark { color: var(--gold); display: inline-flex; }
.brand-text { letter-spacing: .2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); padding: 12px 22px;
  font: inherit; font-weight: 700; font-size: 1.05rem;
  border-radius: var(--radius-sm); border: 2px solid transparent;
  cursor: pointer; text-decoration: none; text-align: center;
  transition: transform .05s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: default; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: rgba(30,58,95,.06); }
.btn-link {
  background: none; border: none; color: var(--blue); min-height: 44px;
  text-decoration: underline; padding: 8px 12px; font-weight: 600;
}
.btn-block { display: flex; width: 100%; }
.btn-hero {
  width: 100%; font-size: 1.2rem; padding: 16px 24px;
  background: var(--gold); color: var(--blue-dark);
  box-shadow: 0 8px 20px rgba(201,162,39,.35);
}
.btn-hero:hover { background: #b8931f; color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    linear-gradient(165deg, rgba(13, 30, 51, 0.82) 0%, rgba(30, 58, 95, 0.58) 45%, rgba(13, 30, 51, 0.86) 100%),
    url('/public/img/hero-jerusalem.jpg') center 38% / cover no-repeat;
  color: #fff; padding: 56px 0 60px; text-align: center;
}
.hero::after {
  content: '';
  position: absolute; inset-inline: 0; bottom: 0; height: 6px;
  background: linear-gradient(90deg, transparent, var(--gold) 20%, #e8c96a 50%, var(--gold) 80%, transparent);
  opacity: .9;
}
.hero-title {
  color: #fff; font-size: 2.1rem; font-weight: 800;
  text-shadow: 0 2px 18px rgba(0,0,0,.55), 0 1px 3px rgba(0,0,0,.6);
}
.hero-sub {
  color: #f3ecd9; font-size: 1.1rem; margin-bottom: 1.3em;
  text-shadow: 0 1px 10px rgba(0,0,0,.55);
}
.hero .counter {
  background: rgba(9, 20, 36, .55);
  border: 1px solid rgba(201, 162, 39, .45);
  border-radius: 14px;
  backdrop-filter: blur(4px);
  padding: 14px 18px;
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: 22px;
  box-shadow: 0 8px 30px rgba(0,0,0,.35);
}
.hero .btn-hero {
  box-shadow: 0 6px 24px rgba(201,162,39,.45), 0 2px 8px rgba(0,0,0,.4);
  border: 1px solid rgba(255, 235, 180, .5);
}
.sukkot-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(201, 162, 39, .16);
  border: 1px solid rgba(201, 162, 39, .55);
  color: #f0dfae; border-radius: 999px;
  padding: 5px 14px; font-size: .92rem; margin-bottom: 14px;
}
.sukkot-badge img { width: 22px; height: 22px; object-fit: contain; }
.hero .btn-hero { margin-top: 6px; }
.hero-city .stat-grid { margin: 8px 0 18px; }

/* מונה — שמירת גובה למניעת קפיצה */
.counter {
  min-height: 88px; margin: 0 0 22px;
  display: flex; flex-direction: column; justify-content: center;
}
.counter-lead { color: var(--gold-soft); font-weight: 700; margin: 0 0 .2em; }
.counter-main { font-size: 1.35rem; margin: 0; color: #fff; }
.counter-main strong { color: var(--gold); font-size: 1.15em; }
.counter-sub { color: #cdd6e2; font-size: .95rem; margin: .3em 0 0; }

.stat-big { min-height: 96px; margin: 4px 0 16px; }
.stat-big-num { display: block; font-size: 3rem; font-weight: 800; color: var(--gold); line-height: 1; }
.stat-big-label { display: block; color: #e7ecf3; margin-top: 6px; }

/* ---------- Sections ---------- */
.section { padding: 34px 0; }
.section:nth-of-type(even) { background: var(--surface); }
.section-title { font-size: 1.4rem; text-align: center; margin-bottom: 1em; }

/* ---------- Stat grid (city) ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat {
  background: rgba(255,255,255,.12); border-radius: var(--radius-sm);
  padding: 14px 8px; text-align: center;
}
.stat-num { display: block; font-size: 1.7rem; font-weight: 800; color: var(--gold); }
.stat-label { display: block; font-size: .95rem; color: #e7ecf3; margin-top: 2px; }

.city-rank-box { margin: 6px 0 20px; }
.rank-line { margin: 0 0 .3em; color: #eef2f7; }
.rank-line strong, .rank-goal strong { color: var(--gold); }
.rank-goal { margin: 0; color: #fff; font-weight: 600; }
.hero .city-rank-box .rank-goal { color: #fff; }

/* ---------- Tabs / Leaderboard ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 18px; }
.tab {
  min-height: 44px; padding: 8px 16px; border-radius: 999px;
  border: 2px solid var(--line); background: var(--surface); color: var(--blue);
  font: inherit; font-weight: 600; cursor: pointer;
}
.tab.is-active { background: var(--blue); color: #fff; border-color: var(--blue); }
.tabpanel { min-height: 200px; }
.rank-list { list-style: none; margin: 0; padding: 0; counter-reset: rank; }
.rank-list li.rank-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 12px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: var(--surface); margin-bottom: 10px;
}
.rank-item .rank-pos {
  flex: 0 0 34px; height: 34px; border-radius: 50%;
  background: var(--blue); color: #fff; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}
.rank-item.top .rank-pos { background: var(--gold); color: var(--blue-dark); }
.rank-item .rank-name { flex: 1; font-weight: 700; text-decoration: none; color: var(--ink); }
.rank-item .rank-name:hover { text-decoration: underline; }
.rank-item .rank-count { font-weight: 800; color: var(--blue); }
.rank-item .rank-count small { display: block; font-weight: 500; font-size: .85rem; color: var(--muted); }
.rank-skeleton {
  height: 60px; border-radius: var(--radius-sm); margin-bottom: 10px;
  background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%);
  background-size: 200% 100%; animation: shimmer 1.3s infinite;
}
.rank-empty { text-align: center; color: var(--muted); padding: 24px 0; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ---------- How it works ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.steps li {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px; text-align: center;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--gold); color: var(--blue-dark); font-weight: 800; font-size: 1.2rem;
  margin-bottom: 8px;
}
.steps h3 { color: var(--blue); margin: .2em 0; }
.steps p { margin: 0; color: var(--muted); }

/* ---------- City chips (proof) ---------- */
.city-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.city-chips li.chip {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 14px; font-weight: 600; color: var(--blue);
}
.chip-skeleton {
  width: 96px; height: 38px; border-radius: 999px;
  background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%);
  background-size: 200% 100%; animation: shimmer 1.3s infinite;
}

/* ---------- FAQ ---------- */
.faq details {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 4px 16px; margin-bottom: 10px;
}
.faq summary { cursor: pointer; font-weight: 700; padding: 12px 0; color: var(--blue); }
.faq details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.faq p { margin: 0 0 12px; color: var(--ink); }

.privacy-line { background: var(--cream); text-align: center; padding: 24px 0; }
.privacy-line p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-dark); color: #dfe6ef; padding: 28px 0 36px; }
.footer-inner { max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; text-align: center; }
.footer-note { font-weight: 600; color: #fff; margin-bottom: .6em; }
/* פוטר הקמפיין: הקישורים היו טקסט זורם בגובה ~19px. עם תוספת שלושת המסמכים
   המשפטיים זו שורה צפופה שקשה לפגוע בה באצבע — יעד מגע 40px לפי ת"י 5568. */
.footer-links {
  margin-bottom: 12px;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0 2px;
}
.footer-links a {
  display: inline-flex; align-items: center;
  min-height: 40px; padding: 4px 8px;
  color: var(--gold-soft); text-decoration: underline; text-underline-offset: 3px;
}
.footer-privacy { text-align: right; max-width: 560px; margin: 0 auto; }
.footer-privacy summary { cursor: pointer; color: var(--gold-soft); font-weight: 600; padding: 8px 0; }
.footer-privacy p { color: #c8d2df; font-size: .95rem; }

/* ---------- Forms / Funnel ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.funnel-card { max-width: 480px; margin-inline: auto; }
.funnel-step.is-active, .funnel-step:not([hidden]) { animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.step-count { color: var(--muted); font-size: .92rem; font-weight: 600; margin: 0 0 .3em; }
.funnel-title { font-size: 1.5rem; margin-bottom: .7em; }

/* כל שדה קלט יורש את גודל הגופן של הדף (≥16px) — שדה בברירת מחדל של הדפדפן הוא 13.3px,
   ו-iOS מבצע זום אוטומטי בכל מיקוד בשדה קטן מ-16px. */
form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), form select, form textarea { font: inherit; }

.field { margin-bottom: 16px; }
.field > label { display: block; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
.field input[type="text"], .field input[type="tel"], .field input[type="number"] {
  width: 100%; min-height: var(--tap); padding: 12px 14px;
  font: inherit; border: 2px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; color: var(--ink);
}
.field input:focus { border-color: var(--blue); outline: none; }
.field-hint { color: var(--muted); font-size: .92rem; margin: 6px 0 0; }
.field-error { color: var(--danger); font-size: .94rem; font-weight: 600; margin: 6px 0 0; min-height: 1.1em; }
.field.has-error input { border-color: var(--danger); }

.checkbox { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 18px; cursor: pointer; }
.checkbox input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--blue); flex: 0 0 auto; }

/* יידוע בנקודת האיסוף — תיקון 13 מחייב שהמשתמש יידע במה הוא מסכים *לפני* השליחה,
   ולא רק בקישור בתחתית העמוד. לכן ההערה יושבת מעל כפתור השליחה. */
.consent-note {
  margin: 0 0 14px;
  font-size: .94rem;
  line-height: 1.6;
  color: var(--ink-soft, #5a5c4c);
}
.consent-note a { color: var(--gold-ink, #7a5a10); text-decoration: underline; text-underline-offset: 2px; }

/* stepper */
.stepper { display: inline-flex; align-items: center; gap: 0; border: 2px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.stepper-btn {
  min-width: var(--tap); min-height: var(--tap); border: none; background: var(--cream);
  font-size: 1.5rem; font-weight: 800; color: var(--blue); cursor: pointer; line-height: 1;
}
.stepper-btn:hover { background: #f0ece3; }
.stepper-input {
  width: 72px; min-height: var(--tap); text-align: center; border: none;
  border-inline: 2px solid var(--line); font: inherit; font-size: 1.2rem; font-weight: 800; color: var(--ink);
  -moz-appearance: textfield;
}
.stepper-input::-webkit-outer-spin-button, .stepper-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* honeypot — נסתר לחלוטין אך זמין לבוטים */
/* honeypot — הסתרה בלי left שלילי (ב-RTL זה יוצר שטח גלילה אופקי ענק) */
.hp { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }

/* ---------- Success / Profiling ---------- */
.funnel-success { text-align: center; }
.success-badge { font-size: 3rem; line-height: 1; margin-bottom: 8px; }
.success-city { color: var(--ink); font-size: 1.05rem; background: var(--cream); border-radius: var(--radius-sm); padding: 12px; }
.share-cta { margin: 18px 0 10px; }
.share-sub { color: var(--muted); font-size: .92rem; margin: 8px 0 0; }
.personal-link { display: inline-block; margin: 10px 0; font-weight: 700; text-decoration: underline; }
.link-sent { margin: 2px 0 10px; font-size: .9rem; opacity: .8; }
.soft-divider { border: none; border-top: 1px solid var(--line); margin: 22px 0 16px; }
.profiling-title { font-size: 1.2rem; margin-bottom: .3em; }
.profiling-q { color: var(--ink); margin-bottom: 1em; }
.golden-options { display: flex; flex-direction: column; gap: 10px; }
.golden-name { margin-top: 14px; text-align: right; }
.profiling-done { color: var(--blue); font-weight: 700; margin-top: 14px; }

/* ---------- Check-in ---------- */
.checkin-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-align: center; box-shadow: var(--shadow); }
.checkin-code {
  font-size: 2rem; font-weight: 800; letter-spacing: 4px; color: var(--blue);
  background: var(--cream); border: 2px dashed var(--gold); border-radius: var(--radius-sm);
  padding: 14px; margin: 8px 0; user-select: all;
}
.checkin-form { max-width: 340px; margin: 20px auto 0; }
.checkin-form .stepper { margin-bottom: 16px; }

/* ---------- Dialog ---------- */
.join-dialog {
  border: none; border-radius: var(--radius); padding: 0; width: min(94vw, 480px);
  box-shadow: 0 20px 60px rgba(0,0,0,.35); color: var(--ink); background: var(--surface);
}
.join-dialog::backdrop { background: rgba(20,30,45,.55); backdrop-filter: blur(2px); }
.join-dialog .funnel { padding: 44px 22px 26px; }
.dialog-close {
  position: absolute; inset-inline-end: 10px; inset-block-start: 10px;
  width: 40px; height: 40px; border-radius: 50%; border: none;
  background: var(--cream); color: var(--blue); font-size: 1.1rem; cursor: pointer; z-index: 2;
}
.dialog-close:hover { background: #eee7db; }

/* ---------- Desktop ---------- */
@media (min-width: 720px) {
  body { font-size: 19px; }
  .hero { padding: 88px 0 92px; }
  .hero-title { font-size: 3rem; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .btn-hero { width: auto; min-width: 320px; }
  .hero .btn-hero { margin-inline: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ============================================================
   "הדרך העולה אל האור" — שכבת חוויה לחג הסוכות (תוספת, לא שוברת כלום)
   פונטים מארחים עצמית · Hero תלת-ממדי · נרטיב גלילה · אווירת ליל חג
   ============================================================ */

/* ---------- פונטים מארחים עצמית (ללא CDN חיצוני) ---------- */
@font-face {
  font-family: 'Frank Ruhl Libre'; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url('/public/fonts/frankruhllibre-hebrew.woff2') format('woff2');
  unicode-range: U+0590-05FF, U+FB1D-FB4F, U+200C-2010, U+20AA, U+25CC;
}
@font-face {
  font-family: 'Frank Ruhl Libre'; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url('/public/fonts/frankruhllibre-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2074, U+20AC, U+2122, U+2212, U+2215;
}
@font-face {
  font-family: 'Heebo'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('/public/fonts/heebo-hebrew.woff2') format('woff2');
  unicode-range: U+0590-05FF, U+FB1D-FB4F, U+200C-2010, U+20AA, U+25CC;
}
@font-face {
  font-family: 'Heebo'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('/public/fonts/heebo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2074, U+20AC, U+2122, U+2212, U+2215;
}

:root {
  --font-display: 'Frank Ruhl Libre', 'Heebo', Georgia, 'Times New Roman', serif;
  --gold-glow: #e8c96a;
  --gold-ink: #8a6a10;   /* זהב כהה לקונטרסט AA על רקע בהיר */
  --olive: #5c7a2e;      /* ירוק-זית לאקצנטים */
  --olive-ink: #3f5a1e;
}

/* כותרות: סריף עברי מכובד ורוחני */
h1, h2, h3,
.hero-title, .section-title, .funnel-title, .profiling-title, .success-city, .footer-note {
  font-family: var(--font-display);
  letter-spacing: 0;
}
.hero-title { font-weight: 900; }
.section-title { font-weight: 700; }

/* חמימות עדינה לרקע הכללי — מלכד את עמודי המשנה עם המסע */
body {
  background: linear-gradient(180deg, #faf8f4 0%, #f6f2ea 55%, #f2ece1 100%);
  background-attachment: fixed;
}

/* ============================================================
   Hero תלת-ממדי — מסך מלא
   ============================================================ */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
  padding-block: 72px;
}
@supports not (min-height: 100svh) { .hero { min-height: 100vh; } }

/* שכבת ה-canvas מאחורי הטקסט; ה-fallback הסטטי הוא רקע ה-hero הקיים */
.hero-canvas {
  position: absolute; inset: 0; z-index: 0;
  opacity: 0; transition: opacity 1.1s ease;
  pointer-events: none;
}
.hero-canvas canvas { display: block; width: 100% !important; height: 100% !important; }
.hero.hero-3d-ready .hero-canvas { opacity: 1; }

/* ---------- Hero אור-יום (דף נחיתה בלבד) ---------- */
/* fallback סטטי: התמונה הבהירה החדשה + טינט חמים עדין. אין overlay כהה. */
[data-page="landing"] .hero {
  background:
    linear-gradient(180deg, rgba(255,255,255,.12) 0%, rgba(255,255,255,0) 26%, rgba(250,248,244,.34) 100%),
    url('/public/img/hero-jerusalem.jpg') center 42% / cover no-repeat;
}
/* התמונה הסטטית נשארת מתחת ל-canvas האטום — מבטיח מעבר חלק בלי הבהוב.
   (שכבת השמיים בסצנה אטומה ומכסה את המסגרת.) */

/* scrim עדין: מספיק לקונטרסט הטקסט (שיש לו גם הילת-טקסט לבנה), בלי להלבין את העיר */
[data-page="landing"] .hero::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(75% 42% at 50% 52%, rgba(252,250,244,.34), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,.10) 0%, rgba(255,255,255,0) 26%, rgba(250,246,238,.20) 100%);
}
.hero .wrap, .hero-content { position: relative; z-index: 2; }

/* טקסט כהה על רקע יום בהיר — קונטרסט AA + הילת אור לבנה */
[data-page="landing"] .hero-title {
  color: var(--blue);
  text-shadow: 0 1px 2px rgba(255,255,255,.85), 0 2px 22px rgba(255,255,255,.65);
}
[data-page="landing"] .hero-sub {
  color: #16233a;
  text-shadow: 0 1px 10px rgba(255,255,255,.85);
}
[data-page="landing"] .hero .sukkot-badge {
  background: rgba(255,255,255,.7); border-color: rgba(92,122,46,.6); color: var(--olive-ink);
  box-shadow: 0 4px 14px rgba(30,58,95,.12);
}
[data-page="landing"] .hero .counter {
  background: rgba(255,255,255,.66);
  border: 1px solid rgba(201,162,39,.6);
  box-shadow: 0 10px 30px rgba(30,58,95,.16);
}
[data-page="landing"] .hero .counter-lead { color: var(--olive-ink); }
[data-page="landing"] .hero .counter-main { color: var(--blue); text-shadow: none; }
[data-page="landing"] .hero .counter-main strong { color: var(--gold-ink); }
[data-page="landing"] .hero .counter-sub { color: #4a5566; }

/* ריחוף עדין שמעניק עומק לטקסט מעל הסצנה */
.hero-content .sukkot-badge { animation: heroFloat 7s ease-in-out infinite; }
.hero-content .hero-title { animation: heroFloat 8s ease-in-out .3s infinite; }
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* חץ גלילה עדין בתחתית ה-hero */
.scroll-cue {
  position: absolute; inset-inline: 0; bottom: 16px; z-index: 2;
  display: flex; justify-content: center; pointer-events: none;
  color: var(--blue); opacity: .8;
}
.scroll-cue svg { width: 26px; height: 26px; animation: scrollBob 2.2s ease-in-out infinite;
  filter: drop-shadow(0 1px 6px rgba(255,255,255,.8)); }
@keyframes scrollBob { 0%,100% { transform: translateY(0); opacity: .6; } 50% { transform: translateY(6px); opacity: 1; } }

/* ============================================================
   נרטיב הגלילה — כניסות הדרגתיות + פלטת "המסע" מבין-ערביים לזהב
   ============================================================ */
.has-js [data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity .8s cubic-bezier(.2,.75,.25,1), transform .8s cubic-bezier(.2,.75,.25,1);
}
.has-js [data-reveal].in-view { opacity: 1; transform: none; }
.has-js [data-reveal-stagger] > * {
  opacity: 0; transform: translateY(20px);
  transition: opacity .7s cubic-bezier(.2,.75,.25,1), transform .7s cubic-bezier(.2,.75,.25,1);
  transition-delay: var(--reveal-delay, 0ms);
}
.has-js [data-reveal].in-view [data-reveal-stagger] > *,
.has-js [data-reveal-stagger].in-view > * { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .has-js [data-reveal], .has-js [data-reveal-stagger] > * { opacity: 1 !important; transform: none !important; }
}

/* פלטת יום חמה עם נגיעות ירוק-זית וזהב — בהיר לאורך כל המסע */
.section#leaderboard { background: linear-gradient(180deg, #eef4e9 0%, #f3f4ea 100%); }
.section#how { background: linear-gradient(180deg, #f3f5ea 0%, #f7f5ea 100%); }
.section#proof { background: linear-gradient(180deg, #f7f5ea 0%, #faf6ea 100%); }
.section#faq { background: linear-gradient(180deg, #faf6ea 0%, #f6f2e2 100%); }

/* מפריד קשת-אבן/קו-אופק עדין בראש כל סקשן במסע */
.section:not(.privacy-line)::before {
  content: ''; position: absolute; top: -1px; inset-inline: 0; margin-inline: auto;
  width: min(280px, 72%); height: 30px; pointer-events: none;
  border: 2px solid transparent; border-top-color: rgba(201, 162, 39, .5);
  border-radius: 50%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 26%, #000 74%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 26%, #000 74%, transparent);
}
.section { position: relative; }

/* ============================================================
   "מועד" — סיום מרומם באור-יום חגיגי (לפני הפוטר)
   ============================================================ */
.moed {
  position: relative; overflow: hidden;
  text-align: center; padding: 66px 20px 70px;
  color: var(--ink);
  background:
    radial-gradient(85% 120% at 50% -10%, rgba(255,236,180,.55), transparent 58%),
    radial-gradient(80% 120% at 50% 120%, rgba(140,180,80,.22), transparent 60%),
    linear-gradient(180deg, #fbf4e2 0%, #f6f1e0 55%, #eef2e2 100%);
}
.moed::before { /* קרני שמש עדינות */
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .4;
  background: radial-gradient(60% 40% at 50% 0%, rgba(255,214,120,.5), transparent 70%);
}
.moed-inner { position: relative; z-index: 1; max-width: 640px; margin-inline: auto; }
.moed-line {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.7rem, 6vw, 2.6rem); color: var(--blue); margin: 0 0 .3em;
  text-shadow: 0 1px 2px rgba(255,255,255,.7);
}
.moed-sub { color: #45514a; font-size: 1.05rem; margin: 0; }
.moed-mark {
  display: inline-block; width: 60px; height: 3px; margin: 0 auto 20px;
  background: linear-gradient(90deg, transparent, var(--olive) 30%, var(--gold) 70%, transparent); border-radius: 2px;
}

/* ---------- פוטר: קו זהב עדין ---------- */
.site-footer { position: relative; }
.site-footer::before {
  content: ''; position: absolute; top: 0; inset-inline: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(201,162,39,.6) 50%, transparent);
}

/* ---------- Desktop tweaks לחוויה ---------- */
@media (min-width: 720px) {
  .hero { padding-block: 96px; }
}
