/* ===== Hebrew homepage v2 (scoped; EN/ES unchanged) ===== */

body.home-he .login-nav-container {
  display: none;
}

body.home-he .main-nav.nav-compact {
  gap: 0.85rem;
  font-size: 0.9rem;
  flex-wrap: nowrap;
  white-space: nowrap;
}

body.home-he .main-nav.nav-compact > a:not(.btn) {
  color: var(--muted);
  font-weight: 500;
}

body.home-he .main-nav.nav-compact > a:not(.btn):hover {
  color: var(--text);
}

body.home-he .nav-login-inline {
  color: var(--accent) !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  margin-inline-start: 0.35rem;
}

body.home-he .nav-login-inline:hover {
  text-decoration: underline !important;
}

body.home-he .nav-cta {
  flex-direction: row;
  align-items: center;
  margin-inline-start: 0.15rem;
}

body.home-he .hero {
  padding-top: 2.75rem;
  padding-bottom: 3.5rem;
  overflow: visible;
}

body.home-he .hero .container {
  max-width: 1240px;
}

body.home-he .hero-grid {
  grid-template-columns: minmax(300px, 0.92fr) minmax(420px, 1.2fr);
  gap: 2.25rem;
  align-items: center;
}

html[dir="rtl"] body.home-he .hero-grid {
  grid-template-columns: minmax(420px, 1.2fr) minmax(300px, 0.92fr);
}

body.home-he .hero-copy .eyebrow {
  display: none;
}

body.home-he .hero-copy h1 {
  font-size: clamp(1.85rem, 3.4vw, 2.85rem);
  letter-spacing: -0.02em;
  max-width: 14ch;
  margin-top: 0;
}

body.home-he .hero-copy .lead {
  font-size: 1.12rem;
  color: var(--text);
  max-width: 36ch;
  margin-top: 1rem;
  line-height: 1.55;
}

body.home-he .hero-copy .lead a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.home-he .pain-message {
  margin-top: 1rem;
  font-size: 1rem;
  color: var(--muted);
  max-width: 40ch;
  line-height: 1.55;
}

body.home-he .hero-proof {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

body.home-he .hero-proof li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
}

body.home-he .hero-proof li::before {
  content: "";
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.15rem;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--accent-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%232f41ff' d='M6.2 11.4 2.8 8l1.1-1.1 2.3 2.3 5-5L12.3 5.3z'/%3E%3C/svg%3E");
  background-size: 0.85rem;
  background-repeat: no-repeat;
  background-position: center;
}

body.home-he .hero-actions {
  margin-top: 1.5rem;
  margin-bottom: 0;
}

/* Product screenshots: never crop. Frame adapts to the image. */
body.home-he .hero-stage {
  position: relative;
  width: 100%;
  padding-bottom: 3.5rem;
  padding-inline-end: 3.25rem;
  overflow: visible;
}

body.home-he .hero-stage-desktop {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0.55rem;
  box-shadow: var(--shadow-xl);
}

body.home-he .hero-stage-desktop .browser-topbar {
  padding: 0.15rem 0.35rem 0.55rem;
}

body.home-he .hero-stage-desktop img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

body.home-he .hero-stage-phone,
body.home-he .phone-frame {
  position: absolute;
  width: 148px;
  max-width: 28%;
  background: #0f172a;
  border-radius: 26px;
  padding: 8px;
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.28);
  border: 1px solid #1e293b;
  z-index: 2;
  box-sizing: border-box;
  pointer-events: none;
}

body.home-he .hero-stage-phone {
  inset-inline-end: 0;
  bottom: 0;
}

body.home-he .hero-stage-phone img,
body.home-he .phone-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
}

body.home-he .hebrew-proof {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
  margin-top: 2rem;
}

body.home-he .hebrew-proof-copy h2 {
  max-width: 16ch;
}

body.home-he .hebrew-proof-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: grid;
  gap: 0.65rem;
}

body.home-he .hebrew-proof-list li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  color: var(--text);
  font-size: 1rem;
}

body.home-he .hebrew-proof-list li::before {
  content: "•";
  color: var(--accent);
  font-weight: 700;
  line-height: 1.4;
}

body.home-he .hebrew-proof-visual {
  position: relative;
  isolation: isolate;
  padding-inline-start: 3.25rem;
  padding-bottom: 2.25rem;
}

body.home-he .hebrew-proof-visual .device-desktop {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0.55rem;
  box-shadow: var(--shadow-xl);
}

body.home-he .hebrew-proof-visual .device-desktop img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

body.home-he .hebrew-proof-visual .phone-frame {
  inset-inline-start: 0;
  bottom: 0;
  width: 156px;
  max-width: 34%;
}

body.home-he .shots-stage {
  margin-top: 1.75rem;
}

body.home-he .shots-stage .device-desktop {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0.55rem;
  box-shadow: var(--shadow-lg);
}

body.home-he .shots-stage .device-desktop img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

body.home-he .workflow-card .workflow-shot {
  overflow: visible;
}

body.home-he .workflow-card .workflow-shot img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Guard against any global screenshot crop rules on the HE homepage */
body.home-he img[src*="sep-2026/"] {
  object-fit: contain;
  max-height: none;
}

@media (max-width: 1100px) {
  body.home-he .main-nav.nav-compact {
    gap: 0.65rem;
    font-size: 0.86rem;
  }
}

@media (max-width: 1024px) {
  /* Must beat html[dir="rtl"] body.home-he .hero-grid minmax(420px, …) */
  body.home-he .hero-grid,
  html[dir="rtl"] body.home-he .hero-grid,
  body.home-he .hebrew-proof {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
  }

  body.home-he .hero,
  body.home-he .hero .container,
  body.home-he .hero-visual,
  body.home-he .hero-copy {
    max-width: 100%;
    min-width: 0;
  }

  body.home-he .hero-copy h1 {
    max-width: none;
  }

  body.home-he .hero-stage {
    padding-inline-end: 1.5rem;
    padding-bottom: 2.5rem;
    max-width: 100%;
  }

  body.home-he .hero-stage-phone,
  body.home-he .phone-frame {
    width: 112px;
    max-width: 24%;
  }

  body.home-he .hebrew-proof-visual {
    padding-inline-start: 1.5rem;
  }
}

@media (max-width: 820px) {
  body.home-he .main-nav.nav-compact {
    display: none;
  }

  body.home-he .hero {
    overflow-x: clip;
    padding-top: 1.75rem;
    padding-bottom: 2.5rem;
  }

  body.home-he .hero-stage {
    padding-inline-end: 1.15rem;
    padding-bottom: 2rem;
  }

  body.home-he .hero-stage-phone {
    width: 96px;
    max-width: 22%;
  }

  body.home-he .hero-copy .lead,
  body.home-he .pain-message {
    max-width: none;
  }

  body.home-he .hero-actions {
    width: 100%;
  }

  body.home-he .hero-actions .btn {
    max-width: 100%;
  }
}

@media (max-width: 560px) {
  body.home-he .hero-stage {
    padding-inline-end: 0.85rem;
  }

  body.home-he .hero-stage-phone {
    width: 84px;
    max-width: 28%;
  }
}
