/**
 * Studio 360 — FAQ page
 */

.s360-page-faq {
  background: var(--s360-bg);
  background-image: var(--s360-gradient-hero), var(--s360-gradient-spot-a), var(--s360-gradient-spot-b);
  background-repeat: no-repeat;
  background-position: center top, -10% 20%, 110% 60%;
  background-size: 100% 50%, 50% 40%, 45% 50%;
}


/* ===== Hero ===== */

.s360-faq-hero {
  position: relative;
  text-align: center;
  padding-bottom: clamp(1.5rem, 3vw, 3rem);
  overflow: hidden;
}

.s360-faq-hero__spot {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  pointer-events: none;
}

.s360-faq-hero__spot--a {
  width: min(380px, 55vw);
  height: min(380px, 55vw);
  top: -10%;
  left: -5%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.3) 0%, transparent 70%);
}

.s360-faq-hero__spot--b {
  width: min(320px, 45vw);
  height: min(320px, 45vw);
  bottom: 0;
  right: -8%;
  background: radial-gradient(circle, rgba(75, 44, 94, 0.35) 0%, transparent 70%);
}

.s360-faq-hero__eyebrow {
  margin: 0 0 0.75rem;
  font-size: var(--s360-step--1);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--s360-gold);
}

.s360-faq-hero__title {
  max-width: 30ch;
  margin-inline: auto;
  margin-bottom: 1rem;
  font-size: var(--s360-step-4);
  line-height: 1.14;
  text-wrap: balance;
  background: linear-gradient(135deg, var(--s360-white) 0%, rgba(245, 245, 245, 0.88) 45%, rgba(212, 175, 55, 0.95) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.s360-faq-hero__lead {
  max-width: 52ch;
  margin-inline: auto;
  font-size: var(--s360-step-1);
  line-height: 1.7;
}


/* ===== Accordion list ===== */

.s360-faq-list {
  padding-top: 0;
}

.s360-faq-list__inner {
  max-width: 860px;
  margin-inline: auto;
}

.s360-faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}


/* ===== FAQ item ===== */

.s360-faq-item {
  overflow: hidden;
  transition:
    border-color var(--s360-duration) var(--s360-ease-out),
    box-shadow var(--s360-duration) var(--s360-ease-out);
}

.s360-faq-item[aria-current="true"],
.s360-faq-item:has(.s360-faq-item__trigger[aria-expanded="true"]) {
  border-color: rgba(212, 175, 55, 0.22);
  box-shadow: var(--s360-glow-gold);
}

.s360-faq-item__heading {
  margin: 0;
  font-size: inherit;
  line-height: inherit;
}

.s360-faq-item__trigger {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1.15rem 1.25rem;
  font-family: var(--s360-font-heading);
  font-size: var(--s360-step-1);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--s360-white);
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: color var(--s360-duration) ease;
}

.s360-faq-item__trigger:hover {
  color: var(--s360-gold);
}

.s360-faq-item__trigger:focus-visible {
  outline: 2px solid var(--s360-gold);
  outline-offset: -2px;
  border-radius: var(--s360-radius);
}

.s360-faq-item__question {
  flex: 1;
}


/* Plus / minus icon */

.s360-faq-item__icon {
  position: relative;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

.s360-faq-item__icon-bar {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  background: var(--s360-gold);
  border-radius: 1px;
  transition: transform 0.35s var(--s360-ease-out), opacity 0.25s ease;
}

.s360-faq-item__icon-bar--h {
  width: 16px;
  height: 2px;
  transform: translate(-50%, -50%);
}

.s360-faq-item__icon-bar--v {
  width: 2px;
  height: 16px;
  transform: translate(-50%, -50%);
}

.s360-faq-item__trigger[aria-expanded="true"] .s360-faq-item__icon-bar--v {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}


/* Panel (answer) */

.s360-faq-item__panel {
  overflow: hidden;
  transition: height 0.4s var(--s360-ease-out);
}

.s360-faq-item__panel[hidden] {
  display: block !important;
  height: 0;
  visibility: hidden;
}

.s360-faq-item__panel:not([hidden]) {
  visibility: visible;
}

.s360-faq-item__answer {
  padding: 0 1.25rem 1.25rem;
  font-size: var(--s360-step-0);
  line-height: 1.8;
  color: var(--s360-white-muted);
}

.s360-faq-item__answer p:last-child {
  margin-bottom: 0;
}

.s360-faq-item__answer a {
  color: var(--s360-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.s360-faq-item__answer a:hover {
  color: var(--s360-gold-hover);
}


/* Tool list inside the "what tools" answer */

.s360-faq__tool-list {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.s360-faq__tool-list li {
  position: relative;
  padding: 0.6rem 0 0.6rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.s360-faq__tool-list li:last-child {
  border-bottom: none;
}

.s360-faq__tool-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.1rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--s360-gradient-gold);
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.3);
}

.s360-faq__bonus-tag {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--s360-white);
  background: linear-gradient(135deg, var(--s360-plum) 0%, rgba(212, 175, 55, 0.35) 100%);
  border-radius: 999px;
  vertical-align: middle;
}


/* ===== Bottom CTA ===== */

.s360-faq-cta {
  padding-bottom: clamp(4rem, 8vw, 6rem);
}

.s360-faq-cta__card {
  padding: clamp(2rem, 4vw, 3rem);
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
}

.s360-faq-cta__title {
  margin: 0 0 0.75rem;
  font-size: var(--s360-step-4);
}

.s360-faq-cta__lead {
  margin: 0 0 1.5rem;
  font-size: var(--s360-step-1);
}


/* ===== Reduced motion ===== */

@media (prefers-reduced-motion: reduce) {
  .s360-faq-item__panel {
    transition-duration: 0.01s;
  }

  .s360-faq-item__icon-bar {
    transition-duration: 0.01s;
  }
}
