/* ========================
   Home Mobile Stack Hub
   Scoped to .home-mobile-stack-hub-section — does not share stack-hub.css
 centered title → media → description → full-width coral CTA
   ======================== */

.home-mobile-stack-hub-section {
  background-color: var(--body-bg);
}

.home-mobile-stack-hub-section.section-base,
.home-mobile-stack-hub-section.section-base-with-border {
  background-color: var(--body-bg);
  padding-top: 0;
  padding-bottom: 0;
}

.home-mobile-stack-hub-section .home-mobile-stack-hub {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-9); /* 20px */
  width: 100%;
  margin-inline: 0;
  padding-block: var(--space-14); /* ~32px */
  padding-inline: 0;
  text-align: center;
}

/* Optional logo above the title */
.home-mobile-stack-hub-section .home-mobile-stack-hub-top-image {
  display: block;
  align-self: center;
  width: auto;
  max-width: 11.5rem;
  line-height: 0;
}

.home-mobile-stack-hub-section .home-mobile-stack-hub-top-image img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 2.5rem;
  object-fit: contain;
  object-position: center;
  margin-inline: auto;
}

/* Title — mint strong/bold, white body; always centered */
.home-mobile-stack-hub-section .home-mobile-stack-hub-title {
  width: 100%;
  max-width: 22rem;
  margin: 0;
  text-align: center !important;
  color: var(--bs-white);
  font-family: var(--font-family-base);
  font-size: var(--font-size-24); /* text-2xl */
  font-weight: var(--font-weight-regular);
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.home-mobile-stack-hub-section .home-mobile-stack-hub-title strong,
.home-mobile-stack-hub-section .home-mobile-stack-hub-title b {
  color: var(--bs-primary-100);
  font-weight: var(--font-weight-bold);
}

.home-mobile-stack-hub-section .home-mobile-stack-hub-title *,
.home-mobile-stack-hub-section .home-mobile-stack-hub-title p {
  margin: 0;
  text-align: center !important;
  color: inherit;
  font: inherit;
  line-height: inherit;
}

.home-mobile-stack-hub-section .home-mobile-stack-hub-title p strong,
.home-mobile-stack-hub-section .home-mobile-stack-hub-title p b {
  color: var(--bs-primary-100);
  font-weight: var(--font-weight-bold);
}

/* Tagline (if used) */
.home-mobile-stack-hub-section .home-mobile-stack-hub-tagline {
  width: 100%;
  max-width: 22rem;
  margin: 0;
  text-align: center !important;
  color: var(--bs-primary-100);
  font-family: var(--font-family-base);
  font-size: var(--font-size-14);
  font-weight: var(--font-weight-regular);
  line-height: 1.4;
}

.home-mobile-stack-hub-section .home-mobile-stack-hub-tagline *,
.home-mobile-stack-hub-section .home-mobile-stack-hub-tagline p {
  margin: 0;
  text-align: center !important;
  color: inherit;
  font: inherit;
}

/* Media / poster */
.home-mobile-stack-hub-section .home-mobile-stack-hub-media {
  position: relative;
  align-self: stretch;
  width: 100%;
  height: 100%; /* ~200px */
  aspect-ratio: 16/9;
  flex-shrink: 0;
  border-radius: 1.25rem; /* ~20px */
  overflow: hidden;
  outline: none;
}

.home-mobile-stack-hub-section .home-mobile-stack-hub-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-mobile-stack-hub-section .home-mobile-stack-hub-video,
.home-mobile-stack-hub-section .home-mobile-stack-hub-media .video-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.home-mobile-stack-hub-section
  .home-mobile-stack-hub-media
  .video-wrapper
  iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  /* Blocked until play button fires — then JS / .is-playing enable taps */
  pointer-events: none;
}

.home-mobile-stack-hub-section
  .home-mobile-stack-hub-media.is-playing
  .video-wrapper
  iframe {
  pointer-events: auto;
}

/* Mint play affordance */
.home-mobile-stack-hub-section .home-mobile-stack-hub-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
  color: var(--bs-primary-400); /* mint circle */
}

.home-mobile-stack-hub-section .home-mobile-stack-hub-play-button {
  appearance: none;
  -webkit-appearance: none;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  pointer-events: auto;
  z-index: 3;
  -webkit-tap-highlight-color: transparent;
  transition:
    opacity var(--transition-base),
    visibility var(--transition-base);
}

.home-mobile-stack-hub-section .home-mobile-stack-hub-play.is-playing {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.home-mobile-stack-hub-section .home-mobile-stack-hub-play-circle {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.home-mobile-stack-hub-section .home-mobile-stack-hub-play-triangle {
  position: relative;
  z-index: 1;
  width: 0.875rem;
  height: 1.05rem;
  color: var(--bs-white);
  margin-left: 0.15rem;
}

/* Description + CTA */
.home-mobile-stack-hub-section .home-mobile-stack-hub-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-9);
  width: 100%;
  text-align: center;
}

.home-mobile-stack-hub-section .home-mobile-stack-hub-footer .text-description {
  font-size: var(--font-size-18);
}

.home-mobile-stack-hub-section .home-mobile-stack-hub-description {
  width: 100%;
  max-width: 22rem;
  margin: 0;
  text-align: center !important;
  color: var(--bs-primary-25);
  font-family: var(--font-family-base);
  font-size: var(--font-size-14);
  font-weight: var(--font-weight-regular);
  line-height: 1.45;
}

.home-mobile-stack-hub-section .home-mobile-stack-hub-description *,
.home-mobile-stack-hub-section .home-mobile-stack-hub-description p {
  margin: 0;
  text-align: center !important;
  color: inherit;
  font: inherit;
  line-height: inherit;
}

.home-mobile-stack-hub-section .home-mobile-stack-hub-button {
  display: flex;
  justify-content: center;
  align-self: stretch;
  width: 100%;
}

.home-mobile-stack-hub-section .home-mobile-stack-hub-button .btn,
.home-mobile-stack-hub-section .home-mobile-stack-hub-cta.btn,
.home-mobile-stack-hub-section a.btn.home-mobile-stack-hub-cta {
  display: inline-flex;
  width: 100% !important;
  max-width: 100%;
  min-height: 2.75rem;
  height: 2.75rem;
  padding: var(--space-2) var(--space-7);
  background-color: var(--bs-secondary-400);
  border: 0;
  color: var(--bs-black);
  border-radius: var(--radius-2xl);
  justify-content: center;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-family-mono);
  font-size: var(--font-size-14);
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.home-mobile-stack-hub-section .home-mobile-stack-hub-cta.btn:hover,
.home-mobile-stack-hub-section .home-mobile-stack-hub-button .btn:hover {
  background-color: var(--bs-secondary-500, var(--bs-secondary-400));
  color: var(--bs-black);
}

.home-mobile-stack-hub-section .home-mobile-stack-hub-cta .btn-icon,
.home-mobile-stack-hub-section .home-mobile-stack-hub-cta .chev,
.home-mobile-stack-hub-section .home-mobile-stack-hub-button .btn .btn-icon,
.home-mobile-stack-hub-section .home-mobile-stack-hub-button .btn .chev {
  display: inline-flex;
  color: currentColor;
}
