/* Help center topic pages (/help/*.html, built by tools/build-help.py). Behaviour in /js/help.js. */
.hp { padding-top: 104px; }
.hp-grid { display: grid; grid-template-columns: 240px minmax(0, 720px); justify-content: center; gap: 72px; padding-bottom: 96px; }

/* Sidebar */
.hp-side { position: relative; }
.hp-nav { position: sticky; top: 104px; display: flex; flex-direction: column; gap: 2px; max-height: calc(100vh - 128px); overflow-y: auto; scrollbar-width: none; }
.hp-home { font-size: 13px; font-weight: 600; color: var(--label); margin-bottom: 10px; transition: color .2s; }
.hp-home:hover { color: var(--black); }
.hp-nav-t { display: block; padding: 8px 0; font-size: 15px; font-weight: 600; color: var(--body); transition: color .2s; }
.hp-nav-t:hover, .hp-nav-g.on .hp-nav-t { color: var(--black); }
.hp-nav-s { display: flex; flex-direction: column; margin: 2px 0 8px; border-left: 1px solid var(--border); }
.hp-nav-s a { margin-left: -1px; padding: 5px 0 5px 14px; border-left: 2px solid transparent; font-size: 14px; line-height: 19px; color: var(--label); transition: color .2s, border-color .2s; }
.hp-nav-s a:hover { color: var(--black); }
.hp-nav-s a.on { color: var(--black); font-weight: 600; border-left-color: var(--black); }

/* Header */
.hp-crumb { display: flex; gap: 10px; font-size: 14px; font-weight: 500; color: var(--label); }
.hp-crumb a { color: var(--label); transition: color .2s; }
.hp-crumb a:hover, .hp-crumb [aria-current] { color: var(--black); }
.hp-main h1 { margin-top: 16px; font-size: 72px; line-height: 76px; font-weight: 800; letter-spacing: -0.04em; }
.hp-lead { margin-top: 14px; font-size: 18px; line-height: 28px; color: var(--body); max-width: 620px; }
.hp-illus { margin: 28px 0 0; display: grid; place-items: center; height: 240px; border-radius: 24px; background: var(--grey); }
.hp-illus img { width: auto; height: 170px; }
.hp-pills { display: none; }

/* Sections */
.hp-sec { scroll-margin-top: 100px; padding-top: 48px; }
.hp-sec h2 { font-size: 26px; line-height: 32px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 12px; }
.hp-sec p { margin: 0 0 16px; font-size: 17px; line-height: 28px; color: #3A3A40; }
.hp-list, .hp-steps { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.hp-list li { position: relative; padding-left: 30px; font-size: 16px; line-height: 25px; color: #3A3A40; }
.hp-list li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--lavender) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237852D4' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat; }
.hp-steps { counter-reset: s; }
.hp-steps li { counter-increment: s; position: relative; padding-left: 40px; font-size: 16px; line-height: 25px; color: #3A3A40; min-height: 26px; }
.hp-steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--purple); background: var(--lavender); }
.hp-note { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--grey); }
.hp-sec p.hp-note { font-size: 15px; line-height: 23px; color: var(--body); }
.hp-note svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--purple); }

