/* ==========================================================
   UI Mocks — Dashboard, Chat, Document
   ========================================================== */

.uimock {
  background: white;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-3);
  overflow: hidden;
  font-family: var(--sans);
  color: var(--ink);
  height: 100%;
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
}
.uimock * { min-width: 0; }
.uimock table { table-layout: auto; width: 100%; }

/* Chrome bar */
.uimock__chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}
.uimock__dots {
  display: flex;
  gap: 5px;
}
.uimock__dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--line);
}
.uimock__dots span:first-child { background: oklch(75% 0.16 30); }
.uimock__dots span:nth-child(2) { background: oklch(80% 0.14 80); }
.uimock__dots span:nth-child(3) { background: oklch(75% 0.16 145); }

.uimock__url {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--en);
  font-size: 11.5px;
  color: var(--muted);
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  padding: 4px 12px;
}
.uimock__chrome-actions {
  display: flex;
  gap: 4px;
}
.uimock__chrome-actions span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--muted-2);
}
.uimock__chrome--app .uimock__dots { display: none; }

.uimock__body {
  flex: 1;
  padding: 18px 20px;
  background: white;
}

/* ==========================================================
   Dashboard mock
   ========================================================== */
.uimock--dashboard {
  font-size: 12.5px;
}
.uimock-dash__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.uimock-dash__title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}
.uimock-dash__appmark {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), oklch(60% 0.18 280));
  color: white;
  display: grid; place-items: center;
  font-family: var(--en);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: -0.02em;
}
.uimock-dash__title {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.2;
}
.uimock-dash__subtitle {
  font-size: 10.5px;
  color: var(--muted);
  margin-top: 2px;
}
.uimock-dash__period {
  font-size: 11px;
  color: var(--ink-2);
  background: var(--bg-tint);
  border-radius: var(--r-sm);
  padding: 5px 10px;
  border: 1px solid var(--line);
}
.uimock-dash__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.uimock-dash__stat {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 10px 12px;
}
.uimock-dash__stat-label {
  font-size: 10.5px;
  color: var(--muted);
  margin-bottom: 4px;
}
.uimock-dash__stat-value {
  font-family: var(--en);
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.02em;
}
.uimock-dash__stat-value small {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  margin-left: 3px;
}
.uimock-dash__stat-trend {
  font-size: 10px;
  margin-top: 6px;
  font-weight: 600;
  display: inline-block;
}
.uimock-dash__stat-trend.up { color: oklch(45% 0.14 155); }
.uimock-dash__stat-trend.neutral { color: oklch(50% 0.14 252); }

.uimock-dash__chart {
  background: var(--bg-soft);
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  padding: 12px;
  margin-bottom: 12px;
  color: var(--muted);
}
.uimock-dash__chart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
}
.uimock-dash__chart-legend {
  display: flex;
  gap: 12px;
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
}
.uimock-dash__chart-legend i {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 2px;
  margin-right: 4px;
  vertical-align: middle;
}

.uimock-dash__list {
  border-top: 1px dashed var(--line);
  padding-top: 12px;
}
.uimock-dash__list-head {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  color: var(--ink);
}
.uimock-dash__row {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line-2);
  font-size: 11.5px;
}
.uimock-dash__row:last-child { border-bottom: 0; }
.uimock-dash__status {
  width: 18px; height: 18px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 10px;
  font-weight: 800;
}
.uimock-dash__status.done { background: oklch(92% 0.05 155); color: oklch(40% 0.14 155); }
.uimock-dash__status.inprogress { background: var(--blue-soft); color: var(--blue); }
.uimock-dash__status.queued { background: var(--bg-tint); color: var(--muted); }
.uimock-dash__row-title {
  color: var(--ink-2);
}
.uimock-dash__row-meta {
  font-size: 10.5px;
  color: var(--muted);
  font-family: var(--en);
}

/* ==========================================================
   Chat mock
   ========================================================== */
