/* How it works — frame 2:1002 (1440) / 45:4 (390). */

/* ── hero + process index (2:1029 / 45:19 + 45:29) ────────────────────── */
.hw-hero { position: relative; overflow: hidden; display: flex; height: 600px; background: var(--color-bg); color: var(--color-text); }
.hw-hero__wm { position: absolute; left: 40px; top: -80px; color: var(--color-cream); opacity: .03; font-family: var(--font-display); font-weight: 700; font-size: 200px; line-height: 240px; pointer-events: none; }
.hw-hero__left { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 28px; width: 760px; flex: none; padding: 80px 48px 80px 60px; }
.hw-hero__title { display: flex; flex-direction: column; align-items: flex-start; font-family: var(--font-display); font-weight: 800; font-size: 96px; line-height: 86px; letter-spacing: -2px; }
.hw-hero__line { display: block; width: 652px; }   /* three lines at 1440; inline (one wrapped sentence) at 390 */
.hw-hero__lead { width: 560px; font-size: 16px; line-height: 26px; color: var(--color-muted); }
.hw-index { position: relative; flex: 1; margin: 6px 5px 0 -5px; height: 600px; transform: rotate(-1deg); transform-origin: 0 0; background: var(--color-surface); box-shadow: var(--shadow-photo-l); }
.hw-index__list { display: flex; flex-direction: column; gap: 48px; height: 600px; padding: 32px; }   /* node · 24 · rule · 24 · node */
.hw-index__item { position: relative; }
.hw-index__item + .hw-index__item::before { content: ""; position: absolute; left: 0; right: 0; top: -24px; height: 0; border-top: 1px solid var(--color-border-2); }
.hw-index__item:nth-child(2)::before { border-color: var(--color-lime); }
.hw-node { display: flex; align-items: center; gap: 16px; height: 88px; padding: 20px; color: var(--color-muted); text-decoration: none; font-family: var(--font-display); transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); }
.hw-node:hover { background: var(--color-surface-hover); color: var(--color-text); }
.hw-node.is-active { background: var(--color-lime); color: var(--color-text-dark); }
.hw-node__n { font-weight: 800; font-size: 40px; line-height: 48px; }
.hw-node__label { font-weight: 700; font-size: 18px; line-height: 22px; letter-spacing: 1px; }

/* ── steps ────────────────────────────────────────────────────────────── */
.hw-step { position: relative; overflow: hidden; display: flex; align-items: flex-start; gap: 64px; padding: 80px; }
.hw-step--1, .hw-step--3 { background: var(--color-cream); color: var(--color-surface-2); box-shadow: inset 0 0 0 1px var(--color-surface-2); }
.hw-step--2, .hw-step--4 { background: var(--color-bg); color: var(--color-cream-3); box-shadow: inset 0 0 0 1px var(--color-border-2); }
.hw-step__wm { position: absolute; left: 40px; top: -80px; opacity: .03; font-family: var(--font-display); font-weight: 700; font-size: 200px; line-height: 240px; pointer-events: none; }
.hw-step--1 .hw-step__wm, .hw-step--3 .hw-step__wm { color: var(--color-surface-2); }
.hw-step--4 .hw-step__wm { color: var(--color-cream-3); }
.hw-step__text { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; width: 576px; flex: none; font-family: var(--font-display); }
.hw-step__text--wide { width: 816px; }
.hw-step__ind { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; line-height: 17px; letter-spacing: 1px; }
.hw-step__ind i { display: block; width: 16px; height: 0; border-top: 2px solid var(--color-lime); }
.hw-step__ind-l { font-weight: 600; letter-spacing: 1.5px; color: var(--color-muted); }
.hw-step--2 .hw-step__ind-n, .hw-step--4 .hw-step__ind-n { color: var(--color-lime); }
.hw-step--1 .hw-step__ind-n, .hw-step--3 .hw-step__ind-n { color: var(--color-text-dark); }
.hw-step__title { font-weight: 700; font-size: 56px; line-height: 52px; }
.hw-step__lead { font-family: var(--font-body); font-size: 15px; line-height: 24px; color: var(--color-muted-cool); }
.hw-step--2 .hw-step__lead, .hw-step--4 .hw-step__lead { color: var(--color-muted); }
.hw-step__hint { font-weight: 700; font-size: 12px; line-height: 14.4px; letter-spacing: 1px; color: var(--color-lime); }
.hw-step__visual { position: relative; width: 640px; flex: none; }
.hw-step__visual--slip { width: 400px; }

