/* Sync2Stage — Help / Guide page */

/* Header legível em páginas com fundo claro */
body.help-page-body #header,
body.help-page-body .header {
  --background-color: #111827;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --nav-color: #ffffff;
  --nav-hover-color: #fabd14;
  background-color: #111827 !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

body.help-page-body #header .navmenu a,
body.help-page-body #header .navmenu a:focus {
  color: #ffffff !important;
}

body.help-page-body #header .navmenu a:hover {
  color: #fabd14 !important;
}

body.help-page-body #header .mobile-nav-toggle {
  color: #ffffff !important;
}

.help-page {
  padding-top: calc(5.5rem + env(safe-area-inset-top, 0px));
  padding-bottom: 4rem;
  background: #f4f6f9;
  min-height: 100vh;
  --help-media-width: 196px;
}

.help-page .container-fluid {
  max-width: 1200px;
}

/* ── Header ── */
.help-header {
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 0;
  background: #fff;
}

.help-header__inner {
  max-width: 720px;
}

.help-header__label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #92400e;
  background: rgba(250, 189, 20, 0.12);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
}

.help-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.65rem;
  line-height: 1.2;
}

.help-header__subtitle {
  font-size: 1.05rem;
  color: #4b5563;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.help-header__desc {
  font-size: 0.95rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.6;
}

/* ── Layout ── */
.help-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
  padding-top: 2rem;
}

.help-sidebar {
  position: sticky;
  top: calc(5rem + env(safe-area-inset-top, 0px));
}

.help-sidebar__title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 0.75rem;
  padding-left: 0.75rem;
}

.help-nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.help-nav a {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: #4b5563;
  text-decoration: none;
  border-radius: 8px;
  border-left: 2px solid transparent;
  line-height: 1.35;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.help-nav a:hover {
  color: #111827;
  background: rgba(17, 24, 39, 0.04);
}

.help-nav a.is-sub {
  padding-left: 1.35rem;
  font-size: 0.8125rem;
  color: #6b7280;
}

.help-nav__group {
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid #e5e7eb;
}

/* ── Sections ── */
.help-main {
  min-width: 0;
}

.help-section {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 1.75rem 1.85rem;
  margin-bottom: 1.25rem;
  scroll-margin-top: calc(5.5rem + env(safe-area-inset-top, 0px));
}

.help-section__eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #b8860b;
  margin-bottom: 0.4rem;
}

.help-section > h2,
.help-section__title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.65rem;
  line-height: 1.3;
}

.help-section > p,
.help-section__intro {
  color: #4b5563;
  font-size: 0.9375rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.help-section__intro:last-child {
  margin-bottom: 0;
}

/* ── Steps (timeline) ── */
.help-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.help-step {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 1rem;
  padding-bottom: 1.35rem;
  position: relative;
}

.help-step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 13px;
  top: 28px;
  bottom: 0;
  width: 2px;
  background: #e5e7eb;
}

.help-step__marker {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #fabd14;
  color: #92400e;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.help-step__body h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #111827;
  margin: 0 0 0.35rem;
}

.help-step__body p {
  font-size: 0.875rem;
  color: #4b5563;
  line-height: 1.6;
  margin: 0 0 0.35rem;
}

.help-step__body p:last-child {
  margin-bottom: 0;
}

.help-step__note {
  font-size: 0.8125rem;
  color: #6b7280;
  margin-top: 0.35rem;
}

.help-step__note strong {
  color: #374151;
}

/* ── Content + media grid ── */
.help-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--help-media-width, 196px);
  gap: 1.75rem;
  align-items: start;
}

.help-split--reverse {
  grid-template-columns: var(--help-media-width, 196px) minmax(0, 1fr);
}

.help-split__media {
  position: sticky;
  top: calc(5rem + env(safe-area-inset-top, 0px));
  justify-self: end;
}

.help-media-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.help-media-row .help-media {
  flex: 0 0 var(--help-media-width, 196px);
}

/* ── Media (override partial) ── */
.help-page .help-media {
  margin: 0;
  max-width: var(--help-media-width);
  width: 100%;
}

.help-page .help-media__frame {
  width: 100%;
  max-width: var(--help-media-width);
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.07);
  border: 1px solid #e5e7eb;
  overflow: hidden;
  background: #0f0f0f;
  padding: 0;
  display: block;
  position: relative;
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.help-page .help-media__frame:hover {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  border-color: rgba(250, 189, 20, 0.45);
  transform: translateY(-1px);
}

.help-page .help-media__frame:focus-visible {
  outline: 2px solid #fabd14;
  outline-offset: 2px;
}

.help-page .help-media__expand {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(17, 24, 39, 0.72);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.help-page .help-media__frame:hover .help-media__expand,
.help-page .help-media__frame:focus-visible .help-media__expand {
  opacity: 1;
}

.help-page .help-media__video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
}

.help-page .help-media__caption {
  font-size: 0.75rem;
  color: #6b7280;
  text-align: left;
  margin-top: 0.5rem;
  line-height: 1.45;
  max-width: var(--help-media-width);
}

