/* =========================================================================
   Stax help pages — connection guides.
   Loaded after colors_and_type.css + marketing.css.
   ========================================================================= */

.help { padding: 56px 0 96px; }

.help-crumb {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-4);
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 28px;
  transition: color 120ms ease;
}
.help-crumb:hover { color: var(--green-600); }

/* ---- Vendor header ---- */
.help-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.help-vendor { display: flex; align-items: center; gap: 18px; }
.help-mark {
  width: 56px; height: 56px;
  border-radius: var(--r-lg);
  color: var(--paper);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 22px;
  display: grid;
  place-items: center;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.help-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--green-600);
  letter-spacing: -0.01em;
  font-weight: 500;
  display: block;
  margin-bottom: 4px;
}
.help-head h1 {
  font-size: 40px;
  line-height: 1.04;
  letter-spacing: -0.025em;
  font-weight: 600;
  margin: 0;
}

.help-pill {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: -0.01em;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 9px;
  border-radius: var(--r-pill);
  margin-top: 6px;
  white-space: nowrap;
}
.help-pill .pip {
  width: 7px; height: 7px;
  border-radius: 50%;
}
.help-pill.live {
  background: var(--green-50);
  color: var(--green-700);
}
.help-pill.live .pip { background: var(--green-500); }
.help-pill.upload {
  background: rgba(255, 184, 28, 0.12);
  color: #8A5B00;
}
.help-pill.upload .pip { background: var(--amber-500); }

.help-lede {
  font-size: 17.5px;
  line-height: 1.55;
  color: var(--ink-3);
  max-width: 680px;
  margin: 18px 0 40px;
}
.help-lede b { color: var(--ink); font-weight: 500; }

/* ---- Fact strip ---- */
.help-fact-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  overflow: hidden;
  margin-bottom: 56px;
}
.help-fact {
  background: var(--paper-raised);
  padding: 18px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.help-fact .k {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-4);
  font-weight: 600;
  margin-bottom: 6px;
}
.help-fact .v {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 20px;
  letter-spacing: -0.015em;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.2;
}
.help-fact .sub {
  font-size: 12px;
  color: var(--ink-4);
  margin-top: 4px;
}
.help-fact .sub .mono { font-family: var(--font-mono); color: var(--ink-2); }

/* ---- Steps ---- */
.help-step {
  margin-top: 48px;
  max-width: 760px;
}
.help-step-num {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--green-700);
  margin-bottom: 8px;
}
.help-step h2 {
  font-size: 24px;
  letter-spacing: -0.018em;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 16px;
  line-height: 1.2;
}
.help-step p {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-2);
  margin: 0 0 14px;
}
.help-step p b { color: var(--ink); font-weight: 500; }
.help-step .mono { font-family: var(--font-mono); color: var(--ink); }

.help-inline-link {
  color: var(--green-600);
  border-bottom: 1px solid var(--green-100);
  transition: color 120ms ease;
}
.help-inline-link:hover { color: var(--green-700); }

/* ---- Link box (external URL) ---- */
.help-link-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 6px 0 18px;
  padding: 14px 18px;
  background: var(--paper-sunk);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  transition: border-color 120ms ease, background 120ms ease;
}
.help-link-box:hover {
  border-color: var(--green-100);
  background: var(--green-50);
}
.help-link-box .mono {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.01em;
  word-break: break-all;
}
.help-link-box .ext {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--green-600);
  flex-shrink: 0;
}

/* ---- Substep ordered list ---- */
.help-substeps {
  list-style: none;
  counter-reset: substep;
  margin: 8px 0 18px;
  padding: 0;
}
.help-substeps li {
  counter-increment: substep;
  position: relative;
  padding-left: 36px;
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
}
.help-substeps li::before {
  content: counter(substep);
  position: absolute;
  left: 0; top: 1px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--paper-raised);
  border: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-3);
  display: grid;
  place-items: center;
  line-height: 1;
}
.help-substeps li b { color: var(--ink); font-weight: 500; }
.help-substeps li .mono { font-family: var(--font-mono); color: var(--ink); }

