
/* ============================================================
   FAQ (#faq)
   CSS-only animated accordion (target + grid rows)
   Styled to match Purchase sunrise / site typography
   ============================================================ */

/* Section base: match Purchase vibe */
#faq.faq.section.light-background{
  position: relative !important;
  overflow: hidden !important;
  isolation: isolate;
  padding: clamp(3.5rem, 6vw, 5rem) 0 !important;

  background: linear-gradient(
    180deg,
    #FFF7F2 0%,
    #FFF1ED 55%,
    #FFF7F2 100%
  ) !important;
}

/* Ensure content above sunrise layers */
#faq .container,
#faq .row,
#faq .section-title{
  position: relative;
  z-index: 10;
}

/* Accordion wrapper */
#faq .faq-accordion{
  max-width: 78ch;
  margin-left: auto;
  margin-right: auto;
  display: grid;
  gap: 1rem;
}

/* Each item = “glass card” with CSS-only expand */
#faq .faq-item{
  /* model variables */
  --d: 0deg;
  --slide-ease: cubic-bezier(0.86, 0, 0.07, 1);
  --slide-duration: 420ms;
  --slide-delay: 120ms;

  /* “reveal” variables (kept, but toned for your palette) */
  --circle-x: 1.6rem;
  --circle-y: 0.9rem;
  --circle-r: 220%;
  --circle-bg: #fff;

  position: relative;
  border-radius: 1.25rem;

  display: grid;
  grid-template-rows: auto 0fr;
  transition: grid-template-rows var(--slide-ease) var(--slide-duration) var(--slide-delay);

  /* Purchase-harmonized glass */
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.84) 0%,
    rgba(255,255,255,0.70) 100%
  );

  border: 1px solid rgba(255,255,255,0.60);
  box-shadow:
    0 1.25rem 3.2rem rgba(10, 26, 60, 0.12),
    0 0.75rem 1.75rem rgba(192, 125, 190, 0.08);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  overflow: hidden;
}

/* Hover lift */
#faq .faq-item:hover{
  transform: translateY(-0.14rem);
  transition: transform 220ms ease;
  border-color: rgba(255, 221, 164, 0.65);
  box-shadow:
    0 1.6rem 3.6rem rgba(10, 26, 60, 0.14),
    0 0.95rem 2rem rgba(255, 155, 115, 0.10);
}

/* Open state */
#faq .faq-item:target{
  --d: 90deg;
  grid-template-rows: auto 1fr;
}

/* Title link */
#faq .faq-title{
  margin: 0;
}

#faq .faq-title a{
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: clamp(1rem, 1rem + 0.35vw, 1.25rem) clamp(1rem, 1rem + 0.55vw, 1.4rem);

  text-decoration: none;
  color: #061E25;

  font-family: var(--heading-font, inherit);
  font-weight: 800;
  font-size: clamp(1.05rem, 0.98rem + 0.45vw, 1.3rem);
  line-height: 1.25;
}

/* Chevron (same idea, but using currentColor) */
#faq .faq-title a::before{
  content: "";
  width: 0.75rem;
  aspect-ratio: 320 / 512;
  margin-top: 0.15rem;
  flex: 0 0 auto;

  transform: rotate(var(--d));
  transition: transform var(--slide-ease) var(--slide-duration) var(--slide-delay);

  /* inline svg mask */
  --chevron-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512'%3E%3Cpath fill='white' d='M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z'/%3E%3C/svg%3E");

  mask-image: var(--chevron-icon);
  mask-size: 100% 100%;
  -webkit-mask-image: var(--chevron-icon);
  -webkit-mask-size: 100% 100%;

  background-color: currentColor;
  opacity: 0.85;
}

/* Content wrapper (grid animation target) */
#faq .faq-content{
  overflow: hidden;
  font-family: var(--default-font, inherit);
  color: var(--default-color, rgba(42, 18, 56, 0.78));
  font-size: clamp(1rem, 0.96rem + 0.25vw, 1.1rem);
  line-height: 1.75;
}

#faq .faq-wrapper{
  padding: 0 clamp(1rem, 1rem + 0.55vw, 1.4rem) clamp(1.05rem, 0.95rem + 0.6vw, 1.35rem);
}

/* Links inside answers */
#faq .faq-content a{
  color: #2E2C65;
  font-weight: 800;
  text-decoration: underline;
}

/* Subtle divider between title and content */
#faq .faq-item:target .faq-wrapper{
  border-top: 1px solid rgba(6, 30, 37, 0.08);
  margin-top: 0.15rem;
  padding-top: clamp(0.85rem, 0.75rem + 0.4vw, 1.05rem);
}

/* Keyboard focus */
#faq .faq-title a:focus-visible{
  outline: none;
  box-shadow: 0 0 0 0.22rem rgba(255, 221, 164, 0.65);
  border-radius: 0.9rem;
}

