/* workshop-onboarding.css */

/* Reset & Global Base (Matching site design) */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: #ffffff;
  background-image: 
    radial-gradient(ellipse 55% 40% at 95% 86%, rgba(154, 212, 223, 0.38), transparent 70%),
    radial-gradient(ellipse 45% 30% at 65% 95%, rgba(186, 230, 238, 0.28), transparent 65%),
    radial-gradient(ellipse 35% 25% at 10% 90%, rgba(204, 240, 245, 0.18), transparent 60%);
  background-repeat: no-repeat;
  background-attachment: fixed; /* Keeps background anchored during scroll */
  color: #1a1a1a;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto; /* Allows smooth scrolling if the screen is too small */
}

/* Full Viewport Scaffolding */
.wizard-viewport {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.75rem 2rem 2.5rem 2rem;
  justify-content: flex-start;
  gap: 1.5rem;
}

/* Top Header Navigation & Progress Bar */
.wizard-header {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.header-nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-header {
  background: none;
  border: none;
  font-family: inherit;
  Font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: #00192f;
  align-items: center;
}

.nav-control-btn {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: #71717a;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s ease;
  display: inline-flex;
  align-items: center;
}
.nav-control-btn:hover { color: #09090b; }

/* Thickened Progress Track with Embedded Step Number */
.progress-track {
  width: 100%;
  height: 14px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 99px;
  position: relative;
  overflow: hidden;
}

.progress-bar {
  width: 20%;
  height: 100%;
  background: linear-gradient(270deg, rgba(61, 177, 249, 0.35) 0%, rgba(164, 236, 250, 0.05) 100%) !important;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 6px;
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.progress-pill-num {
  font-size: 0.62rem;
  font-weight: 700;
  color: #005663;
  line-height: 1;
  padding-right: 5px;
}

/* Wizard Centering Container */
.wizard-container {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 0;
  padding-top: 0.5rem;
  overflow: visible; /* Prevents nested clipping */
}

/* Wizard Steps */
.wizard-step {
  display: none;
  width: 100%;
  animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.wizard-step.active {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.step-intro {
  text-align: center;
  margin-bottom: 0.5rem;
}

.step-title {
  font-size: 2rem;
  font-weight: 700;
  color: #09090b;
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.stepfour-title {
  font-size: 2rem;
  font-weight: 700;
  color: #09090b;
  letter-spacing: -0.025em;
  margin-top: 2.4rem;
  margin-bottom: 1rem;
  line-height: 1.25;
}


.domain-title {
  font-size: 1.85rem;
  font-weight: 700;
  color: #09090b;
  letter-spacing: -0.025em;
  line-height: 1.2;
  padding-bottom: 0.35rem;
}

.sector-title {
  font-size: 2rem;
  font-weight: 500;
  color: #09090b;
  letter-spacing: -0.025em;
  line-height: 1.25;
  padding-bottom: 16px;
}

.step-sub {
  font-size: 0.95rem;
  color: #71717a;
  margin-top: 0.2rem;
  padding: 0;
}

/* --- STEP 1: 4 Extended Gateway Cards --- */
.sector-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
}

.gateway-card {
  position: relative;
  height: 400px; /* Extended vertical height */
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px 24px;
  background-color: #1c1c1f;
  isolation: isolate;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.9s ease;
}

.gateway-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.18);
}

/* Distinct Tonal Backgrounds */
.card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}
.card-social .card-bg { background-image: url(social.jpg) }
.card-art .card-bg { background-image: url(art.jpg) }
.card-virtual .card-bg { background-image: url(engineering.jpg)}
.card-business .card-bg { background-image: url(finance.jpg) }

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.0) 0%, rgba(0, 0, 0, 0.35) 45%, rgba(0, 0, 0, 0.88) 100%);
  z-index: 2;
  transition: background 0.6s ease;
}

.card-content {
  position: relative;
  z-index: 3;
  color: #ffffff;
  display: flex;
  flex-direction: column;
}