.uimock--chat {
  font-size: 13px;
}
.uimock-chat__head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}
.uimock-chat__avatar {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), oklch(60% 0.18 280));
  color: white;
  display: grid; place-items: center;
  font-family: var(--en);
  font-weight: 800;
  font-size: 11px;
}
.uimock-chat__room {
  font-weight: 700;
  font-size: 13px;
  line-height: 1.2;
}
.uimock-chat__sub {
  font-size: 10.5px;
  color: var(--muted);
}
.uimock-chat__online {
  font-size: 10px;
  color: oklch(45% 0.14 155);
  font-weight: 600;
}
.uimock-chat__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg-tint);
}
.uimock-chat__day {
  align-self: center;
  font-size: 10px;
  color: var(--muted);
  background: white;
  border: 1px solid var(--line);
  padding: 3px 12px;
  border-radius: var(--r-full);
}
.uimock-chat__msg {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 10px;
  align-items: flex-start;
}
.uimock-chat__msg.is-client { grid-template-columns: 1fr 32px; }
.uimock-chat__msg-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 11.5px;
  flex-shrink: 0;
}
.uimock-chat__msg-body {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 8px 12px;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.uimock-chat__msg.is-client .uimock-chat__msg-body {
  background: var(--blue-soft);
  border-color: var(--blue-line);
  order: -1;
  text-align: right;
}
.uimock-chat__msg.is-client .uimock-chat__msg-avatar { grid-column: 2; }
.uimock-chat__msg-meta {
  display: flex;
  gap: 8px;
  align-items: baseline;
  margin-bottom: 4px;
  font-size: 10.5px;
}
.uimock-chat__msg-meta strong {
  font-weight: 700;
  color: var(--ink);
  font-size: 11px;
}
.uimock-chat__msg-meta span {
  color: var(--muted);
  font-family: var(--en);
  font-size: 10px;
}
.uimock-chat__msg.is-client .uimock-chat__msg-meta { justify-content: flex-end; }
.uimock-chat__msg-text {
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.7;
}
.uimock-chat__attach {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--bg-tint);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 11.5px;
  font-family: var(--en);
  color: var(--blue-ink);
  margin-top: 4px;
}
.uimock-chat__attach-icon { color: var(--muted); }

.uimock-chat__compose {
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 10px;
  align-items: center;
  background: white;
}
.uimock-chat__compose-field {
  flex: 1;
  background: var(--bg-tint);
  border-radius: var(--r-full);
  padding: 8px 14px;
  font-size: 11.5px;
  color: var(--muted-2);
  border: 1px solid var(--line);
}
.uimock-chat__compose-send {
  padding: 7px 14px;
  background: var(--blue);
  color: white;
  border-radius: var(--r-full);
  font-size: 11.5px;
  font-weight: 600;
}

/* ==========================================================
   Document mock
   ========================================================== */
.uimock--doc {
  font-size: 12.5px;
}
.uimock-doc__head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}
.uimock-doc__icon {
  width: 28px; height: 28px;
  border-radius: 6px;
  background: var(--blue-soft);
  color: var(--blue);
  display: grid; place-items: center;
}
.uimock-doc__title {
  font-weight: 700;
  font-size: 12.5px;
  line-height: 1.2;
}
.uimock-doc__sub {
  font-size: 10px;
  color: var(--muted);
}
.uimock-doc__status {
  font-size: 10px;
  color: var(--muted);
  font-family: var(--en);
}
.uimock-doc__body {
  display: grid;
  grid-template-columns: 1.2fr 0.85fr;
  gap: 16px;
  padding: 18px;
}
.uimock-doc__main {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-right: 14px;
  border-right: 1px solid var(--line);
}
.uimock-doc__h {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--ink);
}
.uimock-doc__h2 {
  font-size: 12px;
  font-weight: 700;
  margin: 12px 0 4px;
  color: var(--ink);
}
.uimock-doc__line {
  height: 6px;
  background: var(--bg-tint);
  border-radius: 2px;
}
.uimock-doc__line.w90 { width: 92%; }
.uimock-doc__line.w85 { width: 85%; }
.uimock-doc__line.w80 { width: 80%; }
.uimock-doc__line.w75 { width: 75%; }
.uimock-doc__line.w70 { width: 70%; }
.uimock-doc__line.w65 { width: 65%; }
.uimock-doc__line.w60 { width: 60%; }

