/* ═══════════════════════════════════════════════════════════
   julienlescure.io — "How it works" three-offer page
   ADDITIONS ONLY. Load after styles.css + additions.css.
   Every selector is new and prefixed (.offer-*, .cycle-*,
   .harness-*, .to-top) so no other page is affected.
   ═══════════════════════════════════════════════════════════ */

/* ── 1 · Sticky offer navigation ────────────────────────────── */
/* The site shell sets `overflow: hidden`, which would make it the sticky
   scroll container and stop the bar from ever sticking. `clip` contains the
   same horizontal bleed WITHOUT creating a scroll container, so sticky works.
   Scoped to this page — offers.css is only loaded here. */
.site { overflow-x: clip; overflow-y: visible; }
.offer-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(64, 31, 76, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(45, 255, 217, 0.22);
}
.offer-nav__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px var(--pad-x);
  overflow-x: auto;
  scrollbar-width: none;
}
.offer-nav__inner::-webkit-scrollbar { display: none; }
.offer-nav__pill {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.26);
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.offer-nav__pill b { font-weight: 800; color: var(--turquoise); }
.offer-nav__pill:hover {
  border-color: var(--turquoise);
  color: var(--white);
}
.offer-nav__pill.is-current {
  background: var(--turquoise);
  border-color: var(--turquoise);
  color: var(--purple);
}
.offer-nav__pill.is-current b { color: var(--purple); }

/* Back to top — subtle, appears once past the first offer */
.to-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 45;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--purple);
  border: 1.5px solid rgba(45, 255, 217, 0.5);
  color: var(--turquoise);
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .22s ease, transform .22s ease;
}
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { background: var(--turquoise); color: var(--purple); border-color: var(--turquoise); }
.to-top svg { width: 20px; height: 20px; }

/* ── 2 · Offer header band (turquoise, level 1) ─────────────── */
.offer-head {
  background: var(--turquoise);
  color: var(--purple);
  scroll-margin-top: 84px;
}
.offer-head__title {
  margin: 0;
  font-weight: 800;
  font-size: clamp(34px, 4.4vw, 66px);
  line-height: 1.03;
  letter-spacing: -0.03em;
  max-width: 20ch;
  text-wrap: balance;
}

/* The narrative: pain → approach → outcome, three cards on one line */
.offer-story {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.offer-card {
  background: var(--purple);
  color: var(--white);
  border-radius: 20px;
  padding: 34px 30px 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.offer-card__label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--turquoise);
}
.offer-card__label::before {
  content: "";
  width: 30px;
  height: 6px;
  background: var(--turquoise);
  flex: none;
}
.offer-card__text {
  margin: 0;
  font-weight: 500;
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.52;
  color: rgba(255, 255, 255, 0.88);
  text-wrap: pretty;
}
.offer-card__text b { color: var(--white); font-weight: 800; }
.offer-card__text em { font-style: italic; color: var(--white); }

/* ── 3 · Benefit block — light card, turquoise rule ─────────── */
.offer-benefit {
  background: var(--white);
  border: 1.5px solid rgba(64, 31, 76, 0.16);
  border-radius: 22px;
  padding: 54px 60px 56px;
  display: grid;
  grid-template-columns: minmax(180px, 260px) 1fr;
  gap: 40px 56px;
  align-items: start;
}
.offer-benefit__label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--purple);
}
.offer-benefit__label::before {
  content: "";
  width: 40px;
  height: 7px;
  background: var(--turquoise);
  flex: none;
}
.offer-benefit__text {
  margin: 0;
  font-weight: 500;
  font-size: clamp(18px, 1.7vw, 25px);
  line-height: 1.5;
  color: var(--purple);
  text-wrap: pretty;
}

/* ── 4 · Signals (offer 1) — dark card, three columns ───────── */
.signals-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 40px;
}
.signal { padding: 0 40px; }
.signal:nth-child(odd) { padding-left: 0; }
.signal:nth-child(even) { padding-right: 0; border-left: 1px solid rgba(255, 255, 255, 0.16); }
.signal:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, 0.16); margin-top: 40px; padding-top: 40px; }
.signal__num {
  margin: 0 0 16px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--turquoise);
}
.signal__title {
  margin: 0 0 26px;
  font-weight: 800;
  font-size: clamp(20px, 1.7vw, 25px);
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: var(--white);
}
.signal__row + .signal__row { margin-top: 18px; }
.signal__label {
  display: block;
  margin-bottom: 6px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.signal__val {
  margin: 0;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.86);
}
.signal__val em { font-style: italic; color: var(--white); }

