/* Lumify help page. Requires /assets/css/base.css */

.faq-page {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-block: clamp(2.5rem, 6svh, 6rem);
}

.faq-page__orb--top {
  top: -6rem;
  left: 50%;
  width: min(720px, 110vw);
  height: 340px;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, rgba(168, 212, 255, 0.35), rgba(220, 235, 255, 0.2), transparent);
  filter: blur(64px);
}

.faq-page__orb--side {
  top: 33%;
  right: -6rem;
  width: 18rem;
  height: 18rem;
  background: rgba(143, 216, 247, 0.2);
  filter: blur(64px);
}

.faq-page__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

.faq-page__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 1rem;
  margin-bottom: 1rem;
  border-radius: 9999px;
  background: rgba(222, 236, 253, 0.8);
  box-shadow: var(--shadow-sm);
  font-size: 11px;
  line-height: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-secondary-container);
}

.faq-page__badge .lum-icon {
  font-size: 16px;
  color: var(--secondary);
}

.faq-page__title {
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.faq-page__rule {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.faq-page__rule i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--secondary-container);
}

.faq-page__rule b {
  width: 2rem;
  height: 4px;
  border-radius: 999px;
  background: rgba(10, 31, 75, 0.2);
}

.faq-page__list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  border-radius: var(--radius-box);
  background: var(--surface-lowest);
  box-shadow: 0 2px 12px rgba(14, 42, 92, 0.04);
  transition: box-shadow 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 6px 20px rgba(14, 42, 92, 0.07);
}

.qn-faq-item--open {
  box-shadow: 0 4px 24px rgba(14, 42, 92, 0.06), 0 1px 2px rgba(14, 42, 92, 0.04);
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem;
  cursor: pointer;
  user-select: none;
  font-family: var(--font-head);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--on-surface);
  transition: color 0.2s ease;
}

.faq-q:hover,
.qn-faq-item--open .faq-q {
  color: var(--primary);
}

.faq-q:focus-visible {
  outline: 2px solid var(--secondary-container);
  outline-offset: -6px;
  border-radius: 0.75rem;
}

.faq-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-low);
  color: var(--on-surface-variant);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.3s ease;
}

.faq-badge .lum-icon {
  font-size: 20px;
  transition: transform 0.3s ease;
}

.faq-q:hover .faq-badge,
.qn-faq-item--open .faq-badge {
  background: var(--primary);
  color: #fff;
}

.qn-faq-item--open .faq-badge .lum-icon {
  transform: rotate(180deg);
}

.faq-a {
  padding: 0 1.5rem 1.5rem;
}

.faq-a p {
  padding: 1rem;
  border-radius: 1.25rem;
  background: rgba(239, 246, 255, 0.7);
  font-size: 15px;
  line-height: 1.65;
  color: var(--on-surface-variant);
}

.qn-faq-item:not(.qn-faq-item--open) .qn-faq-answer {
  display: none;
}

.faq-help {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: clamp(2rem, 5vw, 4rem);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: 1.5rem;
  background: var(--surface-low);
  box-shadow: 0 4px 24px rgba(14, 42, 92, 0.04);
}

@media (min-width: 768px) {
  .faq-help {
    flex-direction: row;
    align-items: center;
  }
}

.faq-help__copy {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.faq-help__mark {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-box);
  background: var(--primary-container);
  color: var(--primary-fixed);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(14, 42, 92, 0.16);
}

.faq-help__copy span {
  display: flex;
  flex-direction: column;
}

.faq-help__copy strong {
  font-family: var(--font-head);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--primary);
}

.faq-help__copy small {
  font-size: 13px;
  line-height: 20px;
  color: var(--on-surface-variant);
}

.faq-help .lum-btn {
  align-self: flex-start;
}

@media (max-width: 479px) {
  .faq-q {
    padding: 1.15rem;
  }

  .faq-a {
    padding: 0 1.15rem 1.15rem;
  }
}
