/* Page 2 - How It Works */

.page-hero {
  padding: calc(var(--nav-height) + 40px) 64px 56px;
  min-height: auto;
  box-sizing: border-box;
}
.page-hero .hero-intro-wrap { gap: 24px; max-width: 780px; }
.page-hero .hero-lead { max-width: 680px; }

/* WCAG-friendly text on dark sections (this page) */
.page-hero .hero-lead,
#four-phases,
#why-compounds,
#slope,
#stage-0,
#embedded-partner {
  --hiw-muted: #C8C8DE;
  --hiw-body: rgba(255, 255, 255, 0.92);
  --hiw-subtle: #9E9EB8;
}

.section-intro {
  color: var(--hiw-muted, var(--text-muted));
}

.assessment-banner { background: rgba(201,168,76,0.08); border: 1px solid rgba(201,168,76,0.2); border-radius:10px; padding:28px 24px; text-align:center; margin:32px 0; }
.assessment-banner p { color: rgba(255,255,255,0.85); margin-bottom:18px; font-size:15px; line-height:1.5; max-width:36em; margin-left:auto; margin-right:auto; }
.assessment-banner .btn-hero-primary { margin:0 auto; }

/* Four phases - 4-column at-a-glance grid */
#four-phases .method-phases {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 12px;
}
#four-phases .method-phase {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 18px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(165deg, rgba(24, 24, 40, 0.98), rgba(10, 10, 20, 0.96));
  min-height: 100%;
}
#four-phases .method-phase-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
#four-phases .method-phase-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gradient);
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  line-height: 1;
}
#four-phases .method-phase-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.2;
}
#four-phases .method-phase-hook {
  margin: 0;
  font-size: 0.8rem;
  color: var(--hiw-muted, #C8C8DE);
  line-height: 1.45;
}
#four-phases .method-phase-points {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}
#four-phases .method-phase-points li {
  font-size: 0.78rem;
  color: var(--hiw-body, rgba(255, 255, 255, 0.92));
  padding: 5px 0 5px 12px;
  position: relative;
  line-height: 1.4;
}
#four-phases .method-phase-points li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--amber);
  font-size: 0.65rem;
}
#four-phases .method-phase-out {
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.76rem;
  color: var(--hiw-muted, #C8C8DE);
  line-height: 1.45;
}
#four-phases .method-phase-out span {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--amber);
  margin-bottom: 4px;
}

/* Why it scales - text only */
.compound-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 28px;
}
.compound-item {
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(18, 18, 32, 0.85);
  border-left: 3px solid rgba(240, 160, 48, 0.45);
}
.compound-item p {
  font-size: 0.88rem;
  color: var(--hiw-body, rgba(255, 255, 255, 0.92));
  line-height: 1.5;
  margin: 0;
}

/* SLOPE - equal cards by default; expand on hover (desktop) or click */
#slope .slope-hint {
  margin: 4px 0 14px;
  font-size: 0.82rem;
  color: var(--hiw-subtle, #9E9EB8);
  text-align: center;
}
#slope .slope-bar {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 8px;
}
#slope .slope-cell {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(16, 16, 28, 0.95);
  overflow: hidden;
  cursor: pointer;
  outline: none;
  transition: flex 0.35s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
