/* Help center (/help, /help/{slug}), 2026-09-25.
   Public-realm design system (docs/DESIGN_GUIDE.md): cream page, charcoal ink, Outfit display,
   Inter body, white cards on a hairline border, pill buttons. Hero mirrors the pricing hero. */

.help-page {
  max-width: 64rem; margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* HERO */
.help-hero { text-align: center; padding: 4.5rem 0 2.5rem; }
.help-badge {
  display: inline-block; padding: 0.4rem 1rem; border-radius: var(--radius-pill);
  background: rgba(42, 42, 42, 0.08); font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.15em; color: #555;
  margin-bottom: 1.5rem;
}
.help-hero h1 {
  font-family: 'Outfit', sans-serif; font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.25rem); margin-bottom: 0.9rem;
}
.help-hero p {
  color: #6b6b6b; font-size: 1.05rem; line-height: 1.7;
  max-width: 38rem; margin: 0 auto 2rem;
}
.help-filter {
  display: flex; align-items: center; gap: 0.6rem;
  max-width: 30rem; margin: 0 auto;
  background: #fff; border: 1px solid #e5e2d9; border-radius: var(--radius-pill);
  padding: 0 1.1rem; color: #888;
  box-shadow: 0 8px 24px rgba(42, 42, 42, 0.05);
}
.help-filter:focus-within { border-color: var(--primary); color: var(--primary); }
.help-filter input {
  flex: 1; min-width: 0; border: 0; outline: none; background: transparent;
  font: 400 1rem/1.4 'Inter', sans-serif; color: var(--primary);
  padding: 0.85rem 0;
}

/* INDEX GROUPS + CARDS */
.help-group { margin-top: 2.5rem; }
.help-group h2, .help-related h2 {
  font-family: 'Outfit', sans-serif; font-size: 1.25rem; font-weight: 600;
  margin-bottom: 1rem;
}
.help-cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1rem;
}
.help-card {
  display: flex; flex-direction: column; gap: 0.45rem;
  background: #fff; border: 1px solid #eee; border-radius: var(--radius-card);
  padding: 1.35rem 1.4rem; text-decoration: none; color: var(--primary);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.help-card:hover {
  border-color: #d8d4c8; transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(42, 42, 42, 0.08);
}
.help-card-title { font-family: 'Outfit', sans-serif; font-size: 1.08rem; font-weight: 600; }
.help-card-desc { font-size: 0.9rem; line-height: 1.55; color: #666; }
.help-card-go { margin-top: auto; padding-top: 0.4rem; font-size: 0.8rem; font-weight: 600; color: #888; }
.help-empty { margin-top: 2rem; text-align: center; color: #777; }

/* ARTICLE */
.help-article-page { max-width: 48rem; }
.help-crumbs {
  display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center;
  padding-top: 2.5rem; font-size: 0.82rem; color: #888;
}
.help-crumbs a { color: #555; text-decoration: none; font-weight: 600; }
.help-crumbs a:hover { text-decoration: underline; }
.help-preview-note {
  margin-top: 1.25rem; padding: 0.8rem 1rem; border-radius: 0.75rem;
  background: #fff4d6; border: 1px solid #f0d58a; font-size: 0.88rem;
}
.help-article-head { padding: 1.5rem 0 0.5rem; }
.help-article-head h1 {
  font-family: 'Outfit', sans-serif; font-weight: 700;
  font-size: clamp(1.9rem, 4.5vw, 2.6rem); line-height: 1.15; margin-bottom: 0.5rem;
}
.help-updated { color: #888; font-size: 0.85rem; }

.help-article h2 {
  font-family: 'Outfit', sans-serif; font-size: 1.3rem; font-weight: 600;
  margin: 2.25rem 0 0.9rem;
}
.help-article h3 { font-family: 'Outfit', sans-serif; font-size: 1.05rem; font-weight: 600; margin-bottom: 0.35rem; }
.help-article p, .help-article li { font-size: 0.98rem; line-height: 1.7; }
.help-article p { margin-bottom: 0.8rem; }
.help-article ul { padding-left: 1.3rem; margin-bottom: 0.9rem; }
.help-article li { margin-bottom: 0.35rem; }
.help-article a { color: var(--primary); font-weight: 600; }
.help-article strong { font-weight: 600; }
.help-intro { margin-top: 1.25rem; font-size: 1.02rem; }
.help-intro p { font-size: 1.05rem; color: #444; }

.help-path {
  display: inline; padding: 0.1rem 0.45rem; border-radius: 0.4rem;
  background: #efece3; font-size: 0.9em; font-weight: 600; white-space: normal;
}
.help-note {
  margin: 1rem 0; padding: 1rem 1.2rem; border-radius: 1rem;
  background: #fff; border: 1px solid #e5e2d9; font-size: 0.93rem; line-height: 1.65;
}
.help-note strong { display: block; margin-bottom: 0.2rem; }

.help-steps { list-style: none; padding: 0; margin: 0; counter-reset: none; }
.help-step {
  display: flex; gap: 1rem; align-items: flex-start;
  background: #fff; border: 1px solid #eee; border-radius: var(--radius-card);
  padding: 1.2rem 1.3rem; margin-bottom: 0.8rem;
}
.help-step-num {
  flex: 0 0 auto; width: 2rem; height: 2rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary); color: #fff;
  font: 700 0.9rem/1 'Outfit', sans-serif;
}
.help-step-body { min-width: 0; }
.help-step-body p:last-child, .help-step-body ul:last-child { margin-bottom: 0; }

.help-faq { display: flex; flex-direction: column; gap: 0.6rem; }
.help-faq-item {
  background: #fff; border: 1px solid #eee; border-radius: 1rem; padding: 0 1.2rem;
}
.help-faq-item summary {
  cursor: pointer; list-style: none; padding: 1rem 0;
  font-weight: 600; font-size: 0.98rem; display: flex; justify-content: space-between; gap: 1rem;
}
.help-faq-item summary::-webkit-details-marker { display: none; }
.help-faq-item summary::after { content: '+'; font-weight: 400; color: #888; }
.help-faq-item[open] summary::after { content: '\2212'; }
.help-faq-a { padding-bottom: 1rem; }
.help-faq-a p:last-child { margin-bottom: 0; }

/* STILL STUCK */
.help-stuck {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 3rem; padding: 1.75rem 2rem; border-radius: 1.5rem;
  background: var(--primary); color: #fff;
  box-shadow: 0 20px 40px rgba(42, 42, 42, 0.18);
}
.help-stuck h2 { font-family: 'Outfit', sans-serif; font-size: 1.3rem; font-weight: 600; margin-bottom: 0.3rem; }
.help-stuck p { color: rgba(255, 255, 255, 0.75); font-size: 0.93rem; line-height: 1.6; max-width: 30rem; }
.help-stuck-btn {
  display: inline-block; padding: 0.8rem 1.6rem; border-radius: var(--radius-pill);
  background: #fff; color: var(--primary); text-decoration: none;
  font-weight: 700; font-size: 0.92rem; white-space: nowrap;
}
.help-stuck-btn:hover { background: var(--cream); }

.help-related { margin-top: 3rem; }
.help-back { margin-top: 2.5rem; }
.help-back a { color: #555; font-weight: 600; text-decoration: none; }
.help-back a:hover { text-decoration: underline; }

@media (max-width: 768px) {
  .help-page { padding: 0 1rem 3rem; }
  .help-hero { padding: 3rem 0 2rem; }
  .help-step { padding: 1rem; gap: 0.8rem; }
  .help-stuck { padding: 1.5rem; }
  .help-stuck-btn { width: 100%; text-align: center; }
}
