/* Help page (help.php): how the system works for members and gate staff. Builds on app.css. */

.hp { max-width: 880px; gap: 30px; }
.hp .ts-crest { margin: 0 0 10px; }
.hp .ts-crest__rule { margin: 0 auto; }
.hp .ts-lead { max-width: 620px; margin-left: auto; margin-right: auto; }
.hp svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- The three-step picture ---------- */
.hp-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; counter-reset: flow; }
.hp-flow__step {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center;
  padding: 20px 14px 18px; border-radius: 16px; background: #fff; border: 1px solid var(--line);
}
.hp-flow__step + .hp-flow__step::before {
  content: '›'; position: absolute; left: -12px; top: 50%; transform: translate(-50%, -50%);
  width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: var(--navy);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 20px; line-height: 1; z-index: 1;
}
.hp-flow__icon { width: 52px; height: 52px; border-radius: 50%; background: var(--navy); color: var(--gold); display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.hp-flow__icon svg { width: 26px; height: 26px; }
.hp-flow__step:last-child .hp-flow__icon { background: var(--success-bg); color: var(--success); }
.hp-flow__step b { font-size: 18px; color: var(--navy); line-height: 1.25; }
.hp-flow__step span:last-child { font-size: 16px; color: var(--muted); line-height: 1.35; }

/* ---------- Video tour ---------- */
.hp-video { display: flex; flex-direction: column; gap: 16px; padding: 24px; border-radius: 20px; background: var(--navy); color: #fff; scroll-margin-top: 16px; }
.hp-video__head { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.hp-video__title { margin: 0; color: #fff; font-size: 26px; line-height: 1.2; }
.hp-video__lead { margin: 0; color: rgba(255,255,255,.8); font-size: 18px; line-height: 1.5; }
.hp-video__player { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; background: var(--navy-dark); }
.hp-video__chapters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hp-video__jump { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin-right: 4px; }
.hp-video__chapter, .hp-video__open {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 14px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.3); color: #fff; font-size: 16px; font-weight: 600; text-decoration: none;
}
.hp-video__chapter:hover, .hp-video__open:hover { color: var(--navy); background: var(--gold); border-color: var(--gold); }
.hp-video__chapter small { font-size: 14px; font-weight: 400; opacity: .75; }
.hp-video__open { margin-left: auto; border-style: dashed; }
.hp-part__video { display: inline-flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 600; color: var(--navy); }
.hp-part__video svg { width: 18px; height: 18px; fill: var(--gold-deep); stroke: none; }

/* ---------- "Which describes you?" ---------- */
.hp-pick { display: flex; flex-direction: column; gap: 12px; }
.hp-pick__q { margin: 0; text-align: center; font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-text); }
.hp-pick__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.hp-pick__card {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px; min-height: 92px;
  border-radius: 16px; background: var(--navy); color: #fff; text-decoration: none;
  border-bottom: 4px solid var(--gold); transition: transform .15s ease, box-shadow .15s ease;
}
.hp-pick__card:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(16,36,64,.22); }
.hp-pick__card--gate { background: #fff; color: var(--navy); border: 2px solid var(--navy); border-bottom-width: 4px; border-bottom-color: var(--gold); }
.hp-pick__card--gate:hover { color: var(--navy); }
.hp-pick__icon { width: 50px; height: 50px; flex: none; border-radius: 12px; background: rgba(255,255,255,.12); color: var(--gold); display: flex; align-items: center; justify-content: center; }
.hp-pick__card--gate .hp-pick__icon { background: var(--navy-tint); color: var(--navy); }
.hp-pick__icon svg { width: 28px; height: 28px; }
.hp-pick__text { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hp-pick__text b { font-size: 21px; font-family: var(--font-head); font-weight: 600; }
.hp-pick__text small { font-size: 16px; opacity: .8; line-height: 1.3; }
.hp-pick__arrow { width: 24px; height: 24px; flex: none; stroke-width: 2.6 !important; opacity: .85; }

/* ---------- A part (members / gate) ---------- */
.hp-part { display: flex; flex-direction: column; gap: 22px; scroll-margin-top: 16px; padding-top: 12px; }
.hp-part__head { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding-bottom: 16px; border-bottom: 2px solid var(--gold); }
.hp-part__tag { padding: 4px 12px; border-radius: 999px; background: var(--navy-tint); color: var(--navy); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.hp-part__tag--gate { background: #F4ECDC; color: var(--gold-text); }
.hp-part__title { font-size: 30px; line-height: 1.15; }
.hp-part__lead { margin: 0; color: var(--muted); font-size: 19px; line-height: 1.5; }

/* ---------- Steps: text beside a screenshot ---------- */
.hp-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.hp-step {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); align-items: center; gap: 22px 32px;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px 28px;
}
.hp-step__text { display: flex; flex-direction: column; gap: 10px; }
.hp-step__text p { margin: 0; font-size: 19px; line-height: 1.5; }
.hp-step__num {
  width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff;
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 22px; margin: 2px 0 6px 5px;
}
.hp-part--gate .hp-step__num { background: var(--gold); color: var(--navy); box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--navy); }
.hp-step__title { margin: 0; font-family: var(--font-head); font-weight: 600; font-size: 24px; line-height: 1.2; color: var(--navy); }
.hp-tip { padding: 12px 14px; border-radius: 12px; background: var(--cream); border-left: 4px solid var(--gold); font-size: 17px !important; }
.hp-green { color: var(--success); }

/* A wide step puts the screenshot underneath the text. */
.hp-step--wide { grid-template-columns: 1fr; }
.hp-step--wide .hp-shot { max-width: none; }

/* ---------- Screenshots ---------- */
.hp-shot { margin: 0; justify-self: center; width: 100%; display: flex; flex-direction: column; gap: 8px; }
.hp-shot img {
  display: block; width: 100%; height: auto; background: var(--cream);
  border: 6px solid var(--ink); border-radius: 26px;
  box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 16px 34px rgba(16,36,64,.18);
}
.hp-shot--phone { max-width: 280px; }
.hp-shot--tablet img { border-width: 8px; border-radius: 20px; }
.hp-shot figcaption { font-size: 15px; color: var(--muted); text-align: center; }

.hp-shot figcaption b { color: var(--navy); }
.hp-shot--anim figcaption { font-size: 17px; color: var(--ink); }
.hp-shot picture { display: block; }

/* Two animations side by side (tap or swipe). */
.hp-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* "Watch it": the start-to-finish animation at the top of the members' part. */
.hp-watch {
  display: grid; grid-template-columns: 280px minmax(0, 1fr); align-items: center; gap: 28px 36px;
  padding: 28px; border-radius: 20px; background: var(--navy); color: #fff; border-bottom: 4px solid var(--gold);
}
.hp-watch .hp-shot img { border-color: #000; box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.hp-watch__text { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.hp-watch__text p { margin: 0; font-size: 19px; line-height: 1.5; color: rgba(255,255,255,.85); }
.hp-watch .hp-step__title { color: #fff; font-size: 26px; }
.hp-watch__badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 8px; border-radius: 999px;
  background: var(--gold); color: var(--navy); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.hp-watch__badge svg { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.hp-watch__list { margin: 2px 0; padding: 0; list-style: none; counter-reset: w; display: flex; flex-direction: column; gap: 8px; font-size: 18px; }
.hp-watch__list li { counter-increment: w; display: flex; align-items: center; gap: 12px; }
.hp-watch__list li::before {
  content: counter(w); width: 28px; height: 28px; flex: none; border-radius: 50%; border: 2px solid var(--gold); color: var(--gold);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px;
}
.hp-watch__more { font-size: 16px !important; color: var(--gold) !important; font-weight: 600; }

/* Legend under the gate list screenshot. */
.hp-keys { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 18px; line-height: 1.45; }
.hp-keys li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.hp-key {
  display: inline-flex; align-items: center; gap: 7px; flex: none; padding: 3px 12px; border-radius: 999px;
  background: var(--navy-tint); color: var(--navy); font-size: 15px; font-weight: 700; white-space: nowrap;
}
.hp-key--live { background: var(--success-bg); color: var(--success); }
.hp-key--live i { width: 9px; height: 9px; border-radius: 50%; background: var(--success); }

/* ---------- "Good to know" lists ---------- */
.hp-good { gap: 12px; background: var(--cream-card); }
.hp-good__title { margin: 0; font-family: var(--font-head); font-weight: 600; font-size: 22px; color: var(--navy); }
.hp-good__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.hp-good__list li { display: flex; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line-soft); font-size: 18px; line-height: 1.5; }
.hp-good__list li:first-child { border-top: 0; padding-top: 4px; }
.hp-good__icon {
  width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--navy); color: var(--gold);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 17px; line-height: 1;
}

/* ---------- Questions ---------- */
.hp-faq { display: flex; flex-direction: column; gap: 10px; }
.hp-faq__title { margin-bottom: 6px; }
.hp-q { background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.hp-q summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 18px 20px; min-height: 64px; font-size: 19px; font-weight: 600; color: var(--navy);
}
.hp-q summary::-webkit-details-marker { display: none; }
.hp-q summary::after { content: '+'; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--navy-tint); display: flex; align-items: center; justify-content: center; font-size: 22px; line-height: 1; }
.hp-q[open] summary::after { content: '–'; background: var(--gold); }
.hp-q p { margin: 0; padding: 0 20px 18px; font-size: 18px; line-height: 1.5; color: var(--ink); }

/* ---------- Still stuck? ---------- */
.hp-help { background: var(--navy); border-color: var(--navy); color: #fff; text-align: center; border-bottom: 4px solid var(--gold); }
.hp-help__title { margin: 0 0 6px; font-family: var(--font-head); font-weight: 600; font-size: 24px; color: #fff; }
.hp-help p { margin: 0; font-size: 18px; line-height: 1.5; color: rgba(255,255,255,.85); }
.hp-help b { color: var(--gold); }

/* ---------- Phones ---------- */
@media (max-width: 720px) {
  .hp { gap: 24px; }
  .hp-video { padding: 16px; margin: 0 -4px; }
  .hp-video__title { font-size: 22px; }
  .hp-video__open { margin-left: 0; }
  .hp-flow { grid-template-columns: 1fr; gap: 10px; }
  .hp-flow__step { flex-direction: row; flex-wrap: wrap; text-align: left; align-items: center; column-gap: 14px; padding: 14px 16px; }
  .hp-flow__step + .hp-flow__step::before { content: '⌄'; left: 50%; top: -5px; font-size: 16px; width: 22px; height: 22px; }
  .hp-flow__icon { width: 44px; height: 44px; margin: 0; grid-row: span 2; }
  .hp-flow__step b { flex: 1; }
  .hp-flow__step span:last-child { flex-basis: 100%; padding-left: 58px; margin-top: -8px; }
  .hp-step { grid-template-columns: 1fr; padding: 22px 18px; gap: 20px; }
  .hp-step__title { font-size: 22px; }
  .hp-step__text p { font-size: 18px; }
  .hp-part__title { font-size: 26px; }
  .hp-shot--phone { max-width: 250px; }
  .hp-shot--tablet img { border-width: 5px; border-radius: 14px; }
  .hp-pair { grid-template-columns: 1fr; }
  .hp-watch { grid-template-columns: 1fr; padding: 22px 18px; justify-items: center; }
  .hp-watch .hp-shot { max-width: 250px; }
}
