/* ---------- Shared section spacing ---------- */

.section-pad { padding: 64px 0; }
.section-pad-lg { padding: 80px 0; }
.section-pad-sm { padding: 36px 0; }

@media (max-width: 640px) {
  .section-pad { padding: 32px 0; }
  .section-pad-lg { padding: 40px 0; }
  .section-pad-sm { padding: 20px 0; }
}

@media (max-width: 480px) {
  .section-pad { padding: 26px 0; }
  .section-pad-lg { padding: 30px 0; }
  .section-pad-sm { padding: 16px 0; }
}

.section-alt-bg {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ---------- Problem ---------- */

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 8px;
}

@media (max-width: 640px) {
  .problem-grid { grid-template-columns: 1fr; gap: 12px; }
}

.evidence-card {
  background: var(--tint-blue);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.evidence-card .tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--heading);
  letter-spacing: 0.04em;
}

.evidence-card p { font-size: 14.5px; }

.problem-statement {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  border-radius: var(--radius-m);
  border: 1px solid var(--border);
  background: var(--tint-warm);
}

.problem-statement .h3 {
  color: var(--heading-deep);
  margin: 0;
  font-size: 20px;
  max-width: 40ch;
}

.scatter-wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.scatter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 320px;
}

.scatter-chips .chip {
  transform: rotate(var(--r, 0deg));
}
.scatter-chips .chip:nth-child(1) { --r: -3deg; }
.scatter-chips .chip:nth-child(2) { --r: 2deg; }
.scatter-chips .chip:nth-child(3) { --r: -1deg; }
.scatter-chips .chip:nth-child(4) { --r: 3deg; }
.scatter-chips .chip:nth-child(5) { --r: -2deg; }

.scatter-arrow {
  font-size: 22px;
  color: var(--border-strong);
  flex: none;
}

@media (max-width: 480px) {
  .problem-statement { margin-top: 18px; padding: 18px 20px; gap: 14px; }
  .scatter-wrap { margin-top: 18px; gap: 14px; }
}

.unified-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--charcoal);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 14px 22px;
  border-radius: 999px;
}

.unified-pill::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #6EE7B7;
}

/* ---------- The Idea — pipeline ---------- */

.pipeline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  margin-top: 12px;
}

.pipeline-stage {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pipeline-stage.is-outcome {
  background: var(--tint-blue);
  border-color: var(--border-strong);
}

.pipeline-stage .stage-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--body-soft);
}

.pipeline-stage ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pipeline-stage li {
  font-size: 14px;
  color: var(--ink);
  padding-left: 14px;
  position: relative;
}

.pipeline-stage li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--heading);
}

.pipeline-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--border-strong);
  font-size: 20px;
}

@media (max-width: 900px) {
  .pipeline {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .pipeline-stage { padding: 20px 20px; }
  .pipeline-arrow {
    transform: rotate(90deg);
    padding: 0;
    font-size: 15px;
    height: 18px;
  }
}

/* ---------- Framework ---------- */

.framework-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 16px;
}

.framework-line {
  position: absolute;
  top: 22px;
  left: 6%;
  right: 6%;
  height: 1px;
  background: var(--border-strong);
  z-index: 0;
}

.framework-step {
  position: relative;
  z-index: 1;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.framework-step:first-child { padding-left: 0; }
.framework-step:last-child { padding-right: 0; }

.framework-node {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--heading);
  font-weight: 600;
}

.framework-step h4 {
  font-size: 16.5px;
  font-weight: 620;
  letter-spacing: 0.02em;
}

.framework-step p { font-size: 13.5px; line-height: 1.5; }

@media (max-width: 860px) {
  .framework-track { grid-template-columns: 1fr; gap: 0; margin-top: 10px; }
  .framework-line { display: none; }
  .framework-step {
    padding: 0 0 18px 20px !important;
    border-left: 1px solid var(--border);
  }
  .framework-step:last-child { padding-bottom: 0 !important; }
}
