/* MindStaq Hero Demo 1.0.0: built from hero-demo/src by hero-demo/plugin/build.mjs */
/* Hero demo samples (13 Nov). Everything here is scoped .hd; the window, sidebar and app components
   come from the live global CSS. The window keeps a fixed size: views are stacked layers, so no state
   change moves the hero. Nothing is transformed at rest (engine.js clears transforms after each move). */

/* ---- caption line and progress bar (live classes .mq-hcap / .mq-hbar; captions larger) */
.hd .mq-hcap { display: grid; height: 22px; margin-bottom: 14px; line-height: 22px; }
.hd .hd-capin { grid-area: 1/1; display: flex; align-items: center; gap: 12px; height: 22px; }
.hd .mq-hbar i.hd-fill { display: block; transform: scaleX(.62); }
.hd .hd-msgs { display: grid; min-width: 0; }
.hd .hd-c { grid-area: 1/1; white-space: nowrap; font-size: 19px; font-weight: 600; letter-spacing: -.01em; color: #181818; opacity: 0; }
.hd .hd-c[data-c='2'] { opacity: 1; }

/* ---- the app: fixed size in every state */
.hd .hd-app { height: 600px; min-height: 0; }
.hd .mq-app-side { position: relative; }
.hd .mq-app-main { display: flex; flex-direction: column; }
.hd .hd-views { position: relative; flex: 1 1 auto; min-height: 0; }
.hd .hd-view { position: absolute; inset: 0; overflow: hidden; background: #fff; visibility: hidden; text-align: left; }
.hd .hd-v-today { visibility: visible; }
.hd .hd-pad { padding: 22px 26px; }
.hd .hd-v-chat .mq-qc-in { height: 100%; }
.hd .mq-side-top .hd-logo { display: block; height: 13px; width: auto; }
@media (max-width: 899px) {
  .hd .hd-app { height: 540px; }
  .hd .hd-pad { padding: 16px 14px; }
}

/* icons: inline Lucide SVG in the live 16px icon box (stroke follows the text colour) */
.hd .hd-ic { overflow: visible; background: none; -webkit-mask: none; mask: none; }
.hd .hd-ic svg { display: block; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hd .hd-ic.hd-w { color: #fff; }

/* sidebar: the active item (live: #FEF0E8 tint, orange text). The tint is one pill that moves. */
.hd .hd-pill { display: none; position: absolute; left: 8px; right: 8px; top: 0; height: 32px; border-radius: 6px; background: #FEF0E8; pointer-events: none; z-index: 0; }
.hd .mq-app-side > :not(.hd-pill) { position: relative; z-index: 1; }
.hd .mq-nv { background: transparent; }
.hd.hd-js .hd-pill { display: block; }
.hd:not(.hd-js) .mq-app-side .mq-nv.hd-on { background: #FEF0E8; }
.hd .mq-nv.hd-on { color: #EF4E22; font-weight: 600; }
.hd .mq-app-mnav .mq-nv.hd-on { background: #FEF0E8; }

/* ---- Beat 1: Quick Chat */
.hd .hd-qbody { position: relative; }
.hd .hd-hello { position: absolute; inset: 20px 22px 6px; }
.hd .hd-thread { position: absolute; inset: 20px 22px 6px; text-align: left; max-width: 640px; margin: 0 auto; visibility: hidden; }
.hd .hd-q { font-size: 13.5px; }
.hd .hd-a .mq-ai-body { flex: 1 1 auto; min-width: 0; }
.hd .hd-plan { display: grid; gap: 0; max-width: 360px; border: 1px solid #E5E5E5; border-radius: 10px; background: #fff; overflow: hidden; }
.hd .hd-pl { display: flex; align-items: center; gap: 10px; padding: 8px 12px; font-size: 13.5px; color: #171717; }
.hd .hd-pl + .hd-pl { border-top: 1px solid #F0F0F0; }
.hd .hd-dot { flex: 0 0 6px; width: 6px; height: 6px; border-radius: 50%; background: #EF4E22; }
.hd .hd-create { display: inline-flex; margin-top: 12px; height: 32px; padding: 0 14px; font-size: 13px; gap: 7px; }
.hd .hd-comp { position: relative; }
.hd .mq-qcomp-in { display: flex; align-items: center; color: #171717; }
.hd .hd-ph { color: #A3A3A3; }
.hd .hd-typed:empty { display: none; }
.hd .hd-caret { display: none; width: 1.5px; height: 16px; background: #171717; margin: 0 1px; }
.hd .hd-comp.hd-focus { border-color: #A3A3A3; box-shadow: 0 0 0 3px rgba(24,24,24,.06); }
.hd .hd-comp.hd-focus .hd-caret { display: inline-block; animation: hd-blink 1s steps(1) infinite; }
.hd .hd-comp.hd-focus .hd-ph, .hd .hd-comp.hd-has .hd-ph { display: none; }
@keyframes hd-blink { 50% { opacity: 0; } }

/* ---- Beat 2: the project */
.hd .hd-phead h4 { font-size: 21px; }
.hd .hd-ok { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 6px; background: #E8F5EC; color: #1E6B3A; font-size: 12px; font-weight: 600; }
.hd .hd-ok::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #2E9D57; }
.hd .hd-tasks { width: 100%; border-collapse: collapse; margin-top: 4px; }
.hd .hd-tasks th { font-size: 11px; }
.hd .hd-tasks td { padding: 10px 8px; font-size: 13.5px; }
.hd .hd-tt, .hd .hd-who { display: inline-flex; align-items: center; gap: 9px; }
.hd .hd-tt b { font-weight: 500; }
.hd .hd-tt .hd-ic { color: #A3A3A3; }
.hd .hd-d { color: #404040; }
.hd .hd-d .hd-ic { display: inline-block; vertical-align: -3px; margin-right: 6px; color: #737373; }

/* ---- Beats 3 and 4: Today */
.hd .hd-gbk { font-size: 11px; color: #404040; }
.hd .hd-plancard { overflow: hidden; }
.hd .hd-slot { overflow: hidden; }
.hd .hd-new { border-bottom: 1px solid #EDEDED; }
.hd .hd-plancard .mq-li-t b { font-size: 13.5px; }
.hd .hd-plancard .mq-li-t small { font-size: 12px; }
.hd .hd-late { gap: 10px; }
.hd .hd-lav { width: 22px; height: 22px; font-size: 10px; }
.hd .hd-red { flex: 0 0 auto; display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; background: #FDECEA; color: #B42318; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.hd .hd-nudge { position: relative; gap: 6px; }
.hd .hd-nudge .hd-nb, .hd .hd-nudge .hd-nc { display: inline-flex; }
.hd .hd-nudge .hd-nc { display: none; color: #2E9D57; }
.hd .hd-nudge.hd-done { color: #737373; }
.hd .hd-nudge.hd-done .hd-nb { display: none; }
.hd .hd-nudge.hd-done .hd-nc { display: inline-flex; }
.hd .hd-sug { position: relative; padding: 10px 12px 12px; min-height: 58px; border-top: 1px solid #EDEDED; }
.hd .hd-chip { height: 30px; padding: 0 12px; gap: 7px; font-size: 12.5px; font-weight: 500; color: #171717; border-color: #F3C9B8; background: #FFF6F2; visibility: hidden; }
.hd .hd-chip .hd-ic { color: #EF4E22; }
.hd .hd-book { position: absolute; left: 12px; top: 10px; display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 14px 0 10px; border-radius: 9px; border: 1px solid #CBE7D4; background: #F1FAF4; font-size: 13px; color: #171717; white-space: nowrap; visibility: hidden; }
.hd .hd-book b { font-weight: 600; color: #1E6B3A; }
.hd .hd-bic { display: inline-flex; color: #2E9D57; }
.hd .hd-toast { display: inline-flex; bottom: 20px; visibility: hidden; font-size: 13px; }

/* ---- Carry (B): the travelling copy of a line */
.hd .hd-fly { position: absolute; left: 0; top: 0; z-index: 25; display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 9px; background: #fff; box-shadow: 0 10px 24px -6px rgba(24,24,24,.22), 0 0 0 1px rgba(24,24,24,.07); font-size: 13.5px; color: #171717; white-space: nowrap; pointer-events: none; }
.hd .hd-fly--row { font-weight: 600; }
.hd .hd-sw { display: grid; }
.hd .hd-sw > span { grid-area: 1/1; }

/* ---- cursor (vector arrow; a ring marks each click) */
.hd .hd-cur { position: absolute; left: 0; top: 0; width: 20px; height: 20px; z-index: 30; pointer-events: none; visibility: hidden; }
.hd .hd-cur svg { position: absolute; left: -3px; top: -1px; width: 22px; height: 22px; fill: #181818; stroke: #fff; stroke-width: 1.4; stroke-linejoin: round; filter: drop-shadow(0 1px 1.5px rgba(0,0,0,.28)); }
.hd .hd-ring { position: absolute; left: -14px; top: -14px; width: 28px; height: 28px; border-radius: 50%; border: 2px solid #EF4E22; opacity: 0; }

/* ---- Signal (C): the light layer over the window */
.hd .hd-fx { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; z-index: 20; visibility: hidden; }

/* the live mock's own keyframe entrances (mq-in etc.) are off inside the views: the engine owns all motion */
.hd .hd-views *:not(.hd-caret) { animation: none !important; }

/* ---- states the engine sets by class (so a frame can be reproduced exactly) */
.hd.hd-js .hd-v-today { visibility: hidden; }
.hd.hd-js .hd-c[data-c='2'] { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .hd .mq-hcap { display: grid; }
  .hd .hd-cur, .hd .hd-fx { display: none; }
}

/* Hero demo, the site's dark mode (#mq-dark targets .mq-dk). Colours are the live demo's own dark palette
   (read from the live page 13 Nov): app #16181D, text #F2F3F5, secondary #D5D8DE, muted #9AA0AA,
   lines #2A2E36 / #30343D, raised #1F232B, the active menu item #232730 with orange text. */
.hd .hd-logo-d { display: none; }
html:has(.mq-dk:target) .hd .hd-logo-l { display: none; }
html:has(.mq-dk:target) .hd .hd-logo-d { display: block; }
html:has(.mq-dk:target) .hd .hd-c { color: #F2F3F5; }
html:has(.mq-dk:target) .hd .hd-view { background: #16181D; }
html:has(.mq-dk:target) .hd .hd-pill, html:has(.mq-dk:target) .hd .mq-app-mnav .mq-nv.hd-on { background: #232730; }
html:has(.mq-dk:target) .hd:not(.hd-js) .mq-app-side .mq-nv.hd-on { background: #232730; }
html:has(.mq-dk:target) .hd .mq-nv.hd-on { color: #FF7A50; }
html:has(.mq-dk:target) .hd .hd-plan { background: #1F232B; border-color: #30343D; }
html:has(.mq-dk:target) .hd .hd-pl { color: #F2F3F5; }
html:has(.mq-dk:target) .hd .hd-pl + .hd-pl, html:has(.mq-dk:target) .hd .hd-new, html:has(.mq-dk:target) .hd .hd-sug { border-color: #2A2E36; }
html:has(.mq-dk:target) .hd .mq-qbtn--pri { background: #F2F3F5; border-color: #F2F3F5; color: #16181D !important; }
html:has(.mq-dk:target) .hd .mq-ab.mq-btn-or { background: #EF4E22 !important; border-color: #EF4E22 !important; color: #fff !important; }
html:has(.mq-dk:target) .hd .mq-qbtn--pri .hd-w, html:has(.mq-dk:target) .hd .mq-ab--pri .hd-w { color: inherit; }
html:has(.mq-dk:target) .hd .mq-qcomp-in { color: #F2F3F5; }
html:has(.mq-dk:target) .hd .hd-ph { color: #9AA0AA; }
html:has(.mq-dk:target) .hd .hd-caret { background: #F2F3F5; }
html:has(.mq-dk:target) .hd .hd-comp.hd-focus { border-color: #4A505C; box-shadow: 0 0 0 3px rgba(255,255,255,.06); }
html:has(.mq-dk:target) .hd .hd-ok { background: rgba(46,157,87,.2); color: #8FDDAE; }
html:has(.mq-dk:target) .hd .hd-ok::before { background: #5BC788; }
html:has(.mq-dk:target) .hd .hd-tasks th { color: #9AA0AA; border-color: #2A2E36; }
html:has(.mq-dk:target) .hd .hd-tasks td { color: #F2F3F5; border-color: #2A2E36; }
html:has(.mq-dk:target) .hd .hd-tt .hd-ic, html:has(.mq-dk:target) .hd .hd-d .hd-ic { color: #9AA0AA; }
html:has(.mq-dk:target) .hd .hd-d { color: #D5D8DE; }
html:has(.mq-dk:target) .hd .hd-gbk { color: #D5D8DE; }
html:has(.mq-dk:target) .hd .hd-red { background: rgba(239,68,68,.18); color: #FCA5A5; }
html:has(.mq-dk:target) .hd .hd-nudge.hd-done { color: #9AA0AA; }
html:has(.mq-dk:target) .hd .hd-nudge .hd-nc, html:has(.mq-dk:target) .hd .hd-bic { color: #5BC788; }
html:has(.mq-dk:target) .hd .hd-chip { background: rgba(239,78,34,.12); border-color: rgba(255,122,80,.45); color: #F2F3F5; }
html:has(.mq-dk:target) .hd .hd-chip .hd-ic { color: #FF7A50; }
html:has(.mq-dk:target) .hd .hd-book { background: rgba(46,157,87,.14); border-color: rgba(143,221,174,.35); color: #F2F3F5; }
html:has(.mq-dk:target) .hd .hd-book b { color: #8FDDAE; }
html:has(.mq-dk:target) .hd .hd-toast { background: #F2F3F5; color: #16181D; }
html:has(.mq-dk:target) .hd .hd-toast .hd-ic { color: #16181D; }
html:has(.mq-dk:target) .hd .hd-cur svg { fill: #F2F3F5; stroke: #16181D; }
