/* Prototype 2 refinements: readability, the executive comparison, guided-path polish, recording pointer. */
:root { --panel-w: min(440px, 32vw); --panel-wide-w: min(640px, 42vw); }

/* panel typography and width */
.panel { transition: transform .55s var(--ease), opacity .4s var(--ease), width .55s var(--ease); }
body.panel-wide .panel { width: var(--panel-wide-w); }
body.panel-wide .zoom { right: calc(var(--panel-wide-w) + 40px); }
.panel-body { padding: 16px 28px 32px; }
.panel h2 { font-size: 32px; line-height: 1.08; margin: 10px 0 14px; }
.lede { font-size: 17px; line-height: 1.6; }
.sec { margin-top: 26px; }
.sec h3 { font-size: 11.5px; margin-bottom: 12px; }
.sec p { font-size: 15.5px; line-height: 1.6; }
.link b { font-size: 15px; }
.link em { font-size: 14px; }
.pole b { font-size: 16px; }
.pole span { font-size: 14px; }
.caption { font-size: 13.5px; }
.inline { background: none; border: 0; padding: 0; font: inherit; color: var(--lime); text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; }

/* fiction label: always visible on comparisons and leader pages */
.fiction { display: inline-flex; align-items: center; gap: 6px; font: 500 10.5px var(--mono); letter-spacing: .06em; color: var(--lav); border: 1px dashed rgba(178,140,255,.5); border-radius: 999px; padding: 4px 10px; margin-bottom: 14px; white-space: nowrap; }
.compare-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.compare-head h3 { margin: 0; }
.compare-head .fiction { margin: 0; }

/* compare call to action */
.cta { display: flex; align-items: center; gap: 14px; width: 100%; margin: 4px 0 6px; padding: 14px 16px; text-align: left; border-radius: 16px;
  border: 1px solid rgba(178,140,255,.45); background: linear-gradient(135deg, rgba(127,58,237,.26), rgba(127,58,237,.07)); transition: border-color .2s, background .2s; }
.cta:hover { border-color: rgba(178,140,255,.85); background: linear-gradient(135deg, rgba(127,58,237,.36), rgba(127,58,237,.12)); }
.cta b { display: block; font: 600 16.5px var(--display); letter-spacing: -.01em; color: var(--text); }
.cta small { display: block; font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.cta .arrow { margin-left: auto; color: var(--lav); font-size: 20px; }
.badges { display: flex; }
.badges .badge + .badge { margin-left: -7px; }

/* leader cards */
.compare { gap: 12px; }
.leader { cursor: default; padding: 16px; gap: 9px; border-radius: 18px; }
.leader .who { width: 100%; }
.leader .tag { margin-left: auto; background: transparent; font: 500 11px var(--mono); letter-spacing: .02em; text-transform: none; cursor: pointer; }
.leader .tag:hover { background: rgba(199,255,53,.1); }
.leader > b { font: 600 17px/1.25 var(--display); letter-spacing: -.012em; }
.says { margin: 0; padding-left: 11px; border-left: 2px solid var(--lav); font-size: 14.5px !important; line-height: 1.5; color: var(--text) !important; }
.leader h5 { margin: 6px 0 0; font: 500 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--subtle); }
.leader > p { font-size: 14px; line-height: 1.5; }
.obs { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.obs li { position: relative; padding-left: 14px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.obs li::before { content: ""; position: absolute; left: 0; top: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--lav); }
.skill { display: table; text-align: left; margin-top: 5px; padding: 2px 8px; background: transparent; border: 1px solid rgba(199,255,53,.32); border-radius: 999px; font: 500 10.5px var(--mono); color: var(--lime); }
.skill:hover { background: rgba(199,255,53,.1); border-color: rgba(199,255,53,.6); }
.range { font-size: 15px; }

/* guided path progress */
.tour { overflow: hidden; }
.tour-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(199,255,53,.12); }
#tourBar { display: block; height: 100%; width: 0; background: var(--lime); transition: width .6s var(--ease); }
body.panel-wide.panel-open .tour { left: calc((100vw - var(--panel-wide-w) - 40px) / 2); }

/* recording pointer (?capture only): follows the real input events sent by the recorder */
#demoCursor { position: fixed; left: 0; top: 0; z-index: 1000; pointer-events: none; width: 0; height: 0; filter: drop-shadow(0 2px 4px rgba(0,0,0,.55)); }
#demoCursor svg { position: absolute; width: 28px; height: 28px; fill: #fff; stroke: #0B0B0C; stroke-width: 1.3; stroke-linejoin: round; }
#demoCursor .arrow { left: -4.5px; top: -3px; }
#demoCursor .hand { left: -12px; top: -3px; display: none; }
#demoCursor.pointing .arrow { display: none; }
#demoCursor.pointing .hand { display: block; }
.click-ring { position: fixed; z-index: 999; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; border: 2px solid rgba(199,255,53,.95); pointer-events: none; animation: clickring .65s ease-out forwards; }
@keyframes clickring { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
body.capture #map, body.capture #map.pointing { cursor: none; }

/* small screens and the LinkedIn feed layout */
@media (max-width: 760px) {
  :root { --panel-w: 100vw; --panel-wide-w: 100vw; }
  .panel { height: 56vh; }
  body.panel-open .tour { bottom: calc(56vh + 10px); }
  .panel h2 { font-size: 25px; }
  .lede { font-size: 15.5px; }
  .panel-body { padding: 10px 18px 24px; }
  .duo, .compare { grid-template-columns: 1fr 1fr; }
  .leader { padding: 12px; }
}
@media (max-width: 540px) { .duo, .compare { grid-template-columns: 1fr; } }

/* narrated recordings: captions (organic-video treatment: Sora SemiBold, white on translucent charcoal) */
#capline { position: fixed; z-index: 900; transform: translateX(-50%); pointer-events: none; text-align: center; opacity: 0; transition: opacity .18s ease; width: max-content; }
#capline.on { opacity: 1; }
#capline span { display: inline; padding: 9px 22px; line-height: 1.62; border-radius: 14px; background: rgba(17,17,20,.8); color: #fff;
  font: 600 29px 'Sora', sans-serif; letter-spacing: -.005em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
@media (max-width: 760px) { #capline span { font-size: 19px; padding: 6px 14px; border-radius: 10px; line-height: 1.66; } }

/* public build: share link, toast, Persona 28 link */
#share svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.note { pointer-events: auto; }
.note a { color: rgba(244,245,240,.55); text-decoration: none; border-bottom: 1px solid rgba(244,245,240,.2); }
.note a:hover { color: var(--lime); border-color: var(--lime); }
.toast { position: fixed; left: 50%; top: 22px; transform: translate(-50%, -8px); z-index: 20; padding: 10px 16px; border-radius: 999px; background: rgba(17,18,20,.96); border: 1px solid rgba(199,255,53,.35); color: var(--t, #F4F5F0); font: 500 13.5px 'General Sans', sans-serif; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px); overflow-wrap: anywhere; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
/* recordings of the challenge screens: captions sit on text-heavy cards, so give them a firmer backing */
body.capture.cx-on #capline span { background: rgba(8,9,10,.95); box-shadow: 0 0 0 1px rgba(244,245,240,.08), 0 10px 30px rgba(0,0,0,.55); }
/* polarity cards: a <button> centres its content vertically, so a shorter description sat lower; top-align both poles */
.pole { display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; }
.pole:last-child { align-items: stretch; }
