/* NeuroSense "See it in real life" section: story, demonstration, plan, card.
 * Shared by every /neurosense/NN/ page. Each section sets its own track color:
 *   <section class="ns-tryit" style="--t:#2a9d8f; --t-soft:#2a9d8f12; --t-line:#2a9d8f40;">
 * Icons are inline Lucide SVGs (ISC license, https://lucide.dev).
 */
.ns-tryit { margin: 3.5rem 0 3rem; --t: var(--teal); --t-soft: rgba(42,157,143,.07); --t-line: rgba(42,157,143,.25); }
.ns-tryit > h2 { margin: 0 0 .35rem; }
.ns-tryit .ns-lede { color: var(--muted); font-size: 1.05rem; margin: 0 0 1.75rem; max-width: 760px; }
.ns-kicker {
  display: block; margin: 0 0 .3rem;
  font-size: .76rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--t);
}
.ns-tryit h3 { margin: 0 0 .85rem; font-size: 1.42rem; color: var(--navy); }
.ns-tryit p { line-height: 1.75; }

/* Story */
.ns-story {
  background: #fff; border: 1px solid var(--border); border-left: 5px solid var(--t);
  border-radius: var(--radius); padding: 1.8rem 2.1rem 1.6rem; box-shadow: var(--shadow);
}
.ns-story { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 2.2rem; align-items: start; }
.ns-story p { font-size: 1.06rem; max-width: 70ch; margin-bottom: .95rem; }
.ns-story p:last-child { margin-bottom: 0; }

/* The example at a glance: stalls, changes, result */
.ns-strip { list-style: none; margin: 2.3rem 0 0; padding: 0; position: relative; }
.ns-strip li { position: relative; padding: 0 0 1.35rem 3.3rem; margin: 0; min-height: 2.6rem; }
.ns-strip li:last-child { padding-bottom: 0; }
.ns-strip li:not(:last-child)::after {
  content: ""; position: absolute; left: 1.24rem; top: 2.7rem; bottom: .15rem; width: 2px;
  background: linear-gradient(var(--t-line), var(--t));
}
.ns-strip-ico {
  position: absolute; left: 0; top: 0; width: 2.6rem; height: 2.6rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; background: var(--t-soft); color: var(--t);
  border: 2px solid var(--t);
}
.ns-strip li:last-child .ns-strip-ico { background: var(--t); color: #fff; }
.ns-strip-ico svg { width: 1.2rem; height: 1.2rem; }
.ns-strip-lbl { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--t); margin-bottom: .1rem; }
.ns-strip-txt { display: block; font-size: .95rem; line-height: 1.5; color: var(--navy); font-weight: 600; }