/* Reveal Mechanism Matching Homepage */
.card-tag {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #ffffff;
  margin-bottom: 6px;
  opacity: 0;
  transform: translate(-12px, 8px);
  clip-path: polygon(0 0, 0 0, 0 100%, 0% 100%);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              clip-path 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gateway-card:hover .card-tag {
  opacity: 1;
  transform: translate(0, 0);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.card-title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #ffffff;
}

.card-reveal {
  font-size: 0.88rem;
  line-height: 1.45;
  color: #e5e7eb;
  margin-top: 8px;
  transform: translateY(16px);
  transition: max-height 1.6s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-reveal p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #e5e7eb;
  margin-top: 10px;
}

.gateway-card:hover .card-bg { transform: scale(1.06); }
.gateway-card:hover .card-reveal {
  max-height: 150px;
  opacity: 1;
  transform: translateY(0);
}

/* --- STEP 2: Domain Deck & Pill Buttons --- */
.subdomain-deck {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 1080px;
  margin: 0 auto;
  width: 100%;
}

.domain-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

.domain-pill {
  background: #ffffff;
  color: #18181b;
  border: 1px solid rgba(0, 0, 0, 0.12);
  padding: 0.75rem 1.4rem;
  border-radius: 99px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
  transition: all 0.2s ease;
}

.domain-pill:hover {
  background: #2fbeb2;
  color: #ffffff;
  border-color: #1d7a72;
  transform: translateY(-2px);
}

.domain-desc-box {
  background: transparent;
  border: 1px dashed rgba(0, 0, 0, 0.15);
  border-radius: 10px;
  padding: 0.85rem 1.25rem;
  text-align: center;
  font-size: 0.88rem;
  color: #52525b;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-domain-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.custom-domain-row label {
  font-size: 0.85rem;
  color: #71717a;
}

.custom-input-wrapper {
  display: flex;
  gap: 0.5rem;
}

.custom-input-wrapper input {
  flex: 1;
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}
.custom-input-wrapper input:focus { border-color: #18181b; }

.btn-input-arrow {
  background: #18181b;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 0 1.25rem;
  font-size: 1.1rem;
  cursor: pointer;
  transition: opacity 0.2s;
}
.btn-input-arrow:hover { opacity: 0.85; }

/* --- STEP 3: Stage Grid --- */
.stage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
  padding-top: 20px;
}

.stage-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 14px;
  padding: 2rem 1.5rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  transition: all 0.25s ease;
}

.stage-card:hover {
  border-color: #18181b;
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -6px rgba(0,0,0,0.08);
}

.stage-card h3 {
  font-size: 1.4rem;
  color: #09090b;
}

.stage-card p {
  font-size: 0.9rem;
  color: #52525b;
  line-height: 1.5;
  flex-grow: 1;
}

