/* ═══════════════════════════════════════════════════════════
  cognavis — creative-practice.css
  Creative Practice: Make. Mark. Move. Sound.
  Anchor 04 — Creative Freedom · My Journey tool
  Interactive tool page — page-specific styles only.
  Extends global.css + overstimulation.css (shared tool-page
  styles: hero, step bar, stages, buttons, chips, fields,
  summary, download, safe note).
  Colours only via global.css tokens.
  Burgundy: one key emphasis per page only.
  Version 1.0 | October 2026
═══════════════════════════════════════════════════════════ */

/* ─── HERO MODIFIER ────────────────────────────────────── */
.cp-hero { padding-bottom: 80px; }

.cp-hero-icon {
  margin: 0 auto 28px;
  width: 80px;
  height: 80px;
}
.cp-hero-icon .anchor-icon-badge {
  width: 80px;
  height: 80px;
  border-radius: var(--r-lg);
  background: rgba(233, 239, 243, 0.10);
  border: 1px solid rgba(148, 177, 200, 0.22);
}
/* Flip icon colours for dark hero background */
.cp-hero-icon.dark-ctx .anchor-icon-badge svg circle[fill="#493B37"] { fill: #EDEADD !important; }
.cp-hero-icon.dark-ctx .anchor-icon-badge svg circle { stroke: #EDEADD !important; }
.cp-hero-icon.dark-ctx .anchor-icon-badge svg circle[fill="#493B37"] { stroke: none !important; }

.cp-hero-heading { font-weight: 700; }

/* ─── OPENING BELIEFS ──────────────────────────────────── */
.cp-opening {
  padding: 52px 32px 40px;
}
.cp-opening-quote { margin-top: 0; }
.cp-beliefs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}
.cp-belief {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--linen);
  border: 1px solid var(--cocoa-10);
  border-radius: var(--r);
  padding: 20px 22px;
}
.cp-belief-num {
  font-size: 22px;
  font-weight: 300;
  color: var(--burgundy);
  flex-shrink: 0;
  line-height: 1;
  padding-top: 2px;
}
.cp-belief p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--cocoa-60);
  margin: 0;
}

/* ─── TEXTAREA ─────────────────────────────────────────── */
/* Shared with sacral-check-in.css pattern; scoped here */
.cp-textarea {
  width: 100%;
  margin-top: 10px;
  font-family: 'Nunito', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--cocoa);
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--cocoa-20);
  padding: 6px 0 8px;
  resize: vertical;
  outline: none;
  transition: border-color var(--t);
}
.cp-textarea::placeholder { color: var(--cocoa-20); font-style: italic; }
.cp-textarea:focus { border-bottom-color: var(--slate); }

/* ─── INSIGHT BAND (phase 1 feedback) ─────────────────── */
.cp-insight:empty { display: none; }
.cp-insight {
  background: var(--cocoa);
  color: var(--linen-light);
  border-radius: var(--r-lg);
  padding: 22px 26px;
  margin-top: 8px;
  margin-bottom: 8px;
}
.cp-insight-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 8px;
}
.cp-insight p { font-size: 17px; font-weight: 300; line-height: 1.6; margin: 0; }
.cp-insight strong { font-weight: 700; }

/* ─── TRACE — GENTLE NOTE ──────────────────────────────── */
.cp-trace-note {
  margin-bottom: 0;
}
.cp-note-inner {
  border-left: 3px solid var(--rose);
  padding: 4px 0 4px 22px;
}
.cp-note-inner p {
  font-size: 16px;
  font-weight: 300;
  font-style: italic;
  line-height: 1.65;
  color: var(--cocoa-60);
  margin: 0;
}
.cp-note-inner strong { font-weight: 700; font-style: normal; color: var(--cocoa); }

/* ─── UNDERSTAND — BODY SCALE ──────────────────────────── */
/* A 5-item semantic scale: frightening → expansive */
.cp-body-scale {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}
.cp-body-btn {
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  border-radius: var(--r-lg);
  border: 1px solid var(--cocoa-10);
  background: var(--white);
  color: var(--cocoa-60);
  cursor: pointer;
  padding: 12px 8px 10px;
  transition: background var(--t), border-color var(--t), color var(--t), transform var(--t);
}
.cp-body-btn:hover { border-color: var(--cocoa-40); transform: translateY(-1px); }
.cp-body-btn[aria-checked="true"] {
  background: var(--slate-bg);
  border-color: var(--slate);
  color: var(--cocoa);
}
.cp-body-btn:focus-visible { outline: 2px solid var(--slate); outline-offset: 2px; }
.cp-body-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.cp-body-emoji { font-size: 22px; line-height: 1.2; display: block; margin-bottom: 6px; }

/* ─── UNDERSTAND — IFS NOTE ────────────────────────────── */
.cp-ifs-note {
  background: var(--burg-bg);
  border-left: 3px solid var(--burgundy);
  border-radius: 0 var(--r) var(--r) 0;
  padding: 18px 24px;
  margin-top: 8px;
}
.cp-ifs-note p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--cocoa-60);
  margin: 0;
}
.cp-ifs-note strong { font-weight: 700; color: var(--cocoa); }

