/* Customer support page. The hero, contents list and body card come from
   style/doc.css; this file adds the channel blocks, the promise cards and the
   FAQ accordion. Scoped to body.Support, because Page loads every page
   stylesheet on every page. */

/* --- Channel sections -------------------------------------------------- */

/* The pill under a channel's description. */
body.Support .support-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 !important;
  padding: 8px 16px;
  border: 1px solid #e6dbf0;
  border-radius: 9999px;
  background: rgba(250, 245, 255, 0.5);
  font-size: 14px !important;
  line-height: 20px !important;
  font-weight: 500;
  color: #25153c !important;
}

body.Support .support-meta svg {
  width: 14px;
  height: 14px;
  color: #9333ea;
}

/* --- Section 4: promises ----------------------------------------------- */

body.Support .support-promises {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

body.Support .support-promise {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  border: 1px solid #e6dbf0;
  border-radius: 16px; /* rounded-2xl */
  background: #ffffff;
}

body.Support .support-promise h3 {
  margin: 0 0 4px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
  color: #25153c;
}

body.Support .support-promise p {
  margin: 0 !important;
  font-size: 14px;
  line-height: 22.75px;
  color: #6c5393;
}

/* --- Section 5: FAQ ---------------------------------------------------- */

body.Support .support-faq {
  display: flex;
  flex-direction: column;
  gap: 12px; /* space-y-3 */
}

body.Support .support-faq-item {
  padding: 20px;
  border: 1px solid #e6dbf0;
  border-radius: 16px;
  background: #ffffff;
  transition: border-color 0.15s ease;
}

body.Support .support-faq-item:hover {
  border-color: #d8b4fe; /* purple-300 */
}

body.Support .support-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  cursor: pointer;
  list-style: none;
}

body.Support .support-faq-item summary::-webkit-details-marker {
  display: none;
}

body.Support .support-faq-item h3 {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
  color: #25153c;
}

body.Support .support-faq-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px; /* w-7 */
  height: 28px;
  border-radius: 9999px;
  background-image: linear-gradient(to bottom right, #f3e8ff, #ffedd5);
  color: #7e22ce;
  font-size: 18px;
  line-height: 1;
  transition: transform 0.15s ease;
}

body.Support .support-faq-item[open] .support-faq-mark {
  transform: rotate(45deg);
}

body.Support .support-faq-item p {
  margin: 16px 0 0 !important;
  font-size: 14px;
  line-height: 22.75px;
  color: #6c5393;
}

@media (prefers-reduced-motion: reduce) {
  body.Support .support-faq-mark {
    transition: none;
  }
}

@media (min-width: 640px) {
  body.Support .support-promises {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* --- Paragraph spacing ------------------------------------------------- */

/* doc.css defaults section paragraphs to the mb-4 of continuous prose, which
   is what sections 1 to 3 want. The two sections that introduce a block of
   cards get the design's mb-6 instead. */
body.Support #doc-sec-4 > p,
body.Support #doc-sec-5 > p,
body.Support #doc-sec-6 > p {
  margin-bottom: 24px !important;
}
