/* §4 Insight preview — the brief's "Personality Room" figure, reused 1:1.
   The figure is the brief's 714×330 artboard transcribed in em (1em = 10px at the brief's size) and
   scaled by its container width, so colours, type and numbers stay identical at any width.
   Default layout: intro row on top, figure full width (legible: smallest label ≈ 12px at 1120).
   data-layout="split": the spec's two columns (figure 55% left, copy right) — kept for comparison. */
.ins{background:var(--bg-band);border-block:1px solid rgba(246,239,227,.06)}
.ins-grid{display:grid;gap:56px}
.ins-intro{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:48px;align-items:end}
.ins-intro .btn{margin-top:28px}
.ins-terms{list-style:none;margin:16px 0 16px 6px;padding:2px 0 2px 16px;border-left:1px solid var(--line-soft);display:grid;gap:10px;max-width:46ch}
.ins-terms>li{display:flex;align-items:baseline;gap:0 10px;font-size:16px;line-height:1.6;color:var(--text2)}
.ins-terms>li::before{content:"";flex:none;width:8px;height:8px;border-radius:50%;background:#f2a640;box-shadow:0 0 10px #f2a640;transform:translateY(-1px)}
.ins-terms>li>span{min-width:0}
.ins-terms b{font-weight:500;color:var(--text)}
/* "Risk Appetite" in the copy and in the figure share one highlight — the §5 Personality highlight, so the link reads at a glance */
.ins-hl{background:rgba(232,151,60,.2);color:#ffc98a;padding:.08em .3em;border-radius:.2em}

.ins[data-layout="split"] .ins-grid{grid-template-columns:minmax(0,55fr) minmax(0,45fr);align-items:center}
.ins[data-layout="split"] .ins-intro{display:block;order:2}
.ins[data-layout="split"] .ins-fig{order:1}

/* ---- the figure ---- */
.ins-fig{container-type:inline-size;min-width:0}
.ins-art{position:relative;font-size:calc(100cqw / 71.4);width:71.4em;height:33em;overflow:hidden;border-radius:1.4em;border:1px solid rgba(242,166,64,.3);box-shadow:0 0 4em rgba(242,166,64,.1);
  background:radial-gradient(circle at 78% 90%,rgba(242,166,64,.22),transparent 45%),#0b1620;font-family:"Heebo",sans-serif;color:#c8d4dc;line-height:1.5;text-align:left}
.ins-avatar{position:absolute;right:-2.4em;top:4.4em;width:33em;height:33em;object-fit:contain;filter:drop-shadow(0 1.4em 2.8em rgba(0,0,0,.55))}
.ins-lines{position:absolute;inset:0;width:100%;height:100%;display:block}
/* header box sits in base em (no own font-size) so the dot and lines share one coordinate system:
   dot centre = (2.4em, 3em); the amber line runs from just right of the title to x=55.6em, then 45° down to the dot above the head */
.ins-head{position:absolute;left:2em;top:1.8em;width:53.6em;height:2.4em;display:flex;align-items:center;gap:1.2em;color:#fff}
.ins-head i{position:relative;flex:none;width:.8em;height:.8em;border-radius:50%;background:#f2a640;box-shadow:0 0 1em #f2a640}
/* cyan connectors hang from the dot's own centre, so they can't drift off it */
.ins-head i::after{content:"";position:absolute;left:50%;top:calc(100% + .6em);width:.15em;height:2.6em;transform:translateX(-50%);background:#5ed0e4;box-shadow:none}
.ins-trait::after{content:"";position:absolute;left:calc(.4em - 1px);top:calc(100% + .1em);width:.15em;height:1.5em;transform:translateX(-50%);background:#5ed0e4}
.ins-head b{font-size:1.5em;font-weight:800;line-height:1;white-space:nowrap}
.ins-link{flex:1;height:.15em;margin-left:-.2em;border-radius:.1em;background:#f2a640}
.ins-example{position:absolute;right:2.353em;top:2.47em;font:700 .85em/1 var(--font-mono);letter-spacing:.16em;text-transform:uppercase;color:#8ea3b0;border:1px solid rgba(255,255,255,.14);border-radius:999px;padding:.55em .9em}

.ins-trait{position:absolute;left:2em;top:6.8em;width:42em;background:#0e1a26;border:1px solid rgba(94,208,228,.35);border-radius:.9em;padding:.6em 1.2em;display:grid;grid-template-columns:1fr 15em 2.4em 5em;align-items:center;gap:0 .6em}
.ins-trait-heads{position:absolute;left:0;right:0;top:-1.5em;display:grid;grid-template-columns:1fr 15em 2.4em 5em;gap:0 .6em;padding:0 1.2em;color:#8ea3b0}
.ins-trait-heads span{font-size:.85em;letter-spacing:.14em;line-height:1.5}
.ins-trait-heads span:last-child{text-align:right}
.ins-trait-name{font-size:1.3em;color:#e8f0f4}
.ins-bar{height:.6em;border-radius:.3em;background:rgba(255,255,255,.1);overflow:hidden}
.ins-bar i{display:block;width:74%;height:100%;background:linear-gradient(90deg,#3aa9bd,#5ed0e4);border-radius:.3em}
.ins-power{font-size:1.3em;color:#e8f0f4;font-weight:700}
.ins-conf{font-size:1.3em;color:#5ed0e4;font-weight:700;text-align:right}

.ins-table{position:absolute;left:2em;top:11.8em;width:44em;border-radius:.9em;overflow:hidden;border:1px solid rgba(94,208,228,.25);background:#0e1a26}
.ins-th,.ins-tr{display:grid;grid-template-columns:1fr 3.6em 3.6em 4em;gap:0 .8em;align-items:center}
.ins-th{padding:.5em 1em;color:#8ea3b0;border-bottom:1px solid rgba(255,255,255,.08);background:#0b1620}
.ins-th span{font-size:.75em;letter-spacing:.1em;line-height:1.5;white-space:nowrap}
.ins-th span:nth-child(2),.ins-th span:nth-child(3){text-align:center}
.ins-th span:last-child{text-align:right;color:#5ed0e4}
.ins-tr{padding:.9em 1em;border-bottom:1px solid rgba(255,255,255,.06)}
.ins-tr:last-child{border-bottom:0}
.ins-src{display:flex;align-items:center;gap:.5em;font-size:.85em;letter-spacing:.12em;color:#8ea3b0;font-weight:700;min-width:0}
.ins-src::before{content:"";width:.47em;height:.47em;border-radius:50%;background:#5ed0e4;flex:none}
.ins-quote{font:italic 400 1.05em/1.4 "Frank Ruhl Libre",serif;color:#e8f0f4;margin-top:.4em}
.ins-n{font-size:1.05em;color:#e8f0f4;border:1px solid rgba(255,255,255,.12);border-radius:.4em;text-align:center;padding:.2em 0}
.ins-share{font-size:1.1em;color:#5ed0e4;font-weight:700;text-align:right}

@media (max-width:1024px){
  .ins-intro{grid-template-columns:minmax(0,1fr);gap:24px;align-items:start}
  .ins[data-layout="split"] .ins-grid{grid-template-columns:minmax(0,1fr)}
  .ins[data-layout="split"] .ins-intro{order:1}
  .ins[data-layout="split"] .ins-fig{order:2}
}
/* mobile: the same elements reflow top-to-bottom (the brief has no mobile version of this figure) */
@media (max-width:860px){
  .ins-grid{gap:40px}
  .ins-art{font-size:13px;width:auto;height:auto;display:grid;gap:2em;padding:1.6em 1.4em 0}
  .ins-lines,.ins-head i::after,.ins-trait::after{display:none}
  .ins-head,.ins-example,.ins-trait,.ins-table,.ins-avatar{position:static}
  .ins-head{width:auto;height:auto;gap:.9em}
  .ins-link{display:none}
  .ins-example{justify-self:start;margin-top:-1.2em}
  .ins-art{grid-template-columns:minmax(0,1fr)}
  /* trait row reflows: name on its own line, then bar · power · confidence, labels above the numbers */
  .ins-trait{width:auto;margin-top:0;position:relative;inset:auto;grid-template-columns:minmax(0,1fr) auto auto;gap:.6em 1.2em;padding:.9em 1.1em}
  .ins-trait-heads{display:none}
  .ins-trait-name{grid-column:1/-1;font-size:1.2em}
  .ins-power,.ins-conf{display:flex;flex-direction:column;align-items:flex-end;line-height:1.1}
  .ins-power::before,.ins-conf::before{font:400 .58em/1.5 var(--font-mono);letter-spacing:.1em;color:#8ea3b0;margin-bottom:.15em}
  .ins-power::before{content:"POWER"}
  .ins-conf::before{content:"CONFIDENCE"}
  .ins-bar{align-self:end;margin-bottom:.45em}
  .ins-src{align-items:flex-start}
  .ins-src::before{margin-top:.5em}
  .ins-avatar{order:9}
  .ins-table{width:auto}
  .ins-th,.ins-tr{grid-template-columns:1fr 3.4em 3.4em;gap:0 .6em}
  .ins-th span:last-child,.ins-share{display:none}
  .ins-avatar{width:60%;height:auto;margin:0 auto;margin-bottom:-6%;filter:drop-shadow(0 1em 2em rgba(0,0,0,.55))}
}
