/* Mosaik HQ product page: the HQ console, feature cards, industry packs, status and the pilot list.
   Builds on sections.css (hero, guardrails, FAQ) and mocks.css (console parts, mini cards, avatars). */

/* ---------- Hero ---------- */
.hq-badge {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 10px;
  margin: 0;
  padding: 4px 14px 4px 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 75%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 13.5px;
  color: var(--ink-2);
}
.hq-badge-tag {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
@media (max-width: 520px) {
  .hq-badge { padding: 6px 12px; border-radius: 18px; }
}

/* ---------- HQ console: bots, chat and side panel ---------- */
.hqc {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr) 292px;
  max-width: 1160px;
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid var(--panel-line);
  border-radius: 20px;
  background: var(--panel);
  box-shadow: var(--shadow-lg);
  color: var(--panel-ink);
  font-size: 14px;
  text-align: start;
}
.hqc .av-frame { fill: var(--panel); }
.hqc .av-main { stroke: var(--panel-line); stroke-width: 1.5; }

.hqc-bots { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.hqc-bots li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
}
.hqc-bots li.is-active { background: var(--panel-2); }
.hqc-bots .bot-av { width: 30px; height: 30px; }
.hqc-bots b,
.hqc-bots small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hqc-bots b { font-size: 13.5px; font-weight: 600; }
.hqc-bots small { font-size: 12px; color: var(--panel-ink-3); }
.hqc-bots .hqc-label {
  display: block;
  padding: 12px 10px 4px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--panel-ink-3);
}
.hqc-count {
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--panel-accent);
  color: var(--panel);
  font-size: 11px;
  font-weight: 600;
}
.hqc-dot {
  width: 7px;
  height: 7px;
  margin-inline-end: 5px;
  border-radius: 50%;
  background: var(--panel-ok);
  animation: hq-pulse 1.8s ease-in-out infinite;
}
@keyframes hq-pulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--panel-ok) 45%, transparent); }
  50% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--panel-ok) 0%, transparent); }
}

.hqc-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hqc-title .bot-av { width: 24px; height: 24px; }
.hqc-title b { flex: none; }
.hqc-title .dim {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hqc-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border-inline-start: 1px solid var(--panel-line);
  background: color-mix(in srgb, var(--panel-2) 40%, var(--panel));
}
.hqc-tabs {
  display: flex;
  gap: 3px;
  padding: 3px;
  border-radius: 10px;
  background: var(--panel-2);
  font-size: 12px;
}
.hqc-tabs span {
  flex: 1;
  padding: 5px 6px;
  overflow: hidden;
  border-radius: 7px;
  color: var(--panel-ink-3);
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hqc-tabs .is-active { background: var(--panel); color: var(--panel-ink); box-shadow: 0 0 0 1px var(--panel-line); }

.hqc-view,
.hqc-graph {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--panel-line);
  border-radius: 14px;
  background: var(--panel);
}
.hqc-view-title { font-size: 13.5px; font-weight: 600; }
.hqc-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.hqc-metrics div { min-width: 0; padding: 8px 9px; border-radius: 10px; background: var(--panel-2); }
.hqc-metrics small {
  display: block;
  overflow: hidden;
  font-size: 11px;
  color: var(--panel-ink-3);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hqc-metrics b { font-family: var(--font-display); font-size: 18px; font-weight: 700; }
.hqc-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 12px; }
.hqc-table th {
  padding: 0 4px 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-align: start;
  text-transform: uppercase;
  color: var(--panel-ink-3);
}
.hqc-table th:first-child { width: 42%; }
.hqc-table th:nth-child(2) { width: 27%; }
.hqc-table td {
  padding: 7px 4px;
  border-top: 1px solid var(--panel-line);
  color: var(--panel-ink-2);
  line-height: 1.35;
  vertical-align: top;
}
.hqc-table td:first-child { color: var(--panel-ink); }
.hqc-table .fit { padding: 1px 7px; font-size: 11px; white-space: nowrap; }
.hqc-graph small { font-size: 11.5px; color: var(--panel-ink-3); }

@media (max-width: 1100px) {
  .hqc { grid-template-columns: 236px minmax(0, 1fr); }
  .hqc-panel { display: none; }
}
@media (max-width: 760px) {
  .hqc { grid-template-columns: minmax(0, 1fr); border-radius: 16px; }
}

