/* Reply Help — standalone help site on /help */

.help-site {
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(255, 180, 154, 0.45), transparent 60%),
    radial-gradient(700px 380px at 90% 0%, rgba(255, 107, 87, 0.14), transparent 55%),
    var(--paper);
}

.help-brand-tag {
  font-style: normal;
  font-weight: 700;
  color: var(--coral-deep);
  margin-left: 0.15em;
}

/* ── Desktop hover nav ─────────────────────────────── */
.help-topnav { z-index: 60; }
.help-topnav .topnav__actions .btn {
  min-height: 36px;
  padding: 0 16px;
  font-size: 0.86rem;
}
.help-nav {
  display: none;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
  min-width: 0;
}
@media (min-width: 980px) {
  .help-nav { display: flex; }
}
.help-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}
.help-nav__link:hover,
.help-nav__item.is-open > .help-nav__link,
.help-nav__item:hover > .help-nav__link,
.help-nav__item:focus-within > .help-nav__link {
  color: var(--ink);
  background: color-mix(in srgb, var(--paper-2) 70%, transparent);
}
.help-nav__chev {
  font-size: 18px !important;
  opacity: 0.55;
  transition: transform 0.2s ease;
}
.help-nav__item {
  position: relative;
}
.help-nav__item:hover .help-nav__chev,
.help-nav__item:focus-within .help-nav__chev,
.help-nav__item.is-open .help-nav__chev {
  transform: rotate(180deg);
  opacity: 1;
  color: var(--coral-deep);
}

.help-nav__panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  width: min(380px, calc(100vw - 32px));
  padding: 10px;
  border-radius: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(26, 20, 18, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
  z-index: 70;
}
.help-nav__panel--mega {
  width: min(720px, calc(100vw - 40px));
  left: 50%;
}
.help-nav__item:hover > .help-nav__panel,
.help-nav__item:focus-within > .help-nav__panel,
.help-nav__item.is-open > .help-nav__panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
/* bridge hover gap */
.help-nav__item::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 100%;
  height: 14px;
}

.help-nav__panel-head {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}
.help-nav__panel-head .material-symbols-outlined {
  width: 36px; height: 36px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--peach-soft) 80%, var(--white));
  color: var(--coral-deep);
  font-size: 20px;
}
.help-nav__panel-head strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: -0.02em;
}
.help-nav__panel-head p {
  margin: 2px 0 0;
  font-size: 0.78rem;
  color: var(--ink-soft);
  line-height: 1.35;
}
.help-nav__panel-cta {
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--coral-deep);
  white-space: nowrap;
}

.help-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: min(58vh, 420px);
  overflow: auto;
}
.help-nav__list a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: background 0.12s ease;
}
.help-nav__list a:hover {
  background: color-mix(in srgb, var(--paper-2) 65%, transparent);
}
.help-nav__item-title {
  grid-column: 1;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.help-nav__item-sum {
  grid-column: 1;
  font-size: 0.78rem;
  color: var(--ink-soft);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.help-nav__list em {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--coral-deep);
  white-space: nowrap;
}

.help-nav__mega {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 4px;
}
.help-nav__group {
  padding: 8px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--paper) 80%, var(--white));
}
.help-nav__group-head {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  text-decoration: none;
  padding: 8px;
  border-radius: 12px;
  margin-bottom: 4px;
}
.help-nav__group-head:hover { background: var(--white); }
.help-nav__group-head .material-symbols-outlined {
  color: var(--coral-deep);
  font-size: 22px;
}
.help-nav__group-head strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
}
.help-nav__group-head small {
  display: block;
  color: var(--ink-soft);
  font-size: 0.75rem;
  line-height: 1.3;
  margin-top: 2px;
}
.help-nav__group ul {
  list-style: none;
  margin: 0;
  padding: 0 4px 4px;
}
.help-nav__group li a {
  display: block;
  padding: 7px 8px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.help-nav__group li a:hover {
  color: var(--ink);
  background: var(--white);
}
.help-nav__all { color: var(--coral-deep) !important; font-weight: 800 !important; }

/* Keep last items from overflowing viewport */
.help-nav__item:nth-last-child(-n+2) .help-nav__panel {
  left: auto;
  right: 0;
  transform: translateY(6px);
}
.help-nav__item:nth-last-child(-n+2):hover .help-nav__panel,
.help-nav__item:nth-last-child(-n+2):focus-within .help-nav__panel,
.help-nav__item:nth-last-child(-n+2).is-open .help-nav__panel {
  transform: translateY(0);
}

/* Mobile drawer accordion — hidden until burger opens */
.nav-drawer.help-drawer {
  display: none;
  gap: 4px;
  padding-bottom: 16px;
}
.topnav.is-open .nav-drawer.help-drawer {
  display: grid;
}
.help-drawer__sec {
  border-bottom: 1px solid var(--line);
}
.help-drawer__sec summary,
.help-drawer__top {
  display: block;
  padding: 14px 0;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  text-decoration: none;
  color: var(--ink);
}
.help-drawer__sec summary::-webkit-details-marker { display: none; }
.help-drawer__sec summary::after {
  content: "+";
  float: right;
  color: var(--coral-deep);
}
.help-drawer__sec[open] summary::after { content: "–"; }
.help-drawer__list {
  display: grid;
  gap: 2px;
  padding: 0 0 12px;
}
.help-drawer__list a {
  display: block;
  padding: 8px 0 8px 8px;
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.92rem;
  border-left: 2px solid transparent;
}
.help-drawer__list a:hover {
  color: var(--ink);
  border-left-color: var(--coral);
}
.help-drawer__group {
  margin-top: 8px;
  color: var(--ink) !important;
  font-weight: 800 !important;
}

@media (prefers-reduced-motion: reduce) {
  .help-nav__panel,
  .help-nav__chev,
  .help-nav__link { transition: none; }
}

.help-main { min-height: 60vh; padding-bottom: 64px; }

.help-hero {
  padding: 56px 0 28px;
}
.help-hero--compact { padding: 36px 0 12px; }
.help-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin: 0 0 12px;
  max-width: 16ch;
}
.help-hero--compact h1 { max-width: 22ch; }
.help-kicker {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--coral-deep);
}
.help-lead {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 42ch;
}
.help-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 600;
}
.help-meta .material-symbols-outlined { font-size: 18px; }

