/* ==========================================================================
   JazPiper shared components — Homepage-local working layer
   Semantic typography below mirrors the established PRO X implementation.
   ========================================================================== */

.jp-site-main {
  width: 100%;
  min-height: 100vh;
}

.jp-site-stage {
  width: min(var(--jp-stage), calc(100% - (var(--jp-page-gutter) * 2)));
  margin-inline: auto;
}

.jp-site-container {
  width: min(var(--jp-content), calc(100% - (var(--jp-page-gutter) * 2)));
  margin-inline: auto;
}

.jp-site-section {
  position: relative;
  width: 100%;
}

/* ---------- PRO X semantic typography roles ---------- */

.jp-site-system-page .jp-role-major-title {
  font-size: var(--jp-h1) !important;
  line-height: var(--jp-h1-line) !important;
  font-weight: 800 !important;
  letter-spacing: -.02em !important;
}

.jp-site-system-page .jp-role-secondary-title {
  font-size: var(--jp-h2) !important;
  line-height: var(--jp-h2-line) !important;
  font-weight: 700 !important;
  letter-spacing: -.015em !important;
}

.jp-site-system-page .jp-role-tertiary-title,
.jp-site-system-page .jp-role-hero-subtitle {
  font-size: var(--jp-h3) !important;
  line-height: var(--jp-h3-line) !important;
  font-weight: 700 !important;
  letter-spacing: -.01em !important;
}

.jp-site-system-page .jp-role-feature-title {
  font-size: var(--jp-h4) !important;
  line-height: var(--jp-h4-line) !important;
  font-weight: 600 !important;
  letter-spacing: -.005em !important;
}

.jp-site-system-page .jp-role-primary-copy {
  font-size: var(--jp-body-l) !important;
  line-height: var(--jp-body-l-line) !important;
  font-weight: 400 !important;
}

.jp-site-system-page .jp-role-supporting-copy {
  font-size: var(--jp-body-support) !important;
  line-height: var(--jp-body-support-line) !important;
  font-weight: 400 !important;
}

.jp-site-system-page .jp-role-body-copy {
  font-size: var(--jp-body-m) !important;
  line-height: var(--jp-body-m-line) !important;
  font-weight: 400 !important;
}

.jp-site-system-page .jp-role-label {
  font-size: var(--jp-label) !important;
  line-height: var(--jp-label-line) !important;
  font-weight: 500 !important;
}

.jp-site-copy {
  color: var(--jp-muted);
  font-size: var(--jp-body-m);
  line-height: var(--jp-body-m-line);
}

.jp-site-copy--large {
  font-size: var(--jp-body-l);
  line-height: var(--jp-body-l-line);
}

.jp-site-media {
  position: relative;
  overflow: hidden;
  background: #111;
}

.jp-site-media img,
.jp-site-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jp-site-button {
  min-height: 48px;
  padding: 0 var(--jp-space-24);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--jp-space-8);
  border: 1px solid currentColor;
  border-radius: 999px;
  background: transparent;
  text-decoration: none;
  cursor: pointer;
}

.jp-site-text-link {
  display: inline-flex;
  align-items: center;
  gap: var(--jp-space-8);
  text-decoration: none;
  font-weight: 600;
}

.jp-site-button,
.jp-site-text-link {
  transition:
    opacity var(--jp-motion-fast),
    background-color var(--jp-motion-fast),
    border-color var(--jp-motion-fast),
    transform var(--jp-motion-fast);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

@media (hover: hover) and (pointer: fine) {
  .jp-site-text-link:hover {
    opacity: var(--jp-hover-opacity);
  }

  .jp-site-button:hover {
    opacity: .86;
  }
}

.jp-site-button:active,
.jp-site-text-link:active {
  opacity: .58;
}

.jp-site-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