.uimock-doc__sidebar {
  background: var(--bg-soft);
  border-radius: var(--r-sm);
  padding: 14px;
  font-size: 11px;
  border: 1px solid var(--line);
}
.uimock-doc__ai-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 11.5px;
  margin-bottom: 10px;
}
.uimock-doc__ai-mark {
  background: var(--blue);
  color: white;
  font-family: var(--en);
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.uimock-doc__ai-prompt {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 8px 10px;
  font-size: 11px;
  color: var(--ink-2);
  margin-bottom: 10px;
}
.uimock-doc__ai-actions {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}
.uimock-doc__ai-btn {
  flex: 1;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 6px 8px;
  font-size: 10.5px;
  color: var(--ink-2);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.uimock-doc__ai-btn.primary {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}
.uimock-doc__ai-divider {
  height: 1px;
  background: var(--line);
  margin: 10px 0;
}
.uimock-doc__ai-history {
  font-size: 10.5px;
  color: var(--muted);
}
.uimock-doc__ai-history > div:first-child {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-family: var(--en);
  margin-bottom: 6px;
}
.uimock-doc__ai-history-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  color: var(--ink-2);
  font-size: 11px;
}
.uimock-doc__ai-history-item .dot {
  width: 5px; height: 5px;
  background: var(--blue);
  border-radius: 50%;
}

/* ==========================================================
   Mini chrome head shared by strategy / code / knowledge
   ========================================================== */
.uimock-mini__head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}
.uimock-mini__icon {
  width: 28px; height: 28px;
  border-radius: 6px;
  display: grid; place-items: center;
}
.uimock-mini__title {
  font-weight: 700;
  font-size: 12.5px;
  line-height: 1.2;
}
.uimock-mini__sub {
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
}

/* ==========================================================
   Strategy / Knowledge body
   ========================================================== */
.uimock-strategy__body,
.uimock-knowledge__body {
  padding: 14px;
  background: var(--bg-soft);
}

/* ==========================================================
   Code mock
   ========================================================== */