/* ---- Plain bullets ---- */
.help-bullets {
  list-style: none;
  padding: 0;
  margin: 8px 0 14px;
}
.help-bullets li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
}
.help-bullets li::before {
  content: "";
  position: absolute;
  left: 4px; top: 11px;
  width: 6px; height: 1.5px;
  background: var(--green-500);
}
.help-bullets li b { color: var(--ink); font-weight: 500; }
.help-bullets li .mono { font-family: var(--font-mono); color: var(--ink); }

/* ---- Callout ---- */
.help-callout {
  margin: 14px 0 18px;
  padding: 14px 18px;
  border-radius: var(--r-md);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-2);
  border: 1px solid var(--hairline);
  background: var(--paper-sunk);
}
.help-callout b { color: var(--ink); font-weight: 500; }
.help-callout .mono { font-family: var(--font-mono); color: var(--ink); }
.help-callout.warn {
  background: rgba(255, 184, 28, 0.08);
  border-color: rgba(255, 184, 28, 0.32);
}
.help-callout.info {
  background: var(--green-50);
  border-color: var(--green-100);
}

.help-note {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-4);
  font-style: italic;
  margin-top: 10px;
}
.help-note b { color: var(--ink-3); font-weight: 500; font-style: normal; }
.help-note a { color: var(--green-600); border-bottom: 1px solid var(--green-100); }

/* ---- Error rows ---- */
.help-err {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid var(--hairline);
}
.help-err:last-of-type { border-bottom: 1px solid var(--hairline); }
.help-err-code {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: -0.01em;
  color: var(--red-500);
  font-weight: 600;
  padding-top: 1px;
}
.help-err-body {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-2);
}
.help-err-body b { color: var(--ink); font-weight: 500; }
.help-err-body .mono { font-family: var(--font-mono); color: var(--ink); }

/* ---- Page footer ---- */
.help-foot {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.help-foot-link {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-3);
  letter-spacing: -0.01em;
  transition: color 120ms ease;
}
.help-foot-link:hover { color: var(--green-600); }

/* =========================================================================
   Index page — list of all provider guides.
   ========================================================================= */
.help-index { padding: 72px 0 96px; }
.help-index-head {
  margin-bottom: 48px;
  max-width: 720px;
}
.help-index-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--green-600);
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 12px 5px 8px;
  background: var(--green-50);
  border-radius: var(--r-pill);
  margin-bottom: 22px;
}
.help-index-eyebrow .pip {
  width: 7px; height: 7px;
  background: var(--green-500);
  border-radius: 50%;
}
.help-index h1 {
  font-size: 48px;
  line-height: 1.04;
  letter-spacing: -0.028em;
  font-weight: 600;
  margin: 0 0 18px;
}
.help-index .lede {
  font-size: 17.5px;
  line-height: 1.55;
  color: var(--ink-3);
  margin: 0;
}
.help-index .lede b { color: var(--ink); font-weight: 500; }

.help-group {
  margin-top: 40px;
}
.help-group-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hairline);
}
.help-group-head .lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--green-700);
}
.help-group-head .count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-4);
  letter-spacing: -0.01em;
}
.help-group.upload .help-group-head .lbl { color: #8A5B00; }

.help-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.help-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--paper-raised);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  transition: border-color 120ms ease, transform 120ms ease;
}
.help-card:hover {
  border-color: var(--green-100);
  transform: translateY(-1px);
}
.help-card .help-mark {
  width: 40px; height: 40px;
  font-size: 16px;
  border-radius: var(--r-md);
}
.help-card-body { flex: 1; min-width: 0; }
.help-card-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
  margin: 0 0 2px;
}
.help-card-sub {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-4);
  letter-spacing: -0.01em;
}
.help-card-arrow {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink-4);
  transition: color 120ms ease, transform 120ms ease;
}
.help-card:hover .help-card-arrow {
  color: var(--green-600);
  transform: translateX(2px);
}

@media (max-width: 720px) {
  .help-head h1 { font-size: 30px; letter-spacing: -0.02em; }
  .help-fact-strip { grid-template-columns: repeat(2, 1fr); }
  .help-err { grid-template-columns: 1fr; gap: 6px; }
  .help-grid { grid-template-columns: 1fr; }
  .help-index h1 { font-size: 34px; }
}
