/* ==========================================================================
   Components – buttons, audience switch, marquee, social proof, FAQ
   ========================================================================== */

/* ---------- Buttons: lift, glow and a light sweep ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  min-height: 56px; max-width: 100%;
  padding: 14px 32px;
  border-radius: var(--radius-btn);
  font-size: 1.25rem;
  line-height: 1.4;
  white-space: nowrap;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), background-color .45s var(--ease-out), filter .45s var(--ease-out);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 25%, rgb(255 255 255 / .45) 50%, transparent 75%);
  translate: -110% 0;
  transition: translate .8s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); }
.btn:hover::before { translate: 110% 0; }
.btn:active { transform: translateY(0) scale(.98); transition-duration: .15s; }
.btn--dark::before, .btn--ink::before, .btn--glass::before {
  background: linear-gradient(110deg, transparent 25%, rgb(255 255 255 / .12) 50%, transparent 75%);
}

/* Brands (dark) buttons: 18px / padding 18×40 / height 61 */
.btn--primary, .btn--glass, .btn--dark { min-height: 61px; padding: 18px 40px; font-size: 1.125rem; }
.btn--primary {
  background: linear-gradient(90deg, var(--lime-pale), var(--lime));
  color: var(--neutral-900);
}
.btn--glass {
  background: linear-gradient(90deg, rgb(53 53 53 / .6), rgb(53 53 53 / .2));
  color: var(--neutral-100);
  box-shadow: inset 0 0 0 .5px rgb(230 254 44 / .5), inset 0 4px 8px rgb(230 254 44 / .2);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.btn--glass:hover { box-shadow: inset 0 0 0 1px rgb(230 254 44 / .7), inset 0 4px 12px rgb(230 254 44 / .25), 0 10px 32px rgb(230 254 44 / .12); }
.btn--dark { background: var(--neutral-900); color: var(--neutral-100); }
.btn--dark:hover { background: var(--neutral-800); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12), 0 10px 30px rgb(0 0 0 / .4); }

/* Creators (light) buttons: 20px / padding 14×32 / height 56 */
.btn--ink { background: var(--neutral-900); }
.btn--dark, .btn--ink {
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .06), inset 0 1px 0 rgb(255 255 255 / .08);
}
.btn--ink:hover { box-shadow: inset 0 0 0 1px rgb(255 255 255 / .08), 0 12px 30px rgb(0 0 0 / .22); }
.btn--white {
  background: rgb(255 255 255 / .75); color: var(--neutral-900);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .9), 2px 2px 6px rgb(0 0 0 / .08);
}
.btn--white:hover { background: #fff; box-shadow: inset 0 0 0 1px #fff, 0 12px 28px rgb(0 0 0 / .1); }
.btn--lime { background: var(--lime); color: var(--neutral-950); padding-inline: 24px; }
.btn--lime:hover { filter: brightness(.97); box-shadow: 0 8px 28px rgb(159 154 16 / .3); }

/* Magnetic (JS writes --tx / --ty) and pulsing call-to-action buttons.
   The pulse animates only --pulse; the ring is derived from it in box-shadow.
   Hover simply overrides box-shadow, so no animation is ever removed or restarted. */
.btn--primary, .btn--lime, .btn--glass, .btn--ink { translate: var(--tx, 0) var(--ty, 0); transition-property: transform, box-shadow, background-color, filter, translate; }
.btn--primary, .btn--lime { animation: cta-pulse 3.2s var(--ease-out) infinite; }
.btn--primary.reveal.is-visible, .btn--lime.reveal.is-visible {
  animation: reveal .9s var(--ease-out) var(--reveal-delay, 0s) both, cta-pulse 3.2s var(--ease-out) 1.2s infinite;
}
.btn--primary {
  box-shadow: inset 0 0 0 .5px rgb(230 254 44 / .5), inset 0 4px 8px rgb(230 254 44 / .2),
    0 0 0 calc(var(--pulse) * 16px) rgb(230 254 44 / calc(.45 - var(--pulse) * .45));
}
.btn--primary:hover { box-shadow: inset 0 0 0 .5px rgb(230 254 44 / .6), 0 12px 40px rgb(230 254 44 / .28); }
.btn--lime {
  box-shadow: inset 0 4px 8px rgb(230 254 44 / .2),
    0 0 0 calc(var(--pulse) * 16px) rgb(230 254 44 / calc(.45 - var(--pulse) * .45));
}
@keyframes cta-pulse {
  0% { --pulse: 0; }
  70%, 100% { --pulse: 1; }
}

/* Large section CTAs */
.grow__cta .btn, .campaigns > .btn, .cta .btn, .testimonials__cta .btn { min-height: 68px; padding-inline: 48px; font-size: 1.25rem; border-radius: 16px; }

/* ---------- Audience switch: springy thumb ---------- */
.audience-switch { display: flex; align-items: center; gap: 12px; view-transition-name: audience-switch; }
.audience-switch__label {
  font-size: 1rem; line-height: 1.4;
  color: var(--muted);
  padding: 4px 0;
  transition: color .2s ease;
}
.view--creators .audience-switch__label { color: var(--neutral-900); }
.audience-switch__label:hover { color: var(--text); }
.audience-switch__toggle {
  position: relative; flex: none;
  width: 76px; height: 44px; border-radius: 40px;
  background: var(--neutral-800);
  box-shadow: inset 0 0 0 1px var(--neutral-900);
  transition: box-shadow .4s var(--ease-out);
}
.view--creators .audience-switch__toggle { background: var(--neutral-100); box-shadow: inset 0 0 0 1px var(--neutral-300); }
.audience-switch__toggle::before {
  content: ""; position: absolute; inset: 6px;
  border-radius: 40px;
  background: linear-gradient(90deg, var(--olive), var(--lime));
  box-shadow: inset 0 0 0 1px var(--neutral-300);
}
.audience-switch__toggle:hover { box-shadow: inset 0 0 0 1px var(--neutral-900), 0 0 0 4px rgb(230 254 44 / .12); }
.view--creators .audience-switch__toggle:hover { box-shadow: inset 0 0 0 1px var(--neutral-300), 0 0 0 4px rgb(159 154 16 / .12); }
.audience-switch__toggle:hover::before { filter: brightness(1.06); }
.audience-switch__thumb {
  position: absolute; top: 10px; left: 10px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--neutral-50);
  box-shadow: 0 0 2px rgb(0 0 0 / .1), 0 1px 3px rgb(0 0 0 / .2);
  transition: transform .55s var(--ease-spring), width .3s var(--ease-out);
}
.audience-switch__toggle[aria-checked="true"] .audience-switch__thumb { transform: translateX(32px); }
.audience-switch__toggle:active .audience-switch__thumb { width: 30px; }
.audience-switch__toggle[aria-checked="true"]:active .audience-switch__thumb { transform: translateX(26px); }