/* Helpful, FAQ, still need help, up next */
.hp-helpful { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 15px; font-weight: 600; }
.hp-helpful button { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; background: var(--grey); font-size: 14px; font-weight: 600; transition: background-color .2s; }
.hp-helpful button svg { width: 15px; height: 15px; }
.hp-helpful button:hover:not(:disabled) { background: #EBEBEF; }
.hp-helpful button:disabled { cursor: default; opacity: .55; }
.hp-helpful button.picked { opacity: 1; background: var(--lavender); color: var(--purple); }
.hp-thanks { font-weight: 500; color: var(--label); }
.hp-faq { margin-top: 48px; }
.hp-faq h2 { font-size: 26px; line-height: 32px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }
.hp-still { margin-top: 40px; font-size: 16px; line-height: 25px; color: var(--body); }
.hp-still b { color: var(--black); }
.hp-next { display: grid; grid-template-columns: 180px 1fr auto; align-items: center; gap: 24px; margin-top: 40px; padding: 16px 24px 16px 16px; border-radius: 22px; background: var(--grey); color: inherit; transition: background-color .2s; }
.hp-next:hover { background: #EFEFF2; }
.hp-next-img { display: grid; place-items: center; height: 110px; border-radius: 14px; background: var(--white); }
.hp-next-img img { height: 84px; width: auto; }
.hp-next-txt { display: flex; flex-direction: column; gap: 4px; }
.hp-next-txt small { font-size: 13px; font-weight: 600; color: var(--label); }
.hp-next-txt b { font-size: 20px; line-height: 26px; }
.hp-next-txt span { font-size: 15px; line-height: 22px; color: var(--body); }
.hp-next > svg { width: 22px; height: 22px; transition: transform .3s var(--ease); }
.hp-next:hover > svg { transform: translateX(3px); }

/* ---------- GIF-style UI animations (figure.hg) ---------- */
.hg { position: relative; margin: 24px 0 8px; padding: 32px 24px; border-radius: 22px; background: linear-gradient(135deg, #F1EEFB 0%, #E5DFF8 55%, #ECE8FA 100%); display: flex; flex-direction: column; align-items: center; overflow: hidden; }
.hg figcaption { margin-top: 18px; font-size: 14px; line-height: 20px; color: var(--body); text-align: center; }
.hg-ui { position: relative; width: min(440px, 100%); padding: 18px; border-radius: 18px; background: var(--white); box-shadow: 0 1px 2px rgba(27, 27, 27, .05), 0 18px 40px -18px rgba(70, 40, 150, .3); font-size: 14px; }
.hg-ui label { display: block; margin: 12px 0 6px; font-size: 12px; font-weight: 600; color: var(--label); }
.hg [data-at]:not(.hg-press):not(.hg-pick):not(.hg-swap):not(.hg-lvl):not([data-type]) { opacity: 0; transform: translateY(6px); transition: opacity .35s ease, transform .45s cubic-bezier(.22, 1, .36, 1); }
.hg [data-at]:not(.hg-press):not(.hg-pick):not(.hg-swap):not(.hg-lvl):not([data-type]).on { opacity: 1; transform: none; }
.hg-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid #F0F0F3; }
.hg-row:first-child { border-top: 0; padding-top: 0; }
.hg-head { justify-content: space-between; }
.hg-head strong { font-size: 15px; }
.hg-row b { display: block; font-size: 14px; font-weight: 600; }
.hg-row small { display: block; font-size: 12px; color: var(--label); }
.hg-kv small { width: 84px; flex: none; }
.hg-kv b { flex: 1; }
.hg-kv em { font-style: normal; font-weight: 700; color: var(--purple); font-size: 13px; }
.hg-total { justify-content: space-between; }
.hg-total b, .hg-bal { position: relative; font-size: 16px; font-weight: 800; color: var(--black); }
.hg-swap { display: none; }
.hg-swap.on { display: inline; }
.hg-btn { display: inline-flex; align-items: center; justify-content: center; height: 32px; padding: 0 12px; border-radius: 9px; background: var(--purple); color: var(--white); font-size: 13px; font-weight: 600; }
.hg-btn.wide { width: 100%; height: 38px; margin-top: 12px; font-size: 14px; }
.hg-press.on { animation: hgPress .4s cubic-bezier(.2, .9, .3, 1.3); }
@keyframes hgPress { 35% { transform: scale(.94); background: var(--purple-deep); } }
.hg-av { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--white); background: var(--purple); }
.hg-av.c2 { background: var(--cobalt); } .hg-av.c3 { background: var(--teal); }
.hg-tag { margin-left: auto; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--lavender); color: var(--purple); }
.hg-pop { margin: 6px 0 4px; padding: 14px; border-radius: 14px; background: var(--grey); }
.hg-field { display: flex; align-items: center; height: 36px; padding: 0 12px; border-radius: 9px; background: var(--white); box-shadow: inset 0 0 0 1px var(--border); font-size: 14px; }
.hg-field [data-type] { white-space: nowrap; }
.hg-caret { width: 1.5px; height: 16px; margin-left: 1px; background: var(--purple); animation: hgBlink 1s steps(1) infinite; }
@keyframes hgBlink { 50% { opacity: 0; } }
.hg-chips, .hg-days { display: flex; flex-wrap: wrap; gap: 6px; }
.hg-chips span, .hg-days span { display: inline-flex; align-items: center; justify-content: center; height: 30px; padding: 0 11px; border-radius: 999px; background: var(--white); box-shadow: inset 0 0 0 1px var(--border); font-size: 13px; font-weight: 600; color: var(--body); transition: background-color .3s, color .3s, box-shadow .3s; }
.hg-days span { width: 34px; padding: 0; border-radius: 9px; }
.hg-pick.on { background: var(--purple); color: var(--white); box-shadow: none; }
.hg-new { border-top: 1px solid #F0F0F3; }
.hg-toast { position: absolute; left: 50%; top: 10px; translate: -50% 0; z-index: 2; padding: 9px 14px 9px 34px; border-radius: 999px; background: var(--black); color: var(--white); font-size: 13px; font-weight: 600; white-space: nowrap; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .45); }
.hg-toast::before { content: ""; position: absolute; left: 12px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: #3BC47E url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 9px no-repeat; }
.hg-meter { position: relative; height: 8px; margin: 2px 0 8px; border-radius: 8px; background: #EEEAFB; overflow: hidden; }
.hg-lvl { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 8px; background: var(--purple); display: none; }
.hg-lvl.on { display: block; }
.hg-review { width: min(520px, 100%); display: grid; gap: 12px; }
.hg-player { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--black); }
.hg-player img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.hg-bar { position: absolute; left: 12px; right: 12px; bottom: 12px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .35); }
.hg-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 4px; background: var(--white); }
.hg .hg-m { position: absolute; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--purple); box-shadow: 0 0 0 2px var(--white); transform: scale(0); }
.hg .hg-m.on { opacity: 1; transform: scale(1); }
.hg-notes { display: grid; gap: 8px; }
.hg-note { font-size: 13px; line-height: 18px; }
.hg-note em, .hg-line small { font-style: normal; font-weight: 700; color: var(--purple); margin-right: 6px; }
.hg-chat { display: flex; flex-direction: column; gap: 10px; }
.hg-bubble { max-width: 88%; padding: 10px 13px; border-radius: 14px; font-size: 13px; line-height: 19px; }
.hg-bubble.me { align-self: flex-end; background: var(--purple); color: var(--white); border-bottom-right-radius: 4px; }
.hg-bubble.ai { align-self: flex-start; background: var(--grey); border-bottom-left-radius: 4px; display: flex; flex-direction: column; gap: 6px; }
.hg-line small { display: inline-block; width: 70px; margin: 0; }
.hg-dots { align-self: flex-start; display: flex; gap: 4px; padding: 12px 14px; border-radius: 14px; background: var(--grey); }
.hg-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--label); animation: hgDot 1s ease-in-out infinite; }
.hg-dots i:nth-child(2) { animation-delay: .15s; } .hg-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes hgDot { 50% { transform: translateY(-3px); opacity: .5; } }