.help-crumbs {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  font-size: 0.85rem; font-weight: 600; color: var(--ink-soft);
  margin-bottom: 14px;
}
.help-crumbs a { text-decoration: none; color: var(--ink); }
.help-crumbs a:hover { color: var(--coral-deep); }

.help-search {
  position: relative;
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px 10px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  max-width: 640px;
  box-shadow: var(--shadow);
  z-index: 5;
}
.help-search.is-open {
  border-radius: 22px 22px 0 0;
  border-bottom-color: transparent;
}
.help-search .material-symbols-outlined { color: var(--ink-soft); }
.help-search input {
  flex: 1;
  border: 0;
  outline: none;
  font: inherit;
  font-size: 1rem;
  background: transparent;
  min-width: 0;
}
.help-search .btn { flex-shrink: 0; }
.help-search-hint {
  margin: 10px 0 0;
  max-width: 640px;
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.help-suggest {
  position: absolute;
  left: -1px;
  right: -1px;
  top: calc(100% - 1px);
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 1px solid var(--line);
  border-radius: 0 0 22px 22px;
  box-shadow: 0 18px 40px rgba(26, 20, 18, 0.1);
  padding: 6px;
  max-height: min(360px, 50vh);
  overflow: auto;
}
.help-suggest[hidden] { display: none !important; }
.help-suggest a {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
}
.help-suggest a:hover,
.help-suggest a.is-active {
  background: color-mix(in srgb, var(--paper-2) 70%, transparent);
}
.help-suggest strong {
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}
.help-suggest span {
  font-size: 0.8rem;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.help-suggest__empty {
  padding: 12px;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.help-body { padding-top: 12px; }
.help-section { margin: 40px 0; }
.help-section h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
}

.help-cats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
.help-cat {
  display: grid;
  gap: 8px;
  padding: 20px;
  text-decoration: none;
  background: color-mix(in srgb, var(--white) 88%, var(--paper-2));
  border: 1px solid var(--line);
  border-radius: 18px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.help-cat:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--coral) 45%, var(--line));
}
.help-cat .material-symbols-outlined {
  font-size: 28px;
  color: var(--coral-deep);
}
.help-cat strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}
.help-cat span:last-child {
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.4;
}

.help-popular {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.help-pop {
  display: grid;
  gap: 8px;
  padding: 18px 20px;
  text-decoration: none;
  border-top: 3px solid var(--coral);
  background: transparent;
}
.help-pop em {
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--coral-deep);
}
.help-pop strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.help-pop span { color: var(--ink-soft); font-size: 0.92rem; }

.help-article-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.help-article-list a {
  display: grid;
  gap: 4px;
  padding: 16px 0;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.help-article-list a:hover strong { color: var(--coral-deep); }
.help-article-list strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.help-article-list span { color: var(--ink-soft); font-size: 0.95rem; }
.help-article-list em {
  font-style: normal;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--coral-deep);
}
.help-article-list--lg a { padding: 20px 0; }
.help-empty { color: var(--ink-soft); }

.help-faq details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.help-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 0;
  font-weight: 700;
  font-size: 1.05rem;
}
.help-faq summary::-webkit-details-marker { display: none; }
.help-faq summary::after {
  content: "+";
  float: right;
  color: var(--coral-deep);
  font-weight: 800;
}
.help-faq details[open] summary::after { content: "–"; }
.help-faq p {
  margin: 0 0 16px;
  color: var(--ink-soft);
  max-width: 62ch;
}

.help-cta {
  margin-top: 48px;
  padding: 28px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--paper-2), var(--peach-soft));
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}
.help-cta h2 {
  font-family: var(--font-display);
  margin: 0 0 6px;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
}
.help-cta p { margin: 0; color: var(--ink-soft); }
.help-cta__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.help-cta--inline { margin-top: 36px; }