/* ---------- Feature cards ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.feature {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.feature-visual {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  height: 232px;
  padding: 22px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
  font-size: 13px;
}
.feature-body { display: grid; align-content: start; gap: 10px; padding: 24px 26px 28px; }
.feature-body h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.feature-body p { margin: 0; font-size: 15px; color: var(--ink-2); }

.feature-visual .mini-row > div { flex: 1; min-width: 0; }
.feature-visual small { display: block; font-size: 12px; color: var(--ink-3); }
.bot-row .bot-av { width: 32px; height: 32px; }

.switch {
  position: relative;
  flex: none;
  width: 30px;
  height: 18px;
  border-radius: 9px;
  background: var(--line-strong);
}
.switch::after {
  content: "";
  position: absolute;
  top: 2px;
  inset-inline-start: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}
.switch.is-on { background: var(--ok); }
.switch.is-on::after { inset-inline-start: 14px; }

.approve-card {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-color: color-mix(in srgb, var(--warn) 40%, var(--line));
}
.approve-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.approve-top .bot-av { width: 24px; height: 24px; }
.approve-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--warn); }
.approve-badge .i { width: 14px; height: 14px; }
.approve-card p { margin: 0; font-size: 12.5px; color: var(--ink-2); }
.approve-actions { display: flex; gap: 8px; margin-top: 6px; }
.approve-btn {
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12.5px;
  color: var(--ink-2);
}
.approve-btn.is-primary { border-color: transparent; background: var(--btn-bg); color: var(--btn-fg); font-weight: 500; }

.mini-chart { display: grid; gap: 14px; padding: 16px; }
.mini-bars {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: end;
  gap: 8px;
  height: 112px;
  border-bottom: 1px solid var(--line);
}
.mini-bars span {
  height: calc(var(--v) * 1%);
  border-radius: 5px 5px 2px 2px;
  background: color-mix(in srgb, var(--accent) 32%, var(--bg-soft));
}
.mini-bars .is-last { background: var(--accent); }

.feature-graph { padding: 14px 20px; }
.feature-graph .bot-graph { width: 100%; max-height: 100%; }

.file-row b {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-kind {
  flex: none;
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.hq-footnote {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 10px;
  margin: 28px 0 0;
  font-size: 13.5px;
  color: var(--ink-3);
  text-align: center;
}
.tag-light {
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

@media (max-width: 960px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .feature-visual { height: auto; min-height: 200px; }
}

/* ---------- Industry packs ---------- */
.hq-packs { padding-top: calc(var(--section-space) * 0.4); }

.status-chip {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 12.5px;
  color: var(--ink-2);
  white-space: nowrap;
}
.status-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-muted);
}
.status-chip.is-ready {
  border-color: color-mix(in srgb, var(--ok) 35%, transparent);
  background: color-mix(in srgb, var(--ok) 8%, var(--surface));
  color: var(--ok);
}
.status-chip.is-ready::before { background: currentColor; }

.pack-ready {
  padding: clamp(22px, 3.2vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
}
.pack-ready-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.pack-ready h3 {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.pack-ready-text { margin: 12px 0 0; max-width: 42em; color: var(--ink-2); }
.pack-bots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.pack-bots li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.pack-bots .bot-av { width: 36px; height: 36px; }
.pack-bots div { min-width: 0; }
.pack-bots b { display: block; font-size: 14.5px; font-weight: 600; }
.pack-bots small { display: block; font-size: 13px; line-height: 1.4; color: var(--ink-2); }

.pack-next { display: grid; gap: 20px; margin-top: 48px; }
.pack-next-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.pack-next-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.pack-next-head p { margin: 0; font-size: 15px; color: var(--ink-2); }
.pack-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pack {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.pack h4 {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.pack p { margin: 0; font-size: 14px; color: var(--ink-2); }

@media (max-width: 1100px) {
  .pack-list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
}
@media (max-width: 960px) {
  .pack-bots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .pack-bots { grid-template-columns: minmax(0, 1fr); }
  .pack-ready-head { flex-direction: column-reverse; align-items: flex-start; }
}

/* ---------- Status ---------- */
.status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}
.status-col {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.status-col.is-now { border-color: color-mix(in srgb, var(--ok) 32%, var(--line)); }
.status-col h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.status-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-muted); }
.is-now .status-dot { background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 18%, transparent); }
.is-next .status-dot { background: var(--warn); }
.status-col ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  color: var(--ink-2);
}
.status-col li { display: flex; align-items: flex-start; gap: 10px; }
.status-col li .i { width: 14px; height: 14px; margin-top: 5px; color: var(--ink-3); }
.is-now li .i { color: var(--ok); stroke-width: 2; }

@media (max-width: 960px) {
  .status-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Pilot list (closing section) ---------- */
.pilot-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(88px, 11vw, 150px);
}
.pilot-section .mosaic,
.pilot-section .glow {
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent);
}
.pilot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px 72px;
  align-items: start;
}
.pilot-head {
  position: sticky;
  top: calc(var(--nav-h) + 40px);
  display: grid;
  gap: 22px;
}
.pilot-promises {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  color: var(--ink-2);
}
.pilot-promises li { display: flex; align-items: center; gap: 10px; }
.pilot-promises .i { width: 16px; height: 16px; color: var(--ok); stroke-width: 2; }

.pilot-card {
  display: grid;
  gap: 22px;
  min-width: 0;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.pilot-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1.1rem + 0.7vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}
.pilot-steps { display: grid; margin: 0; padding: 0; list-style: none; }
.pilot-steps li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.pilot-steps li:first-child { padding-top: 0; border-top: 0; }
.pilot-num {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--bg-soft);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
}
.pilot-steps b { display: block; font-weight: 600; }
.pilot-steps p { margin: 2px 0 0; font-size: 14.5px; color: var(--ink-2); }
.pilot-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pilot-address { margin: 0; font-size: 14px; color: var(--ink-2); }
.pilot-address a,
.pilot-note a { text-decoration: underline; text-underline-offset: 2px; }
.pilot-address a { color: var(--ink); }
.pilot-note { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--ink-3); }
.pilot-note a { color: var(--ink-2); }

@media (max-width: 960px) {
  .pilot-grid { grid-template-columns: minmax(0, 1fr); }
  .pilot-head { position: static; }
}
@media (max-width: 480px) {
  .pilot-actions .btn { width: 100%; }
}
