/* หน้าคู่มือเชื่อมช่องทาง — ใช้ร่วมกับ integrate.html และ integrate-*.html */

.guide {
  max-width: 780px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

.guide .kicker {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.guide h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 40px;
  letter-spacing: -0.02em;
  margin: 8px 0 14px;
}

.guide .intro {
  font-size: var(--text-md);
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0 0 28px;
}

.guide h2 {
  font-size: var(--text-2xl);
  font-weight: 600;
  margin: 38px 0 12px;
  scroll-margin-top: 80px;
}

.guide p,
.guide li {
  font-size: var(--text-md);
  line-height: 1.7;
  color: var(--text-secondary);
}

.guide p {
  margin: 0 0 12px;
}

.guide code {
  background: var(--bg-inset);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1px 6px;
  font-size: 0.92em;
  word-break: break-all;
}

/* กล่องบอกสิทธิ์ที่ต้องมีก่อนเริ่ม — ต้องเด่นกว่าเนื้อหาอื่นเพราะคนอ่านมักไม่ใช่คนเดียวกับที่สมัคร LeanChat */
.req-box,
.note-box,
.warn-box {
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  margin: 22px 0 28px;
  border: 1px solid var(--border-subtle);
}

.req-box {
  background: var(--iris-50);
  border-color: var(--iris-100, var(--border));
}

.note-box {
  background: var(--bg-app);
}

.warn-box {
  background: var(--amber-50, #fef6e7);
  border-color: var(--amber-100, #f6dfae);
}

.req-box h4,
.note-box h4,
.warn-box h4 {
  margin: 0 0 8px;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
  color: var(--text-muted);
}

.req-box p:last-child,
.note-box p:last-child,
.warn-box p:last-child,
.req-box ul:last-child {
  margin-bottom: 0;
}

.guide ul,
.guide ol {
  margin: 0 0 14px;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ขั้นตอนเรียงลำดับ — ตัวเลขใหญ่พอให้ไล่ตามได้ตอนสลับหน้าจอไปมาระหว่าง LeanChat กับคอนโซลของแพลตฟอร์ม */
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.steps > li {
  counter-increment: step;
  position: relative;
  padding-left: 44px;
  min-height: 30px;
}

.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--action);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.steps > li > b:first-child {
  display: block;
  color: var(--text-primary);
  margin-bottom: 2px;
}

/* การ์ดเลือกช่องทางในหน้า index */
.cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 30px;
}

.gcard {
  display: grid;
  grid-template-columns: 44px 1fr 18px;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.gcard:hover {
  border-color: var(--action);
  box-shadow: var(--shadow-sm);
}

.gcard-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--iris-50);
  color: var(--action);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gcard-title {
  font-weight: 600;
  font-size: var(--text-md);
  color: var(--text-primary);
}

.gcard-desc {
  font-size: var(--text-base);
  color: var(--text-secondary);
  margin-top: 1px;
}

.gcard-req {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: 6px;
}

.gcard-arrow {
  color: var(--text-muted);
}

.guide .back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-base);
  color: var(--text-link);
  text-decoration: none;
  margin-bottom: 18px;
}

@media (max-width: 640px) {
  .guide {
    padding: 36px 18px 64px;
  }

  .guide h1 {
    font-size: 30px;
  }

  .gcard {
    grid-template-columns: 36px 1fr;
  }

  .gcard-arrow {
    display: none;
  }

  .gcard-icon {
    width: 36px;
    height: 36px;
  }
}