/* --- STEP 4: Name & Metadata Form --- */
.form-pane {
  max-width: 500px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.input-block {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.input-block label {
  font-size: 0.88rem;
  font-weight: 500;
  color: #27272a;
}

.toggle-control {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}
.toggle-control input { display: none; }
.toggle-slider {
  width: 36px;
  height: 20px;
  background: #e4e4e7;
  border-radius: 99px;
  position: relative;
  transition: 0.2s;
}
.toggle-slider::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  background: white;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: 0.2s;
}
.toggle-control input:checked + .toggle-slider { background: #18181b; }
.toggle-control input:checked + .toggle-slider::after { transform: translateX(16px); }
.toggle-label { font-size: 0.9rem; color: #52525b; }

.info-callout {
  background: #fafafa;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  padding: 0.85rem 1rem;
}
.info-callout p {
  font-size: 0.82rem;
  line-height: 1.45;
  color: #71717a;
}

/* --- STEP 5: Visual Upload & Pitch --- */
.hook-split-pane {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.75rem;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
}

.upload-dropzone {
  position: relative;
  background: #fafafa;
  border: 2px dashed rgba(0, 0, 0, 0.15);
  border-radius: 14px;
  padding: 1.5rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  min-height: 240px;
  transition: border-color 0.2s;
}
.upload-dropzone:hover { border-color: #18181b; }

.file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-icon { font-size: 2.2rem; margin-bottom: 0.4rem; }
.upload-headline { font-size: 0.92rem; font-weight: 600; color: #18181b; }
.upload-subtext { font-size: 0.78rem; color: #71717a; margin-top: 0.25rem; }

.pitch-form-block textarea {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  color: #1a1a1a;
  outline: none;
  resize: none;
  overflow: hidden;
  height: auto;       /* Replaces height: 130px */
  min-height: 52px;   /* Exact height match with projectName input */
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pitch-form-block label {
  font-size: 0.88rem;
  font-weight: 500;
  color: #27272a;
}

.pitch-form-block textarea {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.5;
  resize: none;
  height: 130px;
  outline: none;
  transition: border-color 0.2s;
}

.pitch-form-block textarea:focus {
  border-color: #18181b;
  box-shadow: 0 0 0 2px rgba(24, 24, 27, 0.05);
}

.char-count {
  font-size: 0.78rem;
  color: #71717a;
  text-align: right;
}

.btn-launch-early {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #18181b;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 1.1rem 1.75rem;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
}

/* Base Button Setup */
.btn-launch.btn-confirm {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #18181b;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 1.1rem 1.75rem;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: 
    0 4px 14px rgba(0, 0, 0, 0.12),
    0 1px 2px rgba(0, 0, 0, 0.08);
  transition: 
    transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.22s ease;
}

/* Layer 1: Center-Out Radiant Core Bloom */
.btn-launch.btn-confirm::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center, 
    rgba(47, 190, 178, 0.55) 0%, 
    rgba(29, 122, 114, 0.3) 45%, 
    transparent 75%
  );
  opacity: 0;
  transform: scale(0.65);
  transition: 
    opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: -1;
  pointer-events: none;
}

/* --- Base Button --- */
.btn-launch.btn-confirm {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background-color: #18181b;
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 1.1rem 1.75rem;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: 
    0 4px 14px rgba(0, 0, 0, 0.15),
    0 1px 2px rgba(0, 0, 0, 0.1);
  /* Default: fast snap-back on mouse leave */
  transition: 
    transform 0.2s ease,
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

/* Layer 1: Center-Out Radiant Core Bloom */
.btn-launch.btn-confirm::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center, 
    rgba(47, 190, 178, 0.7) 0%, 
    rgba(29, 122, 114, 0.35) 45%, 
    transparent 75%
  );
  opacity: 0;
  transform: scale(0.65);
  transition: 
    opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: -1;
  pointer-events: none;
}

/* Layer 2: Fast Specular Diagonal Sweep */
.btn-launch.btn-confirm::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 70%;
  height: 100%;
  background: linear-gradient(
    90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.3) 50%, 
    transparent 100%
  );
  transform: skewX(-20deg);
  transition: transform 0.5s ease;
  z-index: -1;
  pointer-events: none;
}

/* --- Hover State --- */
.btn-launch.btn-confirm:hover {
  transform: translateY(-2px) scale(1.08);
  /* The delayed flip: holds black for 0.45s, then transitions over 0.3s */
  background-color: #f3fdff;
  color: #000000; /* Inverts text so it stays readable against the white edges */
  border-color: rgb(0, 125, 132);
  box-shadow: 
    0 12px 60px -4px rgba(29, 122, 114, 0.35),
    0 40px 120px rgba(0, 0, 0, 0.8);
  transition: 
    transform 1.2s ease,
    background-color 1.3s ease 0.25s,
    color 0.3s ease 0.45s,
    border-color 0.3s ease 0.45s,
    box-shadow 3.2s ease;
}

/* 1. Core blooms out immediately */
.btn-launch.btn-confirm:hover::before {
  opacity: 1;
  transform: scale(1.15);
}

/* 2. Shine sweeps across the face immediately */
.btn-launch.btn-confirm:hover::after {
  transform: translateX(350%);
}

/* --- Mechanical Click --- */
.btn-launch.btn-confirm:active {
  transform: translateY(1px) scale(0.985);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.06s ease;
}

/* --- Floating Help Trigger & Popover --- */
.help-fab-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.help-fab-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.15);
  color: #18181b;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s, background-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.help-fab-btn:hover {
  background: #18181b;
  color: #ffffff;
  transform: scale(1.05);
}

