/* Clinic App — Help Center
   Additive layer on styles.css. Reuses .nav, .footer, .btn, .brand, .eyebrow,
   and (for article prose) the .post-* classes from prose.css.
   Help-only pieces are namespaced .help-*. */

/* ============================================================
   LAYOUT
   ============================================================ */
.help-main { overflow-x: hidden; }
.help-wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* ============================================================
   HERO
   ============================================================ */
.help-hero {
  background: var(--dark);
  color: #fff;
  position: relative;
  overflow: hidden;
  contain: paint;
  text-align: center;
  padding: 0 0 0;
}

/* Grid texture */
.help-hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}

/* Magenta aura */
.help-hero__aura {
  position: absolute;
  top: -40%; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 600px;
  border-radius: 50%;
  background: linear-gradient(
    120deg,
    rgba(223,32,129,.4) 0%,
    rgba(179,32,138,.25) 35%,
    rgba(122,47,158,.18) 65%,
    rgba(6,179,216,.12) 100%
  );
  filter: blur(100px);
  pointer-events: none;
}

.help-hero__in {
  position: relative;
  z-index: 1;
  padding: 80px 0 72px;
  max-width: 780px;
  margin: 0 auto;
}

/* Status badge */
.help-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: 28px;
}
.help-hero__dot { display: none; }

.help-hero h1 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: .96;
  font-size: clamp(42px, 7vw, 80px);
  margin: 0 auto 18px;
}

.help-hero p {
  color: rgba(255,255,255,.65);
  font-size: clamp(16px, 1.6vw, 19px);
  margin: 0 auto 36px;
  max-width: 46ch;
}

/* ============================================================
   SEARCH
   ============================================================ */
.help-search-wrap { max-width: 580px; margin: 0 auto 26px; }

.help-search {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  padding: 4px 12px 4px 22px;
  cursor: text;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.help-search:focus-within {
  border-color: rgba(223,32,129,.7);
  box-shadow: 0 0 0 4px rgba(223,32,129,.18);
  background: rgba(255,255,255,.11);
}
.help-search svg {
  width: 18px; height: 18px;
  flex: none;
  opacity: .55;
  transition: opacity .2s;
}
.help-search:focus-within svg { opacity: .85; }
.help-search input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  padding: 15px 0;
}
.help-search input::placeholder { color: rgba(255,255,255,.42); }
.help-search__kbd {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,.35);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 6px;
  padding: 3px 7px;
  flex: none;
  font-family: inherit;
}

/* ============================================================
   POPULAR ARTICLES STRIP
   ============================================================ */
.help-popular {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.help-popular__label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.38);
  margin-right: 4px;
}
.help-popular__chip {
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255,255,255,.72);
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  padding: 6px 16px;
  text-decoration: none;
  transition: color .2s, background .2s, border-color .2s;
}
.help-popular__chip:hover {
  color: #fff;
  background: rgba(223,32,129,.22);
  border-color: rgba(223,32,129,.5);
}

/* ============================================================
   CATEGORY GRID
   ============================================================ */
.help-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 60px 0 28px;
}
@media (max-width: 900px) { .help-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .help-grid { grid-template-columns: 1fr; padding-top: 40px; } }

.help-cat {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--panel);
  padding: 28px 26px 24px;
  transition: border-color .25s, box-shadow .25s, transform .25s;
  position: relative;
  overflow: hidden;
}
.help-cat::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at top left, rgba(223,32,129,.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.help-cat:hover {
  border-color: rgba(223,32,129,.35);
  box-shadow: 0 8px 30px -12px rgba(223,32,129,.2), var(--shadow-sm);
  transform: translateY(-3px);
}
.help-cat:hover::after { opacity: 1; }

/* Icon */
.help-cat__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.help-cat__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.help-cat__icon svg {
  width: 20px; height: 20px;
  stroke: #fff;
}
.help-cat__icon--muted {
  background: var(--cream-2);
}
.help-cat__icon--muted svg { stroke: var(--ink-50); }

.help-cat__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -.02em;
  color: var(--ink);
  line-height: 1.1;
}
.help-cat__count {
  font-size: 12px;
  color: var(--ink-50);
  margin-top: 2px;
}
.help-cat__count--soon {
  color: var(--ink-50);
  font-style: italic;
}

.help-cat ul {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}
.help-cat li { margin: 0; }
.help-cat li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  color: var(--ink-70);
  font-size: 14.5px;
  line-height: 1.4;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: color .18s;
}
.help-cat li:last-child a { border-bottom: none; }
.help-cat li a:hover { color: var(--pink); }
.help-cat__arrow {
  font-size: 14px;
  color: var(--ink-50);
  flex: none;
  margin-left: 8px;
  transition: transform .2s, color .18s;
}
.help-cat li a:hover .help-cat__arrow {
  color: var(--pink);
  transform: translateX(3px);
}

