/* ==========================================
   STARTUP PITCH DECK OUTLINE - Styles
   ========================================== */

.deck-body {
  overflow-x: hidden;
  background: #0A0A0F;
}

.deck-heading {
  grid-template-columns: minmax(0, 820px) auto;
}

.deck-workspace {
  grid-template-columns: minmax(320px, 0.86fr) minmax(580px, 1.4fr);
}

.deck-form {
  position: sticky;
  top: 84px;
}

.deck-workflow-card,
.deck-preset-block,
.deck-section,
.deck-mini-card,
.deck-slide-card {
  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);
}

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

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

.deck-card-header strong {
  color: #EDEDF5;
  font: 800 1rem var(--font-display);
}

.deck-card-header span {
  color: #8888A0;
  font-size: 0.8rem;
  font-weight: 800;
}

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

.deck-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;
}

.deck-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;
}

.deck-step strong {
  display: block;
  color: #B8B8CC;
  font-size: 0.9rem;
  line-height: 1.25;
}

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

.deck-step.is-active {
  border-color: rgba(225, 29, 72, 0.32);
  background: rgba(225, 29, 72, 0.06);
}

.deck-step.is-active > span {
  color: #111118;
  background: linear-gradient(135deg, #e11d48, #f59e0b);
}

.deck-step.is-done > span {
  color: #111118;
  background: #0f766e;
}

.deck-body .brief-status.is-loading .status-dot {
  animation: deck-pulse 0.9s ease-in-out infinite;
}

@keyframes deck-pulse {
  0%, 100% { transform: scale(1); opacity: 0.72; }
  50% { transform: scale(1.45); opacity: 1; }
}

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

.preset-chip {
  min-height: 34px;
  padding: 8px 11px;
  border: 1px solid rgba(225, 29, 72, 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(225, 29, 72, 0.5);
  background: rgba(225, 29, 72, 0.06);
  box-shadow: 0 8px 18px rgba(255,255,255,0.06);
  transform: translateY(-1px);
}

.deck-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;
}

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

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

.deck-company-header h3 {
  margin: 3px 0 2px;
  font: 800 1.35rem var(--font-display);
  color: #EDEDF5;
}

.deck-company-header span {
  color: #8888A0;
  font-size: 0.85rem;
}

.deck-overall-score {
  min-width: 82px;
  padding: 10px;
  border: 1px solid rgba(225, 29, 72, 0.16);
  border-radius: 8px;
  background: #fff1f2;
  text-align: center;
}

.deck-overall-score span {
  display: block;
  color: #9f1239;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

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

.deck-summary-grid,
.deck-extra-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

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

.deck-summary-grid .wide {
  grid-column: 1 / -1;
}

.deck-summary-grid strong {
  display: block;
  margin-bottom: 5px;
  color: #B8B8CC;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.deck-summary-grid p {
  margin: 0;
  color: #EDEDF5;
  line-height: 1.5;
}

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

.deck-slide-card {
  align-content: start;
  box-shadow: none;
}

.deck-slide-top {
  display: flex;
  gap: 8px;
  align-items: center;
}

.deck-slide-top span {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #0f172a;
  color: #111118;
  font-size: 0.74rem;
  font-weight: 900;
}

.deck-slide-top strong {
  color: #EDEDF5;
  font: 800 0.98rem var(--font-display);
}

.deck-slide-card ul {
  margin: 0;
  padding-left: 18px;
  color: #B8B8CC;
  font-size: 0.86rem;
  line-height: 1.45;
}

.deck-slide-card li {
  margin: 5px 0;
}

.deck-slide-note {
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.deck-slide-note strong,
.deck-mini-card h4 {
  display: block;
  margin: 0 0 5px;
  color: #B8B8CC;
  font: 800 0.76rem var(--font-display);
  text-transform: uppercase;
}

.deck-slide-note p {
  margin: 0;
  color: #B8B8CC;
  font-size: 0.83rem;
  line-height: 1.45;
}

.deck-tag {
  display: inline-block;
  margin: 3px 4px 3px 0;
  padding: 4px 9px;
  border: 1px solid #fecdd3;
  border-radius: 999px;
  background: #fff1f2;
  color: #9f1239;
  font-size: 0.78rem;
  font-weight: 650;
}

.deck-tag.blue {
  border-color: rgba(108,92,231,0.3);
  background: rgba(108,92,231,0.06);
  color: #A78BFA;
}

.deck-tag.green {
  border-color: rgba(52,211,153,0.3);
  background: rgba(52,211,153,0.06);
  color: #34D399;
}

.deck-tag.red {
  border-color: rgba(229,77,77,0.3);
  background: rgba(229,77,77,0.08);
  color: #F87171;
}

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

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

.deck-score-row strong {
  color: #EDEDF5;
  text-align: right;
  font-size: 0.8rem;
}

.deck-score-row div {
  grid-column: 1 / -1;
  height: 7px;
  overflow: hidden; min-width: 0;
  border-radius: 999px;
  background: #2A2A3A;
}

.deck-score-row i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #e11d48, #f59e0b);
}

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

.deck-loader-visual {
  display: grid;
  justify-items: center;
  gap: 14px;
}

.deck-loader-stack {
  position: relative;
  width: 150px;
  height: 110px;
}

.deck-loader-stack span {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.18), rgba(245, 158, 11, 0.28), rgba(255, 255, 255, 0.95));
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  animation: deck-card-float 1.6s ease-in-out infinite;
}

.deck-loader-stack span:nth-child(2) { transform: translate(9px, 7px); animation-delay: 0.08s; }
.deck-loader-stack span:nth-child(3) { transform: translate(18px, 14px); animation-delay: 0.16s; }
.deck-loader-stack span:nth-child(4) { transform: translate(27px, 21px); animation-delay: 0.24s; }
.deck-loader-stack span:nth-child(5) { transform: translate(36px, 28px); animation-delay: 0.32s; }

.deck-loader-line {
  width: min(100%, 340px);
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(225, 29, 72, 0.22), rgba(245, 158, 11, 0.7), rgba(14, 165, 233, 0.22));
  background-size: 220% 100%;
  animation: deck-shimmer 1.2s ease-in-out infinite;
}

@keyframes deck-card-float {
  0%, 100% { filter: brightness(0.96); }
  50% { filter: brightness(1.08); }
}

@keyframes deck-shimmer {
  0% { background-position: 0% 50%; opacity: 0.65; }
  50% { opacity: 1; }
  100% { background-position: 100% 50%; opacity: 0.65; }
}

.deck-loader strong {
  display: block;
  color: #EDEDF5;
  font: 800 1rem var(--font-display);
}

.deck-loader p {
  margin: 4px 0 0;
  color: #8888A0;
  font-size: 0.85rem;
}

@media (max-width: 980px) {
  .deck-workspace {
    grid-template-columns: 1fr;
  }

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

  .deck-slide-grid,
  .deck-summary-grid,
  .deck-extra-grid {
    grid-template-columns: 1fr;
  }
}


/* overflow protection */
.brief-result, .brief-output-panel, .evidence-strip { overflow-wrap: break-word; word-break: break-word; }
.brief-panel, .brief-workspace { min-width: 0; }