/* ---------- Marquee bands ---------- */
.marquees { position: relative; height: clamp(180px, 22vw, 300px); margin-block: 0 40px; overflow-x: clip; display: grid; place-items: center; }
.marquee {
  position: absolute; left: -5%; width: 110%;
  padding-block: clamp(10px, 1.2vw, 18px);
  overflow: hidden;
}
.marquee--a { rotate: -3deg; z-index: 2; background: var(--lime); color: var(--neutral-950); box-shadow: 0 20px 60px rgb(230 254 44 / .25); }
.marquee--b { rotate: 2.5deg; z-index: 1; background: var(--neutral-900); color: var(--neutral-50); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .06); }
.view--creators .marquee--a { background: var(--neutral-900); color: var(--lime); box-shadow: 0 20px 60px rgb(0 0 0 / .18); }
.view--creators .marquee--b { background: var(--lime); color: var(--neutral-900); box-shadow: none; }
.marquee__track { display: flex; align-items: center; gap: clamp(20px, 2.4vw, 40px); width: max-content; animation: marquee 40s linear infinite; }
.marquee--b .marquee__track { animation-direction: reverse; animation-duration: 55s; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  font-family: var(--font-display); font-weight: 800; font-stretch: 62%;
  text-transform: uppercase; white-space: nowrap;
  font-size: clamp(2.25rem, 1rem + 4.4vw, 5.5rem); line-height: 1;
}
.marquee--b .marquee__item { font-size: clamp(1.75rem, .9rem + 3vw, 4rem); }
.marquee__item--outline { color: transparent; -webkit-text-stroke: 1.5px currentColor; }
.marquee--a .marquee__item--outline { -webkit-text-stroke-color: var(--neutral-950); }
.view--creators .marquee--a .marquee__item--outline { -webkit-text-stroke-color: var(--lime); }
.marquee--b .marquee__item--outline { -webkit-text-stroke-color: var(--neutral-50); }
.view--creators .marquee--b .marquee__item--outline { -webkit-text-stroke-color: var(--neutral-900); }
/* The star spins on a wrapper: animations on SVG elements run on the main thread, on an
   HTML element the compositor takes them over (no style recalculation every frame). */
