/* ============================================================
   Landing Page — feature hero (text column + featured image
   with overlay card). Layer-2 semantic tokens + .ts-* only.
   BEM root: .lp-hero
   ============================================================ */

.lp-hero {
  position: relative;
  width: 100%;
  background: var(--surface-page);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: stretch;
}

/* ── Text column ───────────────────────────────────────────── */
.lp-hero__content {
  flex: 1 1 0;
  position: relative;
  z-index: 1;
  background: var(--surface-page);
  padding: var(--spacing-12xl) var(--spacing-8xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

/* Dot-grid pattern across the top, fading out downward */
.lp-hero__content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  /* 4 rows only: 24px grid → rows at 12/36/60/84, clipped at 90px */
  height: 90px;
  background-image: radial-gradient(var(--icon-muted) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: 0 12px;
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
}

.lp-hero__text {
  position: relative;
  z-index: 1;
  max-width: 525px;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-3xl);
}

.lp-hero__title {
  color: var(--text-primary);
}

.lp-hero__lead {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Media column ──────────────────────────────────────────── */
.lp-hero__media {
  flex: 1 1 0;
  position: relative;
  z-index: 1;
  min-height: 561px;
  align-self: stretch;
  overflow: hidden;
}

.lp-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Overlay featured card */
.lp-hero__card {
  position: absolute;
  left: 40%;
  bottom: 0;
  width: 320px;
  max-width: calc(100% - var(--spacing-3xl));
  padding: var(--spacing-3xl) var(--spacing-3xl) var(--spacing-8xl) 32px;
  background: var(--surface-overlay-soft);
  border-left: 4px solid var(--border-nav);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-3xl);
}

.lp-hero__card-head {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.lp-hero__card-title {
  color: var(--text-primary);
  line-height: 1.2;
}

.lp-hero__card-desc {
  color: var(--text-primary);
  line-height: 1.5;
}

.lp-hero__card-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  color: var(--text-primary);
}

.lp-hero__card-cta:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

.lp-hero__card-cta:focus-visible {
  outline: 2px solid var(--text-brand);
  outline-offset: 4px;
  border-radius: 2px;
}

.lp-hero__card-cta-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--icon-default);
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .lp-hero {
    flex-direction: column;
  }

  .lp-hero__content {
    padding: var(--spacing-8xl) var(--spacing-3xl);
  }

  .lp-hero__media {
    width: 100%;
    min-height: 560px;
  }

  /* card stays overlaid on the image bottom, inset from the left */
  .lp-hero__card {
    left: var(--spacing-3xl);
    right: 0;
    bottom: 0;
    width: auto;
    max-width: none;
  }
}
