/* ============================================================
 * CAMPAIGN V2 — new-page styles
 * 1. fs-hero  — full-screen photo hero (shared hero template):
 *    photo fills the first screen in a rounded frame; copy lower-left
 *    on a navy scrim; frosted flag pill top-right; floating product
 *    chips; three proof cards hanging off the bottom edge.
 * 2. jw-*     — "Four jobs" numbered walk-through: 01–04 list with
 *    dotted connector left, swapping photo right, countdown beneath.
 * Loads after onsite-campaign.css. Violet accent per OnSite identity.
 * ============================================================ */

/* ------------------------------------------------------------
 * 1. FULL-SCREEN PHOTO HERO
 * ------------------------------------------------------------ */
.fs-hero {
  padding-top: clamp(88px, 8.5vw, 112px); /* clears the fixed pill nav */
}

.fs-hero__frame {
  position: relative;
  overflow: hidden;
  /* margin + radius aligned to the product-page hero (Rebecca, 27 Jul: same
     product margins on every page but the home page) — was 24px/32px */
  margin-inline: clamp(10px, 1.6vw, 22px);
  border-radius: clamp(20px, 2.5vw, 34px);
  min-height: max(560px, calc(100svh - clamp(88px, 8.5vw, 112px) - clamp(10px, 1.6vw, 22px)));
  display: flex;
  align-items: flex-end;
  background: var(--ge-navy, #0F1438); /* shows while the photo loads */
}

.fs-hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center; /* keeps the kiosk + receptionist in view */
}

/* Left scrim for copy legibility, bottom fade under the hanging cards */
.fs-hero__scrim {
  position: absolute;
  inset: 0;
  background: rgba(15, 20, 56, 0.5);   /* flat navy wash for text legibility — no gradient */
}

/* ---------- copy block, lower-left on the photo ---------- */
.fs-hero__copy {
  position: relative;
  z-index: 2;
  max-width: 47rem;
  padding: clamp(28px, 5vw, 64px);
  /* horizontal inset matched to the product hero; 1316px = 1360px minus this
     frame's own 2x22px margin, as the percentage resolves against the frame */
  padding-inline: calc(max(0px, (100% - 1316px) / 2) + clamp(20px, 3.4vw, 56px));
  padding-bottom: clamp(120px, 17vh, 180px); /* clears the hanging cards */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-5, 20px);
}

.fs-hero__copy .eyebrow--ghost {
  color: #fff;
  border-color: rgba(255,255,255,0.45);
}

.fs-hero__copy h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(34px, 4.6vw, 62px);
  line-height: 1.14;
  letter-spacing: -0.01em;
}

.fs-hero__lede {
  margin: 0;
  max-width: 34rem;
  color: rgba(255,255,255,0.88);
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.55;
}