/* illustrative market row */
.hw-row { display: flex; flex-direction: column; gap: 20px; padding: 24px; background: var(--color-bg-deep); color: var(--color-cream-3); box-shadow: inset 0 0 0 2px var(--color-border-2); font-family: var(--font-display); }
.hw-row__meta { display: flex; justify-content: space-between; align-items: center; }
.hw-row__meta-left { display: flex; align-items: center; gap: 12px; }
.hw-row__meta-left i { display: block; width: 12px; height: 0; border-top: 1px solid var(--color-muted-cool-2); }
.hw-row__sport { font-weight: 700; font-size: 14px; line-height: 17px; letter-spacing: .5px; color: var(--color-lime); }
.hw-row__time { font-weight: 700; font-size: 12px; line-height: 14.4px; color: var(--color-muted); }
.hw-row__time--on { color: var(--color-cream-3); }
.hw-row__flag { font-weight: 700; font-size: 11px; line-height: 13.2px; letter-spacing: .5px; color: var(--color-orange); }
.hw-row__flag--on { color: var(--color-lime); }
.hw-row__name { font-weight: 700; font-size: 28px; line-height: 34px; }
.hw-row__rule { margin: 0; border: 0; height: 0; }
.hw-row__odds { display: flex; justify-content: space-between; align-items: center; }
.hw-row__market { font-weight: 700; font-size: 13px; line-height: 16px; color: var(--color-muted); }
.hw-row__market--on { color: var(--color-lime); }
.hw-row__btns { display: flex; gap: 8px; }
.hw-odd { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 110px; height: 52px; background: var(--color-cream-3); color: var(--color-surface-2); box-shadow: inset 0 0 0 1px var(--color-border-2); font-weight: 700; }
.hw-odd span { font-size: 9px; line-height: 11px; color: var(--color-muted-cool); }
.hw-odd b { font-weight: 700; font-size: 16px; line-height: 19.2px; }
.hw-odd--on { background: var(--color-lime); color: var(--color-text-dark); box-shadow: none; }
.hw-odd--on span { color: var(--color-text-dark); }
.hw-row--selected { box-shadow: inset 0 0 0 2px var(--color-lime); }
.hw-row--selected .hw-row__meta-left i { border-color: var(--color-lime); }

/* annotations + checklist (steps 3, 4) */
.hw-ann { display: flex; flex-direction: column; align-self: stretch; gap: 12px; height: 116px; padding: 24px 0 0; }   /* frame FIXED 116: bottom padding is cut */
.hw-ann li { display: flex; align-items: center; gap: 12px; font-size: 12px; line-height: 14.4px; }
.hw-ann li i { display: block; width: 100px; height: 0; border-top: 1px solid var(--color-surface-2); }
.hw-ann__k { font-weight: 700; color: var(--color-text-dark); }
.hw-ann__v { font-family: var(--font-body); color: var(--color-muted-cool); }
.hw-check { display: flex; flex-direction: column; align-self: stretch; box-shadow: inset 0 0 0 1px var(--color-border-2); }
.hw-check li { display: flex; align-items: center; gap: 12px; height: 51px; padding: 16px; background: var(--color-bg-deep); box-shadow: inset 0 -1px 0 var(--color-border-2); font-weight: 700; font-size: 14px; line-height: 17px; }
.hw-check li:last-child { box-shadow: none; }
.hw-check__tick { color: var(--color-lime); font-size: 16px; line-height: 19px; }