/* ─── RECLAIM — CALLOUT ────────────────────────────────── */
.cp-reclaim-callout {
  background: var(--cocoa);
  border-radius: var(--r-lg);
  padding: 32px 36px;
  margin: 36px 0 8px;
  text-align: center;
}
.cp-reclaim-quote {
  font-size: 22px;
  font-weight: 300;
  font-style: italic;
  color: var(--linen-light);
  line-height: 1.5;
  margin-bottom: 14px;
}
.cp-reclaim-sub {
  font-size: 16px;
  font-weight: 600;
  color: var(--rose-light);
  line-height: 1.5;
  margin: 0;
}

/* ─── SIX PRACTICES GRID ───────────────────────────────── */
.cp-practices-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 6px;
}
.cp-practice-card {
  font-family: 'Nunito', sans-serif;
  text-align: left;
  background: var(--linen);
  border: 1px solid var(--cocoa-10);
  border-radius: var(--r-lg);
  padding: 22px 20px 18px;
  cursor: pointer;
  transition: border-color var(--t), background var(--t), transform var(--t);
}
.cp-practice-card:hover { border-color: var(--slate-light); transform: translateY(-1px); }
.cp-practice-card:focus-visible { outline: 2px solid var(--slate); outline-offset: 2px; }
.cp-practice-card[aria-expanded="true"] {
  border-color: var(--slate);
  background: var(--slate-bg);
}
.cp-practice-icon {
  font-size: 26px;
  line-height: 1;
  margin-bottom: 12px;
  display: block;
}
.cp-practice-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--cocoa);
  line-height: 1.3;
  margin-bottom: 4px;
}
.cp-practice-sub {
  font-size: 13px;
  font-style: italic;
  color: var(--cocoa-40);
  line-height: 1.5;
}

/* Detail panel spans full grid width */
.cp-practice-detail {
  display: none;
  grid-column: 1 / -1;
  background: var(--cloud);
  border: 1px solid var(--slate-light);
  border-radius: var(--r-lg);
  padding: 26px 32px;
  margin-top: 4px;
}
.cp-practice-detail.is-visible { display: block; }
.cp-practice-detail h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cocoa-40);
  margin-bottom: 10px;
}
.cp-practice-detail p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--cocoa-60);
  margin-bottom: 12px;
}
.cp-practice-detail p:last-child { margin-bottom: 0; }
.cp-practice-try {
  background: var(--slate-bg);
  border-radius: var(--r);
  padding: 14px 18px;
  margin-top: 14px;
}
.cp-practice-try strong { color: var(--cocoa); }

/* ─── MILESTONE TRACKER ────────────────────────────────── */
.cp-milestone-stage {
  background: var(--cocoa) !important;
}
.cp-milestone-label { color: var(--rose) !important; }
.cp-milestone-title { color: var(--linen-light) !important; }
.cp-milestone-lead  { color: var(--cocoa-20) !important; }

.cp-milestones {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cp-milestone {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  cursor: pointer;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--r);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: background var(--t);
  user-select: none;
  font-family: 'Nunito', sans-serif;
  text-align: left;
  width: 100%;
}
.cp-milestone:hover { background: rgba(148, 177, 200, 0.10); }
.cp-milestone:focus-visible { outline: 2px solid var(--slate); outline-offset: 2px; }
.cp-milestone.is-done { background: rgba(148, 177, 200, 0.12); border-color: rgba(148, 177, 200, 0.25); }

.cp-milestone-check {
  width: 22px;
  height: 22px;
  border-radius: 3px;
  border: 2px solid var(--cocoa-40);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  transition: all var(--t);
}
.cp-milestone.is-done .cp-milestone-check {
  background: var(--slate);
  border-color: var(--slate);
}
.cp-milestone-check svg { display: none; }
.cp-milestone.is-done .cp-milestone-check svg { display: block; }

.cp-milestone-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--linen-light);
  opacity: 0.85;
}
.cp-milestone.is-done .cp-milestone-text {
  opacity: 0.5;
  text-decoration: line-through;
  text-decoration-color: var(--cocoa-40);
}

/* ─── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 760px) {
  .cp-practices-grid { grid-template-columns: 1fr 1fr; }
  .cp-beliefs-grid   { grid-template-columns: 1fr; }
  .cp-body-scale     { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 560px) {
  .cp-practices-grid  { grid-template-columns: 1fr; }
  .cp-body-scale      { grid-template-columns: 1fr 1fr; }
  .cp-body-scale .cp-body-btn:last-child { grid-column: 1 / -1; }
  .cp-opening         { padding: 40px 20px 28px; }
  .cp-reclaim-callout { padding: 24px 20px; }
  .cp-reclaim-quote   { font-size: 19px; }
}
@media print {
  .os-progress-wrap,
  .os-hero-actions,
  .os-hero-link,
  .os-stage-nav,
  .os-summary-actions,
  .callout-dark,
  [data-component] { display: none; }
}
