/* ===== How it works for business: The Journey (not on live; Danny, 2026-10-26). Matches the residential journey
   (pages/how-it-works/css/20-journey.css, measured on live): 3px black centre line, 12px black dots, 46px green start and
   end nodes, black milestone pills (30px white text, 33px green check), STEP labels 20px grey, titles 42px, body 28px,
   supporting lines 20px light grey, the grey "choose your plan" card style. Desktop >= 1440: steps alternate either side
   of the line. Tablet and phone: no line, everything stacks, pills centred. ===== */

.nf-hiwb-j {
  --nf-hiwb-j-reg: "SF Pro Display Regular", "SF Pro Display Regular Placeholder", sans-serif;
  --nf-hiwb-j-med: "SF Pro Display Medium", "SF Pro Display Medium Placeholder", sans-serif;
  --nf-hiwb-j-tmed: "SFProText-Medium", "SF Pro Text", "Nafas Inter", sans-serif;
  --nf-hiwb-j-tsemi: "SFProText-Semibold", "SF Pro Text", "Nafas Inter", sans-serif;
  --nf-hiwb-j-treg: "SFProText-Regular", "SF Pro Text", "Nafas Inter", sans-serif;
  --nf-hiwb-j-track: 172px;
  display: flex; flex-direction: column; gap: 40px; width: 100%; padding: 0 60px 80px; background-color: #fff;
}
.nf-hiwb-j p, .nf-hiwb-j h2, .nf-hiwb-j h3, .nf-hiwb-j ol { margin: 0; padding: 0; }
.nf-hiwb-j ol { list-style: none; }
.nf-hiwb-j [data-nf-fade] { opacity: 0; }
.nf-hiwb-j [data-nf-fade].is-in { opacity: 1; transition: opacity 0.437s linear(0 0.0%, 0.0174 1.1%, 0.0739 4.5%, 0.1538 8.4%, 0.2396 12.0%, 0.334 15.9%, 0.4211 19.6%, 0.5131 23.7%, 0.5876 27.4%, 0.6584 31.3%, 0.7169 34.9%, 0.7706 38.8%, 0.8137 42.5%, 0.8522 46.4%, 0.8841 50.3%, 0.9102 54.1%, 0.9302 57.8%, 0.9474 61.7%, 0.9602 65.6%, 0.9716 69.5%, 0.9794 73.1%, 0.9858 77.0%, 0.9903 80.9%, 0.9939 84.6%, 0.9964 88.5%, 0.9984 92.4%, 0.9997 96.0%, 1 100.0%); }
@media (prefers-reduced-motion: reduce) { .nf-hiwb-j [data-nf-fade] { opacity: 1; transition: none; } }

