/* ==========================================
   AI BUSINESS FEASIBILITY CHECKER - Styles
   ========================================== */

.feas-body { overflow-x: hidden; background: #0A0A0F; }
.feas-heading { grid-template-columns: minmax(0, 830px) auto; }
.feas-workspace { grid-template-columns: minmax(320px, 0.88fr) minmax(580px, 1.38fr); }
.feas-form { position: sticky; top: 84px; }

.feas-workflow-card,
.feas-preset-block,
.feas-section,
.feas-mini-card,
.feas-signal-card,
.feas-experiment {
  min-width: 0;
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  background: #111118;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.feas-preset-block { background: #161620; }

.feas-card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.feas-card-header strong { color: #EDEDF5; font: 800 1rem var(--font-display); }
.feas-card-header span { color: #8888A0; font-size: 0.8rem; font-weight: 800; }

.feas-steps { display: grid; gap: 9px; }

.feas-step {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  background: #161620;
}

.feas-step > span {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #2A2A3A;
  color: #B8B8CC;
  font-size: 0.82rem;
  font-weight: 900;
}

.feas-step strong { display: block; color: #B8B8CC; font-size: 0.9rem; line-height: 1.25; }
.feas-step em { display: block; margin-top: 2px; color: #8888A0; font-size: 0.8rem; font-style: normal; line-height: 1.35; }

.feas-step.is-active { border-color: rgba(37, 99, 235, 0.32); background: rgba(37, 99, 235, 0.06); }
.feas-step.is-active > span { color: #ffffff; background: linear-gradient(135deg, #2563eb, #0f766e); }
.feas-step.is-done > span { color: #ffffff; background: #0f766e; }

.feas-body .brief-status.is-loading .status-dot { animation: feas-pulse 0.9s ease-in-out infinite; }
@keyframes feas-pulse {
  0%, 100% { transform: scale(1); opacity: 0.72; }
  50% { transform: scale(1.45); opacity: 1; }
}

.feas-preset-grid,
.feas-actions,
.feas-regen-control {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.preset-chip {
  min-height: 34px;
  padding: 8px 11px;
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: 8px;
  background: #111118;
  color: #EDEDF5;
  font: 800 0.78rem var(--font-display);
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.preset-chip:hover,
.preset-chip.is-active {
  border-color: rgba(37, 99, 235, 0.52);
  background: rgba(37, 99, 235, 0.06);
  box-shadow: 0 8px 18px rgba(255,255,255,0.06);
  transform: translateY(-1px);
}

.feas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.feas-regen-control select {
  max-width: 230px;
  padding: 8px 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  background: #111118;
  color: #EDEDF5;
  font-size: 0.85rem;
  font-weight: 600;
}

.feas-result {
  display: grid;
  gap: 14px;
  padding-top: 18px;
}

.feas-company-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.feas-company-header h3 {
  margin: 4px 0 5px;
  color: #EDEDF5;
  font: 900 1.45rem var(--font-display);
}

.feas-company-header p {
  margin: 0;
  color: #8888A0;
  font-size: 0.86rem;
}

.feas-overall-score {
  min-width: 86px;
  padding: 10px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 8px;
  background: rgba(108,92,231,0.06);
  text-align: center;
}

.feas-overall-score span {
  display: block;
  color: #1d4ed8;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.feas-overall-score strong {
  display: block;
  color: #EDEDF5;
  font: 900 1.55rem var(--font-display);
}

.feas-meta-grid,
.feas-two-col,
.feas-extra-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.feas-meta-grid > div {
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  background: #161620;
}

.feas-meta-grid .wide,
.feas-extra-grid .wide { grid-column: 1 / -1; }

.feas-meta-grid strong,
.feas-mini-card h4 {
  display: block;
  margin: 0 0 6px;
  color: #B8B8CC;
  font: 800 0.78rem var(--font-display);
  text-transform: uppercase;
}

.feas-meta-grid p,
.feas-mini-card p {
  margin: 0;
  color: #EDEDF5;
  line-height: 1.5;
}

.feas-signal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.feas-signal-card {
  align-content: start;
  box-shadow: none;
}

.feas-signal-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.feas-signal-top strong {
  color: #EDEDF5;
  font: 800 0.95rem var(--font-display);
  text-transform: capitalize;
}

.feas-signal-top span {
  min-width: 38px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #0f172a;
  color: #ffffff;
  font-weight: 900;
}

.feas-signal-card em {
  color: #1d4ed8;
  font-style: normal;
  font-size: 0.8rem;
  font-weight: 900;
}

.feas-signal-card p {
  margin: 0;
  color: #B8B8CC;
  font-size: 0.84rem;
  line-height: 1.45;
}

.feas-tag {
  display: inline-block;
  margin: 3px 4px 3px 0;
  padding: 4px 9px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: rgba(108,92,231,0.06);
  color: #1d4ed8;
  font-size: 0.78rem;
  font-weight: 650;
}

.feas-tag.green { border-color: #bbf7d0; background: rgba(52,211,153,0.06); color: #166534; }
.feas-tag.red { border-color: #fecaca; background: rgba(229,77,77,0.08); color: #991b1b; }
.feas-tag.blue { border-color: #bfdbfe; background: rgba(108,92,231,0.06); color: #1d4ed8; }

.feas-score-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  gap: 7px;
  align-items: center;
  margin: 7px 0;
}

.feas-score-row span {
  color: #B8B8CC;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: capitalize;
}

.feas-score-row strong { text-align: right; font-size: 0.8rem; color: #EDEDF5; }
.feas-score-row div { grid-column: 1 / -1; height: 7px; overflow: hidden; border-radius: 999px; background: #2A2A3A; }
.feas-score-row i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #2563eb, #0f766e); }

.feas-experiment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.feas-experiment {
  position: relative;
  box-shadow: none;
}

.feas-experiment > span {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #0f766e;
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 900;
}

.feas-experiment h4 {
  margin: 0;
  color: #EDEDF5;
  font: 800 0.96rem var(--font-display);
}

.feas-experiment p {
  margin: 0;
  color: #B8B8CC;
  font-size: 0.84rem;
  line-height: 1.45;
}

.feas-experiment em {
  color: #8888A0;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
}

.feas-loader {
  min-height: 460px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 20px;
  padding: 26px;
  text-align: center;
}

.feas-loader-visual {
  display: grid;
  justify-items: center;
  gap: 16px;
}

.feas-loader-gauge {
  position: relative;
  width: 110px;
  height: 110px;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, #ffffff 0 48%, transparent 49%),
    conic-gradient(from 0deg, #2563eb, #0f766e, #f59e0b, #2563eb);
  box-shadow: 0 20px 45px rgba(37, 99, 235, 0.22);
  animation: feas-spin 1.5s linear infinite;
}

.feas-loader-gauge span {
  position: absolute;
  inset: 38px;
  border-radius: inherit;
  background: #111118;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}

.feas-loader-bars {
  width: 280px;
  display: grid;
  gap: 7px;
}

.feas-loader-bars span {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.2), rgba(15, 118, 110, 0.72), rgba(245, 158, 11, 0.2));
  background-size: 220% 100%;
  animation: feas-shimmer 1.25s ease-in-out infinite;
}

.feas-loader-bars span:nth-child(2) { width: 88%; margin: 0 auto; animation-delay: 0.1s; }
.feas-loader-bars span:nth-child(3) { width: 72%; margin: 0 auto; animation-delay: 0.2s; }
.feas-loader-bars span:nth-child(4) { width: 55%; margin: 0 auto; animation-delay: 0.3s; }

@keyframes feas-spin { to { transform: rotate(360deg); } }
@keyframes feas-shimmer {
  0% { background-position: 0% 50%; opacity: 0.65; }
  50% { opacity: 1; }
  100% { background-position: 100% 50%; opacity: 0.65; }
}

.feas-loader strong { display: block; color: #EDEDF5; font: 800 1rem var(--font-display); }
.feas-loader p { margin: 4px 0 0; color: #8888A0; font-size: 0.85rem; }

@media (max-width: 980px) {
  .feas-workspace,
  .feas-grid,
  .feas-meta-grid,
  .feas-signal-grid,
  .feas-two-col,
  .feas-extra-grid,
  .feas-experiment-grid {
    grid-template-columns: 1fr;
  }

  .feas-form { position: static; top: auto; }
}