.help-popover {
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  position: absolute;
  bottom: 48px;
  right: 0;
  width: 300px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  padding: 1.1rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
  pointer-events: none;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.2s;
}

/* Open automatically on container hover */
.help-fab-container:hover .help-popover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.help-popover.active { display: block; }
.help-popover-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}
.help-popover-header h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: #09090b;
}
.help-close-btn {
  background: none;
  border: none;
  font-size: 0.8rem;
  color: #71717a;
  cursor: pointer;
}
.help-popover-body {
  font-size: 0.82rem;
  line-height: 1.45;
  color: #52525b;
}

/* --- STEP 6: Summary & Preview Card --- */
.summary-container {
  max-width: 620px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.summary-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.summary-meta-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  transition: background 0.15s;
}
.summary-meta-header:hover {
  background: #f4f4f5;
}

.summary-phase-footer {
  display: flex;
  align-items: center;
  padding: 0.4rem 0.6rem;
  margin: 0 -0.6rem;
  border-radius: 8px;
}

.summary-phase-footer:hover {
  transform: translateY(-2px);
  background: #f4f4f5;
}

.summary-badge {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #52525b;
}

.summary-edit-hint {
  font-size: 0.75rem;
  color: #a1a1aa;
}

.summary-feed-preview {
  display: flex;
  gap: 1rem;
  background: rgba(196, 233, 240, 0.212);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  padding: 1rem;
  cursor: pointer;
  transition: border-color 0.15s;
}
.summary-feed-preview:hover { border-color: #18181b; }

.summary-art-thumb {
  width: 70px;
  height: 70px;
  background: #e4e4e7;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
  overflow: hidden;
  user-select: none;
}

#summaryArtDisplay {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  line-height: 1; /* Eliminates the default font leading that pushes emojis upward */
  text-align: center;
}

#summaryArtDisplay img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  display: block;
}

.summary-art-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.summary-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.summary-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.summary-project-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #09090b;
}

.summary-project-name:hover {
  transform: translateY(-2px);
  color: #2563eb;
}

.summary-pitch-text:hover {
  transform: translateY(-2px);
  color: #09090b;
  background: rgba(0, 0, 0, 0.03);
  padding: 0.2rem 0.4rem;
  margin: -0.2rem -0.4rem;
}

.summary-art-thumb:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.working-title-tag {
  font-size: 0.68rem;
  background: #2fbeb2;
  color: #ffffff;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
}

.summary-pitch-text {
  font-size: 0.85rem;
  color: #52525b;
  line-height: 1.4;
}

.summary-phase-label {
  font-size: 0.85rem;
  color: #52525b;
}
.summary-phase-label strong {
  color: #09090b;
  text-transform: capitalize;
}

.btn-confirm { width: 100%; }

/* --- Domain Active Highlight --- */
.domain-pill.selected {
  background: #18181b;
  color: #ffffff;
  border-color: #18181b;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* --- Summary Micro-Interactive Click Targets --- */
.summary-click-target {
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), 
              color 0.18s ease, 
              background-color 0.18s ease, 
              box-shadow 0.18s ease;
  display: inline-block;
  border-radius: 6px;
}

.meta-tag {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #52525b;
  padding: 0.25rem 0.5rem;
  background: #f4f4f5;
}

