/*
 * NADLAB Public Entry Foundation Stage 1 v1
 * Preview-only intro + standalone Agent shell.
 */

:root {
    --nadlab-entry-bg: #f3f3f1;
    --nadlab-entry-ink: #111214;
    --nadlab-entry-muted: #65696f;
    --nadlab-entry-line: rgba(17, 18, 20, 0.14);
    --nadlab-entry-red: #e6292f;
    --nadlab-entry-white: #ffffff;
    --nadlab-entry-shadow: 0 18px 50px rgba(17, 18, 20, 0.10);
}

html,
body {
    min-height: 100%;
}

body.nadlab-entry-page,
body.nadlab-agent-standalone-page {
    margin: 0;
    font-family: "Rubik", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Minimal intro */
body.nadlab-intro-page {
    background:
        radial-gradient(circle at 12% 12%, rgba(230, 41, 47, 0.07), transparent 34%),
        radial-gradient(circle at 88% 84%, rgba(17, 18, 20, 0.055), transparent 32%),
        var(--nadlab-entry-bg);
    color: var(--nadlab-entry-ink);
}

.nadlab-intro {
    box-sizing: border-box;
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    padding:
        max(20px, env(safe-area-inset-top))
        clamp(20px, 4vw, 56px)
        max(22px, env(safe-area-inset-bottom));
}

.nadlab-intro__language {
    display: flex;
    justify-content: flex-end;
    position: relative;
    z-index: 4;
}

[dir="rtl"] .nadlab-intro__language {
    justify-content: flex-start;
}

.nadlab-language-badge {
    position: relative;
}

.nadlab-language-badge summary {
    box-sizing: border-box;
    min-width: 74px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 13px;
    border: 1px solid var(--nadlab-entry-line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.74);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: var(--nadlab-entry-ink);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    cursor: pointer;
    list-style: none;
}

.nadlab-language-badge summary::-webkit-details-marker {
    display: none;
}

.nadlab-language-badge__menu {
    position: absolute;
    inset-inline-end: 0;
    top: calc(100% + 8px);
    width: 92px;
    padding: 7px;
    display: grid;
    gap: 3px;
    border: 1px solid var(--nadlab-entry-line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: var(--nadlab-entry-shadow);
}

[dir="rtl"] .nadlab-language-badge__menu {
    inset-inline-end: auto;
    inset-inline-start: 0;
}

.nadlab-language-badge:not([open]) .nadlab-language-badge__menu {
    display: none;
}

.nadlab-language-badge__menu a {
    display: block;
    padding: 8px 10px;
    border-radius: 10px;
    color: var(--nadlab-entry-ink);
    text-align: center;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
}

.nadlab-language-badge__menu a:hover,
.nadlab-language-badge__menu a:focus-visible,
.nadlab-language-badge__menu a[aria-current="page"] {
    background: #f0f0ed;
    outline: none;
}

.nadlab-intro__main {
    width: min(100%, 980px);
    margin: 0 auto;
    align-self: center;
    display: grid;
    justify-items: center;
    text-align: center;
    gap: clamp(32px, 6vh, 58px);
    padding: 42px 0;
}

.nadlab-intro__copy {
    max-width: 900px;
}

.nadlab-intro__copy h1 {
    margin: 0;
    color: var(--nadlab-entry-ink);
    font-size: clamp(38px, 6vw, 82px);
    line-height: 0.98;
    letter-spacing: -0.055em;
    font-weight: 600;
}

.nadlab-intro__copy p {
    max-width: 760px;
    margin: clamp(22px, 3vw, 34px) auto 0;
    color: var(--nadlab-entry-muted);
    font-size: clamp(16px, 1.7vw, 22px);
    line-height: 1.55;
    font-weight: 400;
}

.nadlab-intro__actions {
    width: min(100%, 560px);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.nadlab-intro__action {
    min-height: 58px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 22px;
    border-radius: 16px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.nadlab-intro__action:hover {
    transform: translateY(-1px);
}

.nadlab-intro__action:focus-visible,
.nadlab-intro__site-link a:focus-visible {
    outline: 3px solid rgba(230, 41, 47, 0.24);
    outline-offset: 3px;
}

.nadlab-intro__action--login {
    border: 1px solid var(--nadlab-entry-line);
    background: rgba(255, 255, 255, 0.84);
    color: var(--nadlab-entry-ink);
}

.nadlab-intro__action--explore {
    border: 1px solid var(--nadlab-entry-red);
    background: var(--nadlab-entry-red);
    color: var(--nadlab-entry-white);
    box-shadow: 0 14px 30px rgba(230, 41, 47, 0.20);
}

.nadlab-intro__site-link {
    text-align: center;
}

.nadlab-intro__site-link a {
    color: #74777b;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid rgba(116, 119, 123, 0.38);
}

/* Standalone Agent.
   Keep .page-scroll because current Agent scroll logic already knows it. */
body.nadlab-agent-standalone-page {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background: #101617;
}

body.nadlab-agent-standalone-page > .page-scroll.nadlab-agent-standalone {
    box-sizing: border-box;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scrollbar-gutter: stable;
}

.nadlab-agent-standalone > .nadlab-agent-hub,
.nadlab-agent-standalone > .nadlab-agent-guest {
    box-sizing: border-box;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
}

@media (max-width: 720px) {
    .nadlab-intro {
        padding-inline: 18px;
    }

    .nadlab-intro__main {
        padding-block: 32px;
        gap: 32px;
    }

    .nadlab-intro__copy h1 {
        font-size: clamp(36px, 12vw, 56px);
        line-height: 1.02;
    }

    .nadlab-intro__copy p {
        font-size: 16px;
        line-height: 1.5;
    }

    .nadlab-intro__actions {
        grid-template-columns: 1fr;
    }

    .nadlab-intro__action {
        min-height: 54px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nadlab-intro__action {
        transition: none;
    }
}

/* === NADLAB INTRO CURRENT HERO LOOK STAGE1 V2-R3 START === */

/*
 * Scope every rule to the preview intro.
 * public/agent.php may continue loading the same foundation stylesheet.
 */

html:has(body.nadlab-intro-current-hero) {
  min-height: 100%;
  background: #f5f5f4;
}

body.nadlab-intro-current-hero {
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  color: #0f172a;

  background:
    radial-gradient(
      circle at 0% 0%,
      rgba(225, 29, 47, 0) 0%,
      rgba(225, 29, 47, 0) 20%,
      rgba(225, 29, 47, 0) 45%
    ),
    linear-gradient(
      135deg,
      rgba(243, 244, 246, 0.3) 0%,
      rgba(238, 240, 243, 0.3) 50%,
      rgba(250, 250, 250, 0.3) 100%
    ),
    url("../images/index-background.jpg");

  background-attachment: fixed, fixed, fixed;
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-size: 100% 100%, 100% 100%, cover;
  background-position: left top, center, center;
}

body.nadlab-intro-current-hero .nadlab-intro-current {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 78px minmax(0, 1fr) 48px;
}

body.nadlab-intro-current-hero .nadlab-intro-current__top {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  padding: 14px clamp(18px, 4vw, 64px) 0;
  pointer-events: none;
}

html[dir="rtl"] body.nadlab-intro-current-hero .nadlab-intro-current__top {
  justify-content: flex-start;
}

body.nadlab-intro-current-hero .nadlab-intro-language {
  position: relative;
  pointer-events: auto;
  font-family: Rubik, Inter, Arial, sans-serif;
}

body.nadlab-intro-current-hero .nadlab-intro-language__current {
  min-width: 94px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.045);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #111827;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body.nadlab-intro-current-hero .nadlab-intro-language__current:hover,
body.nadlab-intro-current-hero .nadlab-intro-language__current:focus-visible {
  border-color: rgba(15, 23, 42, 0.24);
  background: rgba(255, 255, 255, 0.98);
}

body.nadlab-intro-current-hero .nadlab-intro-language__flag {
  display: block;
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  border-radius: 50%;
  object-fit: cover;
}

body.nadlab-intro-current-hero .nadlab-intro-language__code {
  min-width: 20px;
  text-align: center;
}

body.nadlab-intro-current-hero .nadlab-intro-language__caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  transform: translateY(-1px);
  transition: transform 0.18s ease;
}

body.nadlab-intro-current-hero .nadlab-intro-language.is-open
  .nadlab-intro-language__caret {
  transform: translateY(-1px) rotate(180deg);
}

body.nadlab-intro-current-hero .nadlab-intro-language__menu {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  z-index: 30;
  min-width: 112px;
  padding: 6px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.14);
  display: grid;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px);
  pointer-events: none;
  transition:
    opacity 0.16s ease,
    visibility 0.16s ease,
    transform 0.16s ease;
}

body.nadlab-intro-current-hero .nadlab-intro-language.is-open
  .nadlab-intro-language__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

body.nadlab-intro-current-hero .nadlab-intro-language__option {
  min-height: 38px;
  padding: 7px 10px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #111827;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

body.nadlab-intro-current-hero .nadlab-intro-language__option:hover,
body.nadlab-intro-current-hero .nadlab-intro-language__option:focus-visible,
body.nadlab-intro-current-hero .nadlab-intro-language__option.is-active {
  background: rgba(225, 29, 47, 0.07);
  color: #b91c2b;
}

body.nadlab-intro-current-hero .nadlab-intro-current__stage {
  width: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px 12px;
}

body.nadlab-intro-current-hero .nadlab-intro-current__hero {
  width: min(100%, 1320px);
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

body.nadlab-intro-current-hero .nadlab-intro-current__copy.help-hub__space-title-wrap {
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  gap: clamp(14px, 2.2svh, 26px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

body.nadlab-intro-current-hero .nadlab-intro-current__copy .help-hub__space-title {
  max-width: 980px;
  margin: 0;
  padding: 0;
  color: #111827;
  font-size: clamp(40px, 4.25vw, 62px);
  font-weight: 750;
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

html[lang="he"] body.nadlab-intro-current-hero
  .nadlab-intro-current__copy .help-hub__space-title {
  max-width: 940px;
  font-size: clamp(42px, 4.4vw, 64px);
  letter-spacing: -0.045em;
}

body.nadlab-intro-current-hero .nadlab-intro-current__copy .help-hub__space-subtitle {
  width: min(1280px, calc(100vw - 48px));
  max-width: 100%;
  margin: 0;
  padding: 0;
  color: #000000;
  font-size: clamp(16px, 1.55vw, 23px);
  font-weight: 400;
  line-height: 1.28;
  text-wrap: balance;
}

@media (min-width: 1320px) {
  body.nadlab-intro-current-hero
    .nadlab-intro-current__copy .help-hub__space-subtitle {
    max-width: none;
    white-space: nowrap;
    text-wrap: nowrap;
  }

  html[lang="fr"] body.nadlab-intro-current-hero
    .nadlab-intro-current__copy .help-hub__space-subtitle {
    font-size: clamp(17px, 1.3vw, 20px);
  }

  html[lang="ru"] body.nadlab-intro-current-hero
    .nadlab-intro-current__copy .help-hub__space-subtitle {
    font-size: clamp(17px, 1.32vw, 20px);
  }
}

body.nadlab-intro-current-hero
  .nadlab-intro-current__selector.help-hub__hero-image {
  margin-top: clamp(38px, 5.2svh, 60px);
}

body.nadlab-intro-current-hero
  .nadlab-intro-current__brand-main.help-hub__hero-image-main {
  padding: 0 8px;
}

body.nadlab-intro-current-hero .nadlab-intro-current__brand-pair {
  width: 100%;
  display: flex;
  direction: ltr;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 1.2vw, 20px);
}

body.nadlab-intro-current-hero
  .nadlab-intro-current__brand-main
  .nadlab-intro-current__brand-logo {
  display: block;
  width: clamp(52px, 4.2vw, 72px);
  max-width: none;
  height: auto;
  flex: 0 0 auto;
  object-fit: contain;
  opacity: 1;
}

body.nadlab-intro-current-hero
  .nadlab-intro-current__brand-main
  .nadlab-intro-current__brand-wordmark {
  display: block;
  width: min(100%, 400px);
  max-width: calc(100% - 72px);
  height: auto;
  flex: 0 1 400px;
  object-fit: contain;
  opacity: 0.78;
}

body.nadlab-intro-current-hero .nadlab-intro-current__character {
  margin-bottom: 0;
}

body.nadlab-intro-current-hero .nadlab-intro-current__bottom {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2px 16px 14px;
}

body.nadlab-intro-current-hero .nadlab-intro-current__site-link {
  color: rgba(15, 23, 42, 0.58);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}

body.nadlab-intro-current-hero .nadlab-intro-current__site-link:hover,
body.nadlab-intro-current-hero .nadlab-intro-current__site-link:focus-visible {
  color: #111827;
}

@media (min-width: 721px) and (max-height: 850px) {
  body.nadlab-intro-current-hero .nadlab-intro-current {
    grid-template-rows: 66px minmax(0, 1fr) 40px;
  }

  body.nadlab-intro-current-hero .nadlab-intro-current__top {
    padding-top: 9px;
  }

  body.nadlab-intro-current-hero
    .nadlab-intro-current__copy .help-hub__space-title {
    font-size: clamp(36px, 5.8svh, 54px);
  }

  html[lang="he"] body.nadlab-intro-current-hero
    .nadlab-intro-current__copy .help-hub__space-title {
    font-size: clamp(38px, 6svh, 56px);
  }

  body.nadlab-intro-current-hero
    .nadlab-intro-current__copy .help-hub__space-subtitle {
    font-size: clamp(15px, 2.25svh, 21px);
  }

  body.nadlab-intro-current-hero
    .nadlab-intro-current__selector.help-hub__hero-image {
    margin-top: clamp(24px, 3.4svh, 38px);
  }

  body.nadlab-intro-current-hero
    .nadlab-intro-current__selector .help-hub__hero-image-action {
    min-height: clamp(62px, 7.2svh, 74px);
  }

  body.nadlab-intro-current-hero
    .nadlab-intro-current__selector .help-hub__hero-character img {
    width: clamp(130px, 10.5vw, 165px);
  }
}

@media (max-width: 720px) {
  body.nadlab-intro-current-hero {
    min-height: 100svh;
    background-attachment: scroll, scroll, scroll;
  }

  body.nadlab-intro-current-hero .nadlab-intro-current {
    min-height: 100svh;
    grid-template-rows: 64px minmax(0, 1fr) 42px;
  }

  body.nadlab-intro-current-hero .nadlab-intro-current__top {
    padding: 9px 42px 0;
  }

  body.nadlab-intro-current-hero .nadlab-intro-language__current {
    min-width: 88px;
    height: 40px;
    padding: 0 12px;
  }

  body.nadlab-intro-current-hero .nadlab-intro-current__stage {
    padding: 0 12px 6px;
    align-items: center;
  }

  body.nadlab-intro-current-hero .nadlab-intro-current__hero {
    justify-content: center;
  }

  body.nadlab-intro-current-hero
    .nadlab-intro-current__copy.help-hub__space-title-wrap {
    padding: 0 2px;
    gap: 14px;
  }

  body.nadlab-intro-current-hero
    .nadlab-intro-current__copy .help-hub__space-title {
    max-width: 100%;
    margin: 0;
    padding: 0;
    font-size: clamp(28px, min(8.2vw, 4.8svh), 35px);
    line-height: 0.98;
    letter-spacing: -0.05em;
  }

  html[lang="he"] body.nadlab-intro-current-hero
    .nadlab-intro-current__copy .help-hub__space-title {
    font-size: clamp(31px, min(9vw, 5.2svh), 38px);
  }

  body.nadlab-intro-current-hero
    .nadlab-intro-current__copy .help-hub__space-subtitle {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 4px;
    font-size: clamp(15px, 4.1vw, 17px);
    line-height: 1.32;
    white-space: normal;
    text-wrap: auto;
  }

  html[lang="he"] body.nadlab-intro-current-hero
    .nadlab-intro-current__copy .help-hub__space-subtitle {
    font-size: clamp(17px, 4.6vw, 19px);
  }

  body.nadlab-intro-current-hero
    .nadlab-intro-current__selector.help-hub__hero-image {
    width: min(88%, 340px);
    margin-top: clamp(28px, 4svh, 42px);
  }

  body.nadlab-intro-current-hero
    .nadlab-intro-current__brand-main.help-hub__hero-image-main,
  html[lang="he"] body.nadlab-intro-current-hero
    .nadlab-intro-current__brand-main.help-hub__hero-image-main {
    padding: 0 4px;
  }

  body.nadlab-intro-current-hero .nadlab-intro-current__brand-pair {
    gap: 8px;
  }

  body.nadlab-intro-current-hero
    .nadlab-intro-current__brand-main
    .nadlab-intro-current__brand-logo {
    width: clamp(38px, 11vw, 48px);
  }

  body.nadlab-intro-current-hero
    .nadlab-intro-current__brand-main
    .nadlab-intro-current__brand-wordmark {
    width: min(72vw, 255px);
    max-width: calc(100% - 52px);
    flex-basis: 255px;
  }

  body.nadlab-intro-current-hero
    .nadlab-intro-current__selector .help-hub__hero-image-action {
    min-height: 46px;
    padding: 5px 8px;
  }

  body.nadlab-intro-current-hero
    .nadlab-intro-current__selector .help-hub__hero-action-button {
    font-size: 15px;
    line-height: 1.1;
  }

  html[lang="he"] body.nadlab-intro-current-hero
    .nadlab-intro-current__selector .help-hub__hero-action-button {
    font-size: 17px;
  }

  body.nadlab-intro-current-hero
    .nadlab-intro-current__selector .help-hub__hero-character {
    margin-top: -20px;
  }

  body.nadlab-intro-current-hero
    .nadlab-intro-current__selector .help-hub__hero-character img {
    width: min(44vw, 150px);
    transform: scale(1);
  }

  body.nadlab-intro-current-hero .nadlab-intro-current__bottom {
    padding: 0 12px 10px;
  }

  body.nadlab-intro-current-hero .nadlab-intro-current__site-link {
    font-size: 12px;
  }
}

@media (max-width: 390px) {
  body.nadlab-intro-current-hero .nadlab-intro-current {
    grid-template-rows: 58px minmax(0, 1fr) 38px;
  }

  body.nadlab-intro-current-hero .nadlab-intro-current__stage {
    padding-inline: 18px;
  }

  body.nadlab-intro-current-hero
    .nadlab-intro-current__selector.help-hub__hero-image {
    width: min(92%, 330px);
    margin-top: 24px;
  }

  body.nadlab-intro-current-hero
    .nadlab-intro-current__copy .help-hub__space-subtitle {
    font-size: 14px;
  }

  body.nadlab-intro-current-hero
    .nadlab-intro-current__brand-main
    .nadlab-intro-current__brand-logo {
    width: 36px;
  }
}

/* === NADLAB INTRO CURRENT HERO LOOK STAGE1 V2-R3 END === */

/* === NADLAB INTRO CTA GUIDANCE RESPONSIVE STAGE1 V2-R4 START === */

/*
 * R4 is intentionally scoped to intro.php only.
 *
 * Desktop:
 * - more air between subtitle and NADLAB branding;
 * - LTR language badge on physical left, HE/RTL on physical right;
 * - short explanations flank the existing GIF.
 *
 * Mobile:
 * - NO vertical repositioning of title/subtitle/brand/buttons/GIF/site-link;
 * - explanations use shorter copy in the same GIF row;
 * - the background image is made more perceptible without moving content;
 * - accessibility launcher is moved away from the CTA row only.
 */

/* LTR badge left; RTL/HE badge right. Applies desktop + mobile. */
body.nadlab-intro-current-hero .nadlab-intro-current__top {
  justify-content: flex-start;
}

html[dir="rtl"] body.nadlab-intro-current-hero .nadlab-intro-current__top {
  justify-content: flex-end;
}

/* CTA label remains the existing button font/size. */
body.nadlab-intro-current-hero
  .nadlab-intro-current__selector .help-hub__hero-action-button {
  white-space: nowrap;
}

/*
 * Keep the exact existing hero-character grid position.
 * Only change the content INSIDE that cell into:
 * guidance | existing GIF | guidance.
 */
body.nadlab-intro-current-hero .nadlab-intro-current__character {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  justify-items: stretch;
  column-gap: clamp(14px, 2vw, 28px);
}

body.nadlab-intro-current-hero .nadlab-intro-current__character-media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

body.nadlab-intro-current-hero .nadlab-intro-current__guidance {
  margin: 0;
  max-width: 210px;
  color: rgba(15, 23, 42, 0.66);
  font-family: Rubik, Inter, Arial, sans-serif;
  font-size: clamp(12px, 0.95vw, 14px);
  font-weight: 500;
  line-height: 1.38;
  text-wrap: balance;
}

body.nadlab-intro-current-hero .nadlab-intro-current__guidance--login {
  justify-self: end;
  display: flex;
  justify-content: flex-end;
  text-align: left;
}

body.nadlab-intro-current-hero .nadlab-intro-current__guidance--login > span {
  inline-size: max-content;
}

body.nadlab-intro-current-hero .nadlab-intro-current__guidance--explore {
  justify-self: start;
  text-align: left;
}

html[dir="rtl"] body.nadlab-intro-current-hero .nadlab-intro-current__guidance {
  direction: rtl;
}

html[dir="rtl"] body.nadlab-intro-current-hero
  .nadlab-intro-current__guidance--login {
  text-align: right;
}

html[dir="rtl"] body.nadlab-intro-current-hero
  .nadlab-intro-current__guidance--explore {
  text-align: right;
}

body.nadlab-intro-current-hero .nadlab-intro-current__guidance-mobile {
  display: none;
}

@media (min-width: 721px) {
  /*
   * Desktop-only extra breathing room requested between subtitle
   * and NADLAB branding. Nothing else is vertically repositioned.
   */
  body.nadlab-intro-current-hero
    .nadlab-intro-current__selector.help-hub__hero-image {
    margin-top: clamp(50px, 6.2svh, 72px);
  }
}

@media (max-width: 720px) {
  /*
   * Keep all existing vertical positions from R3.
   * We therefore do NOT touch:
   * - grid-template-rows of .nadlab-intro-current
   * - stage alignment/padding
   * - hero title/subtitle margins
   * - selector margin-top
   * - character margin-top
   * - bottom/site-link position.
   */

  /* Keep both sides of the desktop image concept perceptible in portrait. */
  body.nadlab-intro-current-hero {
    background-size: 100% 100%, 100% 100%, 100% 100%;
    background-position: left top, center, center;
  }

  body.nadlab-intro-current-hero .nadlab-intro-current__character {
    grid-template-columns:
      minmax(0, 1fr)
      minmax(118px, 44vw)
      minmax(0, 1fr);
    column-gap: 4px;
  }

  body.nadlab-intro-current-hero .nadlab-intro-current__character-media {
    width: 100%;
  }

  body.nadlab-intro-current-hero
    .nadlab-intro-current__character-media img {
    width: min(44vw, 150px);
    max-width: 100%;
    height: auto;
  }

  body.nadlab-intro-current-hero .nadlab-intro-current__guidance {
    width: 100%;
    max-width: 92px;
    padding-inline: 2px;
    color: rgba(15, 23, 42, 0.68);
    font-size: clamp(9px, 2.45vw, 11px);
    font-weight: 550;
    line-height: 1.18;
    text-wrap: balance;
  }

  body.nadlab-intro-current-hero .nadlab-intro-current__guidance-desktop {
    display: none;
  }

  body.nadlab-intro-current-hero .nadlab-intro-current__guidance-mobile {
    display: inline;
  }

  body.nadlab-intro-current-hero
    .nadlab-intro-current__guidance--login > .nadlab-intro-current__guidance-mobile {
    inline-size: min-content;
  }

  /*
   * Accessibility stays available and on the same physical edge,
   * but moves below the CTA band so it cannot cover either button.
   * Main intro content is not moved.
   */
  body.nadlab-intro-current-hero .nadlab-a11y-launcher {
    top: 74% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
  }
}

@media (max-width: 390px) {
  body.nadlab-intro-current-hero .nadlab-intro-current__character {
    grid-template-columns:
      minmax(0, 1fr)
      minmax(112px, 42vw)
      minmax(0, 1fr);
    column-gap: 2px;
  }

  body.nadlab-intro-current-hero .nadlab-intro-current__guidance {
    max-width: 78px;
    font-size: 9px;
    line-height: 1.15;
  }
}


/*
 * Catches-house GIF guidance-only cue.
 * Buttons remain completely stationary.
 * JS assigns the class to the actual physical-left / physical-right guidance.
 */
body.nadlab-intro-current-hero
  .nadlab-intro-current__character > .nadlab-intro-current__guidance {
  transition: transform 180ms ease;
}

body.nadlab-intro-current-hero
  .nadlab-intro-current__character
  > .nadlab-intro-current__guidance.is-nadlab-intro-guidance-cue {
  transform: translateY(-4px);
}

@media (prefers-reduced-motion: reduce) {
  body.nadlab-intro-current-hero
    .nadlab-intro-current__character > .nadlab-intro-current__guidance {
    transition: none;
  }

  body.nadlab-intro-current-hero
    .nadlab-intro-current__character
    > .nadlab-intro-current__guidance.is-nadlab-intro-guidance-cue {
    transform: none;
  }
}

/* === NADLAB INTRO CTA GUIDANCE RESPONSIVE STAGE1 V2-R4 END === */

/* === NADLAB INTRO RTL PHYSICAL CTA + LANGUAGE BADGE V2-R4-R3 START === */

/*
 * Keep the canonical hero button geometry untouched.
 *
 * Language badge:
 * .nadlab-intro-current__top inherits document direction.
 * With the existing row-oriented flex layout:
 *   LTR flex-start = physical left
 *   RTL flex-start = physical right
 *
 * R4's RTL flex-end therefore placed the badge on the physical left.
 * This late, intro-only override restores the requested physical side.
 */
html[dir="rtl"] body.nadlab-intro-current-hero .nadlab-intro-current__top,
html[lang="he"] body.nadlab-intro-current-hero .nadlab-intro-current__top {
  justify-content: flex-start;
}

/* === NADLAB INTRO RTL PHYSICAL CTA + LANGUAGE BADGE V2-R4-R3 END === */

/* === NADLAB INTRO MOBILE GLOW + CTA SURFACE + BACKGROUND + A11Y V2-R4-R6 START === */

/*
 * Mobile-only visual refinement.
 *
 * Intentionally DOES NOT change:
 * - CTA order, CTA corner geometry, borders or dimensions
 * - title/subtitle/brand/CTA/GIF/site-link vertical positions
 * - desktop appearance
 * - routing, auth, Agent or page markup
 */

@media (max-width: 720px) {

  /*
   * Relax the listing-map image slightly on the horizontal axis.
   * First two gradient layers stay unchanged.
   * The image layer is widened only 8% and biased toward physical right,
   * bringing a little more of the sea/map back into the physical left edge.
   */
  body.nadlab-intro-current-hero {
    background-size: 100% 100%, 100% 100%, 120% 100%;
    background-position: left top, center, 24% center;
  }

  /*
   * Stronger soft-grey halo against the photographic background.
   * Uses the same grey family already present in the center overlay.
   */
  body.nadlab-intro-current-hero
    .nadlab-intro-current__copy .help-hub__space-title,
  body.nadlab-intro-current-hero
    .nadlab-intro-current__copy .help-hub__space-subtitle,
  body.nadlab-intro-current-hero
    .nadlab-intro-current__guidance {
    text-shadow:
      0 0 4px rgba(238, 240, 243, 1),
      0 0 10px rgba(238, 240, 243, 0.99),
      0 0 18px rgba(238, 240, 243, 0.96),
      0 0 28px rgba(238, 240, 243, 0.86);
  }

  /*
   * Initial CTA surface only.
   * Existing red contour and canonical button geometry remain untouched.
   */
  body.nadlab-intro-current-hero
    .nadlab-intro-current__selector
    .help-hub__hero-image-action:not(:hover):not(:focus-visible):not(:active) {
    background-color: rgba(238, 240, 243, 0.92);
  }

  /*
   * Accessibility launcher beside the language badge, intro/mobile only.
   */
  body.nadlab-intro-current-hero .nadlab-a11y-launcher {
    top: 9px !important;
    bottom: auto !important;
    transform: none !important;
  }

  html:not([dir="rtl"])
    body.nadlab-intro-current-hero .nadlab-a11y-launcher {
    right: auto !important;
  }

  html[dir="rtl"]
    body.nadlab-intro-current-hero .nadlab-a11y-launcher,
  html[lang="he"]
    body.nadlab-intro-current-hero .nadlab-a11y-launcher {
    left: auto !important;
  }
}

/* === NADLAB INTRO MOBILE GLOW + CTA SURFACE + BACKGROUND + A11Y V2-R4-R6 END === */

/* === NADLAB INTRO MOBILE BRAND + FULL GUIDANCE + CHARACTER OFFSET V2-R4-R7 START === */

/*
 * Mobile-only refinement on top of R6.
 *
 * Requested:
 * - slightly smaller NADLAB brand image;
 * - full guidance copy on mobile, with a larger font;
 * - hero character/guidance row slightly lower.
 *
 * Does NOT change CTA order/shape, background, glow, language badge,
 * accessibility, desktop layout, or routing.
 */

@media (max-width: 720px) {

  /* Slightly smaller complete NADLAB brand pair. */
  body.nadlab-intro-current-hero
    .nadlab-intro-current__brand-main
    .nadlab-intro-current__brand-logo {
    width: clamp(34px, 9.8vw, 43px);
  }

  body.nadlab-intro-current-hero
    .nadlab-intro-current__brand-main
    .nadlab-intro-current__brand-wordmark {
    width: min(66vw, 235px);
    max-width: calc(100% - 48px);
    flex-basis: 235px;
  }

  /*
   * Use the complete desktop guidance copy on mobile.
   * The short mobile copy remains in markup but is hidden.
   */
  body.nadlab-intro-current-hero .nadlab-intro-current__guidance-desktop {
    display: inline;
  }

  body.nadlab-intro-current-hero .nadlab-intro-current__guidance-mobile {
    display: none;
  }

  body.nadlab-intro-current-hero .nadlab-intro-current__guidance {
    max-width: 112px;
    padding-inline: 3px;
    font-size: clamp(13px, 3.4vw, 15px);
    line-height: 1.25;
  }

  /*
   * R3 placed this row at -20px.
   * -8px moves it 12px downward while keeping the same document flow.
   */
  body.nadlab-intro-current-hero
    .nadlab-intro-current__selector .help-hub__hero-character {
    margin-top: -8px;
  }
}

@media (max-width: 390px) {
  body.nadlab-intro-current-hero
    .nadlab-intro-current__brand-main
    .nadlab-intro-current__brand-logo {
    width: 33px;
  }

  body.nadlab-intro-current-hero
    .nadlab-intro-current__brand-main
    .nadlab-intro-current__brand-wordmark {
    width: min(64vw, 220px);
    max-width: calc(100% - 45px);
    flex-basis: 220px;
  }

  body.nadlab-intro-current-hero .nadlab-intro-current__guidance {
    max-width: 90px;
    font-size: 12px;
    line-height: 1.22;
  }

  body.nadlab-intro-current-hero
    .nadlab-intro-current__selector .help-hub__hero-character {
    margin-top: -6px;
  }
}

/* === NADLAB INTRO MOBILE BRAND + FULL GUIDANCE + CHARACTER OFFSET V2-R4-R7 END === */

/* === NADLAB INTRO MOBILE DISTINCT GUIDANCE COPY V2-R4-R8 START === */
@media (max-width: 720px) {
  body.nadlab-intro-current-hero .nadlab-intro-current__guidance-desktop {
    display: none;
  }

  body.nadlab-intro-current-hero .nadlab-intro-current__guidance-mobile {
    display: inline;
  }
}
/* === NADLAB INTRO MOBILE DISTINCT GUIDANCE COPY V2-R4-R8 END === */
