/* ClarityOS hero and checkout hierarchy refinement */
.hero {
  min-height: auto;
  padding: 7.5rem 0 4.75rem;
}

.hero .container {
  max-width: 1280px;
}

.hero-main {
  grid-template-columns: minmax(460px, 0.9fr) minmax(520px, 1.1fr);
  gap: clamp(3rem, 4.5vw, 5.5rem);
  align-items: center;
}

.hero h1 {
  max-width: 610px;
  font-size: clamp(3.35rem, 4.45vw, 4.1rem);
  line-height: 1.035;
  letter-spacing: -0.02em;
  margin-bottom: 1.6rem;
}

.hero h1 > span,
.hero h1 > em {
  display: block;
}

.hero-body {
  max-width: 555px;
  margin-bottom: 2rem;
  font-size: 1rem;
  line-height: 1.75;
}

.hero-video-wrap {
  position: relative;
  padding: 1rem;
  border: 1px solid rgba(168, 212, 240, 0.2);
  border-radius: 26px;
  background:
    linear-gradient(145deg, rgba(126, 180, 212, 0.105), rgba(255, 255, 255, 0.025) 42%, rgba(255, 255, 255, 0.012)),
    rgba(11, 13, 22, 0.72);
  box-shadow:
    0 36px 110px rgba(0, 0, 0, 0.5),
    0 0 90px rgba(126, 180, 212, 0.075),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.hero-video-wrap::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(168, 212, 240, 0.18), transparent 35%, transparent 70%, rgba(126, 180, 212, 0.08));
  opacity: 0.65;
  pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 1px;
}

.hero-video-label {
  justify-content: space-between;
  margin: 0 0 0.85rem;
  padding: 0 0.25rem;
  color: rgba(234, 237, 245, 0.68);
  font-size: 0.72rem;
  font-weight: 500;
}

.hero-video-label > span:first-child {
  margin-right: 0.05rem;
}

.hero-video-label strong {
  margin-right: auto;
  color: var(--text);
  font-weight: 500;
}

.hero-video-label small {
  color: var(--accent);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
}

.hero-video {
  border-color: rgba(168, 212, 240, 0.16);
  border-radius: 17px;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.42);
}

.hero-video-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 0.9rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.055);
}

.hero-video-meta > div {
  padding: 0.8rem 0.95rem;
  background: rgba(6, 8, 16, 0.54);
}

.hero-video-meta strong,
.hero-video-meta span {
  display: block;
}

.hero-video-meta strong {
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 400;
  line-height: 1.15;
}

.hero-video-meta span {
  margin-top: 0.18rem;
  color: var(--text-faint);
  font-size: 0.65rem;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.btn-primary {
  min-height: 64px;
  flex-direction: column;
  justify-content: center;
  gap: 0.12rem;
  padding: 0.76rem 1.85rem;
  line-height: 1.25;
}

.btn-primary > * {
  position: relative;
  z-index: 1;
}

.btn-primary-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.btn-primary-main strong {
  font-weight: 700;
}

.btn-primary small {
  display: block;
  color: rgba(6, 8, 16, 0.68);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.015em;
  text-transform: none;
}

.program-cta-strip .btn-primary {
  min-width: 315px;
}

.program-cta-strip-text p {
  color: var(--text-faint);
}

@media (max-width: 1100px) {
  .hero-main {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hero-copy {
    display: contents;
  }

  .hero-eyebrow { order: 1; }
  .hero h1 { order: 2; max-width: 720px; }
  .hero-video-wrap { order: 3; width: 100%; max-width: 760px; margin: 0 0 2.5rem; }
  .hero-body { order: 4; }
  .hero-availability { order: 5; }
  .cog-indicator { order: 6; }
  .hero-actions { order: 7; }
}

@media (max-width: 768px) {
  .hero {
    padding: 6.6rem 0 4rem;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 11vw, 3.45rem);
    line-height: 1.04;
  }

  .hero-video-wrap {
    padding: 0.72rem;
    border-radius: 20px;
  }

  .hero-video-label {
    margin-bottom: 0.65rem;
    font-size: 0.66rem;
  }

  .hero-video-meta > div {
    padding: 0.7rem 0.75rem;
  }

  .hero-meta {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  nav {
    padding-inline: 1.25rem;
  }

  .hero .container {
    padding-inline: 1.25rem;
  }

  .nav-cta {
    padding-inline: 0.85rem;
    font-size: 0.67rem;
  }

  .hero h1 {
    font-size: clamp(2.55rem, 11.2vw, 3.1rem);
  }

  .hero-body {
    font-size: 0.98rem;
  }

  .hero-video-meta strong {
    font-size: 0.98rem;
  }

  .hero-video-meta span {
    font-size: 0.58rem;
  }

  .hero-actions {
    align-items: stretch;
  }

  .hero-actions .btn-primary {
    width: 100%;
  }

  .program-cta-strip .btn-primary {
    width: 100%;
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-video-wrap {
    animation: none;
    opacity: 1;
  }
}

.purchase-path {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.72rem;
}

.purchase-path--wide {
  width: 100%;
  max-width: 440px;
}

.purchase-path--wide .btn-primary {
  max-width: none !important;
}

.purchase-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
  color: var(--text-muted);
  font-size: 0.79rem;
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.purchase-help span {
  color: var(--accent);
  transition: transform 0.2s ease;
}

.purchase-help:hover,
.purchase-help:focus-visible {
  color: var(--text);
}

.purchase-help:hover span,
.purchase-help:focus-visible span {
  transform: translateX(3px);
}

.purchase-help:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 5px;
  border-radius: 3px;
}

@media (max-width: 600px) {
  .hero-actions .purchase-path,
  .program-cta-strip .purchase-path {
    width: 100%;
  }
}