/* White pill CTA — reads best on photography */
.fs-hero__cta.btn {
  background: #fff;
  color: var(--ge-navy, #0F1438);
  border: none;
}
.fs-hero__cta.btn:hover { background: #EAF1F8; color: var(--ge-navy, #0F1438); }
.fs-hero__cta .btn__arrow {
  background: var(--ge-navy, #0F1438);
  color: #fff;
}

/* ---------- frosted flag pill, top-right ---------- */
.fs-hero__flag {
  position: absolute;
  z-index: 2;
  top: clamp(20px, 3vw, 36px);
  right: clamp(20px, 3vw, 36px);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.38);
  background: rgba(15,20,56,0.32);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 15px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.fs-hero__flag strong { font-weight: 400; color: #FFD966; }

/* ---------- floating product chips ---------- */
.fs-hero__chip {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #fff;
  color: var(--ge-navy, #0F1438);
  font-size: 15px;
  box-shadow: 0 10px 28px rgba(15,20,56,0.22);
  opacity: 0;
  transform: translateY(14px);
  animation: fs-chip-in 520ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.fs-hero__chip svg {
  width: 17px;
  height: 17px;
  color: var(--ge-violet-4, #614DBA);
  flex: none;
}
.fs-hero__chip--1 { right: 6%;  top: 30%; animation-delay: 400ms; }
.fs-hero__chip--2 { right: 16%; top: 58%; animation-delay: 750ms; }

@keyframes fs-chip-in {
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .fs-hero__chip { animation: none; opacity: 1; transform: none; }
}

/* ---------- three proof cards hanging off the hero edge ---------- */
.fs-hero__cards {
  position: relative;
  z-index: 3;
  margin-top: clamp(-88px, -6.5vw, -60px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 1.6vw, 20px);
}

.fs-proof {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4, 16px);
  background: #fff;
  border: 1px solid #E6ECF4;
  border-radius: 24px;
  box-shadow: 0 18px 44px rgba(15,20,56,0.14);
  padding: var(--sp-6, 24px) var(--sp-6, 24px);
  color: inherit;
  text-decoration: none;
  transition: transform 200ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
a.fs-proof:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 52px rgba(15,20,56,0.18);
}

.fs-proof__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #F0EDFA;
  color: var(--ge-violet-4, #614DBA);
}
.fs-proof__icon svg { width: 22px; height: 22px; }

.fs-proof__title {
  margin: 0 0 2px;
  font-size: 17px;
  color: var(--ge-navy, #0F1438);
}
.fs-proof__sub {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  color: #4A5876;
}

/* live countdown digits inside the middle proof card */
.fs-proof__clock {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}
.fs-proof__unit { display: flex; align-items: baseline; gap: 3px; }
.fs-proof__num {
  font-size: 22px;
  color: var(--ge-navy, #0F1438);
  font-variant-numeric: tabular-nums;
}
.fs-proof__u { font-size: 12px; color: #4A5876; }

/* ------------------------------------------------------------
 * 2. JOBS WALK-THROUGH — numbered 01–04 list + swapping photo
 * ------------------------------------------------------------ */
.jw {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
}

.jw__list {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}
/* dotted connector running down through the number chips */
.jw__list::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 28px;
  bottom: 28px;
  border-left: 2px dotted #C9C2E8;
}

.jw__item { position: relative; }

.jw__head {
  display: flex;
  align-items: center;
  gap: var(--sp-5, 20px);
  width: 100%;
  padding: var(--sp-4, 16px) 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font: inherit;
}
.jw__head:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(47,183,241,0.45);
  border-radius: 12px;
}

.jw__numchip {
  position: relative;
  z-index: 1;
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #F0EDFA;
  color: var(--ge-violet-4, #614DBA);
  font-size: 15px;
  letter-spacing: 0.04em;
  transition: background 200ms cubic-bezier(0.2, 0.8, 0.2, 1), color 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.jw__item.is-open .jw__numchip {
  background: var(--ge-violet-4, #614DBA);
  color: #fff;
}

.jw__title {
  margin: 0;
  font-size: clamp(19px, 1.6vw, 24px);
  color: var(--ge-navy, #0F1438);
}
.jw__tag {
  margin: 2px 0 0;
  font-size: 15px;
  color: #4A5876;
}

.jw__body {
  display: none;
  padding: 0 0 var(--sp-5, 20px) 64px;
}
.jw__item.is-open .jw__body { display: block; }

.jw__points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3, 12px);
}
.jw__points li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ge-navy, #0F1438);
}
.jw__check {
  flex: none;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 6px;
  background: #F0EDFA;
  color: var(--ge-violet-4, #614DBA);
}
.jw__check svg { width: 12px; height: 12px; }

.jw__readmore {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: var(--sp-4, 16px);
  color: #1B367E;
  text-decoration: none;
  font-size: 15px;
}
.jw__readmore:hover { color: var(--ge-navy, #0F1438); }
.jw__readmore svg { width: 16px; height: 16px; }

/* photo stage on the right — one image visible at a time, soft crossfade */
.jw__stage {
  position: sticky;
  top: 120px;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4 / 3.4;
  background: #F3F7FA;
}
.jw__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 360ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.jw__photo.is-active { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .jw__photo { transition: none; }
}

/* Martyn's Law countdown pinned beneath the list — always visible */
.jw__mlcd {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-5, 20px);
  margin-top: var(--sp-6, 24px);
  padding: var(--sp-5, 20px) var(--sp-6, 24px);
  border-radius: 20px;
  background: var(--ge-navy, #0F1438);
}
.jw__mlcd-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 15px;
}
.jw__mlcd-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #FF7900;
}
.jw__mlcd-clock { display: flex; gap: 14px; }
.jw__mlcd-unit { display: flex; align-items: baseline; gap: 4px; }
.jw__mlcd-num {
  font-size: 24px;
  color: #FFD966;
  font-variant-numeric: tabular-nums;
}
.jw__mlcd-u { font-size: 12px; color: rgba(255,255,255,0.75); }
.jw__mlcd-link {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 15px;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.4);
  padding-bottom: 1px;
}
.jw__mlcd-link:hover { border-bottom-color: #fff; }
.jw__mlcd-link svg { width: 15px; height: 15px; }

/* ------------------------------------------------------------
 * Responsive
 * ------------------------------------------------------------ */
@media (max-width: 980px) {
  .jw { grid-template-columns: 1fr; }
  .jw__stage {
    position: static;
    order: -1;
    aspect-ratio: 16 / 10;
  }
  .jw__mlcd-link { margin-left: 0; }
}

@media (max-width: 900px) {
  .fs-hero__chip { display: none; }
  .fs-hero__flag { display: none; }
  .fs-hero__copy { padding-bottom: clamp(80px, 12vh, 120px); }
  .fs-hero__cards { grid-template-columns: 1fr; margin-top: -56px; }
}

@media (max-width: 560px) {
  .fs-hero__frame {
    margin-inline: 10px;
    min-height: max(520px, calc(100svh - 92px - 10px));
  }
  .fs-hero__cards { margin-top: -48px; }
  .jw__body { padding-left: 0; }
  .jw__list::before { display: none; }
}

/* room beneath the final CTA for the contact card's deeper straddle */
.hi-final { padding-bottom: clamp(240px, 20vw, 340px); }
