/* ============================================================
   HELP CENTER STYLES
   Loaded after styles.css on /help-center/* pages.
   ============================================================ */

/* Tokens reused from main site:
     --cyan #00A1D6, --purple #6657CC, --ink #2A2840
     --brand-grad linear-gradient(135deg, #33C4E5 → #6657CC)
     fonts: Inter, JetBrains Mono, Instrument Serif
*/

:root{
  --hc-border: #E7E7F0;
  --hc-border-soft: #EFEFF6;
  --hc-bg: #FBFBFD;
  --hc-card: #FFFFFF;
  --hc-text: #2A2840;
  --hc-muted: #6F6E83;
  --hc-faint: #9C9AB0;
  --hc-shadow: 0 1px 2px rgba(20, 18, 50, .04), 0 8px 24px rgba(20, 18, 50, .04);
  --hc-shadow-lift: 0 2px 6px rgba(20, 18, 50, .06), 0 18px 40px rgba(20, 18, 50, .08);
}

body.hc-page{
  background: var(--hc-bg);
}

/* Make the HTML `hidden` attribute win over component display rules */
[hidden]{ display: none !important; }

/* ============ HERO ============ */
.hc-hero{
  position: relative;
  padding: 64px 0 36px;
  overflow: hidden;
  border-bottom: 1px solid var(--hc-border-soft);
  background:
    radial-gradient(900px 380px at 12% -10%, rgba(51, 196, 229, 0.10), transparent 60%),
    radial-gradient(900px 380px at 92% 0%, rgba(102, 87, 204, 0.08), transparent 60%),
    var(--hc-bg);
}
.hc-hero-inner{
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.hc-eyebrow{
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hc-muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.hc-eyebrow .dot{
  width: 7px; height: 7px; border-radius: 50%;
  background: linear-gradient(135deg, #33C4E5, #6657CC);
}
.hc-h1{
  font-family: 'Inter', sans-serif;
  font-size: clamp(34px, 5.5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 600;
  margin: 0 0 14px;
  color: var(--hc-text);
  max-width: 880px;
  text-wrap: balance;
}
.hc-h1 em{
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(135deg, #33C4E5 0%, #6657CC 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hc-lede{
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.55;
  color: var(--hc-muted);
  max-width: 640px;
  margin: 0 0 28px;
}

/* Search */
.hc-search{
  position: relative;
  max-width: 640px;
  margin-bottom: 22px;
}
.hc-search input{
  width: 100%;
  font: inherit;
  font-size: 17px;
  padding: 17px 22px 17px 54px;
  border: 1px solid var(--hc-border);
  background: #fff;
  border-radius: 14px;
  color: var(--hc-text);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
}
.hc-search input::placeholder{ color: var(--hc-faint); }
.hc-search input:focus{
  border-color: #C9C5E6;
  box-shadow: 0 0 0 4px rgba(102, 87, 204, 0.10);
}
.hc-search-icon{
  position: absolute;
  left: 20px; top: 50%;
  transform: translateY(-50%);
  width: 20px; height: 20px;
  color: var(--hc-faint);
  pointer-events: none;
}
.hc-search-clear{
  position: absolute;
  right: 14px; top: 50%;
  transform: translateY(-50%);
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--hc-border-soft);
  color: var(--hc-muted);
  border: 0;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.hc-search-clear:hover{ background: #E4E4EE; color: var(--hc-text); }
.hc-search.has-value .hc-search-clear{ display: inline-flex; }

/* Newsletter CTA card (in hero) */
.hc-news{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 22px;
  background: linear-gradient(135deg, rgba(51, 196, 229, 0.06) 0%, rgba(102, 87, 204, 0.06) 100%);
  border: 1px solid rgba(102, 87, 204, 0.16);
  border-radius: 16px;
  margin-top: 6px;
  max-width: 720px;
}
.hc-news-copy{ min-width: 0; flex: 1; }
.hc-news-h{
  font-size: 16px;
  font-weight: 600;
  color: var(--hc-text);
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.hc-news-sub{
  font-size: 13.5px;
  color: var(--hc-muted);
  line-height: 1.45;
  margin: 0;
}
.hc-news-form{
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.hc-news-form input{
  font: inherit;
  font-size: 14px;
  padding: 11px 14px;
  border: 1px solid var(--hc-border);
  background: #fff;
  border-radius: 10px;
  color: var(--hc-text);
  width: 220px;
  outline: none;
  -webkit-appearance: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.hc-news-form input:focus{
  border-color: #C9C5E6;
  box-shadow: 0 0 0 3px rgba(102, 87, 204, 0.10);
}
.hc-news-form button{
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 11px 18px;
  background: var(--ink, #2A2840);
  color: #fff;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.1s, opacity 0.15s;
}
.hc-news-form button:hover{ transform: translateY(-1px); }
.hc-news-form button:disabled{ opacity: 0.6; cursor: progress; }
.hc-news-success{
  font-size: 14px;
  color: #1E7A4F;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(30, 122, 79, 0.08);
  border-radius: 10px;
  flex-shrink: 0;
  transform-origin: center;
}
.hc-news-success.is-celebrating{
  animation: hc-success-pop 0.7s cubic-bezier(.34, 1.56, .64, 1);
}
@keyframes hc-success-pop{
  0%   { opacity: 0; transform: scale(.5) translateY(8px); }
  55%  { opacity: 1; transform: scale(1.08) translateY(0); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
.hc-news-success.is-celebrating::before{
  animation: hc-check-pulse 1.2s ease-out;
}
@keyframes hc-check-pulse{
  0%, 100% { transform: scale(1); }
  30%      { transform: scale(1.35) rotate(-8deg); }
  60%      { transform: scale(1.15) rotate(4deg); }
}

/* Confetti — particles burst from the success message on submit */
.hc-confetti{
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  width: 0; height: 0;
}
.hc-confetti-piece{
  position: absolute;
  left: 0; top: 0;
  width: 9px; height: 9px;
  border-radius: 2px;
  transform: translate(-50%, -50%);
  animation: hc-confetti-fly 1100ms cubic-bezier(.18, .76, .3, 1) forwards;
  will-change: transform, opacity;
}
.hc-confetti-piece.round{ border-radius: 50%; }
.hc-confetti-piece.streak{ width: 14px; height: 4px; border-radius: 2px; }
@keyframes hc-confetti-fly{
  0%   { transform: translate(-50%, -50%) rotate(0deg) scale(0.6); opacity: 1; }
  10%  { transform: translate(-50%, -50%) rotate(0deg) scale(1);   opacity: 1; }
  100% {
    transform:
      translate(calc(-50% + var(--dx)), calc(-50% + var(--dy)))
      rotate(var(--rot))
      scale(.7);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce){
  .hc-news-success.is-celebrating,
  .hc-news-success.is-celebrating::before,
  .hc-confetti-piece{ animation: none !important; }
  .hc-confetti{ display: none !important; }
}
.hc-news-success::before{
  content: "";
  width: 18px; height: 18px;
  background: #1E7A4F;
  border-radius: 50%;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'><path d='M2 7l3 3 7-7' stroke='white' stroke-width='2.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / 14px no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'><path d='M2 7l3 3 7-7' stroke='white' stroke-width='2.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / 14px no-repeat;
}
.hc-news-error{
  font-size: 13px;
  color: #C44848;
  margin-top: 6px;
  display: none;
}
.hc-news-honeypot{ position: absolute; left: -9999px; }

/* ============ BODY ============ */
.hc-body{
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px 24px 80px;
}

/* Tag filter bar */
.hc-tags{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--hc-border-soft);
}
.hc-tag{
  font: inherit;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--hc-muted);
  background: #fff;
  border: 1px solid var(--hc-border);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
  white-space: nowrap;
}
.hc-tag:hover{
  background: #F4F4F9;
  color: var(--hc-text);
  transform: translateY(-1px);
}
.hc-tag.active{
  background: var(--ink, #2A2840);
  color: #fff;
  border-color: var(--ink, #2A2840);
}
.hc-tag .count{
  opacity: 0.6;
  margin-left: 4px;
  font-variant-numeric: tabular-nums;
}

/* Meta line above grid */
.hc-meta{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hc-muted);
}
.hc-meta-count b{ color: var(--hc-text); font-weight: 600; }

/* Article grid */
.hc-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.hc-card{
  display: flex;
  flex-direction: column;
  background: var(--hc-card);
  border: 1px solid var(--hc-border);
  border-radius: 16px;
  padding: 24px 22px 20px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s, box-shadow 0.2s, border-color 0.15s;
  min-height: 200px;
}
.hc-card:hover{
  transform: translateY(-3px);
  border-color: #D8D5EC;
  box-shadow: var(--hc-shadow-lift);
}
.hc-card-tag{
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--purple, #6657CC);
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hc-card-tag::before{
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: linear-gradient(135deg, #33C4E5, #6657CC);
}
.hc-card-title{
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--hc-text);
  margin: 0 0 10px;
  text-wrap: balance;
}
.hc-card-desc{
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--hc-muted);
  margin: 0 0 auto;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hc-card-foot{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--hc-border-soft);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  color: var(--hc-faint);
}
.hc-card-arrow{
  color: var(--purple, #6657CC);
  display: inline-flex;
  transition: transform 0.15s;
}
.hc-card:hover .hc-card-arrow{ transform: translateX(3px); }

/* Empty state */
.hc-empty{
  text-align: center;
  padding: 60px 20px;
  color: var(--hc-muted);
}
.hc-empty-h{
  font-size: 18px;
  font-weight: 600;
  color: var(--hc-text);
  margin: 0 0 8px;
}
.hc-empty-p{ font-size: 14px; margin: 0 0 16px; }
.hc-empty button{
  font: inherit;
  font-size: 13.5px;
  padding: 9px 18px;
  background: var(--ink, #2A2840);
  color: #fff;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

/* Pagination */
.hc-pagination{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.hc-page-btn{
  font: inherit;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  background: #fff;
  border: 1px solid var(--hc-border);
  border-radius: 10px;
  color: var(--hc-text);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.hc-page-btn:hover:not(:disabled){
  background: #F4F4F9;
  border-color: #D8D5EC;
}
.hc-page-btn.active{
  background: var(--ink, #2A2840);
  border-color: var(--ink, #2A2840);
  color: #fff;
}
.hc-page-btn:disabled{ opacity: 0.4; cursor: not-allowed; }
.hc-page-ellipsis{
  color: var(--hc-faint);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  padding: 0 4px;
  font-size: 13px;
}

/* ============ ARTICLE PAGE ============ */
.hc-article-shell{
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 24px 0;
}
.hc-breadcrumb{
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--hc-muted);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.hc-breadcrumb a{
  color: var(--hc-muted);
  text-decoration: none;
  transition: color 0.12s;
}
.hc-breadcrumb a:hover{ color: var(--hc-text); }
.hc-breadcrumb .sep{ color: var(--hc-faint); }
.hc-breadcrumb .here{ color: var(--hc-text); }

.hc-article-head{
  max-width: 760px;
  margin: 0 auto 40px;
  text-align: left;
}
.hc-article-tag{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(102, 87, 204, 0.08);
  color: var(--purple, #6657CC);
  border-radius: 999px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 18px;
  text-decoration: none;
  transition: background 0.15s;
}
.hc-article-tag:hover{ background: rgba(102, 87, 204, 0.14); }
.hc-article-tag::before{
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: linear-gradient(135deg, #33C4E5, #6657CC);
}
.hc-article-h1{
  font-family: 'Inter', sans-serif;
  font-size: clamp(28px, 4.2vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.022em;
  font-weight: 600;
  color: var(--hc-text);
  margin: 0 0 16px;
  text-wrap: balance;
}
.hc-article-meta{
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--hc-muted);
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.hc-article-meta .sep{ color: var(--hc-faint); }

/* Article body — prose */
.hc-prose{
  max-width: 760px;
  margin: 0 auto;
  padding-bottom: 56px;
}
.hc-prose > * + *{ margin-top: 1.1em; }
.hc-prose p{
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--hc-text);
}
.hc-prose h2{
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--hc-text);
  margin-top: 2.2em;
  margin-bottom: 0.5em;
  line-height: 1.25;
  scroll-margin-top: 90px;
}
.hc-prose h3{
  font-size: 19px;
  font-weight: 600;
  color: var(--hc-text);
  margin-top: 1.8em;
  margin-bottom: 0.4em;
  line-height: 1.3;
  scroll-margin-top: 90px;
}
.hc-prose h4{
  font-size: 16.5px;
  font-weight: 600;
  color: var(--hc-text);
  margin-top: 1.5em;
  margin-bottom: 0.3em;
}
.hc-prose ul, .hc-prose ol{
  padding-left: 1.4em;
  font-size: 16px;
  line-height: 1.65;
  color: var(--hc-text);
}
.hc-prose ul{ list-style: disc; }
.hc-prose ol{ list-style: decimal; }
.hc-prose li{ margin-top: 0.45em; }
.hc-prose li ul, .hc-prose li ol{ margin-top: 0.4em; }
.hc-prose strong{ color: var(--hc-text); font-weight: 600; }
.hc-prose em{ font-style: italic; }
.hc-prose a{
  color: var(--purple, #6657CC);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.12s;
}
.hc-prose a:hover{ color: var(--cyan, #00A1D6); }
.hc-prose code{
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.88em;
  background: #F4F4F9;
  border: 1px solid var(--hc-border-soft);
  padding: 1px 6px;
  border-radius: 5px;
  color: #4A3D9C;
}

/* Article footer / next-prev */
.hc-article-foot{
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 0 0;
  border-top: 1px solid var(--hc-border-soft);
}
.hc-back-link{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hc-muted);
  text-decoration: none;
  transition: color 0.12s, transform 0.12s;
}
.hc-back-link:hover{ color: var(--hc-text); transform: translateX(-2px); }

/* Related articles */
.hc-related{
  max-width: 760px;
  margin: 48px auto 0;
}
.hc-related-h{
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hc-muted);
  margin: 0 0 18px;
  font-weight: 500;
}
.hc-related-list{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.hc-related-card{
  display: block;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--hc-border);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, transform 0.12s;
}
.hc-related-card:hover{
  border-color: #C9C5E6;
  transform: translateY(-2px);
}
.hc-related-title{
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--hc-text);
  margin: 0;
}

/* CTA banner above footer (article pages) */
.hc-cta-banner{
  max-width: 1100px;
  margin: 56px auto 0;
  padding: 40px 32px;
  background: linear-gradient(135deg, #2A2840 0%, #3a3458 100%);
  color: #fff;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.hc-cta-banner-h{
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 6px;
  text-wrap: balance;
}
.hc-cta-banner-p{
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
  max-width: 480px;
  line-height: 1.5;
}
.hc-cta-banner-btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  background: #fff;
  color: var(--ink, #2A2840);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  font-size: 14.5px;
  transition: transform 0.12s, box-shadow 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.hc-cta-banner-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 980px){
  .hc-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px){
  .hc-hero{ padding: 44px 0 28px; }
  .hc-news{
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .hc-news-form{ width: 100%; }
  .hc-news-form input{ flex: 1; width: auto; min-width: 0; }
  .hc-news-success{ justify-content: center; }
  .hc-related-list{ grid-template-columns: 1fr; }
  .hc-cta-banner{ padding: 32px 24px; text-align: center; flex-direction: column; }
  .hc-cta-banner-p{ margin-inline: auto; }
}
@media (max-width: 600px){
  .hc-grid{ grid-template-columns: 1fr; }
  .hc-tags{ gap: 6px; padding-bottom: 18px; margin-bottom: 22px; }
  .hc-tag{ font-size: 11px; padding: 7px 12px; }
  .hc-meta{ flex-direction: column; align-items: flex-start; gap: 8px; }
  .hc-body{ padding: 26px 20px 60px; }
  .hc-hero-inner{ padding: 0 20px; }
  .hc-article-shell{ padding: 22px 20px 0; }
  .hc-prose p, .hc-prose ul, .hc-prose ol{ font-size: 15.5px; }
  .hc-prose h2{ font-size: 21px; }
  .hc-prose h3{ font-size: 17.5px; }
}
