/* design-studio.css — Página e seção da home do Design Studio:
   demonstração (conversa + variações), fluxo "três caminhos", prova no corpo e segmentos */

/* =========================================================
   DEMONSTRAÇÃO — variações geradas e prova no corpo
   ========================================================= */
.ds-demo .chat-avatar { background: var(--accent); }

.ds-vars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
}

.ds-var {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  background: #F4F1EC;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.ds-var svg { width: 78%; height: 78%; }
.ds-var.is-picked { outline: 2px solid var(--accent); outline-offset: 2px; }

.ds-var-n {
  position: absolute;
  left: 5px;
  top: 4px;
  font-size: 0.6rem;
  font-weight: 800;
  color: #8B8F96;
}

.ds-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

.ds-chip {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--chapter-text);
  border: 1px solid var(--chapter-line);
  border-radius: var(--radius-full);
  padding: 4px 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ds-chip .ti { font-size: 0.85rem; color: var(--accent); }

/* Foto real da prova no antebraço */
.ds-try {
  position: relative;
  margin-top: 10px;
  border-radius: 12px;
  overflow: hidden;
  background: #17181B;
}

.ds-try img { display: block; width: 100%; height: auto; }

.ds-try-tag {
  position: absolute;
  right: 8px;
  bottom: 8px;
  font-size: 0.62rem;
  font-weight: 800;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  border-radius: var(--radius-full);
  padding: 3px 8px;
}

.ds-try-tag--left { right: auto; left: 8px; color: #7FD9A6; }

/* =========================================================
   TRÊS CAMINHOS → UM SISTEMA
   ========================================================= */
.ds-paths { display: grid; grid-template-columns: 1fr; gap: 12px; }

.ds-path {
  position: relative;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--bg-card);
}

.ds-path-n {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 14px;
}

.ds-path-kicker {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 6px;
}

.ds-path h3 { font-size: var(--text-2xl); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 8px; }
.ds-path p { font-size: var(--text-sm); color: var(--text-2); line-height: 1.55; }

.ds-path-out {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-1);
  display: flex;
  align-items: center;
  gap: 8px;
}

.ds-path-out .ti { color: var(--accent); }

.ds-path--hero { background: var(--text-1); border-color: var(--text-1); }
.ds-path--hero h3, .ds-path--hero .ds-path-out { color: #fff; }
.ds-path--hero p, .ds-path--hero .ds-path-kicker { color: #B9BDC4; }
.ds-path--hero .ds-path-out { border-top-color: #3A3D44; }

@media (min-width: 900px) { .ds-paths { grid-template-columns: repeat(3, 1fr); } }

/* Trilho: Design → OS → Comanda → sessões → gestão */
.ds-rail {
  margin-top: clamp(28px, 4vw, 44px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  counter-reset: none;
}

.ds-rail-step {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  padding-bottom: 22px;
}

.ds-rail-step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 21px;
  top: 44px;
  bottom: 0;
  width: 2px;
  background: var(--accent);
  opacity: 0.35;
}

.ds-rail-node {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--text-1);
  color: #fff;
  font-size: 1.15rem;
}

.ds-rail-step--end .ds-rail-node { background: var(--accent); }

.ds-rail-t { font-size: var(--text-base); font-weight: 800; margin: 2px 0 2px; }
.ds-rail-d { font-size: var(--text-sm); color: var(--text-2); line-height: 1.5; }

.ds-split { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

.ds-split span {
  font-size: var(--text-xs);
  font-weight: 700;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 4px 10px;
  color: var(--text-2);
  background: var(--bg-card);
}

@media (min-width: 1024px) {
  .ds-rail { grid-template-columns: repeat(5, 1fr); gap: 16px; }
  .ds-rail-step { grid-template-columns: 1fr; gap: 12px; padding-bottom: 0; }
  .ds-rail-step:not(:last-child)::before { left: 52px; right: -8px; top: 21px; bottom: auto; width: auto; height: 2px; }
}

.ds-mgmt {
  margin-top: clamp(24px, 3vw, 36px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  background: var(--success-soft);
}

.ds-mgmt strong { font-size: var(--text-sm); margin-right: 6px; color: var(--text-1); }

.ds-mgmt span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-xs);
  font-weight: 700;
  color: #146B3D;
  background: #fff;
  border-radius: var(--radius-full);
  padding: 5px 11px;
}

.ds-mgmt span::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--success); }

/* =========================================================
   SEGMENTOS (Tatuagem, Piercing, Cover-up, Biblioteca)
   ========================================================= */
.ds-seg-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }

.ds-seg {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 32px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--bg-card);
}

.ds-seg-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }

.ds-seg-head .ti {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.35rem;
  flex-shrink: 0;
}

.ds-seg h3 { font-size: var(--text-2xl); font-weight: 800; letter-spacing: -0.02em; }
.ds-seg > p { color: var(--text-2); font-size: var(--text-sm); line-height: 1.55; margin-bottom: 14px; }

.ds-seg-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }

.ds-seg-list li {
  position: relative;
  padding-left: 22px;
  font-size: var(--text-sm);
  color: var(--text-1);
  line-height: 1.5;
}

.ds-seg-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 12px;
  height: 2px;
  background: var(--accent);
}

.ds-seg-case {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md, 12px);
  background: var(--bg-tint);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-1);
  text-decoration: none;
  transition: background 0.2s;
}

.ds-seg-case:hover { background: var(--bg-tint-2); }
.ds-seg-case .ti { color: var(--accent); flex-shrink: 0; }

@media (min-width: 768px) { .ds-seg-grid { grid-template-columns: 1fr 1fr; } }

/* =========================================================
   HOME — selo e variante do capítulo
   ========================================================= */
.ds-home .heya-cols { margin-bottom: 20px; }
.ds-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--chapter-text);
  border: 1px solid var(--chapter-line);
  border-radius: var(--radius-full);
  padding: 6px 12px;
  margin-bottom: 18px;
}

.ds-badge .ti { color: var(--accent); }

.ds-home-actions { display: flex; flex-wrap: wrap; gap: 10px; }

@media (min-width: 1024px) { .ds-home .heya-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); } }

@media (max-width: 480px) { .ds-try-tag--left { display: none; } }

/* =========================================================
   PROVAR NO CORPO — tela real em destaque
   ========================================================= */
.ds-ar-grid { display: grid; grid-template-columns: 1fr; gap: clamp(28px, 4vw, 48px); align-items: center; }
.ds-ar-cards { display: grid; grid-template-columns: 1fr; gap: 12px; }

.ds-shot { position: relative; margin: 0 auto; max-width: 440px; width: 100%; }

.ds-shot picture img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22px;
  border: 1px solid var(--chapter-line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 0 8px #1D1F23;
}

.ds-shot-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-xs);
  font-weight: 800;
  color: var(--text-1);
  background: #fff;
  border-radius: var(--radius-full);
  padding: 9px 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
}

.ds-shot-chip .ti { color: var(--accent); font-size: 1rem; }
.ds-shot-chip--a { top: 18%; left: -6%; }
.ds-shot-chip--b { top: 56%; right: -6%; }

.chapter .ds-shot figcaption,
.ds-shot figcaption { margin-top: 18px; font-size: var(--text-xs); color: var(--chapter-muted); text-align: center; }

@media (max-width: 560px) {
  .ds-shot-chip--a { left: 8px; }
  .ds-shot-chip--b { right: 8px; }
}

@media (min-width: 1024px) {
  .ds-ar-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); }
}


/* Variações reais (2 colunas) */
.ds-vars--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 300px; }
.ds-var img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ds-var-n { z-index: 1; }
