/* W12 — needs selector, platform depth, journey scroll stage. Loaded after w11.css. */

/* ---------- hero aside: two links + note ---------- */
.hero__aside { flex-wrap: wrap; column-gap: 1.1rem; }

/* ---------- needs selector (#needs) ---------- */
.nd-section { padding-block: clamp(2.75rem, 2rem + 3vw, 5rem); }
.nd { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.nd-opts { margin: 0; padding: 0; border: 0; min-width: 0; }
.nd-opts__list { display: grid; gap: .5rem; }
.nd-opt { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: .75rem; align-items: start; padding: .8rem .9rem; border-radius: 14px; border: 1px solid var(--line-2); background: rgb(255 255 255 / .02); cursor: pointer; transition: border-color var(--dur-1), background var(--dur-1); }
.nd-opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.nd-opt__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--surface-2); color: var(--blue-300); }
.nd-opt__icon svg { width: 22px; height: 22px; }
.nd-opt__txt b { display: block; color: var(--text-1); font-size: 1rem; font-weight: 600; line-height: 1.5; }
.nd-opt__txt small { display: block; margin-top: .15rem; color: var(--text-3); font-size: var(--fs-meta); line-height: 1.75; }
.nd-opt:hover { border-color: var(--line-3); background: rgb(255 255 255 / .04); }
.nd-opt:has(input:checked) { border-color: var(--blue-400); background: var(--surface-1); box-shadow: inset 3px 0 0 var(--blue-400); }
.nd-opt:has(input:checked) .nd-opt__icon { background: var(--blue-500); color: #fff; }
.nd-opt:has(input:focus-visible) { outline: 2px solid var(--blue-400); outline-offset: 2px; }

.nd-out { display: grid; gap: .9rem; padding: clamp(1.1rem, .7rem + 1.4vw, 1.9rem); border-radius: 20px; border: 1px solid var(--line-2); background: var(--surface-1); min-width: 0; }
.nd-out__head { display: grid; gap: .3rem; }
.nd-out__k { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 0; color: var(--text-3); font-size: var(--fs-meta); }
.nd-out h3 { margin: 0; font-size: var(--fs-h3); line-height: var(--lh-h3); }
.nd-out__q { margin: 0; color: var(--blue-300); font-weight: 600; font-size: var(--fs-sm); }
.nd-beats { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.nd-beats li { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); gap: .8rem; padding: .7rem 0; border-top: 1px solid var(--line-1); }
.nd-beats li:first-child { border-top: 0; padding-top: .2rem; }
.nd-beats__n { align-self: start; justify-self: start; padding: .1rem .55rem; border-radius: 999px; background: rgb(47 123 255 / .14); color: var(--blue-300); font-size: var(--fs-meta); font-weight: 600; white-space: nowrap; }
.nd-beats small { color: var(--text-3); font-size: var(--fs-meta); }
.nd-beats p { margin: .1rem 0 0; color: var(--text-1); line-height: 1.85; }
.nd-gain { margin: 0; padding: .75rem .9rem; border-radius: 12px; background: var(--surface-2); color: var(--text-1); line-height: 1.85; }
.nd-gain b { color: var(--blue-300); }
.nd-mods { display: grid; gap: .4rem; }
.nd-mods small { color: var(--text-3); font-size: var(--fs-meta); }
.nd-mods > div { display: flex; flex-wrap: wrap; gap: .35rem; }
.nd-mods .pf-chip { background: transparent; }
.nd-mods .pf-chip.is-runtime { border-style: dashed; border-color: rgb(242 187 85 / .55); }
.nd-mods .pf-chip small { color: var(--warn); }
.nd-cta { display: flex; flex-wrap: wrap; gap: .6rem 1.25rem; align-items: center; padding-top: .3rem; }
.nd-out.is-entering .nd-beats li { animation: nd-in .45s var(--ease-out, ease-out) both; animation-delay: calc(var(--i) * 70ms); }
@keyframes nd-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 860px) {
  .nd { grid-template-columns: 1fr; }
  /* All five problems stay visible as a compact list; the chosen one opens directly below. */
  .nd-opt { padding: .65rem .8rem; grid-template-columns: 34px minmax(0, 1fr); }
  .nd-opt__icon { width: 34px; height: 34px; }
}
@media (max-width: 420px) {
  .nd-beats li { grid-template-columns: 1fr; gap: .3rem; }
}

/* ---------- platform: benefit-led group heading ---------- */
.pf-eyebrow { margin: 0; color: var(--blue-600); font-size: var(--fs-meta); font-weight: 600; }
.pf-intro h3 { text-wrap: balance; }
.pf-avail { display: flex; flex-wrap: wrap; gap: .25rem; align-items: center; margin: 0; color: var(--text-3); font-size: var(--fs-meta); }
.dir-group__benefit { margin: .15rem 0 .2rem; font-weight: 600; color: var(--text-1); font-size: 1.05rem; }
.dir-group__story { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem 1.25rem; align-items: center; margin-bottom: 1rem; }
@media (max-width: 760px) { .dir-group__story { grid-template-columns: 1fr; } }

/* ---------- journeys: scroll stage ---------- */
.jr-hint { margin: -.25rem 0 .75rem; color: var(--text-3); font-size: var(--fs-meta); }
.jr-hint__scroll { display: none; }
.jr-section.is-scrolly .jr-hint__scroll { display: inline; }
.jr-section.is-scrolly .jr-hint__swipe { display: none; }
/* The runway: one segment per stage below the pinned panel; ordinary scrolling before and after. */
/* In-flow spacer, not padding: a sticky box can only travel inside its container's content box. */
.jr-section.is-scrolly .jr::after { content: ''; display: block; height: var(--jr-run, 0px); }
.jr-section.is-scrolly .jr-sticky { position: sticky; top: calc(var(--header-h) + 12px); }
.jr-section.is-scrolly .jr-tabs { margin-bottom: .6rem; }
/* Stage swaps change the panel height; scroll anchoring would then nudge scrollY and flip the stage back. */
.jr-section.is-scrolly, .jr-section.is-scrolly * { overflow-anchor: none; }
.jr-section.is-scrolly .jr-bar i { transition-duration: .25s; }
/* Screen swaps cross-fade instead of popping. */
.jr-screen > .win { animation: jr-swap .35s ease-out both; }
@keyframes jr-swap { from { opacity: .35; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .nd-out.is-entering .nd-beats li, .jr-screen > .win { animation: none; }
  .nd-opt { transition: none; }
}