.marquee__star { flex: none; display: block; width: clamp(20px, 2.4vw, 40px); animation: spin 8s linear infinite; }
.marquee__star svg { display: block; width: 100%; height: auto; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Social proof: avatars fan out on hover ---------- */
.social-proof { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.view--creators .social-proof { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 8px 12px; }
.social-proof__avatars { display: flex; }
.social-proof__avatars li { transition: margin .5s var(--ease-out), transform .5s var(--ease-out); }
.social-proof__avatars li + li { margin-left: -15px; }
.social-proof:hover .social-proof__avatars li + li { margin-left: -6px; }
.social-proof:hover .social-proof__avatars li { transform: translateY(-2px); }
.social-proof__avatars img { width: 40px; height: 40px; border-radius: 50%; }
.view--creators .social-proof__avatars img { box-shadow: 0 0 0 3px var(--neutral-100); object-fit: cover; }
.social-proof__label { font-size: 1.125rem; line-height: 1.2; color: var(--muted); }
.social-proof__label strong { font-weight: 600; color: var(--neutral-900); }

/* ---------- FAQ: glass panel and items with smooth height ---------- */
.faq { padding: 0 var(--gutter) 24px; }
.faq__panel {
  position: relative;
  max-width: 1280px; margin-inline: auto;
  padding: 80px 24px 110px;
  border-radius: 40px;
  background: radial-gradient(700px 320px at 50% 0%, rgb(230 254 44 / .06), transparent 70%), var(--surface);
  box-shadow: 0 -8px 32px rgb(230 254 44 / .1);
}
.view--creators .faq__panel {
  background: radial-gradient(700px 320px at 50% 0%, rgb(230 254 44 / .14), transparent 70%), var(--surface);
}
/* top-lit lime border that fades out downwards */
.faq__panel::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(180deg, rgb(230 254 44 / .55), rgb(230 254 44 / .15) 35%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.faq__panel::after {
  content: ""; position: absolute; left: -48px; right: -48px; bottom: -48px; height: calc(30% + 48px); pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--bg) 75%);
}
.faq__list { position: relative; z-index: 1; display: grid; gap: 16px; max-width: 846px; margin: 56px auto 0; }
/* Two-class selector on purpose: its transition wins over the generic .has-spotlight one (effects.css) */
.faq__list .faq__item {
  border-radius: 16px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  box-shadow: inset 0 0 0 1px var(--faq-border), inset 0 1px 0 var(--glass-highlight);
  interpolate-size: allow-keywords;
  transition: --spot .6s var(--ease-out), box-shadow .5s var(--ease-out), background-color .5s var(--ease-out);
}
.view--brands .faq__item[open] { box-shadow: 0 0 15px rgb(255 255 255 / .08), inset 0 0 0 1px var(--neutral-800), inset 0 1px 0 var(--glass-highlight); }
.view--creators .faq__item[open] { box-shadow: 0 0 15px rgb(167 167 167 / .2), inset 0 0 0 1px var(--lime), inset 0 1px 0 var(--glass-highlight); }
.faq__item::details-content {
  block-size: 0; overflow: hidden;
  transition: block-size .5s var(--ease-out), content-visibility .5s allow-discrete;
}
.faq__item[open]::details-content { block-size: auto; }
.faq__item summary {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 72px; padding: 16px 32px;
  font-size: 1.125rem; font-weight: 500; line-height: 1.35;
  color: var(--text);
  cursor: pointer; list-style: none;
  border-radius: 16px;
  transition: color .3s var(--ease-out);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary svg { flex: none; width: 32px; height: 32px; margin-right: 4px; transition: transform .5s var(--ease-out), color .3s var(--ease-out); }
.faq__item[open] summary svg { transform: rotate(180deg); }
.faq__item summary:hover svg { color: var(--lime); }
.view--creators .faq__item summary:hover svg { color: var(--olive); }
.faq__item p {
  position: relative; z-index: 2;
  padding: 2px 32px 24px;
  max-width: 767px;
  font-size: 1rem; line-height: 1.55;
  color: var(--faq-body);
  opacity: 0; translate: 0 6px;
  transition: opacity .45s var(--ease-out), translate .45s var(--ease-out);
}
.faq__item[open] p { opacity: 1; translate: 0 0; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  .marquees { margin-bottom: 16px; }
}

@media (max-width: 640px) {
  .btn { min-height: 52px; padding: 12px 24px; font-size: 1.0625rem; white-space: normal; text-align: center; text-wrap: balance; }
  .btn--primary, .btn--glass, .btn--dark { min-height: 52px; padding: 12px 28px; font-size: 1.0625rem; }
  /* Big CTAs: keep inside the viewport, wrap gracefully on very narrow phones */
  .grow__cta .btn, .campaigns > .btn, .cta .btn, .testimonials__cta .btn { min-height: 60px; padding-inline: 32px; font-size: 1.125rem; }

  .audience-switch { gap: 10px; }
  .audience-switch__label { font-size: .9375rem; }

  .faq__panel { padding: 56px 12px 80px; border-radius: 28px; }
  .faq__list { margin-top: 36px; gap: 12px; }
  .faq__item summary { padding: 14px 16px 14px 20px; min-height: 64px; }
  .faq__item summary svg { width: 28px; height: 28px; margin-right: 0; }
  .faq__item p { padding: 2px 20px 20px; }
}

@media (max-width: 360px) {
  .audience-switch { gap: 8px; }
  .audience-switch__label { font-size: .875rem; }
}

/* Touch devices: hover effects would "stick" after a tap – keep them off and
   give a short press feedback instead. */
@media (hover: none) {
  .btn:hover { transform: none; filter: none; }
  .btn:hover::before { translate: -110% 0; }
  .btn:active { transform: scale(.97); transition-duration: .1s; }
  .social-proof:hover .social-proof__avatars li { transform: none; }
  .social-proof:hover .social-proof__avatars li + li { margin-left: -15px; }
  .marquee:hover .marquee__track { animation-play-state: running; }
}

@media (pointer: coarse) {
  .audience-switch__label { padding-block: 13px; margin-block: -9px; }
}
