/* =========================================
   SOMATIC GROUNDING — Tool Styles
   ========================================= */

.stage-title {
  font-weight: 700;
  font-size: 1.6rem;
  color: #fff3e8;
  text-align: center;
  text-transform: uppercase;
  margin: 0 0 8px 0;
  letter-spacing: 1px;
}
.stage-desc {
  font-family: 'Noto Sans', sans-serif;
  font-weight: 200;
  font-size: 0.95rem;
  color: #c8b09a;
  text-align: center;
  line-height: 1.55;
  margin: 0 0 28px 0;
}

#breathStartBtn {
    display: block;
    margin: 28px auto 0 auto;   
    text-align: center;
}

/* =========================================
   BODY SCAN VISUAL (Stage 1)
   ========================================= */

.body-part {
  fill: rgba(110, 70, 200, 0.35);        
  stroke: rgba(140, 100, 230, 0.55);     
  stroke-width: 1;
  cursor: pointer;
  transition: fill 0.3s ease, stroke 0.3s ease, filter 0.3s ease;
}

/* HOVER STATE — stronger highlight */
.body-part:hover {
  fill: rgba(140, 100, 230, 0.45);       
  stroke: rgba(200, 170, 255, 0.75);     
}

/* ACTIVE / SELECTED ZONE — bold + glowing */
.body-part.active-zone {
  fill: rgba(140, 100, 230, 0.65);      
  stroke: rgba(220, 190, 255, 0.95);    
  stroke-width: 2;
  filter: drop-shadow(0 0 10px rgba(200, 170, 255, 0.7));
}


/* FIX: Make Stage 1 interactive again */
.stage.active {
  pointer-events: auto;
}

/* FIX: Ensure SVG receives clicks */
.body-silhouette,
.body-svg,
.body-part {
  pointer-events: auto;
  cursor: pointer;
  touch-action: manipulation;
}

/* Smaller body figure */
.body-silhouette {
  width: 170px;
  margin: 0 auto 10px auto;
}

.body-svg {
  width: 100%;
  height: auto;
  display: block;
}

/* =========================================
   ANCHOR CARDS (Stage 2)
   ========================================= */

.anchor-card.tool-btn {
    width: 100%;
    max-width: 120px; 
    min-height: 70px;
    padding: 16px 12px;
    background: #171126 !important;
    border: 1px solid #35284f !important;
    border-radius: 14px;
    color: #eee9f7 !important;
    font-size: 0.95rem;
    font-weight: 400;
    cursor: pointer;
    box-shadow: none !important;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}
.anchor-card.tool-btn.selected {
    background: #291b42 !important;
    border-color: #8a63b5 !important;
    color: #ffffff !important;
    box-shadow: 0 0 0 1px rgba(138, 99, 181, 0.25) !important;
}

.anchor-cards {
    display: grid;
    grid-template-columns: repeat(4, auto); 
    gap: 14px;
    justify-content: center;
    margin-bottom: 24px;
}



@media (max-width: 600px) {
    .anchor-cards {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .anchor-card.tool-btn {
        min-height: 64px;
        font-size: 0.88rem;
        padding: 14px 8px;
    }

    .anchor-card.tool-btn.selected {
        background: #291b42 !important;
        border-color: #8a63b5 !important;
        color: #ffffff !important;
        box-shadow: 0 0 0 1px rgba(138, 99, 181, 0.25) !important;
    }
}

/* =========================================================
   BREATH (Stage 3)
   ========================================================= */

/* Next button */

#breathNextBtn {
    display: block;
    margin: 12px auto 0;
}


/* =========================================
   EXPAND PROMPTS (Stage 4)
   ========================================= */
.expand-prompts {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
}
.expand-prompt {
  border: 1px solid rgba(180, 150, 120, 0.2);
  border-radius: 16px;
  background: rgba(14, 8, 4, 0.5);
  padding: 20px 24px;
  margin-bottom: 14px;
  min-height: 60px;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}
.expand-question {
  font-size: 1rem;
  color: #e8d8c8;
  text-align: center;
  font-weight: 300;
  line-height: 1.5;
  margin: 0;
}
.expand-next-btn {
  background: rgba(80, 50, 30, 0.5);
  border: 1px solid rgba(180, 150, 120, 0.3);
  border-radius: 20px;
  color: #d8c4b4;
  font-family: 'Noto Sans', sans-serif;
  font-weight: 300;
  font-size: 0.85rem;
  padding: 8px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 20px;
}
.expand-next-btn:hover {
  border-color: rgba(210, 170, 130, 0.5);
  background: rgba(100, 60, 35, 0.5);
}
/* =========================================
   RE-ORIENT TASKS (Stage 5)
   ========================================= */
