/* assets/nbsx/sections/insight.css — section.nbsx-insight (blueprint v2 §2.7)
   First ink band: copy (eyebrow, H2, text, four step buttons, actions) in
   cols 1–5, the phone capture with the desktop capture layered behind it in
   cols 7–12. Without a permitted capture the copy spans cols 1–7 and the steps
   stay a plain list of buttons. Motion: the shots rise 32px/700ms once the
   section is in; the active step's 3px rule carries the screen's single
   gradient (opacity cross-fade); a step swap fades the outgoing capture
   150ms and brings the next in over 250ms with a 12px lift. Only transform /
   opacity move. Reduced motion: static, step 0 active, swaps are instant. */

.nbsx-insight{padding-block:clamp(80px,10vh,112px);overflow:hidden}

/* ── grid: 12 columns ────────────────────────────────────────────────────── */
.nbsx-insight__grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:var(--gutter);align-items:start}
.nbsx-insight__copy{grid-column:1/6;min-width:0}
.nbsx-insight--copy .nbsx-insight__copy{grid-column:1/8}
.nbsx-insight__shots{grid-column:7/13;position:relative;min-width:0;align-self:center}

/* ── copy ────────────────────────────────────────────────────────────────── */
.nbsx-insight__eyebrow{margin-bottom:20px}
.nbsx-insight__h2{max-width:14ch}
.nbsx-insight__text{font-size:var(--t-body);line-height:1.6;color:var(--muted);max-width:52ch;margin:24px 0 0}

/* ── steps: buttons in an <ol>, 20px between rows, no hairlines ──────────── */
.nbsx-insight__steps{list-style:none;margin:40px 0 0;padding:0;display:grid;row-gap:20px}
.nbsx-insight__step{margin:0;padding:0;min-width:0}
.nbsx-insight__btn{
  display:grid;width:100%;margin:0;padding:14px 0 0;border:0;background:none;
  font:inherit;color:inherit;text-align:left;cursor:pointer;position:relative;
  opacity:.62;transition:opacity .25s var(--ease)
}
.nbsx-insight__step.is-active .nbsx-insight__btn,
.nbsx-insight__btn:hover,
.nbsx-insight__btn:focus-visible{opacity:1}
.nbsx-insight__rule{position:absolute;left:0;top:0;width:100%;height:3px;background:rgba(255,255,255,.18);overflow:hidden}
.nbsx-insight__rule::after{content:"";position:absolute;inset:0;background:var(--grad);opacity:0;transition:opacity .35s var(--ease)}
.nbsx-insight__step.is-active .nbsx-insight__rule::after{opacity:1}
.nbsx-insight__title{display:block;font-size:18px;font-weight:500;line-height:1.3}
.nbsx-insight__line{display:block;font-size:14px;line-height:1.5;color:rgba(255,255,255,.7);margin-top:4px}

/* ── actions ─────────────────────────────────────────────────────────────── */
.nbsx-insight__actions{display:flex;flex-wrap:wrap;align-items:center;gap:16px 28px;margin:40px 0 0}

/* ── shots: phone in front, desktop behind, rises 32px on .is-in ─────────── */
.nbsx-insight__shots{opacity:0;transform:translateY(32px);transition:opacity .7s var(--ease) .2s,transform .7s var(--ease) .2s}
.nbsx-insight.is-in .nbsx-insight__shots{opacity:1;transform:none}
.nbsx-insight__phone{
  position:relative;z-index:1;margin:0;width:min(320px,100%);aspect-ratio:320/693;
  border:1px solid rgba(255,255,255,.2);border-radius:2px;overflow:hidden;background:rgba(255,255,255,.04)
}
.nbsx-insight__desk{
  position:absolute;z-index:0;left:0;top:0;margin:0;width:60%;aspect-ratio:16/10;
  transform:translate(120px,64px);border:1px solid rgba(255,255,255,.2);border-radius:2px;overflow:hidden;background:rgba(255,255,255,.04)
}
.nbsx-insight__img{
  position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;object-position:top;
  opacity:0;transform:translateY(12px);
  transition:opacity .15s var(--ease),transform 0s linear .15s
}
.nbsx-insight__img.is-on{opacity:1;transform:none;transition:opacity .25s var(--ease),transform .25s var(--ease)}

/* ── tablet ≤1024: 6/6, desktop capture hidden ───────────────────────────── */
@media (max-width:1024px){
  .nbsx-insight__copy{grid-column:1/7}
  .nbsx-insight--copy .nbsx-insight__copy{grid-column:1/10}
  .nbsx-insight__shots{grid-column:7/13}
  .nbsx-insight__desk{display:none}
  .nbsx-insight__h2{max-width:none}
}

/* ── mobile ≤700: copy, phone 80vw centred, then the steps as full-width buttons */
@media (max-width:700px){
  .nbsx-insight__grid{display:grid;grid-template-columns:minmax(0,1fr);row-gap:0}
  .nbsx-insight__copy{display:contents}
  .nbsx-insight--copy .nbsx-insight__copy{display:block;grid-column:1}
  .nbsx-insight__eyebrow{order:1}
  .nbsx-insight__h2{order:2}
  .nbsx-insight__text{order:3;max-width:none}
  .nbsx-insight__shots{order:4;grid-column:1;justify-self:center;width:80vw;max-width:360px;margin:40px 0 8px;align-self:start}
  .nbsx-insight__phone{width:100%}
  .nbsx-insight__steps{order:5;margin-top:32px}
  .nbsx-insight__actions{order:6;margin-top:32px}
  .nbsx-insight__btn{padding-top:12px}
}

/* ── reduced motion: final state, no fades, instant swaps ────────────────── */
@media (prefers-reduced-motion:reduce){
  .nbsx-insight__shots{opacity:1;transform:none;transition:none}
  .nbsx-insight__img,.nbsx-insight__img.is-on{transition:none;transform:none}
  .nbsx-insight__btn,.nbsx-insight__rule::after{transition:none}
}
