/* =========================================================================
   HesseLab B2B — Learn More page styles
   ISOLATION CONTRACT:
   - Every rule is namespaced under the `lm-` block prefix (or `.learn-more-page`).
   - Shared tokens / header / footer are reused — never overridden here.
   - Mobile-first; tablet (>=768px) and desktop (>=1025px) layer up below.
   Source: Figma Learn More node 1819:2641
   ========================================================================= */

.learn-more-page {
  --lm-max: var(--content-max);
  --lm-cream: #f2ebe3;
  --lm-panel: #f5f5f5;
  --lm-card-border: #e8e4de;
}

.learn-more-page
  :where(
    .lm-intro,
    .lm-stats,
    .lm-split,
    .lm-support,
    .lm-products,
    .lm-connect
  )
  > [class$="__container"] {
  width: min(100% - 2 * var(--page-x), var(--lm-max));
  margin-inline: auto;
}

/* ================================= HERO ================================= */
.lm-hero {
  position: relative;
  min-height: 240px;
  overflow: hidden;
}

.lm-hero__img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.lm-hero__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 var(--page-x);
  background: rgb(0 0 0 / 30%);
}

.lm-hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.2;
  color: var(--color-white);
  text-align: center;
}

.lm-hero__subtitle {
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-white);
  text-align: center;
}

/* ================================= INTRO ================================ */
.lm-intro {
  background: var(--color-white);
  padding: 48px 15px;
}

.lm-intro__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
  max-width: 944px;
  margin-inline: auto;
}

.lm-intro__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.25;
  color: var(--color-heading);
}

.lm-intro__text {
  font-size: 15px;
  line-height: 1.4;
  color: #555555;
}

/* ================================= STATS ================================ */
/* Mobile/tablet: one card at a time (Swiper). Desktop: three-up row. */
.lm-stats {
  background: var(--color-white);
  padding: 0 0 48px;
}

.lm-stats__swiper {
  overflow: hidden;
}

.lm-stats__track {
  margin: 0;
  padding: 0;
  list-style: none;
  align-items: stretch;
}

/* Fixed equal height is applied in JS (tallest card). Keep slides stretchable
   so measurement is accurate before the lock. */
.learn-more-page .lm-stats .swiper-slide.lm-stat {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: auto;
  box-sizing: border-box;
  padding: 32px 24px;
  background: var(--color-white);
  border: 1px solid var(--lm-card-border);
  border-radius: 4px;
}

.lm-stats__pagination {
  position: static;
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 28px;
}

.lm-stats__pagination .swiper-pagination-bullet {
  width: 16px;
  height: 2px;
  border-radius: 0;
  background: var(--color-brand);
  opacity: 0.3;
  transition: opacity var(--transition-base);
}

.lm-stats__pagination .swiper-pagination-bullet-active {
  opacity: 1;
}

.lm-stat__icon {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex: 0 0 auto;
}

.lm-stat__value {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  flex: 0 0 auto;
}

/* Figma NumberCounter: Playfair Regular — fixed digit slots so counting
   never reflows the label / card layout. */
.lm-stat__number {
  display: inline-flex;
  align-items: baseline;
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  line-height: 1;
  color: var(--color-heading);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.lm-stat__count {
  display: inline-block;
  flex: 0 0 auto;
  /* Width is locked in JS to the final digit string (incl. leading zeros). */
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.lm-stat__suffix {
  display: inline-block;
  flex: 0 0 auto;
}

/* Figma: Playfair SemiBold 24px beside the counter */
.lm-stat__label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.33;
  color: var(--color-heading);
  flex: 0 1 auto;
}

.lm-stat__text {
  margin: 0;
  padding-top: 8px;
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.625;
  color: var(--color-body);
  /* Pin body copy to the bottom so equal-height cards stay balanced. */
}

/* ============================ TASKS / BENEFITS ========================== */
.lm-split {
  background: var(--lm-panel);
  padding: 48px 0;
}

.lm-split__banner {
  margin: 0 0 20px;
  overflow: hidden;
}

.lm-split__banner-img {
  display: block;
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.lm-split__panels {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  padding: 20px;
  background: var(--lm-cream);
}

.lm-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 20px;
  background: var(--color-white);
}

.lm-panel__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.3;
  color: var(--color-heading);
  text-transform: capitalize;
}

.lm-checklist {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lm-checklist__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.lm-checklist__icon {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  margin-top: 1px;
}

.lm-checklist__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.lm-checklist__title {
  font-size: 16px;
  line-height: 1.4;
  color: #3f3f3f;
}

.lm-checklist__text {
  font-size: 14px;
  line-height: 1.4;
  color: #3f3f3f;
}

.lm-panel__note {
  margin-top: auto;
  font-size: 16px;
  line-height: 1.4;
  color: #3f3f3f;
}

/* =============================== SUPPORT ================================ */
.lm-support {
  background: var(--lm-cream);
  padding: 48px 0;
}

.lm-support__container {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.lm-support__img {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.lm-support__cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 15px;
}

.lm-support-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
}

.lm-support-card__icon {
  display: block;
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.lm-support-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.3;
  color: #000000;
}

.lm-support-card__text {
  font-size: 16px;
  line-height: 1.4;
  color: var(--color-body);
}

/* =============================== PRODUCTS =============================== */
.lm-products {
  background: var(--color-white);
  padding: 48px 0;
}

.lm-products__intro {
  text-align: center;
  margin-bottom: 32px;
}

.lm-products__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.2;
  color: #000000;
}