/* ── 5 · "How" prose block inside a dark card ───────────────── */
.how-prose {
  margin: 0;
  font-weight: 500;
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.66;
  color: rgba(255, 255, 255, 0.88);
  max-width: 74ch;
  text-wrap: pretty;
}
.how-prose b { color: var(--white); font-weight: 800; }

/* ── 6 · Diagram + definitions split (offers 2 and 3) ───────── */
.diagram-split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr);
  gap: 56px 64px;
  align-items: center;
  margin-top: 8px;
}
.diagram-split__figure { min-width: 0; }
.diagram-split__defs { min-width: 0; }

.defs { display: flex; flex-direction: column; gap: 0; margin: 0; padding: 0; list-style: none; }
.defs li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 18px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}
.defs li:first-child { padding-top: 0; }
.defs li:last-child { border-bottom: 0; padding-bottom: 0; }
/* Number badge — identical token to the badges inside both diagrams */
.defs__term {
  display: grid;
  place-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--turquoise);
  color: var(--purple);
  font-weight: 800;
  font-size: 16px;
  line-height: 1;
}
.defs__desc {
  margin: 0;
  font-weight: 500;
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.84);
  text-wrap: pretty;
}
.defs__desc b {
  display: block;
  margin-bottom: 3px;
  font-weight: 800;
  font-size: clamp(16px, 1.3vw, 19px);
  color: var(--white);
}
/* The meta-harness note — muted, matching its pill so the two read as one idea */
.defs__meta {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 2px solid rgba(255, 255, 255, 0.34);
}
.defs__meta h4 {
  margin: 0 0 8px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}
.defs__meta p {
  margin: 0;
  font-weight: 500;
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
}
.defs__meta p b { color: rgba(255, 255, 255, 0.92); font-weight: 800; }

/* ── 7 · Product life cycle diagram (offer 2) ───────────────── */
.cycle {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
}
.cycle__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.cycle__pill {
  position: absolute;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: clamp(8px, 1.4vw, 12px);
  padding: clamp(7px, 1.3vw, 10px) clamp(16px, 2.6vw, 24px) clamp(7px, 1.3vw, 10px) clamp(7px, 1.3vw, 10px);
  border-radius: 999px;
  background: var(--white);
  color: var(--purple);
  font-weight: 800;
  font-size: clamp(14px, 2.2vw, 21px);
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.cycle__pill i {
  display: grid;
  place-content: center;
  width: clamp(24px, 3.9vw, 34px);
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  background: var(--turquoise);
  color: var(--purple);
  font-style: normal;
  font-weight: 800;
  font-size: clamp(12px, 1.9vw, 16px);
  flex: none;
}
.cycle__pill:nth-of-type(1) { left: 50%;   top: 9%; }
.cycle__pill:nth-of-type(2) { left: 85.5%; top: 29.5%; }
.cycle__pill:nth-of-type(3) { left: 85.5%; top: 70.5%; }
.cycle__pill:nth-of-type(4) { left: 50%;   top: 91%; }
.cycle__pill:nth-of-type(5) { left: 14.5%; top: 70.5%; }
.cycle__pill:nth-of-type(6) { left: 14.5%; top: 29.5%; }
.cycle-caption {
  margin: 32px auto 0;
  max-width: 46ch;
  text-align: center;
  font-weight: 500;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
}
.cycle-caption b { color: var(--turquoise); font-weight: 800; }

/* ── 7 · Rituals row (offer 2) ──────────────────────────────── */
.rituals {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.rituals li {
  padding: 13px 24px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.9);
}

/* ── 8 · AI harness diagram (offer 3) ───────────────────────── */
.harness {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  container-type: inline-size;
}
.harness__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Chip and nodes size from the BOX (cqw), not the viewport, so the fixed-height
   chip can never collide with the percentage-positioned node ring at any width. */
.harness__chip {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 1.9cqw 3.8cqw;
  border-radius: 999px;
  font-weight: 800;
  font-size: clamp(9px, 2.7cqw, 14px);
  letter-spacing: 0.14em;
  line-height: 1;
  white-space: nowrap;
}
/* Harness ring reads as the primary object; the meta ring is quieter. */
.harness__chip--harness { top: 15.5%; background: var(--turquoise); color: var(--purple); }
.harness__chip--meta { top: 95%; background: var(--purple-deep); color: rgba(255, 255, 255, 0.8); border: 1.5px solid rgba(255, 255, 255, 0.42); }
.harness__model {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 31%;
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.28);
  display: grid;
  place-content: center;
  text-align: center;
  padding: 6px;
}
.harness__model b {
  display: block;
  font-weight: 800;
  font-size: clamp(11px, 1.9vw, 15px);
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.72);
}
.harness__model span {
  display: block;
  margin-top: 6px;
  font-weight: 500;
  font-size: clamp(10px, 1.6vw, 13px);
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.5);
}
/* Six numbered badges seated on the inner ring — same token as the legend */
.harness__node {
  position: absolute;
  transform: translate(-50%, -50%);
  width: clamp(24px, 9.2cqw, 44px);
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  background: var(--turquoise);
  color: var(--purple);
  display: grid;
  place-content: center;
  font-weight: 800;
  font-size: clamp(12px, 3.6cqw, 18px);
  line-height: 1;
}
.harness__node:nth-of-type(1) { left: 50%;   top: 27%; }
.harness__node:nth-of-type(2) { left: 69.9%; top: 38.5%; }
.harness__node:nth-of-type(3) { left: 69.9%; top: 61.5%; }
.harness__node:nth-of-type(4) { left: 50%;   top: 73%; }
.harness__node:nth-of-type(5) { left: 30.1%; top: 61.5%; }
.harness__node:nth-of-type(6) { left: 30.1%; top: 38.5%; }

