:root {
  --faq-card: rgba(255, 255, 255, 0.10);
  --faq-border: rgba(255, 255, 255, 0.20);
  --faq-muted: rgba(218, 226, 253, 0.72);
  --faq-hero: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.08));
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--memedance-text);
  background:
    radial-gradient(circle at 10% 4%, rgba(30, 58, 138, .92), transparent 34%),
    radial-gradient(circle at 88% 18%, rgba(126, 34, 206, .72), transparent 38%),
    radial-gradient(circle at 56% 80%, rgba(219, 39, 119, .45), transparent 42%),
    linear-gradient(145deg, #071126 0%, #15103a 48%, #35173f 100%);
}

.faq-shell {
  width: min(920px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 28px 0 64px;
}

.faq-hero {
  padding: 28px;
  border: 1px solid var(--faq-border);
  border-radius: 28px;
  background: var(--faq-hero);
  box-shadow: inset 1px 1px 0 rgba(255,255,255,.10), 0 18px 54px rgba(0, 0, 0, 0.20);
  backdrop-filter: blur(20px) saturate(125%);
  -webkit-backdrop-filter: blur(20px) saturate(125%);
}

.faq-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--memedance-secondary);
  background: rgba(255,255,255,.10);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.faq-hero h1 {
  margin: 18px 0 12px;
  font-size: clamp(34px, 7vw, 52px);
  line-height: 1.02;
}

.faq-hero p {
  max-width: 620px;
  margin: 0;
  color: var(--faq-muted);
  font-size: 16px;
  line-height: 1.7;
}

.faq-meta {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 13px;
}

.faq-list {
  margin-top: 24px;
  display: grid;
  gap: 14px;
}

.faq-item {
  border: 1px solid var(--faq-border);
  border-radius: 18px;
  background: var(--faq-card);
  overflow: hidden;
  box-shadow: inset 1px 1px 0 rgba(255,255,255,.08), 0 8px 32px rgba(0,0,0,.10);
  backdrop-filter: blur(20px) saturate(125%);
  -webkit-backdrop-filter: blur(20px) saturate(125%);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
}

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

.faq-question {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
}

.faq-icon {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  color: var(--memedance-secondary);
  font-size: 18px;
  flex: 0 0 auto;
  transition: transform 140ms ease;
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 22px 22px;
  color: var(--faq-muted);
  font-size: 15px;
  line-height: 1.8;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.faq-answer p {
  margin: 14px 0 0;
}

.faq-answer a,
.faq-answer a:visited {
  color: var(--memedance-secondary);
  text-decoration-color: rgba(173, 201, 235, 0.72);
  text-underline-offset: 2px;
}

.faq-answer a:hover,
.faq-answer a:focus-visible {
  color: var(--memedance-primary);
  text-decoration-color: rgba(255, 255, 255, 0.92);
}

.faq-answer ul {
  margin: 14px 0 0;
  padding-left: 18px;
}

.faq-answer li + li {
  margin-top: 8px;
}

.faq-footer {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.44);
  font-size: 13px;
}

/* The same FAQ content inside the product shell, without a second page frame. */
html.faq-embedded { min-width: 0; background: transparent; }
.faq-embedded body { background: transparent; }
.faq-embedded .faq-shell { width: 100%; margin: 0; padding: 0; }
.faq-embedded .faq-hero,
.faq-embedded .faq-footer { display: none; }
.faq-embedded .faq-list { margin-top: 0; }

@media (max-width: 640px) {
  .faq-shell {
    width: min(100vw - 20px, 920px);
    padding-top: 20px;
  }

  .faq-hero {
    padding: 22px 18px;
    border-radius: 22px;
  }

  .faq-item summary {
    padding: 18px;
  }

  .faq-answer {
    padding: 0 18px 18px;
  }

  .faq-question {
    font-size: 16px;
  }
}
