/* Help page and Get started page: topics, the step-by-step player and the mini phone screens */
/* Help topics: an open topic walks through steps beside a small picture of the screen */
.help-topic { background: #1e293b; border: 1px solid #334155; border-radius: 16px; overflow: hidden; }
.help-head { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px 16px; text-align: left; }
.help-head:focus-visible, .help-nav:focus-visible, .help-os button:focus-visible { outline: 2px solid #34d399; outline-offset: 2px; }
.help-ico { width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px; background: rgba(16,185,129,.12); color: #34d399; display: grid; place-items: center; }
.help-chev { margin-left: auto; flex-shrink: 0; color: #64748b; transition: transform 320ms cubic-bezier(0.32, 0.72, 0, 1); }
.help-topic.open .help-chev { transform: rotate(90deg); }
/* A topic glides open from its own row (same curve as the Stats cards). CSS transitions
   start from the current height, so tapping again mid-way reverses it smoothly. */
.help-collapse { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 240ms cubic-bezier(0.32, 0.72, 0, 1); }
.help-topic.open .help-collapse { grid-template-rows: 1fr; transition-duration: 320ms; }
.help-collapse-inner { min-height: 0; overflow: hidden; opacity: 0; visibility: hidden;
  transition: opacity 180ms ease, visibility 0s linear 240ms; }
.help-topic.open .help-collapse-inner { opacity: 1; visibility: visible; transition: opacity 240ms ease 60ms, visibility 0s; }
.help-screen { display: flex; flex-direction: column; gap: 6px; flex: 1; min-height: 0; will-change: transform, opacity; }
.help-body { padding: 0 16px 16px; }
.help-os { display: flex; gap: 6px; margin-bottom: 12px; }
.help-os button { font-size: 12.5px; color: #94a3b8; background: #0f172a; border: 1px solid #334155; border-radius: 999px; padding: 4px 12px; }
.help-os button[aria-pressed="true"] { color: #34d399; border-color: #059669; }
.help-stage { display: grid; grid-template-columns: 150px 1fr; gap: 16px; align-items: center; }
@media (max-width: 360px) { .help-stage { grid-template-columns: 1fr; justify-items: center; } }
.help-step-text { font-size: 15px; color: #e2e8f0; margin: 4px 0 12px; line-height: 1.45; }
.help-step-text b, .help-tip b { color: #fff; font-weight: 600; }
.help-nav { font-size: 13px; font-weight: 600; border-radius: 10px; padding: 7px 14px; border: 1px solid #334155; background: #0f172a; color: #e2e8f0; }
.help-nav.next { background: #059669; border-color: #059669; color: #fff; }
.help-nav:disabled { opacity: .35; }
.help-dots { display: flex; gap: 5px; margin-top: 12px; }
.help-dots i { width: 6px; height: 6px; border-radius: 50%; background: #334155; }
.help-dots i.on { background: #34d399; width: 16px; border-radius: 3px; }
.help-tip { margin-top: 14px; font-size: 13px; color: #94a3b8; border-top: 1px solid #334155; padding-top: 10px; line-height: 1.45; }
.help-faq-item { border-top: 1px solid #334155; padding: 12px 16px; }
.help-faq-item:first-child { border-top: 0; }
.help-faq-item summary { cursor: pointer; font-weight: 500; color: #e2e8f0; }
.help-faq-item p { margin-top: 8px; color: #94a3b8; font-size: 14px; line-height: 1.45; }
.help-faq-item p b { color: #e2e8f0; font-weight: 600; }
/* Phones: a heading above separate topic cards */
.help-section-title { padding: 8px 4px 0; margin-bottom: 12px; }
.help-list { display: grid; gap: 8px; }
.help-faq { background: #1e293b; border: 1px solid #334155; border-radius: 16px; }
/* PC: each group is one card with rows, like the Notifications page */
@media (min-width: 768px) {
  .help-section { background: #1e293b; border-radius: 16px; padding: 12px 24px 4px; }
  .help-section-title { padding: 0; margin-bottom: 4px; color: #34d399; }
  .help-list { display: block; }
  .help-section .help-topic { background: none; border: 0; border-radius: 0; border-top: 1px solid rgba(51,65,85,.4); }
  .help-section .help-topic:first-child { border-top: 0; }
  .help-section .help-head { padding: 12px 0; }
  .help-section .help-head:hover .help-chev { color: #e2e8f0; }
  .help-section .help-body { padding: 4px 0 18px; }
  .help-section .help-faq { background: none; border: 0; border-radius: 0; }
  .help-section .help-faq-item { padding: 12px 0; border-top-color: rgba(51,65,85,.4); }
}
/* the mini screen */
.help-phone { width: 150px; height: 290px; border: 2px solid #253140; border-radius: 26px; background: #0a0c0f; padding: 26px 9px 10px; position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 6px; font-size: 9.5px; line-height: 1.3; color: #e2e8f0; }
.help-phone::before { content: ""; position: absolute; top: 9px; left: 50%; width: 40px; height: 9px; margin-left: -20px; border-radius: 6px; background: #1a2230; }
.help-phone .s-title { font-weight: 700; font-size: 12px; padding: 0 2px; }
.help-phone .s-card { background: #0f1318; border: 1px solid #2e3d4e; border-radius: 10px; padding: 7px; display: flex; flex-direction: column; gap: 5px; }
.help-phone .s-card > b { font-size: 10px; font-weight: 600; }
.help-phone .s-muted { color: #8899aa; }
.help-phone .s-good { color: #34d399; font-weight: 600; }
.help-phone .s-warn { color: #fbbf24; }
.help-phone .s-bar { height: 5px; border-radius: 3px; background: #1d2633; }
.help-phone .s-btn { border-radius: 8px; padding: 6px 4px; text-align: center; font-weight: 600; }
.help-phone .s-btn.p { background: #059669; color: #fff; }
.help-phone .s-btn.s { background: #141820; border: 1px solid #2e3d4e; font-weight: 500; }
.help-phone .s-input { background: #141820; border: 1px solid #2e3d4e; border-radius: 7px; padding: 5px 6px; color: #556070; }
.help-phone .s-input.v { color: #e2e8f0; }
.help-phone .s-row { display: flex; justify-content: space-between; align-items: center; gap: 4px; padding: 2px; border-radius: 6px; }
.help-phone .s-row .dot { width: 9px; height: 9px; border-radius: 50%; background: #1d2633; flex-shrink: 0; }
.help-phone .s-row span:nth-child(2) { flex: 1; min-width: 0; }
.help-phone .s-split { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.help-phone .s-split > div { border: 1px solid #2e3d4e; border-radius: 7px; padding: 5px; display: grid; gap: 4px; }
.help-phone .s-split b { text-align: center; }
.help-phone .s-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 10px; padding: 8px 6px; justify-items: center; }
.help-phone .s-grid i { width: 30px; height: 30px; border-radius: 8px; background: #1a2230; display: block; }
.help-phone .app-ico { display: grid; justify-items: center; gap: 3px; font-size: 8.5px; border-radius: 10px; padding: 2px; }
.help-phone .app-ico img { width: 30px; height: 30px; border-radius: 8px; }
.help-phone .s-sheet { margin-top: auto; background: #161c25; border-radius: 12px 12px 8px 8px; padding: 8px; display: grid; gap: 6px; }
.help-phone .s-dialog { margin: auto 6px; background: #1a212c; border: 1px solid #2e3d4e; border-radius: 12px; overflow: hidden; text-align: center; }
.help-phone .s-dialog p { padding: 10px 8px; font-weight: 600; font-size: 10px; }
.help-phone .s-dialog div { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #2e3d4e; }
.help-phone .s-dialog div span { padding: 7px 0; }
.help-phone .s-dialog div span + span { border-left: 1px solid #2e3d4e; font-weight: 600; }
.help-phone .s-push { margin-top: 30px; background: #1a212c; border-radius: 12px; padding: 7px; display: grid; grid-template-columns: 24px 1fr; gap: 6px; align-items: center; }
.help-phone .s-push img { width: 24px; height: 24px; border-radius: 6px; }
.help-phone .s-chat { align-self: flex-end; margin-top: auto; width: 32px; height: 32px; border-radius: 50%; background: #059669; display: grid; place-items: center; }
.help-phone .s-bubble { background: #161c25; border-radius: 10px; padding: 6px; display: grid; gap: 4px; max-width: 80%; }
.help-phone .s-bubble.me { align-self: flex-end; background: rgba(5,150,105,.25); }
.help-phone .s-pop { background: #161c25; border: 1px solid #2e3d4e; border-radius: 8px; padding: 3px; display: grid; gap: 2px; margin-top: auto; }
.help-phone .s-pop span { padding: 4px; border-radius: 5px; }
.help-phone .hl { position: relative; box-shadow: 0 0 0 2px #34d399; }
.help-phone .hl::after { content: ""; position: absolute; inset: -2px; border-radius: inherit; box-shadow: 0 0 0 2px #34d399; animation: help-ping 1.6s ease-out infinite; pointer-events: none; }
@keyframes help-ping { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(1.12); } }
@media (prefers-reduced-motion: reduce) {
  .help-phone .hl::after { animation: none; opacity: 0; }
  .help-chev, .help-collapse { transition: none; }
}