@media (max-width: 1100px) { .hp-grid { grid-template-columns: 200px minmax(0, 1fr); gap: 48px; } }
@media (max-width: 960px) {
  .hp { padding-top: 88px; }
  .hp-grid { grid-template-columns: 1fr; gap: 0; padding-bottom: 64px; }
  .hp-side { display: none; }
  .hp-main h1 { font-size: 44px; line-height: 50px; }
  .hp-lead { font-size: 16px; line-height: 25px; }
  .hp-illus { height: 180px; border-radius: 20px; }
  .hp-illus img { height: 130px; }
  .hp-pills { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 20px -16px 0; padding: 0 16px; }
  .hp-pills::-webkit-scrollbar { display: none; }
  /* Swipe cue: the row fades at the right edge so a cut-off pill reads as more to scroll */
  .hp-pills { padding-right: 48px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); }
  .hp-pills a { flex: none; height: 36px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: 999px; background: var(--grey); font-size: 14px; font-weight: 600; color: var(--body); }
  .hp-sec { padding-top: 40px; }
  .hp-sec h2, .hp-faq h2 { font-size: 22px; line-height: 28px; }
  .hp-sec p { font-size: 16px; line-height: 26px; }
  .hg { padding: 20px 12px; }
  .hp-next { grid-template-columns: 1fr; gap: 14px; padding: 14px; }
  .hp-next > svg { display: none; }
}
@media (prefers-reduced-motion: reduce) { .hg-caret, .hg-dots i { animation: none; } }
.hp-main { min-width: 0; }
/* FAQ: same rhythm as the sections above, questions flush with the heading, a top rule so the list reads as one block */
.hp-faq h2 { margin-bottom: 16px; }
.hp-faq .faq { border-top: 1px solid var(--border); }
.hp-faq .faq-item summary, .hp-faq .faq-item:first-child summary { padding: 18px 0; font-size: 17px; line-height: 24px; font-weight: 600; }
.hp-faq .faq-a { padding: 0 48px 20px 0; font-size: 16px; line-height: 26px; }
@media (max-width: 960px) { .hp-faq .faq-item summary, .hp-faq .faq-item:first-child summary { font-size: 16px; } }
/* Fixed-size animation boxes: typed text overlays a hidden full copy; the typing dots share the reply's slot */
.hg-typer { position: relative; display: inline-block; }
.hg-ghost { visibility: hidden; }
.hg-typed { position: absolute; left: 0; top: 0; right: 0; }
.hg-field .hg-typer { display: inline-block; white-space: nowrap; }
.hg-stack { display: grid; }
.hg-stack > * { grid-area: 1 / 1; }
.hg-stack .hg-dots { align-self: start; justify-self: start; }
.hg-field .hg-caret { display: none; }
.hg-field .hg-typed::after { content: ""; display: inline-block; width: 1.5px; height: 16px; margin-left: 1px; vertical-align: -3px; background: var(--purple); animation: hgBlink 1s steps(1) infinite; }
