/* ==========================================================================
   How it works / FAQ: "Before you join"
   Framer: section "FAQ" framer-p5zxgo (white) > Content framer-1gd4sfe (title + subtitle) and framer-vm94cu
   (Accordion framer-y03sgl of five framer-0ChoX items, "Open/Closed Dark - Eng" variants: black text and plus,
   black 1px dividers; then CTA card framer-ljqqn8 with the hiw-business-cta image and two pill links).
   Same accordion component as the EcoFlow/business FAQ (pages/ecoflow/{partials,css,js}/65-faq), restyled per
   this page's variants. Page breakpoints: desktop >= 1280, tablet 810-1279.98, phone <= 809.98.
   Items toggle independently, the first starts open; height spring driven by js/40-faq.js.
   ========================================================================== */

.nf-hiwb-faq {
  /* Framer layout spring of the item height (open and close), sampled per frame on live at 1440: ~405ms with
     ~1.5% overshoot (201.4 -> 203.4 peak), identical to the EcoFlow/business FAQ */
  --nf-hiwb-faq-dur: 405ms;
  --nf-hiwb-faq-ease: linear(0, 0.094 4.4%, 0.23 8.4%, 0.372 12.6%, 0.593 18.5%, 0.697 22%, 0.794 26.4%, 0.873 30.1%, 0.926 34.1%, 0.967 38.3%, 0.99 42.2%, 1.0056 46.7%, 1.0126 50.6%, 1.0155 54.8%, 1.0139 63.2%, 1.0094 71.4%, 1.0054 79.5%, 1.0029 87.9%, 1);
  /* Framer appear of the title, subtitle, CTA title and both button labels: opacity 0 -> 1, ~430ms,
     each on its own once >= 50% of it is in the viewport, no replay */
  --nf-hiwb-faq-fade-dur: 430ms;
  --nf-hiwb-faq-fade-ease: linear(0, 0.011 2.8%, 0.062 6.7%, 0.134 10.5%, 0.223 14.4%, 0.317 18.4%, 0.405 22.3%, 0.493 26.3%, 0.574 30%, 0.651 34.2%, 0.707 37.9%, 0.762 41.6%, 0.806 45.6%, 0.846 49.5%, 0.879 53.3%, 0.905 57.2%, 0.927 60.9%, 0.945 64.9%, 0.96 69.3%, 0.969 72.6%, 0.978 76.5%, 0.984 80.5%, 0.99 84.4%, 0.993 88.1%, 0.996 92.1%, 0.998 96%, 1);
  position: relative; display: flex; flex-flow: column; justify-content: flex-start; align-items: flex-start; gap: 46px;
  flex: 0 0 auto; width: 100%; height: min-content; padding: 80px 60px; overflow: visible;
  background-color: rgb(255, 255, 255);
}
[data-nf-hiwb-faq-appear] { opacity: 0; will-change: transform; transition: opacity var(--nf-hiwb-faq-fade-dur) var(--nf-hiwb-faq-fade-ease); }
[data-nf-hiwb-faq-appear].is-in { opacity: 1; }