.reorient-tasks {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 24px;
}
.reorient-task {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.reorient-number {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  border: 1px solid rgba(180, 150, 120, 0.3);
  background: rgba(14, 8, 4, 0.6);
  color: #c4a882;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  margin-top: 2px;
}
.reorient-content {
  flex: 1;
}
.reorient-content p {
  margin: 0 0 8px 0;
  color: #d8c4b4;
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.45;
}
.reorient-textarea {
  font-size: 0.88rem;
  padding: 12px 14px;
  border-radius: 12px;
}
/* =========================================
   COMPLETION
   ========================================= */
.completion-message {
  text-align: center;
  padding: 20px;
  margin-bottom: 10px;
}
.completion-message h3 {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff3e8;
  margin: 10px 0 6px 0;
  text-transform: uppercase;
}
.completion-message p {
  font-size: 0.9rem;
  color: #c8b09a;
  font-weight: 200;
}
.completion-icon {
  font-size: 1.6rem;
  color: #c4a882;
}
.completion-final {
  text-align: center;
}
.completion-final-icon {
  font-size: 2.5rem;
  margin-bottom: 10px;
}
.completion-summary {
  margin-top: 20px;
  padding: 18px 20px;
  border: 1px solid rgba(180, 150, 120, 0.15);
  border-radius: 14px;
  background: rgba(14, 8, 4, 0.5);
  text-align: left;
}
.summary-item {
  margin-bottom: 12px;
}
.summary-label {
  font-size: 0.8rem;
  color: #9e8471;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 3px;
}
.summary-value {
  font-size: 0.92rem;
  color: #e8d8c8;
  font-weight: 300;
  line-height: 1.4;
}

/* =========================================
   SOMATIC GROUNDING — TEXTAREAS
   ========================================= */
.dark-textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  min-height: 90px;
  margin: 8px 0 20px 0;
  padding: 12px 14px;

  background: #0a0a0c !important;   
  color: #f2f2f2 !important;

  border: 1px solid #2a2d32;        
  border-radius: 10px;

  font-family: 'Noto Sans', sans-serif;
  font-size: 0.95rem;
  line-height: 1.5;
  resize: vertical;
  outline: none;
}

.dark-textarea:focus {
  border-color: #1fbf85;            
}

.dark-textarea::placeholder {
  color: #6f7775;                   
  opacity: 1;
}


/* =========================================
   EXPLANATION SECTION
   ========================================= */
.explanation-section {
  margin-top: 80px;
}
/* =========================================
   ANIMATIONS
   ========================================= */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 8px rgba(210, 170, 130, 0.2); }
  50%      { box-shadow: 0 0 20px rgba(210, 170, 130, 0.45); }
}



.tool-stage {
  display: none;
}

.tool-stage.active {
  display: block;
}



/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 600px) {
  .stage {
    padding: 24px 20px;
    margin: 0 -10px;
  }
  .anchor-cards {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .breath-circle {
    width: 120px;
    height: 120px;
  }
  .body-silhouette {
    width: 150px;
  }
  .stage-actions {
    flex-direction: row;
    justify-content: space-between;
  }
  .reorient-task {
    gap: 10px;
  }


}

/* =========================================
   STAGE 5 — RE-ORIENT CARDS
========================================= */

.reorient-tasks {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 28px 0;
}

.reorient-card {
    position: relative;
    box-sizing: border-box;
    min-width: 0;
    padding: 24px 14px;
    text-align: center;
    background: #171126;
    border: 1px solid #35284f;
    border-radius: 16px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.reorient-card:hover {
    transform: translateY(-3px);
    border-color: #8a63b5;
}

.reorient-card .reorient-number {
    width: 30px;
    height: 30px;
    min-width: 30px;
    margin: 0 auto 14px;
    color: #c4a5ff;
    background: rgba(138, 99, 181, 0.12);
    border: 1px solid #594078;
    border-radius: 50%;
    font-size: 0.8rem;
}

.reorient-visual {
    margin-bottom: 12px;
    font-size: 2rem;
    line-height: 1.2;
}

.reorient-card h3 {
    margin: 0 0 10px;
    color: #34d399;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.reorient-card p {
    margin: 0;
    color: #d8c4e8;
    font-size: 0.88rem;
    font-weight: 300;
    line-height: 1.6;
}

.reorient-card p strong {
    color: #ffffff;
    font-weight: 700;
}

#stage5 [data-complete] {
    display: block;
    margin: 0 auto;
}

#stage5 .completion-message {
    text-align: center;
}

#stage5 .completion-cta {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 12px;
    margin-top: 24px;
}

#stage5 .completion-cta .tool-btn {
    flex: 1;
    max-width: 260px;
    margin: 0;
}

@media (max-width: 600px) {
    .reorient-tasks {
        gap: 8px;
    }

    .reorient-card {
        padding: 18px 8px;
        border-radius: 12px;
    }

    .reorient-visual {
        font-size: 1.6rem;
    }

    .reorient-card h3 {
        font-size: 0.82rem;
        letter-spacing: 0.5px;
    }

    .reorient-card p {
        font-size: 0.78rem;
        line-height: 1.45;
    }

    #stage5 .completion-cta {
        gap: 8px;
    }

    #stage5 .completion-cta .tool-btn {
        padding: 12px 8px;
        font-size: 0.82rem;
    }
}