/* ── Highlight box ── */
.help-callout {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.help-callout__title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.65rem;
}

.help-callout ul {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.875rem;
  color: #4b5563;
  line-height: 1.65;
}

.help-callout li + li {
  margin-top: 0.25rem;
}

.help-notice {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  font-size: 0.875rem;
  color: #78350f;
  line-height: 1.5;
  margin: 1rem 0 1.25rem;
}

.help-notice i {
  color: #d97706;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

/* ── Suggestions flow ── */
.help-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.help-flow__item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  color: #6b7280;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
}

.help-flow__item span {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fabd14;
  color: #111;
  font-size: 0.7rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.help-subsection {
  padding: 1.35rem 0;
  border-top: 1px solid #f3f4f6;
}

.help-subsection:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.help-subsection h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.5rem;
}

.help-subsection > p {
  font-size: 0.875rem;
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 0.85rem;
}

.help-subsection ul {
  font-size: 0.875rem;
  color: #4b5563;
  line-height: 1.65;
  padding-left: 1.15rem;
  margin-bottom: 1rem;
}

/* ── Feature grid ── */
.help-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.help-feature {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fafafa;
}

.help-feature__icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(250, 189, 20, 0.12);
  color: #b8860b;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.95rem;
}

.help-feature h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: #111827;
  margin: 0 0 0.25rem;
}

.help-feature p {
  font-size: 0.8125rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}

/* ── Tips ── */
.help-tips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.help-tip {
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
}

.help-tip i {
  color: #fabd14;
  margin-bottom: 0.5rem;
  display: block;
}

.help-tip strong {
  display: block;
  font-size: 0.875rem;
  color: #111827;
  margin-bottom: 0.35rem;
}

.help-tip span {
  font-size: 0.8125rem;
  color: #6b7280;
  line-height: 1.5;
}

/* ── Support ── */
.help-support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.help-support-card {
  padding: 1.25rem;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}

.help-support-card h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.4rem;
}

.help-support-card p {
  font-size: 0.8125rem;
  color: #6b7280;
  margin-bottom: 0.85rem;
  line-height: 1.5;
}

/* ── CTA ── */
.help-cta {
  text-align: center;
  background: #111827;
  border-color: #111827;
  color: #f9fafb;
  padding: 2.25rem 1.85rem;
}

.help-cta h2 {
  color: #fff;
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.help-cta p {
  color: rgba(249, 250, 251, 0.75);
  font-size: 0.9375rem;
  margin-bottom: 1.25rem;
}

.help-cta .btn-primary-custom {
  background: #fabd14;
  border: none;
  color: #111;
  font-weight: 600;
  padding: 0.65rem 1.35rem;
  border-radius: 8px;
}

.help-cta .btn-outline-custom {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-weight: 500;
  padding: 0.65rem 1.35rem;
  border-radius: 8px;
}

.help-cta .btn-outline-custom:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.help-media-single {
  max-width: var(--help-media-width, 196px);
  margin-top: 0.5rem;
}

.help-media-single .help-media {
  margin: 0;
}

/* ── Video modal ── */
body.help-video-modal-open {
  overflow: hidden;
}

.help-video-modal {
  position: fixed;
  inset: 0;
  z-index: 1080;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.help-video-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.help-video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.82);
  backdrop-filter: blur(4px);
}

.help-video-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  max-height: calc(100vh - 2.5rem);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.22s ease;
}

.help-video-modal.is-open .help-video-modal__panel {
  transform: translateY(0) scale(1);
}

.help-video-modal__close {
  position: absolute;
  top: -0.35rem;
  right: -0.35rem;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #111827;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease;
}

.help-video-modal__close:hover {
  background: #f3f4f6;
}

.help-video-modal__frame {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: #0f0f0f;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.help-video-modal__player {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
  background: #0f0f0f;
}

.help-video-modal__caption {
  margin: 0.75rem 0 0;
  padding: 0 0.25rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgba(249, 250, 251, 0.88);
  text-align: center;
}


@media (max-width: 991px) {
  .help-page {
    --help-media-width: min(196px, 72vw);
  }

  .help-layout {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 0;
  }

  .help-sidebar {
    position: static;
    margin: 0 -0.75rem 1.25rem;
    padding: 0 0.75rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .help-nav {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.5rem;
    padding-bottom: 0.25rem;
  }

  .help-nav a {
    white-space: nowrap;
    border-left: 0;
    border: 1px solid #e5e7eb;
    background: #fff;
    font-size: 0.8125rem;
    padding: 0.45rem 0.85rem;
  }

  .help-nav a.is-sub {
    display: none;
  }

  .help-nav__group {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
    display: contents;
  }

  .help-split,
  .help-split--reverse {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .help-split__media {
    position: static;
    justify-self: center;
    max-width: var(--help-media-width, 196px);
    margin: 0 auto;
  }

  .help-media-row {
    justify-content: center;
  }

  .help-features,
  .help-tips,
  .help-support-grid {
    grid-template-columns: 1fr;
  }

  .help-section {
    padding: 1.35rem 1.15rem;
  }
}
