/* Help / tutorials page */

.ss-help-page {
  padding-top: calc(var(--ss-nav-h, 76px) + 2rem);
  padding-bottom: 4rem;
}

.ss-help-page__inner {
  max-width: 68rem;
  margin: 0 auto;
}

.ss-help-page__head {
  text-align: center;
  margin-bottom: 3.5rem;
}

.ss-help-page__head .ss-h1 {
  margin-bottom: 1rem;
}

.ss-help-page__links {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ss-text-soft);
  max-width: 40rem;
  margin: 1.25rem auto 0;
}

.ss-help-page__links a {
  color: var(--ss-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ss-help-page__links a:hover {
  color: #fff;
}

.ss-help-section {
  margin-bottom: 3.5rem;
  scroll-margin-top: calc(var(--ss-nav-h, 76px) + 1rem);
}

.ss-help-section--spaced {
  margin-top: 1rem;
}

.ss-help-section__title {
  font-family: var(--ss-font);
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 1.5rem;
  background: var(--ss-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ss-help-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .ss-help-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .ss-help-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ss-help-card {
  background: var(--ss-surface);
  border: 1px solid var(--ss-border-subtle);
  border-radius: var(--ss-radius);
  overflow: hidden;
  transition: border-color 0.15s, transform 0.15s;
}

.ss-help-card:hover {
  border-color: rgba(98, 121, 230, 0.28);
  transform: translateY(-2px);
}

.ss-help-card__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: rgba(0, 0, 0, 0.35);
  cursor: pointer;
  overflow: hidden;
}

.ss-help-card__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ss-help-card__thumb::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 4rem;
  height: 4rem;
  background: rgba(0, 0, 0, 0.65);
  border-radius: 50%;
  transition: background 0.2s, transform 0.2s;
}

.ss-help-card__thumb::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-40%, -50%);
  width: 0;
  height: 0;
  border-left: 1.25rem solid #fff;
  border-top: 0.75rem solid transparent;
  border-bottom: 0.75rem solid transparent;
  z-index: 1;
}

.ss-help-card__thumb:hover::after {
  background: rgba(98, 121, 230, 0.92);
  transform: translate(-50%, -50%) scale(1.06);
}

.ss-help-card__body {
  padding: 1.25rem 1.35rem 1.35rem;
}

.ss-help-card__title {
  font-family: var(--ss-font);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--ss-text);
  margin: 0 0 0.5rem;
}

.ss-help-card__desc {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--ss-text-muted);
  margin: 0;
}

/* Video modal */
.ss-video-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(6px);
}

.ss-video-modal.is-open {
  display: flex;
}

.ss-video-modal__panel {
  position: relative;
  width: min(100%, 72rem);
  background: var(--ss-surface);
  border: 1px solid var(--ss-border-subtle);
  border-radius: var(--ss-radius);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.ss-video-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--ss-border-subtle);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.ss-video-modal__close:hover {
  background: rgba(98, 121, 230, 0.35);
  border-color: rgba(98, 121, 230, 0.45);
}

.ss-video-modal__close svg {
  width: 1.125rem;
  height: 1.125rem;
}

.ss-video-modal__frame {
  aspect-ratio: 16 / 9;
  width: 100%;
}

.ss-video-modal__frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.ss-poc .ss-help-page section,
.ss-poc .ss-help-page .page-gridfx {
  background: transparent !important;
  border: none !important;
}

.ss-poc .ss-help-page .page-gridfx {
  display: none !important;
}