.help-cat--soon { opacity: .55; pointer-events: none; }
.help-cat__soon {
  font-size: 13px;
  color: var(--ink-50);
  margin-top: 0;
  line-height: 1.5;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.help-empty {
  text-align: center;
  color: var(--ink-50);
  padding: 24px 0 48px;
  display: none;
  font-size: 15px;
}

/* ============================================================
   CONTACT STRIP
   ============================================================ */
.help-contact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin: 8px 0 80px;
}
@media (max-width: 700px) {
  .help-contact { grid-template-columns: 1fr; }
}
.help-contact__item {
  background: var(--cream-2);
  padding: 28px 26px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.help-contact__icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.help-contact__icon svg {
  width: 18px; height: 18px;
  stroke: var(--pink);
}
.help-contact__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: 15px;
  color: var(--ink);
  letter-spacing: -.01em;
}
.help-contact__sub {
  font-size: 13.5px;
  color: var(--ink-50);
  margin-top: 3px;
  line-height: 1.4;
}
.help-contact__sub a { color: var(--pink); font-weight: 600; }

/* ============================================================
   ARTICLE PAGES
   ============================================================ */

/* Breadcrumb */
.help-breadcrumb {
  background: var(--dark);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.help-breadcrumb__in {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,.45);
}
.help-breadcrumb__in a {
  color: rgba(255,255,255,.55);
  text-decoration: none;
  font-weight: 500;
  transition: color .18s;
}
.help-breadcrumb__in a:hover { color: rgba(255,255,255,.9); }
.help-breadcrumb__sep { opacity: .35; font-size: 11px; }
.help-breadcrumb__cur { color: rgba(255,255,255,.75); font-weight: 600; }
/* Mobile: hide middle crumb */
@media (max-width: 480px) {
  .help-breadcrumb__mid { display: none; }
  .help-breadcrumb__sep--mid { display: none; }
}

/* Article hero */
.help-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255,255,255,.6);
  margin-bottom: 20px;
  text-decoration: none;
  letter-spacing: .01em;
  transition: color .18s, gap .18s;
}
.help-back:hover { color: #fff; gap: 9px; }

.post-hero--help {
  background: var(--dark);
  position: relative;
  overflow: hidden;
}
.post-hero--help::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
}
.post-hero--help::after {
  content: "";
  position: absolute; top: -50%; right: -10%; width: 560px; height: 560px;
  border-radius: 50%;
  background: linear-gradient(120deg,rgba(223,32,129,.3),rgba(6,179,216,.1));
  filter: blur(100px);
}
.post-hero--help .post-hero__in {
  padding: 54px 0 46px;
  max-width: 800px;
}
.post-hero--help h1 {
  font-size: clamp(30px, 5vw, 52px);
  max-width: 24ch;
}

/* Article layout centered (no sidebar) */
.help-article .post-layout {
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
}

/* "Was this helpful?" widget */
.help-feedback {
  margin: 52px 0 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  text-align: center;
  background: var(--cream-2);
}
.help-feedback__q {
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -.02em;
  color: var(--ink);
  margin-bottom: 18px;
}
.help-feedback__btns {
  display: flex;
  justify-content: center;
  gap: 12px;
}
.help-feedback__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1.5px solid var(--line-2);
  background: var(--panel);
  color: var(--ink-70);
  cursor: pointer;
  transition: border-color .2s, color .2s, background .2s, transform .15s;
}
.help-feedback__btn:hover {
  border-color: var(--pink);
  color: var(--pink);
  transform: translateY(-1px);
}
.help-feedback__btn--yes:hover { background: rgba(223,32,129,.06); }
.help-feedback__btn--no:hover { border-color: var(--ink-50); color: var(--ink); background: var(--cream-2); }
.help-feedback__thanks {
  font-size: 15px;
  color: var(--ink-50);
  display: none;
  margin-top: 4px;
}
.help-feedback--done .help-feedback__btns { display: none; }
.help-feedback--done .help-feedback__thanks { display: block; }

/* Related articles */
.help-related {
  margin: 40px 0 0;
}
.help-related__h {
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -.02em;
  color: var(--ink);
  margin-bottom: 16px;
}
.help-related__list {
  list-style: none;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.help-related__list li { border-bottom: 1px solid var(--line); }
.help-related__list li:last-child { border-bottom: none; }
.help-related__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-70);
  text-decoration: none;
  background: var(--panel);
  transition: color .18s, background .18s;
}
.help-related__list a:hover {
  color: var(--pink);
  background: var(--cream-2);
}
.help-related__list a span {
  font-size: 14px;
  color: var(--ink-50);
  flex: none;
  margin-left: 12px;
  transition: transform .2s, color .18s;
}
.help-related__list a:hover span {
  color: var(--pink);
  transform: translateX(3px);
}

/* ============================================================
   CTA TWEAKS
   ============================================================ */
.cta__note {
  margin-top: 16px;
  font-size: 13.5px;
  color: rgba(255,255,255,.4);
  text-align: center;
}

/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 540px) {
  .help-hero__in { padding: 52px 0 44px; }
  .help-hero h1 { font-size: clamp(36px, 10vw, 52px); }
  .help-hero p { font-size: 15px; }
  .help-search input { font-size: 15px; padding: 13px 0; }
  .help-search__kbd { display: none; }
  .help-popular__chip { font-size: 12.5px; padding: 5px 13px; }
  .help-cat { padding: 22px 18px 18px; }
  .help-cat__title { font-size: 16px; }
  .help-cat li a { font-size: 14px; padding: 9px 0; }
  .help-contact__item { padding: 20px 18px; }
  .help-feedback { padding: 24px 18px; }
}

@media (max-width: 400px) {
  .help-hero__in { padding: 40px 0 36px; }
  .help-search { padding: 4px 10px 4px 16px; }
  .help-contact { grid-template-columns: 1fr; }
}

