/* ZERK TOOL — premium SEO FAQ (glassmorphism) */

.zerk-faq--premium {
  padding: clamp(72px, 10vw, 120px) var(--space-page, 24px) clamp(80px, 12vw, 128px);
  max-width: var(--max-w, 1120px);
  margin: 0 auto;
}

.zerk-faq--premium .zerk-faq__panel {
  position: relative;
  padding: clamp(28px, 4vw, 44px) clamp(22px, 3.5vw, 40px);
  border-radius: 24px;
  overflow: hidden;
  isolation: isolate;
}

.zerk-faq--premium .zerk-faq__panel::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(120% 80% at 10% 0%, rgba(110, 140, 255, 0.12), transparent 55%),
    radial-gradient(90% 60% at 100% 100%, rgba(255, 255, 255, 0.04), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.zerk-faq--premium .zerk-faq__panel > * {
  position: relative;
  z-index: 1;
}

.zerk-faq__eyebrow {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.zerk-faq--premium .zerk-faq__title {
  margin: 0 0 14px;
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  background: linear-gradient(135deg, #fff 0%, #d4d8e8 55%, #8b9cff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.zerk-faq__lead {
  margin: 0 0 clamp(24px, 4vw, 32px);
  max-width: 62ch;
  font-size: clamp(14px, 1.8vw, 16px);
  line-height: 1.6;
  color: var(--text-secondary, rgba(255, 255, 255, 0.62));
}

.zerk-faq--premium .zerk-faq__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.zerk-faq--premium .zerk-faq__item {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.75s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    background 0.35s ease;
  transition-delay: calc(var(--faq-i, 0) * 55ms);
}

.zerk-faq--premium.is-revealed .zerk-faq__item,
.zerk-faq--premium .zerk-faq__item.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.zerk-faq--premium .zerk-faq__item:hover {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 12px 40px rgba(0, 0, 0, 0.28);
}

.zerk-faq--premium .zerk-faq__item[open] {
  border-color: rgba(110, 140, 255, 0.35);
  background: rgba(255, 255, 255, 0.07);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 16px 48px rgba(30, 50, 120, 0.2);
}

.zerk-faq--premium .zerk-faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  cursor: pointer;
  font-weight: 500;
  font-size: clamp(15px, 2vw, 16px);
  line-height: 1.4;
  list-style: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.zerk-faq--premium .zerk-faq__item summary::-webkit-details-marker {
  display: none;
}

.zerk-faq__q {
  flex: 1;
  min-width: 0;
}

.zerk-faq__chevron {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s;
}

.zerk-faq__chevron::before,
.zerk-faq__chevron::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 1px;
  transform: translate(-50%, -50%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.zerk-faq__chevron::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.zerk-faq--premium .zerk-faq__item[open] .zerk-faq__chevron {
  transform: rotate(180deg);
  background: rgba(110, 140, 255, 0.15);
  border-color: rgba(110, 140, 255, 0.35);
}

.zerk-faq--premium .zerk-faq__item[open] .zerk-faq__chevron::after {
  transform: translate(-50%, -50%) rotate(90deg) scaleX(0);
}

.zerk-faq__answer {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition:
    max-height 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.4s ease;
}

.zerk-faq--premium .zerk-faq__item[open] .zerk-faq__answer {
  max-height: 480px;
  opacity: 1;
}

.zerk-faq--premium .zerk-faq__answer p {
  margin: 0;
  padding: 0 18px 18px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary, rgba(255, 255, 255, 0.65));
}

.zerk-faq--premium .zerk-faq__item summary:focus-visible {
  outline: 2px solid rgba(110, 140, 255, 0.6);
  outline-offset: 2px;
  border-radius: 12px;
}

/* Legacy FAQ blocks (category / product) */
.zerk-faq:not(.zerk-faq--premium) {
  padding: 64px 24px 80px;
  max-width: var(--max-w, 1120px);
  margin: 0 auto;
}

.zerk-faq:not(.zerk-faq--premium) .zerk-faq__inner {
  padding: 32px 28px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.zerk-faq:not(.zerk-faq--premium) .zerk-faq__title {
  margin: 0 0 20px;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 600;
}

.zerk-faq:not(.zerk-faq--premium) .zerk-faq__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.zerk-faq:not(.zerk-faq--premium) .zerk-faq__item {
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.zerk-faq:not(.zerk-faq--premium) .zerk-faq__item summary {
  padding: 14px 16px;
  cursor: pointer;
  font-weight: 500;
  list-style: none;
}

.zerk-faq:not(.zerk-faq--premium) .zerk-faq__item summary::-webkit-details-marker {
  display: none;
}

.zerk-faq:not(.zerk-faq--premium) .zerk-faq__item p {
  margin: 0;
  padding: 0 16px 14px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.product-faq {
  max-width: 960px;
  margin: 0 auto 48px;
  padding: 0 24px;
}

@media (max-width: 640px) {
  .zerk-faq--premium .zerk-faq__item summary {
    padding: 14px 14px;
  }

  .zerk-faq--premium .zerk-faq__answer p {
    padding: 0 14px 16px;
    font-size: 13px;
  }

  .zerk-faq__chevron {
    width: 26px;
    height: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .zerk-faq--premium .zerk-faq__item,
  .zerk-faq--premium .zerk-faq__answer,
  .zerk-faq__chevron,
  .zerk-faq__chevron::before,
  .zerk-faq__chevron::after {
    transition: none;
  }

  .zerk-faq--premium .zerk-faq__item {
    opacity: 1;
    transform: none;
  }

  .zerk-faq--premium .zerk-faq__item[open] .zerk-faq__answer {
    max-height: none;
    opacity: 1;
  }
}