.meta-divider {
  color: #a1a1aa;
  font-size: 0.8rem;
}

/* Hover Elevation & Accent Effects */
.meta-tag:hover {
  transform: translateY(-2px);
  color: #ffffff;
  background: #2fbeb2;
}

/* --- Return to Summary Dock Button --- */
.return-summary-dock {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 90;
}

.return-summary-dock.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.btn-return-summary {
  background: #18181b;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.65rem 1.4rem;
  border-radius: 99px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 24px -4px rgba(0,0,0,0.25);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn-return-summary:hover {
  transform: scale(1.04);
  opacity: 0.95;
}

/* --- Shared Navigation & Search Slot --- */
.deck-nav-search-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center; /* Centers the whole cluster when it doesn't overflow */
  gap: 0.65rem;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.deck-subnav-wrapper {
  flex: 0 1 auto;
  position: relative;
  overflow: hidden;
  max-width: 100%;
  display: flex;
}

.search-trigger-btn {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 99px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  color: #18181b;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  transition: border-color 0.2s ease, transform 0.15s ease, background-color 0.2s ease;
  user-select: none;
}

.search-trigger-btn:hover {
  border-color: #18181b;
  background: #f4f4f5;
  transform: translateY(-1px);
}

/* The Overlay Search Field that takes over the exact row */
.track-search-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #ffffff;
  border: 1px solid #18181b;
  border-radius: 99px;
  padding: 0 1rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  z-index: 10;
}

.track-search-icon {
  font-size: 0.9rem;
  opacity: 0.6;
}

.track-search-input {
  flex: 1;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 0.92rem;
  color: #18181b;
  outline: none;
}

.track-search-close {
  background: none;
  border: none;
  font-size: 0.95rem;
  color: #71717a;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  border-radius: 50%;
  transition: color 0.15s ease;
}

.track-search-close:hover {
  color: #ef4444;
}

.deck-subnav {
  display: inline-flex;
  gap: 0.6rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 4px;
  justify-content: center; /* Center-align pills inside track */
  
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.deck-subnav::-webkit-scrollbar {
  display: none;
}

/* Applied dynamically ONLY when the pills actually overflow the container */
.deck-subnav-wrapper.has-overflow {
  flex: 1;
  min-width: 0;
  -webkit-mask-image: linear-gradient(
    to right, 
    transparent 0%, 
    black 24px, 
    black calc(100% - 24px), 
    transparent 100%
  );
  mask-image: linear-gradient(
    to right, 
    transparent 0%, 
    black 24px, 
    black calc(100% - 24px), 
    transparent 100%
  );
}

.deck-subnav-wrapper.has-overflow .deck-subnav {
  padding: 4px 28px;
  justify-content: flex-start; /* Left-align track once it needs scrolling */
}

.domain-nav-btn {
  background: #ffffff;
  color: #18181b;
  border: 1px solid rgba(0, 0, 0, 0.12);
  padding: 0.65rem 1.25rem;
  border-radius: 99px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
  user-select: none;
}

.domain-nav-btn:hover {
  border-color: #18181b;
  transform: translateY(-1px);
}

.domain-nav-btn.active-domain {
  background: #f4f4f5;
  border-color: #18181b;
  color: #09090b;
  font-weight: 600;
}

.domain-nav-btn.whole-selected {
  background: #1d7a72 !important;
  border-color: #1d7a72 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(29, 122, 114, 0.25);
}

/* Integrated Search Input */
.search-filter-row {
  width: 100%;
  max-width: 480px;
  margin: 0.25rem auto 0 auto;
}

.search-filter-input {
  width: 100%;
  padding: 0.65rem 1rem;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 99px;
  color: #18181b;
  font-family: inherit;
  font-size: 0.88rem;
  text-align: center;
  outline: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-filter-input:focus {
  border-color: #18181b;
  box-shadow: 0 0 0 2px rgba(24, 24, 27, 0.08);
}

/* Specialisms Container */
.specialisms-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  max-height: 200px;
  overflow-y: auto;
  padding: 4px;
  justify-content: center;
}

.spec-pill {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  color: #27272a;
  padding: 0.55rem 1.15rem;
  border-radius: 99px;
  font-family: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: all 0.15s ease;
  user-select: none;
}

.spec-pill:hover {
  background: #2fbeb2;
  color: #ffffff;
  border-color: #1d7a72;
  transform: translateY(-1px);
}

.spec-pill.selected {
  background: #1d7a72 !important;
  border-color: #1d7a72 !important;
  color: #ffffff !important;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(29, 122, 114, 0.25);
}

.spec-pill.disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
  background: #f4f4f5;
  border-color: transparent;
}

