/* ── Support page ── */

.support-nav {
  position: relative;
  z-index: 50;
  background: rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 16px;
  margin-bottom: 8px;
  overflow: hidden;
  transform: translateZ(0);
}

.support-nav.is-fixed {
  position: fixed;
  top: 92px;
  left: var(--support-nav-left, 56px);
  width: var(--support-nav-width, calc(100vw - 112px));
}

.support-nav-spacer {
  height: 0;
}

.support-nav-inner {
  display: flex;
  gap: 4px;
  padding: 10px 8px;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.support-nav-inner::-webkit-scrollbar { display: none; }

.support-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 99px;
  border: 1.5px solid transparent;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  color: var(--owl-muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.support-pill:hover {
  background: rgba(51, 46, 68, 0.06);
  color: var(--owl-navy);
}

.support-pill.active {
  background: var(--owl-navy);
  color: #fff;
  border-color: var(--owl-navy);
}

.support-pill .pill-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.62;
}

.support-pill.active .pill-icon {
  opacity: 0.82;
}

/* ── Sections ── */

.support-sections {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow-x: clip;
  min-width: 0;
}

.support-section {
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 36px 40px;
  scroll-margin-top: 148px;
  min-width: 0;
  word-break: break-word;
  overflow-wrap: break-word;
}

#faq {
  position: relative;
  overflow: hidden;
  overflow-anchor: none;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  /* Promote the whole card to a single GPU layer: its top-left snaps to a
     device pixel once, and when an answer opens the content only grows
     downward inside the layer — the top edge can no longer shift up on WebKit. */
  transform: translateZ(0);
}

#faq::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: none;
}

#faq > * {
  position: relative;
  z-index: 1;
}

.section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 6px;
}

.section-num {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
  background: rgba(170, 216, 179, 0.3);
  color: #3a8f56;
}

.section-num--purple {
  background: rgba(179, 161, 240, 0.3);
  color: #7c62d6;
}

.section-num--gold {
  background: rgba(240, 210, 130, 0.35);
  color: #a07820;
}

.support-section h2 {
  font-family: "ITC Avant Garde Gothic", "Avant Garde", "Century Gothic", sans-serif;
  font-size: 20px;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.01em;
}

.section-sub {
  font-size: 13px;
  color: var(--owl-muted);
  margin: 0 0 20px;
  padding-left: 46px;
}

.support-section p {
  font-size: 14.5px;
  line-height: 1.7;
  margin: 0 0 14px;
}

.support-section p:last-child { margin-bottom: 0; }

.support-section h3 {
  font-size: 14px;
  font-weight: 700;
  margin: 20px 0 8px;
}

.support-section ul,
.support-section ol {
  margin: 0 0 14px;
  padding-left: 22px;
}

.support-section li {
  font-size: 14.5px;
  line-height: 1.7;
  margin-bottom: 6px;
}

.section-divider {
  height: 1px;
  background: rgba(51, 46, 68, 0.08);
  margin: 20px 0;
}

/* ── App path breadcrumb ── */

.app-path {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(51, 46, 68, 0.07);
  border-radius: 6px;
  padding: 2px 8px;
  color: var(--owl-navy);
  letter-spacing: 0.01em;
  max-width: 100%;
  word-break: break-word;
}

.app-path svg {
  opacity: 0.4;
  flex-shrink: 0;
}

/* ── Note box ── */

.support-note {
  position: relative;
  display: block;
  background: rgba(179, 161, 240, 0.12);
  border-left: 3px solid rgba(179, 161, 240, 0.6);
  border-radius: 0 10px 10px 0;
  padding: 12px 16px 12px 40px;
  margin-top: 16px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--owl-navy);
  word-break: break-word;
  overflow-wrap: break-word;
}

.support-note > svg {
  position: absolute;
  left: 14px;
  top: 14px;
  flex-shrink: 0;
  color: #9b82e8;
}

/* ── FAQ ── */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.faq-item {
  border-radius: 12px;
  overflow: hidden;
}

/* Closed answer: simply not rendered. Native <details> handles this when the
   `open` attribute is absent — no animation, the size changes instantly. */

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  background: rgba(51, 46, 68, 0.05);
  border-radius: 12px;
  transition: background 0.15s;
  word-break: break-word;
  overflow-wrap: break-word;
  min-width: 0;
}

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

.faq-item.is-open summary {
  border-radius: 12px 12px 0 0;
  background: rgba(51, 46, 68, 0.08);
}

.faq-item summary:hover {
  background: rgba(51, 46, 68, 0.08);
}

.faq-chevron {
  flex-shrink: 0;
  color: var(--owl-muted);
}

.faq-item.is-open .faq-chevron {
  transform: rotate(180deg);
}

.faq-body {
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.7;
  background: rgba(51, 46, 68, 0.03);
  border-radius: 0 0 12px 12px;
}

/* ── Contact card ── */
/* .contact-email lives in subpage.css (shared with the privacy contact block). */

/* ── Responsive ── */

@media (max-width: 900px) {
  .support-nav.is-fixed {
    top: 84px;
  }

  .support-section {
    padding: 28px 24px;
    scroll-margin-top: 136px;
  }

  .section-sub {
    padding-left: 0;
    margin-top: 4px;
  }

  .bento-headline {
    font-size: 28px;
  }
}
