/* Shadow Pitch Mode — small forked overrides on top of shadow-interview.css.
   Keep the visual language identical: dark KouLi stage, quiet mist, thin
   labels, rounded metallic cards. */

.shadow-pitch-page .shadow-pitch-choice-list {
  gap: 14px;
}

.shadow-pitch-page .kouli-ingest,
.shadow-pitch-page .kouli-ready,
.shadow-pitch-page .kouli-live {
  padding-bottom: max(132px, calc(96px + env(safe-area-inset-bottom)));
}

.shadow-pitch-page .kouli-interview-type-card {
  text-align: left;
  /* Leave room on the right for the selected-state badge. */
  padding-right: 50px;
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease;
}

/* Unselected cards get a quiet circular slot in the top-right so the layout
   does not jump when the filled checkmark appears on selection. */
.shadow-pitch-page .kouli-interview-type-card::after {
  content: "";
  position: absolute;
  top: 14px;
  right: 14px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1.6px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  transform: scale(0.7);
  opacity: 0.55;
  transition: opacity 0.16s ease, transform 0.16s ease, background 0.16s ease;
  pointer-events: none;
}

.shadow-pitch-page .kouli-interview-type-card.is-selected,
.shadow-pitch-page .kouli-interview-type-card[aria-checked="true"] {
  border-color: rgba(255, 255, 255, 0.85);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.05);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.85),
    0 12px 34px rgba(0, 0, 0, 0.32);
  transform: translateY(-2px);
}

/* Filled checkmark badge — neutral; teal stays on the Next CTA. */
.shadow-pitch-page .kouli-interview-type-card.is-selected::after,
.shadow-pitch-page .kouli-interview-type-card[aria-checked="true"]::after {
  content: "✓";
  color: rgba(12, 19, 24, 0.92);
  border-color: transparent;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
  opacity: 1;
  transform: scale(1);
}

.shadow-pitch-page .kouli-interview-type-card.is-selected .kouli-interview-type-name,
.shadow-pitch-page .kouli-interview-type-card[aria-checked="true"] .kouli-interview-type-name {
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .shadow-pitch-page .kouli-interview-type-card,
  .shadow-pitch-page .kouli-interview-type-card::after {
    transition: none;
  }
}

.shadow-pitch-page .kouli-interview-type-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  letter-spacing: 0.08em;
  font-weight: 700;
}

/* Shadow Pitch setup — grey/blue overhead canvas (matches interview shadow). */
body.kouli-ingest-active:has(.shadow-pitch-page) {
  background:
    radial-gradient(circle at 50% 6%, rgba(122, 153, 171, 0.22), transparent 46%),
    radial-gradient(circle at 82% 34%, rgba(74, 93, 110, 0.16), transparent 36%),
    radial-gradient(circle at 14% 74%, rgba(74, 93, 110, 0.12), transparent 44%),
    linear-gradient(180deg, #07070d 0%, #08070f 50%, #040407 100%) !important;
  background-color: #07070d !important;
}

.shadow-pitch-page .shadow-pitch-dragon-icon {
  color: rgba(255, 255, 255, 0.78);
  text-shadow: none;
}

/* "Optional" affordances on the notes step. */
.shadow-pitch-page .shadow-pitch-optional-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  vertical-align: middle;
}

.shadow-pitch-page .shadow-pitch-optional-inline {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
  font-size: 0.78em;
  letter-spacing: 0;
}

.shadow-pitch-page #pitch-skip-notes-button {
  margin-top: 12px;
}

.shadow-pitch-stage-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.shadow-pitch-stage-list .kouli-interview-type-card {
  min-height: 112px;
}

.shadow-pitch-delivery .kouli-live-question {
  margin-bottom: 20px;
}

/* Discrete recording badge — centred in the delivery top bar while the mic is hot. */
.shadow-pitch-delivery-topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 8px;
}

.shadow-pitch-delivery-topbar .kouli-live-wordmark {
  justify-self: start;
}

.shadow-pitch-delivery-topbar .kouli-live-end {
  justify-self: end;
}

.shadow-pitch-recording-indicator {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 5px 11px 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  pointer-events: none;
}

.shadow-pitch-recording-indicator.hidden {
  display: none;
}

.shadow-pitch-recording-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #C0392B;
  box-shadow: 0 0 8px rgba(192, 57, 43, 0.5);
  animation: shadowPitchRecPulse 1.4s ease-in-out infinite;
}

@keyframes shadowPitchRecPulse {
  0%, 100% { opacity: 0.55; transform: scale(0.92); }
  50% { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .shadow-pitch-recording-dot {
    animation: none;
    opacity: 0.9;
  }
}

.shadow-pitch-countdown-stage {
  min-height: 240px;
}

.shadow-pitch-clock {
  position: relative;
  z-index: 2;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(44px, 11vw, 92px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 34px rgba(122, 153, 171, 0.18);
}

.shadow-pitch-delivery-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 20px auto 0;
  width: min(520px, calc(100% - 32px));
}

.shadow-pitch-delivery-actions .kouli-ingest-secondary[disabled],
.shadow-pitch-delivery-actions .kouli-ingest-primary[disabled] {
  opacity: 0.42;
  pointer-events: none;
}

.shadow-pitch-page .plan-list li .plan-question {
  color: rgba(255, 255, 255, 0.92);
}

.shadow-pitch-page .plan-list li .plan-meta {
  color: rgba(255, 255, 255, 0.5);
}

.shadow-pitch-page .panel-member.is-dragon {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

.shadow-pitch-page .live-debug-transcript {
  margin-top: 18px;
}

.shadow-pitch-deck-upload {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.shadow-pitch-deck-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.82);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 650;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.shadow-pitch-deck-button:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.34);
}

.shadow-pitch-deck-button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.shadow-pitch-deck-button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.shadow-pitch-deck-status {
  font-size: 0.82rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.58);
  min-height: 1em;
}

.shadow-pitch-deck-status.is-error {
  color: rgba(254, 202, 202, 0.95);
}

.shadow-pitch-lens-bars {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.shadow-pitch-delivery-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.shadow-pitch-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-align: center;
}

.shadow-pitch-stat-value {
  font-size: 1.18rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.94);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.shadow-pitch-stat-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.shadow-pitch-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

/* No fixed floor: the flip-card height-sync (wirePitchFlipCard) sizes each card
   to its currently visible face, so a succinct front no longer reserves a big
   block of empty space at the bottom of the card. */
.shadow-pitch-card-grid .kouli-coach-card {
  min-height: 0;
}

.shadow-pitch-card-grid .shadow-flip-card.is-flipped .shadow-flip-card-inner {
  transform: rotateY(180deg);
}

.shadow-pitch-card-grid .shadow-flip-card-front p,
.shadow-pitch-card-grid .shadow-flip-card-back p {
  margin: 0;
}

.shadow-pitch-card-evidence {
  margin: 12px 0 0;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  line-height: 1.5;
}

.shadow-pitch-card-detail {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 1.55;
}

.shadow-pitch-takeaway {
  margin-top: 12px !important;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

@media (min-width: 760px) {
  .shadow-pitch-delivery-actions {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .shadow-pitch-stage-list {
    grid-template-columns: 1fr;
  }

  .shadow-pitch-countdown-stage {
    min-height: 220px;
  }
}