/* ---------- Desktop (>= 1280) ---------- */
.nf-hiwb-faq__head {
  position: relative; display: flex; flex-flow: column; justify-content: center; align-items: center; gap: 23px;
  flex: 0 0 auto; width: 100%; height: min-content; padding: 0; overflow: clip;
}
.nf-hiwb-faq__title-box, .nf-hiwb-faq__sub-box { position: relative; flex: 0 0 auto; width: 100%; max-width: 100%; height: auto; }
.nf-hiwb-faq__title {
  font-family: "SF Pro Display Medium", "SF Pro Display Medium Placeholder", sans-serif; font-size: 64px; font-weight: 500;
  line-height: 1.1em; letter-spacing: normal; color: rgb(0, 0, 0); text-align: center;
  white-space: pre-wrap; word-break: break-word; overflow-wrap: break-word;
}
.nf-hiwb-faq__sub {
  font-family: "SF Pro Display Regular", "SF Pro Display Regular Placeholder", sans-serif; font-size: 28px; font-weight: 400;
  line-height: 1.25em; letter-spacing: normal; color: rgb(0, 0, 0); text-align: center;
  white-space: pre-wrap; word-break: break-word; overflow-wrap: break-word;
}
.nf-hiwb-faq__body {
  position: relative; display: flex; flex-flow: column; justify-content: center; align-items: center; gap: 70px;
  flex: 0 0 auto; width: 100%; height: min-content; padding: 0; overflow: clip;
}
.nf-hiwb-faq__list {
  position: relative; display: flex; flex-flow: column; justify-content: center; align-items: center; gap: 0;
  flex: 0 0 auto; width: 100%; height: min-content; padding: 0; overflow: clip;
}
.nf-hiwb-faq__line { position: relative; flex: 0 0 auto; width: 100%; height: 1px; overflow: clip; background-color: rgb(0, 0, 0); }
.nf-hiwb-faq__item {
  /* Framer: align-items center (closed) / column (open); the only child fills the item at rest, so flex-start is
     identical there and keeps the content anchored to the top while the height animates (as on live) */
  position: relative; display: flex; flex-flow: row; justify-content: space-between; align-items: flex-start;
  flex: 0 0 auto; width: 100%; height: min-content; padding: 0; overflow: hidden; cursor: pointer;
}
.nf-hiwb-faq__inner {
  position: relative; display: flex; flex-flow: column; justify-content: flex-start; align-items: flex-start; gap: 0;
  flex: 1 0 0; width: 1px; height: min-content; padding: 0; overflow: hidden;
}
.nf-hiwb-faq__q {
  position: relative; display: flex; flex-flow: row; justify-content: flex-start; align-items: center; gap: 24px;
  flex: 0 0 auto; width: 100%; height: min-content; padding: 20px 0; overflow: visible;
  user-select: none; -webkit-user-select: none;
}
.nf-hiwb-faq__q:focus-visible { outline: 2px solid var(--nf-green); outline-offset: 2px; } /* not on live, added for keyboard users */
.nf-hiwb-faq__q-box { position: relative; flex: 1 0 0; width: 1px; height: auto; }
.nf-hiwb-faq__q-text {
  font-family: "SF Pro Display Medium", "SF Pro Display Medium Placeholder", sans-serif; font-size: 21px; font-weight: 500;
  line-height: 1.4em; letter-spacing: normal; color: rgb(0, 0, 0); text-align: left;
  white-space: pre-wrap; word-break: break-word; overflow-wrap: break-word;
}
.nf-hiwb-faq__plus { position: relative; z-index: 1; flex: 0 0 auto; width: 16px; height: 16px; overflow: hidden; }
.nf-hiwb-faq__plus-h, .nf-hiwb-faq__plus-v { position: absolute; display: block; border-radius: 10px; background-color: rgb(0, 0, 0); }
.nf-hiwb-faq__plus-h { width: 16px; height: 2px; top: calc(50% - 1px); left: calc(50% - 8px); }
.nf-hiwb-faq__plus-v { width: 2px; height: 16px; top: calc(50% - 8px); left: calc(50% - 1px); }
.nf-hiwb-faq__item.is-open .nf-hiwb-faq__plus-v { display: none; } /* live swaps variant: the bar disappears at once, no rotation */
.nf-hiwb-faq__a {
  position: relative; display: none; flex-flow: column; justify-content: flex-start; align-items: flex-start; gap: 20px;
  flex: 0 0 auto; width: 100%; height: min-content; padding: 0 20px 20px 0; overflow: visible;
}
.nf-hiwb-faq__item.is-open .nf-hiwb-faq__a { display: flex; }
.nf-hiwb-faq__a-box { position: relative; flex: 0 0 auto; width: 100%; height: auto; user-select: none; -webkit-user-select: none; }
.nf-hiwb-faq__a-text {
  font-family: "SF Pro Display Regular", "SF Pro Display Regular Placeholder", sans-serif; font-size: 20px; font-weight: 400;
  line-height: 1.4em; letter-spacing: normal; color: rgb(0, 0, 0); text-align: left;
  white-space: pre-wrap; word-break: break-word; overflow-wrap: break-word;
}

