/* ==========================================================================
   marketli — עמוד הבית: "הלובי"
   באנר, ואז אריחי מחלקות בצבעי המותג. בלי פריטים בעמוד.
   צבעים: שחור, לבן, ירוק המותג. גופן: Arial בלבד.
   ========================================================================== */

:root {
  --lb-black: #000;
  --lb-white: #fff;
  --lb-green: #448e42;
  --lb-green-dark: #35722f;
  --lb-green-soft: #eef6ee;
  --lb-line: #e4e4e4;
}

.lobby-hero, .lobby-hero *, .lobby, .lobby *, .lobby-promise, .lobby-promise * {
  font-family: Arial, "Arial Hebrew", Helvetica, "Liberation Sans", sans-serif;
}

/* ---------- באנר ---------- */
.lobby-hero { position: relative; background: var(--lb-black); color: var(--lb-white); }
.lobby-hero-media { position: relative; width: 100%; aspect-ratio: 2000 / 744; max-height: 520px; overflow: hidden; }
.lobby-hero-media picture, .lobby-hero-media img { display: block; width: 100%; height: 100%; }
.lobby-hero-media img { object-fit: cover; object-position: center; }
.lobby-hero-media::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 45%;
  background: linear-gradient(to bottom, transparent, #000);
  pointer-events: none;
}
.lobby-hero-text { position: relative; padding-block: 6px 34px; text-align: center; }
.lobby-title { margin: 0 0 10px; font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 700; line-height: 1.15; color: #fff; }
.lobby-lead { margin: 0 auto; max-width: 52ch; font-size: clamp(1rem, 1.5vw, 1.12rem); line-height: 1.6; color: rgba(255,255,255,.8); }

/* ---------- המחלקות ---------- */
.lobby {
  position: relative;
  padding: clamp(40px, 6vw, 72px) 0 clamp(48px, 7vw, 84px);
  background:
    radial-gradient(circle at 1px 1px, rgba(0,0,0,.07) 1px, transparent 1.4px) 0 0 / 22px 22px,
    #fafaf8;
}
.lobby-head { text-align: center; margin-bottom: clamp(26px, 4vw, 40px); }
.lobby-kicker {
  display: inline-block; margin-bottom: 12px; padding: 6px 14px; border-radius: 999px;
  background: var(--lb-green-soft); color: var(--lb-green-dark);
  font-size: .82rem; font-weight: 700; letter-spacing: .02em;
}
.lobby-heading { margin: 0; font-size: clamp(1.6rem, 3.4vw, 2.5rem); font-weight: 700; line-height: 1.15; color: #000; }
.lobby-sub { margin: 10px 0 0; color: #555; font-size: 1.02rem; }

.lobby-grid {
  list-style: none; margin: 0 auto; padding: 0;
  max-width: 1120px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px);
}
.lobby-cell { display: flex; }
.lobby-cell-all { grid-column: 1 / -1; }

/* האריח */
.lobby-tile {
  --fg: #000; --bg: #fff; --muted: #555; --chip: #f2f2f2; --ring: var(--lb-line);
  position: relative; isolation: isolate; overflow: hidden;
  flex: 1;
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  min-height: 236px;
  padding: 24px 24px 22px;
  border-radius: 20px;
  background: var(--bg); color: var(--fg);
  box-shadow: inset 0 0 0 1px var(--ring), 0 1px 2px rgba(0,0,0,.04);
  text-decoration: none !important;
  transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s ease;
  animation: lobby-rise .6s cubic-bezier(.22,1,.36,1) both;
  animation-delay: var(--d, 0ms);
}
@keyframes lobby-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.lobby-tile.is-green { --bg: var(--lb-green); --fg: #fff; --muted: rgba(255,255,255,.82); --chip: rgba(255,255,255,.16); --ring: transparent; }
.lobby-tile.is-black { --bg: #0b0b0b; --fg: #fff; --muted: rgba(255,255,255,.7); --chip: rgba(255,255,255,.12); --ring: transparent; }
.lobby-tile.is-white { --bg: #fff; --fg: #000; --muted: #5a5a5a; --chip: var(--lb-green-soft); --ring: var(--lb-line); }

/* האיור הגדול השקוף בפינה — נותן עומק בלי להעמיס */
.lobby-tile-art {
  position: absolute; z-index: -1;
  bottom: -26px; inset-inline-end: -22px;
  opacity: .1; color: currentColor;
  transform: rotate(-10deg);
  transition: transform .6s cubic-bezier(.22,1,.36,1), opacity .4s ease;
}
.lobby-tile.is-white .lobby-tile-art { color: var(--lb-green); opacity: .14; }

.lobby-tile-icon {
  display: grid; place-items: center;
  width: 64px; height: 64px; border-radius: 18px;
  background: var(--chip); color: var(--fg);
  transition: transform .45s cubic-bezier(.34,1.56,.64,1), background .3s ease;
}
.lobby-tile.is-white .lobby-tile-icon { color: var(--lb-green); }

.lobby-tile-body { display: flex; flex-direction: column; gap: 6px; }
.lobby-tile-name { font-size: clamp(1.35rem, 2.2vw, 1.7rem); font-weight: 700; line-height: 1.15; }
.lobby-tile-count { font-size: .95rem; color: var(--muted); }
.lobby-tile-subs {
  margin-top: 4px; font-size: .84rem; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.lobby-tile-go {
  position: absolute; top: 22px; inset-inline-end: 22px;
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--chip); color: var(--fg);
  font-size: 1.25rem; font-weight: 700;
  transition: background .3s ease, color .3s ease, transform .35s cubic-bezier(.22,1,.36,1);
}
.lobby-arrow { display: inline-block; transition: transform .35s cubic-bezier(.22,1,.36,1); }

/* מעבר עכבר: האריח עולה, האיור מסתובב, החץ "יוצא לדרך" */
.lobby-tile:hover, .lobby-tile:focus-visible {
  transform: translateY(-6px);
  box-shadow: inset 0 0 0 1px var(--ring), 0 26px 50px -22px rgba(0,0,0,.45);
}
.lobby-tile:hover .lobby-tile-art, .lobby-tile:focus-visible .lobby-tile-art { transform: rotate(0deg) scale(1.08); opacity: .18; }
.lobby-tile:hover .lobby-tile-icon, .lobby-tile:focus-visible .lobby-tile-icon { transform: rotate(-8deg) scale(1.08); }
.lobby-tile:hover .lobby-tile-go, .lobby-tile:focus-visible .lobby-tile-go { background: var(--fg); color: var(--bg); }
.lobby-tile.is-white:hover .lobby-tile-go, .lobby-tile.is-white:focus-visible .lobby-tile-go { background: var(--lb-green); color: #fff; }
.lobby-tile:hover .lobby-arrow, .lobby-tile:focus-visible .lobby-arrow { transform: translateX(-4px); }
.lobby-tile:focus-visible { outline: 3px solid #000 !important; outline-offset: 4px; }
.lobby-tile.is-white:hover { box-shadow: inset 0 0 0 2px var(--lb-green), 0 26px 50px -22px rgba(0,0,0,.35); }

.lobby-tile.is-empty .lobby-tile-count { font-style: italic; }

/* "כל המוצרים" — אריח רחב, שחור עם פס ירוק */
.lobby-tile.is-all {
  --bg: #000; --fg: #fff; --muted: rgba(255,255,255,.75); --chip: var(--lb-green); --ring: transparent;
  flex-direction: row; align-items: center; justify-content: flex-start; gap: 22px;
  min-height: 150px; padding: 26px 30px;
  background:
    linear-gradient(90deg, transparent 0 calc(100% - 10px), var(--lb-green) calc(100% - 10px)),
    #000;
}
.lobby-tile.is-all .lobby-tile-art { opacity: .12; bottom: -60px; inset-inline-end: 8%; color: var(--lb-green); }
.lobby-tile.is-all .lobby-tile-icon { width: 76px; height: 76px; border-radius: 22px; background: var(--lb-green); color: #fff; }
.lobby-tile.is-all .lobby-tile-name { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.lobby-tile.is-all .lobby-tile-body { flex: 1; }
.lobby-tile.is-all .lobby-tile-go {
  position: static; width: auto; height: auto; padding: 14px 24px; border-radius: 999px;
  background: var(--lb-green); color: #fff; font-size: 1.02rem; gap: 8px; display: inline-flex; align-items: center;
}
.lobby-tile.is-all:hover .lobby-tile-go, .lobby-tile.is-all:focus-visible .lobby-tile-go { background: #fff; color: #000; }

/* ---------- הבטחות ---------- */
.lobby-promise { background: #fff; border-block: 1px solid var(--lb-line); }
.lobby-promise-list {
  list-style: none; margin: 0 auto; padding-block: 26px;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px;
}
.lobby-promise-list li { display: flex; align-items: center; gap: 12px; font-size: .9rem; color: #555; line-height: 1.4; }
.lobby-promise-list strong { display: block; color: #000; font-size: .98rem; }
.lobby-promise-ic {
  flex: none; width: 50px; height: 50px; border-radius: 14px;
  display: grid; place-items: center; background: var(--lb-green-soft); color: var(--lb-green);
}

/* ---------- טאבלט ---------- */
@media (max-width: 960px) {
  .lobby-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lobby-promise-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- טלפון ---------- */
@media (max-width: 640px) {
  .lobby-hero-media { aspect-ratio: 900 / 620; max-height: none; }
  .lobby-hero-text { padding-block: 0 26px; }
  .lobby-grid { gap: 10px; }
  .lobby-tile { min-height: 172px; padding: 16px 14px 16px; border-radius: 16px; gap: 12px; }
  .lobby-tile-icon { width: 48px; height: 48px; border-radius: 14px; }
  .lobby-tile-icon svg { width: 30px; height: 30px; }
  .lobby-tile-name { font-size: 1.18rem; }
  .lobby-tile-count { font-size: .84rem; }
  .lobby-tile-subs { display: none; }
  .lobby-tile-go { top: 14px; inset-inline-end: 12px; width: 34px; height: 34px; font-size: 1rem; }
  .lobby-tile-art svg { width: 120px; height: 120px; }

  .lobby-tile.is-all { flex-wrap: wrap; gap: 14px; padding: 20px 18px; min-height: 0; }
  .lobby-tile.is-all .lobby-tile-icon { width: 56px; height: 56px; }
  .lobby-tile.is-all .lobby-tile-icon svg { width: 34px; height: 34px; }
  .lobby-tile.is-all .lobby-tile-go { width: 100%; justify-content: center; padding: 12px 18px; }

  .lobby-promise-list { gap: 14px 10px; padding-block: 20px; }
  .lobby-promise-list li { flex-direction: column; text-align: center; font-size: .8rem; gap: 8px; }
  .lobby-promise-list strong { font-size: .88rem; }
  .lobby-promise-ic { width: 44px; height: 44px; }
}

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

/* תיקוני יישור מול הכללים הכלליים של האתר */
.lobby-sub, .lobby-lead { max-width: 52ch; margin-inline: auto; }
.lobby-promise + .cta-band { margin-top: 0; }

/* בשתי עמודות — מסדרים את הצבעים מחדש, כדי ששני אריחים לבנים לא ישבו זה ליד זה */
@media (max-width: 960px) {
  .lobby-grid > li:nth-child(6n+5) .lobby-tile { --bg: var(--lb-green); --fg: #fff; --muted: rgba(255,255,255,.82); --chip: rgba(255,255,255,.16); --ring: transparent; }
  .lobby-grid > li:nth-child(6n+6) .lobby-tile { --bg: #0b0b0b; --fg: #fff; --muted: rgba(255,255,255,.7); --chip: rgba(255,255,255,.12); --ring: transparent; }
  .lobby-grid > li:nth-child(6n+7) .lobby-tile { --bg: #fff; --fg: #000; --muted: #5a5a5a; --chip: var(--lb-green-soft); --ring: var(--lb-line); }
  .lobby-grid > li:nth-child(6n+5) .lobby-tile-icon,
  .lobby-grid > li:nth-child(6n+6) .lobby-tile-icon { color: #fff; }
  .lobby-grid > li:nth-child(6n+5) .lobby-tile-art,
  .lobby-grid > li:nth-child(6n+6) .lobby-tile-art { color: currentColor; opacity: .1; }
  .lobby-grid > li:nth-child(6n+7) .lobby-tile-icon,
  .lobby-grid > li:nth-child(6n+7) .lobby-tile-art { color: var(--lb-green); }
}

/* ---------- טקסט לגוגל + שאלות נפוצות ---------- */
.lobby-seo { padding: clamp(40px, 6vw, 72px) 0; background: #fff; }
.lobby-seo-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.lobby-seo-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px !important; }
.lobby-seo-links a {
  padding: 7px 14px; border-radius: 999px; background: var(--lb-green-soft); color: var(--lb-green-dark) !important;
  font-size: .86rem; font-weight: 700; text-decoration: none !important;
}
.lobby-seo-links a:hover { background: var(--lb-green); color: #fff !important; }
.lobby-faq h2 { margin: 0 0 14px; font-size: 1.25rem; }
.lobby-faq details { border-bottom: 1px solid var(--lb-line); }
.lobby-faq summary {
  list-style: none; cursor: pointer; padding: 16px 0; padding-inline-end: 30px; position: relative;
  font-weight: 700; font-size: 1rem; color: #000;
}
.lobby-faq summary::-webkit-details-marker { display: none; }
.lobby-faq summary::after {
  content: "+"; position: absolute; inset-inline-end: 0; top: 50%; transform: translateY(-50%);
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: var(--lb-green-soft); color: var(--lb-green-dark); font-size: 1.1rem; line-height: 1;
}
.lobby-faq details[open] summary::after { content: "−"; background: var(--lb-green); color: #fff; }
.lobby-faq details p { margin: 0 0 16px; color: #444; line-height: 1.7; max-width: none; }
@media (max-width: 860px) { .lobby-seo-grid { grid-template-columns: 1fr; } }
.lobby-seo + .cta-band { margin-top: 0; }
