/* Piper HQ page: hero dashboard shot and the interactive dashboard demo. Shared look in ../showcase.css. */

/* Hero product shot */
.hq-hero{border-radius:28px;background:var(--stage);color:#ecebff;padding:clamp(18px,3vw,28px);box-shadow:var(--shadow);display:grid;gap:16px}
.hq-hero-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.hq-hero-stats span{display:grid;gap:2px;padding:12px;border-radius:14px;background:#ffffff0d;font-size:13px;color:#b9b8e0}
.hq-hero-stats b{font:800 26px/1 var(--display);color:#fff}
.hq-hero-stats .warn b{color:#fcd34d}.hq-hero-stats .ok b{color:#86efac}
.hq-hero-list{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.hq-hero-list li{display:grid;grid-template-columns:28px minmax(0,1fr) auto 10px;align-items:center;gap:10px;padding:8px 10px;border-radius:12px;background:#ffffff08;font-size:15px}
.hq-hero-list img{border-radius:7px}
.hq-hero-list .chip{font:600 12px var(--mono);color:#b9b8e0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dot{display:inline-block;width:10px;height:10px;border-radius:50%;background:#64748b}
.dot.ok{background:#22c55e}.dot.warn{background:#f59e0b}.dot.bad{background:#ef4444}.dot.run{background:#38bdf8;animation:hq-pulse 1s ease-in-out infinite}
.hq-hero-log{display:grid;gap:4px;padding:12px 14px;border-radius:12px;background:#00000040;font:13px/1.5 var(--mono);color:#cfcdf5}
.hq-hero-log .ok{color:#86efac}.hq-hero-log .bad{color:#fca5a5}
@keyframes hq-pulse{50%{opacity:.35}}

/* Demo window */
.hq-window{background:#fafaff}
.hq-window .titlebar{justify-content:flex-start}
.hq-summary{margin-left:auto;font-weight:600;color:#5b5bd6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hq-body{display:grid;grid-template-columns:minmax(230px,280px) minmax(0,1fr);min-height:460px}
.hq-side{display:flex;flex-direction:column;gap:8px;padding:14px;border-right:1px solid #0000000d;background:#f0f0fa;min-width:0}
.hq-filter{display:flex;align-items:center;gap:8px;min-height:44px;padding:0 10px;border-radius:12px;background:#fff;border:1px solid #0000000f}
.hq-filter svg{width:16px;height:16px;flex:none;fill:none;stroke:#6b6b8a;stroke-width:2}
.hq-filter input{flex:1;min-width:0;border:0;background:transparent;font:500 15px var(--body);color:#1d1a2e;outline:none}
.hq-filter kbd{background:#f0f0fa}
.hq-filter:focus-within{outline:3px solid #5b5bd6;outline-offset:2px}
.hq-attention{align-self:flex-start;min-height:44px;padding:0 14px;border-radius:999px;border:1px solid #0000001a;background:#fff;color:#3f3f5c;font:600 14px var(--body);cursor:pointer}
.hq-attention[aria-pressed="true"]{background:#5b5bd6;border-color:#5b5bd6;color:#fff}
.hq-apps{list-style:none;margin:0;padding:0;display:grid;gap:4px;overflow:auto;max-height:420px}
.hq-apps li{display:grid;grid-template-columns:32px minmax(0,1fr) 10px;align-items:center;gap:10px;min-height:52px;padding:6px 10px;border-radius:12px;cursor:pointer;color:#1d1a2e}
.hq-apps li:hover{background:#ffffffb3}
.hq-apps li[aria-selected="true"]{background:#fff;box-shadow:0 4px 14px -8px #5b5bd699,inset 0 0 0 1px #5b5bd640}
.hq-apps li:focus-visible{outline:3px solid #5b5bd6;outline-offset:-1px}
.hq-apps img{width:32px;height:32px;border-radius:8px;object-fit:contain}
.hq-apps b{display:block;font-size:15px;line-height:1.2}
.hq-apps small{display:block;font:500 12px var(--mono);color:#6b6b8a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hq-apps .empty{display:block;cursor:default;color:#6b6b8a;font-size:14px;min-height:0}

.hq-main{display:flex;flex-direction:column;gap:14px;padding:clamp(14px,2.4vw,22px);min-width:0;color:#1d1a2e}
.hq-head{display:flex;align-items:center;gap:14px}
.hq-head img{width:48px;height:48px;border-radius:12px;object-fit:contain;flex:none}
.hq-head h3{margin:0;font:800 22px/1.15 var(--display);letter-spacing:-.02em}
.hq-head p{margin:2px 0 0;font-size:14px;color:#6b6b8a}
.hq-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0}
.hq-facts div{padding:10px 12px;border-radius:12px;background:#fff;border:1px solid #0000000a;min-width:0}
.hq-facts dt{font:700 12px/1 var(--body);letter-spacing:.06em;text-transform:uppercase;color:#6b6b8a}
.hq-facts dd{margin:6px 0 0;font:600 14px/1.3 var(--body);display:flex;align-items:center;gap:6px;overflow-wrap:anywhere}
.hq-tasks{display:flex;flex-wrap:wrap;gap:8px}
.hq-tasks button{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 16px;border-radius:12px;border:1px solid #0000001a;background:#fff;color:#1d1a2e;font:700 15px var(--body);cursor:pointer}
.hq-tasks button:hover{border-color:#5b5bd6}
.hq-tasks button.deploy{background:#5b5bd6;border-color:#5b5bd6;color:#fff}
.hq-tasks button.deploy kbd{background:#ffffff26;border-color:#ffffff40;color:#fff}
.hq-tasks button:disabled{opacity:.5;cursor:not-allowed}
.hq-confirm{padding:14px 16px;border-radius:14px;background:#fff7e6;border:1px solid #f5c26b;color:#4a3410}
.hq-confirm b{display:block;font-size:16px}
.hq-confirm p{margin:4px 0 10px;font-size:14px}
.hq-confirm div{display:flex;flex-wrap:wrap;gap:8px}
.hq-confirm button{min-height:44px;padding:0 16px;border-radius:10px;border:1px solid #0000001f;background:#fff;font:700 14px var(--body);cursor:pointer;color:#1d1a2e}
.hq-confirm button.primary{background:#5b5bd6;border-color:#5b5bd6;color:#fff}
.hq-output{flex:1;display:flex;flex-direction:column;min-height:180px;border-radius:14px;background:#15152a;color:#d9d8f5;overflow:hidden}
.hq-output-head{display:flex;justify-content:space-between;gap:10px;padding:8px 14px;border-bottom:1px solid #ffffff12;font:600 13px var(--body);color:#a5a3d6}
#hq-output-state.ok{color:#86efac}#hq-output-state.bad{color:#fca5a5}#hq-output-state.run{color:#7dd3fc}
.hq-output pre{flex:1;margin:0;padding:12px 14px;font:13px/1.55 var(--mono);white-space:pre-wrap;overflow-wrap:anywhere;overflow:auto;max-height:240px}
.hq-output .ok{color:#86efac}.hq-output .bad{color:#fca5a5}.hq-output .dim{color:#8b89b8}
.hq-activity{display:grid;grid-template-columns:auto minmax(0,1fr);gap:12px;align-items:start;padding:12px 16px;border-top:1px solid #0000000d;background:#f4f4fb;color:#1d1a2e;font-size:14px}
.hq-activity ol{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px}
.hq-activity li{display:inline-flex;align-items:center;gap:6px;min-height:30px;padding:0 10px;border-radius:999px;background:#fff;border:1px solid #0000000d;font:500 13px var(--body)}
.hq-activity li.empty{background:transparent;border:0;padding:0;color:#6b6b8a}
.stage-note{margin:14px 0 0;font-size:13px;color:color-mix(in srgb,var(--stage-ink) 65%,transparent)}

@media (max-width:860px){.hq-facts{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:720px){
  .hq-body{grid-template-columns:1fr}
  .hq-side{border-right:0;border-bottom:1px solid #0000000d}
  .hq-apps{display:flex;overflow-x:auto;max-height:none;padding-bottom:4px;scroll-snap-type:x proximity}
  .hq-apps li{flex:none;grid-template-columns:28px auto 10px;scroll-snap-align:start;background:#ffffff80}
  .hq-apps img{width:28px;height:28px}
  .hq-apps small{display:none}
  .hq-activity{grid-template-columns:1fr}
}
@media (max-width:420px){.hq-tasks button{flex:1 1 calc(50% - 4px);justify-content:center}}