/* illustrative bet slip */
.hw-slip { display: flex; flex-direction: column; gap: 20px; padding: 28px; background: var(--color-bg-deep); color: var(--color-cream-3); box-shadow: inset 0 0 0 2px var(--color-border-2); font-family: var(--font-display); }
.hw-slip--final { box-shadow: inset 0 0 0 2px var(--color-lime); }
.hw-slip__head { display: flex; justify-content: space-between; align-items: center; }
.hw-slip__title { font-weight: 700; font-size: 20px; line-height: 24px; letter-spacing: 1.5px; }
.hw-slip__count { padding: 2px 10px; background: var(--color-lime); color: var(--color-text-dark); font-weight: 700; font-size: 11px; line-height: 13.2px; }
.hw-slip__ready { color: var(--color-lime); font-weight: 700; font-size: 11px; line-height: 13.2px; }
.hw-slip__rule { margin: 0; border: 0; height: 0; box-shadow: 0 1px 0 var(--color-border-2); }
.hw-slip__card { display: flex; flex-direction: column; gap: 12px; padding: 16px; box-shadow: inset 0 0 0 1px var(--color-lime); }
.hw-slip__card-head { display: flex; justify-content: space-between; align-items: center; }
.hw-slip__event { font-weight: 700; font-size: 15px; line-height: 18px; }
.hw-slip__x { width: 14px; height: 14px; color: var(--color-muted-cool-2); }
.hw-slip__market { font-family: var(--font-body); font-size: 12px; line-height: 14.4px; color: var(--color-muted-cool-2); }
.hw-slip__odd { font-weight: 700; font-size: 24px; line-height: 29px; color: var(--color-lime); }
.hw-slip__stake { display: flex; flex-direction: column; gap: 8px; }
.hw-slip__label { font-weight: 700; font-size: 13px; line-height: 16px; letter-spacing: 1px; }
.hw-slip__input { display: flex; justify-content: space-between; align-items: center; height: 48px; padding: 0 16px; box-shadow: inset 0 0 0 1px var(--color-border-2); }
.hw-slip__input span { font-weight: 600; font-size: 14px; line-height: 17px; color: var(--color-muted-cool-2); }
.hw-slip__input b { font-weight: 700; font-size: 18px; line-height: 22px; }
.hw-slip__quick { display: flex; gap: 8px; }
.hw-slip__quick span { flex: 1; display: flex; align-items: center; justify-content: center; height: 36px; box-shadow: inset 0 0 0 1px var(--color-border-2); font-weight: 700; font-size: 13px; line-height: 16px; }
.hw-slip__totals, .hw-slip__overview { display: flex; flex-direction: column; gap: 10px; }
.hw-slip__totals div, .hw-slip__overview div { display: flex; justify-content: space-between; align-items: baseline; }
.hw-slip__totals dt, .hw-slip__overview dt { font-family: var(--font-body); font-size: 13px; line-height: 16px; color: var(--color-muted-cool-2); }
.hw-slip__totals dd, .hw-slip__overview dd { font-weight: 700; font-size: 14px; line-height: 17px; }
.hw-slip__totals .hw-slip__ret dd { font-size: 22px; line-height: 26.4px; color: var(--color-lime); }
.hw-slip__overview { gap: 12px; padding: 16px; background: var(--color-border-2); }
.hw-slip__overview .hw-slip__ret dd { font-size: 18px; line-height: 22px; color: var(--color-lime); }
.hw-slip__place { display: flex; align-items: center; justify-content: center; height: 52px; background: var(--color-lime); color: var(--color-text-dark); font-weight: 700; font-size: 16px; line-height: 19.2px; letter-spacing: 1.5px; }