/* Selected Items Tray at bottom */
.selection-stimulus-tray {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.tray-pills-list {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.tray-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f4f4f5;
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #18181b;
  padding: 0.35rem 0.75rem;
  border-radius: 99px;
  font-size: 0.82rem;
  font-weight: 500;
}

.tray-pill-remove {
  cursor: pointer;
  color: #71717a;
  font-size: 0.85rem;
  margin-left: 2px;
  line-height: 1;
}

.tray-pill-remove:hover {
  color: #ef4444;
}

.btn-stage2-continue {
  background: #18181b;
  color: #ffffff;
  border: none;
  padding: 0.55rem 1.35rem;
  border-radius: 99px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  transition: all 0.2s ease;
  display: none;
  white-space: nowrap;
  animation: fadeIn 0.2s ease forwards;
}

.btn-stage2-continue.visible {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-stage2-continue:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.selection-dock {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  margin-top: 0.75rem;
}

.tray-pills-row {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
}

.tray-pill-empty {
  border: 1.5px dashed rgba(0, 0, 0, 0.2);
  color: #71717a;
  padding: 0.55rem 1.3rem;
  border-radius: 99px;
  font-size: 0.86rem;
  font-weight: 500;
  background: transparent;
  user-select: none;
}

.tray-pill-active {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1d7a72;
  color: #ffffff;
  padding: 0.55rem 1.15rem;
  border-radius: 99px;
  font-size: 0.86rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.tray-pill-active:hover {
  background: #ef4444;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

.tray-pill-active .tray-remove-icon {
  font-size: 0.75rem;
  opacity: 0.75;
}

.tray-pill-active:hover .tray-remove-icon {
  opacity: 1;
}

.tray-badge-whole {
  font-size: 0.65rem;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* --- Intelligent Suggestions Bar (Stage 3) --- */
.suggestion-pill {
  border-color: rgba(47, 190, 178, 0.4);
  background: #ffffff;
  font-size: 0.82rem;
  padding: 0.4rem 0.85rem
}

.suggestion-pill:hover {
  background: #2fbeb2;
  color: #ffffff;
}

/* --- State 1: Suggestions Modal / Banner Mode --- */
.suggestions-view-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  max-width: 720px;
  margin: 1.5rem auto 0 auto;
  text-align: center;
  animation: fadeIn 0.25s ease forwards;
}

.suggestions-view-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: #18181b;
}

.suggestions-view-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

.btn-dismiss-suggestions {
  background: transparent;
  border: none;
  color: #71717a;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.15s ease;
  margin-top: 0.5rem;
}

.btn-dismiss-suggestions:hover {
  color: #18181b;
}

/* --- State 2: Subtle In-Catalog Highlight --- */
/* Matches the suggested pill border: rgba(47, 190, 178, 0.4) */
.spec-pill.matched-suggested {
  border-color: rgba(47, 190, 178, 0.7);
  box-shadow: 0 0 0 1px rgba(47, 190, 178, 0.2);
  position: relative;
  padding-left: 2rem; /* make modest space for the spark */
}

/* Subtle sparkle placed into the left padding without taking extra space */
.spec-pill.matched-suggested::before {
  content: '✨';
  position: absolute;
  left: 0.65rem;
  top: 50%;
  transform: translateY(-55%);
  font-size: 0.75rem;
  opacity: 0.85;
}

/* Header Right Actions Group */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* Subtle, in-line Return to Summary Button */
.return-header-btn {
  background: rgba(24, 24, 27, 0.05);
  border: 1px solid rgba(24, 24, 27, 0.12);
  padding: 0.35rem 0.85rem;
  border-radius: 99px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #18181b;
  cursor: pointer;
  transition: all 0.15s ease;
}

.return-header-btn:hover {
  background: #18181b;
  color: #ffffff;
  border-color: #18181b;
}

/* Inline Editable Fields on Summary Card */
.editable-field {
  cursor: text;
  border-radius: 4px;
  padding: 2px 4px;
  margin: -2px -4px;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.editable-field:hover {
  background: rgba(0, 0, 0, 0.05);
}

.summary-inline-input {
  width: 100%;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  color: #09090b;
  background: #ffffff;
  border: 1px solid #18181b;
  border-radius: 6px;
  padding: 4px 8px;
  outline: none;
  box-shadow: 0 0 0 2px rgba(24, 24, 27, 0.08);
}

/* Phase Badge in Top Right of Card */
.summary-phase-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: #52525b;
  cursor: pointer;
  padding: 0.25rem 0.6rem;
  border-radius: 99px;
  background: #f4f4f5;
  transition: all 0.15s ease;
}

.summary-phase-badge:hover {
  background: #2fbeb2;
  color: #ffffff;
}

/* Footer Tag Badges Row */
.summary-tags-footer {
  display: flex;
  align-items: center;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  cursor: pointer;
}

.summary-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

/* Styled identical to Step 3 active pills, but sized neatly for the card */
.summary-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1d7a72;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.35rem 0.85rem;
  border-radius: 99px;
  box-shadow: 0 2px 6px rgba(29, 122, 114, 0.2);
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.18s ease;
  user-select: none;
}

/* 2px hover jump matching other card elements */
.summary-tag-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(29, 122, 114, 0.35);
}

/* Stacked pill layout for search results */
.spec-pill.search-result-pill {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.15rem;
  line-height: 1.25;
  text-align: center;
  min-height: 52px;
}

.pill-head-element {
  font-size: 0.72rem;
  opacity: 0.65;
  margin-top: 2px;
  font-weight: 400;
}

/* Faded Out Cross-Sector Discovery Box */
.cross-sector-discovery {
  margin-top: 0.75rem;
  padding: 0.65rem 1rem;
  background: rgba(24, 24, 27, 0.025);
  border: 1px dashed rgba(24, 24, 27, 0.15);
  border-radius: 10px;
  text-align: center;
  animation: fadeIn 0.25s ease forwards;
}

.cross-sector-msg {
  font-size: 0.78rem;
  color: #71717a;
  margin-bottom: 0.4rem;
}

.cross-sector-rows {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  align-items: center;
}

.cross-sector-row-item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cross-sector-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}

.btn-switch-sector-compact {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ffffff;
  border: 1px solid rgba(24, 24, 27, 0.2);
  color: #18181b;
  padding: 0.25rem 0.65rem;
  border-radius: 99px;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.btn-switch-sector-compact:hover {
  background: #18181b;
  color: #ffffff;
  border-color: #18181b;
}

.cross-sector-preview-pills {
  display: inline-flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  align-items: center;
}

/* Hoverable preview pills with -2px micro-lift */
.cross-preview-pill {
  font-size: 0.72rem;
  color: #27272a;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  padding: 0.2rem 0.55rem;
  border-radius: 99px;
  cursor: pointer;
  user-select: none;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), 
              background-color 0.15s ease, 
              border-color 0.15s ease,
              color 0.15s ease;
}

.cross-preview-pill:hover {
  transform: translateY(-2px);
  background: #18181b;
  color: #ffffff;
  border-color: #18181b;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}