/* CTA card: image fills the card (cover), copy and pills centred on top */
.nf-hiwb-faq__cta {
  position: relative; display: flex; flex-flow: column; justify-content: center; align-items: center; gap: 38px;
  flex: 0 0 auto; width: 100%; max-width: 100%; height: min-content; padding: 84px; overflow: clip;
  border-radius: 24px; will-change: transform;
}
.nf-hiwb-faq__cta-bg { position: absolute; inset: 0; border-radius: 24px; }
.nf-hiwb-faq__cta-bg picture { display: contents; }
.nf-hiwb-faq__cta-img {
  display: block; width: 100%; height: 100%; border-radius: 24px; overflow: clip;
  object-fit: cover; object-position: 50% 50%;
}
.nf-hiwb-faq__cta-title-box { position: relative; flex: 0 0 auto; width: 654px; max-width: 100%; height: auto; }
.nf-hiwb-faq__cta-title {
  font-family: "SF Pro Display Regular", "SF Pro Display Regular Placeholder", sans-serif; font-size: 60px; font-weight: 400;
  line-height: 1.15em; letter-spacing: normal; color: rgb(255, 255, 255); text-align: center;
  white-space: pre-wrap; word-break: break-word; overflow-wrap: break-word;
}
.nf-hiwb-faq__actions {
  position: relative; display: flex; flex-flow: column; justify-content: center; align-items: center; gap: 16px;
  flex: 0 0 auto; width: 414px; height: min-content; padding: 0; overflow: visible;
}
.nf-hiwb-faq__btn {
  position: relative; display: flex; flex-flow: row; justify-content: center; align-items: center; gap: 0;
  flex: 0 0 auto; width: 100%; max-width: 100%; height: min-content; padding: 16px 80px; overflow: clip;
  border-radius: 99px; text-decoration: none; will-change: transform; cursor: pointer;
  color: rgb(0, 0, 238); /* live leaves the UA link colour on the <a> (labels set their own colour) */
}
.nf-hiwb-faq__btn:active { color: rgb(255, 0, 0); } /* UA :active link colour on live; invisible, kept for parity */
.nf-hiwb-faq__btn--fill { background-color: rgb(145, 200, 81); }
/* Outline as an inset shadow on the button itself (Danny, 2026-10-26): live's 0.75px border on ::after was clipped at the
   bottom by the button's overflow (sub-pixel heights), so the line looked cut off. */
.nf-hiwb-faq__btn--line { box-shadow: inset 0 0 0 1px rgb(255, 255, 255); }
.nf-hiwb-faq__btn:focus-visible { outline: 2px solid var(--nf-green); outline-offset: 2px; } /* not on live, added for keyboard users */
.nf-hiwb-faq__btn-box { position: relative; display: block; flex: 0 0 auto; width: auto; height: auto; white-space: pre; }
.nf-hiwb-faq__btn-text {
  font-family: "SF Pro Display Regular", "SF Pro Display Regular Placeholder", sans-serif; font-size: 22px; font-weight: 400;
  line-height: 1.15em; letter-spacing: normal; color: rgb(0, 0, 0); text-align: center; white-space: pre;
}
.nf-hiwb-faq__btn--line .nf-hiwb-faq__btn-text { color: rgb(255, 255, 255); }