@media (max-width: 1199px) {
  .hw-hero { flex-direction: column; height: auto; }
  .hw-hero__left { width: auto; gap: 24px; padding: 40px 16px; }
  .hw-hero__left .eyebrow { gap: 6px; }
  .hw-hero__title { display: block; align-self: stretch; font-size: 48px; line-height: 44px; letter-spacing: -1px; color: var(--color-cream-3); }
  .hw-hero__line { display: inline; width: auto; }
  .deco-arrow--m60 { font-size: 14px; line-height: 17px; }
  .deco-arrow--m60 i { width: 60px; height: 2px; }
  .hw-hero__lead { width: auto; font-size: 15px; line-height: 22px; }
  .hw-index { margin: 0; height: auto; background: var(--color-bg); box-shadow: none; transform: none; }
  .hw-index__list { gap: 12px; height: auto; padding: 0 16px 40px; }
  .hw-index__item { border-radius: var(--radius-sm); background: var(--color-surface); box-shadow: inset 0 0 0 1px var(--color-border); }
  .hw-index__item:has(.is-active) { background: var(--color-lime); box-shadow: none; }
  .hw-index__item + .hw-index__item::before { display: none; }
  .hw-node { height: 62px; gap: 16px; padding: 14px; border-radius: var(--radius-sm); background: var(--color-surface); }
  .hw-node.is-active { background: var(--color-lime); }
  .hw-node__n { font-size: 28px; line-height: 34px; }
  .hw-node__label { font-size: 16px; line-height: 19px; }

  .hw-step { flex-direction: column; align-items: stretch; gap: 24px; padding: 48px 16px; }
  /* Step 2 at 390: text → demo row → hint. One hint element for both widths: the
   * text block is flattened (display: contents) so the hint can be ordered after the demo. */
  .hw-step--2 { gap: 0; }
  .hw-step--2 .hw-step__text { display: contents; }
  .hw-step--2 .hw-step__ind { order: 0; }
  .hw-step--2 .hw-step__title { order: 1; margin-top: 12px; }
  .hw-step--2 .hw-step__lead { order: 2; margin-top: 12px; }
  .hw-step--2 .hw-step__visual { order: 3; margin-top: 24px; }
  .hw-step--2 .hw-step__hint { order: 4; margin-top: 24px; }
  .hw-step__text, .hw-step__text--wide { width: auto; gap: 12px; }
  .hw-step__ind { font-size: 13px; line-height: 16px; }
  .hw-step__title { font-size: 36px; line-height: 34px; }
  .hw-step__lead { font-size: 15px; line-height: 22px; }
  .hw-step__hint { margin-top: 12px; }
  .hw-step__visual, .hw-step__visual--slip { width: auto; }
  .hw-row { gap: 16px; padding: 16px; border-radius: var(--radius-md); background: var(--color-bg); }
  .hw-row__sport { font-size: 12px; line-height: 14.4px; }
  .hw-row__meta-left { gap: 12px; }
  .hw-row__name { font-size: 20px; line-height: 24px; }
  .hw-row__rule { box-shadow: 0 1px 0 var(--color-border); }
  .hw-row__odds { flex-direction: column; align-items: stretch; gap: 8px; }
  .hw-row__market { font-size: 11px; line-height: 13.2px; }
  .hw-odd { flex: 1; width: auto; }
  .hw-odd span { font-size: 10px; line-height: 12px; }
  .hw-ann { gap: 10px; height: auto; margin-top: 12px; padding: 0; }
  .hw-ann li { justify-content: space-between; font-size: 13px; line-height: 16px; }
  .hw-ann li i { display: none; }
  .hw-check { margin-top: 12px; border-radius: var(--radius-sm); box-shadow: inset 0 0 0 1px var(--color-border-2); }
  .hw-check li { height: 41px; padding: 12px; background: var(--color-bg); font-size: 13px; line-height: 16px; }
  .hw-check__tick { font-size: 14px; line-height: 17px; }
  .hw-slip { gap: 16px; padding: 20px; border-radius: var(--radius-md); background: var(--color-bg); }
  .hw-slip__title { font-size: 18px; line-height: 22px; letter-spacing: 1px; }
  .hw-slip__count { padding: 2px 8px; font-size: 10px; line-height: 12px; }
  .hw-slip__card { gap: 8px; padding: 12px; border-radius: var(--radius-sm); }
  .hw-slip__card + .hw-slip__rule { display: none; }   /* 45:116: no line between the bet card and the stake */
  .hw-slip__event { font-size: 14px; line-height: 17px; }
  .hw-slip__odd { font-size: 20px; line-height: 24px; }
  .hw-slip__stake { gap: 6px; }
  .hw-slip__label { font-size: 12px; line-height: 14.4px; letter-spacing: .5px; }
  .hw-slip__input { height: 44px; padding: 0 12px; }
  .hw-slip__input span { font-size: 13px; line-height: 16px; }
  .hw-slip__input b { font-size: 16px; line-height: 19.2px; }
  .hw-slip__totals { gap: 8px; }
  .hw-slip__totals dt, .hw-slip__overview dt { font-size: 12px; line-height: 14.4px; }
  .hw-slip__totals dd, .hw-slip__overview dd { font-size: 13px; line-height: 16px; }
  .hw-slip__totals .hw-slip__ret dd { font-size: 18px; line-height: 22px; }
  .hw-slip__overview { gap: 8px; padding: 12px; }
  .hw-slip__overview .hw-slip__ret dd { font-size: 16px; line-height: 19.2px; }
  .hw-slip__place { height: 48px; border-radius: var(--radius-sm); font-weight: 800; font-size: 15px; line-height: 18px; letter-spacing: 1px; }
}