.harness-note {
  margin: 30px auto 0;
  max-width: 46ch;
  text-align: center;
  font-weight: 500;
  font-size: clamp(14px, 1.1vw, 17px);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
}
.harness-note b { color: var(--turquoise); font-weight: 800; }

.harness-key {
  display: inline-block;
  margin: 30px auto 0;
  padding: 16px 30px;
  border-radius: 999px;
  background: var(--turquoise);
  color: var(--purple);
  font-weight: 800;
  font-size: clamp(16px, 1.5vw, 21px);
  line-height: 1.2;
}
.harness-keywrap { text-align: center; }

/* Six component cards, split out of the diagram for legibility */
.harness-comps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px 34px;
  margin-top: 56px;
}
.harness-comp {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 24px;
  border-top: 3px solid var(--turquoise);
}
.harness-comp__num {
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--turquoise);
}
.harness-comp__title {
  margin: 0;
  font-weight: 800;
  font-size: clamp(19px, 1.6vw, 24px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--white);
}
.harness-comp__body {
  margin: 0;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.84);
}

/* ── 9 · Responsive ─────────────────────────────────────────── */
@media (max-width: 1180px) {
  .diagram-split { grid-template-columns: 1fr; gap: 44px; }
  .diagram-split__figure { max-width: 480px; margin-inline: auto; width: 100%; }
  .harness-comps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .offer-head { scroll-margin-top: 76px; }
  .offer-story { grid-template-columns: 1fr; gap: 18px; margin-top: 40px; }
  .offer-card { padding: 30px 28px 32px; border-radius: 18px; }
  .offer-nav__inner { padding: 12px var(--pad-x); gap: 10px; }
  .offer-nav__pill { padding: 11px 18px; font-size: 14px; }
  .offer-benefit {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 40px 34px 42px;
    border-radius: 18px;
  }
  .signals-grid { grid-template-columns: 1fr; margin-top: 32px; }
  .signal,
  .signal:nth-child(odd),
  .signal:nth-child(even) { padding: 0; border-left: 0; }
  .signal + .signal {
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    margin-top: 34px;
    padding-top: 34px;
  }
  .to-top { right: 18px; bottom: 18px; width: 46px; height: 46px; }
}

@media (max-width: 640px) {
  .harness-comps { grid-template-columns: 1fr; gap: 26px; margin-top: 44px; }
  .rituals li { font-size: 15px; padding: 11px 18px; }
  .cycle, .harness { max-width: 420px; }
  .defs li { grid-template-columns: 34px 1fr; gap: 14px; }
}
