/* Landing-page hero typography and polish.
   Scoped to the landing site only — sub-sites use Material defaults. */

/* Hero page title. The markdown H1 holds the Kneo Agent wordmark image
   (alt="Kneo Agent" so the page <title> in the browser tab is still
   correct). Height is set to match the cap-height of the prior 3.5rem
   text heading. */
.md-typeset h1:first-of-type {
  text-align: center;
  margin: 2.5rem auto 0.75rem;
  line-height: 1;
}

.md-typeset h1:first-of-type img.hero-wordmark {
  height: 3.5rem;
  width: auto;
  display: inline-block;
  vertical-align: middle;
}

/* Subtitle: the paragraph immediately following the page H1. */
.md-typeset h1:first-of-type + p {
  font-size: 1.25rem;
  line-height: 1.55;
  text-align: center;
  max-width: 44rem;
  margin: 0 auto 3rem;
  color: var(--md-default-fg-color--light);
}

/* Tighten the gap above the card grid and give it room to breathe. */
.md-typeset .grid.cards {
  margin: 0 auto 2rem;
}

/* Card polish: subtle lift on hover, softer borders. */
.md-typeset .grid.cards > ul > li,
.md-typeset .grid > .card {
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 0.5rem;
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.md-typeset .grid.cards > ul > li:hover,
.md-typeset .grid > .card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  border-color: var(--md-primary-fg-color--light);
}

/* Header logo: keep proportions reasonable for a wide wordmark. */
.md-header__button.md-logo img {
  height: 1.5rem;
  width: auto;
}

/* Product wordmark injected by hooks/header_link.py in place of the
   site-title text. Height tuned so the cap-height of "K" in "Kneo"
   matches the cap-height of "K" in the company logo (both ~21px) —
   the Kneron logo image has its text filling ~88% of its height while
   this wordmark's text fills ~62%, so the wordmark needs a taller
   CSS height to compensate. */
.md-header__wordmark {
  height: 1.5rem;
  width: auto;
  vertical-align: middle;
  display: inline-block;
}

/* Responsive: scale the hero down on smaller screens. */
@media (max-width: 48rem) {
  .md-typeset h1:first-of-type {
    margin-top: 1.5rem;
  }
  .md-typeset h1:first-of-type img.hero-wordmark {
    height: 2.5rem;
  }
  .md-typeset h1:first-of-type + p {
    font-size: 1.05rem;
    margin-bottom: 2rem;
  }
}
