/* How it works page. Prefix hw-. One section per step: copy (you decide / I handle / good to know) beside a live animated scene.
   Reuses the scene styles (sc-, bb-) from home.css; extract before porting. */
.hw-hero { padding-bottom: clamp(32px, 4vw, 64px); }
.hw-index { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 44px; }
.hw-index-link { display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 24px 0 10px; border-radius: 999px; border: 2px solid var(--cs-border-strong); color: var(--cs-text); font-weight: 800; font-size: 16px; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; transition: border-color .15s, background .15s; }
.hw-index-link:hover, .hw-index-link:focus-visible { border-color: var(--cs-green-bright); background: rgba(59, 214, 43, .1); }
.hw-index-num { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--cs-green); color: var(--cs-dark1); font-size: 15px; }

.hw-section { scroll-margin-top: 72px; }
.hw-step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(40px, 6vw, 120px); align-items: center; }
.hw-step--flip .hw-copy { order: 2; }
.hw-step--flip .hw-scene { order: 1; }
.hw-num { font-weight: 800; font-size: clamp(72px, 8vw, 128px); line-height: .8; letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 2px var(--cs-green); margin-bottom: 20px; }
.hw-copy .cs-title-xl { font-size: clamp(36px, 4.2vw, 64px); }
.hw-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 32px clamp(28px, 3.5vw, 64px); margin-top: 40px; }
.hw-col { padding-left: 22px; border-left: 3px solid var(--cs-pale); }
.hw-col--me { border-left-color: var(--cs-green-bright); }
.hw-list-title { font-family: var(--cs-font-label); font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--cs-pale); }
.hw-list-title--me { color: var(--cs-green-bright); }
.hw-list { display: grid; gap: 22px; margin-top: 18px; }
.hw-item { display: flex; flex-direction: column; gap: 4px; }
.hw-item b { font-weight: 800; font-size: 19px; line-height: 1.2; letter-spacing: -0.01em; color: var(--cs-text); }
.hw-item span { font-size: 16px; line-height: 1.45; color: var(--cs-text-soft); }
.hw-tip { display: block; margin-top: 36px; padding: 2px 0 2px 22px; border-left: 3px solid rgba(255, 255, 255, .18); font-size: 17px; line-height: 1.5; color: #b3cacf; max-width: 560px; }
.hw-tip-tag { display: block; margin-bottom: 6px; font-family: var(--cs-font-label); font-weight: 800; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--cs-green); background: none; padding: 0; border-radius: 0; }

/* The scene box keeps its size; the scene inside is rendered only while in view so its animation replays. */
.hw-scene { position: relative; display: flex; align-items: center; justify-content: center; min-height: clamp(360px, 38vw, 560px); border-radius: 28px; background: radial-gradient(52% 58% at 50% 50%, rgba(59, 214, 43, 0.20), rgba(59, 214, 43, 0) 72%); }
.hw-scene-in { display: none; width: 100%; flex-direction: column; align-items: center; justify-content: center; }
.hw-scene.is-live .hw-scene-in { display: flex; animation: hm-fade .35s ease; }
.hw-scene .hm-illustrative { position: static; margin-top: 16px; }

.hw-ready { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 112px); align-items: center; }
.hw-need { border-top: 1px solid var(--cs-border-strong); }
.hw-need-item { display: flex; flex-direction: column; gap: 4px; padding: 24px 8px; border-bottom: 1px solid var(--cs-border-strong); }
.hw-need-item b { font-weight: 800; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.1; letter-spacing: -0.02em; color: var(--cs-text); }
.hw-need-item span { font-size: 18px; color: var(--cs-text-soft); }

@media (max-width: 991px) {
  .hw-step { grid-template-columns: 1fr; gap: 40px; }
  .hw-step--flip .hw-copy, .hw-step--flip .hw-scene { order: 0; }
  .hw-scene { min-height: 0; padding: 8px 0; }
  .hw-ready { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 479px) {
  .hw-lists { grid-template-columns: 1fr; }
}

/* stack the two lists when the copy column is narrow */
@media (max-width: 1279px) and (min-width: 992px) { .hw-lists { grid-template-columns: 1fr; gap: 28px; } }
