/*
 * Homepage FAQ section (resources/views/website/index.blade.php, "Faq section"), owner 2026-11-17, for review.
 * Same look as the Affiliate Program FAQ (public/website/css/affiliate.css .gaf-faq / .gaf-acc / .gaf-faq-help):
 * heading column on the left (sticky on desktop), one list of white question cards on the right, dark help card below.
 * Own hfq-* classes so the homepage does not load affiliate.css. Not minified.
 */

.hfq {
  --hfq-cream: #f4f4e7;
  --hfq-dark: #001a0d;
  --hfq-lime: #78eb54;
  --hfq-lime-text: #1f8f00;
  --hfq-lime-hl: #32d100;
  --hfq-ink: #1d1d1d;
  --hfq-muted: #1d1d1dbf;
  --hfq-line: #1d1d1d1a;
  --hfq-head: "Onest", "Onest Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hfq-body: "Comfortaa", "Comfortaa Fallback", "Onest", "Onest Fallback", system-ui, sans-serif;
  --hfq-label: "Poppins", "Poppins Fallback", "Onest", "Onest Fallback", system-ui, sans-serif;
  position: relative;
  padding: 104px 0;
  background: var(--hfq-cream);
  color: var(--hfq-ink);
  font-family: var(--hfq-head);
}

.hfq *,
.hfq *::before,
.hfq *::after {
  box-sizing: border-box;
}

.hfq__grid {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr);
  align-items: start;
  gap: 64px;
}

.hfq__side {
  position: sticky;
  top: 110px;
}

.hfq__eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  font: 500 15px/1.4 var(--hfq-label);
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--hfq-lime-text);
}

.hfq__h2 {
  margin: 0;
  font: 700 clamp(34px, 4.2vw, 56px)/1.08 var(--hfq-head);
  letter-spacing: -.02em;
  color: var(--hfq-ink);
}

.hfq__h2 span {
  color: var(--hfq-lime-hl);
}

.hfq__lead {
  max-width: 680px;
  margin: 18px 0 0;
  font: 400 17px/1.7 var(--hfq-body);
  color: var(--hfq-muted);
}

/* questions */
.hfq-acc {
  display: grid;
  gap: 14px;
}

.hfq-acc details {
  border-radius: 24px;
  background: #fff;
}

.hfq-acc summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  list-style: none;
  cursor: pointer;
}

.hfq-acc summary::-webkit-details-marker {
  display: none;
}

.hfq-acc summary:focus-visible {
  outline: 3px solid #78eb548c;
  outline-offset: -3px;
  border-radius: 24px;
}

/* the question is an h3 (SEO); it looks like the affiliate summary text */
.hfq-acc__q {
  margin: 0;
  font: 600 19px/1.35 var(--hfq-label);
  letter-spacing: 0;
  text-transform: none;
  color: var(--hfq-ink);
}

.hfq-acc summary i {
  display: grid;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--hfq-cream);
  transition: transform .2s, background-color .2s, color .2s;
}

.hfq-acc summary i svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8px;
  stroke-linecap: round;
}

.hfq-acc details[open] summary i {
  background: var(--hfq-dark);
  color: var(--hfq-lime);
  transform: rotate(45deg);
}

/* hover (owner, 2026-11-18): the plus icon of a closed question turns lime with a dark sign; the open question shows
   a dark green icon with a lime sign and keeps it on hover (colors swapped on request) */
.hfq-acc details:not([open]) summary:hover i {
  background: var(--hfq-lime);
  color: var(--hfq-dark);
}

.hfq-acc__a {
  padding: 0 28px 26px;
  font: 400 15.5px/1.8 var(--hfq-body);
  color: var(--hfq-muted);
}

.hfq-acc__a p {
  margin: 0 0 10px;
}

.hfq-acc__a p:last-child,
.hfq-acc__a ul:last-child {
  margin-bottom: 0;
}

.hfq-acc__a ul {
  margin: 0 0 10px;
  padding-left: 20px;
}

.hfq-acc__a li {
  margin-bottom: 4px;
}

.hfq-acc__a a {
  color: var(--hfq-lime-text);
  font-weight: 600;
}

/* help card */
.hfq-help {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
  padding: 24px 28px;
  border-radius: 24px;
  background: var(--hfq-dark);
  color: #fefff6;
}

.hfq-help__ico {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: #78eb541f;
  color: var(--hfq-lime);
}

.hfq-help__ico svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hfq-help strong {
  display: block;
  font: 600 19px/1.3 var(--hfq-head);
  color: #fff;
}

.hfq-help p {
  margin: 4px 0 0;
  font: 400 14.5px/1.6 var(--hfq-body);
  color: #ffffffb8;
}

.hfq-help a:not(.hfq-btn) {
  color: var(--hfq-lime);
  font-weight: 600;
  text-decoration: none;
}

.hfq-help__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hfq-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 600 16px/1 var(--hfq-head);
  white-space: nowrap;
  text-decoration: none;
  transition: transform .15s, background-color .15s, box-shadow .15s;
}

.hfq-btn:hover {
  transform: translateY(-1px);
}

.hfq-btn:focus-visible {
  outline: 3px solid #78eb548c;
  outline-offset: 2px;
}

.hfq-btn--lime,
.hfq-btn--lime:hover {
  background: var(--hfq-lime);
  color: #0c1903;
}

.hfq-btn--lime:hover {
  background: #6bdc48;
  box-shadow: 0 10px 24px -12px #32d100cc;
}

.hfq-btn--white,
.hfq-btn--white:hover {
  background: #fff;
  border-color: var(--hfq-line);
  color: var(--hfq-ink);
}

@media (max-width: 991px) {
  .hfq {
    padding: 80px 0;
  }

  .hfq__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .hfq__side {
    position: static;
  }

  .hfq-help {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .hfq-help__cta {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .hfq {
    padding: 64px 0;
  }

  .hfq-acc summary {
    padding: 20px;
  }

  .hfq-acc__q {
    font-size: 16.5px;
  }

  .hfq-acc__a {
    padding: 0 20px 22px;
  }

  .hfq-help {
    grid-template-columns: minmax(0, 1fr);
    padding: 22px 20px;
  }

  .hfq-help__cta .hfq-btn {
    flex: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hfq-acc summary i,
  .hfq-btn {
    transition: none;
  }
}