/* Article layout */
.help-article__grid {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
  padding-top: 8px;
}
.help-toc {
  position: sticky;
  top: 80px;
  font-size: 0.9rem;
}
.help-toc > p {
  margin: 0 0 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  color: var(--ink-soft);
}
.help-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.help-toc a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  line-height: 1.35;
}
.help-toc a:hover,
.help-toc a.is-active { color: var(--coral-deep); }
.help-toc__back {
  display: inline-block;
  margin-top: 18px;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
}

.help-steps {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 22px;
  counter-reset: none;
}
.help-steps > li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 14px;
  scroll-margin-top: 90px;
}
.help-steps__n {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink);
  color: var(--white);
  font-weight: 800;
  font-size: 0.9rem;
}
.help-steps h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 4px 0 8px;
  letter-spacing: -0.02em;
}
.help-steps p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 58ch;
}
.help-steps__tips {
  margin: 12px 0 0;
  padding: 0 0 0 1.1em;
  color: var(--ink-soft);
  max-width: 58ch;
}
.help-steps__tips li {
  margin: 0 0 6px;
  line-height: 1.45;
}
.help-steps .help-demo--step {
  margin-top: 16px;
  margin-bottom: 4px;
}
.help-demo--step .help-demo__shot {
  max-height: 420px;
  object-fit: cover;
  object-position: top center;
}

.help-tips {
  margin-top: 32px;
  padding: 20px 22px;
  border-left: 3px solid var(--coral);
  background: color-mix(in srgb, var(--paper-2) 70%, transparent);
}
.help-tips h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 10px;
}
.help-tips ul { margin: 0; padding-left: 18px; color: var(--ink-soft); }
.help-tips li { margin: 6px 0; }
.help-related { margin-top: 40px; }
.help-related h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 12px;
}

.help-fields {
  margin-top: 36px;
  scroll-margin-top: 90px;
}
.help-fields > h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
}
.help-fields__table {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: color-mix(in srgb, var(--white) 80%, var(--paper));
}
.help-fields__head,
.help-fields__row {
  display: grid;
  grid-template-columns: minmax(140px, 0.9fr) 1.4fr;
  gap: 12px 18px;
  padding: 14px 16px;
}
.help-fields__head {
  background: color-mix(in srgb, var(--paper-2) 80%, transparent);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.help-fields__row + .help-fields__row {
  border-top: 1px solid var(--line);
}
.help-fields__row:target {
  background: color-mix(in srgb, var(--coral, #ff385c) 10%, transparent);
  outline: 2px solid color-mix(in srgb, var(--coral, #ff385c) 35%, transparent);
  outline-offset: -2px;
}
.help-toc__fields {
  list-style: none;
  margin: 6px 0 8px;
  padding: 0 0 0 10px;
}
.help-toc__fields li { margin: 0; }
.help-toc__fields a {
  font-size: 0.82rem;
  opacity: 0.85;
}
.help-fields__label {
  display: grid;
  gap: 4px;
  align-content: start;
}
.help-fields__label strong {
  font-size: 0.98rem;
  letter-spacing: -0.01em;
}
.help-fields__label em {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--coral-deep);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.help-fields__row p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

@media (max-width: 640px) {
  .help-fields__head { display: none; }
  .help-fields__head,
  .help-fields__row {
    grid-template-columns: 1fr;
  }
}

/* Demo stage — real CRM screenshots */
.help-demo {
  margin: 0 0 8px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #14110f;
  color: #f6efe9;
  box-shadow: var(--shadow);
}
.help-demo__chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #1e1916;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.help-demo__chrome span {
  width: 9px; height: 9px; border-radius: 50%;
  background: #5c504a;
}
.help-demo__chrome span:nth-child(1) { background: #ff6b57; }
.help-demo__chrome span:nth-child(2) { background: #ffb49a; }
.help-demo__chrome span:nth-child(3) { background: #7dcea0; }
.help-demo__chrome em {
  margin-left: auto;
  font-style: normal;
  font-size: 0.72rem;
  opacity: 0.55;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}
.help-demo__stage {
  position: relative;
  min-height: 220px;
  overflow: hidden;
}
.help-demo__stage--shot {
  min-height: 0;
  aspect-ratio: 16 / 10;
  background: #0b0b0b;
}
.help-demo__shot {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}
.help-demo figcaption {
  padding: 10px 14px 12px;
  font-size: 0.78rem;
  opacity: 0.62;
  border-top: 1px solid rgba(255,255,255,0.06);
}

@media (max-width: 860px) {
  .help-article__grid { grid-template-columns: 1fr; gap: 20px; }
  .help-toc { position: static; order: 2; }
  .help-article__main { order: 1; }
  .help-search { flex-wrap: wrap; border-radius: 22px; padding: 12px; }
  .help-search .btn { width: 100%; }
}

@media (max-width: 560px) {
  .help-hero { padding-top: 36px; }
  .help-cats { grid-template-columns: 1fr; }
}