/* Demonstration */
.ns-demo {
  margin-top: 2rem; background: var(--t-soft); border: 1px solid var(--t-line);
  border-radius: var(--radius); padding: 1.8rem 2.1rem;
}
.ns-demo-intro { margin: 0 0 1.1rem; max-width: 74ch; }
.ns-demo-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 1.75rem; align-items: start; }
.ns-steps { list-style: none; counter-reset: ns-step; padding: 0; margin: 0; }
.ns-steps li {
  counter-increment: ns-step; position: relative; padding: .1rem 0 0 2.6rem; margin-bottom: .95rem; line-height: 1.7;
}
.ns-steps li::before {
  content: counter(ns-step); position: absolute; left: 0; top: .05rem;
  width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--t); color: #fff;
  font-weight: 700; font-size: .92rem; display: flex; align-items: center; justify-content: center;
}
.ns-demo-side { display: flex; flex-direction: column; gap: 1rem; }
.ns-material { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .85rem 1rem; overflow-x: auto; }
.ns-material-row { display: flex; gap: .85rem; align-items: baseline; padding: .35rem 0; border-bottom: 1px dashed var(--border); }
.ns-material-row:last-child { border-bottom: 0; }
.ns-material-lbl { flex: 0 0 4.6rem; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ns-material-txt { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 1.02rem; color: var(--navy); letter-spacing: .03em; white-space: normal; overflow-wrap: anywhere; min-width: 0; }
.ns-material-txt.is-long { font-family: inherit; font-size: .98rem; letter-spacing: 0; line-height: 1.6; color: var(--text); }
.ns-material-note { font-size: .9rem; color: var(--muted); margin: .5rem 0 0; }

.ns-notice {
  display: flex; gap: .9rem; align-items: flex-start; margin-top: 1.4rem;
  background: #fff; border-radius: var(--radius-sm); padding: 1rem 1.2rem; border: 1px solid var(--t-line);
}
.ns-notice p { margin: 0; }

/* Plan */
.ns-plan { margin-top: 2rem; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 2.25rem; align-items: start; }
.ns-plan-intro { color: var(--muted); margin: -.3rem 0 1.1rem; }
.ns-plan-steps { list-style: none; padding: 0; margin: 0 0 1.4rem; }
.ns-plan-steps li { display: flex; gap: 1rem; align-items: flex-start; padding: .85rem 0; border-bottom: 1px solid var(--border); line-height: 1.7; }
.ns-plan-steps li:last-child { border-bottom: 0; }
.ns-plan-steps strong { color: var(--navy); }
.ns-step-ico {
  flex: 0 0 2.6rem; width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: var(--t); color: #fff; display: flex; align-items: center; justify-content: center; margin-top: .1rem;
}
.ns-step-ico svg { width: 1.3rem; height: 1.3rem; }
.ns-callouts { display: grid; gap: .85rem; }
.ns-callout { display: flex; gap: .9rem; align-items: flex-start; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1rem 1.2rem; }
.ns-callout p { margin: 0; }
.ns-callout.ns-limit { background: #fbfcfd; }
.ns-ico { flex: 0 0 1.5rem; color: var(--t); margin-top: .2rem; }
.ns-ico svg { width: 1.5rem; height: 1.5rem; display: block; }

.ns-card { margin: 0; position: sticky; top: 6rem; }
.ns-card img { display: block; width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.ns-card figcaption { text-align: center; margin-top: .7rem; font-size: .9rem; }
.ns-card figcaption a { color: var(--t); font-weight: 600; }

/* Widgets (filled in by /js/ns-tryit.js) */
.ns-widget { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1rem 1.1rem 1.1rem; }
.ns-w-title { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 .25rem; }
.ns-w-time { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 2.3rem; font-weight: 700; color: var(--navy); line-height: 1.2; }
.ns-w-btn, .ns-w-reset {
  font: inherit; cursor: pointer; border-radius: 999px; border: 0; padding: .55rem 1.1rem; margin: .55rem .4rem 0 0;
}
.ns-w-btn { background: var(--t); color: #fff; font-weight: 600; }
.ns-w-btn[disabled] { opacity: .45; cursor: default; }
.ns-w-reset { background: transparent; color: var(--muted); border: 1px solid var(--border); }
.ns-w-rounds { list-style: none; padding: 0; margin: .8rem 0 0; font-size: .95rem; }
.ns-w-rounds li { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; border-bottom: 1px dashed var(--border); color: var(--muted); margin: 0; }
.ns-w-rounds li.is-on { color: var(--navy); font-weight: 600; }
.ns-w-rounds li.is-done { color: var(--text); }
.ns-w-result { margin: .7rem 0 0; font-weight: 600; color: var(--navy); min-height: 1.2em; }
.ns-w-pacer { display: flex; flex-direction: column; align-items: center; gap: .6rem; padding: .5rem 0; }
.ns-w-orb { width: 9rem; height: 9rem; border-radius: 50%; background: var(--t-soft); border: 3px solid var(--t); transform: scale(.55); transition-property: transform; transition-timing-function: ease-in-out; }
.ns-w-phase { font-weight: 600; color: var(--navy); min-height: 1.4em; }

@media (max-width: 860px) {
  .ns-story, .ns-demo-grid, .ns-plan { grid-template-columns: 1fr; }
  .ns-strip { margin-top: .4rem; padding-top: 1.2rem; border-top: 1px solid var(--border); }
  .ns-material-row { flex-direction: column; gap: .15rem; }
  .ns-material-lbl { flex: none; }
  .ns-material-txt { font-size: .95rem; letter-spacing: .02em; }
  .ns-card { position: static; max-width: 380px; margin: 0 auto; }
  .ns-story, .ns-demo { padding: 1.4rem 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  .ns-w-orb { transition: none !important; }
}

/* Spike simulator */
.ns-w-canvas { display: block; width: 100%; height: 170px; margin: .4rem 0 .5rem; border-radius: 6px; background: #0e1a30; }
.ns-w-range { width: 100%; accent-color: var(--t); }
.ns-w-row { display: flex; justify-content: space-between; font-size: .85rem; color: var(--muted); }
.ns-w-readout { font-weight: 600; color: var(--navy); margin: .45rem 0 0; min-height: 1.3em; }

/* Recall, reaction, stroop, tally, rating */
.ns-w-words { display: flex; flex-wrap: wrap; gap: .4rem .5rem; margin: .5rem 0; }
.ns-w-words span { background: var(--t-soft); border: 1px solid var(--t-line); border-radius: 999px; padding: .2rem .7rem; font-weight: 600; color: var(--navy); }
.ns-w-text { width: 100%; font: inherit; border: 1px solid var(--border); border-radius: 6px; padding: .5rem .6rem; margin: .4rem 0 0; }
.ns-w-pad { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 8rem; margin: .4rem 0 .2rem;
  border: 0; border-radius: 8px; background: #e9eef3; color: var(--navy); font: inherit; font-weight: 700; font-size: 1.1rem; cursor: pointer; }
.ns-w-pad.is-wait { background: #1b3a5c; color: #fff; }
.ns-w-pad.is-go { background: var(--t); color: #fff; }
.ns-w-stroop { display: grid; grid-template-columns: repeat(4, 1fr); gap: .35rem .6rem; margin: .5rem 0; font-weight: 800; font-size: 1.05rem; letter-spacing: .03em; text-align: center; }
.ns-w-rate { display: grid; grid-template-columns: 1fr 2.2rem; gap: .2rem .6rem; align-items: center; margin: .5rem 0 0; }
.ns-w-rate-q { grid-column: 1 / -1; font-size: .95rem; color: var(--text); }
.ns-w-rate-v { font-weight: 700; color: var(--navy); text-align: right; }
.ns-w-stage { margin-top: .3rem; }
