/* Shared marketing-page rhythm (matches homepage Grok-inspired style) */

.pg-hero {
  text-align: center;
  padding: clamp(2.2rem, 7vw, 4rem) 0 clamp(1.4rem, 4vw, 2.2rem);
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(1.2rem, 3vw, 1.8rem);
}
.pg-hero .pg-eyebrow,
.pg-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 0.92rem;
  font: 500 0.78rem var(--font-text);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.pg-hero .pg-eyebrow::before,
.pg-hero .pg-eyebrow::after,
.pg-hero .eyebrow::before,
.pg-hero .eyebrow::after {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--line-strong);
}
.pg-hero h1 {
  max-width: 16ch;
  margin-inline: auto;
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.05em;
}
.pg-hero h1 span {
  color: var(--accent);
}
.pg-hero .lead,
.pg-hero .pg-sub {
  max-width: 38rem;
  margin: 0.8rem auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.6;
}
.pg-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 11px;
  margin-top: 1.4rem;
}

/* Global pill buttons (sitewide) */
.hm-btn,
.pg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  font: 600 0.92rem var(--font-text);
  letter-spacing: -0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s, border-color 0.15s, filter 0.15s;
}
.hm-btn:hover,
.pg-btn:hover {
  transform: translateY(-1px);
}
.hm-btn-primary,
.pg-btn-primary {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.hm-btn-primary:hover,
.pg-btn-primary:hover {
  filter: brightness(1.08);
}
.hm-btn-ghost,
.pg-btn-ghost {
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  color: var(--ink);
  border-color: var(--line-strong);
}
.hm-btn-ghost:hover,
.pg-btn-ghost:hover {
  background: var(--surface-2);
  border-color: var(--muted);
}

/* Soften default .button toward pills */
.button {
  border-radius: 999px;
  min-height: 44px;
  padding: 0 16px;
}
.button-quiet {
  border-radius: 999px;
}

/* Page layout heads (articles via page layout, policy pages) */
.page-head {
  text-align: center;
  padding-bottom: 1.2rem;
  margin-bottom: 1.4rem;
  border-bottom: 1px solid var(--line);
}
.page-head h1 {
  max-width: 18ch;
  margin-inline: auto;
  font-size: clamp(2.3rem, 5.5vw, 3.6rem);
  letter-spacing: -0.05em;
}
.page-head .lead {
  margin-inline: auto;
  max-width: 40rem;
}

/* Articles listing extras */
.articles-page .topic-pills {
  justify-content: center;
  margin-bottom: 1rem;
}
.articles-page .content-discovery {
  max-width: 40rem;
  margin-inline: auto;
  margin-bottom: 1.4rem;
}

/* Stories listing — match hero */
.stories-listing-head {
  text-align: center;
  padding: clamp(2rem, 6vw, 3.6rem) 0 1.6rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.4rem;
}
.stories-listing-head-inner {
  max-width: 40rem;
  margin-inline: auto;
}
.stories-listing-head h1 {
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  letter-spacing: -0.05em;
  line-height: 1.05;
}
.stories-listing-head .lead {
  margin: 0.8rem auto 0;
  max-width: 36rem;
  color: var(--muted);
}
.stories-listing-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 11px 22px;
  margin-top: 1.4rem;
}
.stories-listing-stat {
  text-align: center;
}
.stories-listing-stat strong {
  display: block;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.stories-listing-stat span {
  font-size: 0.82rem;
  color: var(--muted);
}

/* Courses hub */
.courses-hub-head {
  text-align: center;
  padding: clamp(2rem, 6vw, 3.2rem) 0 1.6rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.6rem;
}
.courses-hub-title {
  max-width: 18ch;
  margin-inline: auto;
  font-size: clamp(2.3rem, 5.5vw, 3.5rem) !important;
  letter-spacing: -0.05em;
  line-height: 1.05;
}
.courses-hub-lead {
  max-width: 40rem;
  margin: 0.8rem auto 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}
.learn-explorer {
  text-align: center;
  margin-bottom: 1.6rem;
}
.learn-explorer-copy {
  margin-bottom: 1rem;
}
.learn-explorer-copy h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.04em;
}
.learn-search-box {
  max-width: 28rem;
  margin-inline: auto;
}

/* Products page hero polish */
.launches-cat-hero {
  text-align: center;
  padding-block: clamp(1.5rem, 4vw, 2.5rem) !important;
}
.launches-cat-hero-row {
  flex-direction: column !important;
  align-items: center !important;
  text-align: center;
  gap: 1.25rem !important;
}
.launches-cat-heading {
  font-size: clamp(2.1rem, 5vw, 3.25rem) !important;
  letter-spacing: -0.05em;
  line-height: 1.08;
  max-width: 18ch;
  margin-inline: auto;
}
.launches-cat-sub {
  max-width: 36rem;
  margin-inline: auto;
  color: var(--muted);
}
.lcat-hero-submit-btn {
  border-radius: 999px !important;
  min-height: 46px;
  padding-inline: 18px;
}
.launches-cat-time-row {
  justify-content: center !important;
}

@media (max-width: 700px) {
  .pg-hero h1,
  .page-head h1,
  .stories-listing-head h1,
  .courses-hub-title {
    font-size: clamp(1.95rem, 8vw, 2.6rem);
  }
  .pg-actions {
    flex-direction: column;
    align-items: center;
  }
  .hm-btn,
  .pg-btn {
    width: 100%;
    max-width: 280px;
  }
}