/* ---------- Tablet (810 to 1279.98) ---------- */
@media (min-width: 810px) and (max-width: 1279.98px) {
  .nf-hiwb-faq { padding: 60px 40px; }
  .nf-hiwb-faq__list { justify-content: flex-start; overflow: visible; }
  .nf-hiwb-faq__cta { padding: 60px; }
  .nf-hiwb-faq__cta-img { object-position: 88.1% 74.3%; }
}

/* ---------- Phone (<= 809.98) ---------- */
@media (max-width: 809.98px) {
  .nf-hiwb-faq { gap: 20px; padding: 32px 16px; }
  .nf-hiwb-faq__head { gap: 8px; }
  .nf-hiwb-faq__title { font-size: 24px; }
  .nf-hiwb-faq__sub { font-size: 16px; }
  .nf-hiwb-faq__body { gap: 30px; }
  .nf-hiwb-faq__list { overflow: visible; }
  .nf-hiwb-faq__q-text { font-size: 17px; line-height: 1.4em; letter-spacing: 0.04em; }
  /* live's Mobile "Open" variant tightens the question to 1.25em; kept at 1.4em so it does not jump when opened (Danny, 2026-10-20) */
  .nf-hiwb-faq__plus { width: 12px; height: 12px; aspect-ratio: 1 / 1; }
  .nf-hiwb-faq__a { padding: 0 0 20px 0; }
  .nf-hiwb-faq__a-text { font-size: 16px; line-height: 1.4em; letter-spacing: 0.04em; }
  .nf-hiwb-faq__cta { gap: 16px; height: 281px; padding: 60px; }
  .nf-hiwb-faq__cta-img { object-position: 87% 66.1%; }
  .nf-hiwb-faq__cta-title-box { width: 100%; height: 37%; }
  .nf-hiwb-faq__cta-title { font-size: 26px; }
  .nf-hiwb-faq__actions { width: 100%; }
  .nf-hiwb-faq__btn { padding: 8px; }
  .nf-hiwb-faq__btn-text { font-family: "SF Pro Display Medium", "SF Pro Display Medium Placeholder", sans-serif; font-size: 16px; font-weight: 500; }
}

@media (prefers-reduced-motion: reduce) { [data-nf-hiwb-faq-appear] { transition: none; } }

/* CTA title on two set lines (Danny, 2026-10-26): the box takes the card width so line 1 is not wrapped */
.nf-hiwb-faq__cta-title-box { width: 100%; }
/* phone: the residential card has a fixed 281px height and a 37% title box; the two-line business title needs more,
   so the card grows with its content */
@media (max-width: 809.98px) {
  .nf-hiwb-faq__cta { height: auto; padding: 40px 20px; }
  .nf-hiwb-faq__cta-title-box { height: auto; }
  .nf-hiwb-faq__cta-title { font-size: 23px; } /* keeps each of the two lines on one line at 375 to 390 */
}

/* Lighter, like the business FAQ and the sections around it (Danny, 2026-10-26): title 52px Regular (tablet 42, phone 26),
   questions styled as the residential FAQ (below). */
.nf-hiwb-faq__title { font-family: "SF Pro Display Regular", "SF Pro Display Regular Placeholder", sans-serif; font-weight: 400; font-size: 52px; line-height: 1.1em; }
@media (min-width: 810px) and (max-width: 1279.98px) { .nf-hiwb-faq__title { font-size: 42px; } }
@media (max-width: 809.98px) { .nf-hiwb-faq__title { font-size: 26px; } }

/* Questions exactly as the residential FAQ (Danny, 2026-10-27): SF Pro Display Medium 24px / 30px on desktop and tablet,
   17px / 1.4em with 0.04em tracking on phone. */
.nf-hiwb-faq__q-text { font-family: "SF Pro Display Medium", "SF Pro Display Medium Placeholder", sans-serif; font-weight: 500; font-size: 24px; line-height: 30px; letter-spacing: normal; }
@media (max-width: 809.98px) { .nf-hiwb-faq__q-text { font-size: 17px; line-height: 1.4em; letter-spacing: 0.04em; } }
