/*
 * Orla case — "Main tasks" as swimlanes (from the "Principais tarefas — raias
 * com IA" mockup): phases as columns; rows for my role, where AI speeds things
 * up, and the result. On phones each phase becomes its own stacked card.
 */

.orla-case__tasks {
  --lanes-ink: #161616;
  --lanes-muted: #5f6566;
  --lanes-card: #f4f4f4;
  --lanes-line: #e3e6e6;
  --lanes-teal: #2f7369;
  --lanes-teal-d: #1f5149;
  --lanes-ai: #315b85;
  --lanes-ai-ink: #1f3d5c;
  --lanes-ai-l: #e7eef5;
  --lanes-label-w: 9.5rem;
}

.orla-case__tasks-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  margin-bottom: clamp(2rem, 3.5vw, 3rem);
}

.orla-case__tasks-intro {
  max-width: 26rem;
  margin: 0;
  color: var(--lanes-muted);
  font-size: 1.0625rem;
  line-height: 1.6;
}

/* ---------- grid ---------- */

.orla-lanes {
  display: grid;
  grid-template-columns: var(--lanes-label-w) repeat(4, minmax(0, 1fr));
  grid-template-rows: auto auto auto auto;
  border: 0.0625rem solid var(--lanes-line);
  border-radius: 1.75rem;
  overflow: hidden;
  background: #ffffff;
}

.orla-lanes__label,
.orla-lanes__cell {
  padding: 1.375rem;
  border-bottom: 0.0625rem solid var(--lanes-line);
}

.orla-lanes__cell {
  border-left: 0.0625rem solid var(--lanes-line);
}

/* row labels (left column) */
.orla-lanes__label {
  grid-column: 1;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  background: #fafafa;
  color: var(--lanes-muted);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.orla-lanes__label--phase { grid-row: 1; background: var(--lanes-card); }
.orla-lanes__label--role { grid-row: 2; }
.orla-lanes__label--ai { grid-row: 3; background: var(--lanes-ai-l); color: var(--lanes-ai); }
.orla-lanes__label--out { grid-row: 4; border-bottom: 0; }

/* rows */
.orla-lanes__phase { grid-row: 1; background: var(--lanes-card); }
.orla-lanes__me { grid-row: 2; }
.orla-lanes__ai { grid-row: 3; background: var(--lanes-ai-l); }
.orla-lanes__out { grid-row: 4; border-bottom: 0; }

.orla-lanes__num {
  display: block;
  margin-bottom: 0.625rem;
  color: var(--lanes-teal);
  font: 500 0.75rem/1 ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
  letter-spacing: 0.06em;
}

.orla-lanes__phase h3 {
  margin: 0;
  color: var(--lanes-ink);
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.orla-lanes__cell p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.orla-lanes__me p { color: #3f4344; }
.orla-lanes__list {
  display: grid;
  gap: 0.625rem;
  margin: 0.875rem 0 0;
  padding: 0;
  list-style: none;
  color: #3f4344;
  font-size: 0.875rem;
  line-height: 1.45;
}
.orla-lanes__list li {
  position: relative;
  padding-left: 0.9375rem;
}
.orla-lanes__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.3125rem;
  height: 0.3125rem;
  border-radius: 50%;
  background: var(--lanes-teal);
}
.orla-lanes__ai p { color: var(--lanes-ai-ink); }

.orla-lanes__out {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--lanes-teal-d);
}

.orla-lanes__out p { font-size: 0.875rem; line-height: 1.5; color: inherit; }

/* AI tool chips */
.orla-lanes__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: 0.75rem;
}

.orla-lanes__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.6875rem;
  border: 0.0625rem solid #c5d4e3;
  border-radius: 999px;
  background: #ffffff;
  color: #1f3d5c;
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
}

.orla-lanes__spark {
  flex: none;
  width: 0.875rem;
  height: 0.875rem;
  color: var(--lanes-ai);
}

/* labels inside cells are only for the stacked phone layout */
.orla-lanes__cell-label { display: none; }

/* ---------- tablet: tighter label column ---------- */
@media (max-width: 75rem) {
  .orla-case__tasks { --lanes-label-w: 7.5rem; }
  .orla-lanes__label, .orla-lanes__cell { padding: 1.125rem; }
}

/* ---------- phones: one card per phase ---------- */
@media (max-width: 48rem) {
  .orla-lanes {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border: 0;
    border-radius: 0;
    overflow: visible;
    background: none;
  }

  .orla-lanes__label { display: none; }

  .orla-lanes__cell {
    border: 0.0625rem solid var(--lanes-line);
    border-top: 0;
    border-bottom: 0;
    padding: 1rem 1.25rem;
  }

  /* each phase: header (rounded top) … result (rounded bottom) */
  .orla-lanes__phase {
    margin-top: 0.5rem;
    border-top: 0.0625rem solid var(--lanes-line);
    border-radius: 1.5rem 1.5rem 0 0;
  }

  .orla-lanes__out {
    border-bottom: 0.0625rem solid var(--lanes-line);
    border-radius: 0 0 1.5rem 1.5rem;
    background: #ffffff;
  }

  .orla-lanes__me { background: #ffffff; }

  /* the flex gap separates phases only; cells of one phase touch */
  .orla-lanes__me,
  .orla-lanes__ai,
  .orla-lanes__out { margin-top: -0.75rem; }

  .orla-lanes__cell-label {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-bottom: 0.375rem;
    color: var(--lanes-muted);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .orla-lanes__cell-label--ai { color: var(--lanes-ai); }

  .orla-lanes__out {
    flex-wrap: wrap;
  }

  .orla-lanes__out .orla-lanes__cell-label { flex-basis: 100%; }

}