#slope .slope-cell.is-pinned {
  flex: 3.2 1 0;
  border-color: rgba(240, 160, 48, 0.4);
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.12);
  background: linear-gradient(165deg, rgba(22, 22, 38, 0.98), rgba(12, 12, 22, 0.96));
}
@media (hover: hover) {
  #slope .slope-cell:hover,
  #slope .slope-cell:focus-within {
    flex: 3.2 1 0;
    border-color: rgba(240, 160, 48, 0.4);
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.12);
    background: linear-gradient(165deg, rgba(22, 22, 38, 0.98), rgba(12, 12, 22, 0.96));
  }
}
#slope .slope-cell-letter {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
  background: var(--gradient);
}
#slope .slope-cell-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 10px 10px 12px;
  overflow: hidden;
  min-height: 0;
  text-align: center;
}
#slope .slope-cell-body h4 {
  font-family: var(--font-display);
  font-size: 0.78rem;
  color: #fff;
  margin: 0;
  line-height: 1.25;
}
#slope .slope-cell-tag {
  font-size: 0.72rem;
  color: var(--amber);
  margin: 0;
  line-height: 1.35;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.32s ease, opacity 0.24s ease, margin 0.24s ease;
}
#slope .slope-cell-detail {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.32s ease, opacity 0.24s ease, margin 0.24s ease;
}
#slope .slope-cell.is-pinned .slope-cell-body {
  padding: 12px 14px 16px;
  text-align: left;
}
@media (hover: hover) {
  #slope .slope-cell:hover .slope-cell-body,
  #slope .slope-cell:focus-within .slope-cell-body {
    padding: 12px 14px 16px;
    text-align: left;
  }
}
#slope .slope-cell.is-pinned .slope-cell-body h4 {
  font-size: 0.92rem;
  margin-bottom: 6px;
}
@media (hover: hover) {
  #slope .slope-cell:hover .slope-cell-body h4,
  #slope .slope-cell:focus-within .slope-cell-body h4 {
    font-size: 0.92rem;
    margin-bottom: 6px;
  }
}
#slope .slope-cell.is-pinned .slope-cell-tag {
  max-height: 4em;
  opacity: 1;
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 0.78rem;
}
@media (hover: hover) {
  #slope .slope-cell:hover .slope-cell-tag,
  #slope .slope-cell:focus-within .slope-cell-tag {
    max-height: 4em;
    opacity: 1;
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 0.78rem;
  }
}
#slope .slope-cell.is-pinned .slope-cell-detail {
  max-height: 420px;
  opacity: 1;
  margin-top: 4px;
}
@media (hover: hover) {
  #slope .slope-cell:hover .slope-cell-detail,
  #slope .slope-cell:focus-within .slope-cell-detail {
    max-height: 420px;
    opacity: 1;
    margin-top: 4px;
  }
}
#slope .slope-cell-detail > p:not(.slope-cell-ex) {
  font-size: 0.82rem;
  color: var(--hiw-body, rgba(255, 255, 255, 0.92));
  line-height: 1.5;
  margin: 0 0 8px;
}
#slope .slope-cell-ex {
  margin: 0;
  padding: 8px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.78rem;
  color: var(--hiw-muted, #C8C8DE);
  line-height: 1.45;
}
#slope .slope-cell-ex strong { color: var(--amber); }
.slope-framework-tag {
  text-align: center;
  margin-top: 24px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--hiw-muted, #C8C8DE);
}
.slope-framework-tag em {
  font-style: normal;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Stage 0 report visual */
.report-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 28px;
  align-items: start;
}
.report-questions {
  padding: 24px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(14, 14, 26, 0.9);
}
.report-questions h4 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--hiw-subtle, #9E9EB8);
  margin-bottom: 16px;
}
.report-q-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: rq;
}
.report-q-list li {
  counter-increment: rq;
  padding: 12px 0 12px 36px;
  position: relative;
  font-size: 0.9rem;
  color: var(--hiw-body, rgba(255, 255, 255, 0.92));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  line-height: 1.5;
}
.report-q-list li:last-child { border-bottom: none; }
.report-q-list li::before {
  content: counter(rq);
  position: absolute;
  left: 0;
  top: 12px;
  width: 24px; height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gradient);
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
}
.report-deliverables {
  padding: 24px;
  border-radius: 16px;
  border: 1px solid rgba(240, 160, 48, 0.25);
  background: linear-gradient(165deg, rgba(20, 20, 36, 0.98), rgba(12, 12, 22, 0.95));
}
.report-deliverables h4 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--amber);
  margin-bottom: 16px;
}
.report-del-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.report-del-list li {
  font-size: 0.88rem;
  color: var(--hiw-muted, #C8C8DE);
  padding-left: 18px;
  position: relative;
  line-height: 1.45;
}
.report-del-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-size: 0.75rem;
}
.report-footnote {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--hiw-subtle, #9E9EB8);
  line-height: 1.5;
}

/* Partner compare - no icons */
.partner-compare {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}
.partner-col {
  padding: 24px 20px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(14, 14, 26, 0.85);
}
.partner-col--highlight {
  border-color: rgba(240, 160, 48, 0.3);
  background: linear-gradient(165deg, rgba(20, 20, 36, 0.98), rgba(12, 12, 22, 0.95));
  box-shadow: 0 0 48px rgba(139, 92, 246, 0.12);
}
.partner-col h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 12px;
  color: #fff;
  text-align: center;
}
.partner-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.partner-col li {
  font-size: 0.85rem;
  color: var(--hiw-muted, #C8C8DE);
  padding: 6px 0 6px 16px;
  position: relative;
  line-height: 1.45;
}
.partner-col li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--hiw-subtle, #9E9EB8);
}
.partner-col--highlight li::before { color: var(--amber); }

.compare-callout {
  color: var(--hiw-muted, #C8C8DE);
}
.compare-callout strong { color: #fff; }

.nav-links a.is-current { color: #fff; }

@media (max-width: 1100px) {
  .compound-grid { grid-template-columns: repeat(2, 1fr); }
  #four-phases .method-phases {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .page-hero { padding: calc(var(--nav-height) + 24px) 24px 40px; }
  .report-visual { grid-template-columns: 1fr; }
  .partner-compare { grid-template-columns: 1fr; }
  .compound-grid { grid-template-columns: 1fr; }
  #four-phases .method-phases {
    grid-template-columns: 1fr;
  }
  #slope .slope-hint { display: none; }
  #slope .slope-bar {
    flex-direction: column;
    gap: 10px;
  }
  #slope .slope-cell,
  #slope .slope-cell.is-pinned {
    flex: none;
  }
  #slope .slope-cell-body {
    padding: 10px 14px 12px;
  }
  #slope .slope-cell-letter {
    min-height: 44px;
    justify-content: flex-start;
    padding-left: 18px;
  }
}