.uimock--code .uimock__body { padding: 0; background: #0f1620; }
.uimock-code__body { font-family: var(--mono); padding: 0 !important; }
.uimock-code__pre {
  margin: 0;
  padding: 14px 16px 8px;
  color: #d8dee9;
  font-size: 11.5px;
  line-height: 1.7;
  font-family: var(--mono);
  white-space: pre;
  background: #0f1620;
}
.uimock-code__pre .line {
  display: block;
}
.uimock-code__pre .ln {
  display: inline-block;
  width: 18px;
  color: #5a6678;
  font-size: 10px;
  margin-right: 8px;
}
.uimock-code__pre .kw { color: #88c0ff; }
.uimock-code__pre .fn { color: #b8d4a3; }
.uimock-code__pre .arg { color: #ffd49a; }
.uimock-code__pre .cm { color: #6b7a8f; font-style: italic; }
.uimock-code__ai {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-top: 1px solid #1f2733;
  background: #131a26;
}
.uimock-code__ai-tag {
  font-family: var(--en);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: oklch(70% 0.14 252);
  background: oklch(30% 0.16 252 / 0.5);
  padding: 2px 6px;
  border-radius: 3px;
}
.uimock-code__ai-text {
  flex: 1;
  font-size: 11px;
  color: #c8d2e0;
  font-family: var(--sans);
}
.uimock-code__ai-accept {
  background: oklch(60% 0.18 252);
  color: white;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 600;
}

/* ==========================================================
   Consultant card uses UI mock instead of photo
   ========================================================== */
.consultant__photo--mock {
  aspect-ratio: auto;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  padding: 16px;
  display: block;
  overflow: visible;
}
.consultant__photo--mock::after,
.consultant__photo--mock::before { display: none; }
.consultant__photo--mock .uimock {
  box-shadow: var(--shadow-1);
}

/* ==========================================================
   Banner-quote with chat mock
   ========================================================== */
.banner-quote--mock .banner-quote__photo--mock {
  background: var(--bg-soft);
  padding: 24px;
  min-height: 0;
  display: flex;
  align-items: stretch;
}
.banner-quote--mock .banner-quote__photo--mock .uimock {
  width: 100%;
  box-shadow: var(--shadow-2);
}

/* ==========================================================
   CTA clean banner (no illustration)
   ========================================================== */
.cta-banner--clean {
  background:
    radial-gradient(60% 80% at 95% 20%, oklch(35% 0.18 252 / 0.6) 0%, transparent 60%),
    radial-gradient(40% 60% at 10% 100%, oklch(35% 0.18 295 / 0.5) 0%, transparent 60%),
    var(--ink);
  overflow: hidden;
  position: relative;
}
.cta-banner--clean::before { display: none; }
.cta-banner__decor {
  position: absolute;
  right: 36px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.85;
  pointer-events: none;
}
@media (max-width: 720px) {
  .cta-banner__decor { display: none; }
}
.role-pict {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  position: relative;
  border: 1px solid var(--line);
}
.role-pict--blue { background: var(--blue-soft); color: var(--blue); border-color: var(--blue-line); }
.role-pict--green { background: oklch(94% 0.04 155); color: oklch(40% 0.14 155); border-color: oklch(85% 0.06 155); }
.role-pict--purple { background: oklch(94% 0.04 295); color: oklch(40% 0.14 295); border-color: oklch(85% 0.06 295); }
.role-pict--ink { background: oklch(95% 0.005 255); color: var(--ink); border-color: var(--line); }

/* ==========================================================
   Refined Loose-style consultant photo box
   ========================================================== */
.consultant__photo--loose {
  aspect-ratio: 4/3;
  display: grid;
  place-items: end center;
  overflow: hidden;
  position: relative;
  background: linear-gradient(180deg, #f6f1ea 0%, #ecf2fa 100%);
}
.consultant__photo--loose::before { display: none; }
.consultant__photo--loose::after { display: none; }
.consultant__photo--loose svg {
  display: block;
  height: 100%;
  filter: drop-shadow(0 4px 12px oklch(0% 0 0 / 0.08));
}

/* ==========================================================
   Hero collage (UI mock variant)
   ========================================================== */
.hero__visual--mocks {
  min-height: 580px;
  position: relative;
}
.hero__mock-main {
  position: absolute;
  top: 0; right: 0;
  width: 100%;
  max-width: 460px;
  min-width: 360px;
  z-index: 1;
}
.hero__mock-sub {
  position: absolute;
  bottom: 0; left: -8px;
  width: 78%;
  max-width: 360px;
  min-width: 300px;
  z-index: 2;
}
.hero__mock-sub .uimock { box-shadow: var(--shadow-3); }

/* ==========================================================
   LP hero photoframe -> doc mock variant
   ========================================================== */
.lp-hero__photo--doc {
  aspect-ratio: auto;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}
.lp-hero__photo--doc .uimock { box-shadow: var(--shadow-3); }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1080px) {
  .hero__visual--mocks { min-height: 0; display: flex; flex-direction: column; gap: 16px; }
  .hero__mock-main, .hero__mock-sub {
    position: static;
    width: 100%;
    max-width: none;
    min-width: 0;
  }
}
@media (max-width: 960px) {
  .uimock-doc__body { grid-template-columns: 1fr; }
  .uimock-doc__main { padding-right: 0; border-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
  .uimock-dash__stats { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .uimock { font-size: 11.5px; }
  .uimock__chrome { padding: 8px 10px; gap: 8px; }
  .uimock__body { padding: 12px; }
  .uimock-chat__msg-text { font-size: 11.5px; }
}