/* Optional: a “close” link so users can collapse */
#faq .faq-close-row{
  display: flex;
  justify-content: center;
  margin-top: 0.6rem;
}

#faq .faq-close{
  font-family: var(--default-font, inherit);
  font-weight: 700;
  font-size: 0.95rem;
  color: rgba(46, 44, 101, 0.85);
  text-decoration: none;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(46, 44, 101, 0.18);
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(8px);
}

#faq .faq-close:hover{
  border-color: rgba(255, 155, 115, 0.45);
  color: rgba(46, 44, 101, 1);
}

/* Mobile: reduce blur cost */
@media (max-width: 575.98px){
  #faq .faq-item{
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
}
  /* FAQ — make cards wider */
#faq .faq-accordion{
  max-width: 92ch;        /* was 78ch — try 88–98ch */
}

/* Optional: slightly more breathing room on large screens */
@media (min-width: 992px){
  #faq .faq-accordion{
    max-width: 96ch;
  }
}
#faq .faq-title a{
  padding-inline: clamp(1.2rem, 1.1rem + 0.7vw, 1.7rem);
}

#faq .faq-wrapper{
  padding-inline: clamp(1.2rem, 1.1rem + 0.7vw, 1.7rem);
}

:root{ --header-offset: 110px; } /* set once */

#faq .faq-item{ scroll-margin-top: var(--header-offset); }

@media (max-width: 991.98px){
  :root{ --header-offset: 130px; }
}

/* FAQ section title subhead: bigger + default font */
#faq .section-title p{
  font-family: var(--default-font, inherit) !important;
  font-size: clamp(1.15rem, 0.95rem + 0.7vw, 1.55rem) !important;
  line-height: 1.55 !important;
  margin-top: 0.35rem !important;
  opacity: 0.95;
}

/* ============================================================
   FAQ (#faq) — reuse Purchase sunrise layers + animation
   (Alias purchase selectors to faq)
   ============================================================ */

/* Give FAQ the same stacking context as purchase */
#faq.faq.section.light-background{
  position: relative !important;
  overflow: hidden !important;
  isolation: isolate;
  padding: clamp(3.5rem, 6vw, 5rem) 0 !important;

  /* Keep this light so layers are visible */
  background: linear-gradient(
    180deg,
    #FFF7F2 0%,
    #FFF1ED 55%,
    #FFF7F2 100%
  ) !important;
}

/* Keep FAQ content above the layers */
#faq .container,
#faq .row,
#faq .section-title{
  position: relative;
  z-index: 10;
}

/* The layers themselves */
#faq .purchase-sunrise-gradient-bg,
#faq .purchase-sunrise-haze,
#faq .purchase-sunrise-sun{
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* 1) Animated vertical gradient */
#faq .purchase-sunrise-gradient-bg{
  z-index: 1;
  background: linear-gradient(
    0deg,
    #0A1A3C 0%,
    #2E2C65 18%,
    #6B4C97 34%,
    #C07DBE 50%,
    #FF9B73 66%,
    #FFDDA4 82%
  );
  background-size: 100% 350%;
  animation: purchaseVerticalSunrise 30s ease-in-out infinite;
  mix-blend-mode: normal;
  opacity: 0.30;
  filter: saturate(1.25) contrast(1.06);
}

/* 2) Haze */
#faq .purchase-sunrise-haze{
  z-index: 2;
  background:
    radial-gradient(
      circle at 50% 65%,
      rgba(255, 255, 255, 0.14) 0%,
      rgba(255, 255, 255, 0.06) 40%,
      rgba(255, 255, 255, 0.0) 100%
    ),
    url("data:image/svg+xml;utf8,\
      <svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'>\
        <filter id='noiseFilter'>\
          <feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' />\
        </filter>\
        <rect width='300' height='300' filter='url(%23noiseFilter)'/>\
      </svg>"
    );
  background-size: cover, 300px 300px;
  mix-blend-mode: normal;
  opacity: 0.10;
  animation: purchaseHazePulse 30s ease-in-out infinite;
}

/* 3) Sun bloom */
#faq .purchase-sunrise-sun{
  z-index: 3;
  background: radial-gradient(
    circle at 50% 72%,
    rgba(255, 240, 200, 0.55) 0%,
    rgba(255, 210, 140, 0.40) 18%,
    rgba(255, 170, 110, 0.28) 34%,
    rgba(255, 140, 90, 0.16) 55%,
    rgba(255, 120, 75, 0.05) 72%,
    rgba(255, 120, 75, 0) 100%
  );
  mix-blend-mode: normal;
  opacity: 0;
  transform: scale(1.15);
  filter: blur(10px) saturate(1.1);
  animation: purchaseSunPulse 30s ease-in-out infinite;
}

/* If you have a card/container with its own opaque bg, keep it translucent */
#faq .faq-item{
  position: relative;
  z-index: 10;
}