.lm-products__subtitle {
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-body);
}

.lm-products__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.lm-products__copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

.lm-products__heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.3;
  color: #000000;
}

.lm-products__text {
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-body);
}

.lm-feature-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lm-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 16px 20px;
  background: var(--lm-panel);
}

.lm-feature__icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.lm-feature__label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.3;
  color: #000000;
}

.lm-products__media {
  position: relative;
  min-height: 320px;
}

.lm-products__img {
  display: block;
  object-fit: cover;
}

.lm-products__img--main {
  width: 100%;
  height: 280px;
}

.lm-products__img--inset {
  width: 70%;
  max-width: 280px;
  height: 180px;
  margin-top: -48px;
  margin-left: 0;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-card);
}

/* =============================== CONNECT ================================ */
.lm-connect {
  background: var(--lm-cream);
  padding: 48px 0;
}

.lm-connect__container {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.lm-connect__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.2;
  color: #000000;
}

.lm-connect__text {
  margin-top: 24px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-body);
}

.lm-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 32px 24px;
  background: var(--color-white);
}

.lm-form__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
  color: #000000;
  text-align: center;
  text-transform: capitalize;
}

.lm-form__embed {
  width: 100%;
}

/* =========================================================================
   TABLET (>=768px)
   Spacing / hero height only — multi-column layouts stay stacked until
   desktop, matching About / Career / Knowledge tablet behaviour.
   ========================================================================= */
@media (min-width: 768px) {
  .lm-hero {
    min-height: 360px;
  }

  .lm-hero__img {
    height: 360px;
  }

  .lm-intro,
  .lm-split,
  .lm-support,
  .lm-products,
  .lm-connect {
    padding: 72px 0;
  }

  .lm-stats {
    padding: 0 0 72px;
  }

  .lm-stat,
  .learn-more-page .lm-stats .swiper-slide.lm-stat {
    padding: 36px 28px;
  }

  .lm-split__banner-img {
    height: 420px;
  }

  .lm-split__panels {
    gap: 20px;
    padding: 24px;
  }

  .lm-support__img {
    height: 420px;
  }

  .lm-products__img--main {
    height: 360px;
  }

  .lm-products__img--inset {
    width: 55%;
    max-width: 320px;
    height: 220px;
    margin-top: -56px;
  }

  .lm-form {
    padding: 40px 36px;
  }
}

/* =========================================================================
   TABLET ONLY (768px–1024px)
   Stack image + copy / two-column bands like About, Career, Knowledge.
   Desktop (>=1025px) layouts below are left unchanged.
   ========================================================================= */
@media (min-width: 768px) and (max-width: 1024px) {
  .lm-intro__container {
    max-width: 720px;
  }

  /* Tasks / benefits: keep two cards side-by-side (same idea as career vacancy). */
  .lm-split__panels {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px;
    padding: 24px;
  }

  /* Support, products, connect — single column, image above copy. */
  .lm-support__container,
  .lm-products__layout,
  .lm-connect__container {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .lm-support__cards {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px;
  }

  .lm-support__img {
    height: 460px;
  }

  .lm-products__media {
    order: -1;
    min-height: 0;
  }

  .lm-products__img--main {
    width: 100%;
    margin-left: 0;
    height: 420px;
  }

  .lm-products__img--inset {
    position: relative;
    left: auto;
    bottom: auto;
    width: 55%;
    max-width: 300px;
    height: 220px;
    margin: -64px 0 0 var(--page-x);
  }

  .lm-products__copy {
    align-items: stretch;
  }

  .lm-connect__copy {
    text-align: left;
  }
}

/* =========================================================================
   DESKTOP (>=1025px)
   ========================================================================= */
@media (min-width: 1025px) {
  .lm-hero {
    min-height: 350px;
  }

  .lm-hero__img {
    height: 350;
  }

  .lm-intro,
  .lm-split,
  .lm-support,
  .lm-products,
  .lm-connect {
    padding: 80px 0;
  }

  .lm-stats {
    padding: 0 0 80px;
  }

  .learn-more-page .lm-stats .swiper-slide.lm-stat {
    padding: 30px 20px;
  }

  /* Desktop shows all three cards — hide the mobile/tablet dots. */
  .lm-stats__pagination {
    display: none;
  }

  .lm-split__banner-img {
    height: 510px;
  }

  .lm-split__panels {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 30px;
    padding: 30px;
  }

  .lm-support__container {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 30px;
    align-items: center;
  }

  .lm-support__img {
    height: 325px;
  }

  .lm-support__cards {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .lm-products__intro {
    margin-bottom: 48px;
  }

  .lm-products__layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 48px;
    align-items: center;
  }

  .lm-products__media {
    order: 0;
    min-height: 420px;
  }

  .lm-products__img--main {
    width: 78%;
    margin-left: auto;
    height: 360px;
  }

  .lm-products__img--inset {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 48%;
    max-width: 320px;
    height: 240px;
    margin: 0;
  }

  .lm-connect__container {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
  }

  .lm-form {
    padding: 40px;
  }
}

/* =========================================================================
   MOBILE ONLY refinements
   ========================================================================= */
@media (max-width: 767px) {
  .learn-more-page .lm-split > .lm-split__container {
    width: 100%;
  }

  .lm-split__banner {
    margin-inline: 0;
  }

  .lm-split__panels {
    margin-inline: var(--page-x);
  }

  .lm-stat__count {
    text-align: left;
  }
}