/* heading */
.nf-hiwb-j__head { display: flex; flex-direction: column; gap: 12px; }
.nf-hiwb-j__eyebrow { font-family: var(--nf-hiwb-j-tmed); font-weight: 500; font-size: 20px; line-height: 1.2; color: rgb(122, 122, 122); }
.nf-hiwb-j__heading { font-family: var(--nf-hiwb-j-med); font-weight: 500; font-size: 42px; line-height: 1.1; color: #000; }

/* text */
.nf-hiwb-j__text { display: flex; flex-direction: column; gap: 13px; min-width: 0; }
.nf-hiwb-j__label { margin-bottom: 8px !important; font-family: var(--nf-hiwb-j-tmed); font-weight: 500; font-size: 20px; line-height: 1.2; color: rgb(158, 158, 158); }
.nf-hiwb-j__title { font-family: var(--nf-hiwb-j-med); font-weight: 500; font-size: 42px; line-height: 1.25; color: #000; }
.nf-hiwb-j__body { font-family: var(--nf-hiwb-j-reg); font-weight: 400; font-size: 28px; line-height: 1.25; color: #000; }
.nf-hiwb-j__support { margin-top: 24px !important; font-family: var(--nf-hiwb-j-tmed); font-weight: 500; font-size: 20px; line-height: 1.25; letter-spacing: 0.02em; color: rgb(150, 150, 150); }
/* Tier 3 link (black text, underline, arrow) */
.nf-hiwb-j__link {
  display: inline-flex; align-items: center; align-self: flex-start; margin-top: 16px; color: #000; text-decoration: none;
  font-family: var(--nf-hiwb-j-med); font-weight: 500; font-size: 22px; line-height: 1.15;
}
.nf-hiwb-j__link-text { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.nf-hiwb-j__arrow { flex: none; width: 24px; height: 24px; margin: -3px 0 -3px 4px; }
@media (hover: hover) { .nf-hiwb-j__link:hover .nf-hiwb-j__link-text { text-decoration-thickness: 2px; } }
.nf-hiwb-j__link:focus-visible { outline: 2px solid var(--nf-green, #91c851); outline-offset: 3px; }

/* media */
/* same shape as the home journey images at every breakpoint (Danny 2026-10-27): 1.21541 / 1 as in 20-journey.css, and the home PNGs' baked
   corner (radius 90px on 2319 x 1908) as percentages, so the corner scales with the image the same way */
.nf-hiwb-j__media { position: relative; width: 100%; aspect-ratio: 1.21541 / 1; overflow: hidden; border-radius: 3.88% / 4.72%; }
.nf-hiwb-j__media picture, .nf-hiwb-j__media img { display: block; width: 100%; height: 100%; }
.nf-hiwb-j__media img { object-fit: cover; object-position: center; }

/* "What we measure" card: the residential plan card (grey panel, white rows) */
.nf-hiwb-j__card {
  display: flex; flex-direction: column; align-items: stretch; gap: 20px; width: 100%;
  padding: 25px 22px 32px; border-radius: 24px; background-color: rgb(245, 245, 245);
}
.nf-hiwb-j__card-label { font-family: var(--nf-hiwb-j-tsemi); font-weight: 600; font-size: 18px; line-height: 1.15; color: rgb(97, 97, 97); text-align: center; }
.nf-hiwb-j__rows { display: flex; flex-direction: column; gap: 12px; }
.nf-hiwb-j__row { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px 20px; border-radius: 15px; background-color: #fff; text-align: center; }
.nf-hiwb-j__row-title { font-family: var(--nf-hiwb-j-tsemi); font-weight: 600; font-size: 20px; line-height: 1.25; color: #000; }
.nf-hiwb-j__row-sub { font-family: var(--nf-hiwb-j-treg); font-weight: 400; font-size: 15px; line-height: 1.3; color: rgb(158, 158, 158); }
.nf-hiwb-j__card-note { font-family: var(--nf-hiwb-j-tmed); font-weight: 500; font-size: 15px; line-height: 1.25; color: rgb(150, 150, 150); text-align: center; }
.nf-hiwb-j__sub { position: relative; bottom: -0.25em; font-size: 0.7em; line-height: 0; vertical-align: baseline; }
.nf-hiwb-j__sep { height: 1px; background-color: rgb(158, 158, 158); }
.nf-hiwb-j__row--pilot { gap: 6px; }
.nf-hiwb-j__link--small { align-self: center; margin-top: 6px; font-size: 18px; }
.nf-hiwb-j__link--small .nf-hiwb-j__arrow { width: 20px; height: 20px; margin: -2px 0 -2px 4px; }

/* milestone pill (residential "You're a member") */
.nf-hiwb-j__pill {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 12px; padding: 12px 16px;
  border-radius: 99px; background-color: #000; white-space: nowrap;
}
.nf-hiwb-j__pill-icon { display: block; flex: none; width: 33px; height: 33px; }
.nf-hiwb-j__pill-icon picture, .nf-hiwb-j__pill-icon img { display: block; width: 100%; height: 100%; }
.nf-hiwb-j__pill-text { font-family: var(--nf-hiwb-j-med); font-weight: 500; font-size: 30px; line-height: 1.15; color: #fff; }

/* ---------- Desktop (>= 1280): centre line, steps alternate ---------- */
@media (min-width: 1280px) {
  /* Same box as the home journey (Danny 2026-10-27): steps in a centred 1320px block, 602px columns either side of a
     116px track, so every image is 602 x 495 at any width >= 1440 (it grew with the window before: 814px at 1920) */
  .nf-hiwb-j { --nf-hiwb-j-track: 116px; }
  .nf-hiwb-j__list { display: flex; flex-direction: column; align-self: center; width: 1320px; max-width: 100%; }
  .nf-hiwb-j__step, .nf-hiwb-j__milestone, .nf-hiwb-j__end {
    position: relative; display: grid; grid-template-columns: minmax(0, 1fr) var(--nf-hiwb-j-track) minmax(0, 1fr); align-items: start;
  }
  /* the line: 3px black down the middle of every row */
  .nf-hiwb-j__step::before, .nf-hiwb-j__milestone::before, .nf-hiwb-j__end::before {
    content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; margin-left: -1.5px; background-color: #000;
  }
  /* a 12px black dot at the top of each step */
  .nf-hiwb-j__step::after {
    content: ""; position: absolute; top: 0; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 99px; background-color: #000;
  }
  .nf-hiwb-j__step { padding-top: 28px; }
  .nf-hiwb-j__step > :first-child { grid-column: 1; }
  .nf-hiwb-j__step > :last-child { grid-column: 3; }
  .nf-hiwb-j__step--left .nf-hiwb-j__text { align-items: flex-end; text-align: end; }
  .nf-hiwb-j__step--left .nf-hiwb-j__link { align-self: flex-end; }
  /* first step: the 46px green start node (with the black dot), content level with it, line starts at the node */
  .nf-hiwb-j__step--first { padding-top: 0; }
  .nf-hiwb-j__step--first::before { top: 23px; }
  .nf-hiwb-j__step--first::after { top: 0; width: 46px; height: 46px; margin-left: -23px; background: radial-gradient(circle, #000 0 6px, rgb(145, 200, 81) 6.5px); }
  .nf-hiwb-j__milestone { justify-items: center; padding: 85px 0 80px; }
  .nf-hiwb-j__milestone > .nf-hiwb-j__pill { grid-column: 1 / -1; }
  /* end: line down to the 46px green node */
  .nf-hiwb-j__end { height: 46px; }
  .nf-hiwb-j__end::before { bottom: 23px; }
  .nf-hiwb-j__end::after {
    content: ""; position: absolute; bottom: 0; left: 50%; width: 46px; height: 46px; margin-left: -23px; border-radius: 99px;
    background: radial-gradient(circle, #000 0 6px, rgb(145, 200, 81) 6.5px);
  }
}

/* ---------- Tablet and phone: no line, stacked, text before media, pills centred ---------- */
@media (max-width: 1279.98px) {
  .nf-hiwb-j__head { align-items: center; text-align: center; }
  .nf-hiwb-j__list { display: flex; flex-direction: column; }
  .nf-hiwb-j__step { display: flex; flex-direction: column; gap: 32px; }
  .nf-hiwb-j__step .nf-hiwb-j__text { order: 1; }
  .nf-hiwb-j__step .nf-hiwb-j__media, .nf-hiwb-j__step .nf-hiwb-j__card { order: 2; }
  .nf-hiwb-j__milestone { display: flex; justify-content: center; padding: 40px 0 80px; }
  .nf-hiwb-j__end { display: none; }
}
@media (min-width: 810px) and (max-width: 1279.98px) {
  .nf-hiwb-j { padding: 0 40px 60px; }
}
@media (max-width: 809.98px) {
  .nf-hiwb-j { gap: 24px; padding: 0 16px 40px; }
  .nf-hiwb-j__head { gap: 8px; }
  .nf-hiwb-j__eyebrow { font-size: 14px; }
  .nf-hiwb-j__heading { font-size: 24px; line-height: 1.2; }
  .nf-hiwb-j__step { gap: 20px; }
  .nf-hiwb-j__text { gap: 8px; }
  .nf-hiwb-j__label { margin-bottom: 0 !important; font-size: 18px; }
  .nf-hiwb-j__title { font-size: 28px; }
  .nf-hiwb-j__body { font-size: 16px; letter-spacing: 0.01em; }
  .nf-hiwb-j__support { margin-top: 8px !important; font-size: 13px; letter-spacing: 0.01em; }
  .nf-hiwb-j__link { margin-top: 8px; font-size: 15px; }
  .nf-hiwb-j__arrow { width: 18px; height: 18px; margin: -2px 0 -2px 3px; }
  .nf-hiwb-j__card { gap: 14px; padding: 18px 12px 20px; border-radius: 16px; }
  .nf-hiwb-j__card-label { font-size: 12px; }
  .nf-hiwb-j__rows { gap: 8px; }
  .nf-hiwb-j__row { padding: 12px; border-radius: 12px; }
  .nf-hiwb-j__row-title { font-size: 15px; }
  .nf-hiwb-j__row-sub, .nf-hiwb-j__card-note { font-size: 12px; }
  .nf-hiwb-j__link--small { font-size: 14px; }
  .nf-hiwb-j__milestone { padding: 24px 0 48px; }
  .nf-hiwb-j__pill { gap: 8px; padding: 8px 12px; }
  .nf-hiwb-j__pill-icon { width: 20px; height: 20px; }
  .nf-hiwb-j__pill-text { font-size: 16px; line-height: 1.25; }
}

/* below 1440 the hero ends on a full-bleed image: give the journey heading room */
@media (max-width: 1279.98px) {
  .nf-hiwb-j { padding-top: 60px; }
}
@media (max-width: 809.98px) { .nf-hiwb-j { padding-top: 32px; } }

/* "What we measure" rows laid out as in the wireframe (Danny, 2026-10-26): name on the left, detail on the right of each
   white row; "See EcoFlow" sits centred under the pilot row. Colours and type stay the residential card's. */
.nf-hiwb-j__row { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; text-align: start; }
.nf-hiwb-j__row-title { flex: 0 0 auto; white-space: nowrap; }
.nf-hiwb-j__row-sub { flex: 1 1 auto; min-width: 0; text-align: end; }
.nf-hiwb-j__row--pilot { gap: 16px; }
.nf-hiwb-j__card > .nf-hiwb-j__link--small { align-self: center; margin-top: 0; }
@media (max-width: 809.98px) {
  .nf-hiwb-j__row { gap: 10px; padding: 12px; }
}

/* heading laid out like the residential journey ("The Journey": 42px medium, left on desktop, centred below 1440, 21px on
   phone), keeping the THE JOURNEY label in the STEP label style (Danny, 2026-10-26) */
.nf-hiwb-j__eyebrow { color: rgb(158, 158, 158); }
@media (max-width: 809.98px) {
  .nf-hiwb-j__eyebrow { font-size: 18px; }
  .nf-hiwb-j__heading { font-size: 21px; line-height: 1.1; }
}

/* heading centred at every size, as the residential "The Journey" (Danny, 2026-10-26) */
.nf-hiwb-j__head { align-items: center; text-align: center; }

/* "See EcoFlow ->" on the shared link scale (Danny, 2026-10-26): 21 desktop, 18 tablet, 15 phone, like the other Tier 3 links */
.nf-hiwb-j__link--small { font-size: 21px; }
.nf-hiwb-j__link--small .nf-hiwb-j__arrow { width: 24px; height: 24px; margin: -3px 0 -3px 4px; }
@media (min-width: 810px) and (max-width: 1279.98px) {
  .nf-hiwb-j__link--small { font-size: 18px; }
  .nf-hiwb-j__link--small .nf-hiwb-j__arrow { width: 20px; height: 20px; margin: -2px 0 -2px 4px; }
}
@media (max-width: 809.98px) {
  .nf-hiwb-j__link--small { font-size: 15px; }
  .nf-hiwb-j__link--small .nf-hiwb-j__arrow { width: 18px; height: 18px; margin: -2px 0 -2px 3px; }
}
